:root { --brand:#c84330; --brand-dark:#a93628; --ink:#1d252d; --muted:#5f6975; --line:#e8ebee; --paper:#fff; --bg:#f7f8fa; --mint:#edf7f4; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }
button,input,textarea { font:inherit; }
button { border:0; cursor:pointer; }
.app-shell { min-height:100vh; padding-bottom:88px; }
.topbar { position:sticky; top:0; z-index:5; display:flex; align-items:center; justify-content:space-between; padding:18px max(20px,calc((100vw - 1080px)/2)); background:rgba(255,255,255,.92); border-bottom:1px solid var(--line); backdrop-filter:blur(16px); }
.brand { color:var(--brand-dark); font-size:22px; font-weight:800; }
.brand-button,.user-button { padding:0; background:none; }
.top-actions { display:flex; gap:10px; align-items:center; }
.user-badge { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:13px; }
.user-button { position:relative; }
.topbar-avatar { display:grid; place-items:center; width:34px; height:34px; overflow:hidden; color:#fff; background:linear-gradient(145deg,#d86b57,#a93628); border:2px solid #fff; border-radius:50%; box-shadow:0 3px 10px #a9362830; font-size:14px; font-weight:800; }
.topbar-avatar img,.chat-avatar img { width:100%; height:100%; object-fit:cover; }
.unread-dot { display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 4px; margin-left:5px; color:#fff; background:var(--brand); border-radius:99px; font-size:10px; font-style:normal; font-weight:800; }
.nav-badge { display:inline-flex; align-items:center; justify-content:center; min-width:17px; height:17px; padding:0 4px; margin-left:4px; color:#fff; background:var(--brand); border-radius:99px; font-size:10px; font-style:normal; vertical-align:middle; }
.page { width:min(1080px,calc(100% - 40px)); margin:0 auto; touch-action:pan-y; }
.hero { display:flex; align-items:center; justify-content:space-between; gap:28px; padding:64px 0 34px; }
.eyebrow { color:var(--brand-dark); font-size:14px; font-weight:700; }
h1 { margin:10px 0 12px; font-size:clamp(34px,5vw,54px); line-height:1.12; letter-spacing:-1px; }
h2 { margin:0; font-size:24px; }
.lead { max-width:520px; color:var(--muted); line-height:1.8; }
.hero-card { min-width:260px; padding:24px; background:linear-gradient(145deg,#fff0eb,#f1faf8); border:1px solid #f0d9d1; border-radius:24px; }
.hero-number { display:block; font-size:42px; font-weight:800; }
.hero-label { color:var(--muted); font-size:14px; }
.toolbar { display:flex; gap:12px; align-items:center; margin:16px 0 24px; }
.activity-sort-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 14px; margin:0 0 18px; color:var(--muted); background:#fff; border:1px solid var(--line); border-radius:14px; font-size:13px; }
.sort-options { display:flex; gap:6px; padding:3px; background:#f4f6f7; border-radius:11px; }
.sort-option { padding:8px 14px; color:var(--muted); background:transparent; border-radius:8px; font-size:13px; }
.sort-option.active { color:var(--brand-dark); background:#fff; box-shadow:0 2px 8px #26313b12; font-weight:700; }
.search { flex:1; padding:13px 16px; background:#fff; border:1px solid var(--line); border-radius:14px; outline:none; }
.search:focus { border-color:#dc8d80; box-shadow:0 0 0 4px #fff0ec; }
.chips { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px; }
.chip,.btn { padding:10px 16px; border-radius:999px; color:var(--muted); background:#fff; border:1px solid var(--line); }
.chip.active { color:#fff; background:var(--brand); border-color:var(--brand); }
.btn-primary { color:#fff; background:var(--brand); border-radius:12px; padding:12px 18px; font-weight:700; box-shadow:0 8px 18px #c8433030; }
.btn-primary:hover { background:var(--brand-dark); }
.btn-primary:disabled { cursor:not-allowed; background:#aeb6bf; box-shadow:none; }
.btn-ghost { background:#fff7f5; color:var(--brand-dark); border:1px solid #e6a094; border-radius:12px; padding:11px 16px; }
.section-head { display:flex; align-items:end; justify-content:space-between; margin:28px 0 16px; }
.section-note { color:var(--muted); font-size:14px; }
.activity-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.card { padding:20px; background:var(--paper); border:1px solid var(--line); border-radius:20px; box-shadow:0 10px 28px #232a5208; }
.card.is-terminated { opacity:.72; }
.card:hover { transform:translateY(-2px); box-shadow:0 14px 32px #232a5212; transition:.2s ease; }
.card-top,.meta-row,.organizer-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.type { color:var(--brand-dark); background:#fff0ec; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700; }
.spots { color:#4d756d; font-size:13px; font-weight:700; }
.spots.urgent { color:var(--brand-dark); }
.card h3 { margin:18px 0 10px; font-size:19px; line-height:1.45; }
.time { color:var(--brand-dark); font-weight:700; }
.meta,.organizer-row { color:var(--muted); font-size:13px; line-height:1.8; }
.progress { height:6px; margin:14px 0; overflow:hidden; background:#edf0f2; border-radius:99px; }
.progress i { display:block; height:100%; background:#4d9f91; border-radius:99px; }
.card-actions { display:flex; gap:8px; margin-top:16px; }
.card-actions button { flex:1; }
.trust { display:flex; align-items:center; gap:12px; padding:16px 18px; margin:14px 0 28px; color:#255b53; background:var(--mint); border:1px solid #d9ebe7; border-radius:16px; font-size:13px; }
.trust b { font-size:16px; }
.empty { padding:70px 20px; text-align:center; color:var(--muted); }
.detail-layout { max-width:760px; margin:38px auto; }
.back { margin:22px 0; color:var(--muted); background:none; }
.detail-panel { padding:24px; margin:16px 0; background:#fff; border:1px solid var(--line); border-radius:20px; }
.profile-grid { display:grid; grid-template-columns:1.3fr .7fr; gap:16px; }
.profile-grid .detail-panel { margin:0; }
.profile-cover { display:flex; align-items:center; gap:18px; padding:42px 0 24px; }
.profile-cover .btn-ghost { margin-left:auto; }
.profile-cover-actions { display:flex; align-items:center; gap:8px; margin-left:auto; }
.profile-avatar { display:grid; place-items:center; width:82px; height:82px; overflow:hidden; color:#fff; background:linear-gradient(145deg,#d86b57,#a93628); border:4px solid #fff; border-radius:50%; box-shadow:0 8px 22px #a9362830; font-size:32px; font-weight:800; }
.profile-avatar.small { width:52px; height:52px; border-width:2px; font-size:20px; box-shadow:none; }
.profile-avatar img { width:100%; height:100%; object-fit:cover; }
.profile-identity h1 { margin:4px 0 6px; font-size:32px; }
.profile-identity p { margin:0; color:var(--muted); font-size:13px; }
.profile-stats { display:grid; grid-template-columns:repeat(4,1fr); padding:16px 0; margin-bottom:16px; background:#fff; border:1px solid var(--line); border-radius:18px; }
.profile-stats button { min-width:0; padding:0 10px; color:var(--ink); background:none; border:0; text-align:center; }
.profile-stats button+button { border-left:1px solid var(--line); }
.profile-stats button:hover { color:var(--brand-dark); }
.profile-stats div { text-align:center; }
.profile-stats div+div { border-left:1px solid var(--line); }
.profile-stats strong,.profile-stats span { display:block; }
.profile-stats strong { font-size:22px; }
.profile-stats span { margin-top:4px; color:var(--muted); font-size:12px; }
.avatar-edit-row { display:flex; align-items:center; gap:10px; margin:12px 0; }
.avatar-edit-row small { flex:1; }
.avatar-edit-row .btn { position:relative; overflow:hidden; }
.creator-mini { display:flex; align-items:center; gap:10px; padding-top:16px; margin-top:14px; border-top:1px solid var(--line); }
.creator-mini .avatar-preview { flex:0 0 auto; width:42px; height:42px; }
.creator-mini > div:nth-child(2) { min-width:0; flex:1; }
.creator-mini strong,.creator-mini small { display:block; }
.creator-mini small { margin-top:3px; overflow:hidden; color:var(--muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.panel-heading { display:flex; align-items:start; justify-content:space-between; gap:16px; margin-bottom:12px; }
.verified-pill,.message-count { color:#35796f; background:#edf7f4; border-radius:99px; padding:6px 10px; font-size:12px; font-weight:700; white-space:nowrap; }
.avatar-row { display:flex; align-items:center; gap:12px; margin:10px 0 8px; }
.avatar-preview { display:grid; place-items:center; width:56px; height:56px; overflow:hidden; color:var(--muted); background:#f2f4f6; border-radius:50%; font-size:11px; }
.avatar-preview img { width:100%; height:100%; object-fit:cover; }
.message-count { color:var(--brand-dark); background:#fff0ec; }
.field.compact { padding:12px 0; }
.field.compact input,.field.compact textarea { padding:6px 0; }
.location-input-row { display:flex; align-items:center; gap:10px; }
.location-input-row input { min-width:0; flex:1; }
.location-input-row .btn { flex:0 0 auto; white-space:nowrap; }
.location-detail { display:block; margin-top:9px; padding:10px 12px; border-radius:10px; color:var(--muted); background:#f4f6f8; font-size:12px; line-height:1.6; word-break:break-word; }
.location-detail.success { color:#216b5f; background:#edf8f4; }
.location-detail.error,.activity-submit-status.error { color:#a93628; background:#fff0ed; }
.activity-submit-status { min-height:20px; margin:10px 0 0; padding:8px 10px; border-radius:9px; }
.activity-submit-status.success { color:#216b5f; background:#edf8f4; }
.profile-note { color:var(--muted); font-size:12px; text-align:center; margin:24px 0; }
.location-panel { margin-top:16px; }
.location-status { padding:6px 10px; border-radius:99px; color:var(--muted); background:#f1f3f5; font-size:12px; font-weight:700; }
.location-status.on { color:#35796f; background:#edf7f4; }
.location-copy { margin:0 0 16px; color:var(--muted); font-size:13px; line-height:1.8; }
.location-actions { display:flex; justify-content:flex-end; }
.nearby-users-heading { display:flex; align-items:center; justify-content:space-between; margin-top:24px; padding-top:18px; border-top:1px solid var(--line); }
.nearby-user-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:12px; }
.nearby-user-card { display:flex; align-items:flex-start; gap:12px; min-width:0; padding:16px; background:#fbfcfd; border:1px solid var(--line); border-radius:16px; }
.nearby-user-info { min-width:0; flex:1; }
.nearby-user-info strong { display:block; font-size:15px; }
.nearby-user-info p { margin:4px 0; color:var(--muted); font-size:12px; }
.nearby-user-info small { display:block; overflow:hidden; color:#3e4853; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.nearby-user-tags { display:flex; gap:6px; margin-top:8px; }
.nearby-user-tags .verified-pill,.nearby-user-tags .location-status { padding:4px 7px; font-size:10px; }
.nearby-user-actions { display:flex; flex:0 0 auto; flex-direction:column; gap:6px; }
.nearby-user-actions button { padding:7px 9px; font-size:11px; white-space:nowrap; }
.friend-state { display:inline-flex; align-items:center; justify-content:center; min-height:30px; padding:6px 9px; color:var(--muted); background:#f1f3f5; border-radius:10px; font-size:11px; font-weight:700; white-space:nowrap; }
.friends-state { color:#35796f; background:#edf7f4; }
.nearby-empty { grid-column:1/-1; }
.sub-title { margin:8px 0 0; font-size:32px; }
.message-list { margin-top:12px; }
.message-item { display:flex; gap:12px; padding:16px 0; border-top:1px solid var(--line); }
.message-item.unread { background:#fffaf8; margin:0 -12px; padding-left:12px; padding-right:12px; border-radius:12px; }
.message-icon { flex:0 0 auto; display:grid; place-items:center; width:42px; height:42px; color:var(--brand-dark); background:#fff0ec; border-radius:12px; font-size:11px; font-weight:800; }
.message-item strong { font-size:15px; }
.message-item p { margin:5px 0; color:#3e4853; font-size:13px; }
.message-item time { color:var(--muted); font-size:12px; }
.message-unread-count { display:inline-flex; align-items:center; gap:5px; min-width:28px; color:var(--brand-dark); font-size:12px; font-weight:800; white-space:nowrap; }
.message-unread-count i { width:7px; height:7px; background:var(--brand); border-radius:50%; box-shadow:0 0 0 3px #fff0ec; }
.chat-list { margin-top:4px; }
.chat-item { display:flex; align-items:center; width:100%; gap:12px; padding:14px 0; color:var(--ink); text-align:left; background:none; border-top:1px solid var(--line); }
.chat-item:hover { background:#fffaf8; }
.chat-avatar { display:grid; place-items:center; flex:0 0 auto; width:44px; height:44px; color:#fff; background:linear-gradient(145deg,#4d9f91,#286b62); border-radius:50%; font-weight:800; }
.chat-avatar.large { width:54px; height:54px; font-size:21px; }
.chat-main { min-width:0; flex:1; }
.chat-main strong,.chat-main p { display:block; }
.chat-main p { margin:4px 0 0; overflow:hidden; color:var(--muted); font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.chat-side { display:flex; align-items:end; flex-direction:column; gap:6px; color:var(--muted); font-size:11px; }
.chat-unread { display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 4px; color:#fff; background:var(--brand); border-radius:99px; font-size:10px; font-style:normal; }
.compact-empty { padding:28px 10px; }
.chat-page { position:relative; max-width:700px; }
.chat-header { display:flex; align-items:center; gap:14px; padding:4px 0 18px; }
.chat-header h1 { margin:0 0 5px; font-size:25px; }
.chat-header p { margin:0; color:var(--muted); font-size:12px; }
.chat-header > .friend-state { margin-left:auto; }
.chat-window { min-height:380px; max-height:56vh; overflow-y:auto; padding:20px 14px; background:#f3f5f6; border:1px solid var(--line); border-radius:18px; }
.bubble-row { display:flex; margin:10px 0; }
.bubble-row.mine { justify-content:flex-end; }
.bubble { max-width:min(78%,460px); padding:10px 13px; color:var(--ink); background:#fff; border-radius:14px 14px 14px 4px; box-shadow:0 3px 10px #26313b0b; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; }
.bubble-row.mine .bubble { color:#fff; background:var(--brand); border-radius:14px 14px 4px 14px; }
.bubble time { display:block; margin-top:4px; color:var(--muted); font-size:10px; }
.bubble-row.mine .bubble time { color:#ffe9e4; }
.chat-composer { display:flex; flex-wrap:wrap; gap:10px; padding-top:12px; position:relative; }
.emoji-toggle { flex:0 0 auto; width:44px; color:#9a6a25; background:#fff6df; border-radius:12px; font-size:23px; }
.emoji-panel { position:relative; order:3; flex:0 0 100%; display:grid; grid-template-columns:repeat(8,1fr); width:100%; gap:5px; padding:10px; margin:0; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:0 8px 22px #26313b14; }
.emoji-panel button { padding:6px; background:none; border-radius:8px; font-size:20px; }
.emoji-panel button:hover { background:#fff0ec; }
.chat-composer { align-items:center; min-height:60px; }
.chat-composer input { min-width:0; flex:1; padding:13px 14px; border:1px solid var(--line); border-radius:12px; outline:0; background:#fff; }
.chat-composer > .btn-primary { flex:0 0 auto; min-width:64px; white-space:nowrap; }
.chat-composer input:focus { border-color:#dc8d80; box-shadow:0 0 0 4px #fff0ec; }
.chat-friend-gate { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 16px; margin-top:12px; color:var(--muted); background:#fffaf8; border:1px solid #f1d7d2; border-radius:14px; font-size:13px; }
.public-profile-page,.settings-page { max-width:760px; margin:34px auto 70px; }
.public-profile-card { padding:30px; }
.public-profile-head { display:flex; align-items:center; gap:18px; }
.profile-badges { display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.friend-pill { padding:6px 10px; color:#35796f; background:#edf7f4; border-radius:99px; font-size:12px; font-weight:700; }
.public-profile-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:20px; }
.friends-page { max-width:820px; }
.friend-search-panel { padding:22px 24px; border-color:#dce8e5; }
.friend-search-form { display:flex; align-items:center; gap:10px; }
.friend-search-form input { min-width:0; flex:1; height:46px; padding:0 14px; color:var(--ink); background:#fbfcfd; border:1px solid var(--line); border-radius:12px; outline:0; }
.friend-search-form input:focus { background:#fff; border-color:#6ea99f; box-shadow:0 0 0 4px #edf7f4; }
.friend-search-form .btn-primary { flex:0 0 auto; min-width:86px; height:46px; }
.friend-search-feedback:empty { display:none; }
.friend-search-empty { padding:18px 4px 2px; color:var(--muted); font-size:13px; text-align:center; }
.friend-search-result { display:flex; align-items:center; gap:14px; padding:16px; margin-top:14px; background:#f8faf9; border:1px solid #dfe9e6; border-radius:14px; }
.friend-search-result .friend-card-main { min-width:0; }
.friend-search-result .friend-card-main small { overflow:hidden; color:#59646e; text-overflow:ellipsis; white-space:nowrap; }
.friend-center-entry { align-items:center; min-height:76px; padding:16px 12px; cursor:pointer; border-top:0; border-bottom:1px solid var(--line); }
.friend-center-entry:hover { background:#f7fbfa; }
.friend-center-entry > div:nth-child(2) { min-width:0; flex:1; }
.friend-center-entry p { margin-bottom:0; }
.friend-tabs { display:flex; gap:6px; padding:5px; margin:18px 0 12px; background:#f1f3f5; border-radius:12px; }
.friend-tab { position:relative; flex:1; padding:10px 12px; color:var(--muted); background:transparent; border-radius:9px; font-size:13px; font-weight:700; }
.friend-tab.active { color:var(--ink); background:#fff; box-shadow:0 3px 10px #26313b12; }
.friend-tab span { margin-left:4px; color:var(--muted); font-size:11px; }
.friend-tab i { display:inline-grid; place-items:center; min-width:18px; height:18px; margin-left:4px; padding:0 4px; color:#fff; background:var(--brand); border-radius:99px; font-size:10px; font-style:normal; }
.friend-list { padding:4px 20px; }
.friend-card { display:flex; align-items:center; gap:14px; padding:16px 0; border-bottom:1px solid var(--line); }
.friend-card:last-child { border-bottom:0; }
.friend-card-main { display:flex; align-items:center; min-width:0; flex:1; gap:12px; padding:0; color:var(--ink); text-align:left; background:none; }
.friend-card-main > div:last-child { min-width:0; }
.friend-card-main strong,.friend-card-main p,.friend-card-main small { display:block; }
.friend-card-main p { margin:4px 0; overflow:hidden; color:var(--muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.friend-card-main small { color:#a65a4d; font-size:11px; }
.friend-card-actions { display:flex; flex:0 0 auto; gap:7px; }
.friend-card-actions button { padding:8px 11px; font-size:12px; white-space:nowrap; }
.friend-icon { color:#35796f; background:#edf7f4; }
.friend-request-message { cursor:pointer; }
.profile-photos-panel { margin-top:16px; }
.photo-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:16px; }
.photo-tile { position:relative; aspect-ratio:1; overflow:hidden; background:#f1f3f5; border-radius:14px; }
.photo-tile img { width:100%; height:100%; object-fit:cover; }
.photo-tile button { position:absolute; top:6px; right:6px; display:grid; place-items:center; width:25px; height:25px; color:#fff; background:#18232ecc; border-radius:50%; font-size:18px; line-height:1; }
.photo-empty { grid-column:1/-1; padding:24px; color:var(--muted); background:#f7f8fa; border-radius:12px; text-align:center; font-size:13px; }
.public-photos-title { margin-top:26px; font-size:18px; }
.settings-title { align-items:start; margin-top:12px; }
.settings-account { display:flex; align-items:center; gap:16px; }
.settings-account > div:nth-child(2) { flex:1; }
.settings-account strong { font-size:18px; }
.settings-account p { margin:5px 0 0; color:var(--muted); font-size:13px; }
.settings-avatar { flex:0 0 auto; width:58px; height:58px; font-size:22px; }
.settings-list { padding:4px 20px; }
.settings-row { display:flex; align-items:center; width:100%; gap:12px; padding:18px 0; color:var(--ink); text-align:left; background:none; border-bottom:1px solid var(--line); }
.settings-row:last-child { border-bottom:0; }
.settings-row > span:nth-child(2) { min-width:0; flex:1; }
.settings-row strong,.settings-row small { display:block; }
.settings-row small { margin-top:4px; color:var(--muted); font-size:12px; }
.settings-row b { color:var(--muted); font-size:22px; font-weight:400; }
.settings-icon { display:grid; place-items:center; width:34px; height:34px; color:var(--brand-dark); background:#fff0ec; border-radius:10px; font-size:12px; font-weight:800; }
.verification-state { padding:6px 9px; color:var(--muted); background:#f1f3f5; border-radius:99px; font-size:12px; font-style:normal; font-weight:700; white-space:nowrap; }
.verification-state.approved { color:#35796f; background:#edf7f4; }
.verification-state.pending { color:#9a6a25; background:#fff6df; }
.settings-help { margin-top:16px; }
.settings-logout { padding:24px 0 80px; text-align:center; }
.settings-logout .btn-ghost { min-width:180px; color:#a93628; }
.settings-divider { height:1px; margin:22px 0; background:var(--line); }
.settings-form h3 { margin:0 0 4px; }
.modal-backdrop { position:fixed; inset:0; z-index:30; display:grid; place-items:center; padding:20px; background:#18232e66; }
.modal-card { width:min(520px,100%); max-height:90vh; overflow:auto; padding:24px; background:#fff; border-radius:20px; box-shadow:0 24px 80px #18232e40; }
.modal-close { padding:2px 8px; color:var(--muted); background:none; font-size:28px; line-height:1; }
.settings-form .field { padding:10px 0; }
.settings-form .field input { padding:11px 12px; border:1px solid var(--line); border-radius:10px; background:#fbfcfd; }
.settings-profile-form { margin-top:16px; }
.verification-result { padding:20px 0 8px; text-align:center; }
.verification-mark { display:grid; place-items:center; width:56px; height:56px; margin:0 auto 12px; color:#fff; background:#4d9f91; border-radius:50%; font-size:28px; }
.verification-result h3 { margin:0; }
.privacy-copy { color:#3e4853; line-height:1.9; }
.privacy-toggle-row { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:12px 0 16px; border-bottom:1px solid var(--line); }
.privacy-toggle-row strong { color:var(--ink); font-size:16px; }
.privacy-toggle-row p { margin:4px 0 0; color:var(--muted); font-size:12px; line-height:1.6; }
.switch { position:relative; flex:0 0 auto; width:50px; height:30px; padding:3px; background:#c8d0d5; border:0; border-radius:99px; transition:.2s ease; }
.switch i { display:block; width:24px; height:24px; background:#fff; border-radius:50%; box-shadow:0 2px 6px #26313b26; transition:.2s ease; }
.switch.on { background:var(--brand); }
.switch.on i { transform:translateX(20px); }
.code-field { position:relative; padding-right:120px; }
.code-field .btn { position:absolute; right:0; bottom:10px; }
.admin-shell { width:min(1080px,calc(100% - 40px)); margin:0 auto; padding:42px 0 80px; }
.admin-header { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.admin-toolbar { display:flex; gap:12px; margin:24px 0; }
.admin-toolbar .search { border:1px solid var(--line); padding:12px 16px; }
.admin-list { margin-top:16px; }
.admin-item { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 0; border-top:1px solid var(--line); }
.admin-item p { margin:6px 0; color:#3e4853; font-size:13px; }
.admin-item small { color:var(--muted); }
.admin-actions { display:flex; gap:8px; flex:0 0 auto; }
.admin-metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:22px 0; }
.admin-tab[data-panel="overview"] .detail-panel { border-radius:18px; }
.admin-metric { padding:20px; background:#fff; border:1px solid var(--line); border-radius:16px; }
.admin-metric:nth-child(4n+1) { border-top:3px solid var(--brand); }
.admin-metric:nth-child(4n+2) { border-top:3px solid #4d9f91; }
.admin-metric:nth-child(4n+3) { border-top:3px solid #d7aa68; }
.admin-metric:nth-child(4n) { border-top:3px solid #718096; }
.admin-metric strong,.admin-metric span { display:block; }
.admin-metric strong { font-size:28px; }
.admin-metric span { margin-top:6px; color:var(--muted); font-size:13px; }
.admin-filter { display:flex; gap:8px; }
.admin-filter input,.admin-filter select,.admin-search { padding:10px 12px; border:1px solid var(--line); border-radius:10px; outline:0; background:#fbfcfd; }
.admin-search { width:280px; }
.admin-user-summary { display:flex; align-items:center; gap:12px; min-width:0; }
.admin-user-summary > div:last-child { min-width:0; }
.admin-user-summary .chat-avatar { overflow:hidden; }
.admin-detail-heading { display:flex; align-items:center; gap:12px; }
.admin-detail-avatar { display:grid; place-items:center; width:58px; height:58px; overflow:hidden; color:#fff; background:linear-gradient(145deg,#d86b57,#a93628); border-radius:50%; font-size:22px; font-weight:800; object-fit:cover; }
.admin-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; color:#3e4853; line-height:1.8; }
.admin-detail-grid p { margin:6px 0; }
.admin-photo-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.admin-photo-grid img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:10px; }
@media(max-width:760px){ .admin-shell{width:calc(100% - 28px)} .admin-toolbar{display:flex; flex-wrap:wrap}.admin-toolbar .search{width:100%;margin-bottom:10px}.admin-item{display:block}.admin-actions{margin-top:12px}.admin-metrics{grid-template-columns:repeat(2,1fr)}.admin-filter{display:block}.admin-filter input,.admin-filter select{width:100%;margin-top:6px}.admin-search{width:100%}.admin-detail-grid{grid-template-columns:1fr} }
.detail-title { display:flex; align-items:start; justify-content:space-between; gap:16px; }
.detail-title h1 { margin:12px 0 18px; font-size:32px; }
.activity-detail-page { max-width:820px; }
.activity-detail-hero { padding:28px; margin:0 0 16px; background:linear-gradient(145deg,#fff8f5,#fff); border:1px solid #f0ded8; border-radius:24px; box-shadow:0 12px 30px #232a5208; }
.detail-kicker,.detail-status,.detail-subtitle,.activity-detail-tags,.organizer-tags { display:flex; align-items:center; gap:8px; }
.detail-kicker { justify-content:space-between; }
.detail-status,.terminated-pill { padding:6px 10px; color:#35796f; background:#edf7f4; border-radius:99px; font-size:12px; font-weight:700; }
.terminated-pill { color:#8e463c; background:#fff0ec; }
.activity-detail-hero .detail-title { align-items:end; margin-top:8px; }
.activity-detail-hero .detail-title h1 { margin:16px 0 6px; font-size:clamp(30px,5vw,44px); letter-spacing:-.6px; }
.detail-subtitle { margin:0; color:var(--muted); font-size:13px; }
.activity-detail-tags { flex-wrap:wrap; margin-top:20px; }
.detail-section-title { display:flex; align-items:center; gap:9px; margin:0 0 18px; font-size:20px; }
.detail-section-title::before { width:4px; height:19px; content:""; background:var(--brand); border-radius:99px; }
.activity-detail-info-panel,.activity-detail-location,.activity-detail-organizer,.activity-detail-description { padding:24px 26px; }
.stats { display:grid; grid-template-columns:repeat(3,1fr); padding:18px 0; text-align:center; }
.stats div+div { border-left:1px solid var(--line); }
.stats strong,.stats span { display:block; }
.stats strong { font-size:20px; }
.stats span { color:var(--muted); margin-top:6px; font-size:12px; }
.detail-line { padding:8px 0; color:#3e4853; line-height:1.7; }
.detail-location { display:flex; align-items:center; justify-content:space-between; width:100%; color:#216b5f; background:none; border:0; border-bottom:1px solid var(--line); cursor:pointer; font:inherit; text-align:left; }
.detail-location span { color:var(--brand-dark); font-size:12px; font-weight:700; white-space:nowrap; }
.detail-location-button { display:flex; align-items:center; justify-content:space-between; width:100%; padding:15px 16px; color:var(--ink); background:#f8faf9; border:1px solid #dfebe7; border-radius:14px; text-align:left; }
.detail-location-button span,.detail-location-button b,.detail-location-button small { display:block; }
.detail-location-button b { font-size:16px; }
.detail-location-button small { margin-top:6px; color:var(--muted); font-size:12px; }
.detail-location-button em { color:var(--brand-dark); font-size:12px; font-style:normal; font-weight:700; white-space:nowrap; }
.activity-detail-info { display:grid; grid-template-columns:repeat(2,1fr); gap:1px; overflow:hidden; background:var(--line); border:1px solid var(--line); border-radius:14px; }
.activity-detail-info-item { min-height:82px; padding:16px; background:#fff; }
.activity-detail-info-item span,.activity-detail-info-item strong { display:block; }
.activity-detail-info-item span { margin-bottom:8px; color:var(--muted); font-size:12px; }
.activity-detail-info-item strong { color:var(--ink); font-size:16px; }
.organizer-tags { flex-wrap:wrap; padding-left:52px; margin-top:14px; }
.activity-detail-actions { display:flex; gap:12px; margin:20px 0 34px; }
.activity-detail-actions .btn-primary { flex:1; }
.activity-detail-actions .btn { min-width:110px; }
.detail-desc { color:#3e4853; line-height:1.9; white-space:pre-wrap; }
.detail-actions { display:flex; justify-content:center; gap:10px; margin-top:18px; }
.toast { position:fixed; left:50%; bottom:92px; z-index:20; max-width:calc(100% - 40px); padding:11px 16px; color:#fff; background:#26313b; border-radius:10px; opacity:0; transform:translate(-50%,8px); pointer-events:none; transition:.2s ease; }
.toast.show { opacity:1; transform:translate(-50%,0); }
.toast.error { background:#a93628; }
.form { max-width:680px; margin:38px auto; }
.field { padding:16px 0; border-bottom:1px solid var(--line); }
.field label { display:block; margin-bottom:8px; font-size:13px; font-weight:700; }
.field input,.field textarea,.field select { width:100%; padding:12px 0; color:var(--ink); border:0; outline:0; background:transparent; }
.field textarea { min-height:100px; resize:vertical; }
.form-note { color:var(--muted); line-height:1.7; font-size:13px; }
.auth-page { display:grid; grid-template-columns:minmax(420px,560px) 1fr; align-items:stretch; gap:0; min-height:calc(100vh - 160px); max-width:980px; margin:48px auto; background:#fff; border:1px solid var(--line); border-radius:28px; overflow:hidden; box-shadow:0 24px 70px #26313b12; }
.auth-card { padding:44px 54px 34px; }
.auth-brand { display:flex; align-items:center; gap:10px; color:var(--brand-dark); }
.auth-brand strong,.auth-brand span { display:block; }
.auth-brand strong { font-size:20px; }
.auth-brand span:not(.brand-mark) { margin-top:3px; color:var(--muted); font-size:11px; }
.brand-mark { display:grid; place-items:center; width:38px; height:38px; color:#fff; background:var(--brand); border-radius:12px; font-size:18px; font-weight:800; }
.auth-tabs { display:flex; gap:24px; margin:42px 0 24px; border-bottom:1px solid var(--line); }
.auth-tab { position:relative; padding:0 0 13px; color:var(--muted); background:none; font-size:16px; font-weight:700; }
.auth-tab.active { color:var(--brand-dark); }
.auth-tab.active:after { position:absolute; right:0; bottom:-1px; left:0; height:3px; content:""; background:var(--brand); border-radius:3px; }
.auth-copy h1 { margin:10px 0 8px; font-size:32px; letter-spacing:-.5px; }
.auth-copy p { margin:0 0 26px; color:var(--muted); font-size:13px; line-height:1.8; }
.auth-field { margin:18px 0; }
.auth-field label { display:block; margin-bottom:8px; color:var(--ink); font-size:13px; font-weight:700; }
.input-shell { display:flex; align-items:center; height:48px; border:1px solid var(--line); border-radius:12px; background:#fbfcfd; transition:.2s ease; }
.input-shell:focus-within { border-color:#dc8d80; box-shadow:0 0 0 4px #fff0ec; background:#fff; }
.input-shell input { min-width:0; flex:1; height:100%; padding:0 14px; color:var(--ink); border:0; outline:0; background:transparent; }
.password-toggle { padding:8px 12px; margin-right:6px; color:var(--brand-dark); background:#fff0ec; border-radius:8px; font-size:12px; font-weight:700; }
.input-prefix { padding:0 14px; color:var(--muted); border-right:1px solid var(--line); font-size:13px; }
.auth-field small { display:block; margin-top:7px; color:var(--muted); font-size:11px; }
.auth-field small.invalid { color:var(--brand-dark); }
.code-shell input { padding-right:8px; }
.code-button { align-self:center; padding:8px 12px; margin-right:6px; color:var(--brand-dark); background:#fff0ec; border-radius:8px; font-size:12px; font-weight:700; white-space:nowrap; }
.code-button:disabled { color:#aeb6bf; background:#f1f3f5; cursor:not-allowed; }
.agreement { display:flex; align-items:flex-start; gap:8px; margin:22px 0; color:var(--muted); font-size:12px; line-height:1.6; }
.agreement input { accent-color:var(--brand); margin-top:3px; }
.agreement a { color:var(--brand-dark); text-decoration:none; }
.auth-submit { width:100%; }
.auth-back { display:block; padding:14px 0 0; margin:0 auto; color:var(--muted); background:none; font-size:12px; }
.auth-safe { display:flex; justify-content:center; gap:6px; margin-top:28px; color:#4d756d; font-size:11px; }
.auth-safe span { color:#fff; background:#4d9f91; border-radius:50%; }
.auth-aside { display:flex; flex-direction:column; justify-content:center; padding:48px; color:#fff; background:linear-gradient(145deg,#b43b2c,#d86b57); }
.auth-aside .eyebrow { color:#ffe5df; }
.auth-aside h2 { margin:15px 0; color:#fff; font-size:30px; line-height:1.45; }
.auth-aside p { max-width:300px; color:#ffece8; font-size:13px; line-height:1.9; }
.auth-points { display:grid; grid-template-columns:34px 1fr; gap:16px 10px; margin-top:28px; }
.auth-points > span { color:#ffd1c8; font-size:12px; font-weight:800; }
.auth-points strong,.auth-points small { display:block; }
.auth-points strong { font-size:14px; }
.auth-points small { margin-top:4px; color:#ffece8; font-size:11px; }
.bottom-nav { position:fixed; right:0; bottom:0; left:0; z-index:5; display:flex; justify-content:center; gap:clamp(30px,10vw,100px); padding:12px 20px calc(12px + env(safe-area-inset-bottom)); background:rgba(255,255,255,.94); border-top:1px solid var(--line); backdrop-filter:blur(16px); }
.nav-item { min-width:64px; color:#4b5662; background:none; font-size:15px; font-weight:700; letter-spacing:.03em; }
.nav-item.active { color:var(--brand-dark); font-weight:900; }
.nav-message { position:relative; }
.unified-message-panel { padding:8px 20px; }
.unified-chat-item { position:relative; cursor:pointer; }
.message-arrow { margin-left:auto; color:var(--muted); font-size:24px; }
.bottom-nav { min-height:68px; }
@media(max-width:760px){ .page{width:calc(100% - 28px)} .topbar{padding:15px 14px}.hero{display:block;padding:38px 0 24px}.hero-card{margin-top:22px}.activity-grid{grid-template-columns:1fr}.toolbar{display:block}.search{width:100%;margin-bottom:10px}.activity-sort-bar{align-items:flex-start; flex-direction:column; gap:8px}.sort-options{width:100%}.sort-option{flex:1}.detail-title{display:block}.activity-detail-hero{padding:22px 18px}.activity-detail-hero .detail-title h1{font-size:30px}.activity-detail-info-panel,.activity-detail-location,.activity-detail-organizer,.activity-detail-description{padding:20px 18px}.activity-detail-info-item{min-height:74px;padding:13px}.activity-detail-info-item strong{font-size:14px}.detail-location-button{align-items:flex-start; flex-direction:column; gap:12px}.activity-detail-actions{position:sticky; bottom:70px; z-index:3; padding:10px; margin:16px -2px 22px; background:#fffffff2; border:1px solid var(--line); border-radius:16px; box-shadow:0 6px 20px #232a5215}.profile-grid{grid-template-columns:1fr}.profile-grid .detail-panel{margin:0 0 16px}.profile-cover{align-items:flex-start; flex-wrap:wrap}.profile-cover-actions{width:100%; margin-left:0}.profile-cover-actions button{flex:1}.settings-account{align-items:flex-start; flex-wrap:wrap}.settings-account > button{width:100%}.settings-row{gap:9px}.modal-card{padding:20px}.auth-page{display:block;min-height:auto;margin:22px auto 35px;border-radius:22px}.auth-card{padding:32px 24px 26px}.auth-aside{display:none}.auth-tabs{margin-top:32px} }
@media(max-width:760px){ .emoji-panel{grid-template-columns:repeat(5,1fr)} .photo-grid{gap:7px} }
@media(max-width:760px){ .bottom-nav{gap:0; justify-content:space-around; padding-right:8px; padding-left:8px}.nav-item{min-width:0; flex:1; font-size:15px}.nav-badge{font-size:11px} }
@media(max-width:760px){ .profile-stats{grid-template-columns:repeat(2,1fr); gap:16px 0}.profile-stats button:nth-child(3){border-left:0}.profile-stats button:nth-child(n+3){padding-top:16px; border-top:1px solid var(--line)}.nearby-user-grid{grid-template-columns:1fr}.nearby-user-card{padding:13px}.nearby-user-actions{flex-direction:row; align-self:center} }
@media(max-width:760px){ .friend-search-panel{padding:20px 16px}.friend-search-form{align-items:stretch; flex-direction:column}.friend-search-form .btn-primary{width:100%}.friend-search-result{align-items:flex-start; flex-direction:column; padding:14px}.friend-search-result .friend-card-main{width:100%}.friend-search-result .friend-card-actions{width:100%; justify-content:flex-end}.friend-tabs{overflow-x:auto}.friend-tab{min-width:100px}.friend-card{align-items:flex-start; flex-direction:column}.friend-card-main{width:100%}.friend-card-actions{width:100%; justify-content:flex-end}.public-profile-actions>*{flex:1; min-width:120px}.message-item>div:nth-child(2){min-width:0; flex:1} }
