:root {
  --paper: #fdf6ef;
  --card: #ffffff;
  --ink: #26122e;
  --muted: #7a6a80;
  --line: #eee1d4;
  --accent: #e0304f;
  --accent-ink: #ffffff;
  --teal: #0b8a78;
  --soft: #f8ece1;
  --grad: linear-gradient(135deg, #ff7a3d 0%, #e92f5c 55%, #8f1f83 100%);
  --grad-deep: linear-gradient(160deg, #3a1147 0%, #8f1f6f 52%, #e8404f 100%);
  --shadow: 0 18px 40px rgba(38, 18, 46, .2);
  --shadow-sm: 0 4px 16px rgba(38, 18, 46, .09);
  --display: 'Fraunces', 'Hind', Georgia, serif;
  --body: 'Hind', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #170e1d;
    --card: #241830;
    --ink: #f9eee3;
    --muted: #b6a5bb;
    --line: #3a2b44;
    --soft: #322439;
    --accent: #ff5270;
    --teal: #2cc0ab;
    --shadow: 0 18px 40px rgba(0, 0, 0, .5);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--paper); color: var(--ink); font: 400 16px/1.45 var(--body); }
html[lang="hi"] body { line-height: 1.6; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.14; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3 { font-family: var(--body); font-weight: 600; line-height: 1.3; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, label:focus-within > .photo-add {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.icon { display: inline-flex; width: 1.4em; height: 1.4em; flex: none; }
.icon svg { width: 100%; height: 100%; }

#app { height: 100dvh; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; position: relative; overflow: hidden; background: var(--paper); }
@media (min-width: 520px) {
  body { background: radial-gradient(circle at 20% 10%, rgba(233, 47, 92, .14), transparent 45%), radial-gradient(circle at 85% 90%, rgba(143, 31, 131, .16), transparent 45%), var(--paper); }
  #app { box-shadow: var(--shadow); }
}

.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 18px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 8px; }
.logo { font: 700 30px/1 'Fraunces', Georgia, serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo.light { background: none; color: #fff; }
.page-title { font-size: 30px; }
.page-sub { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; flex: none; }
.icon-btn:hover { background: var(--soft); }
.icon-btn.boxed { background: var(--card); box-shadow: var(--shadow-sm); }

.nav { display: flex; gap: 4px; margin: 0 12px calc(10px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow-sm); }
.nav button { flex: 1; min-height: 54px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 13px; color: var(--muted); border-radius: 16px; }
.nav button[aria-current="page"] { color: var(--accent); font-weight: 600; background: var(--soft); }
.nav-icon { position: relative; display: inline-flex; }
.dot { position: absolute; top: -6px; left: 16px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--grad); color: #fff; font-size: 12px; line-height: 18px; text-align: center; }

/* Language switch */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--soft); flex: none; }
.lang-switch button { min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); }
.lang-switch button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.lang-switch.on-dark { background: rgba(255, 255, 255, .18); }
.lang-switch.on-dark button { color: #fff; }
.lang-switch.on-dark button[aria-pressed="true"] { background: #fff; color: #5b1650; }

/* Landing */
.landing { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px 26px; display: flex; flex-direction: column; gap: 18px; background: var(--grad-deep); color: #fff; }
.landing-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-cards { position: relative; height: 262px; flex: none; margin-top: 4px; }
.hero-card { position: absolute; top: 14px; left: 50%; width: 150px; height: 214px; border-radius: 20px; overflow: hidden; border: 3px solid rgba(255, 255, 255, .85); box-shadow: 0 20px 36px rgba(20, 5, 28, .4); }
.hero-card.c0 { transform: translateX(-132%) rotate(-11deg); }
.hero-card.c1 { transform: translateX(-50%) translateY(-8px); z-index: 2; }
.hero-card.c2 { transform: translateX(32%) rotate(11deg); }
.landing h1 { font-size: 42px; }
.landing h1 em { display: block; font-style: normal; color: #ffd08a; }
.landing .lead { margin: 10px 0 0; font-size: 18px; opacity: .92; }
.cta { display: flex; flex-direction: column; gap: 10px; }
.perks p { margin: 0 0 8px; font-weight: 600; }
.perks ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.perks li { padding: 3px 11px; border-radius: 999px; background: rgba(255, 255, 255, .15); font-size: 14px; }

form, .stack { display: flex; flex-direction: column; gap: 14px; }
label.field, div.field { display: flex; flex-direction: column; gap: 5px; font-weight: 500; font-size: 15px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  font-weight: 400;
  font-size: 16px;
}
textarea { resize: vertical; min-height: 92px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.hint { color: var(--muted); font-size: 14px; margin: 0; }
.error { color: var(--accent); font-size: 15px; margin: 0; }
.bio { margin: 0; }

.btn { min-height: 50px; padding: 0 20px; border-radius: 15px; background: var(--grad); color: var(--accent-ink); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px; box-shadow: 0 8px 20px rgba(233, 47, 92, .28); }
.btn:disabled { opacity: .5; cursor: default; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.danger { background: transparent; color: var(--accent); border: 1px solid var(--accent); box-shadow: none; }
.btn.white { background: #fff; color: #a31a5e; box-shadow: 0 10px 24px rgba(20, 5, 28, .3); }
.btn.outline-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .65); box-shadow: none; }
.btn.small { min-height: 44px; padding: 0 15px; font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 0 13px; border-radius: 19px; border: 1px solid var(--line); background: var(--card); font-size: 15px; font-weight: 400; }
.chip.static { display: inline-flex; align-items: center; }
.chip[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; }

.free-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; font-size: 15px; }
.free-list li::before { content: '✓ '; color: var(--teal); font-weight: 600; }

/* Panels */
.panel { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-sm); }
.panel > h2 { font-size: 21px; }
.hero-panel { padding: 18px; border-radius: 24px; background: var(--grad-deep); color: #fff; display: flex; flex-direction: column; gap: 8px; }
.hero-panel h1 { font-size: 30px; }
.hero-panel p { margin: 0; opacity: .94; }
.hero-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.meter { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .24); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; border-radius: 4px; background: #ffd08a; }
.meter-label { font-size: 14px; }

/* Deck */
.deck { flex: 1; min-height: 0; position: relative; margin: 4px 14px 0; }
.card { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; background: var(--soft); box-shadow: var(--shadow); touch-action: none; user-select: none; will-change: transform; }
.card.behind { transform: scale(.95) translateY(12px); box-shadow: none; opacity: .75; }
.card.flying { transition: transform .32s ease-in; }
.card.settle { transition: transform .22s ease-out; }
.holder, .portrait { position: absolute; inset: 0; }
.portrait { background-size: cover; background-position: center top; }
.bars { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 2; }
.bars i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.bars i.on { background: #fff; }
.badges { position: absolute; top: 24px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: 3px; padding: 3px 11px; border-radius: 13px; font-size: 14px; font-weight: 500; background: rgba(20, 8, 26, .6); color: #fff; backdrop-filter: blur(6px); }
.badge.super { background: var(--teal); }
.card-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 90px 20px 18px; color: #fff; background: linear-gradient(to top, rgba(18, 6, 24, .94) 35%, transparent); }
.card-info h2 { font-size: 33px; }
.card-info p { margin: 5px 0 0; }
.card-info .meta { font-size: 15px; opacity: .9; }
.card-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.card-chips span { padding: 2px 10px; border-radius: 12px; font-size: 14px; background: rgba(255, 255, 255, .2); }
.stamp { position: absolute; top: 62px; padding: 2px 12px; border: 4px solid; border-radius: 10px; font: 700 32px/1.25 var(--body); opacity: 0; z-index: 3; background: rgba(20, 8, 26, .25); }
.stamp.like { left: 18px; color: #5ef0c9; transform: rotate(-12deg); }
.stamp.pass { right: 18px; color: #ff9a85; transform: rotate(12deg); }
.stamp.super { left: 50%; bottom: 210px; top: auto; color: #8fe3ff; transform: translateX(-50%); }

.actions { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 14px 0 12px; }
.round { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow-sm); font-size: 21px; transition: transform .12s; }
.round.sm { width: 50px; height: 50px; font-size: 16px; }
.round.pass { color: var(--ink); }
.round.like { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(233, 47, 92, .42); }
.round.super { color: var(--teal); }
.round:hover { transform: translateY(-2px); }
.round:active { transform: scale(.92); }

.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 28px; min-height: 340px; }
.empty h2 { font-size: 26px; }
.empty p { margin: 0; color: var(--muted); }
.empty-art { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 26px; }
.notice { margin: 0 14px 8px; padding: 9px 12px; border-radius: 13px; background: var(--soft); font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Likes */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; text-align: left; color: #fff; box-shadow: var(--shadow-sm); }
.tile .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 11px 10px; background: linear-gradient(to top, rgba(18, 6, 24, .88), transparent); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.tile .badge { position: absolute; top: 9px; left: 9px; }

/* Chats */
.section-label { font: 600 15px/1.3 var(--body); color: var(--muted); margin: 6px 0 10px; }
.match-row { display: flex; gap: 14px; overflow-x: auto; padding: 3px 2px 14px; }
.match-bubble { width: 82px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 14px; font-weight: 500; }
.match-bubble span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-bubble small { font-size: 12px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.match-bubble .avatar { width: 72px; height: 72px; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5.5px var(--accent); }
.match-bubble.expired .avatar { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--line); opacity: .65; }
.chat-list { display: flex; flex-direction: column; gap: 8px; }
.chat-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px; text-align: left; background: var(--card); border-radius: 18px; box-shadow: var(--shadow-sm); }
.avatar { width: 58px; height: 58px; flex: none; border-radius: 50%; overflow: hidden; position: relative; }
.avatar.sm { width: 42px; height: 42px; }
.avatar.lg { width: 78px; height: 78px; border: 3px solid rgba(255, 255, 255, .8); }
.avatar.ring { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
.chat-main { flex: 1; min-width: 0; }
.chat-top { display: flex; justify-content: space-between; gap: 8px; }
.chat-top strong { font-weight: 600; font-size: 17px; }
.chat-top time { color: var(--muted); font-size: 13px; flex: none; }
.chat-sub { color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-sub.unread-text { color: var(--ink); font-weight: 500; }
.timer { display: flex; align-items: center; gap: 4px; font-size: 14px; min-width: 0; }
.timer.urgent { color: var(--accent); }
.unread { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--grad); color: #fff; font-size: 13px; line-height: 22px; text-align: center; }

.thread-head { display: flex; align-items: center; gap: 6px; padding: 8px; background: var(--card); box-shadow: var(--shadow-sm); z-index: 1; }
.thread-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; font-weight: 600; font-size: 18px; }
.banner { padding: 7px 14px; background: var(--soft); font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 7px; }
.msg { max-width: 78%; padding: 9px 14px; border-radius: 20px 20px 20px 6px; background: var(--card); box-shadow: var(--shadow-sm); align-self: flex-start; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg.mine { align-self: flex-end; border-radius: 20px 20px 6px 20px; background: var(--grad); color: #fff; box-shadow: none; }
.msg-meta { align-self: flex-end; font-size: 13px; color: var(--muted); }
.starters { padding: 8px 12px 0; }
.starters p { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.starter-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.starter-row .chip { flex: none; }
.composer { flex-direction: row; gap: 8px; padding: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); align-items: center; }
.composer input { flex: 1; min-width: 0; border-radius: 24px; padding-inline: 18px; }
.send-btn { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; }
.closed { padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); }

/* Sheets and overlays */
.overlay { position: absolute; inset: 0; z-index: 20; background: rgba(18, 6, 24, .58); display: flex; align-items: flex-end; animation: fade .18s ease-out; }
.sheet { width: 100%; max-height: 92%; overflow-y: auto; background: var(--paper); color: var(--ink); border-radius: 26px 26px 0 0; padding: 8px 18px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; animation: rise .22s ease-out; }
.sheet-grip { width: 42px; height: 4px; border-radius: 2px; background: var(--line); align-self: center; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet-head h2 { font-size: 25px; }
.sheet-photo { position: relative; height: 330px; border-radius: 20px; overflow: hidden; flex: none; }
.sheet-thumbs { display: flex; gap: 8px; overflow-x: auto; flex: none; }
.sheet-thumbs img { width: 64px; height: 84px; object-fit: cover; border-radius: 10px; }
.status-note { margin: 0; display: flex; align-items: flex-start; gap: 7px; font-size: 15px; color: var(--muted); }
.status-note.ok { color: var(--teal); font-weight: 500; }

.match-screen { position: absolute; inset: 0; z-index: 30; background: var(--grad-deep); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 28px; text-align: center; animation: pop .28s ease-out; }
.match-screen h2 { font-size: 46px; }
.match-screen p { margin: 0 0 8px; font-size: 18px; opacity: .94; }
.match-screen .btn { min-width: 240px; }
.match-faces { display: flex; margin-bottom: 8px; }
.match-faces .avatar { width: 128px; height: 128px; border: 4px solid #fff; box-shadow: 0 14px 30px rgba(20, 5, 28, .4); }
.match-faces .avatar:first-child { transform: rotate(-7deg) translateX(12px); }
.match-faces .avatar:last-child { transform: rotate(7deg) translateX(-12px); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); } }
@media (prefers-reduced-motion: reduce) {
  .card.flying, .card.settle, .round { transition: none; }
  .match-screen, .overlay, .sheet { animation: none; }
}

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-slot { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--soft); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-slot .remove { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; background: rgba(18, 6, 24, .7); color: #fff; display: grid; place-items: center; font-size: 12px; }
.photo-add { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: 22px; cursor: pointer; border: 1.5px dashed var(--line); border-radius: 14px; }
.toggle { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.toggle input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.toggle small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }

/* Verification */
.step { display: flex; gap: 12px; padding: 16px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-sm); }
.step-mark { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--soft); font-weight: 600; font-size: 15px; }
.step.done .step-mark { background: var(--teal); color: #fff; }
.step-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.step-body h2 { font-size: 20px; }
.step-body form { gap: 8px; }
.selfie-view { width: 100%; height: 340px; object-fit: cover; border-radius: 18px; background: var(--soft); transform: scaleX(-1); flex: none; }
.pose { margin: 0; padding: 11px 14px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 600; font-size: 18px; }
.verified { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 12px; vertical-align: 3px; flex: none; }

#toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); max-width: min(90vw, 400px); padding: 10px 16px; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: 15px; z-index: 50; opacity: 0; pointer-events: none; transition: opacity .2s; }
#toast.show { opacity: 1; }

/* Lifestyle and prompts */
.badges { padding-right: 46px; }
.badge.common { background: var(--grad); }
.info-btn { position: absolute; top: 22px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(20, 8, 26, .55); color: #fff; z-index: 4; }
.card-chips span.common { background: #fff; color: #a31a5e; font-weight: 600; }
.chip.common { background: var(--grad); color: #fff; border-color: transparent; }
.chip.soft { background: var(--soft); border-color: transparent; }
.prompt-card { padding: 13px 15px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-sm); flex: none; }
.prompt-card h3 { font: 500 14px/1.35 var(--body); color: var(--muted); }
.prompt-card p { margin: 3px 0 0; font: 600 19px/1.35 var(--body); }
.prompt-edit { display: flex; flex-direction: column; gap: 6px; }
textarea.short { min-height: 64px; }
.form-section { font-size: 19px; margin-top: 8px; }

/* Waitlist */
.landing .launch-note { color: #ffd08a; font-weight: 600; font-size: 16px; }
.hero-panel .waitlist-place { font: 700 32px/1.2 var(--display); color: #ffd08a; margin-top: 6px; opacity: 1; }
html[lang="hi"] .hero-panel .waitlist-place { font-family: var(--body); }
.wl-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.wl-stats p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }

/* Install */
.install-slot:empty { display: none; }
.install-btn { width: 100%; }
.landing .install-btn { color: #fff; border-color: rgba(255, 255, 255, .65); }
.install-hint { margin: 0; font-size: 14px; opacity: .9; }

/* Accounts, photo review and legal pages */
.link-btn { color: var(--accent); font-weight: 500; text-decoration: underline; align-self: center; min-height: 44px; }
.toggle a, .legal-links a { color: inherit; font-weight: 600; text-decoration: underline; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.photo-status { position: absolute; left: 4px; right: 4px; bottom: 4px; padding: 1px 6px; border-radius: 8px; background: rgba(18, 6, 24, .72); color: #fff; font-size: 12px; text-align: center; }
.legal { max-width: 720px; margin: 0 auto; padding: 22px 18px 48px; }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.legal-top .logo { text-decoration: none; }
.legal h1 { font-size: 34px; }
.legal h2 { font-size: 20px; margin: 24px 0 6px; }
.legal p { margin: 6px 0; }

/* Admin */
.admin-page { height: auto; }
.admin-shell { min-height: 100dvh; display: flex; }
.admin-side { width: 220px; flex: none; padding: 20px 14px; background: var(--grad-deep); color: #fff; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100dvh; }
.admin-side .logo { margin: 0 8px 16px; }
.admin-side button { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; text-align: left; color: #fff; opacity: .86; }
.admin-side button[aria-current="page"] { background: rgba(255, 255, 255, .18); opacity: 1; font-weight: 600; }
.admin-side .count { min-width: 22px; padding: 0 6px; border-radius: 11px; background: #fff; color: #8f1f6f; font-size: 13px; text-align: center; font-weight: 600; }
.admin-main { flex: 1; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 16px; max-width: 1040px; }
.admin-main h1 { font-size: 30px; }
.admin-login { max-width: 380px; margin: 12vh auto; padding: 24px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat { padding: 16px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-sm); text-align: left; }
.stat b { display: block; font: 700 32px/1.1 'Fraunces', Georgia, serif; }
.stat span { color: var(--muted); font-size: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar input { flex: 1; min-width: 200px; }
.toolbar select { width: auto; }
.table-wrap { overflow-x: auto; background: var(--card); border-radius: 18px; box-shadow: var(--shadow-sm); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr.click { cursor: pointer; }
.admin-table tbody tr.click:hover { background: var(--soft); }
.who { display: flex; align-items: center; gap: 10px; }
.who img, .who .no-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--soft); flex: none; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 11px; font-size: 13px; background: var(--soft); white-space: nowrap; }
.pill.good { background: var(--teal); color: #fff; }
.pill.bad { background: var(--accent); color: #fff; }
.link { color: var(--accent); text-decoration: underline; font-weight: 500; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 5px 12px; font-size: 15px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.admin-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-photos img { width: 110px; height: 146px; object-fit: cover; border-radius: 12px; background: var(--soft); }
.review { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-sm); }
.review-images { display: flex; flex-wrap: wrap; gap: 12px; }
.review-images figure { margin: 0; font-size: 14px; color: var(--muted); }
.review-images img { display: block; width: 180px; height: 240px; object-fit: cover; border-radius: 12px; background: var(--soft); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.gallery-item { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: var(--soft); }
.admin-chat { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 20px; background: var(--soft); }
.admin-chat .msg { box-shadow: none; }
.admin-chat small { display: block; font-size: 12px; opacity: .75; }
@media (max-width: 720px) {
  .admin-shell { flex-direction: column; }
  .admin-side { width: auto; height: auto; position: static; flex-direction: row; flex-wrap: wrap; padding: 12px; }
  .admin-side .logo { width: 100%; margin: 0 4px 6px; }
  .admin-main { padding: 16px; }
}
