/* ===================================================================
   Lähedal — Warm Bloom design system
   =================================================================== */
:root {
    --coral:        #F0805B;
    --coral-dark:   #E0644A;
    --coral-darker: #C24E36;
    --amber:        #F2B14B;
    --ink:          #4A3B34;
    --ink-soft:     #6E5A50;
    --muted:        #B29E93;
    --line:         #F3E4DA;
    --bg:           #FDF3EC;
    --card:         #FFFFFF;
    --peach:        #FCE6DC;
    --peach-soft:   #FBD9C9;
    --green:        #4FA97C;
    --radius:       22px;
    --radius-sm:    14px;
    --shadow:       0 8px 24px rgba(74, 59, 52, .08);
    --shadow-lg:    0 18px 46px rgba(74, 59, 52, .16);
    --nav-h:        66px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Nunito', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--coral-dark); text-decoration: none; }
a:hover { color: var(--coral-darker); }
h1 { font-size: 1.7rem; font-weight: 800; margin: .1em 0 .5em; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; font-weight: 800; }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: .85rem; }
.mono { font-family: 'Space Mono', monospace; }
.error { background: #fdeae4; color: var(--coral-darker); padding: .7em 1em; border-radius: var(--radius-sm); font-weight: 600; }
.notice { background: #e7f5ec; color: #1f7a4d; padding: .7em 1em; border-radius: var(--radius-sm); font-weight: 600; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .5rem; }
.logo-mark { width: 42px; height: 28px; position: relative; flex: 0 0 auto; }
.logo-mark span { position: absolute; top: 0; width: 28px; height: 28px; border-radius: 50%; }
.logo-mark span:first-child { left: 0; background: var(--coral); }
.logo-mark span:last-child { right: 0; background: var(--amber); mix-blend-mode: multiply; }
.logo-word { font-weight: 900; font-size: 1.5rem; color: var(--coral); letter-spacing: -.02em; }

/* Large stacked logo for the welcome/hero screen */
.logo-lg { flex-direction: column; gap: .9rem; }
.logo-lg .logo-mark { width: 108px; height: 72px; }
.logo-lg .logo-mark span { width: 72px; height: 72px; }
.logo-lg .logo-word { font-size: 2.2rem; }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: .7rem 1.1rem;
    background: rgba(253, 243, 236, .9); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar .brand { display: inline-flex; }
.mainnav { display: flex; align-items: center; gap: .6rem 1.5rem; flex-wrap: wrap; }
.mainnav a { color: var(--ink-soft); font-weight: 700; }
.mainnav a:hover { color: var(--coral); }
.btn-nav { background: var(--coral); color: #fff !important; padding: .4em .9em; border-radius: 999px; }
.btn-nav:hover { background: var(--coral-dark); }

/* Language switch pill */
.langswitch { display: inline-flex; gap: .1rem; background: var(--peach); border-radius: 999px; padding: .2rem; }
.langswitch a { font-size: .74rem; font-weight: 800; color: var(--ink-soft); padding: .28em .6em; border-radius: 999px; border: none; }
.langswitch a.active { background: var(--coral); color: #fff; }

/* Desktop top nav is hidden when the bottom tab bar is present */
.top-tabs { display: none; align-items: center; gap: 1.5rem; }
.top-tabs a { white-space: nowrap; }

.container { max-width: 720px; margin: 0 auto; padding: 1.3rem 1.1rem calc(1.3rem + var(--nav-h)); }
.app-shell.no-tabs .container { padding-bottom: 2.5rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    cursor: pointer; border: 2px solid transparent;
    padding: .7em 1.3em; border-radius: 999px; font-weight: 800; font-size: 1rem;
    font-family: inherit; background: var(--peach); color: var(--ink); transition: .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--coral); color: var(--coral); }
.btn-block { width: 100%; }
.btn.disabled { opacity: .5; pointer-events: none; }

/* ---------- Cards & forms ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.2rem; box-shadow: var(--shadow); }
.auth-card { max-width: 400px; margin: 1.5rem auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
label { display: block; margin: .7rem 0; font-weight: 700; font-size: .92rem; color: var(--ink-soft); }
input, select, textarea {
    width: 100%; margin-top: .3rem; padding: .75em .9em; font-size: 1rem;
    border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff;
    font-family: inherit; color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--coral); outline: none; }
.age-range { display: inline-flex; align-items: center; gap: .4rem; }
.age-range input { width: auto; display: inline-block; }
.row { display: flex; gap: 1rem; flex-wrap: wrap; }
.row > label { flex: 1 1 150px; }
.geo { align-items: center; }
.geo .btn { width: auto; }
form button { margin-top: .9rem; }

/* ---------- Hero / home ---------- */
.hero { text-align: center; padding: 2.5rem 1rem; }
.hero .logo { margin-bottom: 1.6rem; max-width: 100%; }
.hero h1 { font-size: 2rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 30ch; margin: .4rem auto 0; }
.hero-actions { display: flex; flex-direction: column; gap: .7rem; max-width: 300px; margin: 1.8rem auto 0; }
.hero-art { font-size: 3rem; animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Onboarding wizard ---------- */
.onboard { max-width: 460px; margin: 0 auto; padding-top: .5rem; }
.ob-topbar { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.6rem; }
.ob-back { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--peach); color: var(--ink); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.ob-bar { flex: 1; height: 8px; background: var(--peach); border-radius: 999px; overflow: hidden; }
.ob-bar-fill { height: 100%; background: var(--coral); border-radius: 999px; transition: width .3s ease; }
.ob-step { animation: fadeUp .25s ease; }
.ob-step h1 { margin-top: .3rem; }
.ob-step .fg-label { margin-bottom: .4rem; }
.ob-center { text-align: center; padding-top: 1rem; }
.ob-center .btn { margin-top: .6rem; }
.ob-err { color: var(--coral-darker); font-weight: 700; margin: .8rem 0 0; }
.ob-seg { margin-top: .3rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Photo slots in wizard */
.photo-slot { display: grid; place-items: center; aspect-ratio: 1; border: 2px dashed var(--muted); border-radius: var(--radius-sm); color: var(--muted); font-size: 2rem; cursor: pointer; background: var(--peach); }
.photo-slot:hover { border-color: var(--coral); color: var(--coral); }

/* Location illustration */
.ob-map { position: relative; height: 200px; margin: 0 auto 1.5rem; border-radius: var(--radius);
    background-color: var(--peach);
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 30px 30px; }
.ob-map-radius { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; border: 2px solid rgba(240,128,91,.4); border-radius: 50%; transform: translate(-50%,-50%); }
.ob-map-pin { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; background: var(--coral); border: 4px solid #fff; border-radius: 50%; transform: translate(-50%,-50%); box-shadow: var(--shadow); animation: floaty 3s ease-in-out infinite; }

/* ---------- Chips (interests / tags) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .3em; padding: .4em .85em; border-radius: 999px; background: var(--peach); color: var(--ink); font-weight: 700; font-size: .85rem; border: 2px solid transparent; cursor: default; }
.chip.selectable { cursor: pointer; }
.chip.selectable:hover { border-color: var(--coral); }
.chip.on { background: var(--coral); color: #fff; }
.chip-amber { background: #fceccb; color: #8a6410; }

/* ---------- Guided prompts ---------- */
.prompt-block { background: var(--peach); border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: .7rem; }
.prompt-q { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--coral-dark); }
.prompt-a { font-size: 1.05rem; color: var(--ink); margin-top: .15rem; }
.prompt-edit { margin-bottom: 1rem; }

/* ---------- Photos ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .6rem; }
.photo { position: relative; margin: 0; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 3px solid transparent; }
.photo.is-primary { border-color: var(--coral); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo figcaption { position: absolute; top: 5px; right: 5px; display: flex; gap: 4px; }
.mini { border: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(74,59,52,.6); color: #fff; cursor: pointer; font-size: .8rem; line-height: 1; }
.upload-btn { margin-top: 1rem; }

/* ---------- Discover deck ---------- */
.deck-wrap { position: relative; height: 68vh; max-height: 620px; margin: .5rem auto 1rem; max-width: 420px; }
.deck-card {
    position: absolute; inset: 0; background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column;
    user-select: none;
}
.deck-card .dc-photo { flex: 1; background-size: cover; background-position: center; background-color: var(--peach); position: relative; }
.deck-card .dc-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(74,59,52,.82) 0%, rgba(74,59,52,.15) 42%, transparent 62%); }
.deck-card .dc-online { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); color: var(--green); font-weight: 800; font-size: .75rem; padding: .25em .7em; border-radius: 999px; display: inline-flex; align-items: center; gap: .35em; }
.deck-card .dc-online::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.deck-card .dc-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.2rem 1.3rem; color: #fff; }
.deck-card .dc-name { font-size: 1.7rem; font-weight: 900; }
.deck-card .dc-loc { opacity: .92; font-weight: 600; }
.deck-card .dc-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.deck-card .dc-chips .chip { background: rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(4px); font-size: .8rem; padding: .3em .7em; }
.deck-card .dc-prompt { margin-top: .7rem; background: rgba(255,255,255,.16); border-radius: var(--radius-sm); padding: .6rem .8rem; backdrop-filter: blur(4px); }
.deck-card .dc-prompt .prompt-q { color: #ffe6d8; }
.deck-card .dc-prompt .prompt-a { color: #fff; font-size: .98rem; }
.deck-card.swipe-like { transform: translateX(120%) rotate(12deg); opacity: 0; transition: .35s ease; }
.deck-card.swipe-nope { transform: translateX(-120%) rotate(-12deg); opacity: 0; transition: .35s ease; }
.deck-stamp { position: absolute; top: 26px; font-size: 1.6rem; font-weight: 900; padding: .1em .5em; border-radius: 12px; border: 4px solid; opacity: 0; transition: .1s; }
.deck-stamp.like { right: 20px; color: var(--green); border-color: var(--green); transform: rotate(14deg); }
.deck-stamp.nope { left: 20px; color: var(--coral-darker); border-color: var(--coral-darker); transform: rotate(-14deg); }
.deck-actions { display: flex; justify-content: center; align-items: center; gap: 1.4rem; margin-top: .4rem; }
.deck-btn { width: 62px; height: 62px; border-radius: 50%; border: none; cursor: pointer; font-size: 1.5rem; display: grid; place-items: center; box-shadow: var(--shadow); background: #fff; transition: .15s; }
.deck-btn:hover { transform: scale(1.08); }
.deck-btn.nope { color: var(--coral-darker); }
.deck-btn.like { color: #fff; background: var(--coral); width: 72px; height: 72px; font-size: 1.9rem; }
.deck-empty { text-align: center; padding: 3rem 1rem; }
.deck-empty .hero-art { font-size: 3.4rem; }

/* ---------- Search ---------- */
.filters-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .9rem; }
.filters-head h1 { margin: 0; }
.reset-btn { background: none; border: none; font-family: inherit; font-weight: 800; color: var(--muted); cursor: pointer; font-size: .95rem; }
.reset-btn:hover { color: var(--coral); }
.fcard { padding: 1.1rem 1.2rem; }
.fcard.is-disabled { opacity: .55; }
.fg-label { display: block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .7rem; }
.fg-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.fg-row .fg-label { margin: 0; }
.fg-val { font-weight: 900; font-size: 1.1rem; color: var(--ink); }

.seg { display: inline-flex; background: var(--peach); border-radius: 999px; padding: .25rem; gap: .1rem; }
.seg button { border: none; background: transparent; font-family: inherit; font-weight: 800; color: var(--ink-soft); padding: .45em 1em; border-radius: 999px; cursor: pointer; font-size: .9rem; }
.seg button.on { background: var(--coral); color: #fff; }
/* Full-width three-way segmented control */
.seg-full { display: flex; width: 100%; gap: .5rem; background: none; padding: 0; }
.seg-full button { flex: 1; border: 2px solid var(--line); border-radius: 999px; padding: .7em 0; background: #fff; }
.seg-full button.on { background: var(--coral); color: #fff; border-color: var(--coral); }

/* Range sliders */
.range { position: relative; height: 30px; }
.range-track { position: absolute; top: 50%; left: 0; right: 0; height: 6px; background: var(--peach); border-radius: 3px; transform: translateY(-50%); }
.range-fill { position: absolute; top: 0; height: 100%; background: var(--coral); border-radius: 3px; }
.range input[type=range] { position: absolute; top: 0; left: 0; width: 100%; height: 30px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; pointer-events: none; }
.range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--coral); box-shadow: var(--shadow); cursor: pointer; }
.range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--coral); box-shadow: var(--shadow); cursor: pointer; }
.range input[type=range]:disabled::-webkit-slider-thumb { border-color: var(--muted); }

/* Chips: outlined variant (search) */
.chips-outline .chip { background: #fff; border: 2px solid var(--line); color: var(--ink-soft); }
.chips-outline .chip.on { background: var(--coral); color: #fff; border-color: var(--coral); }

/* Map with pins */
.map-box { position: relative; height: 220px; margin: 1.2rem 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
    background-color: var(--peach);
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 34px 34px; box-shadow: var(--shadow); }
.map-pill { position: absolute; top: 12px; left: 12px; z-index: 3; background: #fff; color: var(--coral); font-weight: 800; font-size: .82rem; padding: .35em .8em; border-radius: 999px; box-shadow: var(--shadow); }
.map-radius { position: absolute; left: 50%; top: 66%; width: 180px; height: 180px; border: 2px solid rgba(240,128,91,.35); border-radius: 50%; transform: translate(-50%, -50%); }
.map-center { position: absolute; left: 50%; top: 66%; width: 20px; height: 20px; background: var(--coral); border: 3px solid #fff; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: var(--shadow); z-index: 2; }
.map-pin { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; background-size: cover; background-position: center; background-color: var(--peach-soft); transform: translate(-50%, -50%); box-shadow: var(--shadow); cursor: pointer; z-index: 2; }
.map-pin:hover { transform: translate(-50%, -50%) scale(1.1); }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.user-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); display: flex; flex-direction: column; }
.user-card:hover { transform: translateY(-3px); transition: .15s; }
.uc-photo { aspect-ratio: 3/4; background-size: cover; background-position: center; background-color: var(--peach); position: relative; }
.uc-body { padding: .7rem .9rem 1rem; }
.uc-body h3 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.uc-bio { font-size: .88rem; color: var(--muted); margin: .3rem 0 0; }
.dot-online { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
.uc-photo .dot-online { position: absolute; top: 9px; right: 9px; }
.match-tag { position: absolute; top: 9px; left: 9px; background: var(--coral); color: #fff; font-size: .7rem; font-weight: 800; padding: .2em .6em; border-radius: 999px; }

/* Likes page */
.likes-tabs { display: flex; gap: .5rem; margin-bottom: 1.2rem; }
.likes-tab { flex: 1; border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: .6em 1em; font-family: inherit; font-weight: 800; color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.likes-tab.on { background: var(--coral); color: #fff; border-color: var(--coral); }
.likes-tab.on .pill { background: rgba(255,255,255,.3); color: #fff; }

/* ---------- Profile view ---------- */
.back-link { display: inline-flex; align-items: center; gap: .3rem; margin-bottom: .7rem; font-weight: 800; color: var(--ink-soft); }
.gallery { display: flex; gap: .5rem; overflow-x: auto; border-radius: var(--radius); scroll-snap-type: x mandatory; }
.gallery img { height: 360px; border-radius: var(--radius); object-fit: cover; scroll-snap-align: start; }
.pv-head h1 { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; }
.bio { background: var(--card); border: 1px solid var(--line); padding: 1.1rem; border-radius: var(--radius); }
.pv-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.1rem; }
.like-btn { border: 2px solid var(--coral); color: var(--coral); background: #fff; font-size: 1.3rem; }
.like-btn.liked { background: var(--coral); color: #fff; }

/* ---------- Messages list ---------- */
.conv-list { list-style: none; padding: 0; margin: 0; }
.conv-list li a { display: flex; align-items: center; gap: .9rem; padding: .8rem; border-radius: var(--radius-sm); color: var(--ink); }
.conv-list li a:hover { background: var(--card); }
.avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: var(--peach); }
.cv-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cv-main b { font-weight: 800; }
.cv-last { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { background: var(--coral); color: #fff; border-radius: 999px; padding: 0 .5em; font-size: .74rem; font-weight: 800; min-width: 1.4em; text-align: center; }
.cv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; margin-left: auto; }
.cv-meta time { font-size: .72rem; color: var(--muted); font-weight: 700; }

/* ---------- Conversation ---------- */
.conversation { display: flex; flex-direction: column; height: calc(100vh - var(--nav-h) - 90px); }
.conv-head { display: flex; align-items: center; gap: .8rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.conv-peer { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 800; }
.conv-head .avatar { width: 42px; height: 42px; }
.msg-thread { flex: 1; overflow-y: auto; padding: 1rem 0; display: flex; flex-direction: column; gap: .45rem; }
.bubble { max-width: 76%; padding: .6em .9em; border-radius: 20px; position: relative; word-wrap: break-word; font-weight: 600; }
.bubble.mine { align-self: flex-end; background: var(--coral); color: #fff; border-bottom-right-radius: 6px; }
.bubble.theirs { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble time { display: block; font-size: .66rem; opacity: .7; margin-top: .2rem; text-align: right; font-weight: 700; }
.msg-form { display: flex; gap: .5rem; padding: .6rem 0 0; border-top: 1px solid var(--line); }
.msg-form input { margin: 0; border-radius: 999px; }
.msg-form .btn { width: auto; padding: .7em 1.1em; }

/* ---------- Bottom tab bar ---------- */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--nav-h);
    display: flex; background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
}
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: .68rem; font-weight: 800; text-decoration: none; position: relative; }
.bottom-nav a .bn-ico { font-size: 1.35rem; line-height: 1; }
.bottom-nav a.active { color: var(--coral); }
.bottom-nav .bn-badge { position: absolute; top: 8px; margin-left: 22px; background: var(--coral); color: #fff; border-radius: 999px; font-size: .6rem; padding: 0 .4em; font-weight: 800; }

/* ---------- Verify banner ---------- */
.verify-banner { background: #fceccb; color: #8a6410; text-align: center; padding: .6rem 1rem; font-size: .9rem; font-weight: 700; border-bottom: 1px solid #f2d9a0; }
.verify-banner a { color: var(--coral-darker); font-weight: 800; }

/* ---------- Report dialog ---------- */
dialog#report-dialog { border: none; border-radius: var(--radius); padding: 1.5rem; max-width: 420px; width: 90%; box-shadow: var(--shadow-lg); color: var(--ink); }
dialog#report-dialog::backdrop { background: rgba(74,59,52,.4); }
dialog#match-dialog { border: none; border-radius: var(--radius); padding: 2rem 1.6rem; max-width: 380px; width: 90%; box-shadow: var(--shadow-lg); color: var(--ink); }
dialog#match-dialog::backdrop { background: rgba(240,128,91,.35); backdrop-filter: blur(3px); }
dialog#match-dialog h2 { color: var(--coral); font-size: 1.5rem; }
dialog#match-dialog .btn { width: auto; }
dialog#report-dialog .row { justify-content: flex-end; }
dialog#report-dialog .btn { width: auto; }
.mini-btn.danger, .report-btn { color: var(--coral-darker); }

/* ---------- Admin ---------- */
.nav-admin { color: #9c5a2a !important; font-weight: 900; }
.admin-nav { display: flex; align-items: center; gap: 1rem; padding: .6rem 0 1rem; border-bottom: 2px solid var(--line); margin-bottom: 1.2rem; flex-wrap: wrap; }
.admin-nav a { color: var(--muted); font-weight: 800; }
.admin-nav a.active { color: var(--ink); border-bottom: 2px solid var(--coral); padding-bottom: .2rem; }
.admin-badge { margin-left: auto; font-size: .72rem; letter-spacing: .05em; color: #9c5a2a; background: #fceccb; padding: .25em .7em; border-radius: 999px; font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .8rem; margin: 1rem 0 1.6rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; display: flex; flex-direction: column; gap: .2rem; box-shadow: var(--shadow); font-size: .85rem; color: var(--muted); }
.stat-num { font-size: 1.8rem; font-weight: 900; color: var(--ink); }
a.stat { text-decoration: none; transition: .15s; }
a.stat:hover { transform: translateY(-2px); border-color: var(--coral); box-shadow: var(--shadow-lg); }
.stat-alert { border-color: var(--coral); }
.stat-alert .stat-num { color: var(--coral); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th, .admin-table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { background: var(--peach); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); font-weight: 800; }
.row-banned { background: #fdeae4; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .3rem; }
.inline-form { display: inline; margin: 0; }
.mini-btn { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: .35em .7em; font-size: .78rem; cursor: pointer; margin: 0; font-family: inherit; font-weight: 700; color: var(--ink); }
.mini-btn:hover { background: var(--peach); }
.mini-btn.danger { border-color: var(--peach-soft); }
.mini-btn.danger:hover { background: #fdeae4; }
.admin-list { list-style: none; padding: 0; }
.admin-list li { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.admin-filters, .admin-search { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.admin-search input { width: auto; flex: 1; margin: 0; }
.pill { display: inline-block; font-size: .72rem; font-weight: 800; padding: .14em .6em; border-radius: 999px; background: var(--peach); color: var(--ink-soft); }
.pill-active { background: var(--coral); color: #fff; }
.pill-reason { background: #fceccb; color: #8a6410; }
.pill-open { background: #ffe6c7; color: #a15b00; }
.pill-reviewed { background: #e0f5e6; color: #1f7a44; }
.pill-dismissed { background: var(--peach); color: var(--muted); }
.pill-banned { background: #fdd; color: #b31a2f; }
.pill-admin { background: #fceccb; color: #9c5a2a; }

/* ---------- Responsive: show top nav on desktop, tabs on mobile ---------- */
@media (min-width: 720px) {
    .bottom-nav { display: none; }
    .container { padding-bottom: 2.5rem; }
    .top-tabs { display: inline-flex; }
}
@media (max-width: 719px) {
    .top-only { display: none; }
}
