:root { --purple:#ec1c5b; --pink:#ff3b30; --orange:#ff7a1a; --green:#00b894; --ink:#17151c; --muted:#6c6874; --line:rgba(36,28,43,.1); --page:#f7f5f9; --card:#fff; --field:#f8f6fa; --subtle:#fbfafc; --gradient:linear-gradient(135deg,var(--purple),var(--pink) 55%,var(--orange)); }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; color:var(--ink); background:var(--page); font-family:"Manrope",sans-serif; transition:color .2s ease,background .2s ease; }
button,input,textarea,select { font:inherit; }
button { cursor:pointer; }
.community-header { height:72px; display:flex; align-items:center; justify-content:space-between; padding:0 max(20px,calc((100vw - 1180px)/2)); background:color-mix(in srgb,var(--card) 90%,transparent); border-bottom:1px solid var(--line); backdrop-filter:blur(15px); }
.brand { display:flex; align-items:center; gap:10px; color:var(--purple); font:800 20px "Plus Jakarta Sans"; text-decoration:none; }
.brand img { width:39px; border-radius:12px; }
.back-link { color:var(--purple); font-size:13px; font-weight:800; text-decoration:none; }
.header-actions { display:flex; align-items:center; gap:10px; }
.theme-toggle { width:40px; height:40px; display:grid; place-items:center; padding:0; color:var(--purple); background:rgba(236, 28, 91,.08); border:1px solid rgba(236, 28, 91,.1); border-radius:13px; }
.theme-toggle svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.theme-toggle .theme-moon { fill:currentColor; stroke:none; }
.theme-toggle [hidden] { display:none; }
.community-shell { width:min(1180px,calc(100% - 36px)); margin:0 auto; padding:48px 0 70px; }
.community-hero { display:grid; grid-template-columns:1fr 360px; align-items:end; gap:60px; margin-bottom:30px; padding:38px; color:white; background:var(--gradient); border-radius:30px; box-shadow:0 25px 60px rgba(236, 28, 91,.2); }
.eyebrow { color:#ffd7e9; font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.eyebrow.dark { color:var(--purple); }
h1 { margin:8px 0 12px; font:800 clamp(38px,6vw,65px)/1 "Plus Jakarta Sans"; letter-spacing:-.05em; }
h1 span { color:#ffd7e9; }
.community-hero p { max-width:660px; margin:0; color:rgba(255,255,255,.82); line-height:1.65; font-weight:600; }
.privacy-note { display:grid; gap:5px; padding:18px; background:rgba(35,8,42,.18); border:1px solid rgba(255,255,255,.2); border-radius:18px; }
.privacy-note strong { font-size:13px; }
.privacy-note span { color:rgba(255,255,255,.72); font-size:11px; line-height:1.5; }
.community-layout { display:grid; grid-template-columns:350px 1fr; gap:22px; align-items:start; }
.composer-card,.feed-card,.modal { background:var(--card); border:1px solid var(--line); border-radius:25px; box-shadow:0 18px 45px rgba(60,34,70,.08); }
.composer-card { position:sticky; top:20px; display:grid; gap:9px; padding:24px; }
label { margin-top:5px; font-size:12px; font-weight:800; }
select,textarea,input { width:100%; padding:13px 14px; color:var(--ink); background:var(--field); border:1px solid var(--line); border-radius:14px; outline:none; }
select:focus,textarea:focus,input:focus { border-color:var(--purple); box-shadow:0 0 0 3px rgba(236, 28, 91,.08); }
textarea { resize:vertical; }
.composer-meta { display:flex; justify-content:space-between; color:var(--muted); font-size:10px; font-weight:700; }
.primary-button { min-height:46px; padding:0 18px; color:white; background:var(--gradient); border:0; border-radius:14px; font-weight:800; }
.primary-button:disabled { opacity:.55; cursor:wait; }
.status { min-height:18px; margin:0; color:var(--muted); font-size:11px; font-weight:700; }
.status.error { color:#b32636; }
.status.ok { color:#087a5f; }
.rules { display:grid; gap:7px; margin-top:5px; padding:15px; color:var(--muted); background:var(--subtle); border-radius:15px; font-size:10px; }
.rules strong { color:var(--ink); font-size:12px; }
.honeypot { position:absolute; left:-9999px; }
.feed-card { overflow:hidden; }
.feed-heading { display:flex; align-items:center; justify-content:space-between; padding:22px 24px; border-bottom:1px solid var(--line); }
.feed-heading > div { display:grid; grid-template-columns:auto 1fr; align-items:center; column-gap:9px; }
.feed-heading small { grid-column:2; margin-top:3px; color:var(--muted); font-size:10px; }
.live-dot { width:9px; height:9px; background:var(--green); border-radius:50%; box-shadow:0 0 0 5px rgba(0,184,148,.1); }
.icon-button { width:40px; height:40px; border:0; color:var(--purple); background:rgba(236, 28, 91,.08); border-radius:13px; font-size:20px; }
.feed { display:grid; gap:12px; padding:18px; }
.post { display:grid; grid-template-columns:46px 1fr; gap:13px; padding:17px; border:1px solid var(--line); border-radius:19px; }
.post-avatar { width:46px; height:46px; display:grid; place-items:center; color:var(--pink); background:rgba(255,61,139,.1); border-radius:15px; font-weight:900; }
.post.driver .post-avatar { color:var(--green); background:rgba(0,184,148,.1); }
.post-top { display:flex; justify-content:space-between; gap:12px; }
.post h3 { margin:0; font:800 14px "Plus Jakarta Sans"; }
.post p { margin:7px 0 10px; color:var(--muted); font-size:13px; line-height:1.55; }
.post-meta { display:flex; flex-wrap:wrap; gap:8px; align-items:center; color:var(--muted); font-size:10px; font-weight:700; }
.badge { padding:5px 8px; color:var(--purple); background:rgba(236, 28, 91,.08); border-radius:99px; font-size:9px; font-weight:900; text-transform:uppercase; }
.interest-button { margin-left:auto; padding:7px 10px; color:white; background:var(--purple); border:0; border-radius:10px; font-size:10px; font-weight:800; }
.empty { padding:60px 20px; color:var(--muted); text-align:center; font-weight:700; }
.modal-backdrop { position:fixed; z-index:20; inset:0; display:grid; place-items:center; padding:20px; background:rgba(18,9,22,.68); backdrop-filter:blur(8px); }
.modal-backdrop[hidden] { display:none; }
.modal { position:relative; width:min(620px,100%); max-height:calc(100vh - 40px); overflow:auto; padding:28px; }
.modal-close { position:absolute; right:16px; top:16px; width:38px; height:38px; border:0; color:var(--ink); background:var(--field); border-radius:12px; font-size:22px; }
.modal h2 { margin:8px 45px 8px 0; font:800 27px "Plus Jakarta Sans"; }
.modal > p { color:var(--muted); font-size:12px; line-height:1.5; }
.interests-list { display:grid; gap:11px; margin-top:18px; }
.interest { display:grid; grid-template-columns:1fr auto; gap:12px; padding:15px; background:var(--subtle); border:1px solid var(--line); border-radius:17px; }
.interest strong,.interest small { display:block; }
.interest small { margin-top:4px; color:var(--muted); font-size:10px; }
.interest button { align-self:center; padding:9px 12px; color:white; background:var(--purple); border:0; border-radius:11px; font-size:10px; font-weight:800; }
.chat-modal { overflow:hidden; }
.chat-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.chat-heading span { color:var(--muted); font-size:10px; font-weight:800; text-transform:uppercase; }
.chat-heading h2 { margin:3px 0 0; }
.secure-badge { padding:6px 9px; color:#087a5f!important; background:rgba(0,184,148,.1); border-radius:99px; }
.messages { height:min(440px,52vh); overflow:auto; display:flex; flex-direction:column; gap:9px; padding:14px; background:var(--page); border-radius:17px; }
.message { max-width:78%; padding:10px 12px; background:var(--card); border-radius:15px 15px 15px 4px; font-size:12px; line-height:1.45; }
.message.mine { align-self:flex-end; color:white; background:var(--gradient); border-radius:15px 15px 4px 15px; }
.message time { display:block; margin-top:4px; opacity:.65; font-size:8px; }
.chat-form { display:grid; grid-template-columns:1fr auto; gap:9px; margin-top:12px; }
.toast { position:fixed; z-index:40; left:50%; bottom:24px; max-width:calc(100% - 32px); padding:12px 16px; color:white; background:#251c29; border-radius:12px; opacity:0; transform:translate(-50%,12px); transition:.2s; font-size:11px; font-weight:700; pointer-events:none; }
.toast.visible { opacity:1; transform:translate(-50%,0); }
@media (max-width:820px) { .community-hero,.community-layout { grid-template-columns:1fr; } .privacy-note { max-width:none; } .composer-card { position:static; } }
@media (max-width:520px) { .community-shell { width:min(100% - 22px,1180px); padding-top:20px; } .community-hero { padding:25px 21px; gap:24px; border-radius:24px; } .community-layout { gap:14px; } .composer-card { padding:19px; } .feed-heading { padding:18px; } .feed { padding:11px; } .post { grid-template-columns:39px 1fr; padding:14px; } .post-avatar { width:39px; height:39px; } .interest-button { margin-left:0; } .chat-form { grid-template-columns:1fr; } .modal { padding:23px 18px; } }

html[data-theme="dark"] { --ink:#f5f1f7; --muted:#aaa2ae; --line:rgba(255,255,255,.10); --page:#121016; --card:#1d1922; --field:#25202a; --subtle:#211d26; }
html[data-theme="dark"] .community-header { box-shadow:0 10px 30px rgba(0,0,0,.18); }
html[data-theme="dark"] .brand,
html[data-theme="dark"] .back-link { color:#e49cff; }
html[data-theme="dark"] .theme-toggle { color:#ff9ec8; background:rgba(255,61,139,.10); border-color:rgba(255,61,139,.14); }
html[data-theme="dark"] .composer-card,
html[data-theme="dark"] .feed-card,
html[data-theme="dark"] .modal { box-shadow:0 18px 45px rgba(0,0,0,.25); }
html[data-theme="dark"] .eyebrow.dark { color:#e49cff; }
html[data-theme="dark"] .status.error { color:#ff8b98; }
html[data-theme="dark"] .status.ok { color:#63e5bd; }
html[data-theme="dark"] .secure-badge { color:#63e5bd!important; }
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color:#817987; }
