/* ============================================
   VISION TV v7 — PREMIUM REDESIGN
   World-class polish · Mobile-first · Accessible
   ============================================ */

/* ---- DESIGN TOKENS ---- */
:root {
  /* Type scale — premium typography */
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-text: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Spacing — 4px base */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;

  /* Radii */
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;

  /* Premium shadows — multi-layer */
  --sh-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 4px rgba(0,0,0,0.06);
  --sh-md: 0 2px 6px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.08);
  --sh-lg: 0 4px 12px rgba(0,0,0,0.08), 0 16px 32px rgba(0,0,0,0.12);
  --sh-xl: 0 8px 24px rgba(0,0,0,0.12), 0 24px 64px rgba(0,0,0,0.18);
  --sh-gold: 0 8px 28px rgba(212,175,55,0.32), 0 4px 12px rgba(212,175,55,0.18);

  /* Motion — Apple-style easings */
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --d-fast: 150ms;
  --d-base: 250ms;
  --d-slow: 380ms;

  /* Touch — accessibility */
  --touch-min: 48px;
  --touch-comfort: 56px;

  /* Glass surfaces */
  --glass-bg: rgba(255,255,255,0.04);
  --glass-bg-strong: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.08);
}

body.theme-light {
  --glass-bg: rgba(0,0,0,0.03);
  --glass-bg-strong: rgba(0,0,0,0.06);
  --glass-border: rgba(0,0,0,0.06);
  --sh-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 4px rgba(0,0,0,0.05);
  --sh-md: 0 2px 8px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.06);
  --sh-lg: 0 4px 16px rgba(0,0,0,0.06), 0 16px 40px rgba(0,0,0,0.08);
  --sh-gold: 0 8px 28px rgba(184,134,11,0.22), 0 4px 12px rgba(184,134,11,0.14);
}

/* ---- TYPOGRAPHY UPGRADES ---- */
body {
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.01em;
}

.v7-display { font-family: var(--font-display); font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -0.02em; }
.v7-h1 { font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.015em; }
.v7-h2 { font-family: var(--font-display); font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; }
.v7-body { font-size: 15px; line-height: 22px; font-weight: 400; }
.v7-body-strong { font-size: 15px; line-height: 22px; font-weight: 600; }
.v7-caption { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text-secondary); }
.v7-tiny { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }

/* ---- GLASS HEADER (sticky, blurred) ---- */
.header,
header.header {
  background: var(--bg-glass-strong, rgba(0,0,0,0.6)) !important;
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--glass-border) !important;
  height: 56px !important;
}
body.theme-light .header { background: rgba(255,255,255,0.72) !important; }

/* ---- BOTTOM NAV — premium pill style ---- */
.bottom-nav {
  background: var(--bg-glass-strong, rgba(0,0,0,0.7)) !important;
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: 1px solid var(--glass-border) !important;
  padding-bottom: env(safe-area-inset-bottom, 0) !important;
  height: auto !important;
  min-height: 64px !important;
}
body.theme-light .bottom-nav { background: rgba(255,255,255,0.82) !important; }

.bottom-nav .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 4px 8px !important;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--d-fast) var(--ease-out);
}
.bottom-nav .nav-item:active { transform: scale(0.92); }
.bottom-nav .nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(212,175,55,0.6);
}
.bottom-nav .nav-item span:last-child {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
}

/* ---- BIG TOUCH TARGETS (accessibility) ---- */
button, .btn, .nav-item, [onclick], a {
  -webkit-tap-highlight-color: transparent;
}
button, .btn {
  min-height: var(--touch-min);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform var(--d-fast) var(--ease-out), background var(--d-fast), box-shadow var(--d-fast);
  cursor: pointer;
  font-family: var(--font-text);
}
button:active, .btn:active { transform: scale(0.97); }

.btn-gold,
.btn.btn-gold {
  background: linear-gradient(135deg, #F7D060 0%, #D4AF37 50%, #B8860B 100%) !important;
  color: #1A1A1A !important;
  box-shadow: var(--sh-gold) !important;
  font-weight: 700 !important;
  border: none !important;
}
.btn-gold:active { box-shadow: var(--sh-md) !important; }

/* Ghost / subtle button */
.btn-ghost {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.btn-ghost:active { background: var(--glass-bg-strong); }

/* ---- PREMIUM CARDS ---- */
.v7-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: var(--s5);
  box-shadow: var(--sh-sm);
  transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}
.v7-card:active { transform: scale(0.985); box-shadow: var(--sh-md); }

.v7-card-elevated {
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  padding: var(--s6);
  box-shadow: var(--sh-md);
  border: 1px solid var(--glass-border);
}

/* ---- HERO CARD (home greeting) ---- */
.v7-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: var(--s8) var(--s6);
  margin-bottom: var(--s5);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(212,175,55,0.18), transparent 60%),
    radial-gradient(80% 100% at 100% 100%, rgba(99,102,241,0.16), transparent 60%),
    linear-gradient(135deg, #0F0A1F 0%, #060414 100%);
  color: #FFFFFF;
  isolation: isolate;
}
body.theme-light .v7-hero {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(212,175,55,0.22), transparent 60%),
    radial-gradient(80% 100% at 100% 100%, rgba(99,102,241,0.14), transparent 60%),
    linear-gradient(135deg, #1B1535 0%, #0E0A20 100%);
}
.v7-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
  z-index: -1;
}
.v7-hero-greet {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s2);
  color: #FFFFFF !important;
}
.v7-hero-sub {
  font-size: 13px;
  line-height: 18px;
  color: rgba(212,175,55,0.95) !important;
  font-style: italic;
  font-weight: 500;
  margin: 0 0 var(--s5);
}
.v7-hero-verse {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 26px;
  font-weight: 500;
  color: rgba(255,255,255,0.96) !important;
  margin: var(--s4) 0 var(--s2);
}
.v7-hero-ref {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold) !important;
}

/* ---- 4-UP QUICK ACTION GRID ---- */
.v7-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
  margin-bottom: var(--s6);
}
.v7-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 88px;
  padding: var(--s4) var(--s2);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: transform var(--d-fast) var(--ease-out), background var(--d-fast);
  position: relative;
  overflow: hidden;
}
.v7-quick:active { transform: scale(0.94); }
.v7-quick-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.v7-quick-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-primary);
}

/* ---- SECTION TITLE ---- */
.v7-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: var(--s8) var(--s1) var(--s4);
}
.v7-section-title h2 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0;
}
.v7-section-title a {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  cursor: pointer;
}

/* ---- HORIZONTAL SCROLL ROW ---- */
.v7-hscroll {
  display: flex;
  gap: var(--s3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--s4) var(--s4);
  margin: 0 calc(-1 * var(--s4));
  scrollbar-width: none;
}
.v7-hscroll::-webkit-scrollbar { display: none; }
.v7-hscroll-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: var(--r-lg);
}

/* ---- FEATURED CONTENT CARD ---- */
.v7-feature-card {
  position: relative;
  display: block;
  width: 280px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform var(--d-base) var(--ease-out);
}
.v7-feature-card:active { transform: scale(0.97); }
.v7-feature-card .v7-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-elevated);
  background-position: center;
  background-size: cover;
  position: relative;
}
.v7-feature-card .v7-meta {
  padding: var(--s3) var(--s4) var(--s4);
}
.v7-feature-card .v7-feature-title {
  font-size: 14px;
  line-height: 19px;
  font-weight: 600;
  margin: 0 0 var(--s1);
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v7-feature-card .v7-feature-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Live badge */
.v7-live-badge {
  position: absolute;
  top: var(--s3);
  left: var(--s3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #FF1744;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
}
.v7-live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-live 1.4s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---- LIST ROWS (Watch/Faith/Connect/Me hub items) ---- */
.v7-list { padding: 0; margin: 0; list-style: none; }
.v7-row {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  margin-bottom: var(--s2);
  cursor: pointer;
  transition: transform var(--d-fast) var(--ease-out), background var(--d-fast);
  text-decoration: none;
  color: inherit;
  min-height: var(--touch-comfort);
}
.v7-row:active { transform: scale(0.98); background: var(--bg-elevated); }
.v7-row-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.v7-row-body { flex: 1; min-width: 0; }
.v7-row-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: var(--text-primary);
  margin: 0;
}
.v7-row-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 18px;
  margin: 2px 0 0;
}
.v7-row-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ---- SKELETON LOADERS ---- */
.v7-skel {
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-elevated) 50%, var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--r-md);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.v7-skel-line { height: 12px; margin: 8px 0; }
.v7-skel-card {
  height: 160px;
  width: 280px;
  border-radius: var(--r-lg);
  flex-shrink: 0;
}

/* ---- PAGE TRANSITIONS (fade + slight slide) ---- */
.page {
  animation: pageIn var(--d-base) var(--ease-out);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- CONTENT WIDTH (mobile-first, comfortable on desktop) ---- */
.app-content,
#mainContent,
[class*="page-content"],
.page {
  max-width: 720px;
  margin: 0 auto;
  padding-left: var(--s4) !important;
  padding-right: var(--s4) !important;
}

/* ---- INPUTS (premium feel) ---- */
.input,
input.input,
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select.input,
textarea.input {
  background: var(--bg-card) !important;
  border: 1.5px solid var(--glass-border) !important;
  border-radius: var(--r-md) !important;
  padding: 14px 16px !important;
  font-size: 15px !important;
  font-family: var(--font-text);
  color: var(--text-primary) !important;
  min-height: var(--touch-min);
  transition: border var(--d-fast), background var(--d-fast);
}
.input:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: var(--gold) !important;
  background: var(--bg-elevated) !important;
}

/* ---- FLOATING ACTION BUTTONS (AI + SOS) ---- */
#aiFloat {
  bottom: 90px !important;
  right: 16px !important;
  width: 52px !important;
  height: 52px !important;
  background: linear-gradient(135deg, #6366F1, #8B5CF6) !important;
  box-shadow: 0 8px 24px rgba(99,102,241,0.45), 0 4px 12px rgba(99,102,241,0.25) !important;
  z-index: 90 !important;
  bottom: calc(90px + env(safe-area-inset-bottom, 0)) !important;
}
.sos-fab {
  width: 60px !important;
  height: 60px !important;
  bottom: 20px !important;
  right: 14px !important;
  bottom: calc(20px + env(safe-area-inset-bottom, 0)) !important;
  background: linear-gradient(135deg, #FF3B47 0%, #C70015 100%) !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  letter-spacing: 0.04em !important;
  box-shadow: 0 10px 28px rgba(199,0,21,0.45), 0 4px 14px rgba(199,0,21,0.28) !important;
  border: 2px solid rgba(255,255,255,0.18) !important;
  z-index: 91 !important;
}

/* Repositions: AI floats above SOS, both above bottom nav */
@media (max-width: 720px) {
  #aiFloat { bottom: calc(160px + env(safe-area-inset-bottom, 0)) !important; }
  .sos-fab { bottom: calc(96px + env(safe-area-inset-bottom, 0)) !important; }
}

/* ---- TOAST IMPROVEMENTS ---- */
.toast {
  border-radius: var(--r-md) !important;
  box-shadow: var(--sh-lg) !important;
  font-size: 14px !important;
  padding: 14px 18px !important;
  backdrop-filter: blur(12px);
}

/* ---- MODAL POLISH ---- */
.modal {
  border-radius: var(--r-xl) var(--r-xl) 0 0 !important;
  box-shadow: var(--sh-xl) !important;
}

/* ---- CHIPS / FILTER PILLS ---- */
.v7-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-full);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--d-fast) var(--ease-out);
}
.v7-chip:active { transform: scale(0.95); }
.v7-chip.active {
  background: var(--gold);
  color: #1A1A1A;
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(212,175,55,0.32);
}

/* ---- EMPTY STATES ---- */
.v7-empty {
  text-align: center;
  padding: var(--s12) var(--s4);
}
.v7-empty-icon {
  font-size: 56px;
  margin-bottom: var(--s4);
  opacity: 0.6;
}
.v7-empty h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 var(--s2);
  color: var(--text-primary);
}
.v7-empty p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 280px;
  margin: 0 auto var(--s5);
  line-height: 20px;
}

/* ---- ACCESSIBILITY: focus rings ---- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--r-md);
}

/* ---- PROFILE / AVATAR IMPROVEMENTS ---- */
.avatar {
  border-radius: 50%;
  background: var(--gold-gradient, linear-gradient(135deg, #D4AF37, #B8860B));
  color: #1A1A1A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-xs { width: 28px; height: 28px; font-size: 11px; }
.avatar-sm { width: 36px; height: 36px; font-size: 13px; }
.avatar-md { width: 44px; height: 44px; font-size: 16px; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }
.avatar-xl { width: 80px; height: 80px; font-size: 28px; }

/* ---- FILTER PILL (legacy mf-pill) ---- */
.mf-pill {
  padding: 8px 14px !important;
  border-radius: var(--r-full) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--glass-border) !important;
  cursor: pointer;
  transition: all var(--d-fast) var(--ease-out);
}
.mf-pill:active { transform: scale(0.95); }
.mf-pill.active {
  background: var(--gold) !important;
  color: #1A1A1A !important;
  border-color: var(--gold) !important;
  box-shadow: 0 4px 12px rgba(212,175,55,0.32);
}

/* ---- HOVER (desktop) ---- */
@media (hover: hover) {
  .v7-card:hover, .v7-row:hover, .v7-feature-card:hover, .v7-quick:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
  }
  button:hover { transform: translateY(-1px); }
}

/* ---- REDUCE MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- OFFERING / AUTH AESTHETICS ---- */
#authScreen {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(212,175,55,0.10), transparent 60%),
    radial-gradient(80% 100% at 100% 100%, rgba(99,102,241,0.08), transparent 60%),
    var(--bg-primary);
  min-height: 100vh;
}
body.theme-light #authScreen {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(212,175,55,0.16), transparent 60%),
    radial-gradient(80% 100% at 100% 100%, rgba(99,102,241,0.10), transparent 60%),
    var(--bg-primary);
}

/* ---- HIDE legacy section-color-dot — replaced by typography ---- */
.section-color-dot { display: none !important; }

/* ---- HOME SECTION TITLE override ---- */
.home-section-title {
  font-family: var(--font-display) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  margin: var(--s6) 0 var(--s3) !important;
  color: var(--text-primary) !important;
}
.home-section-title::before {
  display: none !important;
}

/* ---- DAILY ACTION CARD upgrade ---- */
.daily-action-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--r-lg) !important;
  padding: var(--s5) !important;
  box-shadow: var(--sh-sm);
}

/* ---- LIVE BANNER upgrade ---- */
.live-banner {
  background: linear-gradient(135deg, rgba(255,23,68,0.12), rgba(255,23,68,0.04)) !important;
  border: 1px solid rgba(255,23,68,0.25) !important;
  border-radius: var(--r-lg) !important;
  padding: var(--s4) var(--s5) !important;
}

/* ---- HSCROLL ITEM upgrade ---- */
.hscroll-item, .hscroll-item-large, .video-card {
  border-radius: var(--r-lg) !important;
  overflow: hidden;
  background: var(--bg-card) !important;
  border: 1px solid var(--glass-border) !important;
  transition: transform var(--d-base) var(--ease-out);
}
.hscroll-item:active, .video-card:active { transform: scale(0.97); }

/* ---- SECTION CARD (grid items in old design) ---- */
.section-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--r-md) !important;
  padding: var(--s4) !important;
  min-height: 88px !important;
  transition: transform var(--d-fast) var(--ease-out);
}
.section-card:active { transform: scale(0.96); }
.section-card .card-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: var(--r-sm) !important;
}
.section-card .card-title {
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: -0.005em;
}

/* ---- TABS (ChatTabs, MarketTabs, ReelsTabs) ---- */
.tabs {
  background: var(--glass-bg);
  padding: 4px;
  border-radius: var(--r-full);
  display: inline-flex;
  margin-bottom: var(--s5);
}
.tab {
  padding: 8px 16px !important;
  border-radius: var(--r-full) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
  cursor: pointer;
  transition: all var(--d-fast) var(--ease-out);
  border: none !important;
  background: transparent !important;
}
.tab.active {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  box-shadow: var(--sh-sm);
}

/* ---- SEARCH BAR (premium pill) ---- */
.search-bar {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--r-full) !important;
  padding: 12px 18px !important;
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-bar svg { color: var(--text-secondary); flex-shrink: 0; }
.search-bar input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  font-size: 15px !important;
  color: var(--text-primary) !important;
  flex: 1;
  min-width: 0;
}
.search-bar input::placeholder { color: var(--text-muted); }

/* ---- HEADER BTN (icon buttons in header) ---- */
.header-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: var(--r-full) !important;
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--d-fast) var(--ease-out);
}
.header-btn:active { transform: scale(0.92); }

/* ---- NOTIFICATION BADGE ---- */
.badge,
.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #FF3B47;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--bg-primary);
}


/* ---- v7 Light Mode parity (works with [data-theme="light"] on <html>) ---- */
[data-theme="light"] {
  --glass-bg: rgba(0,0,0,0.03);
  --glass-bg-strong: rgba(0,0,0,0.06);
  --glass-border: rgba(0,0,0,0.06);
  --sh-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 4px rgba(0,0,0,0.05);
  --sh-md: 0 2px 8px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.06);
  --sh-lg: 0 4px 16px rgba(0,0,0,0.06), 0 16px 40px rgba(0,0,0,0.08);
  --sh-gold: 0 8px 28px rgba(184,134,11,0.22), 0 4px 12px rgba(184,134,11,0.14);
}
[data-theme="light"] .header { background: rgba(255,255,255,0.72) !important; }
[data-theme="light"] .bottom-nav { background: rgba(255,255,255,0.82) !important; }
[data-theme="light"] #authScreen {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(212,175,55,0.16), transparent 60%),
    radial-gradient(80% 100% at 100% 100%, rgba(99,102,241,0.10), transparent 60%),
    var(--bg-primary);
}
