/* LoveSwipe app. White canvas, dark text, pink-to-orange gradient on primary actions. */
:root {
  --pink: #C80018;
  --orange: #B00018;
  --grad: #C80018;
  --ink: #111111;
  --muted: #6a6a6a;
  --line: #ececec;
  --bg: #ffffff;
  --card: #ffffff;
  --danger: #c62828;
  --shadow: 0 10px 28px rgba(17,17,17,.12);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 16px/1.45 Manrope, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
h1,h2,h3 { font-weight: 800; letter-spacing: -.02em; margin: 0 0 .4rem; }
a { color: var(--pink); }
.ico { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.lg { width: 28px; height: 28px; }
button.ico-btn, .ico-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: .55rem .9rem; cursor: pointer; min-height: 44px;
}
button.ico-btn:disabled { opacity: .45; cursor: not-allowed; }
.primary, button.ico-btn.primary, .ico-btn.primary { background: var(--grad); color: #fff; border-color: transparent; }
.primary .ico, button.ico-btn.primary .ico, .ico-btn.primary .ico { stroke: #fff; }
.ghost { background: transparent; }
.danger { color: var(--danger); border-color: #f3c7c7; }
.hidden { display: none !important; }
.screen { min-height: 100%; padding: calc(1rem + var(--safe-t)) 1rem calc(5.5rem + var(--safe-b)); max-width: 520px; margin: 0 auto; }
.screen.auth { padding-bottom: 2rem; display: flex; flex-direction: column; }
.brand-row { display: flex; align-items: center; gap: .7rem; margin: 1.4rem 0 1.5rem; }
.brand-row img { width: 48px; height: 48px; }
.brand-row h1 { margin: 0; font-size: 1.6rem; }
.lede { color: var(--muted); margin: 0 0 1rem; }
.field { display: flex; flex-direction: column; gap: .3rem; margin: 0 0 .9rem; }
.field label { font-size: .85rem; color: var(--muted); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; background: #fff; width: 100%;
}
.row { display: flex; gap: .6rem; }
.row > * { flex: 1; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 .8rem; font-size: .92rem; color: var(--muted); }
.check span { flex: 1; min-width: 0; }
.hint { color: var(--muted); font-size: .85rem; }
.err { color: var(--danger); font-size: .9rem; min-height: 1.2em; }
.tabs { display: flex; gap: .4rem; margin-bottom: 1rem; }
.tabs button { flex: 1; }
.age-line { margin: -.2rem 0 .8rem; color: var(--muted); font-size: .85rem; }

/* Discover: full-screen card stack */
.discover {
  height: 100dvh; max-width: 520px; margin: 0 auto;
  display: flex; flex-direction: column;
  padding: calc(.5rem + var(--safe-t)) .7rem calc(4.6rem + var(--safe-b));
}
.card-stage { position: relative; flex: 1; min-height: 280px; touch-action: none; }
.profile-card {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden;
  background: #1c1c1c; color: #fff; box-shadow: var(--shadow); user-select: none;
}
.profile-card img, .profile-card .ph {
  width: 100%; height: 100%; object-fit: cover; display: block; background: #2a2a2a;
}
.profile-card .meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3.2rem 1rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.76));
}
.profile-card h2 { color: #fff; font-size: 1.85rem; margin: 0 0 .15rem; }
.profile-card .dist { opacity: .9; font-size: .92rem; }
.card-more {
  position: absolute; top: .7rem; right: .7rem; z-index: 3;
  width: 40px; height: 40px; padding: 0; background: rgba(0,0,0,.35); border: 0; color: #fff;
}
.menu {
  position: absolute; top: 3.2rem; right: .7rem; z-index: 4;
  background: #fff; color: var(--ink); border-radius: 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; min-width: 160px; overflow: hidden;
}
.menu button { border: 0; background: none; text-align: left; padding: .75rem .9rem; min-height: 44px; }
.menu button:hover { background: #f7f7f7; }
.actions { display: flex; justify-content: center; align-items: center; gap: .7rem; margin: .85rem 0 .2rem; }
.actions .ico-btn { width: 54px; height: 54px; padding: 0; box-shadow: var(--shadow); background: #fff; border-color: #eee; color: var(--ink); }
.actions .btn-like { width: 64px; height: 64px; background: var(--grad); border-color: transparent; color: #fff; }
.actions .btn-like .ico { stroke: #fff; }
.actions .btn-peak { color: var(--pink); border-color: #ffd0e1; }
.nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around;
  padding: .3rem .4rem calc(.3rem + var(--safe-b));
  background: #fff; border-top: 1px solid var(--line); max-width: 520px; margin: 0 auto;
}
.nav button { flex: 1; flex-direction: column; border: 0; background: none; color: var(--muted); font-size: .7rem; gap: .1rem; min-height: 52px; border-radius: 12px; }
.nav button.on { color: var(--pink); }
.nav button.on .ico { stroke: var(--pink); }
.list { display: flex; flex-direction: column; gap: .55rem; }
.person {
  display: flex; gap: .75rem; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: .6rem; text-align: left; width: 100%; cursor: pointer;
}
.person img, .avatar { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: #eee; }
.chat { display: flex; flex-direction: column; height: calc(100dvh - var(--safe-t) - var(--safe-b)); max-width: 520px; margin: 0 auto; padding: calc(.6rem + var(--safe-t)) .8rem calc(.6rem + var(--safe-b)); }
.chat .head { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; position: relative; }
.chat .head h2 { flex: 1; margin: 0; font-size: 1.1rem; }
.bubble-log { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: .4rem; padding: .2rem 0 1rem; }
.bubble { max-width: 80%; padding: .55rem .75rem; border-radius: 16px; background: #f4f4f4; border: 1px solid transparent; }
.bubble.me { margin-left: auto; background: var(--grad); color: #fff; }
.composer { display: flex; gap: .4rem; }
.composer input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1rem; }
.photos { display: grid; grid-template-columns: repeat(3,1fr); gap: .45rem; }
.photos .slot { aspect-ratio: 3/4; border: 1px dashed var(--line); border-radius: 12px; overflow: hidden; position: relative; background: #fff; }
.photos .slot img { width: 100%; height: 100%; object-fit: cover; }
.badge { display: inline-block; font-size: .72rem; padding: .1rem .4rem; border-radius: 999px; background: #ffe0ec; color: #9b1048; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; margin: 0 0 1rem; }
.empty { text-align: center; color: var(--muted); padding: 2.4rem 1rem; }
.legal-mini { display: flex; flex-wrap: wrap; gap: .4rem .9rem; justify-content: center; margin: 1.4rem 0 0; font-size: .8rem; color: var(--muted); }
.legal-mini a { color: var(--muted); text-decoration: none; }
.legal-mini a:hover { text-decoration: underline; }
#toast { position: fixed; left: 50%; bottom: calc(5.2rem + var(--safe-b)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: .55rem .9rem; border-radius: 999px; font-size: .85rem; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 30; }
#toast.show { opacity: 1; }
.install-bar { display: flex; gap: .5rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .6rem .8rem; margin: 0 0 1rem; }

/* Match overlay */
.match {
  position: fixed; inset: 0; z-index: 25; background: var(--grad); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem 1.2rem calc(2rem + var(--safe-b)); text-align: center;
}
.match h2 { font-size: 2rem; color: #fff; margin: 0 0 .4rem; }
.match p { margin: 0 0 1.4rem; color: rgba(255,255,255,.92); }
.match-photos { display: flex; gap: 0; margin-bottom: 1.4rem; }
.match-photos img, .match-photos .ph {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid #fff;
  background: rgba(255,255,255,.25);
}
.match-photos img + img, .match-photos .ph + .ph, .match-photos img + .ph, .match-photos .ph + img { margin-left: -18px; }
.match .cta-row { display: flex; flex-direction: column; gap: .6rem; width: min(320px, 100%); }
.match .cta-row .ico-btn { width: 100%; background: #fff; color: var(--pink); border: 0; font-weight: 800; }
.match .cta-row .ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.checks{border:0;margin:0 0 1rem;padding:0;display:grid;gap:.35rem}
.checks legend{font-weight:700;margin-bottom:.3rem}
.wizard-overlay{position:fixed;inset:0;z-index:40;background:rgba(10,8,12,.55);display:flex;align-items:flex-end;justify-content:center;padding:1rem}
.wizard-card{width:min(440px,100%);background:#fff;color:#111;border-radius:22px 22px 16px 16px;padding:1rem 1rem 1.2rem;box-shadow:0 16px 40px rgba(0,0,0,.2)}
.wizard-card header{display:flex;align-items:center;justify-content:space-between;gap:.6rem}
.wizard-card h2{margin:0;font-size:1.1rem;display:flex;align-items:center;gap:.4rem}
.wiz-steps{display:flex;gap:.35rem;list-style:none;padding:0;margin:.6rem 0 1rem}
.wiz-steps li{flex:1;height:4px;border-radius:99px;background:#ececec}
.wiz-steps li.on{background:var(--pink,#C80018)}
.profile-card img, .match-photos img, .person img, img.avatar{width:100%;height:100%;object-fit:cover;display:block}
