/**
 * DealScanner Shared Core Stylesheet (dealscanner-core.css)
 * Contains strictly identical design tokens, account rows, pricing cards, subviews, and modal components
 * shared across the DealScanner Scanner Website and the Community Forum.
 */

/* ==========================================================================
   1. DESIGN TOKENS & ROOT VARIABLES
   ========================================================================== */
:root {
  /* Brand & Status Colors */
  --brand: #ff7600;
  --brand-hover: #f97316;
  --accent-orange: #ff7600;
  --accent-blue: #38bdf8;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --accent-yellow: #eab308;
  --accent-purple: #a855f7;

  /* Background Palette */
  --bg-primary: #313338;
  --bg-secondary: #2b2d31;
  --bg-secondary-alt: #2b2d31;
  --bg-tertiary: #27292d;
  --bg-card: #2b2d31;
  --bg-card-inner: #27292d;

  /* Typography Palette */
  --text-normal: #dbdee1;
  --text-muted: #949ba4;
  --text-link: #00a8fc;
  --text-header: #ffffff;

  /* Borders & Dividers */
  --border-primary: #1f2023;
  --border: #1f2023;
  --border-secondary: #3f4147;

  /* Font Families */
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Share Tech Mono', Consolas, Monaco, monospace;

  /* Score Temperature Variables */
  --score-lightness: 60%;
  --temp-neutral: #949ba4;
  --temp-positive: #ff7600;
  --temp-flaming: #ef4444;
  --temp-cold: #00a8fc;
  --temp-freezing: #3b82f6;
}

.temp-neutral { color: var(--temp-neutral, #949ba4); }
.temp-positive { color: var(--temp-positive, #ff7600); }
.temp-flaming { color: var(--temp-flaming, #ef4444); }
.temp-cold { color: var(--temp-cold, #00a8fc); }
.temp-freezing { color: var(--temp-freezing, #3b82f6); }

/* ══════════════════════════════════════════════════════════════
   LIGHT THEME DESIGN TOKENS & OVERRIDES
   ══════════════════════════════════════════════════════════════ */
body.light-theme {
  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f6f8fa;
  --bg-secondary-alt: #f0f2f5;
  --bg-tertiary: #e5e7eb;
  --bg-card: #ffffff;
  --bg-card-inner: #f9fafb;

  /* Typography */
  --text-normal: #1f2937;
  --text-muted: #6b7280;
  --text-link: #0284c7;
  --text-header: #111827;

  /* Borders */
  --border-primary: #e5e7eb;
  --border: #e5e7eb;
  --border-secondary: #d1d5db;
}

body.light-theme .settings-group {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .settings-row {
  border-bottom: 1px solid #f0f2f5 !important;
  color: var(--text-normal, #1f2937) !important;
}

body.light-theme .settings-row:hover,
body.light-theme .settings-row:active {
  background: rgba(0, 0, 0, 0.035) !important;
}

body.light-theme .profile-hero-card {
  background: linear-gradient(135deg, rgba(255, 118, 0, 0.08) 0%, #ffffff 100%) !important;
  border: 1px solid rgba(255, 118, 0, 0.25) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .profile-name-text {
  color: #111827 !important;
}

body.light-theme .profile-email-text,
body.light-theme .profile-joined-text {
  color: #6b7280 !important;
}

body.light-theme .subscription-strip {
  border-top: 1px solid #f0f2f5 !important;
}

body.light-theme .usage-item {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

body.light-theme .account-nav-switcher {
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
}

body.light-theme .nav-switch-btn.active {
  background: #ffffff !important;
  color: #ff7600 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .nav-switch-btn:hover:not(.active) {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #111827 !important;
}

body.light-theme .toggle-card-row {
  border-bottom-color: #f0f2f5 !important;
}

body.light-theme .subpage-container,
body.light-theme .dm-mobile-wrapper {
  color: #1f2937 !important;
}

body.light-theme .store-dir-search-box input {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  color: #111827 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .store-dir-featured-card {
  background: linear-gradient(135deg, rgba(255, 118, 0, 0.08) 0%, #ffffff 100%) !important;
  border-color: rgba(255, 118, 0, 0.3) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .store-dir-featured-card:hover {
  background: linear-gradient(135deg, rgba(255, 118, 0, 0.12) 0%, #ffffff 100%) !important;
}

body.light-theme .store-dir-featured-title {
  color: #111827 !important;
}

body.light-theme .store-dir-card {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .store-dir-card:hover,
body.light-theme .store-dir-card:active {
  background: #f9fafb !important;
  border-color: rgba(255, 118, 0, 0.4) !important;
}

body.light-theme .store-dir-name {
  color: #111827 !important;
}

body.light-theme .store-dir-desc {
  color: #6b7280 !important;
}

/* ==========================================================================
   2. NATIVE ACCOUNT HUB & SETTINGS ROW SYSTEM
   ========================================================================== */
.account-portal-container,
.account-native-mobile {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 820px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  color: var(--text-normal, #dbdee1);
  font-family: var(--font-body, 'Inter', sans-serif);
}

#nativeSettingsMainView {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

#nativeSettingsMainView.hidden,
.account-native-mobile.subpage-open #nativeSettingsMainView {
  display: none !important;
}

/* Settings Nav Header */
.settings-nav-header {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  width: 100%;
  margin-bottom: 6px;
  position: relative;
}
.settings-back-btn {
  background: none;
  border: none;
  color: var(--accent-orange, #ff7600);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s ease, color 0.15s ease;
  padding: 6px 0;
  text-decoration: none !important;
  opacity: 1;
  pointer-events: auto;
}
.settings-back-btn:hover {
  color: #ffa34d;
}
button#nativeNavBackBtn:not(.visible),
.account-native-mobile:not(.subpage-open) button#nativeNavBackBtn {
  opacity: 0 !important;
  pointer-events: none !important;
}
.settings-back-btn.visible,
button#nativeNavBackBtn.visible,
.account-native-mobile.subpage-open button#nativeNavBackBtn {
  opacity: 1 !important;
  pointer-events: auto !important;
  display: inline-flex !important;
}
.nav-header-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 16.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Profile Hero Card */
.profile-hero-card {
  background: linear-gradient(135deg, rgba(255, 118, 0, 0.12) 0%, var(--bg-secondary, #2b2d31) 100%);
  border: 1px solid rgba(255, 118, 0, 0.35);
  border-radius: 14px;
  padding: 16px;
  margin: 0 0 16px 0 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
}
.profile-top-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7600, #ff9900);
  color: #ffffff;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(255, 118, 0, 0.3);
}
.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-meta-block {
  flex: 1;
  min-width: 0;
}
.profile-name-text {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-header, #ffffff);
  letter-spacing: -0.2px;
}
.profile-email-text {
  font-size: 12px;
  color: var(--text-muted, #949ba4);
  margin-top: 1px;
}
.profile-joined-text {
  font-size: 11px;
  color: var(--text-muted, #949ba4);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Subscription Action Strip */
.subscription-strip {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sub-tier-label {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--accent-orange, #ff7600);
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
}
.sub-tier-sub {
  font-size: 11px;
  color: var(--text-muted, #949ba4);
  margin-top: 2px;
}
.btn-manage-sub {
  background: transparent !important;
  border: none !important;
  color: var(--accent-orange, #ff7600) !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 0 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: color 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
}
.btn-manage-sub:hover {
  background: transparent !important;
  color: #ffa033 !important;
  opacity: 0.9;
}
.btn-manage-sub:active {
  transform: scale(0.98);
}

/* Quick Usage Counters */
.usage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.usage-item {
  background: var(--bg-tertiary, #27292d);
  border: none;
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
}
.usage-val {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 16px;
  font-weight: 800;
}
.usage-lbl {
  font-size: 10.5px;
  color: var(--text-muted, #949ba4);
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════
   SEGMENTED TAB SWITCHER (Website Settings | Forum Settings)
   ══════════════════════════════════════════════════════════════ */
.account-nav-switcher {
  display: flex;
  background: var(--bg-tertiary, #1e1f22);
  border: 1px solid var(--border-primary, #1f2023);
  border-radius: 12px;
  padding: 4px;
  margin: 14px 0 18px 0;
  gap: 4px;
  box-sizing: border-box;
  width: 100%;
}
.nav-switch-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted, #949ba4);
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  box-sizing: border-box;
}
.nav-switch-btn svg {
  flex-shrink: 0;
  color: var(--text-muted, #949ba4);
  transition: color 0.15s ease;
}
.nav-switch-btn:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}
.nav-switch-btn:hover:not(.active) svg {
  color: #ffffff;
}
.nav-switch-btn.active {
  background: var(--bg-secondary, #2b2d31);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.nav-switch-btn.active svg {
  color: var(--accent-orange, #ff7600);
}

/* ══════════════════════════════════════════════════════════════
   NOTIFY SEGMENTED STRIP (Discord, Telegram, Email delivery selector)
   ══════════════════════════════════════════════════════════════ */
.notify-segmented-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-tertiary, #1e1f22);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  padding: 0 !important;
  gap: 0 !important;
  box-sizing: border-box;
}
.notify-seg-btn {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--text-muted, #949ba4);
  border: none !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0 !important;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
}
.notify-seg-btn:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}
.notify-seg-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* State indicator icons (Red X when off, Green Check when on) */
.notify-seg-btn .seg-state-icon {
  width: 13px;
  height: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notify-seg-btn .seg-state-icon .seg-check {
  display: none;
}
.notify-seg-btn .seg-state-icon .seg-cross {
  display: block;
}

.notify-seg-btn.active.seg-discord {
  background: rgba(88, 101, 242, 0.22);
  color: #fff;
}
.notify-seg-btn.active.seg-telegram {
  background: rgba(34, 158, 217, 0.22);
  color: #fff;
}
.notify-seg-btn.active.seg-email {
  background: rgba(255, 118, 0, 0.22);
  color: #fff;
}
.notify-seg-btn.active.seg-webhook {
  background: rgba(99, 102, 241, 0.25);
  color: #fff;
}
.notify-seg-btn.active.seg-push {
  background: rgba(168, 85, 247, 0.25);
  color: #fff;
}
.notify-seg-btn.active.seg-ntfy {
  background: rgba(16, 185, 129, 0.25);
  color: #fff;
}

.notify-seg-btn.active .seg-state-icon .seg-check {
  display: block;
}
.notify-seg-btn.active .seg-state-icon .seg-cross {
  display: none;
}

/* Switch toggle styling */
.toggle-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-primary, #1f2023);
  gap: 12px;
}
.toggle-card-row:last-child {
  border-bottom: none;
}
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #374151;
  transition: .25s ease;
  border-radius: 24px;
}
.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: .25s ease;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.switch-toggle input:checked + .switch-slider {
  background-color: #22c55e;
}
.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(20px);
}

/* Saved Tab Segmented Switcher */
.saved-tab-btn {
  flex: 1;
  padding: 9px 0;
  border: none;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--text-muted, #949ba4);
  outline: none;
  user-select: none;
}
.saved-tab-btn:hover:not(.active) {
  color: var(--text-normal, #dbdee1);
  background: rgba(255, 255, 255, 0.05);
}
.saved-tab-btn.active {
  background: var(--bg-secondary, #2b2d31);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Settings Groups & Rows */
/* Top Header Action Buttons (DMs & Notifications) */
.header-icon-action-btn {
  position: relative;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--text-muted, #949ba4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
  border-radius: 6px;
}

.header-icon-action-btn:hover {
  color: var(--text-header, #ffffff) !important;
  background-color: var(--bg-secondary-alt, rgba(255, 255, 255, 0.05)) !important;
}

.header-icon-action-btn:active {
  transform: scale(0.95);
}

body.light-theme .header-icon-action-btn:hover {
  color: #111827 !important;
  background-color: rgba(0, 0, 0, 0.05) !important;
}

/* ══════════════════════════════════════════════════════════════
   TOP HEADER GLIMPSE DROPDOWN POPOVERS (DMs & Notifications)
   ══════════════════════════════════════════════════════════════ */
.glimpse-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-width: 90vw;
  background: var(--bg-secondary, #2b2d31);
  border: 1px solid var(--border-primary, #1f2023);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  z-index: 1000;
  overflow: hidden;
  animation: popIn 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

.glimpse-popover.open {
  display: block;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-primary, #1f2023);
  background: var(--bg-tertiary, #27292d);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-header, #ffffff);
}

.popover-action-link {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-orange, #ff7600);
  cursor: pointer;
  transition: opacity 0.15s;
}

.popover-action-link:hover {
  opacity: 0.85;
}

.popover-list {
  max-height: 300px;
  overflow-y: auto;
}

.popover-item {
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--border-primary, #1f2023);
  cursor: pointer;
  transition: background 0.1s ease;
  text-decoration: none;
  color: inherit;
}

.popover-item:last-child {
  border-bottom: none;
}

.popover-item:hover {
  background: var(--bg-secondary-alt, rgba(255, 255, 255, 0.035));
}

.popover-bare-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.popover-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  overflow: hidden;
}

.popover-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popover-content {
  flex: 1;
  min-width: 0;
}

.popover-title-row {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-header, #ffffff);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popover-time {
  font-size: 10.5px;
  color: var(--text-muted, #949ba4);
  font-weight: 500;
}

.popover-desc {
  font-size: 12px;
  color: var(--text-normal, #dbdee1);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popover-footer {
  padding: 10px;
  text-align: center;
  border-top: 1px solid var(--border-primary, #1f2023);
  background: var(--bg-tertiary, #27292d);
}

.popover-footer a {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-orange, #ff7600);
  text-decoration: none;
  cursor: pointer;
}

.popover-footer a:hover {
  text-decoration: underline;
}

.popover-empty {
  padding: 24px 14px;
  text-align: center;
  color: var(--text-muted, #949ba4);
  font-size: 12.5px;
}

/* Light Theme Overrides */
body.light-theme .glimpse-popover {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12) !important;
}

body.light-theme .popover-header {
  background: #f9fafb !important;
  border-bottom-color: #e5e7eb !important;
  color: #111827 !important;
}

body.light-theme .popover-item {
  border-bottom-color: #f0f2f5 !important;
}

body.light-theme .popover-item:hover {
  background: #f9fafb !important;
}

body.light-theme .popover-title-row {
  color: #111827 !important;
}

body.light-theme .popover-time {
  color: #6b7280 !important;
}

body.light-theme .popover-desc {
  color: #4b5563 !important;
}

body.light-theme .popover-footer {
  background: #f9fafb !important;
  border-top-color: #e5e7eb !important;
}

.settings-group-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted, #949ba4);
  margin: 18px 4px 6px 4px;
}
.settings-group {
  background: var(--bg-secondary, #2b2d31);
  border: 1px solid var(--border-primary, #1f2023);
  border-radius: 12px;
  margin: 0 0 12px 0 !important;
  overflow: hidden;
  width: 100% !important;
  box-sizing: border-box !important;
}
.settings-row {
  min-height: 48px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-primary, #1f2023);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-normal, #dbdee1);
  transition: background 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}
.settings-row:last-child {
  border-bottom: none;
}
.settings-row:hover {
  background: #35373c;
}
.settings-row:active {
  background: #393c41;
}
.row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.flat-icon-box {
  width: 22px;
  height: 22px;
  background: transparent !important;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.flat-icon-box svg {
  width: 19px;
  height: 19px;
}
.row-labels {
  min-width: 0;
}
.row-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-header, #ffffff);
  line-height: 1.2;
}
.row-subtitle {
  font-size: 11.5px;
  color: var(--text-muted, #949ba4);
  margin-top: 2px;
}
.row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.row-badge {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted, #949ba4);
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.row-badge.active {
  color: var(--accent-green, #22c55e);
}
.row-chevron {
  font-size: 16px;
  color: #636b75;
  font-weight: 700;
}

/* Subpages Container & Sliding Subviews */
.subpage-container {
  display: none;
  animation: fadeInSubpage 0.18s ease-out;
}
.subpage-container.active {
  display: block;
}
@keyframes fadeInSubpage {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}
.subpage-content-box {
  background: var(--bg-secondary, #2b2d31);
  border: 1px solid var(--border-primary, #1f2023);
  border-radius: 14px;
  padding: 18px;
  box-sizing: border-box;
}

/* Suppress duplicate nested headers and back buttons inside account subpages */
.subpage-container .settings-nav-header,
.subpage-container .dm-nav-header {
  display: none !important;
}

.subpage-container .account-native-mobile,
.subpage-container .dm-mobile-wrapper {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Mobile-only Categories tab in forum feed header */
.cat-tab-mobile-only,
.cat-dot-mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .cat-tab-mobile-only {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
  }
  .cat-dot-mobile-only {
    display: inline !important;
  }
}

/* ==========================================================================
   STORES DIRECTORY PAGE (Full In-App Mobile/Desktop View)
   ========================================================================== */
.stores-directory-wrapper {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 0 32px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .stores-directory-wrapper {
    padding: 0 0 24px 0 !important;
    max-width: 100% !important;
  }
}

.store-dir-search-box {
  position: relative;
  margin-bottom: 14px;
}

.store-dir-search-box input {
  width: 100%;
  height: 44px;
  background: var(--bg-secondary, #2b2d31);
  border: 1px solid var(--border-primary, #1f2023);
  border-radius: 12px;
  padding: 0 16px 0 42px;
  color: var(--text-normal, #f2f3f5);
  font-size: 13.5px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.store-dir-search-box input:focus {
  border-color: var(--accent-orange, #ff7600);
}

.store-dir-featured-card {
  background: linear-gradient(135deg, rgba(255, 118, 0, 0.12), rgba(255, 118, 0, 0.04));
  border: 1px solid rgba(255, 118, 0, 0.35);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.store-dir-featured-card:hover, .store-dir-featured-card:active {
  background: linear-gradient(135deg, rgba(255, 118, 0, 0.18), rgba(255, 118, 0, 0.07));
  border-color: rgba(255, 118, 0, 0.6);
  transform: translateY(-1px);
}

.store-dir-featured-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.store-dir-featured-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.store-dir-featured-title {
  font-family: var(--font-display, inherit);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.store-dir-featured-subtitle {
  font-size: 12px;
  color: var(--text-muted, #949ba4);
  margin-top: 2px;
}

.store-dir-featured-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.store-dir-featured-badge {
  color: var(--accent-orange, #ff7600);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.store-dir-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted, #949ba4);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.store-dir-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-dir-card {
  background: var(--bg-secondary, #2b2d31);
  border: 1px solid var(--border-primary, #1f2023);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.store-dir-card:hover, .store-dir-card:active {
  background: var(--bg-tertiary, #313338);
  border-color: rgba(255, 118, 0, 0.4);
  transform: translateY(-1px);
}

.store-dir-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.store-dir-icon-box {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.store-dir-info {
  min-width: 0;
}

.store-dir-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-header, #f2f3f5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-dir-desc {
  font-size: 11.5px;
  color: var(--text-muted, #949ba4);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-dir-card-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.store-dir-badge {
  color: #22c55e;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.store-dir-chevron {
  color: var(--text-muted, #949ba4);
  font-size: 18px;
  font-weight: 700;
}

/* ==========================================================================
   3. DYNAMIC 3-TIER PRICING COMPONENT SYSTEM
   ========================================================================== */
.pricing-grid-dynamic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
@media (max-width: 600px) {
  .pricing-grid-dynamic {
    grid-template-columns: 1fr;
  }
}
.plan-card-dynamic {
  background: var(--bg-tertiary, #1e1f22);
  border: 1px solid var(--border-primary, #1f2023);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.plan-card-dynamic:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 118, 0, 0.4);
}
.plan-card-dynamic.featured {
  border-color: var(--accent-orange, #ff7600);
  background: linear-gradient(180deg, rgba(255, 118, 0, 0.08) 0%, var(--bg-tertiary, #1e1f22) 100%);
}
.plan-card-dynamic.active-tier {
  border-color: var(--accent-green, #22c55e);
}
.plan-card-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}
.plan-card-price {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  margin: 10px 0 4px 0;
}
.plan-card-period {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted, #949ba4);
}
.plan-badge-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.plan-badge-popular {
  background: rgba(255, 118, 0, 0.2);
  color: var(--accent-orange, #ff7600);
  border: 1px solid rgba(255, 118, 0, 0.35);
}
.plan-badge-current {
  background: rgba(34, 197, 94, 0.2);
  color: var(--accent-green, #22c55e);
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-normal, #dbdee1);
}
.plan-feature-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent-green, #22c55e);
  flex-shrink: 0;
}
.btn-plan-subscribe {
  width: 100%;
  padding: 10px 0;
  background: var(--accent-orange, #ff7600);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  box-sizing: border-box;
  transition: opacity 0.15s ease;
}
.btn-plan-subscribe:hover {
  opacity: 0.9;
}
.btn-plan-subscribe.active-btn {
  background: #2b2d31;
  color: var(--accent-green, #22c55e);
  border: 1px solid rgba(34, 197, 94, 0.3);
  cursor: default;
}

/* Prominent Touch & Action Buttons */
.btn-prominent-touch {
  width: 100%;
  height: 44px;
  background: var(--accent-orange, #ff7600);
  color: #ffffff !important;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-weight: 800;
  font-size: 13.5px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.15s ease, transform 0.15s ease;
  text-decoration: none !important;
  box-sizing: border-box;
  user-select: none;
  outline: none;
}
.btn-prominent-touch:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}
.btn-prominent-touch:active:not(:disabled) {
  transform: scale(0.98);
  opacity: 0.85;
}
.btn-prominent-touch:disabled, .btn-prominent-touch[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Subtle Action Links */
.btn-subtle-link {
  background: transparent;
  border: none;
  color: var(--text-muted, #949ba4);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
  box-sizing: border-box;
}
.btn-subtle-link:hover, .btn-subtle-link:active {
  color: var(--text-header, #ffffff);
  background: rgba(255, 255, 255, 0.06);
}
.btn-subtle-link.text-danger {
  color: rgba(242, 63, 67, 0.9);
}
.btn-subtle-link.text-danger:hover, .btn-subtle-link.text-danger:active {
  color: #f23f43;
  background: rgba(242, 63, 67, 0.14);
}
.btn-subtle-link.text-primary {
  color: var(--accent-cyan, #00a8fc);
}
.btn-subtle-link.text-primary:hover, .btn-subtle-link.text-primary:active {
  color: #93c5fd;
  background: rgba(0, 168, 252, 0.12);
}

/* ==========================================================================
   4. MODALS, SHEETS & PROMPT DIALOGS (SINGLE SOURCE OF TRUTH)
   ========================================================================== */
.ds-modal-overlay, .sheet-modal-backdrop, .customizer-modal, .award-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.ds-modal-overlay.active, .sheet-modal-backdrop.active, .customizer-modal.active, .award-modal-overlay.active {
  display: flex !important;
}

.ds-modal-box, .sheet-modal-dialog, .customizer-modal-content, .award-modal-dialog, .modal-card {
  background: rgba(43, 45, 49, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-primary, #1f2023);
  border-radius: 14px;
  padding: 22px;
  max-width: 440px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
  color: var(--text-normal, #dbdee1);
  font-family: var(--font-body, 'Inter', sans-serif);
  animation: fadeInModal 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.ds-modal-header {
  padding: 0 0 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ds-modal-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-header, #ffffff);
}
.ds-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-muted, #949ba4);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.15s ease;
}
.ds-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.ds-modal-body {
  padding: 0 0 16px 0;
  font-size: 13px;
  color: var(--text-normal, #dbdee1);
  line-height: 1.5;
}

.ds-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

/* Modal Standard Buttons */
.ds-btn-primary, .ds-modal-btn-primary {
  background: var(--brand, #ff7600);
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ds-btn-primary:hover, .ds-modal-btn-primary:hover {
  background: var(--brand-hover, #e06800);
}

.ds-btn-danger, .ds-modal-btn-danger {
  background: var(--accent-red, #ef4444);
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ds-btn-danger:hover, .ds-modal-btn-danger:hover {
  background: #dc2626;
}

.ds-btn-cancel, .ds-modal-btn-cancel {
  background: var(--bg-tertiary, #27292d);
  border: 1px solid var(--border-primary, #1f2023);
  color: var(--text-normal, #dbdee1);
  font-weight: 600;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.ds-btn-cancel:hover, .ds-modal-btn-cancel:hover {
  background: #313338;
  color: #ffffff;
}

/* ==========================================================================
   5. UNIFIED BRAND LOGO (SINGLE SOURCE OF TRUTH)
   ========================================================================== */
.sidebar-logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: var(--text-header, #ffffff);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
  user-select: none;
  position: relative;
  transition: text-shadow 0.2s;
  cursor: pointer;
}
.sidebar-logo .deal-badge {
  background: linear-gradient(135deg, #ff4500, #ff7600);
  color: #ffffff !important;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 900;
  border-radius: 4px;
  letter-spacing: 0.8px;
  box-shadow: 0 0 12px rgba(255, 85, 0, 0.25);
  display: inline-block;
  transform: skewX(-8deg);
  transition: all 0.3s ease;
}
.sidebar-logo:hover {
  animation: logo-glitch 1.2s linear infinite;
}
.sidebar-logo:hover .deal-badge {
  transform: skewX(-12deg) scale(1.05);
  box-shadow: 0 0 16px rgba(255, 85, 0, 0.4);
}

@keyframes logo-glitch {
  0% {
    text-shadow: 1.5px 0 0 rgba(255, 85, 0, 0.75), -1.5px -1.5px 0 rgba(0, 168, 252, 0.75);
    transform: translate(0.5px, 0.5px);
  }
  20% {
    text-shadow: -1.5px -1.5px 0 rgba(255, 85, 0, 0.75), 1.5px 1.5px 0 rgba(0, 168, 252, 0.75);
    transform: translate(-0.5px, -0.5px);
  }
  40% {
    text-shadow: 1.5px -1.5px 0 rgba(255, 85, 0, 0.75), -1.5px 1.5px 0 rgba(0, 168, 252, 0.75);
    transform: translate(0.5px, -0.5px);
  }
  60% {
    text-shadow: -1.5px 1.5px 0 rgba(255, 85, 0, 0.75), 1.5px -1.5px 0 rgba(0, 168, 252, 0.75);
    transform: translate(-0.5px, 0.5px);
  }
  80% {
    text-shadow: 1.5px 0 0 rgba(255, 85, 0, 0.75), 0 -1.5px 0 rgba(0, 168, 252, 0.75);
    transform: translate(0.5px, 0px);
  }
  100% {
    text-shadow: 0 0 0 transparent;
    transform: translate(0, 0);
  }
}

/* ==========================================================================
   6. SIDEBAR USER TRAY (BOTTOM LEFT USER PANEL)
   ========================================================================== */
.sidebar-user-tray {
  margin-top: auto;
  min-height: 56px;
  height: 56px;
  background: var(--bg-secondary, #2b2d31);
  border-top: 1px solid var(--border-primary, rgba(255, 255, 255, 0.06));
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
  flex-shrink: 0;
  border-bottom-left-radius: inherit;
  box-sizing: border-box;
}
.sidebar-user-tray:hover {
  background: var(--bg-primary, #313338);
}
.user-tray-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.user-tray-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ff7600;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}
.user-tray-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-tray-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

/* ==========================================================================
   6.1 USER QUICK ACCESS POPOUT (DISCORD/SLACK STYLE MENU)
   ========================================================================== */
.user-quick-popout {
  position: absolute;
  bottom: 64px;
  left: 8px;
  width: calc(100% - 16px);
  max-width: 280px;
  background: #2b2d31;
  border: 1px solid #1f2023;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  z-index: 1000;
  overflow: hidden;
  animation: popoutIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes popoutIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popout-header {
  padding: 12px 14px;
  background: #202227;
}

.popout-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.popout-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ff7600;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  overflow: hidden;
  flex-shrink: 0;
}

.popout-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popout-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.popout-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.popout-username {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popout-badge {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ff7600;
}

.popout-badge.mod-badge {
  color: #ef4444;
}

.popout-status-text {
  font-size: 12px;
  color: #949ba4;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popout-status-text:hover {
  color: #ffffff;
}

.popout-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.popout-divider {
  height: 1px;
  background: #1f2023;
  margin: 0;
}

.popout-menu {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.popout-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #dbdee1;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.popout-item:hover {
  background: #202227;
  color: #ffffff;
}

.popout-item svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.popout-item:hover svg {
  opacity: 1;
}

.popout-footer {
  padding: 6px;
  background: #202227;
}

.popout-item.logout-item {
  color: #f87171;
}

.popout-item.logout-item:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.user-tray-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-normal, #f2f3f5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.user-tray-tier {
  font-size: 11.5px;
  font-weight: 700;
  color: #4ade80;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  line-height: 1.2;
}
.user-tray-tier.guest {
  color: var(--text-muted, #949ba4);
}
.user-tray-settings-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: none;
  border: none;
  color: var(--text-muted, #949ba4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.user-tray-settings-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* ==========================================================================
   7. SIDEBAR MODE SWITCHER TABS (STORES vs FORUM)
   ========================================================================== */
.sidebar-mode-switcher {
  padding: 8px 12px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-primary, rgba(255, 255, 255, 0.06));
}
.sidebar-tab-pill-box {
  display: flex;
  background: var(--bg-tertiary, #1e1f22);
  border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.06));
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}
.sidebar-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted, #949ba4);
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.sidebar-tab-btn svg {
  color: var(--text-muted, #949ba4);
  transition: color 0.15s ease;
}
.sidebar-tab-btn:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}
.sidebar-tab-btn:hover:not(.active) svg {
  color: #ffffff;
}
.sidebar-tab-btn.active {
  background: var(--bg-secondary, #2b2d31);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.sidebar-tab-btn.active svg {
  color: var(--brand, #ff7600);
}

/* ══════════════════════════════════════════════════════════════
   CANONICAL FORUM DEAL CARD & VOTE BOX (100% Matches Preview)
   ══════════════════════════════════════════════════════════════ */
.deal-card {
  background: var(--bg-secondary, #2b2d31) !important;
  border: 1px solid var(--border-subtle, #1f2023) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  display: flex !important;
  gap: 14px !important;
  align-items: center !important;
  position: relative !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
}
.deal-card:hover {
  background: var(--bg-secondary, #2b2d31) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  transform: none !important;
}

.vote-box {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  min-width: 44px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  flex-shrink: 0 !important;
  user-select: none !important;
}
.vote-count {
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.comment-number-link {
  transition: color 0.15s ease, opacity 0.15s ease !important;
}
.comment-number-link:hover {
  color: var(--brand, #ff7600) !important;
  text-decoration: underline !important;
}

.deal-details-wrapper {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.deal-title-line {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13.5px !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.deal-title-line .deal-store-tag {
  color: var(--text-muted, #949ba4) !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px !important;
  font-size: 13.5px !important;
  display: inline !important;
  margin-right: 4px !important;
}

.deal-title-line .deal-title {
  font-weight: 700 !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  text-decoration: none !important;
  display: inline !important;
}
.deal-title-line .deal-title:hover {
  color: var(--brand, #ff7600) !important;
  text-decoration: underline !important;
}

.deal-title-line .deal-dash {
  color: var(--text-muted, #949ba4) !important;
  font-weight: 600 !important;
  display: inline !important;
  margin: 0 4px !important;
}

.deal-title-line .deal-price-span {
  font-weight: 800 !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  display: inline !important;
  white-space: nowrap !important;
}

.deal-card .card-actions {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 11.5px !important;
  color: var(--text-muted, #949ba4) !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 8px !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
  line-height: 1.3 !important;
  width: 100% !important;
}

.deal-card .card-actions .actions-meta-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.deal-card .card-actions .actions-buttons-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.social-comment-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 2px 7px 2px 3px !important;
  border-radius: 14px !important;
  color: var(--text-normal, #dbdee1) !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
}
.social-comment-pill:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}
.social-avatar-img {
  width: 17px !important;
  height: 17px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1px solid rgba(0, 0, 0, 0.4) !important;
  flex-shrink: 0 !important;
}
.social-avatar-fallback {
  width: 17px !important;
  height: 17px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #ff7600, #ff5500) !important;
  color: #ffffff !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  border: 1px solid rgba(0, 0, 0, 0.3) !important;
}
.social-comment-count {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #dbdee1 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  line-height: 1 !important;
}

.author-profile-link,
a.author-profile-link,
.deal-card .author-profile-link,
.deal-card a.author-profile-link {
  color: #ff7600 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}
.author-profile-link:hover,
a.author-profile-link:hover,
.deal-card .author-profile-link:hover,
.deal-card a.author-profile-link:hover {
  color: #ffa34d !important;
  text-decoration: underline !important;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE DEAL CARD MEDIA QUERIES
   ══════════════════════════════════════════════════════════════ */

/* Desktop Layout (min-width: 769px) */
@media (min-width: 769px) {
  .deal-card {
    background: var(--bg-secondary, #2b2d31) !important;
    border: 1px solid var(--border-subtle, #1f2023) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    display: flex !important;
    gap: 14px !important;
    align-items: center !important;
    transition: all 0.15s ease !important;
    cursor: default !important;
    overflow: visible !important;
  }
  .deal-top-row {
    display: flex !important;
    align-items: baseline !important;
    width: 100% !important;
  }
  .top-right-score {
    display: none !important;
  }
  .desktop-only-elem {
    display: inline-flex !important;
  }
  .mobile-only-elem {
    display: none !important;
  }
}

/* Mobile Layout (max-width: 768px) */
@media (max-width: 768px) {
  .deal-card {
    background: var(--bg-secondary, #2b2d31) !important;
    border: 1px solid var(--border-subtle, #1f2023) !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 7px !important;
    min-height: 68px !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
    transition: all 0.15s ease !important;
    cursor: default !important;
    position: relative !important;
    overflow: visible !important;
    z-index: 1 !important;
  }
  .deal-card:has(.mobile-deal-dropdown.open),
  .deal-card.menu-active {
    z-index: 99999 !important;
  }
  .deal-top-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .desktop-only-elem {
    display: none !important;
  }
  .mobile-only-elem {
    display: inline-flex !important;
  }
  .deal-title-line {
    font-size: 13px !important;
    letter-spacing: -0.1px !important;
    line-height: 1.35 !important;
  }
  .deal-title-line .deal-store-tag,
  .deal-title-line .deal-title,
  .deal-title-line .deal-price-span {
    font-size: 13px !important;
  }
  .top-right-score {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    flex-shrink: 0 !important;
    margin-top: 1px !important;
    line-height: 1.35 !important;
    letter-spacing: -0.2px !important;
    display: inline-flex !important;
    justify-content: flex-end !important;
    text-align: right !important;
    min-width: 24px !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
  }
  .deal-card .card-actions {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 11px !important;
    color: var(--text-muted, #949ba4) !important;
    margin-top: 2px !important;
    width: 100% !important;
    padding: 0 !important;
  }
  .deal-card .card-actions .actions-meta-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .deal-card .card-actions .actions-buttons-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
  }
  .deal-card .card-actions .author-profile-link {
    font-weight: 400 !important;
    color: #ff7600 !important;
  }
  .mobile-more-btn {
    background: none !important;
    border: none !important;
    color: var(--text-muted, #949ba4) !important;
    padding: 0 !important;
    width: 18px !important;
    height: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    line-height: 1 !important;
  }
  .mobile-more-btn:hover {
    color: #ffffff !important;
  }
  .mobile-card-menu-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }
  .mobile-deal-dropdown {
    position: absolute !important;
    right: 0 !important;
    top: calc(100% + 4px) !important;
    background: #1e1f22 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.75) !important;
    display: none;
    flex-direction: column !important;
    min-width: 135px !important;
    z-index: 100000 !important;
    overflow: hidden !important;
    padding: 4px 0 !important;
  }
  .mobile-deal-dropdown.open {
    display: flex !important;
  }
  .mobile-menu-item {
    background: none !important;
    border: none !important;
    color: #dbdee1 !important;
    padding: 9px 14px !important;
    font-size: 12.5px !important;
    font-family: 'Inter', sans-serif !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    text-align: left !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: background 0.15s ease, color 0.15s ease !important;
  }
  .mobile-menu-item:hover,
  .mobile-menu-item:active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   QUILL DARK THEME & HIGH-CONTRAST TOOLBAR ICONS
   ══════════════════════════════════════════════════════════════ */
.ql-toolbar.ql-snow {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px 10px 0 0 !important;
  background: #27292d !important;
  padding: 8px 12px !important;
}

.ql-container.ql-snow {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-top: none !important;
  border-radius: 0 0 10px 10px !important;
  background: #27292d !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-size: 14px !important;
  color: #f3f4f6 !important;
  min-height: 120px !important;
}

.ql-editor {
  min-height: 120px !important;
  color: #f3f4f6 !important;
}

.ql-editor.ql-blank::before {
  color: #80848e !important;
  font-style: italic !important;
}

.ql-snow .ql-stroke {
  stroke: #dbdee1 !important;
}

.ql-snow .ql-fill {
  fill: #dbdee1 !important;
}

.ql-snow .ql-picker {
  color: #dbdee1 !important;
}

.ql-snow .ql-picker-label {
  color: #dbdee1 !important;
}

.ql-snow .ql-picker-label svg .ql-stroke {
  stroke: #dbdee1 !important;
}

.ql-snow .ql-toolbar button:hover,
.ql-snow .ql-toolbar button.ql-active {
  color: #ff7600 !important;
}

.ql-snow .ql-toolbar button:hover .ql-stroke,
.ql-snow .ql-toolbar button.ql-active .ql-stroke {
  stroke: #ff7600 !important;
}

.ql-snow .ql-toolbar button:hover .ql-fill,
.ql-snow .ql-toolbar button.ql-active .ql-fill {
  fill: #ff7600 !important;
}



/* Hide Back Button Everywhere on Desktop Screens (min-width: 900px) */
@media (min-width: 900px) {
  .settings-back-btn,
  button.settings-back-btn,
  #nativeNavBackBtn,
  .dm-back-btn,
  .cat-nav-back-btn {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  .dm-nav-header {
    display: none !important;
  }
}


/* ══════════════════════════════════════════════════════════════════════════════
   UNIFIED DESKTOP VIEWPORT WIDTH SYSTEM
   Locks all pages, forum feeds, account sections, and tools to the exact 
   1080px desktop width of the Cosmetic Shop and Overview Console.
   ══════════════════════════════════════════════════════════════════════════════ */
:root {
  --desktop-page-width: 1080px;
}

@media (min-width: 1000px) {
  /* Main feed viewport container */
  .messages-scroller,
  #messagesList {
    max-width: var(--desktop-page-width, 1080px) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  /* All page wrappers across all views */
  .account-native-mobile,
  .account-portal-container,
  .submit-page-wrapper,
  .forum-categories-wrapper,
  .dm-mobile-wrapper,
  .thread-container,
  .profile-page-container,
  .overview-container,
  .feed-container,
  .trending-section,
  .feed-tabs-header,
  .discord-footer-inner {
    max-width: var(--desktop-page-width, 1080px) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
}

