/* ==========================================================
   Spicy — Persian dating app demo
   ========================================================== */
:root {
  --bg: #0e0709;
  --bg-2: #160b10;
  --surface: #1b1016;
  --surface-2: #24151d;
  --surface-3: #2e1b25;
  --line: rgba(255, 236, 228, 0.08);
  --line-2: rgba(255, 236, 228, 0.14);
  --text: #fff4ef;
  --muted: #b9a1a9;
  --dim: #7d6670;

  --chili: #ff2e55;
  --ember: #ff6a3d;
  --saffron: #ffc04a;
  --pom: #c2133f;
  --mint: #29e3a1;
  --sky: #4fc0ff;
  --violet: #a46bff;

  --grad: linear-gradient(135deg, #ff2e55 0%, #ff6a3d 55%, #ffc04a 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 46, 85, 0.18), rgba(255, 192, 74, 0.12));
  --gold: linear-gradient(135deg, #ffe29a 0%, #ffc04a 40%, #e8892c 100%);

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font: "Vazirmatn", system-ui, sans-serif;
  --display: "Lalezar", "Vazirmatn", sans-serif;
  --latin: "Fraunces", Georgia, serif;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Background ---------- */
.bg-orbs { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; animation: float 18s ease-in-out infinite; }
.o1 { width: 520px; height: 520px; background: #ff2e55; top: -160px; right: -120px; }
.o2 { width: 460px; height: 460px; background: #ff6a3d; bottom: -180px; left: 10%; animation-delay: -6s; opacity: 0.35; }
.o3 { width: 360px; height: 360px; background: #7a1dff; top: 30%; left: -140px; animation-delay: -12s; opacity: 0.25; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}
.bg-pattern {
  position: fixed; inset: 0; z-index: 0; opacity: 0.06; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M40 4l10 26 26 10-26 10-10 26-10-26L4 40l26-10z'/%3E%3Cpath d='M40 22l5 13 13 5-13 5-5 13-5-13-13-5 13-5z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Stage ---------- */
.stage {
  position: relative; z-index: 1; height: 100%;
  display: flex; align-items: center; justify-content: center; gap: clamp(40px, 7vw, 120px);
  padding: 24px;
}
.side { max-width: 460px; animation: rise 1s var(--ease) both; }
.side-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; direction: ltr; justify-content: flex-end; }
.side-logo .chili { font-size: 34px; animation: wiggle 3s ease-in-out infinite; }
.wordmark { font-family: var(--latin); font-style: italic; font-weight: 900; font-size: 40px; letter-spacing: -1px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.side-title { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 5.4vw, 76px); line-height: 1.15; margin-bottom: 18px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.side-lead { color: var(--muted); font-size: 16px; line-height: 2; margin-bottom: 28px; }
.side-feats { list-style: none; display: grid; gap: 14px; margin-bottom: 30px; }
.side-feats li { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); backdrop-filter: blur(10px); transition: transform 0.4s var(--ease), border-color 0.3s; }
.side-feats li:hover { transform: translateX(-6px); border-color: rgba(255, 106, 61, 0.4); }
.side-feats .fi { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--grad-soft); font-size: 20px; }
.side-feats b { display: block; font-weight: 700; font-size: 15px; }
.side-feats small { color: var(--muted); font-size: 13px; }
.side-stats { display: flex; gap: 28px; margin-bottom: 24px; }
.side-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.side-stats small { color: var(--muted); font-size: 13px; }
.side-hint { color: var(--dim); font-size: 14px; }

@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-14deg); } 20% { transform: rotate(10deg); } 30% { transform: rotate(0); } }

/* ---------- Phone ---------- */
.phone-wrap { animation: rise 1.1s 0.15s var(--ease) both; }
.phone {
  position: relative; width: 402px; height: 860px; max-height: calc(100vh - 48px);
  border-radius: 62px; padding: 12px;
  background: linear-gradient(145deg, #3a2a30, #120a0d 40%, #2a1d22);
  box-shadow: 0 0 0 1.5px #4d3a41, 0 50px 120px -20px rgba(255, 46, 85, 0.35), 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 2px #000;
}
.phone-btn { position: absolute; width: 4px; border-radius: 2px; background: #2a1d22; left: -4px; }
.phone-btn.b1 { top: 150px; height: 34px; }
.phone-btn.b2 { top: 210px; height: 64px; }
.phone-btn.b3 { top: 290px; height: 64px; }
.device { position: relative; width: 100%; height: 100%; border-radius: 50px; overflow: clip; background: var(--bg); isolation: isolate; }
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 122px; height: 35px; border-radius: 20px; background: #000; z-index: 60; }
.statusbar { position: absolute; top: 0; inset-inline: 0; height: 54px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; z-index: 55; font-weight: 700; font-size: 15px; direction: ltr; pointer-events: none; }
.sb-icons { display: flex; gap: 6px; align-items: center; }
.sb-icons svg { fill: currentColor; }
.batt { width: 25px; height: 12px; border: 1.5px solid currentColor; border-radius: 4px; padding: 1.5px; opacity: 0.9; position: relative; }
.batt::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 1px; background: currentColor; }
.batt i { display: block; height: 100%; width: 78%; background: currentColor; border-radius: 1.5px; }
.home-indicator { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.85); z-index: 70; pointer-events: none; }

.app { position: absolute; inset: 0; }

/* ---------- Screens & transitions ---------- */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); overflow: clip; }
.screen.enter { animation: screenIn 0.55s var(--ease) both; }
.screen.leave { animation: screenOut 0.45s var(--ease) both; pointer-events: none; }
.screen.enter-back { animation: screenInBack 0.55s var(--ease) both; }
.screen.leave-back { animation: screenOutBack 0.45s var(--ease) both; pointer-events: none; }
@keyframes screenIn { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes screenOut { to { transform: translateX(30%); opacity: 0.4; filter: brightness(0.5); } }
@keyframes screenInBack { from { transform: translateX(30%); opacity: 0.4; filter: brightness(0.5); } to { transform: none; opacity: 1; filter: none; } }
@keyframes screenOutBack { to { transform: translateX(-100%); } }
.fade-in { animation: fadeIn 0.5s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.scroll { flex: 1; overflow-y: auto; overflow-x: clip; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 24px; border-radius: 18px; font-weight: 800; font-size: 16px;
  transition: transform 0.25s var(--spring), box-shadow 0.3s, opacity 0.2s; overflow: hidden;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -8px rgba(255, 46, 85, 0.6); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); transform: translateX(-120%); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { transform: translateX(120%); } 100% { transform: translateX(-120%); } }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); transition: transform 0.25s var(--spring), background 0.2s; position: relative; }
.icon-btn:active { transform: scale(0.9); }
.icon-btn:hover { background: rgba(255, 255, 255, 0.09); }
.dot-badge { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--chili); box-shadow: 0 0 0 2px var(--bg); }

/* ---------- Splash ---------- */
.splash { align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #3b0d1c 0%, var(--bg) 70%); }
.splash-logo { position: relative; width: 120px; height: 120px; display: grid; place-items: center; border-radius: 36px; background: var(--grad); box-shadow: 0 20px 60px -10px rgba(255, 46, 85, 0.8); animation: pop 0.9s var(--spring) both; }
.splash-logo span { font-size: 60px; animation: wiggle 2.2s 0.8s ease-in-out infinite; }
.splash-logo::before, .splash-logo::after { content: ""; position: absolute; inset: -14px; border-radius: 46px; border: 2px solid rgba(255, 106, 61, 0.5); animation: ripple 2s ease-out infinite; }
.splash-logo::after { animation-delay: 1s; }
@keyframes ripple { from { transform: scale(0.9); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@keyframes pop { from { transform: scale(0.3) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.splash-word { margin-top: 30px; font-family: var(--latin); font-style: italic; font-weight: 900; font-size: 54px; letter-spacing: -1.5px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise 0.8s 0.35s var(--ease) both; }
.splash-fa { font-family: var(--display); font-size: 22px; color: var(--muted); animation: rise 0.8s 0.5s var(--ease) both; }
.splash-loader { position: absolute; bottom: 90px; width: 120px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.splash-loader i { display: block; height: 100%; width: 40%; background: var(--grad); border-radius: 4px; animation: load 1.2s ease-in-out infinite; }
@keyframes load { from { transform: translateX(160%); } to { transform: translateX(-260%); } }

/* ---------- Onboarding ---------- */
.onboard { background: #000; }
.ob-slides { position: absolute; inset: 0; }
.ob-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s var(--ease); }
.ob-slide.on { opacity: 1; }
.ob-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 7s linear; }
.ob-slide.on img { transform: scale(1); }
.ob-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 7, 9, 0.2) 0%, rgba(14, 7, 9, 0) 30%, rgba(14, 7, 9, 0.75) 58%, var(--bg) 82%); }
.ob-top { position: relative; z-index: 2; padding: 64px 24px 0; display: flex; justify-content: space-between; align-items: center; }
.ob-brand { display: flex; align-items: center; gap: 6px; direction: ltr; font-family: var(--latin); font-style: italic; font-weight: 900; font-size: 26px; }
.ob-skip { font-size: 14px; color: rgba(255, 255, 255, 0.8); padding: 8px 14px; border-radius: 30px; background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(10px); }
.ob-bottom { position: absolute; bottom: 0; inset-inline: 0; z-index: 2; padding: 0 26px 46px; }
.ob-floating { position: absolute; z-index: 2; padding: 10px 14px; border-radius: 16px; background: rgba(20, 10, 14, 0.55); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.12); display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; animation: bob 4s ease-in-out infinite; }
.ob-floating img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.ob-floating.f1 { top: 200px; left: 22px; }
.ob-floating.f2 { top: 300px; right: 22px; animation-delay: -2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.ob-title { font-family: var(--display); font-weight: 400; font-size: 42px; line-height: 1.3; margin-bottom: 10px; }
.ob-text { color: var(--muted); line-height: 1.9; font-size: 15px; margin-bottom: 26px; min-height: 58px; }
.ob-txt-anim { animation: fadeIn 0.6s var(--ease) both; }
.ob-dots { display: flex; gap: 6px; margin-bottom: 24px; }
.ob-dots i { height: 6px; width: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.25); transition: width 0.5s var(--ease), background 0.4s; }
.ob-dots i.on { width: 28px; background: var(--grad); }
.ob-actions { display: grid; gap: 12px; }
.terms { text-align: center; font-size: 11.5px; color: var(--dim); margin-top: 16px; line-height: 1.8; }
.terms u { color: var(--muted); }

/* ---------- Auth ---------- */
.auth { padding: 70px 24px 40px; }
.auth-back { margin-bottom: 30px; }
.auth h2 { font-family: var(--display); font-weight: 400; font-size: 36px; margin-bottom: 8px; }
.auth p.sub { color: var(--muted); line-height: 1.9; margin-bottom: 32px; font-size: 15px; }
.phone-field { display: flex; align-items: center; height: 64px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line-2); transition: border-color 0.3s, box-shadow 0.3s; direction: ltr; overflow: hidden; }
.phone-field:focus-within { border-color: var(--ember); box-shadow: 0 0 0 5px rgba(255, 106, 61, 0.15); }
.phone-field .cc { white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 100%; border-right: 1px solid var(--line-2); font-weight: 700; }
.phone-field input { flex: 1; height: 100%; background: none; border: 0; outline: 0; padding: 0 16px; font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.phone-field input::placeholder { color: var(--dim); letter-spacing: 1px; font-weight: 500; }
.auth .btn { margin-top: 24px; }
.auth-alt { margin-top: 26px; display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 13px; }
.auth-alt::before, .auth-alt::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.social { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.social .btn { margin: 0; height: 52px; font-weight: 600; font-size: 14px; }
.otp { display: flex; gap: 10px; direction: ltr; justify-content: center; }
.otp input { width: 56px; height: 66px; border-radius: 18px; text-align: center; font-size: 26px; font-weight: 800; background: var(--surface); border: 1.5px solid var(--line-2); outline: 0; transition: border-color 0.25s, transform 0.25s var(--spring), box-shadow 0.25s; }
.otp input:focus { border-color: var(--ember); box-shadow: 0 0 0 5px rgba(255, 106, 61, 0.15); transform: translateY(-3px); }
.otp input.filled { border-color: var(--chili); background: var(--surface-2); }
.otp.shake { animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
.otp-meta { text-align: center; margin-top: 22px; color: var(--muted); font-size: 14px; }
.otp-meta b { color: var(--saffron); }
.otp-hint { text-align: center; margin-top: 10px; font-size: 12.5px; color: var(--dim); }

/* ---------- Main app shell ---------- */
.shell { padding-top: 54px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 10px; }
.topbar .brand { display: flex; align-items: center; gap: 4px; direction: ltr; font-family: var(--latin); font-style: italic; font-weight: 900; font-size: 30px; letter-spacing: -1px; }
.topbar .brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }
.topbar .actions { display: flex; gap: 8px; }
.page-title { font-family: var(--display); font-weight: 400; font-size: 30px; }

.tab-body { flex: 1; position: relative; overflow: hidden; }
.tab { position: absolute; inset: 0; display: flex; flex-direction: column; }
.tab.enter { animation: tabIn 0.45s var(--ease) both; }
@keyframes tabIn { from { opacity: 0; transform: translateY(14px) scale(0.99); } to { opacity: 1; transform: none; } }

.navbar {
  position: relative; display: flex; justify-content: space-around; align-items: center;
  height: 84px; padding: 0 10px 22px; background: rgba(14, 7, 9, 0.85); backdrop-filter: blur(20px); border-top: 1px solid var(--line);
}
.nav-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 62px; padding-top: 10px; color: var(--dim); font-size: 11px; font-weight: 600; transition: color 0.3s; }
.nav-item svg.i { width: 24px; height: 24px; transition: transform 0.4s var(--spring); }
.nav-item.on { color: var(--text); }
.nav-item.on svg.i { transform: translateY(-2px) scale(1.12); stroke: url(#g-spicy); }
.nav-item.on svg.i.fillable { fill: url(#g-spicy); stroke: none; }
.nav-item .nbadge { position: absolute; top: 4px; right: 16px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--chili); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.nav-ind { position: absolute; top: 0; left: 0; height: 3px; width: 34px; border-radius: 0 0 4px 4px; background: var(--grad); transition: transform 0.5s var(--spring); box-shadow: 0 4px 14px rgba(255, 46, 85, 0.8); }

/* ---------- Discover ---------- */
.chips-row { display: flex; gap: 8px; padding: 0 18px 12px; overflow-x: auto; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--muted); transition: all 0.3s var(--ease); }
.chip.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px -6px rgba(255, 46, 85, 0.7); }

.deck { position: relative; flex: 1; margin: 0 14px; }
.card {
  position: absolute; inset: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7); touch-action: none; user-select: none; will-change: transform;
  transition: transform 0.5s var(--ease), opacity 0.4s, filter 0.5s;
}
.card.dragging { transition: none; cursor: grabbing; }
.card.behind-1 { transform: translateY(14px) scale(0.95); filter: brightness(0.6); }
.card.behind-2 { transform: translateY(28px) scale(0.9); filter: brightness(0.4); }
.card.top { cursor: grab; z-index: 5; }
.card .photo { position: absolute; inset: 0; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; animation: kenburns 12s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1%, -1%); } }
.card .photo img.swap { animation: photoSwap 0.45s var(--ease) both; }
@keyframes photoSwap { from { opacity: 0.2; transform: scale(1.08); } to { opacity: 1; transform: scale(1.02); } }
.card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 18%, transparent 45%, rgba(10, 4, 7, 0.65) 70%, rgba(10, 4, 7, 0.96) 100%); pointer-events: none; }
.card .bars { position: absolute; top: 10px; inset-inline: 12px; display: flex; gap: 5px; z-index: 3; direction: ltr; }
.card .bars i { flex: 1; height: 3.5px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.card .bars i.on { background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, 0.6); }
.card .badges { position: absolute; top: 24px; inset-inline: 14px; display: flex; justify-content: space-between; z-index: 3; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 20px; background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(12px); font-size: 12px; font-weight: 700; border: 1px solid rgba(255, 255, 255, 0.12); }
.pill .live { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(41, 227, 161, 0.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(41, 227, 161, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(41, 227, 161, 0); } 100% { box-shadow: 0 0 0 0 rgba(41, 227, 161, 0); } }
.pill.hot { background: linear-gradient(135deg, rgba(255, 46, 85, 0.85), rgba(255, 106, 61, 0.85)); border-color: transparent; }
.card .info { position: absolute; bottom: 0; inset-inline: 0; padding: 18px 20px 20px; z-index: 3; }
.card .name { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.2; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5); }
.card .name .age { font-family: var(--font); font-weight: 300; font-size: 30px; opacity: 0.95; }
.verified { width: 24px; height: 24px; color: var(--sky); filter: drop-shadow(0 0 8px rgba(79, 192, 255, 0.6)); }
.verified svg.i { width: 24px; height: 24px; fill: var(--sky); stroke: #fff; }
.card .meta { display: flex; gap: 14px; color: rgba(255, 255, 255, 0.85); font-size: 13.5px; margin-top: 4px; }
.card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.card .meta svg.i { width: 15px; height: 15px; }
.card .bio { font-size: 14px; line-height: 1.85; color: rgba(255, 255, 255, 0.88); margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { height: 28px; padding: 0 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.1); }
.tag.shared { background: rgba(255, 106, 61, 0.25); border-color: rgba(255, 106, 61, 0.55); color: #ffd7c7; }
.card .more { position: absolute; left: 18px; bottom: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(10px); z-index: 4; transition: transform 0.3s var(--spring); }
.card .more:hover { transform: rotate(-90deg) scale(1.08); }
.card .more svg.i { width: 18px; height: 18px; transform: rotate(-90deg); }

.stamp { position: absolute; top: 60px; z-index: 6; padding: 4px 14px; border: 4px solid; border-radius: 12px; font-family: var(--latin); font-style: italic; font-weight: 900; font-size: 38px; letter-spacing: 2px; opacity: 0; pointer-events: none; text-transform: uppercase; direction: ltr; }
.stamp.like { left: 24px; color: var(--mint); border-color: var(--mint); transform: rotate(-16deg); text-shadow: 0 0 20px rgba(41, 227, 161, 0.6); }
.stamp.nope { right: 24px; color: var(--chili); border-color: var(--chili); transform: rotate(16deg); text-shadow: 0 0 20px rgba(255, 46, 85, 0.6); }
.stamp.super { left: 50%; top: auto; bottom: 200px; transform: translateX(-50%) rotate(-6deg); color: var(--sky); border-color: var(--sky); font-size: 30px; }
.card .tint { position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none; }

.deck-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.radar { position: relative; width: 170px; height: 170px; display: grid; place-items: center; margin-bottom: 26px; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 46, 85, 0.6); animation: ripple 2.4s ease-out infinite; }
.radar i:nth-child(2) { animation-delay: 0.8s; }
.radar i:nth-child(3) { animation-delay: 1.6s; }
.radar img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); box-shadow: 0 0 0 3px var(--chili); position: relative; }
.deck-empty h3 { font-family: var(--display); font-weight: 400; font-size: 26px; margin-bottom: 6px; }
.deck-empty p { color: var(--muted); font-size: 14px; line-height: 1.9; margin-bottom: 20px; }

.actions-row { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 0 14px; }
.act { display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.7); transition: transform 0.3s var(--spring), box-shadow 0.3s, background 0.3s; }
.act:hover { transform: translateY(-3px) scale(1.06); }
.act:active { transform: scale(0.88); }
.act.sm { width: 48px; height: 48px; }
.act.lg { width: 64px; height: 64px; }
.act.sm svg.i { width: 22px; height: 22px; }
.act.lg svg.i { width: 30px; height: 30px; stroke-width: 2.6; }
.act.rewind { color: var(--saffron); }
.act.nope { color: var(--chili); }
.act.super { color: var(--sky); }
.act.super svg.i { fill: var(--sky); stroke: none; }
.act.like { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 14px 30px -8px rgba(255, 46, 85, 0.75); }
.act.like svg.i { fill: #fff; stroke: none; }
.act.boost { color: var(--violet); }
.act.boost svg.i { fill: var(--violet); stroke: none; }
.act.nope:hover { background: rgba(255, 46, 85, 0.12); }
.act.super:hover { background: rgba(79, 192, 255, 0.12); }
.act.bump { animation: bump 0.45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.25); } }

/* ---------- Profile detail sheet ---------- */
.detail { position: absolute; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; animation: sheetUp 0.55s var(--ease) both; }
.detail.closing { animation: sheetDown 0.4s var(--ease) both; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { to { transform: translateY(100%); } }
.detail-hero { position: relative; height: 520px; flex-shrink: 0; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3), transparent 25%, transparent 60%, var(--bg)); }
.detail-close { position: absolute; top: 60px; left: 18px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(12px); }
.detail-body { padding: 0 22px 130px; margin-top: -70px; position: relative; }
.detail-body .name { font-family: var(--display); font-size: 40px; display: flex; align-items: center; gap: 8px; }
.detail-body .name .age { font-family: var(--font); font-weight: 300; font-size: 32px; }
.d-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.d-meta .tag { background: var(--surface-2); }
.d-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 14px; }
.d-card h4 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.d-card p { line-height: 2; font-size: 15px; }
.prompt-card { background: var(--grad-soft); border-color: rgba(255, 106, 61, 0.25); }
.prompt-card p { font-family: var(--display); font-size: 22px; line-height: 1.6; }
.d-photo { border-radius: var(--r); overflow: hidden; margin-bottom: 14px; height: 380px; }
.d-photo img { width: 100%; height: 100%; object-fit: cover; }
.compat { display: flex; align-items: center; gap: 16px; }
.ring { --p: 80; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ember) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); position: relative; flex-shrink: 0; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.ring b { position: relative; font-size: 18px; font-weight: 900; }
.detail-actions { position: absolute; bottom: 0; inset-inline: 0; display: flex; justify-content: center; gap: 18px; padding: 18px 0 34px; background: linear-gradient(transparent, var(--bg) 40%); z-index: 3; }

/* ---------- Match overlay ---------- */
.match { position: absolute; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; overflow: hidden; background: radial-gradient(circle at 50% 40%, rgba(255, 46, 85, 0.55), rgba(14, 7, 9, 0.96) 65%); backdrop-filter: blur(14px); animation: fadeIn 0.4s both; }
.match.closing { animation: fadeOut 0.35s both; }
@keyframes fadeOut { to { opacity: 0; } }
.match-title { font-family: var(--latin); font-style: italic; font-weight: 900; font-size: 58px; line-height: 1; letter-spacing: -2px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(255, 46, 85, 0.7)); animation: pop 0.8s 0.1s var(--spring) both; direction: ltr; }
.match-fa { font-family: var(--display); font-size: 30px; margin-top: 4px; animation: rise 0.6s 0.3s var(--ease) both; }
.match-sub { color: var(--muted); margin: 6px 0 32px; font-size: 14.5px; animation: rise 0.6s 0.4s var(--ease) both; }
.match-pics { position: relative; height: 210px; width: 280px; margin-bottom: 40px; }
.match-pics img { position: absolute; top: 0; width: 150px; height: 200px; object-fit: cover; border-radius: 24px; border: 4px solid #fff; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); }
.match-pics .p1 { right: 0; animation: slideL 0.9s 0.2s var(--spring) both; }
.match-pics .p2 { left: 0; animation: slideR 0.9s 0.2s var(--spring) both; }
@keyframes slideL { from { transform: translateX(160px) rotate(0); opacity: 0; } to { transform: translateX(-12px) rotate(8deg); opacity: 1; } }
@keyframes slideR { from { transform: translateX(-160px) rotate(0); opacity: 0; } to { transform: translateX(12px) rotate(-8deg); opacity: 1; } }
.match-heart { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); width: 64px; height: 64px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.15), 0 10px 30px rgba(255, 46, 85, 0.8); animation: heartPop 0.7s 0.8s var(--spring) both, beat 1.2s 1.6s infinite; z-index: 2; }
.match-heart svg.i { fill: #fff; stroke: none; width: 30px; height: 30px; }
@keyframes heartPop { from { transform: translateX(-50%) scale(0); } to { transform: translateX(-50%) scale(1); } }
@keyframes beat { 0%, 100% { transform: translateX(-50%) scale(1); } 15% { transform: translateX(-50%) scale(1.15); } 30% { transform: translateX(-50%) scale(1); } 45% { transform: translateX(-50%) scale(1.1); } }
.match-input { width: 100%; display: flex; gap: 8px; padding: 6px; border-radius: 22px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2); margin-bottom: 14px; animation: rise 0.6s 0.6s var(--ease) both; }
.match-input input { flex: 1; background: none; border: 0; outline: 0; padding: 0 12px; font-size: 14.5px; }
.match-input button { width: 46px; height: 46px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; }
.match-input svg.i { width: 20px; height: 20px; transform: scaleX(-1); }
.match .btn-ghost { animation: rise 0.6s 0.7s var(--ease) both; }
.particle { position: absolute; pointer-events: none; font-size: 22px; top: 50%; left: 50%; animation: burst 1.8s var(--ease) forwards; }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(var(--s)) rotate(var(--r)); opacity: 0; } }
.float-heart { position: absolute; bottom: -40px; pointer-events: none; animation: floatUp linear forwards; }
@keyframes floatUp { to { transform: translateY(-1000px) rotate(30deg); opacity: 0; } }

/* ---------- Likes tab ---------- */
.gold-banner { margin: 6px 18px 16px; padding: 18px; border-radius: 22px; background: var(--gold); color: #3a1d00; position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; }
.gold-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%); animation: shine 3s ease-in-out infinite; }
.gold-banner .crown { width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, 0.35); display: grid; place-items: center; flex-shrink: 0; }
.gold-banner .crown svg.i { width: 28px; height: 28px; stroke: #6b3300; fill: rgba(255,255,255,.4); }
.gold-banner b { display: block; font-size: 16px; font-weight: 900; }
.gold-banner small { font-size: 12.5px; font-weight: 600; opacity: 0.8; }
.grid-likes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 18px 24px; }
.like-tile { position: relative; height: 230px; border-radius: 22px; overflow: hidden; animation: fadeIn 0.5s var(--ease) both; cursor: pointer; }
.like-tile img { width: 100%; height: 100%; object-fit: cover; filter: blur(14px) saturate(1.2); transform: scale(1.2); transition: filter 0.6s var(--ease), transform 0.6s var(--ease); }
.like-tile.revealed img { filter: none; transform: scale(1); }
.like-tile .shade { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.75)); }
.like-tile .lt-info { position: absolute; bottom: 12px; inset-inline: 12px; display: flex; justify-content: space-between; align-items: end; }
.like-tile .lt-info b { font-family: var(--display); font-weight: 400; font-size: 20px; }
.like-tile .lt-lock { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(6px); transition: opacity 0.4s; }
.like-tile.revealed .lt-lock { opacity: 0; }
.like-tile .lt-super { position: absolute; top: 10px; right: 10px; }
.like-tile .lt-super.pill { background: rgba(79, 192, 255, 0.85); }

.section-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 18px 12px; }
.section-h h3 { font-size: 16px; font-weight: 800; }
.section-h a { font-size: 13px; color: var(--ember); font-weight: 600; cursor: pointer; }

/* ---------- Chats ---------- */
.search { margin: 4px 18px 16px; height: 46px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--dim); }
.search input { flex: 1; background: none; border: 0; outline: 0; font-size: 14px; }
.search svg.i { width: 18px; height: 18px; }
.new-matches { display: flex; gap: 14px; padding: 0 18px 18px; overflow-x: auto; scrollbar-width: none; }
.new-matches::-webkit-scrollbar { display: none; }
.nm { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer; animation: fadeIn 0.5s var(--ease) both; }
.nm .av { position: relative; width: 70px; height: 70px; border-radius: 50%; padding: 3px; background: var(--grad); transition: transform 0.3s var(--spring); }
.nm:hover .av { transform: scale(1.06); }
.nm .av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }
.nm .av.seen { background: var(--surface-3); }
.nm.likes .av { background: var(--gold); display: grid; place-items: center; }
.nm.likes .av span { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg); display: grid; place-items: center; background: #3a2000 center/cover; position: relative; overflow: hidden; }
.nm.likes .av span::before { content: ""; position: absolute; inset: 0; background: inherit; filter: blur(6px); transform: scale(1.3); }
.nm.likes .av b { position: relative; z-index: 1; font-size: 18px; font-weight: 900; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.online-dot { position: absolute; bottom: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--mint); border: 3px solid var(--bg); }

.conv { display: flex; align-items: center; gap: 14px; padding: 12px 18px; cursor: pointer; transition: background 0.25s; animation: fadeIn 0.5s var(--ease) both; position: relative; }
.conv:hover { background: rgba(255, 255, 255, 0.03); }
.conv .av { position: relative; width: 60px; height: 60px; flex-shrink: 0; }
.conv .av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.conv .c-body { flex: 1; min-width: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.conv .c-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.conv .c-name { font-weight: 800; font-size: 15.5px; display: flex; align-items: center; gap: 5px; }
.conv .c-name svg.i { width: 16px; height: 16px; fill: var(--sky); stroke: #fff; }
.conv .c-time { font-size: 12px; color: var(--dim); }
.conv .c-msg { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.conv.unread .c-msg { color: var(--text); font-weight: 600; }
.conv.unread .c-time { color: var(--ember); font-weight: 700; }
.unread-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--grad); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.your-turn { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 8px; background: rgba(255, 192, 74, 0.15); color: var(--saffron); flex-shrink: 0; }
.typing-txt { color: var(--mint) !important; font-weight: 600; }

/* ---------- Chat screen ---------- */
.chat-head { display: flex; align-items: center; gap: 12px; padding: 60px 14px 12px; border-bottom: 1px solid var(--line); background: rgba(14, 7, 9, 0.85); backdrop-filter: blur(20px); z-index: 2; }
.chat-head .av { position: relative; width: 44px; height: 44px; }
.chat-head .av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.chat-head .who { flex: 1; min-width: 0; }
.chat-head .who b { display: flex; align-items: center; gap: 5px; font-size: 16px; font-weight: 800; }
.chat-head .who b svg.i { width: 16px; height: 16px; fill: var(--sky); stroke: #fff; }
.chat-head .who small { font-size: 12px; color: var(--mint); }
.chat-head .icon-btn { width: 40px; height: 40px; border-radius: 12px; }
.chat-head .icon-btn svg.i { width: 19px; height: 19px; }
.messages { flex: 1; overflow-y: auto; padding: 18px 14px 10px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: none; background: radial-gradient(circle at 80% 0%, rgba(255, 46, 85, 0.08), transparent 50%); }
.messages::-webkit-scrollbar { display: none; }
.match-note { align-self: center; text-align: center; margin: 4px 0 18px; }
.match-note .pics { display: flex; justify-content: center; margin-bottom: 10px; }
.match-note .pics img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }
.match-note .pics img + img { margin-right: -16px; }
.match-note b { font-family: var(--display); font-weight: 400; font-size: 20px; display: block; }
.match-note small { color: var(--dim); font-size: 12px; }
.day-sep { align-self: center; font-size: 11.5px; color: var(--dim); padding: 4px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); margin: 8px 0; }
.msg { max-width: 76%; padding: 10px 14px; border-radius: 20px; font-size: 14.5px; line-height: 1.75; position: relative; animation: msgIn 0.4s var(--spring) both; word-wrap: break-word; }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px) scale(0.9); } to { opacity: 1; transform: none; } }
.msg.me { align-self: flex-start; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; transform-origin: right bottom; }
.msg.them { align-self: flex-end; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; transform-origin: left bottom; }
.msg .t { display: flex; align-items: center; gap: 3px; font-size: 10.5px; opacity: 0.7; margin-top: 2px; justify-content: flex-end; }
.msg .t svg.i { width: 14px; height: 14px; }
.msg.emoji { background: none !important; border: 0; font-size: 46px; padding: 0 4px; line-height: 1.2; }
.msg .react { position: absolute; bottom: -12px; left: 8px; font-size: 13px; background: var(--surface-3); border: 2px solid var(--bg); border-radius: 12px; padding: 0 5px; animation: pop 0.5s var(--spring) both; }
.msg.date-card { padding: 0; overflow: hidden; width: 230px; background: var(--surface-2); border: 1px solid var(--line); }
.msg.date-card img { width: 100%; height: 120px; object-fit: cover; }
.msg.date-card .dc { padding: 10px 14px 12px; }
.msg.date-card .dc b { display: block; font-size: 14px; }
.msg.date-card .dc small { color: var(--muted); font-size: 12px; }
.typing { align-self: flex-end; display: flex; gap: 4px; padding: 14px 16px; border-radius: 20px; border-bottom-left-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); animation: msgIn 0.3s var(--spring) both; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }
.icebreakers { display: flex; gap: 8px; padding: 8px 14px; overflow-x: auto; scrollbar-width: none; }
.icebreakers::-webkit-scrollbar { display: none; }
.icebreakers button { flex-shrink: 0; padding: 8px 14px; border-radius: 16px; font-size: 13px; background: var(--grad-soft); border: 1px solid rgba(255, 106, 61, 0.3); color: #ffd7c7; transition: transform 0.25s var(--spring); }
.icebreakers button:active { transform: scale(0.94); }
.composer { display: flex; align-items: center; gap: 8px; padding: 8px 12px 34px; }
.composer .field { flex: 1; display: flex; align-items: center; gap: 6px; height: 48px; border-radius: 24px; padding: 0 6px 0 14px; background: var(--surface); border: 1px solid var(--line-2); transition: border-color 0.25s; }
.composer .field:focus-within { border-color: rgba(255, 106, 61, 0.6); }
.composer input { flex: 1; background: none; border: 0; outline: 0; font-size: 14.5px; min-width: 0; }
.composer .ghost { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.composer .ghost svg.i { width: 20px; height: 20px; }
.composer .send { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); box-shadow: 0 8px 20px -6px rgba(255, 46, 85, 0.7); transition: transform 0.3s var(--spring); flex-shrink: 0; }
.composer .send:active { transform: scale(0.85) rotate(-20deg); }
.composer .send svg.i { width: 20px; height: 20px; transform: scaleX(-1); }
.emoji-bar { display: flex; gap: 4px; padding: 0 14px; justify-content: space-between; }
.emoji-bar button { font-size: 24px; padding: 4px; border-radius: 10px; transition: transform 0.25s var(--spring); }
.emoji-bar button:hover { transform: scale(1.3) translateY(-3px); }

/* ---------- Profile tab ---------- */
.me-hero { display: flex; flex-direction: column; align-items: center; padding: 6px 18px 18px; text-align: center; }
.me-av { position: relative; width: 132px; height: 132px; margin-bottom: 14px; }
.me-av svg.prog { position: absolute; inset: 0; transform: rotate(-90deg); }
.me-av svg.prog circle { fill: none; stroke-width: 5; stroke-linecap: round; }
.me-av svg.prog .track { stroke: rgba(255, 255, 255, 0.08); }
.me-av svg.prog .val { stroke: url(#g-spicy); stroke-dasharray: 390; stroke-dashoffset: 390; transition: stroke-dashoffset 1.6s var(--ease); }
.me-av img { position: absolute; inset: 11px; width: calc(100% - 22px); height: calc(100% - 22px); border-radius: 50%; object-fit: cover; }
.me-av .pct { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 12px; background: var(--grad); font-size: 12px; font-weight: 800; box-shadow: 0 0 0 3px var(--bg); white-space: nowrap; }
.me-av .edit { position: absolute; top: 6px; left: 2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--chili); box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.me-av .edit svg.i { width: 17px; height: 17px; }
.me-hero h2 { font-family: var(--display); font-weight: 400; font-size: 30px; display: flex; align-items: center; gap: 6px; }
.me-hero p { color: var(--muted); font-size: 13.5px; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 18px 16px; }
.me-stats div { padding: 14px 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.me-stats b { display: block; font-size: 22px; font-weight: 900; }
.me-stats small { color: var(--muted); font-size: 12px; }
.me-stats .s1 b { color: var(--chili); } .me-stats .s2 b { color: var(--sky); } .me-stats .s3 b { color: var(--violet); }
.gold-card { margin: 0 18px 18px; padding: 20px; border-radius: 24px; background: linear-gradient(135deg, #2a1608, #1a0d06); border: 1px solid rgba(255, 192, 74, 0.35); position: relative; overflow: hidden; cursor: pointer; }
.gold-card::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(rgba(255, 192, 74, 0.35), transparent 70%); top: -80px; left: -60px; }
.gold-card .gc-top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.gold-card .gc-name { font-family: var(--latin); font-style: italic; font-weight: 900; font-size: 26px; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; direction: ltr; }
.gold-card p { position: relative; color: #e8c99a; font-size: 13.5px; margin: 6px 0 14px; line-height: 1.8; }
.gold-card .btn { height: 44px; font-size: 14px; background: var(--gold); color: #3a1d00; position: relative; }
.list { margin: 0 18px 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 15px 16px; cursor: pointer; transition: background 0.2s; }
.list-item + .list-item { border-top: 1px solid var(--line); }
.list-item:hover { background: rgba(255, 255, 255, 0.03); }
.list-item .li-ic { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; }
.list-item .li-ic svg.i { width: 18px; height: 18px; }
.list-item span { flex: 1; font-size: 14.5px; font-weight: 600; }
.list-item small { color: var(--dim); font-size: 12.5px; }
.list-item > svg.i { width: 18px; height: 18px; color: var(--dim); transform: scaleX(-1); }
.switch { width: 46px; height: 28px; border-radius: 14px; background: var(--surface-3); position: relative; transition: background 0.3s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.35s var(--spring); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.switch.on { background: var(--mint); }
.switch.on::after { transform: translateX(-18px); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 18px 18px; }
.gallery div { aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; position: relative; background: var(--surface); border: 1.5px dashed var(--line-2); display: grid; place-items: center; color: var(--dim); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .add { color: var(--ember); }

/* ---------- Bottom sheet ---------- */
.sheet-bg { position: absolute; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); animation: fadeIn 0.3s both; }
.sheet { position: absolute; bottom: 0; inset-inline: 0; z-index: 71; background: var(--bg-2); border-radius: 32px 32px 0 0; border-top: 1px solid var(--line-2); padding: 12px 22px 40px; animation: sheetUp 0.5s var(--ease) both; max-height: 88%; overflow-y: auto; scrollbar-width: none; }
.sheet.closing { animation: sheetDown 0.35s var(--ease) both; }
.sheet-bg.closing { animation: fadeOut 0.35s both; }
.sheet .grab { width: 42px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 18px; }
.sheet h3 { font-family: var(--display); font-weight: 400; font-size: 26px; margin-bottom: 18px; }
.f-group { margin-bottom: 24px; }
.f-label { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 700; margin-bottom: 14px; }
.f-label b { color: var(--ember); font-weight: 800; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.seg button { height: 42px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--muted); position: relative; z-index: 1; transition: color 0.3s; }
.seg button.on { color: #fff; }
.seg .seg-ind { position: absolute; top: 4px; bottom: 4px; width: calc((100% - 8px) / 3); right: 4px; border-radius: 12px; background: var(--grad); transition: transform 0.45s var(--spring); }
.range { position: relative; height: 30px; direction: ltr; }
.range .track { position: absolute; top: 13px; inset-inline: 0; height: 5px; border-radius: 3px; background: var(--surface-3); }
.range .fill { position: absolute; top: 13px; height: 5px; border-radius: 3px; background: var(--grad); }
.range input { position: absolute; inset: 0; width: 100%; appearance: none; -webkit-appearance: none; background: none; pointer-events: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 5px solid var(--ember); pointer-events: auto; cursor: grab; box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.range input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 5px solid var(--ember); pointer-events: auto; cursor: grab; }
.int-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.int-grid .chip { cursor: pointer; }

/* Gold plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.plan { padding: 16px 8px; border-radius: 20px; text-align: center; background: var(--surface); border: 2px solid var(--line); cursor: pointer; transition: all 0.35s var(--spring); position: relative; }
.plan.on { border-color: var(--saffron); background: rgba(255, 192, 74, 0.08); transform: translateY(-4px); }
.plan b { display: block; font-size: 28px; font-weight: 900; }
.plan small { color: var(--muted); font-size: 12px; display: block; }
.plan .price { margin-top: 8px; font-weight: 800; font-size: 13.5px; color: var(--saffron); }
.plan .save { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 8px; background: var(--grad); white-space: nowrap; }
.perks { display: grid; gap: 12px; margin-bottom: 20px; }
.perks div { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.perks div span { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 192, 74, 0.12); font-size: 17px; }
.gold-title { font-family: var(--latin); font-style: italic; font-weight: 900; font-size: 34px; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; direction: ltr; margin-top: 4px; }
.btn-gold { background: var(--gold); color: #3a1d00; box-shadow: 0 12px 30px -8px rgba(255, 192, 74, 0.6); }

/* ---------- Toast ---------- */
.toast { position: absolute; top: 58px; left: 50%; z-index: 90; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 20px; background: rgba(36, 21, 29, 0.92); backdrop-filter: blur(16px); border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 14px 30px rgba(0,0,0,.5); animation: toastIn 0.5s var(--spring) both; }
.toast.out { animation: toastOut 0.35s var(--ease) both; }
.toast img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.toast .ti { font-size: 18px; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -30px) scale(0.9); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, -20px) scale(0.95); } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) { .side { display: none; } }
@media (max-width: 500px) {
  .stage { padding: 0; }
  .phone { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; padding: 0; box-shadow: none; background: none; }
  .phone-btn, .island, .statusbar, .home-indicator { display: none; }
  .device { border-radius: 0; }
  .bg-orbs, .bg-pattern { display: none; }
  .shell { padding-top: max(10px, env(safe-area-inset-top)); }
  .chat-head { padding-top: max(14px, env(safe-area-inset-top)); }
  .auth { padding-top: 36px; }
  .ob-top { padding-top: 30px; }
  .detail-close { top: 24px; }
  .toast { top: 16px; }
  .navbar { height: 72px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .composer { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}
@media (max-height: 760px) and (min-width: 501px) {
  .card .bio { -webkit-line-clamp: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
