/* ============================================================
   ליכודלינק — PREMIUM DESIGN SYSTEM v3
   Dark glassmorphism · navy spectrum · RTL Hebrew-first
   ============================================================ */

:root {
  /* ── Brand blue scale — Likud royal (accents · buttons · links) ── */
  --navy-950: #07173F;
  --navy-900: #0A2A63;
  --navy-850: #0B3A8A;
  --navy-800: #0E47A8;
  --navy-700: #0B47C4;
  --navy-600: #0B47C4;     /* primary brand blue */
  --navy-500: #1257D6;
  --sky:      #2E74F0;
  --sky-soft: #5B93F5;

  /* ── Accent (formerly gold) — now Likud blue, per brand ── */
  --gold:     #2E74F0;
  --gold-2:   #0B47C4;

  /* ── Neutrals (LIGHT theme) ──
     NOTE: in this theme --white is the primary heading INK (not #fff).
     Real white is written as #fff inline where text sits on a color. */
  --white:    #14233F;     /* headings */
  --mist:     #2A3A57;     /* primary body text */
  --muted:    #44526B;     /* secondary text (darkened for stronger contrast) */
  --faint:    #4E5C76;     /* tertiary text (darkened, solid AA on light bg) */
  --line:     rgba(16,33,73,0.07);
  --line-2:   rgba(16,33,73,0.13);
  --ink:      #0E1B3D;

  /* ── Surfaces ── */
  --bg:           #EEF1F8;
  --bg-elev:      #FFFFFF;
  --fill:         rgba(11,71,196,0.06);   /* subtle chip / hover fill */
  --fill-2:       rgba(11,71,196,0.12);   /* stronger hover */
  --glass:        #FFFFFF;
  --glass-strong: #FFFFFF;
  --glass-hover:  #F6F8FE;

  /* ── Feedback ── */
  --green:    #0C8A4B;
  --green-d:  #0A7A42;
  --red:      #E23B52;
  --like:     #E8334F;

  /* ── Gradients ── */
  --grad-brand:  linear-gradient(135deg, #0B47C4 0%, #2E74F0 100%);
  --grad-gold:   linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  --grad-hero:   linear-gradient(180deg, #F4F6FC 0%, #E7ECF7 100%);

  /* ── Shadows — soft cards lift by shadow, not by outline ── */
  --sh-1: 0 1px 2px rgba(16,33,73,0.05), 0 4px 14px rgba(16,33,73,0.06);
  --sh-2: 0 2px 6px rgba(16,33,73,0.05), 0 12px 30px rgba(16,33,73,0.08);
  --sh-3: 0 22px 54px rgba(16,33,73,0.16);
  --glow-blue: 0 6px 22px rgba(11,71,196,0.26);
  --glow-gold: 0 6px 20px rgba(11,71,196,0.30);

  /* ── Radii ── */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  /* ── Misc ── */
  --hdr: 80px;
  --maxw: 1180px;
  --feed: 600px;
  --font: 'Assistant', 'Heebo', system-ui, sans-serif;
  --font-display: 'Frank Ruhl Libre', 'Assistant', Georgia, serif;
  --ease: cubic-bezier(.2,.7,.3,1);
  --pop: cubic-bezier(.34,1.56,.64,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--mist);
  direction: rtl;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, textarea, select { font-family: inherit; }
::selection { background: rgba(77,157,255,0.35); }

/* ============================================================
   AMBIENT BACKGROUND
   ============================================================ */
.bg-layer { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--grad-hero); }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.16; will-change: transform; }
.orb--a {
  width: 520px; height: 520px; top: -140px; inset-inline-start: -120px;
  background: radial-gradient(circle, #2E74F0 0%, transparent 68%);
  animation: floatA 26s ease-in-out infinite;
}
.orb--b {
  width: 560px; height: 560px; bottom: -180px; inset-inline-end: -140px;
  background: radial-gradient(circle, #6FA0F5 0%, transparent 70%);
  animation: floatB 32s ease-in-out infinite;
}
.orb--c {
  width: 380px; height: 380px; top: 38%; inset-inline-start: 52%;
  background: radial-gradient(circle, #2E74F0 0%, transparent 70%);
  opacity: 0.08;
  animation: floatA 38s ease-in-out infinite reverse;
}
@keyframes floatA { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,30px)} }
@keyframes floatB { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-50px,-30px)} }

#stars-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-grain {
  position: absolute; inset: 0; opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .confetti-pc, .feed-spinner, .float-pts { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed; top: 0; inset-inline: 0;
  height: var(--hdr); z-index: 1000;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
#site-header.scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 6px 24px rgba(16,33,73,0.10);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 18px;
  padding-inline: 20px;
}
.logo { display: flex; align-items: center; height: 100%; padding: 8px 0; flex-shrink: 0; }
/* wordmark scales down on narrow screens so it can't crowd out the header actions
   (the ליכודלינק wordmark is much wider than the old square logo was) */
.header-logo-img { height: clamp(34px, 8.5vw, 54px); width: auto; display: block; }

.top-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 8px; }
.top-nav a {
  position: relative; padding: 8px 14px; border-radius: 10px;
  font-size: 0.92rem; font-weight: 600; color: var(--muted);
  transition: color 0.18s, background 0.18s;
}
.top-nav a:hover { color: var(--white); background: var(--fill); }
.top-nav a.active { color: var(--white); }
.top-nav a.active::after {
  content: ''; position: absolute; bottom: 2px; inset-inline: 14px; height: 2px;
  background: var(--grad-brand); border-radius: 2px;
}

.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }

.points-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(11,71,196,0.12);
  border: 1px solid rgba(11,71,196,0.30);
  border-radius: 999px; padding: 6px 14px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s;
}
.points-chip:hover { transform: translateY(-1px); box-shadow: var(--glow-gold); }
.pc-star { color: var(--gold); font-size: 0.85rem; }
#total-points { font-weight: 800; font-size: 0.9rem; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.pc-label { font-size: 0.72rem; color: var(--muted); }

.join-cta {
  display: inline-flex; align-items: center;
  background: var(--grad-brand); color: #fff;
  font-weight: 700; font-size: 0.9rem;
  padding: 9px 20px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(46,99,230,0.4);
  transition: transform 0.18s var(--ease), box-shadow 0.18s;
}
.join-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(46,99,230,0.55); }

.hamburger {
  width: 42px; height: 42px; display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; border-radius: 11px; transition: background 0.18s;
}
.hamburger:hover { background: var(--fill); }
.hamburger span { display: block; width: 21px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.28s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .top-nav { display: none; }
  .hamburger { display: flex; }
  .join-cta { display: none; }
  /* Secondary header actions collapse into the hamburger menu — which already
     links to points/chats/profile/admin — so a wide wordmark + many buttons can
     never overflow the header on a phone. (!important beats the inline display
     that JS toggles on these when logged in.) */
  .points-chip, .chat-btn, .user-menu { display: none !important; }
  .header-inner { gap: 10px; padding-inline: 14px; }
  .header-actions { gap: 8px; }
}
@media (max-width: 560px) {
  .header-inner { gap: 8px; padding-inline: 12px; }
  .header-actions { gap: 6px; }
}

/* ============================================================
   SIDE NAV (mobile drawer)
   ============================================================ */
.nav-overlay {
  position: fixed; inset: 0; z-index: 1001;
  background: rgba(3,8,28,0.6); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity 0.28s;
}
.nav-overlay.vis { opacity: 1; pointer-events: all; }
.side-nav {
  position: fixed; top: 0; inset-inline-end: -320px;
  width: 300px; height: 100dvh; z-index: 1002;
  background: var(--bg-elev);
  border-inline-start: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(16,33,73,0.18);
  display: flex; flex-direction: column;
  transition: inset-inline-end 0.34s var(--ease);
}
.side-nav.open { inset-inline-end: 0; }
.nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.nav-logo-img { height: 46px; width: auto; }
.nav-close {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; font-size: 0.95rem; color: var(--muted); transition: all 0.15s;
}
.nav-close:hover { background: var(--fill); color: var(--white); }
.nav-links { padding: 14px 0; flex: 1; }
.nav-links a {
  display: flex; align-items: center; gap: 14px; padding: 14px 22px;
  font-size: 1rem; font-weight: 500; color: var(--mist); transition: all 0.15s;
  border-inline-start: 3px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(46,99,230,0.14); color: var(--white);
  border-inline-start-color: var(--gold);
}
.nicon { font-size: 1.15rem; width: 24px; text-align: center; }
.nav-foot { padding: 16px 22px; border-top: 1px solid var(--line); }
.nav-admin-link { font-size: 0.82rem; color: var(--faint); transition: color 0.15s; }
.nav-admin-link:hover { color: var(--muted); }

/* ============================================================
   PAGE ROOT
   ============================================================ */
#page-root { position: relative; z-index: 1; margin-top: var(--hdr); min-height: calc(100dvh - var(--hdr)); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  position: relative; text-align: center;
  padding: 20px 20px 4px;
  max-width: 760px; margin: 0 auto;
}
.hero-logo { width: 124px; max-width: 38vw; margin: 0 auto 6px; opacity: 0.97; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4)); }
.hero-slogan {
  font-size: clamp(0.78rem, 2.5vw, 0.98rem);
  color: var(--mist); font-weight: 600; letter-spacing: 0.01em;
  margin: 0; white-space: nowrap;
}
.hero-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  transition: transform 0.18s var(--ease), box-shadow 0.18s, background 0.18s;
}
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--glow-blue); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(46,99,230,0.6); }
.btn-ghost { background: var(--fill); color: var(--white); border: 1px solid var(--line-2); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--fill-2); }

/* ============================================================
   FEED
   ============================================================ */
.feed-wrap { max-width: var(--feed); margin: 0 auto; padding: 18px 14px 90px; }

/* ── Home two-column layout (feed + sidebar) ── */
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--feed)) 244px;
  gap: 28px;
  justify-content: center;
  max-width: 912px;
  margin: 0 auto;
  padding: 10px 16px 96px;
  align-items: start;
}
.home-main { min-width: 0; }
.home-aside {
  position: sticky;
  top: calc(var(--hdr) + 16px);
  display: flex; flex-direction: column; gap: 14px;
}
.aside-card {
  background: var(--bg-elev);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: 14px;
  box-shadow: var(--sh-2);
}
.ac-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.ac-ico { font-size: 1.7rem; line-height: 1; }
.ac-title { font-weight: 800; font-size: 0.94rem; color: var(--white); }
.ac-sub { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.ac-progress { height: 7px; border-radius: 999px; background: var(--fill-2); overflow: hidden; margin-bottom: 13px; }
.ac-progress > i { display: block; height: 100%; background: var(--grad-brand); border-radius: 999px; }
.ac-btn {
  display: block; text-align: center; padding: 10px; border-radius: var(--r-sm);
  background: var(--grad-brand); color: #fff; font-weight: 700; font-size: 0.86rem;
  box-shadow: var(--glow-blue); transition: transform 0.16s var(--ease);
}
.ac-btn:hover { transform: translateY(-2px); }
.ac-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 11px; }

/* weekly leaders */
.lead-list { display: flex; flex-direction: column; gap: 9px; }
.lead-row { display: flex; align-items: center; gap: 9px; font-size: 0.85rem; }
.lead-rank { width: 20px; text-align: center; font-weight: 800; color: var(--faint); font-size: 0.78rem; flex-shrink: 0; }
.lead-rank.top { font-size: 1rem; }
.lead-name { flex: 1; min-width: 0; font-weight: 600; color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-pts { font-weight: 800; color: var(--gold-2); font-variant-numeric: tabular-nums; font-size: 0.8rem; flex-shrink: 0; }

/* trending tags */
.aside-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.aside-tags span { font-size: 0.78rem; font-weight: 700; color: var(--navy-600); background: var(--fill); padding: 5px 10px; border-radius: 999px; }
.aside-foot { font-size: 0.7rem; color: var(--faint); text-align: center; padding: 2px 8px; line-height: 1.6; }
@media (max-width: 980px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .home-layout { grid-template-columns: 1fr; max-width: var(--feed); padding-bottom: 90px; }
  .home-aside { display: none; }
}
.feed-tab-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
  padding-bottom: 4px;
}
.feed-tab-row .ft-title { font-size: 1.15rem; font-weight: 800; color: var(--white); }
.feed-tab-row .ft-live {
  margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; color: var(--muted); font-weight: 600;
}
.ft-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(47,210,126,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(47,210,126,0.5)} 70%{box-shadow:0 0 0 8px rgba(47,210,126,0)} 100%{box-shadow:0 0 0 0 rgba(47,210,126,0)} }

/* glass card base */
.glass {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2), inset 0 1px 0 var(--fill);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-strong); }
  #site-header { background: rgba(255,255,255,0.98); }
}

/* Borderless cards lift by soft shadow instead of an outline frame */
.reward, .ben-card, .stat-cell, .earn-item, .mem-card, .theater,
.kpi, .admin-panel, .cmp-table, .video-ph { box-shadow: var(--sh-1); }

.post-card {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2), inset 0 1px 0 var(--fill);
  margin-bottom: 16px; overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.post-card:hover {
  transform: translateY(-3px); background: var(--glass-hover);
  border-color: var(--line-2); box-shadow: var(--sh-3), inset 0 1px 0 var(--fill);
}

.post-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 10px; }
.post-avatar {
  width: 41px; height: 41px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(46,99,230,0.5);
  border: 2px solid var(--fill-2); overflow: hidden; padding: 0;
}
.post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { flex: 1; min-width: 0; }
.post-author { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 0.95rem; color: var(--white); }
.verified { width: 16px; height: 16px; flex-shrink: 0; }
.post-date { font-size: 0.76rem; color: var(--muted); margin-top: 1px; }
.post-time { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; color: var(--faint); margin-top: 2px; }
.post-time svg { width: 12px; height: 12px; }
.post-official {
  font-size: 0.66rem; font-weight: 700; color: var(--gold-2);
  background: rgba(11,71,196,0.12); border: 1px solid rgba(11,71,196,0.28);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.post-body { padding: 4px 18px 14px; font-size: 1rem; line-height: 1.72; color: var(--mist); white-space: pre-line; }

.post-media { position: relative; width: 100%; overflow: hidden; }
.post-media img { width: 100%; max-height: 380px; object-fit: cover; display: block; }
.media-caption {
  position: absolute; inset-inline: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(3,8,28,0.82));
  color: #fff; font-size: 0.8rem; padding: 26px 16px 12px; font-weight: 500;
}
.video-ph {
  width: 100%; height: 230px; cursor: pointer; position: relative;
  background: linear-gradient(135deg, #0B1A52, #1D45BE);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.play-ring {
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--fill-2); border: 2px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: #fff;
  backdrop-filter: blur(4px); transition: transform 0.2s var(--pop);
}
.video-ph:hover .play-ring { transform: scale(1.08); }
.v-label { font-size: 0.82rem; color: rgba(255,255,255,0.75); }

/* engagement bar */
.post-actions { display: flex; align-items: center; gap: 6px; padding: 8px 12px 12px; }
.act-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--fill); color: var(--muted);
  font-size: 0.82rem; font-weight: 600; transition: all 0.16s var(--ease); user-select: none;
}
.act-btn .aico { font-size: 1.05rem; line-height: 1; }
.act-btn .acnt { font-variant-numeric: tabular-nums; }
.act-btn:hover { background: rgba(46,99,230,0.16); color: var(--white); transform: translateY(-1px); }
.act-btn:active { transform: scale(0.95); }
.like-btn.liked { color: var(--like); background: rgba(255,77,109,0.14); }
.like-btn.liked .aico { animation: likePop 0.4s var(--pop); }
@keyframes likePop { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }
.share-btn { margin-inline-start: auto; }

/* floating +points */
.float-pts {
  position: absolute; pointer-events: none; z-index: 20;
  font-weight: 800; font-size: 0.92rem; color: var(--gold-2);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  animation: floatUp 1s ease forwards;
}
@keyframes floatUp { 0%{opacity:0;transform:translateY(0) scale(0.8)} 20%{opacity:1} 100%{opacity:0;transform:translateY(-44px) scale(1.1)} }

.load-more-btn {
  display: block; width: 100%; padding: 14px;
  background: var(--fill); border: 1px solid transparent;
  border-radius: var(--r-md); font-size: 0.9rem; font-weight: 600; color: var(--mist);
  transition: all 0.2s; margin-top: 4px;
}
.load-more-btn:hover { background: var(--fill-2); transform: translateY(-1px); }

/* skeleton */
.skel-card { height: 220px; border-radius: var(--r-lg); margin-bottom: 16px;
  background: linear-gradient(100deg, #EAEFF8 30%, #F6F9FF 50%, #EAEFF8 70%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ============================================================
   INVITE MODULE (home)
   ============================================================ */
.invite-card {
  margin-bottom: 16px; padding: 22px; border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(11,71,196,0.08), rgba(46,116,240,0.05));
  border: 1px solid rgba(11,71,196,0.45);
  box-shadow: var(--sh-2);
}
.invite-card .iv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.iv-badge { font-size: 1.9rem; filter: drop-shadow(0 2px 6px rgba(11,71,196,0.5)); }
.iv-head .iv-title { font-size: 1.18rem; font-weight: 800; color: var(--white); }
.iv-head .iv-desc { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.iv-rewards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.iv-reward {
  background: var(--fill); border: 1px solid transparent;
  border-radius: var(--r-md); padding: 14px 12px; text-align: center;
}
.iv-reward .ivr-ico { font-size: 1.3rem; }
.iv-reward .ivr-val { font-size: 1.35rem; font-weight: 900; color: var(--gold-2); margin-top: 2px; }
.iv-reward .ivr-lbl { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.iv-link-row { display: flex; gap: 8px; margin-bottom: 14px; }
.iv-link-input {
  flex: 1; min-width: 0;   /* let the URL field shrink instead of overflowing the blue card */
  background: var(--fill); border: 1px solid transparent;
  border-radius: var(--r-sm); padding: 11px 14px; color: var(--mist);
  font-size: 0.82rem; direction: ltr; text-align: left; outline: none;
}
.invite-card { overflow: hidden; }   /* belt-and-suspenders: nothing spills past the rounded card */
.iv-copy-btn {
  padding: 11px 18px; border-radius: var(--r-sm); background: var(--grad-brand);
  color: #fff; font-weight: 700; font-size: 0.84rem; white-space: nowrap;
  transition: transform 0.16s var(--ease);
}
.iv-copy-btn:hover { transform: translateY(-1px); }
.iv-channels { display: flex; gap: 8px; flex-wrap: wrap; }
.iv-chan {
  flex: 1; min-width: 86px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 10px; border-radius: var(--r-sm); font-size: 0.85rem; font-weight: 700;
  background: var(--fill); border: 1px solid transparent; color: var(--white);
  transition: all 0.16s var(--ease);
}
.iv-chan:hover { transform: translateY(-2px); background: var(--fill-2); }
.iv-chan.wa { background: rgba(37,211,102,0.16); border-color: rgba(37,211,102,0.4); }
.iv-chan.wa:hover { background: rgba(37,211,102,0.26); }
.iv-track {
  display: flex; align-items: center; gap: 16px; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted);
}
.iv-track b { color: var(--gold-2); font-size: 1.05rem; }

/* ============================================================
   GENERIC PAGE LAYOUT
   ============================================================ */
.page-wrap { max-width: 960px; margin: 0 auto; padding: 44px 20px 96px; }
.page-head { margin-bottom: 36px; }
.page-eyebrow {
  display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-2);
  background: rgba(11,71,196,0.1); border: 1px solid rgba(11,71,196,0.25);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 14px;
}
.page-title { font-family: var(--font); font-size: clamp(2rem, 5vw, 3rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--white); }
.page-title .gold { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-sub { color: var(--muted); font-size: 0.98rem; margin-top: 8px; line-height: 1.6; }
.page-lead {
  font-size: clamp(1rem, 2.3vw, 1.16rem); line-height: 1.85; color: var(--mist);
  max-width: 760px; margin: -14px 0 34px; font-weight: 400;
  padding-inline-start: 16px; border-inline-start: 3px solid var(--navy-600);
}
.sec-divider { border: none; border-top: 1px solid var(--line); margin: 52px 0; }

.prose { font-size: 1.04rem; line-height: 1.9; color: var(--mist); }
.prose p { margin-bottom: 1.15em; }
.prose strong { color: var(--white); font-weight: 700; }
.prose h3 { font-size: 1.2rem; font-weight: 800; margin: 1.7em 0 0.5em; color: var(--gold-2); }
.prose ul { padding-inline-start: 4px; }

/* ── ABOUT banner ── */
.stat-banner {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 38px;
}
.stat-cell {
  background: var(--glass); border: 1px solid transparent; border-radius: var(--r-lg);
  padding: 22px 14px; text-align: center; backdrop-filter: blur(14px);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.stat-cell:hover { transform: translateY(-3px); border-color: rgba(11,71,196,0.4); }
.stat-cell .sc-num { font-size: 2.2rem; font-weight: 900; color: var(--gold-2); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-cell .sc-lbl { font-size: 0.76rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 620px) { .stat-banner { grid-template-columns: repeat(2,1fr); } }

/* ── ECONOMY ── */
.eco-section { margin-bottom: 52px; }
.sec-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; color: var(--white); }
.sec-title .gold { color: var(--gold-2); }
.sec-note { font-size: 0.84rem; color: var(--muted); margin-bottom: 22px; line-height: 1.6; }
.cmp-table {
  width: 100%; border-collapse: collapse; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid transparent; background: var(--glass); backdrop-filter: blur(12px);
}
.cmp-table th, .cmp-table td { padding: 13px 16px; text-align: start; font-size: 0.9rem; border-bottom: 1px solid var(--fill); }
.cmp-table th { background: var(--fill); font-weight: 700; font-size: 0.78rem; color: var(--gold-2); text-transform: uppercase; letter-spacing: 0.04em; }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table td:first-child { font-weight: 600; color: var(--white); }
.cmp-table .up { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.cmp-table .down { color: var(--red); font-weight: 700; }

.ben-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px,1fr)); gap: 12px; }
.ben-card {
  background: var(--glass); border: 1px solid transparent; border-radius: var(--r-md);
  padding: 18px; display: flex; gap: 13px; align-items: flex-start; backdrop-filter: blur(12px);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.ben-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.ben-ico { font-size: 1.6rem; flex-shrink: 0; }
.ben-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; color: var(--white); }
.ben-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.ben-tag { display: inline-block; margin-top: 9px; background: rgba(47,210,126,0.14); border-radius: 7px; padding: 3px 10px; font-size: 0.72rem; font-weight: 700; color: var(--green); }

/* ── SECURITY ── */
.quote-block {
  background: linear-gradient(135deg, rgba(11,71,196,0.07), rgba(46,116,240,0.04));
  border: 1px solid transparent; border-inline-start: 4px solid var(--gold);
  border-radius: var(--r-md); padding: 18px 22px; margin-bottom: 34px;
  font-size: 0.96rem; line-height: 1.7; color: var(--mist);
}
.quote-block strong { color: var(--gold-2); }
.theater { margin-bottom: 22px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid transparent; background: var(--glass); backdrop-filter: blur(12px); }
.theater-hdr { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: rgba(46,99,230,0.16); border-bottom: 1px solid var(--line); }
.th-flag { font-size: 1.9rem; }
.th-name { font-size: 1.18rem; font-weight: 800; color: var(--white); }
.th-sub { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.theater-body { padding: 16px 20px; }
.ach-list { display: flex; flex-direction: column; gap: 10px; }
.ach-item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; line-height: 1.6; color: var(--mist); }
.ach-dot { width: 23px; height: 23px; flex-shrink: 0; margin-top: 1px; background: rgba(255,90,110,0.18); border: 1px solid rgba(255,90,110,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.66rem; font-weight: 900; color: #FF8080; }

.org-section { margin-bottom: 40px; }
.org-header { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.org-logo { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,90,110,0.14); border: 1px solid rgba(255,90,110,0.3); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0; }
.org-name { font-size: 1.12rem; font-weight: 800; color: var(--white); }
.org-sub { font-size: 0.76rem; color: var(--muted); }
.org-count { margin-inline-start: auto; background: rgba(255,90,110,0.14); border: 1px solid rgba(255,90,110,0.3); color: #FF8080; font-size: 0.72rem; font-weight: 700; padding: 3px 11px; border-radius: 999px; white-space: nowrap; }

.targets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 13px; }
.tgt-card { background: rgba(18,6,10,0.5); border: 1px solid rgba(160,30,40,0.25); border-radius: var(--r-md); overflow: hidden; cursor: pointer; transition: all 0.22s var(--ease); }
.tgt-card:hover { transform: translateY(-4px); border-color: rgba(255,90,110,0.55); box-shadow: 0 12px 34px rgba(120,0,15,0.4); }
.tgt-photo { position: relative; width: 100%; aspect-ratio: 1; background: linear-gradient(135deg,#160003,#2a0008); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tgt-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(20%) brightness(0.85); transition: filter 0.3s; }
.tgt-card:hover .tgt-photo img { filter: grayscale(0) brightness(1); }
.tgt-init { font-size: 2.2rem; font-weight: 900; color: var(--fill-2); }
.tgt-x { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.tgt-x::before, .tgt-x::after { content: ''; position: absolute; width: 78%; height: 3px; background: rgba(255,90,110,0.75); border-radius: 2px; }
.tgt-x::before { transform: rotate(45deg); }
.tgt-x::after { transform: rotate(-45deg); }
.tgt-info { padding: 10px 12px 12px; }
.tgt-name { font-weight: 700; font-size: 0.84rem; line-height: 1.25; margin-bottom: 3px; color: var(--white); }
.tgt-role { font-size: 0.69rem; color: rgba(255,120,130,0.9); font-weight: 600; }
.tgt-date { font-size: 0.66rem; color: var(--muted); margin-top: 4px; }
.tgt-modal-photo { width: 100px; height: 100px; border-radius: 14px; margin: 0 auto 14px; border: 2px solid rgba(255,90,110,0.35); position: relative; overflow: hidden; background: #1a0005; display: flex; align-items: center; justify-content: center; }
.tgt-modal-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tgt-modal-init { font-size: 2rem; font-weight: 900; color: var(--fill-2); }
.big-x-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 5rem; font-weight: 900; color: rgba(255,90,110,0.5); }
.modal-field { margin-bottom: 14px; }
.modal-field .mf-lbl { font-size: 0.78rem; font-weight: 700; color: var(--gold-2); margin-bottom: 5px; }
.modal-field .mf-val { font-size: 0.9rem; color: var(--mist); line-height: 1.65; }

/* ── TEAM ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 13px; margin-bottom: 6px; }
.team-section-title {
  position: relative; padding-inline-start: 14px;
  font-family: var(--font); font-weight: 500; font-size: 1.5rem; color: var(--white);
  margin: 42px 0 16px; display: flex; align-items: center; gap: 10px;
}
.team-section-title:first-of-type { margin-top: 12px; }
.team-section-title::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.2em; bottom: 0.2em; width: 4px; border-radius: 3px; background: var(--grad-brand); }
.team-count { font-family: var(--font); font-size: 0.72rem; font-weight: 800; color: var(--navy-600); background: var(--fill); padding: 3px 10px; border-radius: 999px; }
.mem-card { background: var(--glass); border: 1px solid transparent; border-radius: var(--r-md); overflow: hidden; cursor: pointer; text-align: center; transition: all 0.22s var(--ease); backdrop-filter: blur(12px); }
.mem-card:hover { transform: translateY(-4px); border-color: rgba(11,71,196,0.45); box-shadow: var(--sh-2); }
.mem-card.pm { grid-column: 1/-1; display: flex; align-items: center; gap: 22px; text-align: start; padding: 24px; background: linear-gradient(135deg, rgba(11,71,196,0.09), rgba(46,116,240,0.05)); border-color: rgba(11,71,196,0.5); }
.mem-photo { width: 100%; aspect-ratio: 1; background: linear-gradient(135deg,#0B1A52,#1D45BE); display: flex; align-items: center; justify-content: center; }
.pm-photo-wrap { width: 104px; height: 104px; border-radius: 50%; flex-shrink: 0; border: 3px solid var(--gold); overflow: hidden; background: linear-gradient(135deg,#0B1A52,#1D45BE); display: flex; align-items: center; justify-content: center; }
.m-init { font-size: 2rem; font-weight: 900; color: rgba(255,255,255,0.55); }
.mem-photo img, .pm-photo-wrap img, .prof-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
}
.mem-card:hover .mem-photo img { transform: scale(1.04); transition: transform 0.3s var(--ease); }
.mem-info { padding: 12px; }
.pm .mem-info { flex: 1; padding: 0; }
.mem-num { display: inline-block; font-size: 0.66rem; font-weight: 700; color: var(--gold-2); background: rgba(11,71,196,0.12); border-radius: 6px; padding: 2px 8px; margin-bottom: 6px; }
.mem-name { font-weight: 700; font-size: 0.9rem; line-height: 1.3; color: var(--white); }
.pm .mem-name { font-size: 1.6rem; font-weight: 900; }
.mem-role { font-size: 0.74rem; color: var(--muted); margin-top: 3px; }
.pm .mem-role { font-size: 0.95rem; color: var(--mist); }

/* profile modal */
.prof-photo { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; background: linear-gradient(135deg,#0B1A52,#1D45BE); border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prof-name { text-align: center; font-size: 1.35rem; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.prof-role { text-align: center; color: var(--gold-2); font-size: 0.88rem; margin-bottom: 18px; }
.prof-bio { font-size: 0.9rem; color: var(--mist); line-height: 1.75; }
.prof-ach { margin-top: 18px; }
.prof-ach h4 { font-size: 0.88rem; font-weight: 700; color: var(--gold-2); margin-bottom: 10px; }
.prof-ach li { font-size: 0.85rem; color: var(--mist); margin-bottom: 7px; padding-inline-start: 20px; position: relative; line-height: 1.55; }
.prof-ach li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--green); font-weight: 700; }

/* ============================================================
   REWARDS / POINTS STORE
   ============================================================ */
.wallet {
  padding: 26px; border-radius: var(--r-xl); margin-bottom: 28px;
  background: linear-gradient(150deg, rgba(11,71,196,0.10), rgba(46,116,240,0.05));
  border: 1px solid rgba(11,71,196,0.45);
  box-shadow: var(--sh-2);
}
.wallet-top { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.wallet .w-lbl { font-size: 0.84rem; color: var(--muted); }
.wallet .w-balance { font-size: 3rem; font-weight: 900; line-height: 1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.wallet .w-balance small { font-size: 1.1rem; -webkit-text-fill-color: var(--muted); color: var(--muted); font-weight: 600; }
.w-tier-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 0.86rem; background: var(--fill); border: 1px solid var(--line-2); }
.w-progress { margin-top: 20px; }
.w-progress .wp-meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin-bottom: 7px; }
.xpbar { height: 12px; border-radius: 999px; background: rgba(16,33,73,0.10); overflow: hidden; }
.xpbar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--navy-500), var(--sky), var(--gold)); box-shadow: 0 0 14px rgba(77,157,255,0.6); transition: width 0.8s var(--ease); }

.earn-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 10px; margin-bottom: 32px; }
.earn-item { background: var(--glass); border: 1px solid transparent; border-radius: var(--r-md); padding: 14px; text-align: center; backdrop-filter: blur(12px); }
.earn-item .ei-ico { font-size: 1.5rem; }
.earn-item .ei-pts { font-size: 1.1rem; font-weight: 800; color: var(--gold-2); margin-top: 4px; }
.earn-item .ei-lbl { font-size: 0.74rem; color: var(--muted); margin-top: 2px; }

.shop-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.shop-chip { padding: 8px 16px; border-radius: 999px; font-size: 0.84rem; font-weight: 600; background: var(--fill); border: 1px solid transparent; color: var(--muted); transition: all 0.16s; }
.shop-chip:hover { color: var(--white); }
.shop-chip.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--glow-blue); }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 18px; }
.reward {
  border-radius: var(--r-lg); overflow: hidden; background: var(--glass);
  border: 1px solid transparent; backdrop-filter: blur(12px);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
  display: flex; flex-direction: column;
}
.reward:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: var(--line-2); }
.reward-img { position: relative; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 3.4rem; background: linear-gradient(135deg, #EAF1FF, #DCE8FF); }
.reward-cost { position: absolute; top: 10px; inset-inline-end: 10px; background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 0.82rem; padding: 6px 13px; border-radius: 999px; box-shadow: var(--glow-blue); }
.reward-body { padding: 15px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.reward-title { font-weight: 700; font-size: 0.98rem; color: var(--white); }
.reward-desc { font-size: 0.8rem; color: var(--muted); margin-top: 5px; line-height: 1.5; flex: 1; }
.reward-price { margin-top: 9px; font-size: 0.92rem; font-weight: 700; color: var(--navy-600); }
.reward-price b { color: var(--white); font-weight: 800; }
.reward-price .rp-or { color: var(--faint); font-weight: 600; font-size: 0.82rem; margin: 0 2px; }
.reward-ship { margin-top: 4px; font-size: 0.76rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.reward-ship::before { content: '🚚'; font-size: 0.85rem; }
.reward-btn { margin-top: 14px; width: 100%; padding: 11px; border-radius: var(--r-sm); font-weight: 700; font-size: 0.88rem; transition: all 0.18s var(--ease); }
.reward-btn.can { background: var(--grad-brand); color: #fff; }
.reward-btn.can:hover { transform: translateY(-2px); box-shadow: var(--glow-blue); }
.reward-btn.cant { background: var(--fill); border: 1px solid transparent; color: var(--muted); cursor: not-allowed; }
.reward-need { margin-top: 8px; height: 5px; border-radius: 999px; background: rgba(16,33,73,0.10); overflow: hidden; }
.reward-need > i { display: block; height: 100%; background: var(--grad-gold); border-radius: 999px; }

/* ============================================================
   JOIN
   ============================================================ */
.join-wrap { max-width: 580px; margin: 0 auto; padding: 44px 16px 96px; }
.join-hero { text-align: center; margin-bottom: 34px; }
.join-title { font-family: var(--font); font-size: clamp(2.2rem,8vw,3.2rem); font-weight: 500; letter-spacing: -0.01em; margin-bottom: 14px; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.join-text { font-size: 0.98rem; line-height: 1.8; color: var(--mist); }
.form-card { padding: 30px 26px; border-radius: var(--r-xl); background: var(--glass); border: 1px solid transparent; backdrop-filter: blur(16px); box-shadow: var(--sh-2); }
.form-row { margin-bottom: 18px; }
.form-lbl { display: block; font-size: 0.84rem; font-weight: 600; color: var(--mist); margin-bottom: 7px; }
.form-lbl .req { color: var(--red); }
.form-input, .form-sel, .form-ta {
  width: 100%; background: #fff; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); padding: 12px 14px; font-size: 0.95rem; color: var(--white);
  direction: rtl; transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-input:focus, .form-sel:focus, .form-ta:focus { border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(11,71,196,0.16); }
/* Global keyboard-focus indicator (accessibility) — visible only for keyboard nav */
:focus-visible { outline: 2px solid var(--navy-600); outline-offset: 2px; border-radius: 4px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible), [role="button"]:focus:not(:focus-visible) { outline: none; }
/* "demo data" tag — marks seeded/placeholder figures as not-yet-real */
.demo-tag { font-size: 10px; font-weight: 700; color: var(--faint); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-inline-start: auto; }
.form-input::placeholder, .form-ta::placeholder { color: var(--faint); }
.form-sel option { background: #fff; color: var(--white); }
.form-ta { min-height: 100px; resize: vertical; }
.notes-row { display: none; } .notes-row.show { display: block; }
.submit-btn { width: 100%; padding: 15px; background: var(--grad-brand); border-radius: var(--r-sm); font-size: 1rem; font-weight: 700; color: #fff; margin-top: 10px; box-shadow: 0 8px 26px rgba(46,99,230,0.45); transition: all 0.2s var(--ease); }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(46,99,230,0.6); }
.submit-btn:active { transform: none; }
.success-box { text-align: center; padding: 50px 20px; }
.suc-ico { font-size: 3.8rem; margin-bottom: 16px; }
.suc-title { font-size: 1.7rem; font-weight: 900; color: var(--green); margin-bottom: 10px; }
.suc-text { color: var(--mist); font-size: 0.95rem; line-height: 1.7; }
.suc-pts { display: inline-flex; align-items: center; gap: 8px; background: rgba(11,71,196,0.12); border: 1px solid rgba(11,71,196,0.3); border-radius: 999px; padding: 11px 26px; margin-top: 24px; font-weight: 800; color: var(--gold-2); font-size: 1.1rem; }

/* ============================================================
   MODAL & SHARE & TOAST
   ============================================================ */
.modal-backdrop { position: fixed; inset: 0; z-index: 3100; background: rgba(3,8,28,0.78); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.24s; }
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal-box { background: var(--bg-elev); border: 1px solid transparent; border-radius: var(--r-xl); width: 100%; max-width: 480px; max-height: 88dvh; overflow-y: auto; position: relative; padding: 32px 26px 26px; transform: translateY(22px) scale(0.98); transition: transform 0.26s var(--pop); box-shadow: var(--sh-3); }
.modal-backdrop.open .modal-box { transform: none; }
.modal-close-btn { position: absolute; top: 16px; inset-inline-start: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--fill); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--muted); transition: all 0.15s; }
.modal-close-btn:hover { background: var(--fill-2); color: var(--white); }

.share-backdrop { position: fixed; inset: 0; z-index: 3100; background: rgba(3,8,28,0.65); display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.24s; }
.share-backdrop.open { opacity: 1; pointer-events: all; }
.share-panel { background: var(--bg-elev); border: 1px solid transparent; border-radius: 28px 28px 0 0; width: 100%; max-width: 540px; padding: 22px 18px calc(34px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform 0.3s var(--ease); box-shadow: 0 -10px 40px rgba(16,33,73,0.14); }
.share-backdrop.open .share-panel { transform: none; }
.share-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-weight: 700; font-size: 1.05rem; color: var(--white); }
.share-header button { width: 30px; height: 30px; border-radius: 50%; background: var(--fill); display: flex; align-items: center; justify-content: center; color: var(--muted); }
/* ── PWA install / notification banner ── */
.pwa-banner { position: fixed; left: 12px; right: 12px; bottom: 16px; z-index: 1200; display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 0 auto; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--sh-3); transform: translateY(160%); transition: transform 0.34s var(--pop); }
.pwa-banner.show { transform: none; }
.pwa-ico { width: 44px; height: 44px; border-radius: 11px; object-fit: contain; background: var(--fill); padding: 5px; flex-shrink: 0; }
.pwa-txt { flex: 1; min-width: 0; }
.pwa-t { font-weight: 800; font-size: 0.95rem; color: var(--white); }
.pwa-d { font-size: 0.77rem; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.pwa-cta { flex-shrink: 0; background: var(--grad-brand); color: #fff; font-weight: 800; padding: 10px 22px; border-radius: 999px; box-shadow: var(--glow-blue); font-size: 0.9rem; transition: transform 0.14s var(--ease); }
.pwa-cta:hover { transform: translateY(-1px); }
.pwa-x { position: absolute; top: 7px; inset-inline-start: 7px; width: 22px; height: 22px; border-radius: 50%; background: var(--fill); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.pwa-x svg { width: 13px; height: 13px; }
@media (max-width: 980px) { .pwa-banner { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); } }

/* iOS "add to home screen" visual guide */
.pwa-ios-ov { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: flex-end; justify-content: center; background: rgba(16,33,73,0.55); opacity: 0; transition: opacity 0.25s; }
.pwa-ios-ov.show { opacity: 1; }
.pio-card { position: relative; background: var(--bg-elev); width: 100%; max-width: 460px; border-radius: 24px 24px 0 0; padding: 28px 22px calc(30px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--sh-3); text-align: center; transform: translateY(24px); transition: transform 0.3s var(--pop); }
.pwa-ios-ov.show .pio-card { transform: none; }
.pio-x { position: absolute; top: 12px; inset-inline-start: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--fill); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.pio-x svg { width: 15px; height: 15px; }
.pio-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 14px; background: var(--fill); padding: 7px; margin: 0 auto 12px; display: block; }
.pio-title { font-weight: 900; font-size: 1.18rem; color: var(--white); }
.pio-sub { font-size: 0.85rem; color: var(--muted); margin-top: 5px; margin-bottom: 18px; }
.pio-steps { display: flex; flex-direction: column; gap: 11px; text-align: start; }
.pio-step { display: flex; align-items: center; gap: 12px; background: var(--fill); border-radius: 14px; padding: 13px 14px; }
.pio-num { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.9rem; }
.pio-stx { flex: 1; font-size: 0.9rem; color: var(--mist); line-height: 1.45; }
.pio-stx b { color: var(--navy-600); font-weight: 800; }
.pio-ic { flex-shrink: 0; width: 30px; color: var(--navy-600); display: flex; align-items: center; justify-content: center; }
.pio-ic svg { width: 25px; height: 25px; }
.pio-note { margin-top: 16px; font-size: 0.78rem; color: var(--muted); background: var(--fill); border-radius: 10px; padding: 10px 12px; line-height: 1.5; }
.pio-note b { color: var(--navy-600); }

/* primary one-tap distribution actions */
.share-primary { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.sh-primary-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px 16px; border-radius: 14px; font-weight: 800; font-size: 0.98rem; background: var(--fill); color: var(--navy-600); border: 1.5px solid var(--line-2); transition: transform 0.14s var(--ease), box-shadow 0.16s; text-align: center; }
.sh-primary-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.sh-primary-btn.main { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--glow-blue); padding: 14px 16px; }
.sh-primary-btn .spb-txt { display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.sh-primary-btn .spb-t { font-weight: 800; font-size: 1.18rem; }
.sh-primary-btn .spb-s { font-weight: 600; font-size: 0.82rem; opacity: 0.92; }
.sh-primary-btn:hover { transform: translateY(-2px); }
.sh-primary-btn.main:hover { box-shadow: 0 8px 26px rgba(11,71,196,0.34); }
.share-or { display: flex; align-items: center; gap: 10px; margin: 4px 2px 0; color: var(--faint); font-size: 0.74rem; font-weight: 700; }
.share-or::before, .share-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.share-primary + .share-grid { padding-top: 12px; }

.share-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.sh-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 15px 6px; border-radius: 14px; background: var(--fill); border: 1px solid transparent; transition: all 0.16s var(--ease); }
.sh-opt:hover { background: var(--fill-2); transform: translateY(-2px); }
.sh-ico { font-size: 1.5rem; }
.sh-lbl { font-size: 0.7rem; color: var(--muted); }

#toast-area { position: fixed; bottom: 26px; inset-inline: 0; z-index: 3200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; padding: 0 16px; }
.toast { background: #14233F; border: 1px solid var(--fill-2); border-radius: 44px; padding: 11px 24px; font-size: 0.88rem; font-weight: 600; color: #fff; backdrop-filter: blur(14px); display: flex; align-items: center; gap: 8px; box-shadow: var(--sh-3); animation: tin 0.28s var(--pop), tout 0.3s ease 2.5s forwards; max-width: 92vw; }
.toast .tgold { color: #8FB8FF; font-weight: 800; }
@keyframes tin { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }
@keyframes tout { to{opacity:0;transform:translateY(8px)} }

/* confetti */
.confetti-pc { position: fixed; width: 9px; height: 14px; z-index: 4000; pointer-events: none; top: -20px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 580px) {
  .targets-grid, .team-grid { grid-template-columns: repeat(3,1fr); }
  .ben-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: repeat(2,1fr); }
  .reward-img { font-size: 2.6rem; }
  .iv-rewards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .targets-grid, .team-grid { grid-template-columns: repeat(2,1fr); }
  .share-grid { grid-template-columns: repeat(3,1fr); }
  .shop-grid { grid-template-columns: 1fr; }
}

/* scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(16,33,73,0.20); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(16,33,73,0.34); }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-login-wrap { min-height: calc(100dvh - var(--hdr)); display: flex; align-items: center; justify-content: center; padding: 30px 18px; }
.admin-login-card { width: 100%; max-width: 400px; padding: 36px 30px; border-radius: var(--r-xl); background: var(--glass-strong); border: 1px solid var(--line-2); backdrop-filter: blur(18px); box-shadow: var(--sh-3); }
.admin-login-card .al-lock { font-size: 2.6rem; text-align: center; margin-bottom: 12px; }
.admin-login-card h2 { text-align: center; font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.admin-login-card .al-sub { text-align: center; font-size: 0.84rem; color: var(--muted); margin-bottom: 26px; }
.admin-login-card .al-err { background: rgba(255,90,110,0.14); border: 1px solid rgba(255,90,110,0.4); color: #FF9098; font-size: 0.82rem; padding: 10px 14px; border-radius: var(--r-sm); margin-bottom: 16px; text-align: center; }
.al-lock-note { margin-top: 18px; font-size: 0.74rem; color: var(--faint); text-align: center; line-height: 1.6; }

/* admin shell */
.admin-shell { display: flex; min-height: calc(100dvh - var(--hdr)); }
.admin-side { width: 230px; flex-shrink: 0; background: var(--bg-elev); border-inline-start: 1px solid var(--line); padding: 22px 0; }
.admin-side .as-brand { padding: 0 22px 18px; font-weight: 800; font-size: 1.05rem; color: var(--white); display: flex; align-items: center; gap: 9px; }
.admin-side .as-group { padding: 14px 22px 6px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.admin-nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 22px; font-size: 0.92rem; font-weight: 600; color: var(--muted); cursor: pointer; border-inline-start: 3px solid transparent; transition: all 0.15s; width: 100%; text-align: start; }
.admin-nav-item:hover { background: var(--fill); color: var(--white); }
.admin-nav-item.active { background: rgba(46,99,230,0.16); color: var(--white); border-inline-start-color: var(--gold); }
.admin-logout { margin: 18px 22px 0; padding: 11px; width: calc(100% - 44px); border-radius: var(--r-sm); background: rgba(255,90,110,0.12); border: 1px solid rgba(255,90,110,0.3); color: #FF9098; font-weight: 700; font-size: 0.85rem; transition: all 0.15s; }
.admin-logout:hover { background: rgba(255,90,110,0.2); }

.admin-main { flex: 1; min-width: 0; padding: 26px 30px 60px; }
.admin-topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.admin-topbar h1 { font-size: 1.5rem; font-weight: 800; color: var(--white); }
.admin-topbar .at-badge { margin-inline-start: auto; font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.admin-topbar .at-badge b { color: var(--gold-2); }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 16px; margin-bottom: 26px; }
.kpi { padding: 20px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid transparent; backdrop-filter: blur(12px); transition: transform 0.2s var(--ease); }
.kpi:hover { transform: translateY(-3px); }
.kpi .k-lbl { font-size: 0.76rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.kpi .k-num { font-size: 2.1rem; font-weight: 900; color: var(--white); margin-top: 8px; font-variant-numeric: tabular-nums; line-height: 1; }
.kpi .k-trend { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 0.74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.kpi .k-trend.up { background: rgba(47,210,126,0.14); color: var(--green); }
.kpi .k-trend.down { background: rgba(255,90,110,0.14); color: var(--red); }

/* admin cards / panels */
.admin-panel { padding: 22px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid transparent; backdrop-filter: blur(12px); margin-bottom: 20px; }
.admin-panel h3 { font-size: 1.05rem; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.admin-panel .ap-sub { font-size: 0.8rem; color: var(--muted); margin-bottom: 18px; }
.admin-row-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
@media (max-width: 900px) { .admin-row-2 { grid-template-columns: 1fr; } .admin-side { width: 64px; } .admin-side .as-brand span, .admin-side .as-group, .admin-nav-item span:not(.ani), .admin-logout span { display: none; } .admin-main { padding: 20px 16px 50px; } }

/* bar chart (CSS) */
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; max-width: 42px; border-radius: 6px 6px 0 0; background: var(--grad-brand); transition: height 0.7s var(--ease); position: relative; }
.bar:hover { filter: brightness(1.15); }
.bar-val { font-size: 0.72rem; font-weight: 700; color: var(--mist); font-variant-numeric: tabular-nums; }
.bar-lbl { font-size: 0.7rem; color: var(--muted); }

/* donut */
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { --val: 0; width: 130px; height: 130px; border-radius: 50%; flex-shrink: 0; background: conic-gradient(var(--sky) calc(var(--val)*1%), var(--fill) 0); display: flex; align-items: center; justify-content: center; position: relative; }
.donut::before { content: ''; position: absolute; width: 88px; height: 88px; border-radius: 50%; background: var(--bg-elev); }
.donut .d-center { position: relative; z-index: 1; text-align: center; }
.donut .d-center b { font-size: 1.4rem; font-weight: 900; color: var(--white); }
.donut-legend { display: flex; flex-direction: column; gap: 8px; font-size: 0.84rem; }
.donut-legend .dl-item { display: flex; align-items: center; gap: 8px; color: var(--mist); }
.dl-dot { width: 11px; height: 11px; border-radius: 3px; }

/* admin table */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: start; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--faint); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 12px; font-size: 0.86rem; color: var(--mist); border-bottom: 1px solid var(--fill); }
.admin-table tr:hover td { background: var(--fill); }
.admin-table .at-user { display: flex; align-items: center; gap: 10px; }
.at-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--grad-brand); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.pill.green { background: rgba(47,210,126,0.14); color: var(--green); }
.pill.gold { background: rgba(11,71,196,0.14); color: var(--gold-2); }
.pill.gray { background: var(--fill); color: var(--muted); }

.admin-btn { padding: 11px 20px; border-radius: var(--r-sm); background: var(--grad-brand); color: #fff; font-weight: 700; font-size: 0.88rem; transition: all 0.18s var(--ease); }
.admin-btn:hover { transform: translateY(-2px); box-shadow: var(--glow-blue); }
.admin-btn.ghost { background: var(--fill); border: 1px solid transparent; }
.admin-empty { text-align: center; color: var(--muted); padding: 30px; font-size: 0.88rem; }

.dropzone { border: 2px dashed var(--line-2); border-radius: var(--r-md); padding: 26px; text-align: center; color: var(--muted); font-size: 0.86rem; transition: all 0.18s; cursor: pointer; }
.dropzone:hover { border-color: var(--navy-500); background: rgba(46,99,230,0.06); color: var(--mist); }

/* ============================================================
   VIDEOS — inline feed clips + fullscreen reel overlay
   Mixed aspect ratios → blurred backdrop + object-fit:contain
   ============================================================ */

/* ── Inline feed video card (plays muted, tap → fullscreen) ── */
.vfc-caption { margin-bottom: 10px; }
.vfc-media {
  position: relative;
  width: 100%;
  height: clamp(380px, 62vh, 580px);
  background: #000;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
}
.vfc-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.25);
  filter: blur(34px) brightness(0.5) saturate(1.25);
  pointer-events: none;
}
.vfc-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}
.vfc-top {
  position: absolute; top: 10px; left: 10px; right: 10px;
  z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
}
.vfc-expand {
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 0.74rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--fill-2);
}
.vfc-live {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,60,80,0.85); color: #fff;
  font-size: 0.68rem; font-weight: 800;
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.02em;
}
.vfc-tags {
  position: absolute; bottom: 10px; right: 12px; left: 12px;
  z-index: 3;
  display: flex; flex-wrap: wrap; gap: 7px;
  pointer-events: none;
  font-size: 0.8rem; font-weight: 600;
}
.vfc-tags span { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.85); }
.video-feed-card .watch-btn .aico { font-size: 1.05rem; }

/* ============================================================
   FULLSCREEN REEL OVERLAY
   ============================================================ */
.shorts-overlay {
  position: fixed; inset: 0;
  z-index: 3000;
  background: #000;
}
html.shorts-open, html.shorts-open body, html.no-scroll, html.no-scroll body { overflow: hidden; }

.shorts-reel {
  position: absolute; inset: 0;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.shorts-reel::-webkit-scrollbar { display: none; }

/* Each reel card = full dynamic viewport, snaps one at a time */
.short-card {
  position: relative;
  width: 100%;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: #000;
}

/* Blurred backdrop fills the frame for any aspect ratio */
.short-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.3);
  filter: blur(42px) brightness(0.42) saturate(1.3);
  z-index: 0;
  pointer-events: none;
}

/* The real video — fully visible, never cropped */
.short-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}

/* Tap overlay */
.short-tap-zone {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

/* Close button + swipe hint */
.shorts-close {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 14px);
  right: 14px;
  z-index: 12;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22);
  cursor: pointer;
}
.shorts-close:hover { background: rgba(0,0,0,0.72); }
.shorts-swipe-hint {
  position: fixed;
  bottom: 92px; left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  background: rgba(0,0,0,0.5);
  color: #fff; font-size: 0.8rem; font-weight: 700;
  padding: 8px 16px; border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.5s;
  animation: hintBob 1.4s ease-in-out infinite;
}
.shorts-swipe-hint.hide { opacity: 0; }
@keyframes hintBob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }

/* Pause icon flash */
.short-pause-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.15s;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}
.short-pause-icon.show { opacity: 1; }

/* Progress bar */
.short-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.22);
  z-index: 4;
}
.short-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.1s linear;
}

/* Bottom gradient + info */
.short-info {
  position: absolute;
  bottom: 0; left: 0; right: 70px;
  padding: 20px 20px 28px;
  background: linear-gradient(0deg, rgba(0,0,0,0.82) 0%, transparent 100%);
  z-index: 3;
  direction: rtl;
}
.short-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.short-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  background: var(--navy-800);
}
.short-author-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
}
.short-author-name .verified { width: 16px; height: 16px; }
.short-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 7px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
.short-tags {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.78);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.short-tags span { color: var(--sky-soft); font-weight: 600; }

/* Side action buttons */
.short-actions {
  position: absolute;
  bottom: 24px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 4;
}
.sh-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  user-select: none;
}
.sh-ico {
  font-size: 1.85rem;
  line-height: 1;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6));
}
.sh-cnt {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  letter-spacing: 0.01em;
}
.sh-act.liked .sh-ico { filter: drop-shadow(0 0 8px rgba(255,80,80,0.7)); }
.views-display { pointer-events: none; opacity: 0.8; }

/* ── Bottom Nav bar (mobile) ── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  /* 58px for the icons + the iOS home-indicator safe area (so the white bar
     extends to the very bottom edge and the icons never spill onto the page) */
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(16,33,73,0.06);
  display: none;                   /* hidden on desktop */
  align-items: center;
  justify-content: space-around;
  z-index: 900;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  /* push page content up so it isn't hidden behind bottom nav */
  #page-root { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
}
.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  text-decoration: none;
  color: var(--muted);
}
.bn-item.active, .bn-item:hover { color: var(--navy-600); }
.bn-item.active .bn-ico { transform: translateY(-1px); }
.bn-ico { display: flex; align-items: center; justify-content: center; }
.bn-ico svg { width: 23px; height: 23px; }
.bn-lbl { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.01em; }

/* ============================================================
   ICON SYSTEM + TYPE REFINEMENT (bespoke layer)
   ============================================================ */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex-shrink: 0; }

/* Display headings — elegant Hebrew serif, looser tracking */
.page-title, .join-title { font-weight: 500; letter-spacing: 0; line-height: 1.16; }
.hero-slogan { letter-spacing: 0.06em; text-transform: none; opacity: 0.92; }
body { letter-spacing: -0.003em; }

/* Refined eyebrow with a leading accent rule */
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: none; border: none; padding: 0; margin-bottom: 16px;
  letter-spacing: 0.14em;
}
.page-eyebrow::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: var(--navy-600); }

/* Section titles get a short accent bar */
.sec-title { position: relative; padding-inline-start: 14px; }
.sec-title::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 0.18em; bottom: 0.18em;
  width: 4px; border-radius: 3px; background: var(--grad-brand);
}

/* Side-nav icons */
.nicon { display: inline-flex; align-items: center; justify-content: center; width: 26px; color: var(--muted); }
.nicon svg { width: 20px; height: 20px; }
.nav-links a.active .nicon, .nav-links a:hover .nicon { color: var(--navy-600); }
.nav-admin-link { display: inline-flex; align-items: center; gap: 8px; }
.nav-admin-link svg { width: 16px; height: 16px; }

/* Top-nav active underline already handled; keep links crisp */
.top-nav a { letter-spacing: -0.01em; }

/* Feed action buttons */
.act-btn .aico { display: inline-flex; align-items: center; }
.act-btn .aico svg { width: 19px; height: 19px; }
.act-btn { gap: 8px; }

/* Close buttons */
.modal-close-btn svg, #share-close-btn svg, .nav-close svg, .shorts-close svg { width: 18px; height: 18px; }

/* Inline video badges */
.vfc-expand, .vfc-live { display: inline-flex; align-items: center; gap: 6px; }
.vfc-expand svg, .vfc-live svg { width: 13px; height: 13px; }

/* Shorts side actions */
.sh-ico { display: inline-flex; align-items: center; justify-content: center; }
.sh-ico svg { width: 28px; height: 28px; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.55)); }
.like-btn.liked .sh-ico { color: var(--like); }
.short-pause-icon svg { width: 62px; height: 62px; color: #fff; }

/* Sidebar widgets — designed icon badge + labels */
.ac-ico {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: var(--fill); color: var(--navy-600);
  display: flex; align-items: center; justify-content: center;
}
.ac-ico svg { width: 21px; height: 21px; }
.ac-label { display: flex; align-items: center; gap: 8px; }
.ac-label svg { width: 15px; height: 15px; color: var(--navy-600); }
.ac-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ac-btn svg { width: 17px; height: 17px; }

/* Leaderboard — numbered rank chips instead of emoji medals */
.lead-rank {
  width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; background: var(--fill); color: var(--muted);
}
.lead-rank.r1 { background: var(--navy-600); color: #fff; }
.lead-rank.r2 { background: rgba(11,71,196,0.5); color: #fff; }
.lead-rank.r3 { background: rgba(11,71,196,0.26); color: var(--navy-600); }

/* Earn-points strip icons */
.ei-ico { display: flex; align-items: center; justify-content: center; height: 28px; color: var(--navy-600); }
.ei-ico svg { width: 24px; height: 24px; }

/* ============================================================
   ICONS — round 2 (content surfaces) + dark-theme cleanup
   ============================================================ */
/* Opaque white cards don't need (and shouldn't pay for) backdrop blur */
.glass, .post-card, .stat-cell, .ben-card, .cmp-table, .kpi, .admin-panel,
.mem-card, .earn-item, .reward, .form-card, .admin-login-card, .theater,
.invite-card, .wallet { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Invite module */
.iv-badge { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; background: var(--fill); color: var(--navy-600); display: flex; align-items: center; justify-content: center; }
.iv-badge svg { width: 24px; height: 24px; }
.ivr-ico { display: flex; align-items: center; justify-content: center; height: 28px; color: var(--navy-600); }
.ivr-ico svg { width: 23px; height: 23px; }
.iv-copy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.iv-copy-btn svg { width: 16px; height: 16px; }
.iv-chan svg { width: 17px; height: 17px; }
.iv-chan.wa svg { color: #25D366; }

/* Share panel — brand glyphs */
.sh-opt .sh-net { color: var(--navy-600); }
.sh-opt .sh-net svg { width: 24px; height: 24px; filter: none; }

/* Security modal field labels */
.mf-lbl { display: flex; align-items: center; gap: 7px; }
.mf-lbl svg { width: 16px; height: 16px; }

/* Join */
.submit-btn { display: flex; align-items: center; justify-content: center; gap: 9px; }
.submit-btn svg { width: 19px; height: 19px; }
.suc-ico { display: flex; align-items: center; justify-content: center; }
.suc-ico svg { width: 76px; height: 76px; color: var(--green); stroke-width: 2.4; }
.suc-pts svg { width: 18px; height: 18px; }
.btn-primary svg, .btn-ghost svg { width: 18px; height: 18px; }

/* Admin chrome */
.as-brand svg { width: 20px; height: 20px; color: var(--navy-600); }
.ani { display: inline-flex; align-items: center; }
.ani svg { width: 19px; height: 19px; }
.admin-logout { display: flex; align-items: center; gap: 9px; }
.admin-logout svg { width: 18px; height: 18px; }
.k-lbl svg { width: 16px; height: 16px; color: var(--navy-600); }
.al-lock { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.al-lock svg { width: 44px; height: 44px; color: var(--navy-600); }

/* Header points chip */
.pc-star { display: inline-flex; align-items: center; color: var(--navy-600); }
.pc-star svg { width: 15px; height: 15px; }

/* Calmer feed hover (less simultaneous change) */
.post-card:hover { background: var(--bg-elev); border-color: transparent; box-shadow: var(--sh-2); transform: translateY(-2px); }

/* Brand-tinted text selection */
::selection { background: rgba(11,71,196,0.18); }

/* ============================================================
   HEADER LOGIN BUTTON + LOGIN MODAL
   ============================================================ */
.login-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px;
  font-weight: 700; font-size: 0.88rem; color: var(--navy-600);
  background: var(--fill); transition: background 0.16s, transform 0.16s, box-shadow 0.16s;
}
.login-btn:hover { background: var(--fill-2); transform: translateY(-1px); }
.login-btn .login-ic { display: inline-flex; }
.login-btn .login-ic svg { width: 16px; height: 16px; }
.login-btn.is-admin { background: var(--grad-brand); color: #fff; box-shadow: var(--glow-blue); }
@media (max-width: 640px) {
  .login-btn .login-lbl { display: none; }
  .login-btn { padding: 9px; }
}

/* header notification bell (admin) */
.notif-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy-600); background: var(--fill);
  transition: background 0.16s, transform 0.16s;
}
.notif-btn:hover { background: var(--fill-2); transform: translateY(-1px); }
.notif-btn .notif-ic svg { width: 19px; height: 19px; }
.notif-badge {
  position: absolute; top: -3px; inset-inline-start: -3px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 0.68rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--bg-elev, #fff); animation: notif-pop 0.3s var(--ease, ease);
}
@keyframes notif-pop { from { transform: scale(0); } to { transform: scale(1); } }

.login-modal { text-align: center; }
.login-modal .lm-ico {
  width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 14px;
  background: var(--fill); color: var(--navy-600);
  display: flex; align-items: center; justify-content: center;
}
.login-modal .lm-ico svg { width: 28px; height: 28px; }
.login-modal h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; color: var(--white); margin-bottom: 4px; }
.login-modal .lm-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 22px; }
.login-modal form { text-align: start; }
.login-modal .submit-btn { margin-top: 6px; }

.ap-note { font-size: 0.78rem; color: var(--muted); margin-top: 12px; line-height: 1.65; }
.ap-note code { background: var(--fill); padding: 1px 6px; border-radius: 5px; font-family: ui-monospace, monospace; color: var(--navy-600); direction: ltr; display: inline-block; }

/* ============================================================
   LOGGED-IN USER MENU (header)
   ============================================================ */
.user-menu { position: relative; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 7px; border-radius: 999px; background: var(--fill); color: var(--white); font-weight: 700; font-size: 0.9rem; transition: background 0.16s; }
.user-chip:hover { background: var(--fill-2); }
.uc-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; flex-shrink: 0; }
.uc-caret { display: inline-flex; color: var(--muted); transition: transform 0.2s; }
.uc-caret svg { width: 14px; height: 14px; }
.user-menu.open .uc-caret { transform: rotate(180deg); }
.user-dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 168px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-3); padding: 6px; z-index: 1100; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.18s, transform 0.18s; }
.user-menu.open .user-dropdown { opacity: 1; transform: none; pointer-events: auto; }
.ud-item { display: block; width: 100%; text-align: start; padding: 10px 12px; border-radius: var(--r-sm); font-size: 0.9rem; font-weight: 600; color: var(--mist); background: none; cursor: pointer; transition: background 0.15s, color 0.15s; }
.ud-item:hover { background: var(--fill); color: var(--navy-600); }
.ud-logout { color: var(--red); }
.ud-logout:hover { background: rgba(226,59,82,0.08); color: var(--red); }

/* ============================================================
   ADMIN COMPOSER (home feed)
   ============================================================ */
.composer-card { background: var(--bg-elev); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 14px 16px; margin-bottom: 16px; }
.composer-top { display: flex; gap: 12px; align-items: flex-start; }
.composer-av { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; background: var(--grad-brand); display: flex; align-items: center; justify-content: center; padding: 6px; box-shadow: 0 3px 12px rgba(11,71,196,0.35); }
.composer-av img { width: 100%; height: 100%; object-fit: contain; }
.composer-input { flex: 1; border: none; outline: none; resize: none; background: var(--fill); border-radius: var(--r-md); padding: 12px 15px; font-family: inherit; font-size: 1rem; color: var(--white); line-height: 1.5; min-height: 46px; }
.composer-input::placeholder { color: var(--muted); }
.composer-preview { display: none; }
.composer-preview.show { display: block; position: relative; margin-top: 12px; border-radius: var(--r-md); overflow: hidden; background: #000; }
.comp-prev-media { width: 100%; max-height: 360px; object-fit: contain; display: block; background: #000; }
.comp-prev-x { position: absolute; top: 9px; inset-inline-end: 9px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.comp-prev-x svg { width: 16px; height: 16px; }
.composer-bar { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.comp-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 0.86rem; color: var(--muted); background: var(--fill); transition: background 0.15s, color 0.15s; }
.comp-btn:hover { background: var(--fill-2); color: var(--navy-600); }
.comp-btn svg { width: 19px; height: 19px; }
.comp-post { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 7px; padding: 9px 22px; border-radius: 999px; background: var(--grad-brand); color: #fff; font-weight: 700; font-size: 0.9rem; box-shadow: var(--glow-blue); transition: transform 0.16s; }
.comp-post:hover { transform: translateY(-1px); }
.comp-post svg { width: 17px; height: 17px; }
@media (max-width: 420px) { .comp-btn span { display: none; } .comp-btn { padding: 9px 12px; } }

/* infinite-scroll loader */
.feed-sentinel { display: flex; align-items: center; justify-content: center; padding: 26px 0; }
.feed-spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--fill-2); border-top-color: var(--navy-600); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   "SEND US YOUR CONTENT" — feed module (reuses .invite-card look)
   ============================================================ */
.submit-blurb { font-size: 0.86rem; color: var(--muted); line-height: 1.55; margin: 2px 0 14px; }
.submit-cta { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.submit-cta svg { width: 17px; height: 17px; }

/* community-contributed posts (credit / anonymous) */
.post-avatar.community { background: linear-gradient(150deg, var(--navy-600), var(--navy-700, #0B47C4)); color: #fff; font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; }
.post-contrib-tag { font-size: 0.68rem; font-weight: 700; color: var(--navy-600); background: var(--fill); padding: 2px 8px; border-radius: 999px; margin-inline-start: 4px; }
.post-official.community { background: var(--fill); color: var(--navy-600); }

/* link to an original social-media post (from a user submission) */
.post-link {
  display: flex; align-items: center; gap: 9px; margin: 4px 18px 14px;
  padding: 11px 14px; border-radius: var(--r-md); background: var(--fill);
  border: 1px solid var(--line); color: var(--navy-600); font-weight: 700; font-size: 0.9rem;
  transition: background 0.16s, transform 0.16s;
}
.post-link:hover { background: var(--fill-2); transform: translateY(-1px); }
.post-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.post-link .pl-txt { flex: 1; }
.post-link .pl-host { font-size: 0.76rem; font-weight: 600; color: var(--muted); direction: ltr; }
.sai-link, .sub-view-link { font-size: 0.82rem; margin: 6px 0; word-break: break-all; }
.sai-link a, .sub-view-link a, .post-link { color: var(--navy-600); }
.sai-link a, .sub-view-link a { text-decoration: underline; }

/* ============================================================
   SUBMISSION MODAL
   ============================================================ */
.submit-modal { text-align: center; }
.submit-modal h2 { font-family: var(--font); font-weight: 800; font-size: 1.4rem; color: var(--white); margin: 6px 0 4px; }
.submit-modal .lm-sub { color: var(--muted); font-size: 0.88rem; line-height: 1.5; margin-bottom: 16px; }
.submit-modal form { text-align: start; }
.sub-sec-lbl { font-size: 0.78rem; font-weight: 800; color: var(--navy-600); margin: 4px 0 8px; }
.sub-asuser { font-size: 0.86rem; color: var(--mist); background: var(--fill); border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 12px; }
.sub-asuser b { color: var(--white); }
.sub-switch { color: var(--navy-600); font-weight: 700; font-size: 0.82rem; text-decoration: underline; background: none; }
.sub-attach-row { display: flex; gap: 8px; margin: 4px 0 10px; }
.sub-attach-row .comp-btn { flex: 1; justify-content: center; }
.sub-preview { display: none; }
.sub-preview.show { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sub-prev-item { position: relative; width: 110px; height: 110px; border-radius: var(--r-md); overflow: hidden; background: #000; flex-shrink: 0; }
.sub-prev-item img, .sub-prev-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sub-prev-x { position: absolute; top: 5px; inset-inline-end: 5px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; display: flex; align-items: center; justify-content: center; }
.sub-prev-x svg { width: 14px; height: 14px; }
.sub-anon { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; color: var(--mist); margin: 4px 0 14px; cursor: pointer; }
.sub-anon input { width: 17px; height: 17px; accent-color: var(--navy-600); }
.sub-note { font-size: 0.72rem; color: var(--faint); margin-top: 12px; line-height: 1.5; }

/* submission VIEW modal */
.sub-view h2 { font-family: var(--font); font-weight: 800; font-size: 1.3rem; color: var(--white); margin-bottom: 8px; }
.sub-view-meta { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.sub-view-meta b { color: var(--white); }
.sub-view-text { background: var(--fill); border-radius: var(--r-md); padding: 14px; color: var(--mist); font-size: 0.95rem; line-height: 1.6; white-space: pre-wrap; margin-bottom: 14px; }
.sub-view-media { width: 100%; max-height: 50vh; object-fit: contain; border-radius: var(--r-md); background: #000; display: block; margin-bottom: 12px; }

/* ============================================================
   ADMIN — submissions panel
   ============================================================ */
.as-badge { margin-inline-start: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.sub-admin-list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.sub-admin-item { background: var(--fill); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.sai-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sai-who b { color: var(--white); font-size: 0.96rem; }
.sai-contact { font-size: 0.76rem; color: var(--muted); margin-top: 3px; direction: ltr; text-align: start; }
.sai-tags { display: flex; gap: 6px; flex-shrink: 0; }
.sai-snippet { font-size: 0.88rem; color: var(--mist); line-height: 1.5; margin: 10px 0; }
.sai-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-btn.danger { color: var(--red); }
.admin-btn.danger:hover { background: rgba(226,59,82,0.08); }

/* ============================================================
   ECONOMY + SECURITY — "spectacular" upgrades
   ============================================================ */
/* ── count-up hero stat band ── */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 30px 0 8px; }
.stat-hero {
  position: relative; background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 18px 18px; text-align: center; box-shadow: var(--sh-1);
  overflow: hidden;
}
.stat-hero::before { content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 100%; height: 4px; background: var(--grad-brand); }
.sh-num { font-size: clamp(1.9rem, 5vw, 2.7rem); font-weight: 900; line-height: 1; letter-spacing: -0.02em;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.sh-num small { display: block; margin-top: 5px; font-size: 0.74rem; font-weight: 700; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.sh-lbl { margin-top: 10px; font-size: 0.92rem; font-weight: 800; color: var(--white); }
.sh-sub { margin-top: 3px; font-size: 0.74rem; color: var(--muted); }
.sh-badge { display: inline-block; margin-top: 10px; font-size: 0.7rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--fill); color: var(--navy-600); }
.sh-badge.up { background: rgba(47,210,126,0.14); color: var(--green); }
.stat-band.danger .stat-hero::before { background: linear-gradient(90deg, #b21d2c, #ff4d5f); }
.stat-band.danger .sh-num { background: linear-gradient(135deg, #ff4d5f, #ff8a78); -webkit-background-clip: text; background-clip: text; }
@media (max-width: 640px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }

/* ── economy before/after bars ── */
.eco-bars { display: flex; flex-direction: column; gap: 18px; margin: 16px 0 8px; }
.eco-bar { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-md); padding: 15px 18px; box-shadow: var(--sh-1); }
.eb-label { font-size: 0.92rem; font-weight: 800; color: var(--white); margin-bottom: 11px; }
.eb-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.eb-row:last-child { margin-bottom: 0; }
.eb-year { width: 38px; flex-shrink: 0; font-size: 0.74rem; font-weight: 800; color: var(--muted); }
.eb-year.now { color: var(--navy-600); }
.eb-bar { flex: 1; height: 18px; background: var(--fill); border-radius: 999px; overflow: hidden; }
.eb-fill { height: 100%; width: 0; border-radius: 999px; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.eb-fill.old { background: linear-gradient(90deg, #9aa6c4, #c4ccde); }
.eb-fill.new { background: var(--grad-brand); box-shadow: var(--glow-blue); }
.eco-bar.in .eb-fill { width: var(--w); }
.eb-val { width: 56px; flex-shrink: 0; text-align: start; font-size: 0.86rem; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.eb-val.gold { color: var(--navy-600); font-size: 0.98rem; }
.eco-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.eco-chip { font-size: 0.82rem; font-weight: 600; color: var(--mist); background: var(--fill); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; }
.eco-chip b { color: var(--navy-600); font-weight: 800; margin-inline-start: 3px; }

/* ── interactive threat map ── */
.threat-map { margin: 8px 0 30px; }
.tm-title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.tm-title svg { width: 20px; height: 20px; color: var(--navy-600); }
.tm-canvas {
  position: relative; width: 100%; aspect-ratio: 16 / 11; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(120% 120% at 48% 46%, #ffffff 0%, #eaf1fd 55%, #d8e6fb 100%);
  border: 1px solid var(--line-2); box-shadow: var(--sh-1);
}
.tm-canvas::before { content: ''; position: absolute; inset: 0; opacity: 0.6;
  background-image: radial-gradient(rgba(11,71,196,0.12) 1px, transparent 1.5px);
  background-size: 22px 22px; }
.tm-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.tm-lines line { stroke: rgba(11,71,196,0.4); stroke-width: 0.6; stroke-dasharray: 2 2; animation: tm-flow 1.2s linear infinite; }
@keyframes tm-flow { to { stroke-dashoffset: -8; } }
.tm-center { position: absolute; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; z-index: 3; }
.tmc-flag { font-size: 1.9rem; filter: drop-shadow(0 2px 6px rgba(11,71,196,0.35)); }
.tmc-lbl { font-size: 0.72rem; font-weight: 900; color: #fff; background: rgba(11,71,196,0.85); padding: 2px 9px; border-radius: 999px; }
.tm-dot { position: absolute; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; z-index: 2; cursor: pointer; }
.tm-pulse { position: relative; width: 15px; height: 15px; border-radius: 50%; background: #ff4d5f; box-shadow: 0 0 12px rgba(255,77,95,0.9); }
.tm-pulse::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255,77,95,0.7); animation: tm-pulse 1.8s ease-out infinite; }
@keyframes tm-pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }
.tm-flag { font-size: 1.5rem; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18)); }
.tm-name { font-size: 0.74rem; font-weight: 800; color: var(--navy-700, #0a2a6b); background: #fff; border: 1px solid var(--line-2); padding: 3px 10px; border-radius: 999px; white-space: nowrap; box-shadow: var(--sh-1); }
.tm-dot:hover { z-index: 5; }
.tm-dot:hover .tm-name { background: var(--grad-brand); color: #fff; border-color: transparent; }
.tm-hint { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 12px; }
.theater.flash { animation: th-flash 1.5s ease; }
@keyframes th-flash { 0%, 100% { box-shadow: var(--sh-1); } 30% { box-shadow: 0 0 0 3px rgba(255,77,95,0.6), 0 14px 40px rgba(255,77,95,0.3); } }

/* ── dramatic eliminations wall ── */
.elim-wall {
  margin-top: 30px; padding: 28px 18px 20px; border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(226,59,82,0.05), rgba(11,71,196,0.03));
  border: 1px solid var(--line); border-top: 3px solid #e23b52;
}
.elim-wall .page-head { margin-bottom: 24px; }
.ew-eyebrow { color: #e23b52 !important; }
.ew-eyebrow::before { background: #e23b52 !important; }
.elim-wall .tgt-photo img { filter: grayscale(82%) brightness(0.85) contrast(1.05); }
.tgt-stamp {
  position: absolute; top: 9%; inset-inline-start: 7%; z-index: 4;
  color: #ff3b4d; font-weight: 900; font-size: 0.92rem; letter-spacing: 1px;
  padding: 2px 9px; border: 3px solid #ff3b4d; border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(255,59,77,0.25); text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  transform: rotate(-13deg) scale(2.6); opacity: 0;
}
.tgt-card.in .tgt-stamp { animation: stamp-slam 0.5s 0.18s cubic-bezier(.2,.85,.25,1) forwards; }
@keyframes stamp-slam {
  0% { opacity: 0; transform: rotate(-13deg) scale(2.6); }
  55% { opacity: 1; transform: rotate(-13deg) scale(0.9); }
  100% { opacity: 0.95; transform: rotate(-13deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .tgt-card.in .tgt-stamp { animation: none; opacity: 0.95; transform: rotate(-13deg) scale(1); } .tm-lines line, .tm-pulse::after { animation: none; } }

/* login / register modal tabs */
.lm-tabs { display: flex; gap: 6px; background: var(--fill); border-radius: 999px; padding: 4px; margin: 14px 0 16px; }
.lm-tab { flex: 1; padding: 9px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; color: var(--muted); background: none; transition: background 0.15s, color 0.15s; }
.lm-tab.active { background: var(--bg-elev); color: var(--navy-600); box-shadow: var(--sh-1); }

/* ============================================================
   ABOUT PAGE — hero, values, timeline
   ============================================================ */
.about-hero {
  position: relative; overflow: hidden; margin: 8px 0 26px; text-align: center;
  background: var(--grad-brand); color: #fff; border-radius: var(--r-xl);
  padding: 30px 28px; box-shadow: var(--glow-blue);
}
.about-hero::before { content: '✡'; position: absolute; top: -24px; inset-inline-end: -8px; font-size: 9rem; opacity: 0.09; line-height: 1; }
.about-hero::after { content: '✡'; position: absolute; bottom: -34px; inset-inline-start: -14px; font-size: 7rem; opacity: 0.07; line-height: 1; }
.ah-flag { font-size: 2rem; display: block; margin-bottom: 8px; position: relative; z-index: 1; }
.ah-quote { font-size: clamp(1.12rem, 3.6vw, 1.5rem); font-weight: 800; line-height: 1.5; position: relative; z-index: 1; }
.ah-by { margin-top: 12px; font-size: 0.82rem; font-weight: 700; opacity: 0.85; position: relative; z-index: 1; }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.value-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 18px; box-shadow: var(--sh-1); transition: transform 0.18s var(--ease), border-color 0.18s; }
.value-card:hover { transform: translateY(-4px); border-color: var(--navy-600); }
.vc-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--fill); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.vc-ico svg { width: 26px; height: 26px; color: var(--navy-600); }
.vc-t { font-weight: 800; font-size: 1rem; color: var(--white); }
.vc-d { font-size: 0.84rem; color: var(--muted); line-height: 1.55; margin-top: 5px; }
@media (max-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }

/* About timeline → single horizontal rail; every milestone visible at once, no scroll */
.about-rail { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; position: relative; padding: 16px 6px 6px; }
.about-rail::before { content: ''; position: absolute; top: 23px; inset-inline: 14px; height: 2px; background: linear-gradient(90deg, var(--navy-600), var(--sky)); opacity: 0.4; border-radius: 2px; z-index: 0; }
.rail-node { position: relative; z-index: 1; min-width: 0; text-align: center; }
.rail-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--grad-brand); box-shadow: 0 0 0 4px var(--bg), 0 2px 8px rgba(11,71,196,0.5); margin: 0 auto 12px; }
.rail-year { font-weight: 900; font-size: 0.92rem; color: var(--navy-600); margin-bottom: 5px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.rail-title { font-weight: 800; font-size: 0.78rem; color: var(--white); line-height: 1.25; margin-bottom: 4px; }
.rail-desc { font-size: 0.68rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 720px) {
  .about-rail { grid-template-columns: repeat(4, 1fr); gap: 20px 8px; padding-top: 8px; }
  .about-rail::before { display: none; }
}
@media (max-width: 380px) { .about-rail { grid-template-columns: repeat(2, 1fr); } }

/* WIP features hidden on the LIVE site (shown only on preview / localhost) */
html:not(.preview-mode) .about-hero,
html:not(.preview-mode) .about-extra,
html:not(.preview-mode) .threat-map { display: none !important; }

/* sidebar flows naturally with the page — no internal scrollbar */
.home-aside { padding-bottom: 4px; }

/* rewards: big "log in to earn" CTA when logged out */
.rw-login-cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; background: var(--grad-brand); color: #fff; border-radius: var(--r-xl); padding: 28px 22px; box-shadow: var(--glow-blue); margin-bottom: 18px; }
.rw-login-cta .rlc-ico svg { width: 34px; height: 34px; }
.rw-login-cta .rlc-t { font-size: 1.3rem; font-weight: 900; }
.rw-login-cta .rlc-d { font-size: 0.9rem; opacity: 0.92; line-height: 1.55; max-width: 380px; }
.rw-login-cta .rlc-btn { margin-top: 8px; background: #fff; color: #0b2a6b; font-weight: 800; padding: 13px 30px; border-radius: 999px; font-size: 1.02rem; box-shadow: var(--sh-2); display: inline-flex; align-items: center; gap: 8px; }
.rw-login-cta .rlc-btn svg { width: 18px; height: 18px; }
.rw-login-cta .rlc-btn:hover { transform: translateY(-1px); }

/* ============================================================
   CARD REDESIGNS — less generic, more distinctive
   ============================================================ */
/* dots "map" removed for now (a real regional map will replace it) */
.threat-map { display: none !important; }

/* benefit cards → value-forward, branded */
.ben-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 16px; display: block; position: relative; overflow: hidden; box-shadow: var(--sh-1); backdrop-filter: none; }
.ben-card::before { content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 100%; height: 3px; background: var(--grad-brand); }
.ben-card:hover { transform: translateY(-4px); border-color: var(--navy-600); box-shadow: var(--sh-2); }
.bc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.bc-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--fill); display: inline-flex; align-items: center; justify-content: center; font-size: 1.55rem; flex-shrink: 0; }
.ben-tag { background: rgba(47,210,126,0.14); color: var(--green); font-weight: 800; font-size: 0.82rem; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.ben-title { font-weight: 800; font-size: 1.04rem; color: var(--white); }
.ben-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-top: 5px; }

/* theater "victory" cards */
.theater.victory { border: 1px solid var(--line); background: var(--bg-elev); box-shadow: var(--sh-1); backdrop-filter: none; }
.theater.victory .theater-hdr { background: linear-gradient(120deg, #0a2a6b, #0B47C4); border-bottom: none; padding: 18px 20px; }
.theater.victory .th-name { color: #fff; }
.theater.victory .th-sub { color: #fff; opacity: 0.86; }
.theater.victory .th-flag { font-size: 2.1rem; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3)); }
.th-meta { flex: 1; min-width: 0; }
.th-badge { display: inline-flex; align-items: center; gap: 5px; background: #2fd27e; color: #06351f; font-weight: 900; font-size: 0.78rem; padding: 6px 13px; border-radius: 999px; white-space: nowrap; box-shadow: 0 3px 10px rgba(47,210,126,0.45); }
.th-badge svg { width: 14px; height: 14px; }
.ach-check { width: 25px; height: 25px; flex-shrink: 0; margin-top: 1px; background: rgba(47,210,126,0.16); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--green); }
.ach-check svg { width: 14px; height: 14px; }

/* ============================================================
   SECURITY — operation dossiers (case files)
   ============================================================ */
.dossier-grid { display: grid; gap: 18px; }
.dossier {
  position: relative; background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden;
  transition: transform 0.18s var(--ease), box-shadow 0.18s;
}
.dossier:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.dos-top {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(100deg, #20262e 0%, #3b4654 100%);
  color: #fff; padding: 9px 16px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.04em;
}
.dos-tab { display: inline-flex; align-items: center; gap: 7px; }
.dos-tab svg { width: 14px; height: 14px; }
.dos-case { font-family: ui-monospace, 'Courier New', monospace; opacity: 0.92; font-weight: 700; letter-spacing: 0.08em; }
.dos-stamp {
  position: absolute; top: 50px; inset-inline-end: 16px; z-index: 3;
  color: var(--red); border: 3px solid var(--red); border-radius: 7px;
  font-weight: 900; font-size: 1.12rem; padding: 3px 13px; transform: rotate(-11deg);
  opacity: 0.85; letter-spacing: 0.1em; background: rgba(226,59,82,0.05);
  box-shadow: 0 0 0 2px rgba(226,59,82,0.12) inset; pointer-events: none;
}
.dos-head { display: flex; align-items: center; gap: 14px; padding: 18px 18px 10px; padding-inline-end: 92px; }
.dos-flag { font-size: 2.4rem; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); flex-shrink: 0; }
.dos-name { font-weight: 900; font-size: 1.3rem; color: var(--white); line-height: 1.12; }
.dos-op { font-size: 0.82rem; color: var(--muted); margin-top: 3px; font-weight: 600; }
.dos-body { padding: 2px 18px 20px; }
.dos-label {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; color: #3b4654;
  margin: 8px 0 13px; display: flex; align-items: center; gap: 9px;
}
.dos-label::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.dos-intel { display: flex; flex-direction: column; gap: 10px; }
.dos-intel li { position: relative; padding-inline-start: 22px; font-size: 0.9rem; line-height: 1.55; color: var(--mist); }
.dos-intel li::before { content: '▸'; position: absolute; inset-inline-start: 0; top: 0; color: #59657a; font-weight: 900; }

/* admin-only delete button on feed cards */
.del-feed-btn { margin-inline-start: auto; color: var(--red); }
.del-feed-btn .aico svg { stroke: var(--red); }
.del-feed-btn:hover { background: rgba(226,59,82,0.1); }
@media (min-width: 780px) {
  .dossier-grid { grid-template-columns: 1fr 1fr; }
  .dossier:first-child { grid-column: 1 / -1; }
}

/* ============================================================
   ECONOMY — "what it means for you" impact cards
   ============================================================ */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.impact-card {
  position: relative; overflow: hidden; text-align: center;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 15px 18px; box-shadow: var(--sh-1);
  transition: transform 0.18s var(--ease), box-shadow 0.18s;
}
.impact-card::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 3px; background: var(--grad-brand); }
.impact-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.ic-ico { font-size: 2.1rem; line-height: 1; margin-bottom: 9px; }
.ic-num { font-weight: 900; font-size: 1.7rem; color: var(--navy-600); line-height: 1; font-variant-numeric: tabular-nums; }
.ic-num small { font-size: 0.86rem; font-weight: 800; margin-inline-start: 3px; }
.ic-lbl { font-weight: 800; font-size: 0.92rem; color: var(--white); margin-top: 9px; }
.ic-mean { font-size: 0.77rem; color: var(--muted); line-height: 1.45; margin-top: 6px; }
.ic-trend { display: inline-block; margin-top: 11px; font-size: 0.71rem; font-weight: 800; padding: 3px 11px; border-radius: 999px; color: var(--green); background: rgba(12,138,75,0.1); }
@media (max-width: 760px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }

/* ═══════════ LEADERBOARDS ("המפיצים המובילים" — day/week/month/all) ═══════════ */
.lbx { display: flex; flex-direction: column; gap: 14px; }
.lbx-head { display: flex; align-items: center; gap: 11px; }
.lbx-head svg { width: 26px; height: 26px; color: var(--navy-600); flex: none; }
.lbx-title { font-weight: 900; font-size: 1.32rem; color: var(--white); line-height: 1.1; }
.lbx-sub2 { font-size: 0.82rem; font-weight: 700; color: var(--faint); margin-top: 2px; }

.lbx-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--bg); border: 1px solid var(--line, #E2E8F4); border-radius: 13px; padding: 4px; }
.lbx-tab { appearance: none; border: 0; background: transparent; cursor: pointer; font-family: inherit; font-weight: 800; font-size: 0.85rem; color: var(--muted); padding: 8px 3px; border-radius: 9px; transition: .15s; line-height: 1.1; }
.lbx-tab small { display: block; font-size: 0.62rem; font-weight: 700; opacity: .72; margin-top: 2px; }
.lbx-tab:hover { color: var(--white); }
.lbx-tab.on { background: var(--navy-600); color: #fff; box-shadow: 0 6px 15px -8px var(--navy-600); }
.lbx-tab.on small { opacity: .85; }

.lbx-body { display: flex; flex-direction: column; gap: 8px; }

/* podium */
.lbx-podium { display: flex; align-items: flex-end; justify-content: center; gap: 9px; padding: 8px 2px 2px; }
.lbx-pod { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; min-width: 0; }
.lbx-pav { position: relative; border-radius: 50%; display: grid; place-items: center; background: var(--bg-elev); border: 2px solid var(--line, #E2E8F4); box-shadow: 0 6px 18px -10px rgba(14,26,51,.4); }
.lbx-pnm { font-weight: 800; font-size: 0.82rem; line-height: 1.15; max-width: 11ch; color: var(--white); overflow: hidden; text-overflow: ellipsis; }
.lbx-plate { width: 100%; border-radius: 12px 12px 7px 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 5px; color: #fff; }
.lbx-prk { font-weight: 900; font-size: 0.9rem; line-height: 1; opacity: .92; }
.lbx-psc { font-weight: 900; font-size: 1rem; font-variant-numeric: tabular-nums; }
.lbx-psc i { font-style: normal; font-size: 0.6rem; font-weight: 800; opacity: .72; margin-inline-start: 2px; }
.lbx-crown { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-size: 1.25rem; filter: drop-shadow(0 3px 4px rgba(0,0,0,.28)); }
.lbx-pod.p1 .lbx-pav { width: 74px; height: 74px; font-size: 2.2rem; border-color: #E9B949; }
.lbx-pod.p1 .lbx-plate { height: 90px; background: linear-gradient(160deg, #F0CB63, #D69A22); color: #4a3708; }
.lbx-pod.p2 .lbx-pav { width: 58px; height: 58px; font-size: 1.7rem; border-color: #9AA7BD; }
.lbx-pod.p2 .lbx-plate { height: 66px; background: linear-gradient(160deg, #AEB9CC, #7E8BA3); }
.lbx-pod.p3 .lbx-pav { width: 54px; height: 54px; font-size: 1.6rem; border-color: #C88A4E; }
.lbx-pod.p3 .lbx-plate { height: 52px; background: linear-gradient(160deg, #D39A5E, #A96F38); }

/* list rows */
.lbx-list { display: flex; flex-direction: column; gap: 6px; }
.lbx-row, .lbx-you { display: grid; grid-template-columns: 26px 36px 1fr auto; align-items: center; gap: 10px; }
.lbx-row { background: var(--bg-elev); border: 1px solid var(--line, #E2E8F4); border-radius: 13px; padding: 9px 12px; transition: transform .14s, border-color .14s; }
.lbx-row:hover { transform: translateX(-3px); border-color: var(--sky); }
.lbx-row.me { border-color: var(--navy-600); background: linear-gradient(90deg, rgba(11,71,196,0.07), var(--bg-elev) 60%); }
.lbx-rk { font-weight: 900; font-size: 0.98rem; color: var(--faint); text-align: center; font-variant-numeric: tabular-nums; }
.lbx-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; background: var(--bg); border: 1px solid var(--line, #E2E8F4); }
.lbx-who { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lbx-who > b { font-weight: 800; font-size: 0.94rem; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbx-sub { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 800; }
.lbx-fl { color: #D69A22; }
.lbx-mv.up { color: var(--green); } .lbx-mv.down { color: var(--red); } .lbx-mv.new { color: var(--sky); } .lbx-mv.flat { color: var(--faint); }
.lbx-sc { font-weight: 900; font-size: 1.05rem; color: var(--navy-600); font-variant-numeric: tabular-nums; text-align: end; }
.lbx-sc i { font-style: normal; font-size: 0.62rem; font-weight: 800; color: var(--faint); display: block; }

/* you */
.lbx-you { position: sticky; bottom: 6px; margin-top: 4px; background: var(--grad-brand); color: #fff; border-radius: 14px; padding: 11px 12px; box-shadow: 0 12px 30px -12px rgba(11,71,196,.6); }
.lbx-you .lbx-rk { color: rgba(255,255,255,.85); }
.lbx-you .lbx-av { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }
.lbx-you .lbx-who > b { color: #fff; }
.lbx-you .lbx-sub { color: rgba(255,255,255,.9); font-weight: 700; }
.lbx-you .lbx-sc { color: #fff; } .lbx-you .lbx-sc i { color: rgba(255,255,255,.8); }
.lbx-you-tag { position: absolute; top: -9px; inset-inline-start: 13px; background: #E9B949; color: #4a3708; font-size: 0.66rem; font-weight: 900; padding: 2px 9px; border-radius: 999px; }
.lbx-you.lbx-guest { display: block; text-align: center; font-weight: 800; font-size: 0.88rem; padding: 13px; }

/* earn strip */
.lbx-earn { background: var(--bg-elev); border: 1px solid var(--line, #E2E8F4); border-radius: 14px; padding: 12px; }
.lbx-earn-h { font-weight: 900; font-size: 0.92rem; color: var(--white); margin-bottom: 9px; }
.lbx-earn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.lbx-earn-i { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line, #E2E8F4); border-radius: 10px; padding: 8px 10px; font-size: 0.84rem; font-weight: 700; color: var(--mist); }
.lbx-earn-i svg { width: 16px; height: 16px; color: var(--navy-600); flex: none; }
.lbx-earn-i b { font-weight: 700; }
.lbx-earn-i i { margin-inline-start: auto; font-style: normal; font-weight: 900; font-size: 1rem; color: var(--navy-600); font-variant-numeric: tabular-nums; }

.lbx-foot { font-size: 0.72rem; color: var(--faint); font-weight: 700; text-align: center; line-height: 1.5; padding: 0 8px; }
@media (max-width: 380px) { .lbx-earn-grid { grid-template-columns: 1fr; } .lbx-tab { font-size: 0.8rem; } }



/* ── Social sign-in (Google/Apple) — used when SOCIAL_AUTH_ENABLED is flipped on ── */
.lm-social { display: flex; flex-direction: column; gap: 9px; margin: 4px 0 6px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 11px 14px; border-radius: 12px; font-family: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer; border: 1px solid var(--line, #E2E8F4); transition: .15s; }
.social-btn.google { background: #fff; color: #1f2937; }
.social-btn.google:hover { background: #f6f8fe; }
.social-btn.apple { background: #000; color: #fff; border-color: #000; }
.social-btn.apple:hover { opacity: .9; }
.lm-or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 0.8rem; font-weight: 600; margin: 8px 0; }
.lm-or::before, .lm-or::after { content: ""; flex: 1; height: 1px; background: var(--line, #E2E8F4); }

/* ── LAUNCH MODE (USERS_ENABLED=false in js/app.js): hide every member/account entry
   point — search, join, member login, chat, profile. Admin chrome (#admin, notif bell,
   admin menu + logout) stays. Remove nothing here when restoring: just flip the flag. ── */
html.users-off #search-wrap,
html.users-off .join-cta,
html.users-off #login-btn,
html.users-off #chat-btn,
html.users-off [data-nav="join"],
html.users-off li:has(> [data-nav="join"]),
html.users-off [data-nav="profile"],
html.users-off li:has(> [data-nav="profile"]),
html.users-off [data-nav="chats"],
html.users-off .nav-chat-only,
html.users-off .ud-chat-only { display: none !important; }

/* ── empty feed (no published posts yet) ── */
.feed-empty { text-align: center; padding: 42px 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.feed-empty .fe-ico svg { width: 38px; height: 38px; color: var(--navy-600); opacity: .8; }
.feed-empty .fe-title { font-weight: 900; font-size: 1.15rem; color: var(--white); }
.feed-empty .fe-sub { color: var(--muted); font-size: .92rem; max-width: 34ch; line-height: 1.6; }

/* ── team page: photo credits (Wikimedia Commons attribution) ── */
.team-credits { margin: 28px 0 8px; font-size: .78rem; color: var(--faint); }
.team-credits summary { cursor: pointer; font-weight: 700; color: var(--muted); width: max-content; }
.team-credits ul { margin: 10px 18px 0 0; padding: 0; display: grid; gap: 3px; line-height: 1.5; }
.team-credits a { color: var(--navy-600); }
.prof-credit { margin-top: 10px; font-size: .75rem; color: var(--faint); }
