.chat-history-state,.chat-welcome{margin:auto;padding:28px;text-align:center;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:8px}.chat-history-state svg,.chat-welcome svg{width:26px;color:var(--primary-2)}.chat-welcome strong{color:var(--text);font-size:15px}.chat-welcome span{max-width:320px;font-size:11px}.typing-bubble{display:flex;gap:5px;align-items:center;min-width:58px}.typing-bubble i{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.35;animation:virtuTyping 1.1s infinite}.typing-bubble i:nth-child(2){animation-delay:.15s}.typing-bubble i:nth-child(3){animation-delay:.3s}@keyframes virtuTyping{0%,60%,100%{transform:translateY(0);opacity:.3}30%{transform:translateY(-4px);opacity:.9}}.chat-error{align-self:center;margin:10px;padding:9px 13px;border-radius:12px;background:rgba(200,61,79,.12);color:#c83d4f;font-size:11px}.send-btn:disabled,.chat-input:disabled{opacity:.55;cursor:not-allowed}:root {
  --font: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #100b12;
  --surface: rgba(28, 19, 30, .88);
  --surface-2: rgba(48, 30, 49, .78);
  --surface-soft: rgba(38, 24, 40, .68);
  --text: #f8f9fb;
  --muted: #9ca3af;
  --subtle: #6f7683;
  --border: rgba(255, 255, 255, .11);
  --scrollbar-thumb: rgba(248, 249, 251, .16);
  --scrollbar-thumb-hover: rgba(248, 249, 251, .28);
  --scrollbar-track: rgba(255, 255, 255, .025);
  --primary: #d9688d;
  --primary-2: #e89ab2;
  --accent: #f1ad8d;
  --accent-soft: rgba(241, 173, 141, .18);
  --romance-glow: rgba(217, 104, 141, .18);
  --success: #31c48d;
  --danger: #ff4d67;
  --shadow: 0 18px 60px rgba(28, 8, 20, .34);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --rail: 92px;
  --bottom: 72px;
}

html[data-theme="light"] {
  --bg: #fff9fb;
  --surface: rgba(255,255,255,.88);
  --surface-2: rgba(255,239,244,.84);
  --surface-soft: rgba(255,255,255,.72);
  --text: #2c2028;
  --muted: #76656f;
  --subtle: #a08d97;
  --border: rgba(97, 54, 75, .10);
  --scrollbar-thumb: rgba(18, 19, 26, .14);
  --scrollbar-thumb-hover: rgba(18, 19, 26, .24);
  --scrollbar-track: rgba(18, 19, 26, .025);
  --accent-soft: rgba(241, 173, 141, .14);
  --romance-glow: rgba(217, 104, 141, .12);
  --shadow: 0 18px 50px rgba(116, 61, 87, .12);
}

* { box-sizing: border-box; }
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: var(--scrollbar-track); }
*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); }
body { overflow-x: hidden; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 72%, transparent); outline-offset: 2px; }
button { border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }

.app-shell { min-height: 100dvh; background: var(--bg); }
.main-content { min-height: 100dvh; margin-left: var(--rail); }
.desktop-rail { position: fixed; inset: 0 auto 0 0; z-index: 60; width: var(--rail); padding: 22px 12px; border-right: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(18px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.brand-mark { width: 50px; height: 50px; border-radius: 17px; background: linear-gradient(135deg, var(--accent), var(--primary) 72%); color: #fff; font-size: 25px; font-weight: 800; box-shadow: 0 10px 30px rgba(116,87,245,.28); }
.rail-nav { display: flex; flex: 1; flex-direction: column; gap: 8px; justify-content: center; width: 100%; }
.rail-item { position: relative; width: 100%; min-height: 60px; border-radius: 18px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); }
.rail-item svg { width: 23px; height: 23px; stroke-width: 2.1; }
.rail-item span { font-size: 10px; font-weight: 600; }
.rail-item:hover, .rail-item.active { color: var(--text); background: var(--surface-2); }

.nav-dot { position: absolute; top: 8px; right: 13px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 10px; line-height: 19px; text-align: center; }
.theme-toggle { flex: none; }
.mini-avatar { width: 43px; height: 43px; padding: 2px; border-radius: 50%; background: linear-gradient(135deg,var(--accent),var(--primary)); }
.mini-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); }
.bottom-nav { display: none; }

.feed-page { min-height: 100dvh; background: #050609; }
.feed-back { position:fixed; z-index:46; top:18px; left:calc(var(--rail) + 20px); width:43px; height:43px; border-radius:50%; background:rgba(0,0,0,.4); color:#fff; display:grid; place-items:center; backdrop-filter:blur(12px); border:1px solid rgba(255,255,255,.16); }
.feed-stack { height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior-y: contain; scrollbar-width: none; }
.feed-stack::-webkit-scrollbar { display: none; }
.video-card { position: relative; height: 100dvh; min-height: 620px; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #0b0d12; color: #fff; }
.video-card video, .video-card .photo-post { width:100%; height:100%; object-fit:cover; }
.photo-post { background-size:cover; background-position:center; transform:scale(1.01); }
.video-card::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.12) 35%,rgba(0,0,0,.82) 100%); pointer-events:none; }
.post-progress { position:absolute; z-index:5; top:0; left:0; height:3px; width:0; background:rgba(255,255,255,.88); }
.post-content { position:absolute; z-index:10; left:26px; right:108px; bottom:40px; }
.creator-line { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.creator-line strong { font-size:16px; }
.verified { width:17px; height:17px; color:var(--accent); fill:var(--accent); stroke:#1b1404; }
.follow-pill { margin-left:4px; padding:7px 13px; border-radius:99px; background:transparent; color:#fff; border:1px solid rgba(255,255,255,.7); font-size:12px; font-weight:600; }
.follow-pill.following { border-color:rgba(255,255,255,.28); background:rgba(0,0,0,.22); color:rgba(255,255,255,.72); }
.caption { margin:0 0 10px; font-size:14px; line-height:1.55; max-width:680px; }
.caption a { color:#fff; font-weight:600; text-decoration:none; }
.sound-line { display:flex; gap:8px; align-items:center; font-size:12px; opacity:.9; }
.sound-line svg { width:15px; }
.post-actions { position:absolute; z-index:11; right:22px; bottom:35px; display:flex; flex-direction:column; align-items:center; gap:17px; }
.post-avatar { position:relative; margin-bottom:5px; }
.post-avatar img { width:52px; height:52px; object-fit:cover; border-radius:50%; border:2px solid #fff; }
.avatar-plus { position:absolute; left:50%; bottom:-8px; transform:translateX(-50%); width:22px; height:22px; border-radius:50%; background:var(--primary); color:#fff; display:grid; place-items:center; }
.avatar-plus svg { width:14px; }
.action-btn { background:transparent; color:#fff; display:flex; flex-direction:column; align-items:center; gap:3px; text-shadow:0 2px 12px rgba(0,0,0,.5); }
.action-disc { width:48px; height:48px; border-radius:50%; background:rgba(17,18,23,.45); backdrop-filter:blur(9px); display:grid; place-items:center; }
.action-disc svg { width:27px; height:27px; fill:rgba(255,255,255,.08); }
.action-btn span { font-size:11px; font-weight:600; }
.action-btn.liked .action-disc { background:rgba(255,45,85,.18); }
.action-btn.liked svg { color:var(--primary); fill:var(--primary); }
.disc-cover { width:48px; height:48px; border-radius:50%; padding:8px; background:repeating-radial-gradient(circle,#121212 0 3px,#292929 4px 6px); animation:spin 5s linear infinite; }
.disc-cover img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
@keyframes spin { to { transform:rotate(360deg); } }

.page-shell { min-height:100dvh; padding:28px clamp(22px,4vw,64px) 60px; background:var(--bg); }
.page-header { max-width:1120px; margin:0 auto 28px; display:flex; justify-content:space-between; align-items:center; gap:18px; }
.page-title h1 { margin:0; font-size:clamp(27px,4vw,42px); letter-spacing:-1.3px; }
.page-title p { margin:4px 0 0; color:var(--muted); }
.round-btn { width:45px; height:45px; border-radius:50%; background:var(--surface); border:1px solid var(--border); color:var(--text); display:grid; place-items:center; }
.search-box { display:flex; align-items:center; gap:11px; max-width:1120px; margin:0 auto 25px; padding:13px 17px; border-radius:16px; background:var(--surface); border:1px solid var(--border); }
.search-box input { width:100%; border:0; outline:0; background:transparent; color:var(--text); }
.search-box svg { color:var(--muted); }
.story-row { max-width:1120px; margin:0 auto 30px; display:flex; gap:16px; overflow-x:auto; padding:2px 2px 12px; scrollbar-width:none; }
.story { min-width:78px; background:transparent; text-align:center; color:var(--text); }
.story-ring { width:68px; height:68px; margin:auto; padding:3px; border-radius:50%; background:linear-gradient(135deg,var(--accent),var(--primary)); }
.story-ring img { width:100%; height:100%; border-radius:50%; object-fit:cover; border:3px solid var(--bg); }
.story span { display:block; margin-top:7px; font-size:11px; overflow:hidden; text-overflow:ellipsis; }
.trend-grid { max-width:1120px; margin:0 auto; display:grid; grid-template-columns:repeat(3,1fr); gap:15px; }
.trend-card { position:relative; aspect-ratio:3/4; overflow:hidden; border-radius:20px; background:var(--surface); }
.trend-card img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.trend-card:hover img { transform:scale(1.04); }
.trend-overlay { position:absolute; inset:auto 0 0; padding:35px 14px 14px; color:#fff; background:linear-gradient(transparent,rgba(0,0,0,.84)); }
.trend-overlay strong { display:block; font-size:14px; }
.trend-overlay span { font-size:11px; opacity:.82; display:flex; gap:5px; align-items:center; }


.shop-page { padding-bottom:90px; }
.shop-categories { max-width:1120px; margin:0 auto 24px; display:flex; gap:10px; overflow-x:auto; scrollbar-width:none; }
.shop-category { min-width:max-content; display:flex; align-items:center; gap:8px; padding:11px 15px; border-radius:999px; background:var(--surface); border:1px solid var(--border); color:var(--muted); }
.shop-category svg { width:18px; }
.shop-category.active { background:var(--text); color:var(--bg); }
.shop-banner { max-width:1120px; min-height:330px; margin:0 auto 34px; padding:42px; display:grid; grid-template-columns:1.05fr .95fr; gap:34px; align-items:center; border-radius:30px; background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 18%,var(--surface)),var(--surface)); border:1px solid var(--border); overflow:hidden; }
.shop-banner > div > span { color:var(--primary-2); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.12em; }
.shop-banner h2 { margin:10px 0 12px; font-size:clamp(28px,4vw,48px); line-height:1.08; letter-spacing:-1.5px; }
.shop-banner p { color:var(--muted); line-height:1.7; font-size:14px; max-width:560px; }
.shop-banner img { width:100%; height:260px; object-fit:cover; border-radius:24px; }
.shop-section-head { max-width:1120px; margin:0 auto 18px; display:flex; align-items:end; justify-content:space-between; gap:20px; }
.shop-section-head h2 { margin:0; font-size:25px; }
.shop-section-head p { margin:4px 0 0; color:var(--muted); font-size:13px; }
.shop-section-head button { background:transparent; color:var(--text); display:flex; align-items:center; gap:5px; }
.product-grid { max-width:1120px; margin:0 auto; display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.product-card { overflow:hidden; border:1px solid var(--border); border-radius:22px; background:var(--surface); }
.product-image { position:relative; width:100%; aspect-ratio:1/1; padding:0; background:var(--surface-2); overflow:hidden; }
.product-image img { width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.product-card:hover .product-image img { transform:scale(1.035); }
.product-badge { position:absolute; left:12px; top:12px; padding:6px 9px; border-radius:999px; background:rgba(0,0,0,.66); color:#fff; font-size:10px; font-weight:600; }
.product-save { position:absolute; right:12px; top:12px; width:37px; height:37px; border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.9); color:#15161b; }
.product-save.active { color:var(--primary); }
.product-save.active svg { fill:var(--primary); }
.product-copy { padding:16px; }
.product-category { color:var(--muted); font-size:10px; }
.product-copy h3 { margin:5px 0 9px; font-size:15px; }
.product-rating { display:flex; align-items:center; gap:5px; color:var(--muted); font-size:10px; }
.product-rating svg { width:15px; color:#f5b942; fill:#f5b942; }
.product-bottom { margin-top:15px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.product-bottom > strong { font-size:17px; }
.shop-cart { width:40px; height:40px; display:grid; place-items:center; border-radius:13px; background:var(--text); color:var(--bg); }

.page-shell.inbox-page {
  width:100%;
  min-height:100dvh;
  margin:0;
  padding:0;
}
.inbox-layout { width:100%; max-width:none; margin:0; display:grid; grid-template-columns:360px 1fr; min-height:100dvh; height:100dvh; border:0; background:var(--surface); border-radius:0; overflow:hidden; box-shadow:none; }
.conversation-list { border-right:1px solid var(--border); min-width:0; }
.inbox-head { padding:22px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; gap:16px; }
.inbox-head h1 { margin:0; font-size:25px; }
.inbox-brand { min-width:0; }
.inbox-brand h1 { margin:3px 0 0; }
.inbox-brand p { margin:4px 0 0; color:var(--muted); font-size:10px; line-height:1.45; }
.virtual-kicker { display:inline-flex; align-items:center; gap:5px; color:var(--primary-2); font-size:9px; font-weight:700; letter-spacing:.11em; text-transform:uppercase; }
.virtual-kicker svg { width:12px; height:12px; }
.page-title .virtual-kicker { margin-bottom:6px; }
.persona-chip { display:inline-flex; align-items:center; gap:4px; padding:4px 8px; border-radius:999px; background:linear-gradient(135deg,var(--primary-soft),var(--accent-soft)); border:1px solid color-mix(in srgb,var(--primary) 20%,transparent); color:color-mix(in srgb,var(--primary-2) 82%,#fff); font-size:9px; font-weight:600; white-space:nowrap; backdrop-filter:blur(8px); }
.persona-chip svg { width:11px; height:11px; }
.profile-name .virtual-kicker { margin-bottom:5px; }
.message-search { margin:14px; }
.chat-search-panel { display:grid; grid-template-rows:0fr; opacity:0; transform:translateY(-5px); transition:grid-template-rows .24s ease,opacity .18s ease,transform .24s ease; }
.chat-search-panel.open { grid-template-rows:1fr; opacity:1; transform:none; }
.chat-search-panel > * { min-height:0; overflow:hidden; }
.chat-search-box { margin:0 14px 10px; min-height:46px; padding:0 12px; display:flex; align-items:center; gap:9px; border:1px solid var(--border); border-radius:15px; background:color-mix(in srgb,var(--surface-2) 82%,transparent); box-shadow:inset 0 1px 0 rgba(255,255,255,.025); }
.chat-search-box > svg { width:18px; color:var(--muted); flex:none; }
.chat-search-box input { width:100%; min-width:0; border:0; outline:0; background:transparent; color:var(--text); font-size:12px; }
.chat-search-box input::placeholder { color:var(--subtle); }
.chat-search-box button { width:30px; height:30px; flex:none; display:grid; place-items:center; border-radius:50%; background:transparent; color:var(--muted); }
.chat-search-box button:hover { background:var(--surface); color:var(--text); }
.chat-search-box button svg { width:16px; }
#chatSearchToggle.active { color:var(--primary-2); background:var(--primary-soft); border-color:color-mix(in srgb,var(--primary) 28%,var(--border)); }
.conversation-results { min-height:0; }
.conversation[hidden] { display:none; }
.chat-search-empty { padding:34px 22px; display:flex; flex-direction:column; align-items:center; text-align:center; color:var(--muted); }
.chat-search-empty[hidden] { display:none; }
.chat-search-empty svg { width:28px; height:28px; margin-bottom:9px; color:var(--primary-2); }
.chat-search-empty strong { color:var(--text); font-size:13px; }
.chat-search-empty span { margin-top:3px; font-size:10px; }
.conversation { width:100%; padding:14px 16px; background:transparent; display:grid; grid-template-columns:52px 1fr auto; gap:12px; text-align:left; color:var(--text); align-items:center; }
.conversation:hover, .conversation.active { background:var(--surface-2); }
.conversation img { width:52px; height:52px; border-radius:50%; object-fit:cover; }
.conversation-main { min-width:0; }
.conversation-main strong { display:block; font-size:14px; }
.conversation-main p { margin:3px 0 0; font-size:12px; color:var(--muted); overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.conversation-meta { text-align:right; align-self:start; color:var(--subtle); font-size:10px; }
.unread-badge { display:block; margin:7px 0 0 auto; width:20px; height:20px; border-radius:50%; background:var(--primary); color:#fff; text-align:center; line-height:20px; font-size:10px; }
.chat-panel { min-width:0; display:flex; flex-direction:column; height:100dvh; }
.chat-header { padding:14px 20px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:12px; }
.chat-header img { width:43px; height:43px; border-radius:50%; object-fit:cover; }
.chat-person { flex:1; }
.chat-person strong { display:block; font-size:14px; }
.chat-person span { color:var(--success); font-size:11px; }
.chat-person .persona-status { display:flex; align-items:center; gap:6px; color:var(--muted); }
.persona-status i { width:6px; height:6px; border-radius:50%; background:linear-gradient(135deg,var(--accent),var(--primary)); box-shadow:0 0 0 4px var(--primary-soft); }
.chat-actions { display:flex; gap:8px; }
.chat-messages { flex:1; overflow-y:auto; padding:24px; display:flex; flex-direction:column; gap:12px; background:color-mix(in srgb,var(--bg) 52%,var(--surface)); }
.chat-date { text-align:center; color:var(--subtle); font-size:11px; margin:5px 0; }
.bubble-row { display:flex; align-items:flex-end; gap:8px; max-width:78%; }
.bubble-row.me { margin-left:auto; flex-direction:row-reverse; }
.bubble-avatar { width:29px; height:29px; border-radius:50%; object-fit:cover; }
.bubble { padding:11px 14px; border-radius:18px 18px 18px 5px; background:var(--surface-2); color:var(--text); font-size:13px; line-height:1.45; }
.me .bubble { background:var(--primary); color:#fff; border-radius:18px 18px 5px 18px; }
.bubble-media { width:220px; padding:4px; }
.bubble-media img { width:100%; border-radius:14px; }
.bubble-time { display:block; font-size:9px; opacity:.65; margin-top:4px; text-align:right; }
.chat-composer { padding:13px 16px; border-top:1px solid var(--border); display:flex; align-items:center; gap:9px; background:var(--surface); }
.chat-input { flex:1; min-width:0; background:var(--surface-2); border:1px solid transparent; border-radius:23px; padding:11px 15px; color:var(--text); outline:0; }
.send-btn { width:43px; height:43px; border-radius:50%; display:grid; place-items:center; background:var(--primary); color:#fff; }
.back-chat { display:none; }

.profile-hero { max-width:980px; margin:0 auto; }
.cover { position:relative; height:220px; border-radius:28px; background:url('https://images.unsplash.com/photo-1535223289827-42f1e9919769?auto=format&fit=crop&w=1600&q=80') center/cover; overflow:hidden; }
.cover::after { content:""; position:absolute; inset:0; background:linear-gradient(transparent,rgba(0,0,0,.5)); }
.profile-main { position:relative; margin-top:-57px; padding:0 30px; display:grid; grid-template-columns:auto 1fr auto; gap:20px; align-items:end; }
.profile-avatar { width:116px; height:116px; border-radius:50%; padding:4px; background:var(--bg); }
.profile-avatar img { width:100%; height:100%; border-radius:50%; object-fit:cover; border:3px solid var(--surface); }
.profile-name h1 { margin:0; font-size:28px; }
.profile-name p { margin:3px 0 0; color:var(--muted); }
.outline-btn, .primary-btn { min-height:44px; border-radius:14px; padding:0 18px; font-weight:600; display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.outline-btn { background:var(--surface); border:1px solid var(--border); color:var(--text); }
.primary-btn { background:var(--primary); color:#fff; }
.profile-bio { padding:24px 30px 12px; color:var(--muted); font-size:13px; }
.profile-bio strong { color:var(--text); }
.profile-stats { display:flex; gap:32px; padding:10px 30px 24px; }
.profile-stats button { background:transparent; color:var(--text); text-align:left; }
.profile-stats strong { display:block; font-size:19px; }
.profile-stats span { color:var(--muted); font-size:11px; }
.profile-tabs { display:flex; border-bottom:1px solid var(--border); margin-top:12px; }
.profile-tab { flex:1; background:transparent; padding:15px; color:var(--muted); border-bottom:2px solid transparent; display:flex; align-items:center; justify-content:center; gap:8px; }
.profile-tab.active { color:var(--text); border-bottom-color:var(--text); }
.post-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; margin-top:4px; }
.grid-post { position:relative; aspect-ratio:3/4; overflow:hidden; background:var(--surface-2); }
.grid-post img { width:100%; height:100%; object-fit:cover; }
.grid-views { position:absolute; left:9px; bottom:8px; color:#fff; display:flex; gap:5px; align-items:center; font-size:11px; text-shadow:0 1px 6px #000; }

.create-wrap { max-width:920px; margin:0 auto; }
.create-card { display:grid; grid-template-columns:1fr 1fr; gap:0; overflow:hidden; border:1px solid var(--border); border-radius:28px; background:var(--surface); box-shadow:var(--shadow); }
.upload-zone { min-height:610px; position:relative; display:flex; align-items:center; justify-content:center; padding:25px; background:linear-gradient(145deg,#171923,#0e0f14); overflow:hidden; }
.upload-preview { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.upload-empty { position:relative; z-index:2; text-align:center; color:#fff; }
.upload-icon { width:78px; height:78px; margin:0 auto 15px; border-radius:50%; background:rgba(255,255,255,.1); display:grid; place-items:center; }
.upload-icon svg { width:34px; height:34px; }
.upload-empty h2 { margin:0 0 7px; }
.upload-empty p { margin:0 0 20px; color:rgba(255,255,255,.62); font-size:13px; }
.upload-empty label { cursor:pointer; }
.post-form { padding:30px; display:flex; flex-direction:column; gap:20px; }
.form-head h1 { margin:0 0 4px; font-size:27px; }
.form-head p { margin:0; color:var(--muted); font-size:13px; }
.field label { display:block; margin-bottom:8px; font-size:12px; font-weight:600; }
.field textarea, .field input { width:100%; border:1px solid var(--border); background:var(--surface-2); color:var(--text); border-radius:14px; padding:13px; outline:0; resize:none; }
.field-count { display:block; text-align:right; margin-top:6px; color:var(--subtle); font-size:10px; }
.post-options { display:flex; flex-direction:column; }
.option-row { min-height:55px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:10px; }
.option-row svg { color:var(--muted); }
.option-row span { flex:1; font-size:13px; }
.toggle { width:43px; height:25px; padding:3px; border-radius:20px; background:var(--surface-2); }
.toggle::after { content:""; display:block; width:19px; height:19px; border-radius:50%; background:var(--muted); transition:.2s; }
.toggle.on { background:var(--primary); }
.toggle.on::after { transform:translateX(18px); background:#fff; }
.form-actions { display:grid; grid-template-columns:1fr 1.4fr; gap:11px; margin-top:auto; }

.sheet-backdrop { position:fixed; inset:0; z-index:90; background:rgba(0,0,0,.58); backdrop-filter:blur(3px); }
.bottom-sheet { position:fixed; z-index:100; left:50%; bottom:0; width:min(680px,100%); max-height:min(82dvh,780px); transform:translate(-50%,105%); background:var(--surface); border-radius:26px 26px 0 0; box-shadow:0 -20px 70px rgba(0,0,0,.4); transition:transform .28s ease; display:flex; flex-direction:column; }
.bottom-sheet.open { transform:translate(-50%,0); }
.compact-sheet { width:min(560px,100%); }
.sheet-handle { width:42px; height:4px; margin:10px auto 4px; border-radius:4px; background:var(--border); }
.sheet-header { padding:11px 19px 15px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.sheet-header h2 { font-size:15px; margin:0; }
.sheet-close { background:transparent; color:var(--text); display:grid; place-items:center; }
.comments-list { overflow:auto; padding:6px 18px 14px; }
.comment { display:grid; grid-template-columns:39px 1fr auto; gap:11px; padding:13px 0; }
.comment img { width:39px; height:39px; border-radius:50%; object-fit:cover; }
.comment-body strong { font-size:12px; }
.comment-body p { margin:3px 0; font-size:12px; line-height:1.45; }
.comment-body span { color:var(--subtle); font-size:10px; }
.comment-like { background:transparent; color:var(--muted); align-self:start; }
.comment-like svg { width:17px; }
.sheet-composer { padding:11px 16px max(12px,env(safe-area-inset-bottom)); border-top:1px solid var(--border); display:flex; gap:9px; }
.sheet-composer input { flex:1; min-width:0; border:1px solid var(--border); background:var(--surface-2); color:var(--text); padding:11px 14px; border-radius:22px; outline:0; }
.share-grid { padding:18px; display:grid; grid-template-columns:repeat(4,1fr); gap:18px 10px; }
.share-option { background:transparent; color:var(--text); display:flex; flex-direction:column; gap:7px; align-items:center; font-size:10px; }
.share-option b { width:50px; height:50px; border-radius:50%; display:grid; place-items:center; background:var(--surface-2); }
.share-option b svg { width:23px; }
.toast-region { position:fixed; z-index:150; top:18px; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; gap:8px; }
.toast { padding:11px 16px; border-radius:999px; background:var(--text); color:var(--bg); box-shadow:var(--shadow); font-size:12px; font-weight:600; animation:toast-in .25s ease; }
@keyframes toast-in { from { transform:translateY(-8px); opacity:0; } }

@media (min-width: 1180px) {
  .video-card { width:min(620px,calc(100vw - var(--rail))); margin:0 auto; border-left:1px solid rgba(255,255,255,.06); border-right:1px solid rgba(255,255,255,.06); }
  .feed-page { background:radial-gradient(circle at 15% 20%,#161922,#050609 42%); }
  .feed-back { left:calc(var(--rail) + (100vw - var(--rail) - 620px)/2 + 18px); }
}

@media (max-width: 820px) {
  .desktop-rail { display:none; }
  .main-content { margin-left:0; padding-bottom:var(--bottom); }
  .bottom-nav { position:fixed; display:grid; grid-template-columns:repeat(4,1fr); align-items:center; left:0; right:0; bottom:0; z-index:70; min-height:var(--bottom); padding:6px max(7px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left)); background:color-mix(in srgb,var(--surface) 94%,transparent); border-top:1px solid var(--border); backdrop-filter:blur(18px); }
  .feed-page + .bottom-nav, body.feed-active .bottom-nav { background:rgba(5,6,9,.82); border-top-color:rgba(255,255,255,.12); color:#fff; }
  .bottom-item { position:relative; background:transparent; color:var(--muted); display:flex; flex-direction:column; align-items:center; gap:2px; }
  .bottom-item svg { width:23px; height:23px; }
  .bottom-item span { font-size:9px; font-weight:600; }
  .bottom-item.active { color:var(--text); }
  body.feed-active .bottom-item.active { color:#fff; }
  .bottom-item b { position:absolute; top:-3px; right:19%; width:17px; height:17px; line-height:17px; border-radius:50%; background:var(--primary); color:#fff; font-size:9px; }

  .feed-back { left:14px; top:14px; }
  .video-card { height:calc(100dvh - var(--bottom)); min-height:560px; }
  .feed-stack { height:calc(100dvh - var(--bottom)); }
  .post-content { left:16px; right:88px; bottom:22px; }
  .post-actions { right:13px; bottom:20px; gap:13px; }
  .action-disc { width:44px; height:44px; }
  .post-avatar img { width:47px; height:47px; }
  .page-shell { padding:20px 15px calc(var(--bottom) + 25px); }
  .page-header { margin-bottom:20px; }
  .page-title h1 { font-size:27px; }
  .trend-grid { grid-template-columns:repeat(2,1fr); gap:5px; }
  .trend-card { border-radius:5px; }
  .shop-banner { grid-template-columns:1fr; padding:24px; min-height:auto; border-radius:22px; }
  .shop-banner img { height:210px; order:-1; }
  .product-grid { grid-template-columns:repeat(2,1fr); gap:8px; }
  .product-card { border-radius:14px; }
  .product-copy { padding:12px; }
  .product-bottom > strong { font-size:14px; }
  .inbox-layout { min-height:calc(100dvh - var(--bottom)); border:0; border-radius:0; box-shadow:none; display:block; }
  .conversation-list { border:0; }
  .chat-panel { display:none; position:fixed; inset:0 0 var(--bottom); z-index:65; height:auto; background:var(--surface); }
  .inbox-layout.chat-open .conversation-list { display:none; }
  .inbox-layout.chat-open .chat-panel { display:flex; }
  .chat-header {
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-areas:
      "back identity actions";
    align-items:center;
    gap:10px;
    min-height:82px;
    padding:12px max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left));
    background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 97%,transparent),color-mix(in srgb,var(--surface) 90%,transparent));
    backdrop-filter:blur(18px);
  }
  .back-chat { display:grid; grid-area:back; width:40px; height:40px; flex:none; }
  .chat-header > img { display:none; }
  .chat-person {
    grid-area:identity;
    min-width:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:2px;
  }
  .chat-person strong {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:16px;
    line-height:1.2;
  }
  .chat-person .persona-status {
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:10px;
    line-height:1.2;
  }
  .chat-actions { grid-area:actions; gap:6px; flex:none; }
  .chat-actions .round-btn { width:40px; height:40px; }
  .chat-actions .round-btn svg { width:19px; height:19px; }
  .bubble-row { max-width:88%; }
  .profile-main { padding:0 16px; grid-template-columns:auto 1fr; align-items:end; }
  .profile-avatar { width:92px; height:92px; }
  .profile-name h1 { font-size:21px; }
  .profile-main .outline-btn { grid-column:1/-1; width:100%; }
  .profile-bio, .profile-stats { padding-left:16px; padding-right:16px; }
  .cover { height:175px; border-radius:18px; }
  .create-card { grid-template-columns:1fr; }
  .upload-zone { min-height:320px; }
  .post-form { padding:22px; }
}

@media (max-width: 420px) {
  .chat-header {
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:8px;
    min-height:74px;
    padding:10px 10px;
  }
  .back-chat { width:38px; height:38px; }
  .chat-actions { gap:4px; }
  .chat-actions .round-btn { width:36px; height:36px; }
  .chat-actions .round-btn svg { width:17px; height:17px; }
  .chat-person strong { font-size:15px; }
  .chat-person .persona-status { font-size:9px; }
  .caption { font-size:12px; }
  .post-content { right:78px; }
  .post-actions { right:9px; }
  .action-disc { width:41px; height:41px; }
  .action-disc svg { width:23px; }
  .profile-stats { justify-content:space-between; gap:10px; }
  .share-grid { grid-template-columns:repeat(4,1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; transition-duration:.01ms !important; }
}

/* Reference-inspired compact companion UI */
.compact-page-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; max-width:1120px; margin:0 auto 22px; }
.compact-page-head h1 { margin:4px 0 2px; font-size:clamp(26px,4vw,38px); }
.compact-page-head p { margin:0; color:var(--muted); font-size:13px; }
.head-actions { display:flex; gap:8px; }

.discovery-page { max-width:1180px; margin:0 auto; }
.persona-discovery-stage { position:relative; max-width:560px; margin:0 auto; }
.persona-discovery-grid { height:calc(100dvh - 178px); min-height:560px; overflow-y:auto; display:flex; flex-direction:column; gap:16px; padding:0 4px clamp(130px,19vh,190px); scroll-snap-type:y mandatory; scroll-padding-top:0; overscroll-behavior-y:contain; scrollbar-width:none; }
.persona-discovery-grid::-webkit-scrollbar { display:none; }
.persona-swipe-hint { position:absolute; z-index:8; left:50%; bottom:18px; transform:translateX(-50%); min-height:40px; padding:0 14px; border-radius:999px; display:flex; align-items:center; gap:8px; white-space:nowrap; color:#fff; background:rgba(25,14,21,.72); border:1px solid rgba(255,255,255,.16); box-shadow:0 12px 28px rgba(18,9,14,.22); backdrop-filter:blur(14px); transition:.25s ease; pointer-events:none; animation:persona-hint-float 1.8s ease-in-out infinite; }
.persona-swipe-hint svg { width:17px; height:17px; }
.persona-swipe-hint span { font-size:10px; font-weight:600; }
.persona-swipe-hint.hidden { opacity:0; transform:translate(-50%,12px); }
.persona-swipe-hint.compact { opacity:.72; }
.persona-swipe-hint[hidden] { display:none; }
@keyframes persona-hint-float { 0%,100% { transform:translate(-50%,0); } 50% { transform:translate(-50%,-5px); } }
.persona-loading,.persona-empty { grid-column:1/-1; min-height:280px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; text-align:center; color:var(--muted); border:1px dashed var(--border); border-radius:20px; background:color-mix(in srgb,var(--surface) 78%,transparent); }
.persona-loading svg { width:28px; height:28px; color:var(--primary-2); animation:persona-spin 1s linear infinite; }
.persona-empty svg { width:34px; height:34px; color:var(--primary-2); }
.persona-empty strong { color:var(--text); font-size:14px; }
.persona-empty span,.persona-loading span { font-size:11px; }
@keyframes persona-spin { to { transform:rotate(360deg); } }
.persona-card { flex:0 0 calc(100% - clamp(118px,18vh,168px)); min-height:430px; overflow:hidden; border-radius:24px; border:1px solid var(--border); background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 92%,transparent),color-mix(in srgb,var(--primary-soft) 42%,var(--surface))); box-shadow:var(--shadow); scroll-snap-align:start; scroll-snap-stop:always; }
.persona-media { position:relative; width:100%; height:calc(100% - 104px); min-height:340px; overflow:hidden; background:var(--surface-2); }
.persona-media img { width:100%; height:100%; object-fit:cover; }
.persona-media::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 38%,rgba(19,12,17,.82)); }
.persona-overlay { position:absolute; z-index:2; left:16px; right:16px; bottom:13px; color:#fff; text-align:left; }
.persona-overlay b,.persona-overlay small { display:block; }
.persona-overlay b { font-size:18px; }
.persona-overlay small { margin-top:2px; opacity:.75; font-size:10px; }
.online-dot { position:absolute; z-index:3; top:13px; right:13px; width:10px; height:10px; border:2px solid #fff; border-radius:50%; background:#43c98b; box-shadow:0 0 0 4px rgba(67,201,139,.15); }
.persona-card-copy { min-height:104px; display:grid; grid-template-columns:1fr auto; align-items:center; gap:14px; padding:14px 16px 16px; }
.persona-card-copy p { margin:0; color:var(--muted); font-size:12px; line-height:1.45; }
.chat-now,.gift-buy { min-height:38px; padding:0 14px; border-radius:12px; background:linear-gradient(135deg,var(--primary),var(--primary-2)); color:#fff; font-size:11px; font-weight:700; display:inline-flex; align-items:center; gap:6px; }
.chat-now svg { width:15px; }

.gem-wallet { display:flex; align-items:center; gap:9px; padding:9px 13px; border-radius:14px; background:linear-gradient(135deg,var(--primary-soft),var(--accent-soft)); border:1px solid color-mix(in srgb,var(--primary) 24%,transparent); color:var(--text); }
.gem-wallet svg { color:var(--accent); }
.gem-wallet span { text-align:left; }
.gem-wallet small,.gem-wallet b { display:block; }
.gem-wallet small { color:var(--muted); font-size:8px; }
.gem-wallet b { font-size:11px; }
.gift-tabs { max-width:760px; margin:0 auto 16px; display:grid; grid-template-columns:repeat(3,1fr); padding:5px; border-radius:16px; background:var(--surface); border:1px solid var(--border); }
.gift-tabs button { padding:10px; border-radius:12px; background:transparent; color:var(--muted); display:flex; align-items:center; justify-content:center; gap:7px; font-size:11px; }
.gift-tabs button.active { color:var(--text); background:linear-gradient(135deg,var(--primary-soft),var(--accent-soft)); }
.gift-tabs svg { width:17px; }
.gift-grid { max-width:760px; margin:0 auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.gift-loading,.gift-empty { grid-column:1/-1; min-height:260px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:24px; text-align:center; color:var(--muted); border:1px dashed var(--border); border-radius:18px; background:color-mix(in srgb,var(--surface) 82%,transparent); }
.gift-loading svg { animation:persona-spin 1s linear infinite; }
.gift-loading svg,.gift-empty svg { width:30px; height:30px; color:var(--primary-2); }
.gift-empty strong { color:var(--text); font-size:14px; }
.gift-empty span,.gift-loading span { font-size:11px; }
.gift-card { overflow:hidden; border-radius:18px; background:var(--surface); border:1px solid var(--border); }
.gift-image { position:relative; aspect-ratio:1.15; overflow:hidden; }
.gift-image img { width:100%; height:100%; object-fit:cover; }
.gift-image-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,var(--primary-soft),var(--accent-soft)); color:var(--primary-2); }
.gift-image-placeholder svg { width:44px; height:44px; }
.gift-image span { position:absolute; top:9px; left:9px; padding:4px 8px; border-radius:99px; background:rgba(20,12,17,.72); color:#fff; font-size:8px; backdrop-filter:blur(8px); }
.gift-copy { padding:12px; }
.gift-copy small { display:block; margin-bottom:3px; color:var(--muted); font-size:9px; }
.gift-copy h3 { margin:0; font-size:14px; }
.gift-copy p { margin:3px 0 10px; color:var(--muted); font-size:10px; }
.gift-buy { width:100%; justify-content:center; }

.account-shell { max-width:760px; margin:0 auto; }
.account-card { display:flex; align-items:center; gap:16px; padding:18px; border-radius:20px; background:linear-gradient(135deg,var(--primary-soft),color-mix(in srgb,var(--surface) 88%,transparent)); border:1px solid var(--border); }
.account-card img { width:76px; height:76px; border-radius:50%; object-fit:cover; border:3px solid color-mix(in srgb,var(--primary) 35%,transparent); }
.account-card h2 { margin:0; font-size:22px; }
.account-card p { margin:2px 0 6px; color:var(--muted); font-size:12px; }
.account-card span { display:inline-flex; padding:4px 8px; border-radius:99px; background:var(--accent-soft); color:var(--primary-2); font-size:9px; font-weight:700; }
.companions-panel,.account-menu,.subscription-card { margin-top:14px; border-radius:18px; background:var(--surface); border:1px solid var(--border); }
.companions-panel { padding:16px; }
.section-label { display:flex; align-items:center; justify-content:space-between; }
.section-label h3 { margin:0; font-size:15px; }
.section-label span { color:var(--muted); font-size:10px; }
.companion-row { display:flex; gap:20px; margin-top:15px; }
.companion-row button { background:transparent; color:var(--text); }
.companion-row button > span { position:relative; display:block; }
.companion-row img { width:58px; height:58px; border-radius:50%; object-fit:cover; }
.companion-row i { position:absolute; right:1px; bottom:2px; width:11px; height:11px; border:2px solid var(--surface); border-radius:50%; background:#43c98b; }
.companion-row b { display:block; margin-top:5px; font-size:10px; }
.account-menu { overflow:hidden; }
.account-menu button { width:100%; padding:14px 16px; display:grid; grid-template-columns:22px 1fr 18px; align-items:center; gap:11px; text-align:left; background:transparent; color:var(--text); border-bottom:1px solid var(--border); }
.account-menu button:last-child { border-bottom:0; }
.account-menu button > svg:first-child { color:var(--primary-2); }
.account-menu span b,.account-menu span small { display:block; }
.account-menu span b { font-size:12px; }
.account-menu span small { margin-top:2px; color:var(--muted); font-size:9px; }
.subscription-card { padding:16px; display:flex; align-items:center; justify-content:space-between; gap:15px; background:linear-gradient(135deg,var(--primary-soft),var(--accent-soft)); }
.subscription-card span { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.1em; }
.subscription-card h3 { margin:4px 0 2px; font-size:16px; }
.subscription-card p { margin:0; color:var(--muted); font-size:10px; }
.subscription-card button { padding:9px 12px; border-radius:11px; background:var(--text); color:var(--bg); font-size:10px; font-weight:700; }
.logout-row { width:100%; margin-top:14px; padding:13px; border-radius:14px; background:transparent; border:1px solid var(--border); color:var(--muted); display:flex; align-items:center; justify-content:center; gap:8px; }

.conversation-list { overflow-y:auto; }
.inbox-head { position:sticky; top:0; z-index:5; background:color-mix(in srgb,var(--surface) 94%,transparent); backdrop-filter:blur(16px); }
.inbox-brand p { margin-top:1px; }
.conversation { padding-top:12px; padding-bottom:12px; }

@media (max-width:820px) {
  .page-shell:not(.inbox-page) { padding-top:14px; }
  .compact-page-head { align-items:center; margin-bottom:14px; }
  .compact-page-head h1 { font-size:23px; }
  .compact-page-head p { font-size:10px; max-width:250px; }
  .persona-discovery-stage { max-width:520px; }
  .persona-discovery-grid { height:calc(100dvh - var(--bottom) - 118px); min-height:500px; gap:12px; padding-bottom:clamp(118px,19vh,165px); }
  .persona-card { flex-basis:calc(100% - clamp(105px,18vh,150px)); min-height:390px; border-radius:20px; }
  .persona-media { height:calc(100% - 98px); min-height:300px; }
  .persona-card-copy { min-height:98px; padding:10px 12px 12px; }
  .gift-grid { gap:8px; }
  .gift-card { border-radius:14px; }
  .account-shell { max-width:none; }
  .account-card { border-radius:16px; }
  .conversation-list { height:calc(100dvh - var(--bottom)); }
}

@media (max-width:430px) {
  .discovery-page .compact-page-head p { display:none; }
  .persona-discovery-grid { height:calc(100dvh - var(--bottom) - 92px); min-height:460px; padding-inline:0; padding-bottom:126px; }
  .persona-card { flex-basis:calc(100% - 112px); min-height:360px; border-radius:18px; }
  .persona-media { min-height:276px; }
  .persona-card-copy { grid-template-columns:1fr; }
  .chat-now { width:100%; justify-content:center; }
  .gift-copy h3 { font-size:12px; }
  .gift-buy { font-size:10px; }
  .gem-wallet { padding:7px 9px; }
  .companion-row { justify-content:space-between; gap:8px; }
}


/* Romantic translucent theme */
body {
  background:
    radial-gradient(circle at 12% 8%, var(--romance-glow), transparent 34%),
    radial-gradient(circle at 88% 18%, var(--accent-soft), transparent 30%),
    var(--bg);
}
.app-shell { background: transparent; }
.desktop-rail { background: linear-gradient(180deg,color-mix(in srgb,var(--surface) 92%,transparent),color-mix(in srgb,var(--surface) 70%,transparent)); backdrop-filter: blur(22px); }
.brand-mark { background: linear-gradient(135deg,var(--accent),var(--primary) 68%,transparent 150%); box-shadow:0 10px 30px rgba(217,104,141,.24); }
.rail-item:hover,.rail-item.active { background:linear-gradient(135deg,var(--accent-soft),color-mix(in srgb,var(--surface-2) 78%,transparent)); }
.mini-avatar,.story-ring { background:linear-gradient(135deg,var(--accent),var(--primary),transparent 150%); }
.shop-banner { background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 14%,var(--surface)),color-mix(in srgb,var(--accent) 9%,var(--surface)),transparent 145%); box-shadow:0 22px 70px var(--romance-glow); }
.inbox-layout { background:linear-gradient(135deg,color-mix(in srgb,var(--surface) 96%,transparent),color-mix(in srgb,var(--accent) 4%,var(--surface)),transparent 160%); }
.conversation:hover,.conversation.active { background:linear-gradient(90deg,var(--accent-soft),color-mix(in srgb,var(--surface-2) 82%,transparent),transparent 120%); }
.chat-messages { background:radial-gradient(circle at 82% 12%,var(--accent-soft),transparent 28%),linear-gradient(180deg,color-mix(in srgb,var(--bg) 50%,var(--surface)),color-mix(in srgb,var(--surface) 86%,transparent)); }
.me .bubble { background:linear-gradient(135deg,var(--primary),var(--primary-2),color-mix(in srgb,var(--accent) 45%,var(--primary))); box-shadow:0 9px 26px rgba(217,104,141,.18); }
.send-btn { background:linear-gradient(135deg,var(--primary),var(--accent)); box-shadow:0 9px 24px rgba(217,104,141,.22); }
.primary-btn { background:linear-gradient(135deg,var(--primary),var(--primary-2),var(--accent)); box-shadow:0 10px 26px rgba(217,104,141,.16); }


/* Taller portrait avatar discovery cards */
.persona-discovery-stage{max-width:460px}
.persona-discovery-grid{gap:14px;padding-bottom:clamp(92px,14vh,130px)}
.persona-card{position:relative;flex:0 0 calc(100% - clamp(64px,10vh,92px));min-height:560px;border-radius:26px}
.persona-media{height:100%;min-height:100%}
.persona-media::after{background:linear-gradient(180deg,rgba(12,8,11,.02) 18%,rgba(12,8,11,.18) 52%,rgba(17,9,14,.92) 100%)}
.persona-card-copy{position:absolute;z-index:4;left:0;right:0;bottom:0;min-height:auto;padding:74px 18px 18px;display:grid;grid-template-columns:1fr auto;align-items:end;gap:14px;background:linear-gradient(180deg,transparent,rgba(17,9,14,.88) 54%,rgba(17,9,14,.97));pointer-events:none}
.persona-card-copy p{color:rgba(255,255,255,.86);font-size:12px;line-height:1.5;text-shadow:0 1px 2px rgba(0,0,0,.28)}
.persona-card-copy .chat-now{pointer-events:auto}
.persona-overlay{bottom:118px}
@media(max-width:820px){
  .persona-discovery-stage{max-width:430px}
  .persona-discovery-grid{height:calc(100dvh - var(--bottom) - 110px);padding-bottom:88px}
  .persona-card{flex-basis:calc(100% - 58px);min-height:520px;border-radius:24px}
  .persona-media{height:100%;min-height:100%}
  .persona-card-copy{padding:68px 14px 14px}
  .persona-overlay{bottom:112px}
}
@media(max-width:430px){
  .persona-discovery-stage{max-width:390px}
  .persona-discovery-grid{height:calc(100dvh - var(--bottom) - 84px);padding-bottom:78px}
  .persona-card{flex-basis:calc(100% - 48px);min-height:500px;border-radius:22px}
  .persona-card-copy{grid-template-columns:1fr;padding:84px 14px 14px}
  .persona-overlay{bottom:154px}
}


/* Real inbox conversation states */
.chat-list-empty { min-height:260px; padding:28px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; text-align:center; color:var(--muted); }
.chat-list-empty > svg { width:34px; height:34px; color:var(--primary-2); }
.chat-list-empty strong { color:var(--text); font-size:15px; }
.chat-list-empty span { max-width:300px; font-size:11px; line-height:1.55; }
.chat-list-empty .chat-now { margin-top:7px; }
.empty-chat-panel { display:flex; align-items:center; justify-content:center; }
.conversation-main p { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Subtle per-user avatar connection */
.connection-status{display:inline-flex;align-items:center;gap:5px;margin:3px 0 0;padding:0;background:transparent;color:var(--muted);font-size:10px;line-height:1;border:0;transition:color .2s ease,transform .2s ease}.connection-status:hover{color:var(--primary-2);transform:translateX(1px)}.connection-status svg{width:12px;height:12px}.connection-status svg:last-child{width:11px;height:11px;opacity:.55}.connection-status[data-stage="warming-up"]{color:#d7869f}.connection-status[data-stage="growing-closer"]{color:#df7899}.connection-status[data-stage="close-connection"]{color:#e46f91}.connection-status[data-stage="deeply-connected"]{color:#ed668b}.connection-aura{height:2px;margin-top:-1px;background:transparent;overflow:hidden;position:relative}.connection-aura span{display:block;height:100%;width:18%;border-radius:999px;background:linear-gradient(90deg,transparent,rgba(217,104,141,.36),transparent);transition:width .45s ease,opacity .45s ease;opacity:.42}.connection-aura[data-stage="warming-up"] span{width:34%;opacity:.52}.connection-aura[data-stage="growing-closer"] span{width:52%;opacity:.62}.connection-aura[data-stage="close-connection"] span{width:72%;opacity:.72}.connection-aura[data-stage="deeply-connected"] span{width:94%;opacity:.82}.connection-sheet-body{padding:4px 20px 24px}.connection-hero{position:relative;display:grid;grid-template-columns:64px 42px 1fr;align-items:center;gap:12px;padding:18px;border:1px solid var(--border);border-radius:18px;background:linear-gradient(135deg,var(--surface),rgba(217,104,141,.06))}.connection-hero>img{width:64px;height:64px;border-radius:50%;object-fit:cover;border:2px solid rgba(217,104,141,.2)}.connection-hero-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:rgba(217,104,141,.1);color:var(--primary-2)}.connection-hero-icon svg{width:21px;height:21px}.connection-hero small{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.11em}.connection-hero h3{margin:2px 0 5px;font-size:18px}.connection-hero p{margin:0;color:var(--muted);font-size:11px;line-height:1.55}.connection-hero[data-stage="close-connection"],.connection-hero[data-stage="deeply-connected"]{background:linear-gradient(135deg,var(--surface),rgba(217,104,141,.11),rgba(241,173,141,.08))}.connection-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.connection-facts>div{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}.connection-facts>div>svg{width:18px;height:18px;color:var(--primary-2)}.connection-facts span,.connection-facts b,.connection-facts small{display:block}.connection-facts b{font-size:11px}.connection-facts small{margin-top:2px;color:var(--muted);font-size:9px}.connection-note{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:13px 14px;border-radius:14px;background:rgba(217,104,141,.07);color:var(--muted)}.connection-note svg{width:16px;height:16px;flex:0 0 auto;color:var(--primary-2)}.connection-note p{margin:0;font-size:10px;line-height:1.55}@media(max-width:620px){.connection-sheet-body{padding:2px 14px 22px}.connection-hero{grid-template-columns:56px 36px 1fr;padding:15px;gap:9px}.connection-hero>img{width:56px;height:56px}.connection-hero-icon{width:36px;height:36px;border-radius:12px}.connection-facts{grid-template-columns:1fr}.connection-status span{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
.persona-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.persona-card-actions button{min-width:0}.view-avatar-profile{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid rgba(255,255,255,.28);background:rgba(18,12,18,.45);color:#fff;border-radius:999px;padding:10px 12px;font-weight:600}.view-avatar-profile svg{width:17px}.avatar-public-page{min-height:100%}.avatar-profile-shell{width:min(980px,100%);margin:0 auto;padding:22px 24px 50px}.avatar-profile-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.avatar-profile-top>span{font-weight:700}.avatar-profile-hero{display:grid;grid-template-columns:220px 1fr;gap:28px;align-items:center;padding:24px;border:1px solid var(--line);border-radius:24px;background:var(--panel)}.avatar-profile-hero>img{width:220px;height:280px;border-radius:20px;object-fit:cover}.avatar-profile-hero h1{margin:7px 0 0;font-size:34px}.avatar-handle{color:var(--muted);margin:2px 0 14px!important}.avatar-profile-hero p{line-height:1.65}.avatar-profile-actions{display:flex;gap:10px;margin-top:20px}.avatar-profile-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 17px;border-radius:999px;font-weight:700}.profile-chat-now{background:linear-gradient(135deg,var(--pink),var(--peach));color:#fff}.profile-gift-link{background:var(--soft);color:var(--text);border:1px solid var(--line)}.avatar-profile-posts{margin-top:28px}.avatar-profile-posts .section-label h2{display:flex;align-items:center;gap:8px}.avatar-post-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-top:14px;border-radius:18px;overflow:hidden}.avatar-post-tile{position:relative;aspect-ratio:1/1;background:#160f17;overflow:hidden}.avatar-post-tile img,.avatar-post-tile video{width:100%;height:100%;object-fit:cover;display:block}.post-video-badge{position:absolute;right:10px;top:10px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(10,8,10,.68);color:#fff}.post-video-badge svg{width:15px}.avatar-post-empty{grid-column:1/-1;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--muted);background:var(--panel);border:1px solid var(--line);border-radius:18px}.avatar-post-empty svg{width:36px}.avatar-profile-loading{min-height:60vh;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted)}.avatar-post-viewer{padding:0 18px 24px}.avatar-post-viewer img,.avatar-post-viewer video{display:block;width:100%;max-height:68vh;object-fit:contain;border-radius:16px;background:#100b10}.avatar-post-viewer p{line-height:1.6;margin:15px 2px 0}@media(max-width:720px){.persona-card-actions{grid-template-columns:1fr}.avatar-profile-shell{padding:14px 14px 100px}.avatar-profile-hero{grid-template-columns:1fr;padding:18px}.avatar-profile-hero>img{width:100%;height:min(430px,60vh)}.avatar-profile-hero h1{font-size:28px}.avatar-profile-actions{display:grid;grid-template-columns:1fr 1fr}.avatar-post-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
.persona-card-copy .view-avatar-profile,.persona-card-copy .chat-now{pointer-events:auto;position:relative;z-index:6;width:100%;min-height:42px;border-radius:12px;padding:0 14px;font-size:11px;font-weight:700}.persona-card-actions{position:relative;z-index:6;align-items:stretch}.view-avatar-profile{background:linear-gradient(135deg,rgba(217,104,141,.22),rgba(241,173,141,.18));border:1px solid rgba(255,255,255,.32);box-shadow:0 6px 18px rgba(0,0,0,.16)}.view-avatar-profile:hover{background:linear-gradient(135deg,rgba(217,104,141,.38),rgba(241,173,141,.30))}.view-avatar-profile svg,.chat-now svg{width:15px;height:15px}
