:root {
    --bg: #050507;
    --surface: #0d0d12;
    --surface-2: #14141b;
    --surface-3: #1c1c25;
    --text: #f6f7fb;
    --muted: #a0a3ad;
    --subtle: #6f7380;
    --line: rgba(255,255,255,.08);
    --primary: #6c5cff;
    --primary-soft: rgba(108,92,255,.14);
    --success: #34d399;
    --danger: #fb7185;
    --warning: #fbbf24;
    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 18px 60px rgba(0,0,0,.28);
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    --bottom-nav-h: 78px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font-family: var(--font); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 70% -10%, rgba(108,92,255,.14), transparent 34%), var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.app-shell { padding: 18px 0 calc(var(--bottom-nav-h) + 24px); }
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(20px); background: rgba(5,5,7,.72); border-bottom: 1px solid var(--line); }
.topbar-inner { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: var(--primary); box-shadow: 0 0 36px rgba(108,92,255,.28); }
.nav-pill { display:flex; gap:8px; padding: 7px; border:1px solid var(--line); border-radius:999px; background:rgba(255,255,255,.04); }
.nav-pill a { padding: 8px 14px; border-radius:999px; color: var(--muted); font-size: 14px; }
.nav-pill a.active, .nav-pill a:hover { background: var(--surface-2); color: var(--text); }
.hero { padding: 76px 0 38px; }
.eyebrow { color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
h1 { font-size: clamp(42px, 8vw, 92px); line-height: .92; letter-spacing: -.075em; margin: 16px 0; max-width: 980px; }
h2 { font-size: clamp(28px, 4vw, 48px); letter-spacing: -.055em; margin: 0 0 14px; }
p { color: var(--muted); line-height: 1.55; }
.hero p { font-size: 19px; max-width: 680px; }
.actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:26px; }
.btn { border: 0; border-radius: 999px; min-height: 44px; padding: 0 18px; display:inline-flex; align-items:center; justify-content:center; gap:10px; cursor:pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; font-weight: 750; }
.btn-secondary { background: rgba(255,255,255,.06); border:1px solid var(--line); color: var(--text); }
.btn-ghost { background: transparent; color: var(--muted); }
.grid { display:grid; gap:16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card { background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)); border:1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card-flat { background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.feed { max-width: 680px; margin: 0 auto; display:grid; gap:16px; }
.post-card { overflow:hidden; padding: 0; }
.post-head { display:flex; align-items:center; gap:12px; padding:14px; }
.avatar { width:44px; height:44px; border-radius:50%; object-fit:cover; background: var(--surface-3); border:1px solid var(--line); }
.avatar-lg { width:92px; height:92px; }
.post-media { width:100%; aspect-ratio: 4/5; background: var(--surface-2); object-fit:cover; display:block; }
.post-body { padding: 14px; }
.post-actions { display:flex; gap:10px; padding: 0 14px 14px; }
.icon-btn { width:42px; height:42px; border-radius:50%; border:1px solid var(--line); background: rgba(255,255,255,.045); color: var(--text); display:grid; place-items:center; cursor:pointer; }
.form { display:grid; gap:12px; }
.input { width:100%; background: rgba(255,255,255,.055); border:1px solid var(--line); color:var(--text); border-radius: 16px; min-height:48px; padding: 0 14px; outline:none; }
.textarea { padding:14px; min-height:108px; resize:vertical; }
.input:focus { border-color: rgba(108,92,255,.7); box-shadow: 0 0 0 4px rgba(108,92,255,.12); }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.bottom-nav { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 50; width:min(520px, calc(100% - 28px)); height: var(--bottom-nav-h); border:1px solid var(--line); border-radius: 28px; background: rgba(15,15,20,.72); backdrop-filter: blur(24px); display:grid; grid-template-columns: repeat(5,1fr); padding:8px; box-shadow: 0 20px 80px rgba(0,0,0,.42); }
.bottom-nav a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; color:var(--subtle); border-radius: 20px; font-size: 11px; transition:.2s ease; }
.bottom-nav a.active { background: var(--primary-soft); color: var(--text); transform: scale(1.02); }
.profile-cover { height: 190px; border-radius: 0 0 34px 34px; background: linear-gradient(135deg, rgba(108,92,255,.55), rgba(255,255,255,.06)), var(--surface-2); }
.profile-head { margin-top: -50px; display:flex; align-items:end; justify-content:space-between; gap:14px; }
.tabs { display:flex; gap:8px; overflow:auto; padding: 10px 0; }
.tabs a { white-space:nowrap; border:1px solid var(--line); background:rgba(255,255,255,.04); border-radius:999px; padding:8px 13px; color:var(--muted); }
.event-hero { aspect-ratio: 16/9; border-radius: var(--radius); background: var(--surface-2); overflow:hidden; border:1px solid var(--line); }
.event-hero img { width:100%; height:100%; object-fit:cover; display:block; }
.chat-layout { display:grid; grid-template-columns: 320px 1fr; gap:16px; height: calc(100vh - 150px); }
.chat-list, .chat-panel { overflow:hidden; display:flex; flex-direction:column; }
.message-list { flex:1; overflow:auto; padding:16px; display:flex; flex-direction:column; gap:10px; }
.bubble { max-width: 76%; padding:11px 14px; border-radius: 18px; background: var(--surface-2); color:var(--text); }
.bubble.me { align-self:flex-end; background: var(--primary); }
.admin-layout { display:grid; grid-template-columns: 260px 1fr; gap:18px; }
.sidebar { position:sticky; top:84px; height: calc(100vh - 100px); }
.metric { display:flex; flex-direction:column; gap:8px; }
.metric b { font-size: 30px; letter-spacing:-.045em; }
@media (max-width: 820px) {
    .container { width:min(100% - 24px, 1120px); }
    .nav-pill { display:none; }
    .grid-3 { grid-template-columns:1fr; }
    .hero { padding-top:44px; }
    .chat-layout, .admin-layout { grid-template-columns:1fr; height:auto; }
    .sidebar { position:relative; top:auto; height:auto; }
    .profile-head { align-items:flex-start; flex-direction:column; }
}
