:root {
  --bg: #0f0b1a;
  --bg2: #181226;
  --card: #1f1830;
  --card2: #2a2140;
  --line: #3a2f55;
  --text: #f4f0ff;
  --muted: #a89cc4;
  --pink: #ff4fa3;
  --violet: #8b5cf6;
  --gold: #ffcf5c;
  --green: #34d399;
  --grad: linear-gradient(135deg, #ff4fa3 0%, #8b5cf6 100%);
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0,0,0,.45);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select {
  font: inherit; color: var(--text); background: var(--bg2);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
  outline: none; transition: border-color .2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--pink); }
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.5px; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(255,79,163,.4); }
.logo-mark svg { width: 20px; height: 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 700; transition: transform .15s, box-shadow .2s, opacity .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(255,79,163,.35); }
.btn-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.btn-block { width: 100%; }

/* ---------- Landing ---------- */
.landing { min-height: 100vh; background:
  radial-gradient(900px 500px at 85% -10%, rgba(139,92,246,.35), transparent 60%),
  radial-gradient(700px 500px at -10% 30%, rgba(255,79,163,.25), transparent 60%), var(--bg); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 6vw; }
.nav-links { display: flex; gap: 28px; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; padding: 40px 6vw 80px; }
.hero h1 { font-size: clamp(40px, 5.5vw, 72px); line-height: 1.02; letter-spacing: -2px; font-weight: 800; }
.hero p.lead { color: var(--muted); font-size: 19px; line-height: 1.6; margin: 22px 0 32px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.stats { display: flex; gap: 36px; margin-top: 44px; }
.stats b { display: block; font-size: 28px; }
.stats span { color: var(--muted); font-size: 14px; }
.hero-visual { position: relative; height: 560px; width: 100%; max-width: 550px; margin: 0 auto; }
.float-card { position: absolute; width: 250px; border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); animation: floaty 6s ease-in-out infinite; }
.float-card .ph { height: 270px; }
.float-card .meta { padding: 14px 16px; }
.float-card .meta b { font-size: 18px; }
.float-card .meta div { color: var(--muted); font-size: 13px; margin-top: 3px; }
.float-card:nth-child(1) { left: 0; top: 60px; transform: rotate(-8deg); }
.float-card:nth-child(2) { left: 160px; top: 0; z-index: 2; animation-delay: -2s; }
.float-card:nth-child(3) { left: 300px; top: 140px; transform: rotate(7deg); animation-delay: -4s; }
@keyframes floaty { 50% { margin-top: -14px; } }
.match-pill { position: absolute; bottom: 40px; left: 60px; z-index: 3; background: rgba(31,24,48,.9); backdrop-filter: blur(10px); border: 1px solid var(--line); padding: 12px 18px; border-radius: 999px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); font-weight: 600; }
.match-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52,211,153,.2); }

.section { padding: 80px 6vw; }
.section h2 { font-size: 40px; letter-spacing: -1px; text-align: center; }
.section .sub { text-align: center; color: var(--muted); margin: 12px auto 48px; max-width: 560px; line-height: 1.6; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; font-size: 22px; margin-bottom: 18px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); line-height: 1.6; font-size: 15px; }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.testi p { line-height: 1.6; margin-bottom: 18px; }
.testi .who { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 14px; }
.testi .who .av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; }
.footer { padding: 40px 6vw; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; flex-wrap: wrap; gap: 16px; }
.footer .links { display: flex; gap: 22px; }
.proto-note { font-size: 12px; opacity: .7; }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(5,3,10,.75); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-bg.open { display: flex; animation: fade .2s; }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: 24px; width: 100%; max-width: 440px; padding: 32px; box-shadow: var(--shadow); position: relative; max-height: 92vh; overflow-y: auto; }
.modal h3 { font-size: 26px; margin-bottom: 6px; }
.modal .muted { color: var(--muted); }
.modal .close { position: absolute; top: 16px; right: 18px; font-size: 24px; color: var(--muted); }
.tabs { display: flex; background: var(--bg2); border-radius: 999px; padding: 4px; margin: 20px 0 4px; }
.tabs button { flex: 1; padding: 10px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.tabs button.active { background: var(--card2); color: var(--text); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { color: #ff7a9c; font-size: 13px; margin-top: 10px; min-height: 18px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@keyframes fade { from { opacity: 0; } }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: 250px 1fr; height: 100vh; }
.sidebar { background: var(--bg2); border-right: 1px solid var(--line); padding: 24px 16px; display: flex; flex-direction: column; }
.sidebar .logo { padding: 0 10px 28px; }
.menu a { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 14px; color: var(--muted); font-weight: 600; margin-bottom: 4px; transition: background .15s, color .15s; }
.menu a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.menu a.active { background: var(--card2); color: var(--text); }
.menu a .ico { width: 22px; text-align: center; font-size: 18px; }
.menu .badge { margin-left: auto; background: var(--pink); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.me-box { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.me-box .av { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.me-box b { display: block; font-size: 14px; }
.me-box span { font-size: 12px; color: var(--muted); }
.me-box button { margin-left: auto; color: var(--muted); font-size: 18px; }
.premium { margin: 18px 0; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(255,79,163,.18), rgba(139,92,246,.22)); border: 1px solid var(--line); }
.premium b { display: block; margin-bottom: 4px; }
.premium p { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.premium .btn { padding: 9px 16px; font-size: 13px; }

.main { overflow-y: auto; position: relative; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 22px 32px; position: sticky; top: 0; background: rgba(15,11,26,.85); backdrop-filter: blur(10px); z-index: 10; border-bottom: 1px solid transparent; }
.topbar h1 { font-size: 26px; letter-spacing: -.5px; }
.topbar .actions { display: flex; gap: 10px; align-items: center; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; position: relative; font-size: 17px; }
.icon-btn .dotn { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; background: var(--pink); border-radius: 50%; border: 2px solid var(--card); }
.view { padding: 8px 32px 40px; display: none; }
.view.active { display: block; animation: fade .25s; }

/* ---------- Discover ---------- */
.discover-wrap { display: flex; flex-direction: column; align-items: center; padding-top: 10px; }
.deck { position: relative; width: 380px; height: 580px; max-width: 92vw; }
.swipe-card { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); user-select: none; touch-action: none; cursor: grab; transition: transform .35s ease, opacity .35s; }
.swipe-card.dragging { transition: none; cursor: grabbing; }
.swipe-card .ph { position: absolute; inset: 0; }
.swipe-card .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,6,20,.95) 0%, rgba(10,6,20,.3) 45%, transparent 70%); }
.swipe-card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; }
.swipe-card h2 { font-size: 30px; display: flex; align-items: center; gap: 10px; }
.swipe-card h2 span { font-weight: 400; }
.verified { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #3b82f6; font-size: 12px; color: #fff; }
.swipe-card .sub { color: #d8cff0; margin: 6px 0 10px; font-size: 14px; }
.swipe-card .bio { font-size: 14px; line-height: 1.5; color: #e9e3f7; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); font-size: 12px; font-weight: 600; }
.chip.on { background: var(--grad); border-color: transparent; }
.stamp { position: absolute; top: 40px; padding: 6px 16px; border: 4px solid; border-radius: 10px; font-size: 32px; font-weight: 900; letter-spacing: 2px; opacity: 0; transform: rotate(-15deg); }
.stamp.like { left: 26px; color: var(--green); border-color: var(--green); }
.stamp.nope { right: 26px; color: #ff5d7a; border-color: #ff5d7a; transform: rotate(15deg); }
.stamp.super { left: 50%; top: auto; bottom: 200px; transform: translateX(-50%); color: #60a5fa; border-color: #60a5fa; }
.online-tag { position: absolute; top: 18px; left: 18px; background: rgba(10,6,20,.6); backdrop-filter: blur(8px); padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.online-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.card-photos { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 5px; z-index: 2; }
.card-photos i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); }
.card-photos i.on { background: #fff; }
.controls { display: flex; gap: 22px; margin-top: 26px; align-items: center; }
.ctrl { width: 64px; height: 64px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font-size: 26px; box-shadow: 0 10px 25px rgba(0,0,0,.35); transition: transform .15s; }
.ctrl:hover { transform: scale(1.08); }
.ctrl.small { width: 50px; height: 50px; font-size: 20px; }
.ctrl.nope { color: #ff5d7a; }
.ctrl.like { color: var(--green); width: 74px; height: 74px; font-size: 30px; }
.ctrl.super { color: #60a5fa; }
.ctrl.rewind { color: var(--gold); }
.empty { text-align: center; color: var(--muted); padding: 80px 20px; }
.empty .big { font-size: 56px; margin-bottom: 14px; }
.empty h3 { color: var(--text); margin-bottom: 8px; font-size: 22px; }

/* ---------- Browse ---------- */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; align-items: center; }
.filters input, .filters select { width: auto; padding: 10px 14px; border-radius: 999px; background: var(--card); }
.filters input[type=search] { min-width: 240px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.pcard { border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--line); cursor: pointer; position: relative; transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard .ph { height: 250px; position: relative; }
.pcard .meta { padding: 12px 14px 14px; }
.pcard .meta b { font-size: 16px; display: flex; align-items: center; gap: 6px; }
.pcard .meta div { color: var(--muted); font-size: 13px; margin-top: 3px; }
.pcard .on-dot { position: absolute; top: 12px; right: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2px solid var(--card); }
.pcard .liked-tag { position: absolute; top: 10px; left: 10px; background: rgba(10,6,20,.6); padding: 4px 10px; border-radius: 999px; font-size: 12px; }

/* ---------- Profile modal ---------- */
.pmodal { max-width: 480px; padding: 0; overflow: hidden; }
.pmodal .ph { height: 380px; }
.pmodal .body { padding: 24px; }
.pmodal h3 { display: flex; align-items: center; gap: 10px; }
.pmodal .facts { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; margin: 10px 0 16px; }
.pmodal .prompt { background: var(--bg2); border-radius: 14px; padding: 14px 16px; margin: 14px 0; border: 1px solid var(--line); }
.pmodal .prompt small { color: var(--muted); display: block; margin-bottom: 4px; }
.pmodal .prompt b { font-size: 17px; }
.pmodal .acts { display: flex; gap: 12px; margin-top: 20px; }
.pmodal .acts .btn { flex: 1; }
.pmodal .close { z-index: 2; background: rgba(10,6,20,.6); width: 36px; height: 36px; border-radius: 50%; color: #fff; font-size: 20px; }

/* ---------- Matches ---------- */
.new-matches { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 28px; }
.nm { text-align: center; flex-shrink: 0; cursor: pointer; }
.nm .ring { width: 84px; height: 84px; border-radius: 50%; padding: 3px; background: var(--grad); }
.nm .ring > div { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 3px solid var(--bg); }
.nm span { display: block; font-size: 13px; margin-top: 6px; font-weight: 600; }
.h-sec { font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; font-weight: 700; }
.likes-you { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.blurred { position: relative; border-radius: 16px; overflow: hidden; height: 200px; }
.blurred .ph { filter: blur(14px); transform: scale(1.2); height: 100%; }
.blurred .lock { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; }

/* ---------- Messages ---------- */
.chat-layout { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 160px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg2); }
.convos { border-right: 1px solid var(--line); overflow-y: auto; }
.convo { display: flex; gap: 12px; padding: 14px 16px; cursor: pointer; align-items: center; border-bottom: 1px solid rgba(58,47,85,.5); }
.convo:hover { background: rgba(255,255,255,.03); }
.convo.active { background: var(--card2); }
.convo .av { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; flex-shrink: 0; position: relative; }
.convo .txt { min-width: 0; flex: 1; }
.convo .txt b { display: flex; justify-content: space-between; font-size: 15px; }
.convo .txt b small { color: var(--muted); font-weight: 400; font-size: 12px; }
.convo .txt div { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.convo .unread { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); flex-shrink: 0; }
.chat { display: flex; flex-direction: column; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--card); }
.chat-head .av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; cursor: pointer; }
.chat-head small { color: var(--green); font-size: 12px; }
.chat-head small.off { color: var(--muted); }
.chat-head .actions { margin-left: auto; display: flex; gap: 8px; }
.msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 68%; padding: 11px 15px; border-radius: 20px; line-height: 1.45; font-size: 15px; animation: pop .2s; }
.msg.them { background: var(--card2); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.me { background: var(--grad); align-self: flex-end; border-bottom-right-radius: 6px; }
.msg-time { font-size: 11px; color: var(--muted); align-self: center; margin: 10px 0; }
.seen { font-size: 11px; color: var(--muted); align-self: flex-end; margin-top: -4px; }
.typing { align-self: flex-start; background: var(--card2); padding: 14px 16px; border-radius: 20px; display: flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.composer { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); background: var(--card); }
.composer input { border-radius: 999px; }
.composer .btn { padding: 0 22px; }
.chat-empty { flex: 1; display: grid; place-items: center; color: var(--muted); text-align: center; }
.match-intro { text-align: center; padding: 20px; color: var(--muted); }
.match-intro .av { width: 90px; height: 90px; border-radius: 50%; overflow: hidden; margin: 0 auto 12px; }
.suggest { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.suggest button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; background: var(--card); }
.suggest button:hover { border-color: var(--pink); }

/* ---------- My profile ---------- */
.profile-grid { display: grid; grid-template-columns: 340px 1fr; gap: 28px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h3 { margin-bottom: 6px; }
.me-photo { height: 380px; border-radius: 16px; overflow: hidden; margin-bottom: 16px; position: relative; }
.completion { height: 8px; background: var(--bg2); border-radius: 8px; overflow: hidden; margin: 10px 0 6px; }
.completion i { display: block; height: 100%; background: var(--grad); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row small { display: block; color: var(--muted); margin-top: 2px; }
.switch { width: 46px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: left .2s; }
.switch.on { background: var(--pink); }
.switch.on::after { left: 23px; }
input[type=range] { padding: 0; accent-color: var(--pink); border: 0; background: transparent; }

/* ---------- Match overlay ---------- */
.match-overlay { position: fixed; inset: 0; z-index: 200; background: radial-gradient(circle at center, rgba(139,92,246,.5), rgba(10,6,20,.95) 70%); display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.match-overlay.open { display: flex; animation: fade .3s; }
.match-overlay h2 { font-size: 64px; font-style: italic; letter-spacing: -2px; font-weight: 900; }
.match-overlay p { color: #e2d9f7; margin: 8px 0 30px; }
.match-avs { display: flex; margin-bottom: 30px; }
.match-avs > div { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; border: 5px solid #fff; box-shadow: var(--shadow); }
.match-avs > div:first-child { transform: rotate(-8deg) translateX(20px); animation: slideL .6s; }
.match-avs > div:last-child { transform: rotate(8deg) translateX(-20px); animation: slideR .6s; }
@keyframes slideL { from { transform: translateX(-200px) rotate(-30deg); opacity: 0; } }
@keyframes slideR { from { transform: translateX(200px) rotate(30deg); opacity: 0; } }
.match-overlay .btn { min-width: 280px; margin: 6px; }
.confetti { position: fixed; top: -10px; width: 10px; height: 14px; z-index: 201; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--card2); border: 1px solid var(--line); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; min-width: 260px; animation: slideIn .3s; cursor: pointer; }
.toast .av { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.toast small { display: block; color: var(--muted); }
@keyframes slideIn { from { transform: translateX(120%); } }

.ph svg { width: 100%; height: 100%; display: block; }
.av svg, .ring svg { width: 100%; height: 100%; display: block; }

.mobile-nav { display: none; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { height: 460px; transform: scale(.85); transform-origin: top center; }
  .features, .testimonials { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding-bottom: 70px; }
  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg2); border-top: 1px solid var(--line); z-index: 50; justify-content: space-around; padding: 10px 0 14px; }
  .mobile-nav a { color: var(--muted); font-size: 22px; padding: 4px 12px; }
  .mobile-nav a.active { color: var(--pink); }
  .chat-layout { grid-template-columns: 1fr; height: calc(100vh - 210px); }
  .chat-layout.has-chat .convos { display: none; }
  .chat-layout:not(.has-chat) .chat { display: none; }
  .profile-grid { grid-template-columns: 1fr; }
  .topbar, .view { padding-left: 16px; padding-right: 16px; }
  .deck { height: 520px; }
}
.mobile-back { display: none; }
@media (max-width: 960px) { .mobile-back { display: grid; } }
@media (max-width: 600px) {
  .landing { overflow-x: hidden; }
  .hero-visual { width: 570px; max-width: none; height: 360px; margin-left: calc(50% - 285px); transform: scale(.6); transform-origin: top center; }
  .stats { gap: 22px; flex-wrap: wrap; }
}

/* ---------- Monetization ---------- */
.likes-left { font-size: 13px; color: var(--muted); padding: 8px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.boost-btn { color: var(--violet); }
.boost-btn.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 0 0 4px rgba(139,92,246,.25); }
.boost-timer { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--violet); white-space: nowrap; font-weight: 700; }
.ctrl { position: relative; }
.ctrl-count { position: absolute; top: -4px; right: -4px; background: #60a5fa; color: #fff; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; }
.ctrl-count:empty { display: none; }
.ad-card .ph { background: linear-gradient(160deg, #2a2140, #4a2a5e 60%, #ff4fa3); }
.ad-card .ad-tag { position: absolute; top: 18px; left: 18px; background: rgba(255,255,255,.9); color: #222; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 6px; letter-spacing: .5px; }
.ad-card .ad-body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 30px; gap: 12px; }
.ad-card .ad-body .big { font-size: 70px; }
.ad-card .ad-body h2 { font-size: 28px; }
.ad-card .ad-body p { color: #e9e3f7; line-height: 1.5; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; position: relative; }
.plan.hot { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink), 0 20px 40px rgba(255,79,163,.18); }
.plan .tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 20px; }
.plan .price { font-size: 30px; font-weight: 800; margin: 10px 0 2px; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; margin: 16px 0 20px; flex: 1; }
.plan li { padding: 6px 0; font-size: 14px; color: #ddd5f0; }
.plan li::before { content: "✓ "; color: var(--green); font-weight: 800; }
.plan li.no { color: var(--muted); text-decoration: line-through; }
.plan li.no::before { content: "– "; color: var(--muted); }
.plan .current { text-align: center; color: var(--green); font-weight: 700; padding: 12px; }
.durations { display: flex; gap: 6px; margin-top: 8px; }
.durations button { flex: 1; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); font-size: 12px; font-weight: 600; }
.durations button.on { border-color: var(--pink); background: rgba(255,79,163,.12); }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pack { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-align: center; cursor: pointer; transition: border-color .15s, transform .15s; }
.pack:hover { border-color: var(--pink); transform: translateY(-2px); }
.pack .ic { font-size: 30px; }
.pack b { display: block; margin: 6px 0 2px; }
.pack .per { color: var(--muted); font-size: 12px; }
.pack .pr { font-weight: 800; margin-top: 8px; font-size: 18px; }
.wallet { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.wallet > div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; min-width: 150px; }
.wallet b { font-size: 22px; display: block; }
.wallet span { color: var(--muted); font-size: 13px; }
.paybtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); font-weight: 700; margin-top: 10px; }
.paybtn:hover { border-color: var(--pink); }
.sandbox-note { font-size: 12px; color: var(--gold); background: rgba(255,207,92,.08); border: 1px solid rgba(255,207,92,.3); border-radius: 10px; padding: 8px 12px; margin-top: 14px; }
.blurred.unlocked .ph { filter: none; transform: none; }
.blurred .like-back { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.blurred .like-back button { flex: 1; padding: 7px; border-radius: 10px; background: rgba(10,6,20,.75); font-weight: 700; }
.blurred .nm-name { position: absolute; top: 8px; left: 10px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.pricing-landing .plan { text-align: left; }
