*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DARK MODE (default) ── */
:root {
  --bg:           #09090b;
  --bg-card:      #18181b;
  --bg-card2:     #111113;
  --bg-card3:     #1f1f23;
  --surface:      #27272a;
  --text:         #fafafa;
  --text2:        #a1a1aa;
  --text3:        #71717a;
  --text4:        #52525b;
  --text5:        #3f3f46;
  --border:       rgba(255,255,255,0.06);
  --border2:      rgba(255,255,255,0.10);
  --nav-bg:       rgba(9,9,11,0.80);
  --modal-bg:     #18181b;
  --overlay-card: rgba(9,9,11,0.92);
  --ig-grad:      linear-gradient(45deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --radius:       12px;
}

/* ── LIGHT MODE ── via system OR manual toggle */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:           #fafafa;
    --bg-card:      #f4f4f5;
    --bg-card2:     #ececee;
    --bg-card3:     #e4e4e7;
    --surface:      #d4d4d8;
    --text:         #09090b;
    --text2:        #27272a;
    --text3:        #52525b;
    --text4:        #71717a;
    --text5:        #a1a1aa;
    --border:       rgba(0,0,0,0.06);
    --border2:      rgba(0,0,0,0.10);
    --nav-bg:       rgba(250,250,250,0.85);
    --modal-bg:     #ffffff;
    --overlay-card: rgba(250,250,250,0.94);
  }
}
[data-theme="light"] {
  --bg:           #fafafa;
  --bg-card:      #f4f4f5;
  --bg-card2:     #ececee;
  --bg-card3:     #e4e4e7;
  --surface:      #d4d4d8;
  --text:         #09090b;
  --text2:        #27272a;
  --text3:        #52525b;
  --text4:        #71717a;
  --text5:        #a1a1aa;
  --border:       rgba(0,0,0,0.06);
  --border2:      rgba(0,0,0,0.10);
  --nav-bg:       rgba(250,250,250,0.85);
  --modal-bg:     #ffffff;
  --overlay-card: rgba(250,250,250,0.94);
}
[data-theme="dark"] {
  --bg:           #09090b;
  --bg-card:      #18181b;
  --bg-card2:     #111113;
  --bg-card3:     #1f1f23;
  --surface:      #27272a;
  --text:         #fafafa;
  --text2:        #a1a1aa;
  --text3:        #71717a;
  --text4:        #52525b;
  --text5:        #3f3f46;
  --border:       rgba(255,255,255,0.06);
  --border2:      rgba(255,255,255,0.10);
  --nav-bg:       rgba(9,9,11,0.80);
  --modal-bg:     #18181b;
  --overlay-card: rgba(9,9,11,0.92);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { background: var(--bg); color: var(--text); font-family: var(--font); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

.hidden { display: none !important; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.cursor-pointer { cursor: pointer; }

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1024px; margin: 0 auto;
  padding: 0 32px; height: 60px;
  display: flex; align-items: center; gap: 24px;
}
.logo {
  font-size: 16px; font-weight: 700; letter-spacing: -0.4px;
  color: var(--text); cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-link {
  font-size: 13px; font-weight: 400;
  color: var(--text3); text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
/* ── THEME TOGGLE ── */
.theme-toggle {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border2); background: transparent;
  color: var(--text3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  margin-left: auto;
}
.theme-toggle:hover { border-color: var(--border2); color: var(--text); background: var(--bg-card); }
/* show correct icon per theme */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun  { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
}
.nav-icons { margin-left: auto; display: flex; gap: 8px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border2); background: transparent;
  color: var(--text3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}
.icon-btn:hover { border-color: var(--border2); color: var(--text); }

/* nav search (profile page) */
.nav-search-form { margin-left: auto; position: relative; }
.nav-search-input {
  background: var(--bg-card); border: 1px solid var(--border2);
  border-radius: 9999px; padding: 7px 16px 7px 36px;
  width: 220px; font-size: 13px; font-family: var(--font);
  color: var(--text); outline: none; transition: border-color 0.2s;
}
.nav-search-input:focus { border-color: rgba(255,255,255,0.2); }
.nav-search-input::placeholder { color: var(--text4); }

/* daily counter (profile navbar) */
.daily-badge {
  flex-shrink: 0; font-size: 11px; font-weight: 500;
  padding: 4px 10px; border-radius: 9999px; white-space: nowrap;
  border: 1px solid var(--border2); color: var(--text3);
  transition: color 0.2s, border-color 0.2s;
}
.daily-badge.warn  { color: #f59e0b; border-color: rgba(245,158,11,0.3); }
.daily-badge.empty { color: #ef4444; border-color: rgba(239,68,68,0.3); }

/* ── HERO ── */
.hero {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 100px 24px 72px; gap: 64px;  /* my-12 premium whitespace ↑ */
  text-align: center;
}
.hero-text { display: flex; flex-direction: column; gap: 16px; }
.hero-title {
  font-size: clamp(42px, 6vw, 72px); font-weight: 800;
  letter-spacing: -0.05em;   /* tracking-tight */
  color: var(--text); line-height: 1.05;
}
.gradient-text {
  background: var(--ig-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 16px;
  color: #a3a3a3;            /* text-neutral-400 */
  line-height: 1.625;        /* leading-relaxed */
  max-width: 480px; margin: 0 auto; font-weight: 400;
}

/* ── MODERN INPUT (ModernInput) ── */
.search-box { width: 100%; max-width: 560px; }
.search-inner {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);   /* border-white/5 */
  border-radius: 16px;                         /* rounded-2xl */
  padding: 6px 6px 6px 20px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);    /* shadow-[0_20px_50px_rgba(0,0,0,0.5)] */
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-inner:focus-within {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5),
              0 0 0 1px rgba(255,255,255,0.20); /* ring-1 ring-white/20 */
}
.search-icon { flex-shrink: 0; color: var(--text4); }
.search-input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 15px; font-weight: 400; font-family: var(--font);
  color: var(--text); padding: 10px 0;
}
.search-input::placeholder { color: var(--text4); }
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration { display: none; }
.search-btn {
  background: var(--text); border: none; border-radius: 9999px;
  padding: 12px 24px; font-size: 14px; font-weight: 600;
  font-family: var(--font); color: var(--bg); cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  transition: opacity 0.15s, transform 0.1s;
}
.search-btn:hover { opacity: 0.88; }
.search-btn:active { transform: scale(0.97); }

/* daily hint under search */
.search-daily-hint {
  text-align: center; margin-top: 12px;
  font-size: 12px; color: var(--text4);
}
.search-daily-hint span { transition: color 0.2s; }
.search-daily-hint span.warn  { color: #f59e0b; }
.search-daily-hint span.empty { color: #ef4444; font-weight: 600; }

/* ── RECENT ── */
.recent-section { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.recent-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--text4); text-transform: uppercase;
}
.recent-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border2);
  border-radius: 9999px; padding: 7px 16px;
  cursor: pointer; color: var(--text2); font-size: 13px; font-family: var(--font);
  transition: border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: rgba(255,255,255,0.18); color: var(--text); }
.chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

/* ── FEATURES ── */
.features-row {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.feature-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 9999px;
  border: 1px solid var(--border); background: var(--bg-card2);
  font-size: 12px; font-weight: 400; color: var(--text3);
  letter-spacing: 0.01em;
}

/* ── FOOTER ── */
.footer {
  padding: 40px 32px; display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  border-top: 1px solid var(--border);
}
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 12px; color: var(--text4); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--text2); }
.footer-copy { font-size: 12px; color: var(--text5); }

/* ── LOADER ── */
.loader-wrap {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px; padding: 80px 24px;
}
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--border2); border-top-color: var(--text);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { font-size: 14px; color: var(--text3); text-align: center; line-height: 1.7; }
.loader-text small { font-size: 12px; color: var(--text4); }

/* ── ERROR ── */
.error-box {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  padding: 80px 24px; text-align: center;
  color: var(--text3); font-size: 15px;
}

/* ── PROFILE HEADER (ProfileHeader) ── */
.profile-wrap { flex: 1; max-width: 935px; width: 100%; margin: 0 auto; padding: 48px 24px 0; }

.profile-header {
  display: flex; gap: 56px; align-items: flex-start;
  padding-bottom: 36px; border-bottom: 1px solid var(--border);
}
.avatar-ring {
  flex-shrink: 0; width: 148px; height: 148px; border-radius: 50%;
  padding: 3px; background: var(--ig-grad);
}
.avatar-img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--bg); display: block;
}
.profile-info { flex: 1; display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.profile-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-name {
  font-size: 22px; font-weight: 300; letter-spacing: -0.3px; color: var(--text);
}
.verified-badge { color: #3b82f6; flex-shrink: 0; }
.profile-username { font-size: 13px; color: var(--text3); margin-top: -8px; }

/* Stats Bar — label (gray, small) above value (white, bold) */
.stats-row { display: flex; gap: 36px; }
.stat {
  display: flex; flex-direction: column;   /* column = label above value */
  gap: 2px; align-items: flex-start;
}
.stat-lbl {
  font-size: 11px; font-weight: 500;
  color: var(--text3);                     /* gray, small */
  letter-spacing: 0.04em; text-transform: uppercase;
}
.stat-val {
  font-size: 18px; font-weight: 700;       /* white, bold */
  color: var(--text); letter-spacing: -0.5px;
}

.profile-bio {
  font-size: 14px; color: var(--text2); line-height: 1.65;
  white-space: pre-line; max-width: 480px;
}

/* ── HIGHLIGHTS ROW ── */
.highlights-wrap {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.highlights-wrap::-webkit-scrollbar { display: none; }
.highlights-row {
  display: flex;
  gap: 20px;
  padding: 4px 0;
}
.highlight-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; flex-shrink: 0; width: 72px;
  transition: opacity 0.15s;
}
.highlight-item:hover { opacity: 0.8; }
.highlight-circle {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--border2);
  transition: border-color 0.15s;
}
.highlight-item.active .highlight-circle { border-color: var(--text); }
.highlight-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.highlight-label {
  font-size: 11px; color: var(--text2); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 72px;
}
.highlight-item.active .highlight-label { color: var(--text); font-weight: 600; }

/* ── HIGHLIGHT GRID SECTION ── */
.highlight-grid-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 0 12px; border-top: 1px solid var(--border);
}
.highlight-grid-back {
  background: none; border: none; cursor: pointer;
  color: var(--text2); font-size: 20px; line-height: 1; padding: 4px;
  display: flex; align-items: center;
}
.highlight-grid-back:hover { color: var(--text); }
.highlight-grid-name {
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text);
}

/* ── TABS ── */
.tabs-bar {
  display: flex; margin-top: 0;
  border-top: none;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tabs-bar::-webkit-scrollbar { display: none; }
.tab {
  flex: 1; padding: 14px 8px; background: none; border: none;
  border-top: 1px solid transparent;
  cursor: pointer; font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text4); font-family: var(--font); transition: color 0.15s, border-color 0.15s;
}
.tab.active { border-top-color: var(--text); color: var(--text); }
.tab:hover:not(.active) { color: var(--text2); }
.tab-content { padding: 24px 0; }

/* ── MEDIA GRID (MediaGrid) ── */
.posts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
}
.post-card {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--bg-card); cursor: pointer;
}
.post-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-overlay {
  position: absolute; inset: 0; background: transparent;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  transition: background 0.18s;
}
.post-card:hover .post-overlay { background: rgba(0,0,0,0.38); }
.post-stat {
  color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 5px;
  opacity: 0; transition: opacity 0.18s;
}
.post-card:hover .post-stat { opacity: 1; }
.badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 6px; border-radius: 4px;
  letter-spacing: 0.02em;
}

/* ── STORIES GRID ── */
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.story-card {
  position: relative; aspect-ratio: 9/16; overflow: hidden;
  background: var(--bg-card); border-radius: 8px; cursor: pointer;
}
.story-card img, .story-card video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── HIGHLIGHTS GRID (tab) ── */
.highlights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 16px; }

/* ── MODALS ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-box {
  background: var(--modal-bg); border: 1px solid var(--border2);
  border-radius: 20px; width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto; position: relative; padding: 28px;
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--surface); border: none; color: var(--text3);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--border2); color: var(--text); }
.modal-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; color: var(--text); }
.modal-media { display: flex; flex-direction: column; gap: 12px; }
.modal-media img, .modal-media video { width: 100%; border-radius: 8px; object-fit: cover; cursor: pointer; }

/* ── EMPTY STATE ── */
.empty-msg { color: var(--text4); text-align: center; padding: 48px; font-size: 14px; }

/* ── PRIVATE OVERLAY (PrivateOverlay) ── */
.private-overlay { position: relative; min-height: 320px; }

/* blur-xl = 24px on the blurred placeholder grid */
.private-placeholder-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
  filter: blur(24px);        /* blur-xl */
  opacity: 0.18;
  pointer-events: none; user-select: none;
}
.private-placeholder-grid > div {
  aspect-ratio: 1; background: var(--bg-card);
}
/* Vary shades so the blur grid looks like real content */
.private-placeholder-grid > div:nth-child(2) { background: #222226; }
.private-placeholder-grid > div:nth-child(4) { background: #1c1c20; }
.private-placeholder-grid > div:nth-child(6) { background: #222226; }
.private-placeholder-grid > div:nth-child(8) { background: #1a1a1e; }

/* Centered overlay card */
.private-overlay-card {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center; padding: 36px 44px;
  background: var(--overlay-card);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  width: calc(100% - 48px); max-width: 320px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.6);
}

/* Lock icon circle */
.private-overlay-icon {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; color: var(--text3);
}

/* "PRIVATE ACCOUNT" label in caps */
.private-overlay-title {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em;    /* tracking-widest */
  text-transform: uppercase;
  color: var(--text3); margin-bottom: 8px;
}

/* Main message */
.private-overlay-sub {
  font-size: 15px; font-weight: 500; color: var(--text);
  line-height: 1.5; margin-bottom: 20px;
}

/* "Search again" clean button */
.private-overlay-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent; color: var(--text2);
  font-size: 13px; font-weight: 500; font-family: var(--font);
  cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.private-overlay-btn:hover { border-color: rgba(255,255,255,0.25); color: var(--text); }

/* ── LIGHTBOX ── */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.lightbox-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.92); }
.lightbox-box { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.lb-content img, .lb-content video { max-width: 80vw; max-height: 85vh; border-radius: 8px; object-fit: contain; }
.lb-close {
  position: fixed; top: 20px; right: 24px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border2); color: var(--text2);
  font-size: 18px; width: 38px; height: 38px; border-radius: 50%;
  cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.lb-close:hover { background: rgba(255,255,255,0.15); }
.lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); border: 1px solid var(--border2); color: var(--text);
  font-size: 28px; width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.lb-nav:hover { background: rgba(255,255,255,0.15); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-download {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,0.08); border: 1px solid var(--border2);
  color: var(--text2); padding: 9px 22px; border-radius: 9999px;
  text-decoration: none; font-size: 13px; font-weight: 500;
  transition: background 0.15s; z-index: 2;
}
.lb-download:hover { background: rgba(255,255,255,0.15); }

/* lightbox side panel */
.lb-side {
  position: fixed; top: 0; right: 0; bottom: 0; width: 280px;
  background: var(--bg-card); border-left: 1px solid var(--border);
  overflow-y: auto; z-index: 3;
}
.lb-side-inner { padding: 16px; }
.lb-side-section { margin-bottom: 24px; }
.lb-side-title {
  font-size: 11px; font-weight: 600; color: var(--text4);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 10px 0; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.lb-liker, .lb-comment {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.lb-liker:last-child, .lb-comment:last-child { border-bottom: none; }
.lb-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.lb-user-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.lb-comment-text { font-size: 13px; color: var(--text2); line-height: 1.4; margin-top: 2px; word-break: break-word; }
.lb-comment-meta { font-size: 11px; color: var(--text4); margin-top: 3px; }
.lb-side-loading { color: var(--text3); font-size: 13px; text-align: center; padding: 20px 0; }
.lightbox-box.has-side .lb-content { margin-right: 280px; }
@media (max-width: 768px) {
  .lb-side { width: 100%; top: auto; height: 40vh; border-left: none; border-top: 1px solid var(--border); }
  .lightbox-box.has-side .lb-content { margin-right: 0; margin-bottom: 40vh; }
  .lb-content img, .lb-content video { max-height: 50vh; }
}

/* ── USERS LIST ── */
.users-list { display: flex; flex-direction: column; gap: 2px; }
.users-list-preview { display: flex; flex-direction: column; gap: 2px; pointer-events: none; }
.user-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  transition: background 0.12s;
}
.user-card:hover { background: var(--bg-card); }
.user-card.blurred { filter: blur(5px); opacity: 0.4; }
.user-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg-card); }
.user-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.user-name {
  font-size: 14px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 4px;
}
.user-handle { font-size: 12px; color: var(--text3); }
.user-view-btn {
  flex-shrink: 0; padding: 5px 14px; border-radius: 9999px;
  border: 1px solid var(--border2); background: transparent;
  color: var(--text3); font-size: 12px; font-weight: 500; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.user-view-btn:hover { border-color: var(--text2); color: var(--text); }

/* ── PAYWALL ── */
.paywall { position: relative; margin-top: -80px; padding-top: 80px; text-align: center; }
.paywall-blur {
  position: absolute; top: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.paywall-card {
  background: var(--bg-card); border: 1px solid var(--border2);
  border-radius: 16px; padding: 32px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  max-width: 380px; margin: 0 auto 32px;
}
.paywall-icon { font-size: 32px; }
.paywall-title { font-size: 18px; font-weight: 600; color: var(--text); }
.paywall-desc { font-size: 14px; color: var(--text3); text-align: center; }
.paywall-btn {
  margin-top: 8px; padding: 12px 28px; border-radius: 9999px; border: none;
  background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: opacity 0.15s; width: 100%;
}
.paywall-btn:hover { opacity: 0.88; }
.paywall-note { font-size: 11px; color: var(--text4); }

/* ── CONTENT SECTIONS (SEO) ── */
.content-section { padding: 64px 24px; }
.content-section--alt { background: var(--bg-card2); }
.content-inner { max-width: 720px; margin: 0 auto; }
.content-inner h2 {
  font-size: 20px; font-weight: 600; margin-bottom: 16px;
  color: var(--text); letter-spacing: -0.3px;
}
.content-inner p { font-size: 14px; color: var(--text3); line-height: 1.8; margin-bottom: 14px; }
.content-steps { list-style: none; counter-reset: steps; padding: 0; margin: 16px 0; }
.content-steps li {
  counter-increment: steps;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text3); line-height: 1.65;
}
.content-steps li::before {
  content: counter(steps);
  min-width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); color: var(--text2);
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.content-list { list-style: none; padding: 0; margin: 16px 0; }
.content-list li {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text3); line-height: 1.65;
}
.content-list li:last-child { border-bottom: none; }

/* ── FAQ ── */
.faq-section { padding: 64px 24px; }
.faq-inner { max-width: 720px; margin: 0 auto; }
.faq-title { font-size: 22px; font-weight: 600; text-align: center; margin-bottom: 36px; letter-spacing: -0.3px; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.faq-q {
  padding: 16px 20px; font-size: 14px; font-weight: 500;
  cursor: pointer; list-style: none; display: flex;
  justify-content: space-between; align-items: center; color: var(--text);
  transition: background 0.12s;
}
.faq-q:hover { background: var(--bg-card); }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; font-size: 18px; color: var(--text4); transition: transform 0.2s; flex-shrink: 0; }
details[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 20px 16px; font-size: 13px; color: var(--text3); line-height: 1.75; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .profile-header { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
  .stats-row { justify-content: center; }
  .avatar-ring { width: 96px; height: 96px; }
  .profile-name { font-size: 18px; }
  .posts-grid { gap: 2px; }
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 36px; letter-spacing: -1.5px; }
  .search-input { font-size: 15px; }
  .search-btn { padding: 10px 18px; font-size: 13px; }
  .navbar-inner { padding: 0 16px; }
  .nav-links { display: none; }
  .profile-wrap { padding: 24px 16px 0; }
  .private-overlay-card { padding: 28px 24px; }
}
