/* ─────────────────────────────────────────────────
   MEET WITMA — Global Styles
   ───────────────────────────────────────────────── */

:root {
  --bg:      #07070F;
  --bg2:     #0D0D1E;
  --bg3:     #14142A;
  --bg4:     #1A1A35;
  --card:    #14142A;
  --text:    #F0F0FF;
  --muted:   #6B6B9A;
  --border:  rgba(124, 58, 237, 0.18);
  --pink:    #F0449A;
  --pink2:   #e0307f;
  --purple:  #7C3AED;
  --cyan:    #06B6D4;
  --blue:    #3B82F6;
  --green:   #22c55e;
  --gold:    #f59e0b;
  --gradient: linear-gradient(135deg, #06B6D4 0%, #7C3AED 50%, #F0449A 100%);
  --grad-btn: linear-gradient(135deg, #7C3AED, #F0449A);
  --glow:    rgba(124, 58, 237, 0.35);
  --radius:   16px;
  --radius-sm:8px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%; background: var(--bg); color: var(--text);
  overflow: hidden; overscroll-behavior: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Page system ───────────────────────────────── */
.page {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: opacity .25s, transform .25s;
}
.page.hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }
.page.slide-left.hidden { transform: translateX(-100%); }
.page.slide-right.hidden { transform: translateX(100%); }

/* ── Setup screen / not configured ────────────── */
#pg-setup-supabase {
  align-items: center; justify-content: center; text-align: center; gap: 16px;
  padding: 32px;
}
#pg-setup-supabase h2 { font-size: 22px; }
#pg-setup-supabase code {
  background: var(--bg3); padding: 8px 16px; border-radius: 8px;
  font-size: 13px; color: var(--gold); word-break: break-all;
  display: block; text-align: left; max-width: 380px; margin: 0 auto;
}

/* ── Scrollable pages ──────────────────────────── */
.scroll-page { overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ── Typography ────────────────────────────────── */
h1 { font-size: clamp(28px, 8vw, 42px); font-weight: 800; letter-spacing: -.5px; }
h2 { font-size: clamp(22px, 5vw, 28px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p  { line-height: 1.6; color: var(--muted); }

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px; font-size: 16px; font-weight: 600;
  cursor: pointer; border: none; transition: all .2s ease;
  -webkit-tap-highlight-color: transparent; text-decoration: none;
}
.btn:active { transform: scale(.96); }
.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  border: none;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.6);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--purple);
  background: rgba(124, 58, 237, 0.12);
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--purple);
  background: rgba(124, 58, 237, 0.12);
}
.btn-sm      { padding: 10px 20px; font-size: 14px; }
.btn-full    { width: 100%; }
.btn:disabled { opacity: .45; pointer-events: none; }

/* ── Input ─────────────────────────────────────── */
.input-wrap { position: relative; width: 100%; }
input[type=text], input[type=tel], input[type=number], textarea, select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  font-family: 'Inter', sans-serif;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.1);
  outline: none;
}
textarea { resize: none; min-height: 100px; }
.input-prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 16px; pointer-events: none;
}

/* ── OTP boxes ─────────────────────────────────── */
.otp-row { display: flex; gap: 10px; justify-content: center; }
.otp-box {
  width: 52px; height: 60px; text-align: center; font-size: 22px; font-weight: 700;
  background: var(--bg3); border: 1px solid rgba(124,58,237,0.25); border-radius: 12px;
  color: var(--text);
}
.otp-box:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,182,212,0.1); outline: none; }

/* ── Cookie banner ─────────────────────────────── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 20px 20px calc(20px + var(--safe-bot));
  transform: translateY(100%); transition: transform .3s ease;
}
#cookie-banner.show { transform: translateY(0); }
.cookie-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.cookie-desc  { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.cookie-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.cookie-toggle {
  background: var(--bg3); border-radius: 10px; padding: 10px 12px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 500; cursor: pointer;
}
.cookie-toggle span { color: var(--muted); font-size: 11px; }
.toggle-switch {
  width: 36px; height: 20px; border-radius: 10px; background: var(--bg);
  position: relative; transition: background .2s; flex-shrink: 0;
}
.toggle-switch.on  { background: var(--cyan); }
.toggle-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: left .2s;
}
.toggle-switch.on::after { left: 18px; }
.toggle-switch.disabled { opacity: .5; pointer-events: none; }
.cookie-btns { display: flex; gap: 10px; }
.cookie-btns .btn { flex: 1; padding: 12px 16px; font-size: 14px; }

/* ── Age gate ──────────────────────────────────── */
#pg-age-gate {
  align-items: center; justify-content: center; text-align: center;
  padding: 40px 24px; gap: 20px;
}
.age-icon { font-size: 64px; margin-bottom: 8px; }

/* ── Landing page ──────────────────────────────── */
#pg-landing { overflow-y: auto; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.landing-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; background: rgba(7,7,15,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.landing-logo { display: flex; align-items: center; }
.landing-nav-btns { display: flex; gap: 10px; }

/* ── Horizontal Logo ───────────────────────────── */
.mw-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.mw-logo-icon {
  mix-blend-mode: screen;   /* black bg becomes transparent */
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.mw-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 1px;
}
.mw-logo-meet {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}
.mw-logo-witma {
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  line-height: 1;
}

/* Size variants */
.mw-logo--sm .mw-logo-icon  { height: 48px; width: 48px; }
.mw-logo--sm .mw-logo-meet  { font-size: 10px; }
.mw-logo--sm .mw-logo-witma { font-size: 22px; }

.mw-logo--lg .mw-logo-icon  { height: 72px; width: 72px; }
.mw-logo--lg .mw-logo-meet  { font-size: 13px; letter-spacing: 4px; }
.mw-logo--lg .mw-logo-witma { font-size: 34px; }

.hero {
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 24px 60px; text-align: center; gap: 24px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(124,58,237,.18), transparent),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(240,68,154,.12), transparent),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(6,182,212,.10), transparent);
  animation: hero-pulse 8s ease-in-out infinite alternate;
}
@keyframes hero-pulse {
  0%   { opacity: 0.8; }
  50%  { opacity: 1; }
  100% { opacity: 0.7; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(13,13,30,0.8);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 50px; padding: 6px 16px; font-size: 13px; color: var(--muted);
  backdrop-filter: blur(12px);
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.hero h1 { max-width: 560px; }
.hero-gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { max-width: 420px; font-size: 18px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-phones {
  display: flex; align-items: center; justify-content: center;
  gap: -20px; margin-top: 40px; position: relative; height: 320px;
}
.phone-mock {
  width: 140px; height: 280px; border-radius: 28px;
  background: var(--card); border: 1px solid var(--border);
  overflow: hidden; position: absolute; box-shadow: 0 24px 64px rgba(0,0,0,.6);
  transition: transform .3s;
}
.phone-mock img { width: 100%; height: 100%; object-fit: cover; }
.phone-mock-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  background: linear-gradient(160deg, var(--bg3), var(--bg2));
}

/* Card fan */
.phone-mock:nth-child(1) { transform: rotate(-16deg) translateX(-110px) translateY(20px); z-index: 1; }
.phone-mock:nth-child(2) { transform: rotate(-8deg)  translateX(-55px)  translateY(8px);  z-index: 2; }
.phone-mock:nth-child(3) { transform: rotate(0deg)   translateX(0px)    translateY(0px);  z-index: 3; }
.phone-mock:nth-child(4) { transform: rotate(8deg)   translateX(55px)   translateY(8px);  z-index: 2; }
.phone-mock:nth-child(5) { transform: rotate(16deg)  translateX(110px)  translateY(20px); z-index: 1; }

.section { padding: 80px 24px; max-width: 900px; margin: 0 auto; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-sub { font-size: 18px; max-width: 480px; }

.witma-strip {
  background: linear-gradient(135deg, rgba(6,182,212,.1), rgba(124,58,237,.12), rgba(240,68,154,.08));
  border: 1px solid rgba(124,58,237,.25);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(124,58,237,.15);
}
.witma-badge-big {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  background: var(--grad-btn);
  border-radius: 50px; padding: 6px 20px; font-size: 14px; font-weight: 700;
  box-shadow: 0 0 20px rgba(124,58,237,0.4);
}

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 24px; margin-top: 40px; }
.step-card {
  background: rgba(13,13,30,0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(124,58,237,0.1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(124,58,237,0.25);
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
  box-shadow: 0 0 20px rgba(124,58,237,0.4);
}
.step-card h3 { margin-bottom: 8px; }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; margin-top: 40px; }
.tier-card {
  background: rgba(13,13,30,0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tier-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(124,58,237,0.2);
}
.tier-card.popular { border-color: var(--purple); box-shadow: 0 0 30px rgba(124,58,237,0.2); }
.tier-card.popular::before {
  content: 'En Popüler'; position: absolute; top: 16px; right: -28px;
  background: var(--grad-btn); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 40px; transform: rotate(35deg);
}
.tier-name  { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.tier-price { font-size: 32px; font-weight: 800; margin: 12px 0 4px; }
.tier-price span { font-size: 14px; color: var(--muted); font-weight: 400; }
.tier-features { list-style: none; margin: 16px 0 24px; display: flex; flex-direction: column; gap: 8px; }
.tier-features li { font-size: 14px; color: var(--muted); display: flex; gap: 8px; }
.tier-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

.landing-footer {
  padding: 40px 24px; border-top: 1px solid var(--border);
  text-align: center; color: var(--muted); font-size: 13px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ── Auth ───────────────────────────────────────── */
#pg-auth {
  align-items: center; justify-content: center; padding: 24px;
}
.auth-card {
  width: 100%; max-width: 400px;
  background: rgba(13,13,30,0.9);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 60px rgba(124,58,237,0.15);
}
.auth-logo { display: flex; justify-content: center; margin-bottom: 24px; }
.auth-title   { font-size: 22px; font-weight: 700; text-align: center; }
.auth-sub     { font-size: 14px; color: var(--muted); text-align: center; }
.phone-row    { display: flex; gap: 10px; }
.country-code {
  width: 80px; flex-shrink: 0; background: var(--bg3);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 12px; font-size: 16px; color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 4px;
}
.auth-back { background: none; border: none; color: var(--muted); font-size: 14px; cursor: pointer; text-align: center; }
.resend-row { display: flex; align-items: center; justify-content: center; gap: 8px; }
.resend-btn { background: none; border: none; color: var(--cyan); font-size: 14px; cursor: pointer; font-weight: 600; }
.resend-btn:disabled { color: var(--muted); pointer-events: none; }

/* ── Setup Wizard v2 ──────────────────────────────── */
#pg-setup { overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; }
.setup-hdr {
  padding: calc(10px + var(--safe-top)) 20px 10px;
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(var(--bg) 85%, transparent);
}
.setup-hdr-back {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--bg3); color: var(--text); font-size: 18px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.setup-prg-wrap { flex: 1; }
.setup-prg-track { height: 3px; background: rgba(124,58,237,0.15); border-radius: 2px; margin-bottom: 8px; }
.setup-prg-fill { height: 100%; border-radius: 2px; background: var(--gradient); transition: width .4s cubic-bezier(.4,0,.2,1); }
.setup-prg-dots { display: flex; gap: 4px; }
.setup-prg-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--bg3); transition: all .3s ease; flex-shrink: 0; }
.setup-prg-dot.active { background: var(--cyan); width: 16px; border-radius: 3px; }
.setup-prg-dot.done { background: var(--purple); }
.setup-hdr-lbl { font-size: 12px; color: var(--muted); font-weight: 700; min-width: 28px; text-align: right; }
.setup-body { flex: 1; padding: 4px 20px 48px; max-width: 520px; margin: 0 auto; width: 100%; }
.setup-step { animation: setupSlideIn .22s ease forwards; }
.setup-step.hidden { display: none !important; }
@keyframes setupSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.setup-step-ico { font-size: 44px; display: block; margin-bottom: 8px; }
.setup-title { font-size: 26px; font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
.setup-sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }
.setup-sec-lbl { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; margin-top: 4px; }
.optional-tag { font-size: 10px; font-weight: 500; background: var(--bg3); color: var(--muted); padding: 2px 7px; border-radius: 4px; text-transform: none; letter-spacing: 0; vertical-align: middle; margin-left: 4px; }

/* Option cards (gender, goal, looking) */
.opt-cards { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-card {
  flex: 1 1 calc(50% - 4px); min-width: 0; padding: 13px 16px;
  border-radius: 10px; background: var(--bg2); border: 1.5px solid var(--border);
  cursor: pointer; transition: border-color .14s, background .14s;
  display: flex; align-items: center; gap: 10px;
  -webkit-tap-highlight-color: transparent;
}
.opt-card:active { opacity: .8; }
.opt-card.selected {
  border-color: var(--cyan);
  background: rgba(6,182,212,0.08);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 16px rgba(6,182,212,0.15);
}
.opt-lbl { font-size: 14px; font-weight: 500; color: var(--text); }
.opt-card.selected .opt-lbl { font-weight: 700; color: var(--cyan); }
.opt-cards.wide .opt-card { flex: 1 1 100%; gap: 12px; }
.opt-card-title { font-size: 14px; font-weight: 600; }
.opt-card-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.opt-card.selected .opt-card-title { color: var(--cyan); }

/* Chip groups */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 16px; border-radius: 50px; font-size: 13px; font-weight: 600;
  background: var(--bg3); border: 1.5px solid var(--border); cursor: pointer;
  transition: all .15s; -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.chip.selected { background: var(--grad-btn); border-color: transparent; color: #fff; }
.chip:active { transform: scale(.95); }

/* Setup form */
.setup-form { display: flex; flex-direction: column; gap: 22px; }
.setup-field { display: flex; flex-direction: column; gap: 8px; }
.setup-field > label { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.field-counter { font-size: 11px; color: var(--muted); text-align: right; }
/* DOB selects */
.dob-row { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 8px; }
.dob-sel {
  background: var(--bg3); border: 1px solid rgba(124,58,237,0.25); border-radius: 10px;
  color: var(--text); font-size: 14px; padding: 11px 10px; cursor: pointer;
  outline: none; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237C3AED' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-right: 28px;
  font-family: 'Inter', sans-serif;
}
.dob-sel:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,182,212,0.1); }
.dob-hint { font-size: 13px; color: var(--purple); font-weight: 600; margin-top: 4px; }
.height-row { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.height-val { font-size: 24px; font-weight: 800; min-width: 70px; }
input[type=range] {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 3px; outline: none;
  background: linear-gradient(90deg, var(--cyan) var(--pct,50%), var(--bg3) var(--pct,50%));
  cursor: pointer;
  border: none;
  box-shadow: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5); cursor: pointer;
}

/* Interest grid */
.interest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.int-item {
  padding: 14px 8px; border-radius: 12px; text-align: center;
  background: var(--bg3); border: 2px solid transparent; cursor: pointer;
  transition: all .15s; -webkit-tap-highlight-color: transparent;
}
.int-item .int-ico { font-size: 26px; display: block; margin-bottom: 5px; }
.int-item .int-lbl { font-size: 11px; font-weight: 600; color: var(--muted); display: block; }
.int-item.selected { border-color: var(--cyan); background: rgba(6,182,212,.08); box-shadow: 0 0 12px rgba(6,182,212,0.15); }
.int-item.selected .int-lbl { color: var(--text); }
.int-item:active { transform: scale(.95); }

/* Lang grid */
.lang-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-item {
  padding: 10px 14px; border-radius: 50px; font-size: 13px; font-weight: 600;
  background: var(--bg3); border: 1.5px solid var(--border); cursor: pointer;
  transition: all .15s; -webkit-tap-highlight-color: transparent;
  display: flex; align-items: center; gap: 6px;
}
.lang-item.selected { background: var(--grad-btn); border-color: transparent; color: #fff; }

/* Photo grid v2 */
.photo-grid-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-slot {
  aspect-ratio: 3/4; border-radius: 12px;
  background: var(--bg3); border: 2px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; position: relative;
  font-size: 28px; color: var(--muted); transition: border-color .2s;
}
.photo-slot:first-child { border-color: var(--cyan); }
.photo-slot:hover { border-color: var(--purple); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .remove-photo {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,.75); border: none; color: #fff; font-size: 12px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.photo-tips { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.photo-tip { font-size: 12px; color: var(--muted); }

/* Profile completion card */
.completion-card {
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(6,182,212,0.1));
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 16px;
  padding: 18px;
  margin: 16px 0;
}
.completion-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.completion-lbl { font-size: 14px; font-weight: 700; }
.completion-pct { font-size: 22px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.completion-track { height: 8px; background: var(--bg3); border-radius: 4px; overflow: hidden; margin-bottom: 10px; }
.completion-fill { height: 100%; border-radius: 4px; background: var(--gradient); transition: width .6s ease; }
.completion-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.ctag { font-size: 11px; padding: 3px 8px; border-radius: 6px; font-weight: 600; cursor: pointer; }
.ctag-done { background: rgba(6,182,212,.12); color: var(--cyan); }
.ctag-miss { background: var(--bg3); color: var(--muted); border: 1px dashed var(--border); }

/* ── Main App Shell ────────────────────────────── */
#pg-app {
  display: flex; flex-direction: column; background: var(--bg);
}
.app-header {
  padding: calc(16px + var(--safe-top)) 20px 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.app-logo { display: flex; align-items: center; }
.app-header-btns { display: flex; gap: 8px; }
.icon-btn {
  height: 40px; min-height: 40px; padding: 0 14px; border-radius: 20px; background: var(--bg3);
  border: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  letter-spacing: .3px;
}

.tab-content { flex: 1; overflow: hidden; position: relative; }
.tab-pane {
  position: absolute; inset: 0; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column;
}
.tab-pane.hidden { display: none; }

.bottom-nav {
  flex-shrink: 0; display: flex;
  background: rgba(10,10,20,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 8px 0 calc(8px + var(--safe-bot));
}
.nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 13px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase;
  padding: 14px 0; -webkit-tap-highlight-color: transparent;
  transition: color .15s;
}
.nav-btn.active { color: var(--cyan); }
.nav-badge {
  position: relative; display: inline-block;
}
.nav-badge::after {
  content: ''; position: absolute; top: -2px; right: -6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); border: 2px solid var(--bg2);
  display: none;
}
.nav-badge.has-badge::after { display: block; }
.nav-badge[data-count]::before {
  content: attr(data-count);
  position: absolute; top: -8px; right: -12px;
  background: var(--pink); color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 10px; padding: 1px 5px; min-width: 16px; text-align: center;
  border: 2px solid var(--bg);
}

/* ── Swipe Tab ─────────────────────────────────── */
#tab-swipe {
  align-items: center; padding: 0 0 16px;
}
.swipe-stack {
  flex: 1; width: 100%; max-width: 420px; margin: 0 auto;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.swipe-actions {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 16px 24px; flex-shrink: 0;
}
.action-btn {
  border: none; cursor: pointer; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.action-btn:active { transform: scale(.9); box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.action-nope  { width: 60px; height: 60px; background: #1e1e28; font-size: 24px; }
.action-super { width: 52px; height: 52px; background: #1a1e2e; font-size: 20px; }
.action-like  { width: 60px; height: 60px; background: #1e2820; font-size: 24px; }
.action-rewind{ width: 44px; height: 44px; background: #1e1e28; font-size: 18px; }
.action-boost { width: 44px; height: 44px; background: #1e1e28; font-size: 18px; }

/* ── Swipe Card ────────────────────────────────── */
.swipe-card {
  position: absolute; width: calc(100% - 32px); max-width: 380px;
  height: min(65vh, 540px); border-radius: 20px; overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(124,58,237,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.1);
  cursor: grab; user-select: none; -webkit-user-select: none;
  touch-action: none;
  will-change: transform;
}
.swipe-card:active { cursor: grabbing; }
.swipe-card.back-card { transform: scale(.94) translateY(16px) !important; z-index: 1 !important; }
.swipe-card.back2-card { transform: scale(.88) translateY(28px) !important; z-index: 0 !important; }
.swipe-card.front-card { z-index: 10; }
.card-img {
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.card-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #2a2a38, #1a1a22);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
}
.card-gradient {
  position: absolute; bottom: 0; left: 0; right: 0; height: 65%;
  background: linear-gradient(to top, rgba(0,0,0,.95), rgba(0,0,0,.6) 40%, transparent);
}
.card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 20px 24px;
}
.card-name { font-size: 26px; font-weight: 800; line-height: 1.1; }
.card-name span { font-size: 22px; font-weight: 400; color: rgba(255,255,255,.8); }
.card-meta { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 4px; }
.card-online { font-size: 12px; display: flex; align-items: center; gap: 5px; }
.card-online::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); display: inline-block; flex-shrink: 0; }
.card-online.online { color: var(--cyan); }
.card-online.online::before { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.card-bio  { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 8px; line-height: 1.4; }
.card-interests { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.card-interest-tag {
  background: rgba(255,255,255,.12); backdrop-filter: blur(4px);
  border-radius: 50px; padding: 4px 10px; font-size: 12px;
}
.card-witma-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--grad-btn);
  border-radius: 50px; padding: 4px 10px; font-size: 11px; font-weight: 700;
  box-shadow: 0 0 12px rgba(124,58,237,0.4);
}

/* Like / Nope / Super stamps */
.stamp {
  position: absolute; top: 28px; border: 4px solid;
  border-radius: 8px; padding: 6px 14px;
  font-size: 28px; font-weight: 900; letter-spacing: 3px;
  transform: rotate(-20deg); opacity: 0; transition: opacity .1s;
  pointer-events: none;
}
.stamp-like  { left: 16px;  color: var(--green); border-color: var(--green); transform: rotate(-15deg); }
.stamp-nope  { right: 16px; color: var(--pink2); border-color: var(--pink2); transform: rotate(15deg); }
.stamp-super { left: 50%; transform: translateX(-50%) rotate(-5deg); color: var(--blue); border-color: var(--blue); top: auto; bottom: 100px; }

/* Tokat (slap left) animation */
@keyframes tokat {
  0%   { transform: translateX(0) rotate(var(--start-rot, 0deg)); }
  15%  { transform: translateX(-40px) rotate(calc(var(--start-rot, 0deg) - 5deg)); }
  35%  { transform: translateX(15px) rotate(calc(var(--start-rot, 0deg) + 3deg)); }
  100% { transform: translateX(-160vw) rotate(-35deg); }
}
/* Yanak çek (cheek pull right) animation */
@keyframes yanak-cek {
  0%   { transform: translateX(0) rotate(var(--start-rot, 0deg)) translateY(0); }
  30%  { transform: translateX(40px) rotate(calc(var(--start-rot, 0deg) + 5deg)) translateY(-15px); }
  100% { transform: translateX(160vw) rotate(20deg) translateY(-50px); }
}
/* Super like animation */
@keyframes super-fly {
  0%   { transform: translateX(0) translateY(0) rotate(var(--start-rot, 0deg)); }
  100% { transform: translateX(0) translateY(-160vh) rotate(5deg); }
}
/* Snap back */
@keyframes snap-back {
  0%   { transform: var(--snap-from); }
  60%  { transform: translateX(0) rotate(0deg) scale(1.02); }
  100% { transform: translateX(0) rotate(0deg) scale(1); }
}

.swipe-card.anim-tokat    { animation: tokat    .45s cubic-bezier(.4,0,.2,1) forwards; }
.swipe-card.anim-yanak    { animation: yanak-cek .4s cubic-bezier(.4,0,.2,1) forwards; }
.swipe-card.anim-super    { animation: super-fly .4s cubic-bezier(.4,0,.2,1) forwards; }
.swipe-card.anim-snapback { animation: snap-back .35s cubic-bezier(.34,1.56,.64,1) forwards; }

/* Card photo pagination dots */
.card-dots {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; gap: 4px; pointer-events: none;
}
.card-dot {
  flex: 1; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.35);
  transition: background .2s;
}
.card-dot.active { background: rgba(255,255,255,.9); }

/* Empty state */
.empty-swipe {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center; padding: 40px; height: 100%;
}
.empty-swipe .big-emoji { font-size: 64px; }

/* ── Matches Tab ───────────────────────────────── */
#tab-matches { padding: 16px; }
.matches-header { padding: 0 0 16px; }
.matches-header h2 { font-size: 22px; font-weight: 800; }
.matches-scroll {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.matches-scroll::-webkit-scrollbar { display: none; }
.match-bubble { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.match-avatar {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--cyan); position: relative;
}
.match-avatar img { width: 100%; height: 100%; object-fit: cover; }
.match-avatar-placeholder { width: 100%; height: 100%; background: var(--grad-btn); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.match-name { font-size: 12px; font-weight: 600; color: var(--muted); }
.match-name.unread { color: var(--text); }

.conversations { display: flex; flex-direction: column; gap: 0; }
.conversation-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.conv-avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.conv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.conv-avatar-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,var(--bg3),var(--bg2)); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-size: 16px; font-weight: 600; }
.conv-last { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.conv-last.unread { color: var(--text); font-weight: 600; }
.conv-time { font-size: 12px; color: var(--muted); flex-shrink: 0; }

/* ── Chat Room ─────────────────────────────────── */
#pg-chat {
  display: flex; flex-direction: column;
  background: var(--bg); z-index: 200;
}
.chat-header {
  padding: calc(12px + var(--safe-top)) 16px 12px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
  background: var(--bg2);
}
.chat-back-btn {
  width: 36px; height: 36px; border-radius: 50%; background: var(--bg3);
  border: none; color: var(--text); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.chat-peer-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.chat-peer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-peer-info { flex: 1; }
.chat-peer-name  { font-size: 16px; font-weight: 700; }
.chat-peer-sub   { font-size: 12px; color: var(--muted); }
.chat-actions { display: flex; gap: 8px; }

.messages-list {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 8px;
}
.msg-group { display: flex; flex-direction: column; gap: 2px; }
.msg-bubble {
  max-width: 72%; border-radius: 18px; padding: 10px 14px;
  font-size: 15px; line-height: 1.5; position: relative;
  word-break: break-word;
}
.msg-bubble.mine {
  background: var(--grad-btn);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}
.msg-bubble.theirs {
  background: var(--bg3);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}
.msg-time { font-size: 11px; color: var(--muted); padding: 0 4px; }
.msg-time.mine  { text-align: right; }
.msg-time.theirs{ text-align: left; }
.msg-translation {
  font-size: 12px; color: rgba(255,255,255,.65); margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 4px;
}
.msg-translation.theirs-t { color: var(--muted); border-color: var(--border); }
.msg-translation.mine-t { color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.1); font-style: italic; }
.witma-mode-bar {
  background: linear-gradient(90deg, rgba(6,182,212,0.15), rgba(124,58,237,0.15));
  border-bottom: 1px solid rgba(6,182,212,0.2);
  padding: 8px 16px; text-align: center;
  font-size: 12px; font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.5px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.witma-toggle {
  background: rgba(6,182,212,0.15);
  border: 1px solid rgba(6,182,212,0.3);
  color: var(--cyan);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.chat-input-row {
  padding: 12px 16px calc(12px + var(--safe-bot));
  display: flex; align-items: flex-end; gap: 10px;
  border-top: 1px solid var(--border); flex-shrink: 0;
  background: var(--bg2);
}
.chat-input {
  flex: 1; background: var(--bg3); border: 1.5px solid var(--border);
  border-radius: 24px; padding: 10px 16px; font-size: 15px;
  color: var(--text); outline: none; resize: none; max-height: 120px;
  line-height: 1.4; transition: border-color .2s;
}
.chat-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,182,212,0.1); }
.send-btn {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-btn);
  border: none; color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 0 16px rgba(124,58,237,0.4);
}
.send-btn:active { transform: scale(.9); }

/* ── Match Overlay ─────────────────────────────── */
#ov-match {
  position: fixed; inset: 0; z-index: 500;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(0,0,0,.85); backdrop-filter: blur(8px);
  gap: 24px; padding: 32px;
}
#ov-match.hidden { display: none; }
@keyframes match-pop {
  0%   { transform: scale(0) rotate(-10deg); opacity: 0; }
  60%  { transform: scale(1.1) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.match-text-anim { animation: match-pop .5s cubic-bezier(.34,1.56,.64,1) both; }
.match-title {
  font-size: 38px; font-weight: 900; text-align: center;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.match-sub { color: var(--muted); text-align: center; font-size: 16px; }
.match-avatars { display: flex; align-items: center; gap: 20px; }
.match-av {
  width: 100px; height: 100px; border-radius: 50%; overflow: hidden;
  border: 4px solid var(--cyan); animation: match-pop .5s .1s cubic-bezier(.34,1.56,.64,1) both;
  box-shadow: 0 0 24px rgba(6,182,212,0.4);
}
.match-av img { width: 100%; height: 100%; object-fit: cover; }
.match-av-placeholder { width: 100%; height: 100%; background: var(--grad-btn); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.match-heart { font-size: 32px; }
.match-btns { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }

/* confetti particles */
.confetti {
  position: absolute; width: 8px; height: 8px; border-radius: 2px;
  animation: confetti-fall linear forwards;
  pointer-events: none;
}
@keyframes confetti-fall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ── Profile Tab ───────────────────────────────── */
#tab-profile { padding: 0; }
.profile-top {
  position: relative; height: 260px; overflow: hidden;
}
.profile-top-img { width: 100%; height: 100%; object-fit: cover; }
.profile-top-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,var(--bg3),var(--bg2)); display: flex; align-items: center; justify-content: center; font-size: 80px; }
.profile-top-gradient {
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(to top, var(--bg), transparent);
}
.profile-info { padding: 0 20px 20px; }
.profile-name {
  font-size: 26px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.profile-sub  { color: var(--muted); font-size: 14px; margin-top: 4px; }
.profile-bio  { color: var(--muted); font-size: 15px; margin-top: 12px; line-height: 1.5; }
.profile-section { margin-top: 20px; }
.profile-section-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

.settings-list { display: flex; flex-direction: column; gap: 0; }
.settings-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
  border-radius: 8px;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
}
.settings-item:last-child { border-bottom: none; }
.settings-item:hover { background: rgba(124,58,237,0.08); }
.settings-icon { font-size: 20px; width: 32px; text-align: center; flex-shrink: 0; }
.settings-text { flex: 1; }
.settings-text strong { display: block; font-size: 15px; }
.settings-text span { font-size: 13px; color: var(--muted); }
.settings-chevron { color: var(--purple); opacity: 0.7; font-size: 16px; }

/* ── Premium Page ──────────────────────────────── */
#pg-premium { overflow-y: auto; }
.premium-header {
  padding: calc(16px + var(--safe-top)) 20px 16px;
  display: flex; align-items: center; gap: 16px;
  border-bottom: 1px solid var(--border);
}
.premium-hero {
  text-align: center; padding: 40px 24px 24px;
  background: linear-gradient(180deg, rgba(124,58,237,.12), transparent);
}
.premium-crown { font-size: 56px; margin-bottom: 12px; }
.crown-star {
  font-size: 64px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(124,58,237,0.5));
}

/* ── Legal pages ───────────────────────────────── */
#pg-legal { overflow-y: auto; }
.legal-header {
  padding: calc(16px + var(--safe-top)) 20px 16px;
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.legal-back {
  width: 36px; height: 36px; border-radius: 50%; background: var(--bg3);
  border: none; color: var(--text); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.legal-content { padding: 24px 20px; }
.legal-content h2 { font-size: 22px; margin-bottom: 20px; }
.legal-content h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.legal-content p  { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.legal-content ul { font-size: 14px; color: var(--muted); padding-left: 20px; margin-bottom: 12px; }
.legal-content ul li { margin-bottom: 6px; }

/* ── Toast notification ────────────────────────── */
#toast {
  position: fixed; bottom: calc(80px + var(--safe-bot)); left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 50px; padding: 10px 20px; font-size: 14px;
  z-index: 1000; opacity: 0; transition: opacity .25s, transform .25s;
  white-space: nowrap; pointer-events: none; max-width: calc(100vw - 48px);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Loading spinner ───────────────────────────── */
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--cyan);
  animation: spin .7s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Misc ──────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 8px 0; }
.centered { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: 40px; text-align: center; }
.text-muted { color: var(--muted); }
.text-pink { color: var(--pink); }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.w-full { width: 100%; } .hidden { display: none !important; }

@media (max-width: 380px) {
  .auth-card { padding: 28px 20px; }
  .swipe-card { height: min(60vh, 480px); }
}

/* ── Language Picker ───────────────────────────── */
.lang-picker { position: relative; }
.lang-trigger {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 20px; padding: 7px 13px;
  font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text);
  transition: border-color .2s, background .2s; white-space: nowrap;
}
.lang-trigger:hover { border-color: var(--purple); background: var(--bg4); }
.lang-trigger-inline {
  background: transparent; border: none; padding: 4px 0;
}
.lang-arrow { font-size: 10px; opacity: .6; }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; overflow-y: auto; max-height: 300px;
  min-width: 210px; z-index: 9000;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  display: none;
}
.lang-dropdown.open { display: block; }
.lang-dropdown-up { top: auto; bottom: calc(100% + 8px); }
.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; cursor: pointer; font-size: 14px;
  transition: background .12s; border-radius: 8px; margin: 2px 4px;
}
.lang-option:hover { background: var(--bg3); }
.lang-option.active { background: rgba(124,58,237,.18); color: var(--cyan); }
.lo-check { margin-left: auto; font-size: 12px; color: var(--cyan); }

/* ── RTL support ───────────────────────────────── */
[dir="rtl"] .landing-nav,
[dir="rtl"] .app-header,
[dir="rtl"] .settings-item,
[dir="rtl"] .conversation-item,
[dir="rtl"] .chat-header { flex-direction: row-reverse; }
[dir="rtl"] .msg-bubble.mine { border-radius: 18px 4px 18px 18px; margin-left: 0; margin-right: auto; }
[dir="rtl"] .msg-bubble.theirs { border-radius: 4px 18px 18px 18px; margin-right: 0; margin-left: auto; }
[dir="rtl"] .msg-group { align-items: flex-start; }
[dir="rtl"] .msg-group:has(.mine) { align-items: flex-end; }
[dir="rtl"] .bottom-nav { direction: rtl; }
[dir="rtl"] .settings-chevron { transform: rotate(180deg); }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
