:root {
  --bg: #f8f8f6;
  --surface: #ffffff;
  --surface2: #f2f2f0;
  --surface3: #e8e8e5;
  --border: rgba(0,0,0,0.07);
  --border2: rgba(0,0,0,0.13);
  --text: #111110;
  --muted: rgba(0,0,0,0.36);
  --muted2: rgba(0,0,0,0.56);
  --green: #16a34a;
  --green-bg: #dcfce7;
  --green-border: rgba(22,163,74,0.2);
  --amber: #b45309;
  --amber-bg: #fef3c7;
  --red: #dc2626;
  --red-bg: #fee2e2;
  --blue: #2563eb;
  --blue-bg: #dbeafe;
  --purple: #7c3aed;
  --purple-bg: #ede9fe;
  --sans: 'Geist', sans-serif;
  --mono: 'Geist Mono', monospace;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 20px;
  --sh: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.05);
  --sh-md: 0 6px 20px rgba(0,0,0,0.09), 0 0 0 1px rgba(0,0,0,0.06);
  --sh-xl: 0 24px 60px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.07);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── DARK MODE ── */
[data-theme="dark"] {
  --bg: #111110;
  --surface: #1c1c1a;
  --surface2: #242422;
  --surface3: #2e2e2b;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --text: #f0f0ee;
  --muted: rgba(255,255,255,0.36);
  --muted2: rgba(255,255,255,0.56);
  --green-bg: rgba(22,163,74,0.15);
  --green-border: rgba(22,163,74,0.3);
  --amber-bg: rgba(180,83,9,0.18);
  --red-bg: rgba(220,38,38,0.15);
  --blue-bg: rgba(37,99,235,0.15);
  --purple-bg: rgba(124,58,237,0.15);
  --sh: 0 1px 3px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
  --sh-md: 0 6px 20px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  --sh-xl: 0 24px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
}
[data-theme="dark"] nav { background: rgba(17,17,16,0.97); }
[data-theme="dark"] .mobile-nav { background: rgba(17,17,16,0.98) !important; }
[data-theme="dark"] mark.hl { background:#713f12; color:#fde68a; }
[data-theme="dark"] .idea-box { background: rgba(22,163,74,0.1); }
[data-theme="dark"] .card-idea { color:#4ade80; }
[data-theme="dark"] .code-textarea { color:#60a5fa; }
[data-theme="dark"] #fixedCode { color:#60a5fa; }
[data-theme="dark"] .cta-card { background: var(--surface3); }
[data-theme="dark"] .cta-title { color: var(--text); }
[data-theme="dark"] .cta-sub { color: var(--muted2); }
[data-theme="dark"] .featured-badge { background: rgba(234,179,8,0.15); color:#fde68a; }
[data-theme="dark"] .auth-overlay { background: rgba(0,0,0,0.65); }
[data-theme="dark"] .cta-btn { background: rgba(255,255,255,0.15); color: #fff; }
[data-theme="dark"] .cta-btn:hover { background: rgba(255,255,255,0.22); }
[data-theme="dark"] .sort-select { background: var(--surface2); color: var(--muted2); }
[data-theme="dark"] .lang-select { background: var(--surface2); color: var(--text); }
[data-theme="dark"] .search-wrap:focus-within { border-color:rgba(255,255,255,.22); box-shadow:0 0 0 3px rgba(255,255,255,.05); }
[data-theme="dark"] .editor-box:focus-within { border-color:rgba(22,163,74,.4); }

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { overflow-x:hidden; }
body { background:var(--bg); color:var(--text); font-family:var(--sans); min-height:100vh; -webkit-font-smoothing:antialiased; transition: background .2s, color .2s; overflow-x:hidden; }

/* ── NAV ── */
nav {
  height:54px; display:flex; align-items:center; padding:0 24px;
  border-bottom:1px solid var(--border);
  background:rgba(248,248,246,0.97);
  position:sticky; top:0; z-index:200; gap:6px;
}
.logo { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:600; letter-spacing:-.3px; color:var(--text); text-decoration:none; }
.logo-icon { width:26px; height:26px; border-radius:6px; object-fit:cover; display:block; flex-shrink:0; }
.logo-muted { color:var(--muted2); font-weight:400; }
.nav-sep { width:1px; height:18px; background:var(--border2); margin:0 14px 0 6px; }
.nav-tab { padding:5px 11px; border-radius:7px; font-size:13px; font-weight:500; border:none; background:none; color:var(--muted2); cursor:pointer; transition:all .15s var(--ease); font-family:var(--sans); }
.nav-tab:hover { background:var(--surface2); color:var(--text); }
.nav-tab.active { background:var(--surface2); color:var(--text); }
.nav-search { flex:1; display:flex; justify-content:center; }
.search-wrap { display:flex; align-items:center; gap:7px; padding:0 12px; background:var(--surface2); border:1px solid var(--border2); border-radius:var(--r); height:34px; width:220px; transition:all .2s var(--ease); cursor:text; }
.search-wrap:focus-within { background:var(--surface); border-color:rgba(0,0,0,.22); box-shadow:0 0 0 3px rgba(0,0,0,.05); width:280px; }
.search-icon { font-size:13px; color:var(--muted); flex-shrink:0; user-select:none; }
.search-input { border:none; background:none; outline:none; font-family:var(--sans); font-size:13px; color:var(--text); width:100%; }
.search-input::placeholder { color:var(--muted); }
.search-clear { background:none; border:none; cursor:pointer; color:var(--muted); font-size:14px; padding:0; line-height:1; display:none; flex-shrink:0; transition:color .15s; }
.search-clear:hover { color:var(--text); }
.search-clear.visible { display:block; }
.search-kbd { font-family:var(--mono); font-size:10px; padding:1px 5px; background:var(--surface3); border:1px solid var(--border2); border-radius:4px; color:var(--muted); flex-shrink:0; }
.nav-right { display:flex; align-items:center; gap:8px; }
.btn { display:inline-flex; align-items:center; gap:5px; padding:7px 14px; border-radius:var(--r-sm); font-family:var(--sans); font-size:13px; font-weight:500; cursor:pointer; transition:all .15s var(--ease); border:none; }
.btn-primary { background:var(--text); color:var(--bg); }
.btn-primary:hover { background:#2a2a28; }
.btn-ghost { background:var(--surface); color:var(--muted2); border:1px solid var(--border2); box-shadow:var(--sh); }
.btn-ghost:hover { color:var(--text); border-color:rgba(0,0,0,.2); }
.nav-social { display:flex; align-items:center; gap:4px; }
.nav-social-btn { width:32px; height:32px; border-radius:8px; background:var(--surface2); border:1px solid var(--border2); color:var(--muted2); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .15s var(--ease); flex-shrink:0; padding:0; }
.nav-social-btn svg { width:14px; height:14px; }
.nav-social-btn:hover { background:var(--surface3); color:var(--text); }
.nav-social-btn.nav-x:hover { color:#000; }
.nav-social-btn.nav-fb:hover { color:#1877f2; }
.nav-social-btn.nav-li:hover { color:#0a66c2; }
[data-theme="dark"] .nav-social-btn.nav-x:hover { color:#fff; }
.theme-toggle { width:32px; height:32px; border-radius:8px; background:var(--surface2); border:1px solid var(--border2); color:var(--muted2); font-size:15px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .15s var(--ease); flex-shrink:0; }
.theme-toggle:hover { background:var(--surface3); color:var(--text); }
.notif-bell { position:relative; width:32px; height:32px; border-radius:8px; background:var(--surface2); border:1px solid var(--border2); color:var(--muted2); cursor:pointer; display:none; align-items:center; justify-content:center; transition:all .15s var(--ease); flex-shrink:0; padding:0; }
.notif-bell:hover { background:var(--surface3); color:var(--text); }
.notif-bell svg { width:16px; height:16px; }
.notif-badge { position:absolute; top:-4px; right:-4px; min-width:16px; height:16px; padding:0 4px; border-radius:8px; background:#dc2626; color:#fff; font-size:10px; font-weight:700; font-family:var(--mono); display:none; align-items:center; justify-content:center; line-height:1; border:2px solid var(--surface); }
.notif-badge.visible { display:flex; }
.notif-panel { position:absolute; top:calc(100% + 8px); right:0; width:360px; max-height:440px; background:var(--surface); border:1px solid var(--border2); border-radius:var(--r-lg); box-shadow:var(--sh-xl); z-index:500; display:none; flex-direction:column; overflow:hidden; }
.notif-panel.open { display:flex; }
.notif-panel-header { display:flex; align-items:center; justify-content:space-between; padding:14px 16px 10px; border-bottom:1px solid var(--border); }
.notif-panel-title { font-size:14px; font-weight:600; color:var(--text); }
.notif-mark-all { font-size:11px; color:var(--muted2); background:none; border:none; cursor:pointer; font-family:var(--sans); padding:4px 8px; border-radius:6px; transition:all .15s; }
.notif-mark-all:hover { background:var(--surface2); color:var(--text); }
.notif-list { overflow-y:auto; flex:1; max-height:380px; }
.notif-item { display:flex; align-items:flex-start; gap:10px; padding:12px 16px; border-bottom:1px solid var(--border); cursor:pointer; transition:background .15s; text-decoration:none; color:inherit; }
.notif-item:hover { background:var(--surface2); }
.notif-item.unread { background:rgba(37,99,235,0.04); }
[data-theme="dark"] .notif-item.unread { background:rgba(37,99,235,0.08); }
.notif-item-icon { width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; }
.notif-icon-upvote { background:var(--green-bg); color:var(--green); }
.notif-icon-comment { background:var(--blue-bg); color:var(--blue); }
.notif-icon-approved { background:var(--purple-bg); color:var(--purple); }
.notif-item-body { flex:1; min-width:0; }
.notif-item-text { font-size:13px; color:var(--text); line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.notif-item-time { font-size:11px; color:var(--muted); font-family:var(--mono); margin-top:2px; }
.notif-unread-dot { width:8px; height:8px; border-radius:50%; background:var(--blue); flex-shrink:0; margin-top:6px; }
.notif-empty { padding:32px 16px; text-align:center; font-size:13px; color:var(--muted); }
.notif-empty-icon { font-size:30px; margin-bottom:8px; line-height:1; }
.notif-empty-title { font-size:14px; font-weight:600; color:var(--text); margin-bottom:4px; }
.notif-empty-sub { font-size:12px; color:var(--muted); line-height:1.5; margin-bottom:14px; }

/* Follow button */
.profile-follow-btn { display:inline-flex; align-items:center; gap:5px; padding:7px 18px; border-radius:var(--r); font-size:13px; font-weight:600; font-family:var(--sans); cursor:pointer; transition:all .15s var(--ease); border:1px solid var(--border2); background:var(--text); color:var(--bg); }
.profile-follow-btn:hover { opacity:.85; }
.profile-follow-btn.following { background:var(--surface2); color:var(--muted2); border:1px solid var(--border2); }
.profile-follow-btn.following:hover { background:rgba(220,38,38,.08); color:#dc2626; border-color:rgba(220,38,38,.3); }
.profile-action-row { display:flex; gap:8px; margin-top:10px; justify-content:center; }

/* Messages */
.msg-bell { position:relative; width:32px; height:32px; border-radius:8px; background:var(--surface2); border:1px solid var(--border2); color:var(--muted2); cursor:pointer; display:none; align-items:center; justify-content:center; transition:all .15s var(--ease); flex-shrink:0; padding:0; }
.msg-bell:hover { background:var(--surface3); color:var(--text); }
.msg-bell svg { width:16px; height:16px; }
.msg-badge { position:absolute; top:-4px; right:-4px; min-width:16px; height:16px; padding:0 4px; border-radius:8px; background:#2563eb; color:#fff; font-size:10px; font-weight:700; font-family:var(--mono); display:none; align-items:center; justify-content:center; line-height:1; border:2px solid var(--surface); }
.msg-badge.visible { display:flex; }
.msg-overlay { position:fixed; inset:0; background:rgba(0,0,0,.25); backdrop-filter:blur(4px); z-index:300; opacity:0; pointer-events:none; transition:opacity .25s var(--ease); }
.msg-overlay.open { opacity:1; pointer-events:all; }
.msg-drawer { position:fixed; top:0; right:0; bottom:0; width:min(480px,94vw); background:var(--surface); border-left:1px solid var(--border2); z-index:400; transform:translateX(100%); transition:transform .3s var(--ease); box-shadow:var(--sh-xl); display:flex; flex-direction:column; }
.msg-drawer.open { transform:translateX(0); }
.msg-drawer-head { display:flex; align-items:center; gap:10px; padding:14px 20px; border-bottom:1px solid var(--border); flex-shrink:0; }
.msg-drawer-title { font-size:15px; font-weight:700; flex:1; display:flex; align-items:center; gap:8px; }
.msg-drawer-close { width:30px; height:30px; border-radius:8px; background:var(--surface2); border:1px solid var(--border); color:var(--muted2); font-size:14px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.msg-drawer-body { flex:1; overflow-y:auto; }
.msg-convo { display:flex; align-items:center; gap:10px; padding:12px 20px; border-bottom:1px solid var(--border); cursor:pointer; transition:background .15s; }
.msg-convo:hover { background:var(--surface2); }
.msg-convo-av { width:36px; height:36px; border-radius:50%; background:var(--surface3); border:1px solid var(--border2); display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:600; flex-shrink:0; color:var(--muted2); }
.msg-convo-info { flex:1; min-width:0; }
.msg-convo-name { font-size:13px; font-weight:600; }
.msg-convo-preview { font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.msg-convo-meta { display:flex; flex-direction:column; align-items:flex-end; gap:4px; flex-shrink:0; }
.msg-convo-time { font-size:10px; color:var(--muted); font-family:var(--mono); }
.msg-convo-unread { min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:#2563eb; color:#fff; font-size:10px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.msg-chat-back { background:none; border:none; cursor:pointer; color:var(--muted2); font-size:18px; padding:2px 6px; border-radius:4px; transition:background .15s; }
.msg-chat-back:hover { background:var(--surface2); }
.msg-chat-body { display:flex; flex-direction:column; gap:6px; padding:16px 20px; min-height:100%; justify-content:flex-end; }
.msg-bubble { max-width:75%; padding:10px 14px; border-radius:var(--r-lg); font-size:13px; line-height:1.45; word-break:break-word; }
.msg-bubble.sent { align-self:flex-end; background:var(--text); color:var(--bg); border-bottom-right-radius:4px; }
.msg-bubble.received { align-self:flex-start; background:var(--surface2); color:var(--text); border:1px solid var(--border); border-bottom-left-radius:4px; }
.msg-bubble-time { font-size:10px; margin-top:2px; font-family:var(--mono); }
.msg-bubble.sent .msg-bubble-time { text-align:right; color:rgba(255,255,255,.45); }
.msg-bubble.received .msg-bubble-time { color:var(--muted); }
.msg-input-bar { display:flex; align-items:center; gap:8px; padding:12px 20px; border-top:1px solid var(--border); flex-shrink:0; }
.msg-input { flex:1; border:1px solid var(--border2); border-radius:var(--r); padding:10px 14px; font-family:var(--sans); font-size:13px; background:var(--surface2); color:var(--text); outline:none; resize:none; min-height:40px; max-height:100px; }
.msg-input:focus { border-color:#2563eb; background:var(--surface); }
.msg-send-btn { padding:8px 16px; border-radius:var(--r); background:var(--text); color:var(--bg); border:none; font-family:var(--sans); font-size:13px; font-weight:600; cursor:pointer; transition:opacity .15s; flex-shrink:0; }
.msg-send-btn:hover { opacity:.85; }
.msg-send-btn:disabled { opacity:.4; cursor:not-allowed; }
.mobile-search-btn { display:none; width:32px; height:32px; border-radius:8px; background:var(--surface2); border:1px solid var(--border2); color:var(--muted2); font-size:16px; cursor:pointer; align-items:center; justify-content:center; transition:all .15s var(--ease); flex-shrink:0; }
.mobile-search-btn:hover { background:var(--surface3); color:var(--text); }

/* Mobile search overlay */
.mobile-search-overlay { display:none; position:fixed; inset:0; background:var(--bg); z-index:500; padding:12px 16px; flex-direction:column; gap:10px; }
.mobile-search-overlay.open { display:flex; }
.mobile-search-overlay-bar { display:flex; align-items:center; gap:10px; }
.mobile-search-close { width:36px; height:36px; border-radius:8px; background:var(--surface2); border:1px solid var(--border2); color:var(--muted2); font-size:16px; cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.mobile-search-input-wrap { flex:1; display:flex; align-items:center; gap:8px; padding:0 12px; background:var(--surface2); border:1px solid var(--border2); border-radius:var(--r); height:40px; }
.mobile-search-input-wrap:focus-within { background:var(--surface); border-color:rgba(0,0,0,.22); box-shadow:0 0 0 3px rgba(0,0,0,.05); }
[data-theme="dark"] .mobile-search-input-wrap:focus-within { border-color:rgba(255,255,255,.2); box-shadow:0 0 0 3px rgba(255,255,255,.05); }
.mobile-search-field { flex:1; border:none; background:none; outline:none; font-family:var(--sans); font-size:14px; color:var(--text); }
.mobile-search-field::placeholder { color:var(--muted); }
.mobile-search-results { overflow-y:auto; flex:1; }

/* Mobile sidebar section (below grid, hidden on desktop) */
.mobile-sidebar-section { display:none; margin-top:24px; padding-bottom:80px; }
.mobile-sidebar-section .scard { border-radius:var(--r-lg); }

/* ── PAGE SWITCHING ── */
.page { display:none; }
.page.active { display:block; }

/* ═══════════════════════════════════
   PROJECTS PAGE
═══════════════════════════════════ */
.hero { max-width:1100px; margin:0 auto; padding:44px 24px 32px; }
.eyebrow { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; background:var(--green-bg); border:1px solid var(--green-border); border-radius:20px; font-size:12px; font-weight:500; color:var(--green); margin-bottom:18px; }
.pulse { width:6px; height:6px; background:var(--green); border-radius:50%; animation:pulse 2s ease infinite; flex-shrink:0; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }
.hero h1 { font-size:clamp(28px,4.5vw,46px); font-weight:700; letter-spacing:-1.5px; line-height:1.1; margin-bottom:12px; }
.hero h1 .dim { color:var(--muted2); font-weight:300; }
.hero-sub { font-size:14px; color:var(--muted2); line-height:1.6; max-width:440px; margin-bottom:24px; }
.stats-row { display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.stat { display:flex; align-items:baseline; gap:5px; }
.stat-n { font-size:18px; font-weight:700; letter-spacing:-.5px; }
.stat-l { font-size:12px; color:var(--muted); }
.stat-div { width:1px; height:16px; background:var(--border2); }

/* Weekly Leaderboard */
.weekly-lb { max-width:1100px; margin:0 auto; padding:24px 24px 8px; }
.site-footer .weekly-lb { padding:24px 24px 0; }
.weekly-lb-inner { background:var(--surface); border:1.5px solid rgba(234,179,8,0.3); border-radius:var(--r-xl); padding:20px 24px; box-shadow:0 0 0 3px rgba(234,179,8,0.08), var(--sh-md); }
.weekly-lb-title { font-size:14px; font-weight:700; letter-spacing:-.2px; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.weekly-lb-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; }
.wl-card { background:var(--surface2); border:1px solid var(--border2); border-radius:var(--r-lg); padding:14px 16px; cursor:pointer; transition:all .2s var(--ease); position:relative; overflow:hidden; }
.wl-card:hover { transform:translateY(-2px); box-shadow:var(--sh-md); border-color:rgba(234,179,8,0.4); }
.wl-rank { position:absolute; top:-6px; left:-6px; width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:16px; background:var(--surface); border:1.5px solid rgba(234,179,8,0.4); box-shadow:var(--sh); z-index:1; }
.wl-name { font-size:14px; font-weight:700; letter-spacing:-.3px; margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-left:18px; }
.wl-desc { font-size:12px; color:var(--muted); line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-bottom:8px; }
.wl-meta { display:flex; align-items:center; justify-content:space-between; font-size:11px; color:var(--muted2); }
.wl-author { font-weight:500; }
.wl-ups { font-family:var(--mono); font-weight:600; color:var(--green); }

.projects-layout { max-width:1100px; margin:0 auto; padding:0 24px 40px; display:grid; grid-template-columns:1fr 264px; gap:28px; }
.filter-bar { display:flex; align-items:center; gap:5px; margin-bottom:18px; flex-wrap:wrap; }
.chip { padding:5px 12px; border-radius:20px; font-size:12px; font-weight:500; border:1px solid var(--border2); background:var(--surface); color:var(--muted2); cursor:pointer; transition:all .15s var(--ease); font-family:var(--sans); box-shadow:var(--sh); }
.chip:hover { border-color:rgba(0,0,0,.2); color:var(--text); }
.chip.active { background:var(--text); color:var(--bg); border-color:var(--text); box-shadow:none; }
.sort-select { margin-left:0; padding:5px 10px; border-radius:var(--r-sm); font-family:var(--sans); font-size:12px; background:var(--surface); border:1px solid var(--border2); color:var(--muted2); cursor:pointer; outline:none; box-shadow:var(--sh); }
.filter-bar .sort-select:last-child { margin-left:auto; }
.load-more-wrap { display:flex; justify-content:center; padding:24px 0 8px; }
.load-more-btn { padding:10px 28px; border-radius:var(--r); font-size:13px; font-weight:600; font-family:var(--sans); border:1px solid var(--border2); background:var(--surface); color:var(--text); cursor:pointer; transition:all .15s var(--ease); box-shadow:var(--sh); }
.load-more-btn:hover { background:var(--text); color:var(--bg); border-color:var(--text); }
.search-results-bar { display:none; align-items:center; gap:8px; padding:8px 12px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r); margin-bottom:14px; font-size:13px; color:var(--muted2); box-shadow:var(--sh); }
.search-results-bar.visible { display:flex; }
.my-builds-bar { display:none; align-items:center; gap:10px; padding:9px 14px; background:var(--surface); border:1px solid var(--border2); border-radius:var(--r); margin-bottom:14px; box-shadow:var(--sh); }
.my-builds-bar.visible { display:flex; }
.my-builds-title { font-size:13px; font-weight:600; color:var(--text); flex:1; }
.my-builds-handle { color:var(--muted2); font-weight:400; }
.card-owner-stats { display:flex; align-items:center; gap:14px; padding:7px 0 0; margin-top:8px; border-top:1px solid var(--border); }
.card-owner-stat { display:inline-flex; align-items:center; gap:4px; font-size:11px; color:var(--muted); font-family:var(--mono); }
.card-owner-stat svg { opacity:.7; flex-shrink:0; }
.under-review-section { display:none; margin-bottom:20px; }
.under-review-section.visible { display:block; }
.under-review-header { font-size:11px; font-weight:700; color:var(--amber); letter-spacing:.6px; text-transform:uppercase; margin-bottom:8px; display:flex; align-items:center; gap:6px; }
.under-review-header::before { content:''; display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--amber); flex-shrink:0; }
.under-review-list { display:flex; flex-direction:column; gap:6px; }
.under-review-card { display:flex; align-items:center; gap:12px; padding:10px 14px; background:var(--amber-bg); border:1px solid rgba(180,83,9,0.18); border-radius:var(--r); }
[data-theme="dark"] .under-review-card { border-color:rgba(180,83,9,0.3); }
.under-review-emoji { font-size:20px; flex-shrink:0; line-height:1; }
.under-review-info { flex:1; min-width:0; }
.under-review-name { font-size:13px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.under-review-date { font-size:11px; color:var(--muted2); margin-top:1px; }
.under-review-badge { font-size:10px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; color:var(--amber); background:rgba(180,83,9,0.12); border:1px solid rgba(180,83,9,0.22); border-radius:4px; padding:2px 7px; white-space:nowrap; flex-shrink:0; }
.search-results-clear { margin-left:auto; font-size:12px; color:var(--muted2); background:var(--surface2); border:1px solid var(--border2); border-radius:6px; padding:3px 9px; cursor:pointer; font-family:var(--sans); transition:all .15s; }
.search-results-clear:hover { color:var(--text); }
mark.hl { background:#fef9c3; color:var(--text); border-radius:2px; padding:0 1px; }

.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; }
.card, .card-body { min-width:0; }
.card-desc, .card-idea { overflow-wrap:anywhere; word-break:break-word; }
.card-meta-row { flex-wrap:wrap; min-width:0; }
.card-meta-row > span { overflow-wrap:anywhere; word-break:break-word; min-width:0; }
.card-tags { min-width:0; }
.tag { overflow-wrap:anywhere; word-break:break-word; min-width:0; max-width:100%; }
.card { background:var(--surface); border:1px solid var(--border); border-radius:20px; overflow:hidden; cursor:pointer; transition:transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s; animation:cardIn .35s var(--ease) both; box-shadow:0 1px 3px rgba(0,0,0,.05),0 2px 10px rgba(0,0,0,.06),0 0 0 1px rgba(0,0,0,.04); contain:layout style paint; }
.card:hover { box-shadow:0 4px 16px rgba(0,0,0,.1),0 16px 40px rgba(0,0,0,.08),0 0 0 1px rgba(0,0,0,.06); transform:translateY(-3px); border-color:var(--border2); }
[data-theme="dark"] .card { box-shadow:0 1px 3px rgba(0,0,0,.3),0 2px 10px rgba(0,0,0,.25),0 0 0 1px rgba(255,255,255,.05); }
[data-theme="dark"] .card:hover { box-shadow:0 4px 16px rgba(0,0,0,.5),0 16px 40px rgba(0,0,0,.4),0 0 0 1px rgba(255,255,255,.09); }
@media (hover:none) { .card:hover { box-shadow:0 1px 3px rgba(0,0,0,.05),0 2px 10px rgba(0,0,0,.06); transform:none; } }
.card.featured { border-color:rgba(234,179,8,0.5); border-width:1.5px; box-shadow:0 0 0 3px rgba(234,179,8,0.1),0 4px 24px rgba(234,179,8,0.12),0 2px 8px rgba(0,0,0,.06); }
.card.featured:hover { border-color:rgba(234,179,8,0.9); box-shadow:0 0 0 4px rgba(234,179,8,0.18),0 8px 32px rgba(234,179,8,0.18),0 0 0 1.5px rgba(234,179,8,0.6); transform:translateY(-3px); }
/* Pro badge — deliberately green (brand accent), never gold: gold "Featured"
   is an editorial pick by us, green "PRO" is a paid plan the user holds.
   Keeping them visually distinct stops paid status from reading as an
   endorsement. */
.pro-badge { display:inline-flex; align-items:center; gap:4px; padding:2px 8px; background:var(--green-bg); border:1px solid var(--green-border); border-radius:20px; font-size:10px; font-weight:700; color:var(--green); letter-spacing:.5px; }
.featured-badge { display:inline-flex; align-items:center; gap:4px; padding:2px 8px; background:linear-gradient(135deg,#fef9c3,#fef08a); border:1px solid rgba(234,179,8,0.35); border-radius:20px; font-size:10px; font-weight:700; color:#92400e; letter-spacing:.4px; text-transform:uppercase; }
[data-theme="dark"] .featured-badge { background:linear-gradient(135deg,rgba(234,179,8,.2),rgba(234,179,8,.1)); color:#fde68a; border-color:rgba(234,179,8,.3); }
@keyframes cardIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }
.card-thumb { width:100%; height:178px; display:flex; align-items:center; justify-content:center; font-size:52px; overflow:hidden; position:relative; }
.card-thumb img.card-screenshot { width:100%; height:100%; object-fit:cover; display:block; border-radius:0; }
.card-body { padding:14px 16px 14px; display:flex; flex-direction:column; gap:0; }
.card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:6px; }
.card-title { font-size:15px; font-weight:700; letter-spacing:-.35px; line-height:1.3; color:var(--text); text-decoration:none; cursor:pointer; }
.card-title:hover { color:var(--green); text-decoration:none; }
.score-pill { display:inline-flex; align-items:center; gap:3px; padding:2px 8px; border-radius:20px; font-size:11px; font-weight:600; font-family:var(--mono); flex-shrink:0; }
.sp-great { background:var(--green-bg); color:var(--green); border:1px solid var(--green-border); }
.sp-ok    { background:var(--amber-bg); color:var(--amber); border:1px solid rgba(180,83,9,.15); }
.sp-bad   { background:var(--red-bg);   color:var(--red);   border:1px solid rgba(220,38,38,.15); }
.card-desc { font-size:12.5px; color:var(--muted); line-height:1.5; margin-bottom:10px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card-idea { font-size:12.5px; color:#16a34a; line-height:1.5; margin-bottom:10px; font-style:italic; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card-tags { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:10px; }
.card-meta-row { display:flex; align-items:center; gap:6px; font-size:11px; color:var(--muted); margin-bottom:8px; }
.card-meta-dot { color:var(--muted); opacity:.5; }
.tag { padding:2px 7px; border-radius:4px; font-size:11px; font-weight:500; font-family:var(--mono); background:var(--surface2); color:var(--muted2); }
.card.featured .tag { /* inherits tool-specific colors */ }
.t-claude { background:#fef0e6; color:#d4713b; }
.t-cursor { background:#e8e8f0; color:#4a4a6a; }
.t-gpt { background:#e6f4ea; color:#1a7f37; }
.t-bolt { background:#fff8e1; color:#f59e0b; }
.t-v0 { background:#e8e8ee; color:#18181b; }
.t-lovable { background:#fce4ec; color:#d6336c; }
.t-replit { background:#fff3e0; color:#f26522; }
.t-gemini { background:#e3f2fd; color:#1a73e8; }
.t-windsurf { background:#e0f7fa; color:#0097a7; }
.t-copilot { background:#e8f5e9; color:#2ea44f; }
.t-perplexity { background:#ede7f6; color:#6c3fc5; }
.t-canva { background:#e3f1fb; color:#00c4cc; }
.t-grok { background:#e8e8ee; color:#333; }
.t-mistral { background:#fff3e0; color:#f97316; }
.t-cat { background:#eef2ff; color:#4f46e5; text-transform:capitalize; }
.card-author-row { display:flex; align-items:center; gap:6px; font-size:11.5px; color:var(--muted); margin-bottom:10px; }
.card-author-row strong { color:var(--muted2); }
.card-author-row .card-timeago { margin-left:auto; font-size:10.5px; color:var(--muted); font-family:var(--mono); white-space:nowrap; opacity:.75; }
.card-footer { display:flex; align-items:center; gap:6px; padding-top:10px; border-top:1px solid var(--border); }
.card-footer-left { display:flex; align-items:center; gap:6px; flex:1; min-width:0; }
.card-footer-right { display:flex; align-items:center; gap:6px; flex-shrink:0; }
.card-stat-btn { display:inline-flex; align-items:center; gap:3px; padding:5px 9px; border-radius:var(--r-sm); font-size:11px; font-weight:500; border:none; background:transparent; color:var(--muted); cursor:pointer; transition:all .15s var(--ease); font-family:var(--mono); }
.card-stat-btn:hover { background:var(--surface2); color:var(--muted2); }
.card-stat-btn svg { width:13px; height:13px; }
.card-stat-btn.view-stat,
.info-card.view-stat,
.view-btn.view-stat { display:none; }
.upvote-btn { display:inline-flex; align-items:center; gap:4px; padding:6px 13px; border-radius:var(--r-sm); font-size:12px; font-weight:600; border:1px solid var(--border2); background:var(--surface2); color:var(--muted2); cursor:pointer; transition:all .15s var(--ease); font-family:var(--mono); position:relative; overflow:visible; }
.upvote-btn:hover { border-color:var(--green-border); color:var(--green); background:var(--green-bg); }
.upvote-btn.voted { background:rgba(139,92,246,.12); border-color:rgba(139,92,246,.35); color:#8b5cf6; }
.view-btn { display:inline-flex; align-items:center; gap:4px; padding:5px 10px; border-radius:var(--r-sm); font-size:12px; background:var(--surface2); border:1px solid var(--border); color:var(--muted2); cursor:pointer; transition:all .15s var(--ease); font-family:var(--sans); font-weight:500; }
.view-btn:hover { background:var(--surface3); color:var(--text); }
.share-x-btn, .share-fb-btn, .share-li-btn, .share-rd-btn { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:var(--r-sm); border:1px solid var(--border2); background:var(--surface); color:var(--muted2); cursor:pointer; transition:all .15s var(--ease); flex-shrink:0; padding:0; }
.share-x-btn:hover { background:#000; color:#fff; border-color:#000; }
.share-fb-btn:hover { background:#1877f2; color:#fff; border-color:#1877f2; }
.share-li-btn:hover { background:#0a66c2; color:#fff; border-color:#0a66c2; }
.share-rd-btn:hover { background:#ff4500; color:#fff; border-color:#ff4500; }

/* Sidebar */
.sidebar { display:flex; flex-direction:column; gap:12px; }
.scard { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:16px; box-shadow:var(--sh); }
.scard-title { font-size:11px; font-weight:600; color:var(--muted2); letter-spacing:.5px; text-transform:uppercase; margin-bottom:12px; }
.tool-row { display:flex; align-items:center; gap:8px; padding:5px 0; border-bottom:1px solid var(--border); }
.tool-row:last-child { border:none; padding-bottom:0; }
.tool-num { font-size:11px; color:var(--muted); width:12px; font-family:var(--mono); }
.tool-name { font-size:13px; flex:1; }
.tool-bar { width:52px; height:2px; background:var(--surface3); border-radius:2px; overflow:hidden; }
.tool-bar-fill { height:100%; background:var(--green); border-radius:2px; }
.tool-cnt { font-size:11px; color:var(--muted); font-family:var(--mono); }
.builder-row { display:flex; align-items:center; gap:8px; padding:5px 0; border-bottom:1px solid var(--border); }
.builder-row:last-child { border:none; padding-bottom:0; }
.b-av { width:26px; height:26px; border-radius:6px; background:var(--surface2); display:flex; align-items:center; justify-content:center; font-size:12px; flex-shrink:0; border:1px solid var(--border); }
.b-name { font-size:13px; flex:1; }
.b-cnt { font-size:11px; color:var(--muted); }
.cta-card { background:var(--text); border-radius:var(--r-lg); padding:18px; box-shadow:var(--sh-md); }
.cta-title { font-size:13px; font-weight:600; color:#fff; margin-bottom:6px; }
.cta-sub { font-size:12px; color:rgba(255,255,255,.5); line-height:1.5; margin-bottom:14px; }
.cta-btn { width:100%; padding:7px; background:rgba(255,255,255,.92); color:var(--text); border:none; border-radius:var(--r-sm); font-family:var(--sans); font-size:13px; font-weight:600; cursor:pointer; transition:background .15s; }
.cta-btn:hover { background:#fff; }

/* Drawer */
.drawer-overlay { position:fixed; inset:0; background:rgba(0,0,0,.25); backdrop-filter:blur(4px); z-index:300; opacity:0; pointer-events:none; transition:opacity .25s var(--ease); }
.drawer-overlay.open { opacity:1; pointer-events:all; }
.drawer { position:fixed; top:0; right:0; bottom:0; width:min(560px,94vw); background:var(--surface); border-left:1px solid var(--border2); z-index:400; overflow-y:auto; transform:translateX(100%); transition:transform .3s var(--ease); box-shadow:var(--sh-xl); display:flex; flex-direction:column; }
.drawer.open { transform:translateX(0); }
.drawer-header { padding:20px 24px 0; position:sticky; top:0; background:var(--surface); z-index:10; border-bottom:1px solid var(--border); padding-bottom:16px; }
.drawer-close { position:absolute; top:18px; left:20px; width:30px; height:30px; border-radius:8px; background:var(--surface2); border:1px solid var(--border); color:var(--muted2); font-size:14px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .15s; }
.drawer-close:hover { background:var(--surface3); color:var(--text); }
.drawer-thumb { width:100%; height:200px; display:flex; align-items:center; justify-content:center; font-size:72px; border-radius:var(--r-lg); margin:48px 0 20px; overflow:hidden; }
.drawer-thumb img.drawer-screenshot { width:100%; height:100%; object-fit:cover; display:block; border-radius:var(--r-lg); }
.drawer-title-row { display:flex; align-items:flex-start; gap:10px; margin-bottom:8px; }
.drawer-title { font-size:22px; font-weight:700; letter-spacing:-.5px; flex:1; line-height:1.2; }
.drawer-tags { display:flex; flex-wrap:wrap; gap:6px; }
.drawer-body { padding:20px 24px; flex:1; }
.drawer-desc { font-size:14px; color:var(--muted2); line-height:1.65; margin-bottom:24px; }
.info-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:24px; }
.info-card { background:var(--surface2); border:1px solid var(--border); border-radius:var(--r); padding:14px; }
.info-label { font-size:11px; font-weight:600; color:var(--muted2); letter-spacing:.5px; text-transform:uppercase; margin-bottom:6px; }
.info-value { font-size:14px; font-weight:600; color:var(--text); letter-spacing:-.2px; }
.info-value.mono { font-family:var(--mono); font-size:13px; }
.section-title { font-size:12px; font-weight:600; color:var(--muted2); letter-spacing:.5px; text-transform:uppercase; margin-bottom:10px; margin-top:20px; }
.idea-box { background:linear-gradient(135deg,#f0fdf4,#f8fffe); border:1px solid var(--green-border); border-radius:var(--r); padding:14px 16px; font-size:13px; color:var(--muted2); line-height:1.65; font-style:italic; }
.timeline { display:flex; flex-direction:column; }
.timeline-item { display:flex; gap:12px; padding-bottom:16px; position:relative; }
.timeline-item:last-child { padding-bottom:0; }
.timeline-item:not(:last-child)::before { content:''; position:absolute; left:11px; top:24px; bottom:0; width:1px; background:var(--border2); }
.timeline-dot { width:24px; height:24px; border-radius:50%; background:var(--surface2); border:1px solid var(--border2); display:flex; align-items:center; justify-content:center; font-size:11px; flex-shrink:0; position:relative; z-index:1; }
.timeline-label { font-size:13px; font-weight:600; color:var(--text); margin-bottom:2px; }
.timeline-desc { font-size:12px; color:var(--muted2); line-height:1.5; }
.comment-list { margin-bottom:16px; }
.comment-item-wrap { border-bottom:1px solid var(--border); padding-bottom:4px; }
.comment-item-wrap:last-child { border-bottom:none; }
.comment-item { display:flex; gap:10px; padding:12px 0 8px; }
.comment-item:last-child { border:none; }
.c-avatar { width:28px; height:28px; border-radius:7px; background:var(--surface2); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:600; color:var(--muted2); flex-shrink:0; overflow:hidden; }
.c-avatar img { width:100%; height:100%; object-fit:cover; border-radius:7px; }
.c-meta { font-size:11px; color:var(--muted); margin-bottom:4px; }
.c-meta strong { color:var(--muted2); font-weight:600; }
.c-text { font-size:13px; color:var(--muted2); line-height:1.5; }
.c-upvote-btn { display:flex; flex-direction:column; align-items:center; gap:1px; padding:4px 6px; border:none; background:none; color:var(--muted); font-size:11px; font-weight:600; font-family:var(--mono); cursor:pointer; border-radius:6px; transition:all .15s var(--ease); flex-shrink:0; align-self:flex-start; margin-top:2px; min-width:32px; }
.c-upvote-btn:hover:not(:disabled) { color:var(--green); background:var(--green-bg); }
.c-upvote-btn.c-upvoted { color:var(--green); }
.c-upvote-btn:disabled { opacity:.35; cursor:default; }
.c-reply-btn { background:none; border:none; color:var(--muted); font-size:11px; font-weight:500; font-family:var(--sans); cursor:pointer; padding:2px 6px; border-radius:4px; transition:all .15s; }
.c-reply-btn:hover { color:var(--text); background:var(--surface2); }
.c-replies-wrap { margin-left:38px; padding-left:12px; border-left:2px solid var(--border); margin-top:4px; }
.c-reply-item { display:flex; gap:8px; padding:8px 0; }
.c-reply-item:not(:last-child) { border-bottom:1px solid var(--border); }
.c-reply-avatar { width:22px; height:22px; border-radius:50%; background:var(--surface3); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:9px; font-weight:700; color:var(--muted2); flex-shrink:0; overflow:hidden; }
.c-reply-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.c-reply-meta { font-size:10px; color:var(--muted); margin-bottom:2px; }
.c-reply-meta strong { color:var(--muted2); font-weight:600; }
.c-reply-body { font-size:12px; color:var(--muted2); line-height:1.5; }
.c-reply-form { display:flex; gap:6px; padding:8px 0; margin-left:38px; padding-left:12px; border-left:2px solid var(--green-border); }
.c-reply-input { flex:1; padding:7px 10px; border-radius:var(--r-sm); background:var(--surface2); border:1px solid var(--border2); font-family:var(--sans); font-size:12px; color:var(--text); outline:none; transition:all .15s; min-height:34px; resize:none; }
.c-reply-input:focus { background:var(--surface); border-color:rgba(0,0,0,.22); box-shadow:0 0 0 3px rgba(0,0,0,.04); }
[data-theme="dark"] .c-reply-input:focus { border-color:rgba(255,255,255,.2); box-shadow:0 0 0 3px rgba(255,255,255,.04); }
.c-reply-submit { padding:7px 12px; border-radius:var(--r-sm); background:var(--text); color:var(--bg); border:none; font-family:var(--sans); font-size:11px; font-weight:600; cursor:pointer; transition:opacity .15s; flex-shrink:0; align-self:flex-end; }
.c-reply-submit:hover { opacity:.82; }
.c-reply-delete { background:none; border:none; color:var(--muted); font-size:10px; cursor:pointer; padding:1px 4px; border-radius:3px; transition:color .15s; }
.c-reply-delete:hover { color:var(--red); }
.comment-form { display:flex; gap:8px; padding:16px 24px; border-top:1px solid var(--border); background:var(--surface); position:sticky; bottom:0; }
.comment-input { flex:1; padding:8px 12px; border-radius:var(--r-sm); background:var(--surface2); border:1px solid var(--border2); font-family:var(--sans); font-size:13px; color:var(--text); outline:none; transition:all .15s; }
.comment-input:focus { background:var(--surface); border-color:rgba(0,0,0,.22); box-shadow:0 0 0 3px rgba(0,0,0,.04); }
.comment-input::placeholder { color:var(--muted); }
.comment-post { padding:8px 14px; border-radius:var(--r-sm); background:var(--text); color:var(--bg); border:none; font-family:var(--sans); font-size:13px; font-weight:500; cursor:pointer; transition:opacity .15s; flex-shrink:0; }
.comment-post:hover { opacity:.82; }
.drawer-actions { display:flex; gap:8px; padding:16px 24px 20px; border-top:1px solid var(--border); background:var(--surface); }
.bm-btn { display:inline-flex; align-items:center; justify-content:center; gap:4px; padding:6px 10px; min-height:30px; border-radius:var(--r-sm); font-size:12px; font-weight:500; border:1px solid var(--border2); background:var(--surface); color:var(--muted2); cursor:pointer; transition:all .15s var(--ease); font-family:var(--sans); box-shadow:var(--sh); }
.bm-btn svg { flex-shrink:0; pointer-events:none; }
.bm-btn:hover { border-color:rgba(124,58,237,.45); color:var(--purple); background:var(--purple-bg); }
.bm-btn.bm-active { background:var(--purple-bg); border-color:rgba(124,58,237,.45); color:var(--purple); box-shadow:none; }
.saved-bar { display:none; align-items:center; gap:10px; padding:9px 14px; background:var(--surface); border:1px solid var(--border2); border-radius:var(--r); margin-bottom:14px; box-shadow:var(--sh); }
.saved-bar.visible { display:flex; }

/* ── FOOTER ── */
.site-footer { border-top:1px solid var(--border); background:var(--surface); margin-top:0; }
.site-footer-inner { max-width:1100px; margin:0 auto; padding:20px 24px; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.footer-brand { display:flex; align-items:center; gap:8px; text-decoration:none; color:var(--text); background:none; border:none; cursor:pointer; font-family:var(--sans); padding:0; }
.footer-brand-img { width:22px; height:22px; border-radius:5px; object-fit:cover; display:block; flex-shrink:0; }
.footer-brand-name { font-size:13px; font-weight:600; letter-spacing:-.2px; }
.footer-brand-name span { color:var(--muted2); font-weight:400; }
.footer-links { display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.footer-link { padding:4px 9px; border-radius:6px; font-size:12px; color:var(--muted2); background:none; border:none; cursor:pointer; font-family:var(--sans); transition:color .15s, background .15s; text-decoration:none; display:inline-flex; align-items:center; }
.footer-link:hover { color:var(--text); background:var(--surface2); }
.footer-sep { width:1px; height:12px; background:var(--border2); }
.footer-copy { font-size:11px; color:var(--muted); white-space:nowrap; }
.footer-contact { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.footer-contact-label { font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; }
.footer-contact-link { font-size:12px; color:var(--text); text-decoration:none; font-weight:500; }
.footer-contact-link:hover { text-decoration:underline; }
@media (max-width:600px) {
  .site-footer-inner { flex-direction:column; align-items:center; text-align:center; gap:12px; padding-bottom:80px; }
  .footer-links { justify-content:center; }
}

/* Profile panel */
.profile-avatar { width:68px; height:68px; border-radius:50%; background:var(--surface2); border:2px solid var(--border2); display:flex; align-items:center; justify-content:center; font-size:30px; margin:24px auto 12px; overflow:hidden; }
.profile-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.profile-bio { text-align:center; font-size:13px; color:var(--muted2); margin-bottom:8px; max-width:320px; margin-left:auto; margin-right:auto; line-height:1.4; }
.nav-avatar-img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.profile-handle { text-align:center; font-size:19px; font-weight:700; letter-spacing:-.3px; margin-bottom:4px; }
.profile-stats { text-align:center; font-size:13px; color:var(--muted2); margin-bottom:3px; }
.profile-since { text-align:center; font-size:12px; color:var(--muted); margin-bottom:20px; }
.profile-divider { border:none; border-top:1px solid var(--border); margin:16px 0; }
.profile-builds-label { font-size:11px; font-weight:600; color:var(--muted); letter-spacing:.5px; text-transform:uppercase; margin-bottom:10px; }
.profile-build-item { display:flex; align-items:center; gap:12px; padding:10px 6px; border-radius:var(--r-sm); cursor:pointer; transition:background .12s; text-align:left; width:100%; background:none; border:none; font:inherit; color:inherit; }
.profile-build-item:hover { background:var(--surface2); }
.profile-build-emoji { font-size:22px; width:34px; text-align:center; flex-shrink:0; }
.profile-build-info { flex:1; min-width:0; }
.profile-build-name { font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.profile-build-cat { font-size:11px; color:var(--muted); margin-top:2px; }
.profile-build-votes { font-size:12px; font-weight:600; color:var(--muted2); flex-shrink:0; }
/* Profile tabs (own-profile view) */
.profile-tab-nav { display:flex; gap:2px; margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid var(--border); }
.profile-tab { flex:1; padding:7px 10px; border-radius:var(--r-sm); font-size:12px; font-weight:500; font-family:var(--sans); cursor:pointer; border:none; background:none; color:var(--muted2); transition:all .15s var(--ease); position:relative; text-align:center; }
.profile-tab:hover { background:var(--surface2); color:var(--text); }
.profile-tab.active { background:var(--surface2); color:var(--text); font-weight:600; }
.profile-tab-badge { position:absolute; top:3px; right:6px; min-width:14px; height:14px; padding:0 3px; border-radius:7px; background:#2563eb; color:#fff; font-size:9px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; line-height:1; }
.profile-chat-wrap { display:flex; flex-direction:column; gap:5px; max-height:260px; overflow-y:auto; padding:2px 0 10px; }
.author-link { background:none; border:none; padding:0; cursor:pointer; font:inherit; color:inherit; text-decoration:underline; text-decoration-style:dotted; text-underline-offset:2px; }
.author-link:hover { color:var(--accent,#7c3aed); }

/* Upvote animations */
@keyframes upvotePop { 0%{transform:scale(1)} 40%{transform:scale(1.22)} 70%{transform:scale(.92)} 100%{transform:scale(1)} }
@keyframes floatUp { 0%{opacity:1;transform:translateX(-50%) translateY(0)} 100%{opacity:0;transform:translateX(-50%) translateY(-28px)} }
@keyframes burstRing { 0%{opacity:.7;transform:translate(-50%,-50%) scale(0)} 100%{opacity:0;transform:translate(-50%,-50%) scale(2.2)} }
.pop { animation:upvotePop .3s cubic-bezier(.36,.07,.19,.97) both; }
.float-plus { position:absolute; top:-2px; left:50%; font-size:11px; font-weight:700; color:var(--green); pointer-events:none; animation:floatUp .6s ease forwards; font-family:var(--mono); }
.burst-ring { position:absolute; top:50%; left:50%; width:30px; height:30px; border-radius:50%; border:1.5px solid var(--green); pointer-events:none; animation:burstRing .45s ease forwards; }

.empty { text-align:center; padding:60px 20px; color:var(--muted); }
.empty-icon { font-size:36px; margin-bottom:10px; }
.empty-text { font-size:13px; color:var(--muted2); margin-bottom:18px; }

/* ═══════════════════════════════════
   CODE CHECKER PAGE
═══════════════════════════════════ */
.checker-wrap { max-width:780px; margin:0 auto; padding:40px 24px 40px; }

.checker-hero { margin-bottom:36px; }
.checker-hero h2 { font-size:clamp(24px,4vw,38px); font-weight:700; letter-spacing:-1px; line-height:1.1; margin-bottom:10px; }
.checker-hero h2 span { color:var(--green); }
.checker-hero p { font-size:14px; color:var(--muted2); line-height:1.6; max-width:480px; }

.editor-box { background:var(--surface); border:1px solid var(--border2); border-radius:var(--r-lg); overflow:hidden; margin-bottom:16px; box-shadow:var(--sh); transition:border-color .2s, box-shadow .2s; }
.editor-box:focus-within { border-color:rgba(22,163,74,.3); box-shadow:0 0 0 3px rgba(22,163,74,.08); }
.editor-toolbar { display:flex; align-items:center; gap:8px; padding:10px 16px; border-bottom:1px solid var(--border); background:var(--surface2); }
.mac-dot { width:10px; height:10px; border-radius:50%; }
.mac-r{background:#ff5f57} .mac-y{background:#ffbd2e} .mac-g{background:#28c840}
.editor-label { margin-left:6px; font-size:11px; color:var(--muted); letter-spacing:1px; text-transform:uppercase; font-family:var(--mono); }
.lang-select { margin-left:auto; background:var(--surface3); border:1px solid var(--border2); color:var(--text); font-family:var(--mono); font-size:11px; padding:4px 10px; border-radius:6px; cursor:pointer; outline:none; }
.code-textarea { width:100%; min-height:260px; background:transparent; border:none; outline:none; color:#2563eb; font-family:var(--mono); font-size:13px; line-height:1.7; padding:18px 20px; resize:vertical; tab-size:2; }
.code-textarea::placeholder { color:var(--muted); }

.analyze-btn { width:100%; padding:15px; background:var(--text); color:var(--bg); border:none; border-radius:var(--r); font-family:var(--sans); font-size:15px; font-weight:600; cursor:pointer; transition:all .2s var(--ease); display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:12px; }
.analyze-btn:hover:not(:disabled) { background:#2a2a28; transform:translateY(-1px); box-shadow:0 6px 20px rgba(0,0,0,.15); }
.analyze-btn:disabled { opacity:.5; cursor:not-allowed; transform:none; }

.checker-hint { font-size:12px; color:var(--muted); text-align:center; }
.checker-hint kbd { font-family:var(--mono); font-size:10px; padding:1px 5px; background:var(--surface3); border:1px solid var(--border2); border-radius:4px; }

.error-box { display:none; background:var(--red-bg); border:1px solid rgba(220,38,38,.2); border-radius:var(--r-sm); padding:12px 16px; margin-top:12px; color:var(--red); font-size:13px; line-height:1.5; }
.error-box.active { display:block; }

/* Loading */
.checker-loading { display:none; padding:60px 20px; text-align:center; }
.checker-loading.active { display:block; }
.spinner { width:36px; height:36px; border:2px solid var(--border2); border-top-color:var(--green); border-radius:50%; animation:spin .7s linear infinite; margin:0 auto 16px; }
@keyframes spin { to{transform:rotate(360deg)} }
.loading-msg { font-size:13px; color:var(--muted2); }
.loading-msg::after { content:''; animation:dots 1.5s infinite; }
@keyframes dots { 0%,20%{content:''} 40%{content:'.'} 60%{content:'..'} 80%,100%{content:'...'} }

/* Results */
.checker-results { display:none; animation:fadeUp .4s var(--ease) both; }
.checker-results.active { display:block; }
@keyframes fadeUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }

.reset-btn { width:100%; padding:12px; background:transparent; color:var(--muted2); border:1px solid var(--border2); border-radius:var(--r); font-family:var(--sans); font-size:13px; font-weight:500; cursor:pointer; transition:all .15s; margin-top:8px; }
.reset-btn:hover { border-color:rgba(0,0,0,.2); color:var(--text); }

/* Modal */
.modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.3); z-index:500; backdrop-filter:blur(8px); align-items:center; justify-content:center; padding:20px; }
.modal-overlay.open { display:flex; }
.modal { background:var(--surface); border:1px solid var(--border2); border-radius:var(--r-xl); padding:24px; width:100%; max-width:500px; max-height:90vh; overflow-y:auto; animation:modalIn .22s var(--ease); box-shadow:var(--sh-xl); }
@keyframes modalIn { from{opacity:0;transform:scale(.96) translateY(10px)} to{opacity:1;transform:none} }
.modal-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.modal-title { font-size:16px; font-weight:600; letter-spacing:-.3px; }
.close-btn { width:28px; height:28px; border-radius:7px; background:var(--surface2); border:1px solid var(--border); color:var(--muted2); font-size:13px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .15s; }
.close-btn:hover { background:var(--surface3); color:var(--text); }
.nl-slider::before { position:absolute; content:""; height:18px; width:18px; left:3px; bottom:3px; background:#fff; border-radius:50%; transition:.2s; }
input:checked + .nl-slider { background:var(--green); }
input:checked + .nl-slider::before { transform:translateX(18px); }
.fgroup { margin-bottom:13px; }
.flabel { display:block; font-size:11px; font-weight:600; color:var(--muted); letter-spacing:.5px; text-transform:uppercase; margin-bottom:5px; }
.finput,.ftextarea,.fselect { width:100%; padding:8px 11px; border-radius:var(--r-sm); background:var(--surface2); border:1px solid var(--border2); color:var(--text); font-family:var(--sans); font-size:13px; outline:none; transition:all .15s; }
.finput:focus,.ftextarea:focus,.fselect:focus { background:var(--surface); border-color:rgba(0,0,0,.25); box-shadow:0 0 0 3px rgba(0,0,0,.04); }
.finput::placeholder,.ftextarea::placeholder { color:var(--muted); }
.ftool-wrap { position:relative; }
.ftool-input { width:100%; padding:8px 11px; border-radius:var(--r-sm); background:var(--surface2); border:1px solid var(--border2); color:var(--text); font-family:var(--sans); font-size:13px; outline:none; transition:all .15s; box-sizing:border-box; }
.ftool-input:focus { background:var(--surface); border-color:rgba(0,0,0,.25); box-shadow:0 0 0 3px rgba(0,0,0,.04); }
.ftool-input::placeholder { color:var(--muted); }
.ftool-chips { display:flex; flex-wrap:wrap; gap:5px; margin-top:7px; }
.ftool-chip { display:inline-flex; align-items:center; gap:4px; padding:2px 7px; border-radius:4px; font-size:11px; font-weight:500; font-family:var(--mono); background:var(--green-bg); color:var(--green); border:1px solid var(--green-border); }
.ftool-chip-remove { cursor:pointer; opacity:.6; font-size:12px; line-height:1; background:none; border:none; color:inherit; padding:0; font-family:inherit; }
.ftool-chip-remove:hover { opacity:1; }
.ftool-dropdown { position:absolute; top:calc(100% + 4px); left:0; right:0; background:var(--surface); border:1px solid var(--border2); border-radius:var(--r-sm); box-shadow:var(--sh-md); z-index:200; max-height:180px; overflow-y:auto; display:none; }
.ftool-dropdown.open { display:block; }
.ftool-option { padding:7px 11px; font-size:13px; color:var(--text); cursor:pointer; font-family:var(--sans); }
.ftool-option:hover,.ftool-option.focused { background:var(--surface2); }
.ftextarea { min-height:68px; resize:vertical; }
.tools-grid { display:flex; flex-wrap:wrap; gap:5px; }
.tool-toggle { padding:4px 11px; border-radius:6px; font-size:12px; font-weight:500; border:1px solid var(--border2); background:var(--surface2); color:var(--muted2); cursor:pointer; transition:all .15s; font-family:var(--sans); }
.tool-toggle:hover { color:var(--text); }
.tool-toggle.on { background:var(--text); color:var(--bg); border-color:var(--text); }
.modal-footer { display:flex; gap:8px; margin-top:18px; }
.screenshot-upload-zone { border:1.5px dashed var(--border2); border-radius:var(--r-sm); padding:12px 14px; cursor:pointer; transition:border-color .15s; display:flex; align-items:center; gap:10px; position:relative; }
.screenshot-upload-zone:hover { border-color:var(--text); }
.screenshot-upload-zone input[type=file] { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
.screenshot-upload-hint { font-size:12px; color:var(--muted); flex:1; }
.screenshot-preview-wrap { display:none; margin-top:8px; position:relative; width:100%; }
.screenshot-preview-wrap.visible { display:block; }
.screenshot-preview-img { width:100%; max-height:120px; object-fit:cover; border-radius:var(--r-sm); border:1px solid var(--border2); display:block; }
.screenshot-preview-remove { position:absolute; top:5px; right:5px; background:rgba(0,0,0,.6); color:#fff; border:none; border-radius:50%; width:22px; height:22px; font-size:12px; cursor:pointer; display:flex; align-items:center; justify-content:center; line-height:1; padding:0; }

/* ═══════════════════════════════════
   MOBILE STYLES
═══════════════════════════════════ */
@media (max-width:768px) {
  /* Nav */
  nav { padding:0 8px 0 8px; padding-right:max(10px, env(safe-area-inset-right)); gap:0; height:52px; overflow:hidden; }
  .logo-text { display:none; }
  .logo-muted { display:none; }
  .nav-sep { display:none; }
  .nav-search { display:none; }
  .nav-social { display:none; }
  .mobile-search-btn { display:flex; flex-shrink:0; width:36px; height:36px; }
  .nav-right { margin-left:auto; gap:2px; flex-shrink:0; padding-right:2px; }
  .nav-tab { padding:6px 9px; font-size:12px; flex-shrink:0; }
  /* Projects + Checker are already in the bottom mobile nav (and logo → home),
     so hide them up top to leave room for the right-side icons + login button. */
  #tab-projects, #tab-checker { display:none; }
  .nav-checker-word { display:none; }
  .btn { padding:5px 9px; font-size:12px; }
  #navSubmitBtn { display:none !important; }
  /* Enlarge tap target for nav avatar + sign-in button to ≥44px without changing visual size */
  .user-avatar { position:relative; }
  .user-avatar::before { content:''; position:absolute; top:50%; left:50%; width:44px; height:44px; transform:translate(-50%,-50%); }
  #navLoginBtn { position:relative; min-height:32px; }
  #navLoginBtn::before { content:''; position:absolute; top:50%; left:50%; width:100%; height:44px; transform:translate(-50%,-50%); }
  .mobile-sidebar-section { display:block; margin-top:32px; }

  /* Hero */
  .hero { padding:32px 16px 24px; }
  .hero h1 { font-size:28px; letter-spacing:-1px; line-height:1.15; }
  .hero-sub { font-size:13px; margin-bottom:18px; }
  .stats-row { gap:12px; }
  .stat-div { display:none; }
  .stat-n { font-size:16px; }

  /* Layout */
  .projects-layout { grid-template-columns:minmax(0,1fr); padding:0 16px 70px; gap:0; }
  .projects-layout > div { min-width:0; }
  .sidebar { display:none; }
  .weekly-lb { padding:0 16px 16px; }
  .weekly-lb-inner { padding:16px; }
  .weekly-lb-grid { grid-template-columns:minmax(0,1fr); gap:10px; }
  .grid { grid-template-columns:minmax(0,1fr); gap:12px; }

  /* Filter bar — wrap on mobile, no horizontal scroll */
  .filter-bar { gap:6px; margin-bottom:14px; flex-wrap:wrap; overflow-x:visible; padding-bottom:0; }
  .chip { white-space:nowrap; font-size:12px; padding:6px 12px; min-height:32px; }
  .sort-select { margin-left:0; flex-shrink:0; font-size:11px; }
  .filter-bar .sort-select:last-child { margin-left:auto; }
  .load-more-btn { width:100%; }

  /* Cards */
  .card-thumb { height:140px; font-size:40px; }
  .card-body { padding:14px 16px 16px; }
  .card-title { font-size:15px; }
  .card-desc { font-size:12px; margin-bottom:8px; }
  .card-idea { font-size:12px; margin-bottom:8px; }
  .card-author-row { font-size:11px; margin-bottom:10px; }
  .card-footer { gap:6px; padding-top:10px; }
  .upvote-btn { padding:7px 12px; font-size:12px; white-space:nowrap; min-height:34px; }
  .card-stat-btn { padding:5px 8px; font-size:11px; min-height:34px; }
  .share-x-btn, .share-fb-btn, .share-li-btn, .share-rd-btn { width:34px; height:34px; }

  /* Drawer — full screen on mobile */
  .drawer { width:100%; border-left:none; border-top:1px solid var(--border2); border-radius:20px 20px 0 0; top:auto; height:92vh; transform:translateY(100%); }
  .drawer.open { transform:translateY(0); }
  .drawer-thumb { height:140px; font-size:56px; margin:40px 0 16px; }
  .drawer-title { font-size:18px; }
  .drawer-header { padding:16px 18px 0; padding-bottom:14px; }
  .drawer-close { top:14px; left:14px; }
  .drawer-body { padding:16px 18px; }
  .info-grid { grid-template-columns:1fr 1fr; gap:8px; }
  .info-card { padding:11px; }
  .info-value { font-size:13px; }
  .drawer-actions { padding:12px 16px; gap:6px; flex-wrap:wrap; }
  .drawer-actions .btn-primary { flex:1; min-width:100px; }
  .comment-form { padding:12px 16px; }

  /* Checker */
  .checker-wrap { padding:24px 16px 60px; }
  .checker-hero h2 { font-size:26px; letter-spacing:-0.5px; }
  .checker-hero p { font-size:13px; }
  .code-textarea { min-height:200px; font-size:12px; padding:14px; }
  .checker-hint { display:none; }

  /* Sub scores grid on checker results */
  .checker-results [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns:1fr!important; }

  /* Modals — full screen bottom sheet on mobile */
  .modal-overlay { align-items:flex-end; padding:0; }
  .modal { border-radius:20px 20px 0 0; max-height:92vh; padding:20px 18px; border-bottom:none; }

  /* Mobile search overlay */
  .mobile-search-input-wrap { height:44px; }
  .mobile-search-close { width:40px; height:40px; }

  /* Bottom nav bar for mobile */
  .mobile-nav {
    display:flex;
    position:fixed;
    bottom:0; left:0; right:0;
    height:60px;
    background:rgba(248,248,246,0.96);
    backdrop-filter:blur(20px);
    border-top:1px solid var(--border2);
    z-index:150;
    padding:0 8px;
  }
  .mobile-nav-btn {
    flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:3px; border:none; background:none; cursor:pointer;
    font-family:var(--sans); font-size:11px; font-weight:500;
    color:var(--muted2); transition:color .15s; padding:0;
    -webkit-tap-highlight-color:transparent;
  }
  .mobile-nav-btn.active { color:var(--text); }
  .mobile-nav-icon { font-size:20px; line-height:1; }
  .mobile-nav-submit {
    flex:1; display:flex; align-items:center; justify-content:center;
    margin:8px 4px;
    background:#7c3aed; color:#fff;
    border:none; border-radius:10px;
    font-family:var(--sans); font-size:13px; font-weight:600;
    cursor:pointer; -webkit-tap-highlight-color:transparent;
  }
}

/* Tighter phones: hide the message bell so notif + theme + avatar always fit on screen
   (messages remain accessible from the user dropdown / inbox page) */
@media (max-width:420px) {
  .msg-bell { display:none !important; }
}

/* ═══════════════════════════════════
   AUTH STYLES
═══════════════════════════════════ */
.auth-overlay {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,.45); z-index:600;
  backdrop-filter:blur(10px);
  align-items:center; justify-content:center; padding:20px;
}
.auth-overlay.open { display:flex; }

.auth-modal {
  background:var(--surface); border:1px solid var(--border2);
  border-radius:var(--r-xl); padding:32px 28px;
  width:100%; max-width:400px;
  animation:modalIn .22s var(--ease);
  box-shadow:var(--sh-xl);
}

.auth-logo {
  display:flex; align-items:center; justify-content:center;
  gap:8px; margin-bottom:24px;
}
.auth-logo-icon {
  width:32px; height:32px; border-radius:8px; object-fit:cover; display:block;
}
.auth-logo-text { font-size:16px; font-weight:700; letter-spacing:-.3px; }

.auth-title { font-size:20px; font-weight:700; letter-spacing:-.5px; text-align:center; margin-bottom:6px; }
.auth-sub { font-size:13px; color:var(--muted2); text-align:center; margin-bottom:24px; line-height:1.5; }

.auth-social-btn {
  width:100%; padding:11px 16px;
  display:flex; align-items:center; justify-content:center; gap:10px;
  border-radius:var(--r-sm); font-family:var(--sans);
  font-size:14px; font-weight:500; cursor:pointer;
  transition:all .15s; margin-bottom:10px; border:1px solid var(--border2);
  background:var(--surface); color:var(--text);
}
.auth-social-btn:hover:not(:disabled) { background:var(--surface2); border-color:rgba(0,0,0,.2); }
.auth-social-btn:disabled { opacity:.6; cursor:not-allowed; }
.auth-social-icon { width:20px; height:20px; flex-shrink:0; }
.auth-social-spinner {
  display:none; width:16px; height:16px; flex-shrink:0;
  border:2px solid currentColor; border-top-color:transparent;
  border-radius:50%; animation:spin .6s linear infinite;
}
.auth-social-btn:disabled .auth-social-spinner { display:block; }
.auth-social-btn:disabled .auth-social-icon { display:none; }
@keyframes spin { to { transform:rotate(360deg); } }

.auth-divider {
  display:flex; align-items:center; gap:12px;
  margin:18px 0; color:var(--muted); font-size:12px;
}
.auth-divider::before,.auth-divider::after {
  content:''; flex:1; height:1px; background:var(--border2);
}

.auth-tabs { display:flex; gap:2px; margin-bottom:18px; background:var(--surface2); border-radius:var(--r-sm); padding:3px; }
.auth-tab {
  flex:1; padding:7px; border-radius:6px; border:none;
  background:none; font-family:var(--sans); font-size:13px;
  font-weight:500; color:var(--muted2); cursor:pointer; transition:all .15s;
}
.auth-tab.active { background:var(--surface); color:var(--text); box-shadow:var(--sh); }

.auth-btn {
  width:100%; padding:12px; background:var(--text); color:var(--bg);
  border:none; border-radius:var(--r-sm); font-family:var(--sans);
  font-size:14px; font-weight:600; cursor:pointer;
  transition:all .15s; margin-top:4px;
}
.auth-btn:hover { background:#2a2a28; }

.auth-footer { text-align:center; font-size:12px; color:var(--muted); margin-top:16px; }
.auth-footer a { color:var(--text); font-weight:500; cursor:pointer; text-decoration:none; }

/* User avatar in nav */
.user-avatar {
  width:30px; height:30px; border-radius:8px;
  background:var(--text); color:var(--bg);
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; cursor:pointer;
  border:none; transition:opacity .15s; flex-shrink:0;
  font-family:var(--sans);
}
.user-avatar:hover { opacity:.8; }

/* User dropdown — position:fixed so nav backdrop-filter doesn't trap it (Safari bug) */
.user-dropdown {
  position:fixed; top:58px; right:20px;
  background:var(--surface); border:1px solid var(--border2);
  border-radius:var(--r-lg); padding:8px;
  box-shadow:var(--sh-xl); z-index:400; min-width:200px;
  display:none; animation:modalIn .15s var(--ease);
}
.user-dropdown.open { display:block; }
.dropdown-header { padding:8px 10px 12px; border-bottom:1px solid var(--border); margin-bottom:6px; }
.dropdown-name { font-size:14px; font-weight:600; color:var(--text); }
.dropdown-email { font-size:12px; color:var(--muted); margin-top:2px; }
.dropdown-item {
  display:flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:var(--r-sm);
  font-size:13px; color:var(--muted2); cursor:pointer;
  transition:all .15s; border:none; background:none;
  font-family:var(--sans); width:100%; text-align:left;
}
.dropdown-item:hover { background:var(--surface2); color:var(--text); }
.dropdown-item.danger:hover { background:var(--red-bg); color:var(--red); }

@media (max-width:768px) {
  .auth-modal { border-radius:20px 20px 0 0; max-height:92vh; overflow-y:auto; }
  .auth-overlay { align-items:flex-end; padding:0; }
  .user-dropdown { position:fixed; top:56px; right:8px; }
}

/* ── LEGAL PAGES (Privacy / Terms) ── */
.legal-wrap { max-width:680px; margin:0 auto; padding:48px 24px 80px; }
.legal-back { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--muted2); background:none; border:none; cursor:pointer; font-family:var(--sans); padding:0; margin-bottom:32px; transition:color .15s; }
.legal-back:hover { color:var(--text); }
.legal-back svg { width:14px; height:14px; }
.legal-eyebrow { font-size:11px; font-weight:600; color:var(--green); letter-spacing:.06em; text-transform:uppercase; margin-bottom:10px; }
.legal-h1 { font-size:clamp(26px,4vw,36px); font-weight:700; letter-spacing:-1px; line-height:1.1; margin-bottom:8px; }
.legal-meta { font-size:13px; color:var(--muted); margin-bottom:40px; }
.legal-section { margin-bottom:32px; }
.legal-h2 { font-size:15px; font-weight:700; color:var(--text); margin-bottom:8px; letter-spacing:-.2px; }
.legal-p { font-size:14px; color:var(--muted2); line-height:1.7; margin-bottom:10px; }
.legal-p a { color:var(--green); text-decoration:underline; }
.legal-ul { padding-left:18px; margin-bottom:10px; }
.legal-ul li { font-size:14px; color:var(--muted2); line-height:1.7; margin-bottom:4px; }
.legal-divider { border:none; border-top:1px solid var(--border); margin:32px 0; }

/* ═══════════════════════════════════
   FORUM PAGE
═══════════════════════════════════ */
.forum-wrap { max-width:720px; margin:0 auto; padding:48px 24px 80px; }
.forum-page-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:36px; flex-wrap:wrap; }
.forum-page-header-left .forum-eyebrow { font-size:11px; font-weight:600; color:var(--green); letter-spacing:.06em; text-transform:uppercase; margin-bottom:8px; }
.forum-page-header-left h2 { font-size:clamp(24px,3.5vw,32px); font-weight:700; letter-spacing:-.8px; margin-bottom:6px; }
.forum-page-header-left p { font-size:13px; color:var(--muted2); }
.forum-new-btn { padding:9px 18px; border-radius:var(--r); background:var(--text); color:var(--bg); border:none; font-family:var(--sans); font-size:13px; font-weight:600; cursor:pointer; transition:opacity .15s var(--ease); box-shadow:var(--sh); flex-shrink:0; }
.forum-new-btn:hover { opacity:.85; }
.forum-thread-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:16px 20px; cursor:pointer; transition:background .15s var(--ease), border-color .15s, transform .15s var(--ease), box-shadow .15s var(--ease); margin-bottom:6px; display:flex; gap:16px; align-items:flex-start; position:relative; box-shadow:var(--sh); }
.forum-thread-card:hover { background:var(--surface2); border-color:var(--border2); transform:translateY(-1px); box-shadow:var(--sh-md); }
.forum-thread-upvote { display:flex; flex-direction:column; align-items:center; gap:1px; flex-shrink:0; padding:6px 8px; min-width:44px; font-family:var(--mono); color:var(--muted); cursor:pointer; transition:color .15s var(--ease), background .15s var(--ease); border:none; background:var(--surface2); border-radius:8px; }
.forum-thread-upvote:hover { color:var(--green); background:var(--green-bg); }
.forum-thread-upvote.voted { color:var(--green); background:var(--green-bg); }
.forum-thread-upvote-icon { font-size:14px; line-height:1; }
.forum-thread-upvote-count { font-size:15px; font-weight:700; letter-spacing:-.5px; }
.forum-thread-content { flex:1; min-width:0; }
.forum-thread-title { font-size:15px; font-weight:600; letter-spacing:-.3px; line-height:1.35; margin-bottom:6px; color:var(--text); }
.forum-thread-card:hover .forum-thread-title { color:var(--text); }
.forum-thread-preview { font-size:13px; color:var(--muted); line-height:1.5; margin-bottom:10px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.forum-thread-meta { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted); flex-wrap:wrap; padding-top:10px; border-top:1px solid var(--border); margin-top:6px; }
.forum-thread-meta .t-author { color:var(--muted2); font-weight:500; font-size:12px; }
.forum-thread-meta .t-sep { width:3px; height:3px; background:var(--border2); border-radius:50%; flex-shrink:0; }
.forum-thread-meta .t-time { color:var(--muted); }
.forum-thread-meta .t-replies { display:inline-flex; align-items:center; gap:4px; font-size:12px; font-weight:500; color:var(--muted); margin-left:2px; background:none; border:none; padding:0; }
.forum-empty { text-align:center; padding:80px 20px; color:var(--muted2); }
.forum-empty-icon { font-size:48px; margin-bottom:16px; }
.forum-empty-title { font-size:18px; font-weight:600; color:var(--text); margin-bottom:8px; }
.forum-empty-sub { font-size:14px; color:var(--muted); line-height:1.5; max-width:320px; margin:0 auto; }
/* Forum enhanced thread cards */
.forum-thread-av { width:36px; height:36px; min-width:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; color:#fff; flex-shrink:0; flex-grow:0; letter-spacing:.2px; overflow:hidden; box-shadow:0 1px 4px rgba(0,0,0,.18); }
.forum-thread-top { display:flex; align-items:flex-start; gap:10px; margin-bottom:10px; }
.forum-thread-top > div:not(.forum-thread-av) { flex:1; min-width:0; }
.forum-thread-card { padding:18px 20px; }
.forum-thread-title { font-size:15px; font-weight:700; letter-spacing:-.3px; line-height:1.3; margin-bottom:6px; }
.forum-thread-meta { border-top:1px solid var(--border); padding-top:10px; }
/* Forum reply card style */
.forum-reply-item { border-left:none; margin-left:0; background:var(--surface); border:1px solid var(--border); border-radius:var(--r); margin-bottom:8px; padding:14px 16px; }
.forum-reply-item:nth-child(even) { background:var(--surface2); }
/* Forum floating action button */
.forum-fab { position:fixed; bottom:80px; right:24px; padding:10px 22px; border-radius:100px; background:var(--text); color:var(--bg); font-size:13px; font-weight:700; cursor:pointer; box-shadow:0 4px 24px rgba(0,0,0,.25); border:none; font-family:var(--sans); z-index:200; opacity:0; transform:translateY(8px); pointer-events:none; transition:opacity .2s var(--ease),transform .2s var(--ease); display:none; }
.forum-fab.visible { opacity:1; transform:translateY(0); pointer-events:all; }
[data-theme="dark"] .forum-fab { box-shadow:0 4px 24px rgba(0,0,0,.55); }
@media(max-width:640px) { .forum-fab { bottom:72px; right:14px; padding:9px 18px; } }
.forum-skeleton { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:16px 20px; margin-bottom:2px; }
.forum-skel-line { height:12px; border-radius:4px; background:var(--surface3); margin-bottom:8px; animation:skelPulse 1.4s ease infinite; }
@keyframes skelPulse { 0%,100%{opacity:.5} 50%{opacity:1} }

/* Forum detail view */
.forum-detail { animation:cardIn .25s var(--ease) both; }
.forum-detail-back { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--muted2); background:none; border:none; cursor:pointer; font-family:var(--sans); padding:0; margin-bottom:28px; transition:color .15s; }
.forum-detail-back:hover { color:var(--text); }
.forum-detail-title { font-size:clamp(24px,3.5vw,32px); font-weight:700; letter-spacing:-.7px; line-height:1.2; margin-bottom:16px; }
.forum-detail-meta { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted); margin-bottom:28px; flex-wrap:wrap; padding:10px 14px; background:var(--surface2); border-radius:var(--r-sm); border:1px solid var(--border); }
.forum-detail-meta strong { color:var(--muted2); }
.forum-detail-body { font-size:16px; color:var(--text); line-height:1.9; white-space:pre-wrap; margin-bottom:32px; padding:24px; background:var(--surface2); border:1px solid var(--border); border-radius:var(--r-lg); }
.forum-detail-actions { display:flex; align-items:center; gap:8px; margin-bottom:36px; padding-bottom:28px; border-bottom:1px solid var(--border2); }
.forum-detail-upvote { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border-radius:var(--r-sm); font-size:13px; font-weight:600; border:1px solid var(--border2); background:var(--surface); color:var(--muted2); cursor:pointer; transition:all .15s var(--ease); font-family:var(--mono); box-shadow:var(--sh); }
.forum-detail-upvote:hover { border-color:var(--green-border); color:var(--green); background:var(--green-bg); }
.forum-detail-upvote.voted { background:var(--green-bg); border-color:var(--green-border); color:var(--green); box-shadow:none; }
.forum-replies-title { font-size:12px; font-weight:600; color:var(--muted); letter-spacing:.5px; text-transform:uppercase; margin-bottom:16px; }
.forum-reply-item { display:flex; gap:12px; padding:16px 14px 16px 16px; border-bottom:none; position:relative; border-left:2px solid var(--border2); margin-left:14px; margin-bottom:2px; border-radius:0 var(--r-sm) var(--r-sm) 0; }
.forum-reply-item:nth-child(even) { background:var(--surface2); }
.forum-reply-item:last-child { margin-bottom:0; }
.forum-reply-avatar { width:38px; height:38px; border-radius:50%; background:var(--surface3); border:1px solid var(--border2); display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:var(--muted2); flex-shrink:0; overflow:hidden; }
.forum-reply-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.forum-reply-meta { font-size:11px; color:var(--muted); margin-bottom:5px; }
.forum-reply-meta strong { color:var(--text); font-weight:600; }
.forum-reply-body { font-size:13px; color:var(--muted2); line-height:1.65; white-space:pre-wrap; }
.forum-reply-form { display:flex; gap:8px; margin-top:24px; padding-top:24px; border-top:1px solid var(--border); }
.forum-reply-input { flex:1; padding:10px 14px; border-radius:var(--r); background:var(--surface2); border:1px solid var(--border2); font-family:var(--sans); font-size:13px; color:var(--text); outline:none; transition:all .15s; resize:vertical; min-height:44px; max-height:160px; }
.forum-reply-input:focus { background:var(--surface); border-color:var(--green); box-shadow:0 0 0 3px rgba(22,163,74,0.15); }
[data-theme="dark"] .forum-reply-input:focus { border-color:var(--green); box-shadow:0 0 0 3px rgba(22,163,74,0.2); }
.forum-reply-input::placeholder { color:var(--muted); }
.forum-reply-post { padding:10px 18px; border-radius:var(--r); background:var(--text); color:var(--bg); border:none; font-family:var(--sans); font-size:13px; font-weight:600; cursor:pointer; transition:opacity .15s; flex-shrink:0; align-self:flex-end; }
.forum-reply-post:hover { opacity:.82; }

/* New Thread Modal */
.forum-modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.45); backdrop-filter:blur(6px); z-index:800; display:none; align-items:center; justify-content:center; padding:20px; }
.forum-modal-overlay.open { display:flex; }
[data-theme="dark"] .forum-modal-overlay { background:rgba(0,0,0,.65); }
.forum-modal { background:var(--surface); border:1px solid var(--border2); border-radius:var(--r-xl); padding:28px; width:100%; max-width:520px; box-shadow:var(--sh-xl); position:relative; }
.forum-modal-close { position:absolute; top:16px; right:16px; width:28px; height:28px; border-radius:7px; background:var(--surface2); border:1px solid var(--border); color:var(--muted2); font-size:13px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .15s; }
.forum-modal-close:hover { background:var(--surface3); color:var(--text); }
.forum-modal-title { font-size:18px; font-weight:700; letter-spacing:-.4px; margin-bottom:18px; }
.forum-modal-label { font-size:12px; font-weight:600; color:var(--muted); letter-spacing:.04em; text-transform:uppercase; margin-bottom:6px; }
.forum-modal-input { width:100%; padding:9px 13px; border-radius:var(--r-sm); background:var(--surface2); border:1px solid var(--border2); font-family:var(--sans); font-size:14px; color:var(--text); outline:none; transition:all .15s; }
.forum-modal-input:focus { background:var(--surface); border-color:rgba(0,0,0,.22); box-shadow:0 0 0 3px rgba(0,0,0,.04); }
[data-theme="dark"] .forum-modal-input:focus { border-color:rgba(255,255,255,.2); box-shadow:0 0 0 3px rgba(255,255,255,.04); }
.forum-modal-input::placeholder { color:var(--muted); }
.forum-modal-textarea { width:100%; padding:9px 13px; border-radius:var(--r-sm); background:var(--surface2); border:1px solid var(--border2); font-family:var(--sans); font-size:13px; color:var(--text); outline:none; transition:all .15s; resize:vertical; min-height:110px; max-height:300px; }
.forum-modal-textarea:focus { background:var(--surface); border-color:rgba(0,0,0,.22); box-shadow:0 0 0 3px rgba(0,0,0,.04); }
[data-theme="dark"] .forum-modal-textarea:focus { border-color:rgba(255,255,255,.2); box-shadow:0 0 0 3px rgba(255,255,255,.04); }
.forum-modal-textarea::placeholder { color:var(--muted); }
.forum-modal-footer { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; }

@media (max-width:600px) {
  .forum-wrap { padding:20px 12px 100px; }
  .forum-page-header { gap:12px; }
  .forum-thread-card { padding:14px 14px; gap:12px; border-radius:var(--r-sm); }
  .forum-thread-upvote { min-width:38px; }
  .forum-thread-upvote-count { font-size:14px; }
  .forum-thread-title { font-size:14px; }
  .forum-thread-preview { font-size:12px; margin-bottom:8px; }
  .forum-detail-title { font-size:22px; }
  .forum-detail-body { padding:18px 16px; font-size:14px; }
  .forum-reply-item { padding:14px 0 14px 12px; gap:10px; margin-left:10px; }
  .forum-reply-avatar { width:28px; height:28px; font-size:11px; }
  .forum-reply-input { min-height:44px; font-size:14px; }
  .forum-reply-post { padding:10px 16px; }
  .forum-new-btn { padding:9px 14px; width:100%; text-align:center; }
}

/* ── COOKIE BANNER ── */
#cookie-banner { position:fixed; bottom:0; left:0; right:0; z-index:9000; padding:14px 20px; background:var(--surface2); border-top:1px solid var(--border2); display:flex; align-items:center; gap:12px; flex-wrap:wrap; transform:translateY(100%); transition:transform .4s var(--ease); }
#cookie-banner.visible { transform:translateY(0); }
.cookie-text { flex:1; min-width:200px; font-size:13px; color:var(--muted2); line-height:1.5; }
.cookie-text a { color:var(--green); text-decoration:underline; cursor:pointer; }
.cookie-btns { display:flex; gap:8px; flex-shrink:0; }
.cookie-accept { padding:7px 16px; border-radius:var(--r-sm); background:#39ff14; color:#000; border:none; font-family:var(--sans); font-size:13px; font-weight:600; cursor:pointer; transition:opacity .15s; box-shadow:0 0 8px #39ff1455; }
.cookie-accept:hover { opacity:.88; }
.cookie-decline { padding:7px 16px; border-radius:var(--r-sm); background:var(--surface3); color:var(--muted2); border:1px solid var(--border2); font-family:var(--sans); font-size:13px; font-weight:500; cursor:pointer; transition:all .15s; }
.cookie-decline:hover { color:var(--text); }

#page-checker { position:relative; }
/* Stack the Checker label */
#tab-checker { flex-direction:column; gap:2px; line-height:1.1; padding-top:4px; padding-bottom:4px; }
.nav-checker-label { display:inline-flex; align-items:center; line-height:1.1; }

/* ── PRELOADER ── */
#preloader { position:fixed; inset:0; background:#0d0d0f; z-index:10000; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0; transition:opacity .55s ease, visibility .55s; }
#preloader.hidden { opacity:0; visibility:hidden; pointer-events:none; }
#preloader-logo { width:160px; height:auto; border-radius:0; object-fit:contain; animation:preloaderPop .5s var(--ease) both; }
@keyframes preloaderPop { from{opacity:0;transform:scale(.75)} to{opacity:1;transform:scale(1)} }

/* ── BOOSTS ──────────────────────────────────────────────────────────────────
   Blue on purpose: gold "Featured" is our own editorial pick and green "PRO"
   is a plan the user holds. A boost is neither, so it gets its own colour
   instead of borrowing the credibility of either. */
.boost-badge { display:inline-flex; align-items:center; gap:4px; padding:2px 8px; background:var(--blue-bg); border:1px solid rgba(37,99,235,0.3); border-radius:20px; font-size:10px; font-weight:700; color:var(--blue); letter-spacing:.4px; text-transform:uppercase; }
[data-theme="dark"] .boost-badge { color:#93c5fd; border-color:rgba(59,130,246,.35); }
.card.boosted { border-color:rgba(37,99,235,0.4); }
.card.boosted:hover { border-color:rgba(37,99,235,0.75); box-shadow:0 0 0 3px rgba(37,99,235,0.12),0 8px 32px rgba(37,99,235,0.14); }

/* Top-1 slot — the single exclusive position above the grid. */
.top1-slot { margin-bottom:20px; }
.top1-card { display:flex; gap:0; background:var(--surface); border:1.5px solid rgba(37,99,235,0.45); border-radius:var(--r-lg); overflow:hidden; cursor:pointer; box-shadow:0 0 0 3px rgba(37,99,235,0.1),0 6px 28px rgba(37,99,235,0.14); transition:transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.top1-card:hover { transform:translateY(-3px); border-color:rgba(37,99,235,0.85); box-shadow:0 0 0 4px rgba(37,99,235,0.16),0 12px 40px rgba(37,99,235,0.2); }
.top1-thumb { flex:0 0 260px; display:flex; align-items:center; justify-content:center; font-size:60px; overflow:hidden; }
.top1-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.top1-body { flex:1; min-width:0; padding:18px 20px; display:flex; flex-direction:column; gap:8px; }
.top1-badges { display:flex; align-items:center; gap:8px; }
.top1-title { font-size:20px; font-weight:700; letter-spacing:-.4px; color:var(--text); text-decoration:none; }
.top1-title:hover { color:var(--green); }
.top1-desc { font-size:14px; color:var(--muted2); line-height:1.55; overflow-wrap:anywhere; }
.top1-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:auto; padding-top:6px; }
.top1-author { font-size:13px; color:var(--muted2); }
.top1-actions { display:flex; align-items:center; gap:8px; }
@media (max-width:720px) {
  .top1-card { flex-direction:column; }
  .top1-thumb { flex:0 0 170px; height:170px; }
}

/* Boost modal */
.boost-cta { background:var(--blue-bg); color:var(--blue); border:1px solid rgba(37,99,235,0.35); font-weight:600; }
.boost-cta:hover { background:var(--blue); color:#fff; border-color:var(--blue); }
[data-theme="dark"] .boost-cta { color:#93c5fd; }
[data-theme="dark"] .boost-cta:hover { color:#fff; }
.boost-project-name { font-size:13px; color:var(--muted2); margin-bottom:16px; }
.boost-types { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:16px; }
.boost-type-card { display:flex; flex-direction:column; gap:5px; text-align:left; padding:14px; border:2px solid var(--border2); border-radius:var(--r); background:var(--surface); cursor:pointer; font-family:var(--sans); transition:border-color .15s, background .15s; }
.boost-type-card:hover { border-color:rgba(37,99,235,0.45); }
.boost-type-card.on { border-color:var(--blue); background:var(--blue-bg); }
.boost-type-icon { font-size:20px; }
.boost-type-name { font-size:14px; font-weight:700; color:var(--text); }
.boost-type-desc { font-size:12px; color:var(--muted2); line-height:1.45; }
.boost-avail { font-size:12.5px; line-height:1.5; padding:10px 13px; border-radius:var(--r-sm); margin-bottom:16px; color:var(--muted2); background:var(--surface2); border:1px solid var(--border); }
.boost-avail.free { background:var(--green-bg); border-color:var(--green-border); color:var(--green); }
.boost-avail.busy { background:var(--amber-bg); border-color:rgba(180,83,9,0.28); color:var(--amber); }
[data-theme="dark"] .boost-avail.busy { color:#fcd34d; }
.boost-plans { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:16px; }
.boost-plans-loading { grid-column:1/-1; text-align:center; font-size:13px; color:var(--muted); padding:18px 0; }
.plan-card { position:relative; display:flex; flex-direction:column; align-items:center; gap:3px; padding:16px 10px; border:2px solid var(--border2); border-radius:var(--r); background:var(--surface); cursor:pointer; font-family:var(--sans); transition:border-color .15s, background .15s, transform .15s; }
.plan-card:hover { border-color:rgba(37,99,235,0.45); }
.plan-card.on { border-color:var(--blue); background:var(--blue-bg); transform:scale(1.03); }
.plan-card.popular { border-color:rgba(37,99,235,0.35); }
.plan-flag { position:absolute; top:-9px; left:50%; transform:translateX(-50%); background:var(--blue); color:#fff; font-size:9px; font-weight:700; padding:2px 8px; border-radius:20px; letter-spacing:.5px; text-transform:uppercase; white-space:nowrap; }
.plan-icon { font-size:20px; }
.plan-price { font-size:16px; font-weight:700; color:var(--text); }
.plan-dur { font-size:12px; font-weight:600; color:var(--muted2); }
.plan-hint { font-size:11px; color:var(--muted); }
.boost-note { background:var(--surface2); border:1px solid var(--border); border-radius:var(--r-sm); padding:10px 14px; margin-bottom:20px; font-size:12px; color:var(--muted2); line-height:1.5; }
.boost-pay-btn { background:var(--blue); color:#fff; font-weight:700; border:1px solid var(--blue); }
.boost-pay-btn:hover:not(:disabled) { opacity:.9; }
.boost-pay-btn:disabled { opacity:.45; cursor:not-allowed; }
@media (max-width:560px) {
  .boost-types { grid-template-columns:1fr; }
  .boost-plans { grid-template-columns:1fr; }
}
