*{box-sizing:border-box}
:root{--bg:#f6f7fb;--card:#fff;--text:#171a2b;--muted:#858aa3;--line:#e9ebf4;--brand:#6d63ff}
body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
button,input{font:inherit}button{cursor:pointer}a{color:inherit}
.topbar{height:74px;background:rgba(255,255,255,.96);backdrop-filter:blur(18px);border-bottom:1px solid var(--line);display:grid;grid-template-columns:250px 1fr auto;gap:20px;align-items:center;padding:0 28px;position:sticky;top:0;z-index:30}
.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;color:#fff;font-weight:900;font-size:24px;background:linear-gradient(135deg,#4438ca,#8b5cf6,#c084fc)}
.brand-name{font-weight:900}.brand-sub{font-size:10px;color:var(--muted);letter-spacing:1.2px;text-transform:uppercase}
.search input{width:100%;height:44px;border-radius:16px;border:1px solid var(--line);background:#f9faff;padding:0 18px;outline:none}
.top-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}.lang{display:flex;background:#f4f5fb;border-radius:14px;padding:4px}.lang button{border:0;background:transparent;padding:8px 9px;border-radius:10px;color:var(--muted)}.lang .active{background:#fff;color:var(--brand)}
.me-chip,.login-link,.signup-link,.logout-link{text-decoration:none;font-size:13px;font-weight:700}.me-chip,.signup-link{background:#eeecff;color:#5b50e6;padding:9px 12px;border-radius:12px}.logout-link{color:#888da2}.login-link{padding:9px}
.layout{max-width:1500px;margin:auto;display:grid;grid-template-columns:220px minmax(0,1fr) 300px;gap:22px;padding:24px}
.sidebar,.rightbar{position:sticky;top:98px;height:max-content}.sidebar nav{display:flex;flex-direction:column;gap:6px}.sidebar a{text-decoration:none;color:#4b5068;padding:13px 15px;border-radius:14px;font-weight:650}.sidebar a:hover,.sidebar a.active{background:#ecebff;color:var(--brand)}
.hero{background:radial-gradient(circle at 75% 15%,rgba(192,132,252,.65),transparent 32%),linear-gradient(135deg,#202248,#4f46e5 55%,#8b5cf6);color:#fff;border-radius:28px;padding:34px;min-height:250px;display:flex;align-items:flex-end;justify-content:space-between;box-shadow:0 18px 50px rgba(67,56,202,.18)}
.eyebrow{font-size:11px;letter-spacing:2px;opacity:.75}.hero h1{font-size:38px;line-height:1.07;margin:10px 0}.hero p{max-width:600px;color:#e8e7ff}.primary-link{display:inline-block;text-decoration:none;background:#fff;color:#4f46e5;padding:13px 18px;border-radius:14px;font-weight:800}
.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0}.quick{border:0;border-radius:20px;padding:18px;text-align:left;min-height:110px;display:flex;flex-direction:column;gap:3px}.quick span{font-size:24px}.quick b{font-size:16px}.quick small{color:#62677c}.q1{background:#eee9ff}.q2{background:#ffeaf6}.q3{background:#e6faf7}.q4{background:#fff1e5}
.composer{background:#fff;border:1px solid var(--line);border-radius:20px;padding:14px;display:flex;align-items:center;gap:12px}.avatar{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#4f46e5,#8b5cf6);color:#fff;display:grid;place-items:center;font-weight:900;flex:0 0 auto}.composer form{display:flex;flex:1;gap:8px}.composer input{flex:1;border:0;background:#f7f8fc;border-radius:14px;padding:0 15px;outline:none}.composer button{border:0;background:var(--brand);color:#fff;border-radius:14px;padding:0 18px;font-weight:800}
.guest-cta{background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px;display:flex;justify-content:space-between;align-items:center}.guest-cta p{margin:4px 0 0;color:var(--muted)}.guest-cta a{text-decoration:none;padding:10px 13px;border-radius:12px;font-weight:800}.guest-cta .filled{background:var(--brand);color:#fff}
.tabs{display:flex;gap:6px;padding:18px 0 10px}.tabs button{border:0;background:transparent;color:var(--muted);padding:9px 13px;border-radius:12px}.tabs .active{background:#ecebff;color:var(--brand);font-weight:800}
.post{background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px;margin-bottom:14px}.post-head{display:flex;gap:11px;align-items:center}.post-head>div:last-child{display:flex;flex-direction:column}.user-name{text-decoration:none;font-weight:800}.post-head span{font-size:12px;color:var(--muted);margin-top:2px}.post-body p{font-size:15px;line-height:1.65}.post-actions{border-top:1px solid var(--line);margin-top:14px;padding-top:10px;display:flex;gap:8px}.post-actions button{border:0;background:transparent;padding:8px 10px;color:#5d6277;border-radius:10px}
.panel{background:#fff;border:1px solid var(--line);border-radius:22px;padding:15px;margin-bottom:14px}.panel-title{margin-bottom:12px}.event-card{border-radius:18px;padding:18px;color:#fff;min-height:165px}.gradient-a{background:linear-gradient(145deg,#8b5cf6,#ec4899)}.event-card small{font-weight:800;opacity:.8}.event-card button{border:0;background:#fff;color:#6d28d9;border-radius:12px;padding:9px 12px;font-weight:800}.roadmap-item{padding:10px;border-bottom:1px solid #f0f1f6;color:#5d6277}
.mobile-nav{display:none}

/* AUTH */
.auth-page{min-height:100vh;background:radial-gradient(circle at 20% 20%,#e6e4ff,transparent 30%),#f7f8fc}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:1fr 460px;max-width:1100px;margin:auto;align-items:center;gap:60px;padding:30px}.auth-brand h1{font-size:56px;margin:18px 0 8px}.auth-brand p{font-size:20px;color:#6d7288;max-width:480px}.auth-card{background:#fff;border:1px solid var(--line);border-radius:28px;padding:28px;box-shadow:0 30px 70px rgba(50,45,110,.12)}.auth-card h2{margin-top:0}.auth-card form{display:flex;flex-direction:column;gap:14px}.auth-card label{font-size:13px;font-weight:700;color:#555a70}.auth-card input{display:block;width:100%;height:46px;margin-top:6px;border:1px solid var(--line);border-radius:14px;padding:0 13px;outline:none}.auth-submit{height:48px;border:0;border-radius:14px;background:var(--brand);color:#fff;font-weight:900}.auth-switch{text-align:center;color:var(--muted)}.auth-switch a{color:var(--brand);font-weight:800}.alert{background:#fff1f1;color:#b42318;border:1px solid #ffd6d6;padding:11px 13px;border-radius:12px;margin-bottom:14px}

/* PROFILE */
.simple-top{height:66px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 28px}.simple-brand{text-decoration:none;font-weight:900}.simple-top div{display:flex;gap:18px}.simple-top a{text-decoration:none}.profile-wrap{max-width:850px;margin:26px auto;padding:0 14px}.profile-card{background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden}.profile-cover{height:180px;background:linear-gradient(135deg,#2f2c65,#655cf0,#b678ff)}.profile-main{display:flex;gap:18px;align-items:flex-end;padding:0 24px 24px}.profile-avatar{width:110px;height:110px;border-radius:28px;background:#fff;color:#5b50e6;display:grid;place-items:center;font-size:46px;font-weight:900;margin-top:-50px;border:6px solid #fff;box-shadow:0 8px 25px rgba(0,0,0,.08)}.profile-main h1{margin:14px 0 2px}.profile-main p{margin:4px 0;color:#777c91}.empty-box{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;color:var(--muted)}

@media(max-width:1100px){.layout{grid-template-columns:200px 1fr}.rightbar{display:none}.topbar{grid-template-columns:210px 1fr auto}}
@media(max-width:780px){body{padding-bottom:70px}.topbar{height:64px;padding:0 12px;grid-template-columns:auto 1fr}.brand-sub,.search,.lang{display:none}.layout{display:block;padding:12px}.sidebar{display:none}.hero{min-height:220px;padding:24px;flex-direction:column;align-items:flex-start}.hero h1{font-size:29px}.quick-grid{grid-template-columns:1fr 1fr}.composer input{min-width:0}.composer button{padding:0 10px}.top-actions{gap:5px}.logout-link{display:none}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;height:62px;background:#fff;border-top:1px solid var(--line);align-items:center;justify-content:space-around;z-index:40}.mobile-nav .plus{width:46px;height:46px;background:var(--brand);color:#fff;border-radius:15px;display:grid;place-items:center;margin-top:-18px}.auth-shell{display:block;padding:20px}.auth-brand{display:none}.auth-card{margin-top:30px}.profile-main{align-items:flex-start;flex-direction:column}.profile-avatar{margin-top:-55px}}
