/* BookingDyno partner onboarding - palette sampled from bookingdyno.com */

:root {
    --brand-50: #eaf7fb;
    --brand-400: #41bfd4;
    --brand-600: #0880b0;
    --brand-700: #06688f;
    --ink-700: #17415c;
    --ink-800: #0f2c41;
    --ink-900: #020617;
    --shell-50: #f6f8fb;
    --shell-100: #f3f4f6;
    --line: #e2e8f0;
    --muted: #64748b;
    --muted-soft: #94a3b8;
    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --danger-line: #fecaca;
    --warn-bg: #fffbeb;
    --warn-line: #fcd34d;
    --warn-text: #78350f;
    --ok-bg: #ecfdf5;
    --ok-text: #047857;
    --ok-line: #6ee7b7;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 1px 2px rgba(2, 6, 23, 0.05);
    --shadow-lg: 0 30px 80px -40px rgba(2, 6, 23, 0.55);
    --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
}

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

body {
    margin: 0;
    background: var(--shell-50);
    color: var(--ink-900);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
a { color: var(--brand-700); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- layout */

.hero {
    background: linear-gradient(135deg, var(--ink-900), var(--ink-800) 55%, var(--brand-600));
    padding: 3.5rem 1rem 8rem;
    text-align: center;
}
.hero .eyebrow {
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.35em;
    text-transform: uppercase; color: var(--brand-400);
}
.hero h1 {
    font-family: var(--font-display); font-weight: 400; color: #fff;
    font-size: clamp(2rem, 5vw, 3rem); margin-top: 0.9rem; line-height: 1.15;
}
.hero p { margin: 1rem auto 0; max-width: 34rem; color: rgba(236, 254, 255, 0.78); }
.hero-logo {
    display: block; width: 160px; height: 102px; margin: -1rem auto -0.6rem;
    object-fit: cover; object-position: center;
}

.shell { max-width: 52rem; margin: -6rem auto 0; padding: 0 1rem 4rem; }
.shell-wide { max-width: 72rem; }

.card {
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); overflow: hidden;
    border: 1px solid rgba(2, 6, 23, 0.06);
}
.card-body { padding: 2rem 1.5rem; }
.footnote { margin-top: 1.5rem; text-align: center; color: var(--muted); font-size: 0.875rem; }

@media (min-width: 640px) {
    .card-body { padding: 2rem 2.5rem; }
}

/* -------------------------------------------------------------- progress */

.progress-head {
    padding: 1.75rem 1.5rem 1.5rem;
    background: linear-gradient(to bottom, rgba(243, 244, 246, 0.7), #fff);
    border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) { .progress-head { padding: 1.75rem 2.5rem 1.5rem; } }

.progress-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; }
.eyebrow-sm {
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--brand-700);
}
.progress-head h2 {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-top: 0.5rem;
}
.progress-head h2:focus { outline: none; }

.progress-rail { height: 3px; border-radius: 999px; background: var(--line); margin-top: 1.25rem; overflow: hidden; }
.progress-fill {
    height: 100%; border-radius: 999px;
    background: linear-gradient(to right, var(--ink-800), var(--brand-600), var(--brand-400));
    transition: width 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1rem 0 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-soft); }
.steps .dot {
    width: 1.5rem; height: 1.5rem; border-radius: 999px; display: inline-flex;
    align-items: center; justify-content: center; font-size: 0.8rem;
    border: 1px solid var(--line); background: #fff; color: var(--muted-soft);
    font-family: var(--font-display);
}
.steps li.current { color: var(--ink-900); font-weight: 500; }
.steps li.current .dot { border-color: var(--brand-600); color: var(--brand-700); }
.steps li.done { color: var(--muted); }
.steps li.done .dot { background: var(--ink-900); border-color: var(--ink-900); color: var(--brand-400); }
@media (max-width: 640px) { .steps .step-label { display: none; } }

/* ------------------------------------------------------------------ form */

.field { margin-bottom: 1.5rem; }
.field label, .label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--ink-900); }
.hint { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="search"], input[type="number"], input[type="time"],
select, textarea {
    width: 100%; margin-top: 0.5rem; padding: 0.75rem 1rem;
    font: inherit; color: var(--ink-900); background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); transition: border-color 120ms, box-shadow 120ms;
}
textarea { min-height: 7rem; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #cbd5e1; }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--brand-600);
    box-shadow: 0 0 0 3px rgba(8, 128, 176, 0.18);
}
input.invalid, select.invalid, textarea.invalid { border-color: var(--danger-line); background: #fef2f299; }

.error { margin-top: 0.4rem; font-size: 0.875rem; font-weight: 500; color: var(--danger); }
.error::before { content: "\26A0"; margin-right: 0.4rem; }

.alert {
    margin-bottom: 1.5rem; padding: 0.85rem 1rem; border-radius: var(--radius);
    font-size: 0.875rem; font-weight: 500;
    border: 1px solid var(--danger-line); background: var(--danger-bg); color: var(--danger);
}
.alert-ok { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-700); }
.alert-warn { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-text); }

.checkbox { display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; font-size: 0.875rem; color: #334155; }
.checkbox input { width: 1.25rem; height: 1.25rem; accent-color: var(--brand-700); margin: 0; flex: none; }
.checkbox .checkbox-title { font-weight: 500; color: var(--ink-900); }
.checkbox .checkbox-note { display: block; font-size: 0.78rem; color: var(--muted); }

.grid-2 { display: grid; gap: 1.25rem; }
.grid-2 > * { min-width: 0; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2 .span-2 { grid-column: 1 / -1; } }

.section-divider { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 2rem; }

/* --------------------------------------------------------------- buttons */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 3rem; padding: 0 1.75rem; border-radius: 999px;
    font: inherit; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em;
    cursor: pointer; border: 1px solid transparent; transition: background 140ms, border-color 140ms;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(8, 128, 176, 0.35); }
.btn-primary { background: var(--ink-900); color: #fff; }
.btn-primary:hover { background: var(--ink-800); }
.btn-submit { background: linear-gradient(to right, var(--ink-900), var(--brand-700)); color: #fff; }
.btn-submit:hover { background: linear-gradient(to right, var(--ink-800), var(--brand-600)); }
.btn-secondary { background: #fff; border-color: #cbd5e1; color: #334155; }
.btn-secondary:hover { background: var(--shell-100); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-small { min-height: 2.5rem; padding: 0 1rem; font-size: 0.85rem; }
.btn-link {
    background: none; border: none; cursor: pointer; font: inherit; font-size: 0.875rem;
    font-weight: 500; color: var(--brand-700); padding: 0.4rem 0.6rem; border-radius: 999px;
}
.btn-link:hover { background: var(--brand-50); text-decoration: underline; }

.wizard-actions {
    display: flex; flex-direction: column-reverse; gap: 0.75rem;
    padding: 1.25rem 1.5rem; background: rgba(243, 244, 246, 0.6); border-top: 1px solid var(--line);
}
@media (min-width: 640px) {
    .wizard-actions { flex-direction: row; align-items: center; justify-content: space-between; padding: 1.25rem 2.5rem; }
}

/* ----------------------------------------------------------- file pickers */

input[type="file"] {
    width: 100%; margin-top: 0.5rem; padding: 1rem; font: inherit; font-size: 0.875rem;
    color: #475569; background: rgba(246, 248, 251, 0.8);
    border: 1px dashed #cbd5e1; border-radius: var(--radius); cursor: pointer;
    min-width: 0; max-width: 100%;
}
input[type="file"]::file-selector-button {
    margin-right: 1rem; padding: 0.6rem 1rem; border: 0; border-radius: 999px;
    background: var(--ink-800); color: #fff; font: inherit; font-size: 0.85rem;
    font-weight: 500; cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--ink-700); }
input[type="file"]:disabled { background: var(--shell-100); color: var(--muted-soft); cursor: not-allowed; }

.preview {
    display: flex; align-items: center; gap: 1rem; margin-top: 0.75rem;
    padding: 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
    min-width: 0; max-width: 100%; overflow: hidden;
}
.preview img {
    width: 4rem; height: 4rem; flex: none; object-fit: cover;
    border-radius: 10px; border: 1px solid var(--line); background: var(--shell-100);
}
.preview.wide img { width: 7rem; }
.preview-meta { width: 0; min-width: 0; flex: 1 1 0; overflow: hidden; }
.preview-name { display: block; max-width: 100%; font-size: 0.875rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-size { font-size: 0.875rem; color: var(--muted); }
.preview > .btn { flex: 0 0 auto; padding-inline: 1rem; }

.gallery-count { font-family: var(--font-display); font-size: 1.15rem; }
.gallery-count .muted { color: var(--muted-soft); }
.gallery-count .unit { font-family: var(--font); font-size: 0.875rem; color: var(--muted); }

.gallery-grid {
    list-style: none; margin: 1.25rem 0 0; padding: 0;
    display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(6, 1fr); } }
.gallery-item { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.gallery-item img { display: block; width: 100%; height: 7rem; object-fit: cover; background: var(--shell-100); }
.gallery-item .meta { padding: 0.4rem 0.6rem; font-size: 0.72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-remove {
    position: absolute; top: 0.5rem; right: 0.5rem; padding: 0.3rem 0.7rem;
    font: inherit; font-size: 0.72rem; font-weight: 500; color: var(--ink-900);
    background: rgba(255, 255, 255, 0.95); border: 1px solid rgba(2, 6, 23, 0.12);
    border-radius: 999px; cursor: pointer;
}

/* ------------------------------------------------------------ day + rates */

.day-row { border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; background: #fff; margin-bottom: 1rem; }
.day-row.closed { background: rgba(243, 244, 246, 0.6); }
.day-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; }
.day-name { font-family: var(--font-display); font-size: 1.25rem; }
.day-summary { font-size: 0.875rem; color: var(--muted); }
.day-toggles { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.day-times { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 640px) { .day-times { grid-template-columns: 1fr 1fr; } .day-times .span-2 { grid-column: 1 / -1; } }
.day-copy { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid #f1f5f9; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.chip {
    display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem;
    padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px;
    background: #fff; color: #475569; font-size: 0.875rem; cursor: pointer;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip.on { background: var(--ink-800); border-color: var(--ink-800); color: #fff; font-weight: 500; }
.chip:focus-within { box-shadow: 0 0 0 3px rgba(8, 128, 176, 0.3); }

.rate-card { border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; background: #fff; margin-bottom: 1.25rem; }
.rate-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.amount-row { display: flex; gap: 0.5rem; }
.amount-row select { width: 7rem; flex: none; }
.copy-panel { border: 1px solid rgba(15, 44, 65, 0.2); background: rgba(243, 244, 246, 0.7); border-radius: 18px; padding: 1.25rem; margin-top: 1rem; }

/* ---------------------------------------------------------------- success */

.success { padding: 3.5rem 1.5rem; text-align: center; }
.success-mark {
    width: 4rem; height: 4rem; margin: 0 auto; border-radius: 999px;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    background: linear-gradient(135deg, var(--ink-900), var(--brand-600)); color: var(--brand-400);
}
.success h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.3rem); margin-top: 1.25rem; }
.success p { margin: 1rem auto 0; max-width: 30rem; color: #475569; }
.reference-box {
    margin: 2rem auto 0; max-width: 20rem; text-align: left;
    border: 1px solid var(--line); background: rgba(243, 244, 246, 0.6);
    border-radius: var(--radius); padding: 1rem 1.25rem;
}
.reference-box dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.reference-box dd { margin: 0.3rem 0 0; font-family: ui-monospace, Consolas, monospace; font-size: 0.875rem; word-break: break-all; }

/* ------------------------------------------------------------------ admin */

.admin-bar { background: var(--ink-900); }
.admin-bar .inner {
    max-width: 72rem; margin: 0 auto; padding: 1rem 1.25rem;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.admin-brand { display: flex; align-items: baseline; gap: 0.75rem; text-decoration: none; }
.admin-brand .mark { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brand-400); }
.admin-brand .name { font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.admin-user { display: flex; align-items: center; gap: 1rem; color: #cbd5e1; font-size: 0.875rem; }
.btn-ghost { background: none; border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.admin-main { max-width: 72rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.admin-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; }
.admin-head h1 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; }

.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.filters input, .filters select { margin-top: 0; width: auto; border-radius: 999px; padding: 0.7rem 1.25rem; }
.filters input[type="search"] { flex: 1 1 16rem; }

.table-wrap { margin-top: 1.5rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
table { width: 100%; min-width: 44rem; border-collapse: collapse; text-align: left; font-size: 0.9rem; }
thead th {
    padding: 0.75rem 1.25rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line);
}
tbody td { padding: 1rem 1.25rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; color: #475569; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--shell-50); }
.row-title { font-weight: 500; color: var(--ink-900); text-decoration: none; }
.row-title:hover { color: var(--brand-700); text-decoration: underline; }
.row-sub { margin-top: 0.15rem; color: var(--muted); }

.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px; border: 1px solid; font-size: 0.75rem; font-weight: 500; white-space: nowrap; }
.badge-submitted { border-color: rgba(8, 128, 176, 0.3); background: var(--brand-50); color: var(--brand-700); }
.badge-in_review { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-text); }
.badge-approved { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok-text); }
.badge-declined { border-color: #cbd5e1; background: var(--shell-100); color: #475569; }

.pager { display: flex; gap: 0.5rem; margin-top: 1.5rem; align-items: center; }

.panel-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 1024px) { .panel-grid { grid-template-columns: repeat(3, 1fr); } .panel-grid .wide { grid-column: span 2; } .panel-grid .full { grid-column: 1 / -1; } }
.panel { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 1.5rem; }
.panel h2 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-700); }
.panel dl { margin: 1rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .panel dl.two { grid-template-columns: 1fr 1fr; } .panel dl.two .span-2 { grid-column: 1 / -1; } }
.panel dt { font-size: 0.875rem; color: var(--muted); }
.panel dd { margin: 0.15rem 0 0; word-break: break-word; }
.hours-row { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #f1f5f9; }
.hours-row:last-child { border-bottom: 0; padding-bottom: 0; }

.login-wrap { max-width: 26rem; margin: 4rem auto; padding: 0 1.25rem; }
.login-wrap .card { padding: 2rem; box-shadow: 0 20px 50px -30px rgba(2, 6, 23, 0.4); }
.login-head { text-align: center; margin-bottom: 2rem; }
.login-head h1 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; margin-top: 0.75rem; }

/* ------------------------------------------------------- admin UI refresh */

.admin-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 0%, rgba(65, 191, 212, 0.08), transparent 26rem),
        #f7f9fc;
}

.admin-bar {
    position: sticky; top: 0; z-index: 30;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.admin-bar .inner { max-width: 80rem; min-height: 4.75rem; padding: 0.65rem 1.5rem; flex-wrap: nowrap; }
.admin-brand { align-items: center; gap: 0.65rem; flex: 0 0 auto; }
.admin-logo { width: 100px; height: 64px; object-fit: cover; object-position: center; }
.admin-brand .brand-copy { padding-left: 0.75rem; border-left: 1px solid var(--line); }
.admin-brand .name { font-family: var(--font); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-800); text-transform: uppercase; white-space: nowrap; }

.admin-nav { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.admin-nav a {
    display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.5rem;
    padding: 0 0.9rem; color: var(--muted); text-decoration: none;
    border-radius: 10px; font-size: 0.86rem; font-weight: 600;
}
.admin-nav a:hover { color: var(--ink-800); background: var(--shell-100); }
.admin-nav a.active { color: var(--brand-700); background: var(--brand-50); }
.admin-nav svg, .btn svg, .admin-back svg, .table-action svg {
    width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round; flex: none;
}

.admin-user { margin-left: 1rem; padding-left: 1rem; border-left: 1px solid var(--line); color: var(--ink-800); gap: 0.65rem; }
.admin-avatar {
    width: 2.25rem; height: 2.25rem; border-radius: 50%; display: inline-flex;
    align-items: center; justify-content: center; color: #fff; font-weight: 700;
    background: linear-gradient(135deg, var(--brand-600), var(--ink-800));
}
.admin-user-copy { display: flex; flex-direction: column; line-height: 1.2; }
.admin-user-copy strong { font-size: 0.82rem; }
.admin-user-copy small { margin-top: 0.2rem; color: var(--muted); font-size: 0.7rem; }
.admin-bar .btn-ghost { min-height: 2.35rem; color: var(--muted); border-color: var(--line); padding: 0 0.75rem; }
.admin-bar .btn-ghost:hover { background: var(--shell-100); color: var(--ink-900); }

.admin-main { max-width: 80rem; padding: 2.5rem 1.5rem 5rem; }
.admin-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.admin-page-head h1 { margin-top: 0.45rem; font-size: clamp(1.8rem, 3vw, 2.35rem); letter-spacing: -0.035em; }
.admin-page-head p:not(.eyebrow-sm) { margin-top: 0.45rem; color: var(--muted); }
.admin-page-head .btn { min-height: 2.75rem; gap: 0.5rem; white-space: nowrap; }

.admin-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.85rem; margin-top: 2rem; }
.stat-card {
    display: flex; align-items: center; gap: 0.85rem; min-width: 0; padding: 1.15rem;
    color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--line);
    border-radius: 16px; box-shadow: 0 8px 25px -24px rgba(2, 6, 23, 0.45);
    transition: transform 140ms, border-color 140ms, box-shadow 140ms;
}
a.stat-card:hover { transform: translateY(-2px); border-color: #b8dfe7; box-shadow: 0 16px 32px -24px rgba(8, 128, 176, 0.45); }
.stat-icon { font-size: 0.62rem; color: var(--muted-soft); }
.stat-new .stat-icon { color: var(--brand-600); }
.stat-review .stat-icon { color: #d97706; }
.stat-approved .stat-icon { color: #059669; }
.stat-declined .stat-icon { color: #94a3b8; }
.stat-card div { min-width: 0; }
.stat-card strong { display: block; font-size: 1.65rem; line-height: 1; letter-spacing: -0.04em; }
.stat-card span:last-child { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.admin-toolbar {
    align-items: center; margin-top: 1.5rem; padding: 1rem;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
}
.toolbar-title { display: flex; flex-direction: column; min-width: 8.5rem; line-height: 1.25; }
.toolbar-title strong { font-size: 0.9rem; }
.toolbar-title span { margin-top: 0.2rem; color: var(--muted); font-size: 0.72rem; }
.search-field { position: relative; flex: 1 1 18rem; min-width: 0; }
.search-field svg {
    position: absolute; left: 0.9rem; top: 50%; width: 1rem; height: 1rem;
    transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8;
}
.filters .search-field input { width: 100%; padding-left: 2.5rem; }
.filters input, .filters select { min-height: 2.5rem; border-radius: 10px; padding-block: 0.5rem; }
.filters select { width: 11rem; }

.table-wrap { margin-top: 1rem; border-radius: 16px; box-shadow: 0 10px 30px -28px rgba(2, 6, 23, 0.55); }
table { min-width: 54rem; }
thead th { padding-block: 0.9rem; background: #fafbfc; }
tbody td { padding-block: 1.1rem; vertical-align: middle; }
.business-cell { display: flex; align-items: center; gap: 0.75rem; min-width: 13rem; }
.business-avatar {
    width: 2.5rem; height: 2.5rem; flex: none; display: inline-flex; align-items: center;
    justify-content: center; border-radius: 11px; color: var(--brand-700);
    background: var(--brand-50); border: 1px solid rgba(8, 128, 176, 0.12); font-weight: 700;
}
.table-action { width: 3.5rem; text-align: right; }
.table-action a {
    display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem;
    color: var(--muted); border-radius: 8px;
}
.table-action a:hover { color: var(--brand-700); background: var(--brand-50); }
.admin-empty { margin-top: 1rem; padding: 4rem 1rem; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.admin-empty > span { display: block; font-size: 1.6rem; filter: grayscale(1); opacity: 0.45; }
.admin-empty h2 { margin-top: 0.8rem; font-size: 1rem; }
.admin-empty p { margin-top: 0.3rem; color: var(--muted); font-size: 0.86rem; }

.admin-back { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); text-decoration: none; font-size: 0.86rem; font-weight: 600; }
.admin-back:hover { color: var(--brand-700); }
.detail-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
    margin-top: 1rem; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 18px;
}
.detail-identity { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.detail-logo { width: 4.75rem; height: 4.75rem; flex: none; object-fit: cover; border: 1px solid var(--line); border-radius: 16px; background: var(--shell-100); }
.detail-logo-placeholder { display: inline-flex; align-items: center; justify-content: center; color: var(--brand-700); background: var(--brand-50); font-size: 1.5rem; font-weight: 700; }
.detail-identity > div { min-width: 0; }
.detail-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; }
.detail-title-row h1 { font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -0.035em; overflow-wrap: anywhere; }
.detail-identity > div > p { margin-top: 0.25rem; color: var(--muted); }
.reference-id { font-family: ui-monospace, Consolas, monospace; font-size: 0.75rem; }
.status-form { display: grid; grid-template-columns: auto auto; align-items: center; gap: 0.55rem 0.75rem; flex: none; }
.status-form .label { grid-column: 1 / -1; color: var(--muted); font-size: 0.72rem; }
.status-form select { width: auto; min-width: 10rem; margin: 0; border-radius: 10px; padding-block: 0.55rem; }

.panel-grid { gap: 1rem; margin-top: 1rem; }
.panel { border-radius: 16px; box-shadow: 0 10px 30px -30px rgba(2, 6, 23, 0.45); }
.brand-preview { display: block; width: 100%; height: 8rem; margin-top: 0.5rem; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: var(--shell-100); }
.panel .hint[title] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-rate-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.admin-rate-list > li { padding: 1rem; margin-bottom: 0.75rem; border: 1px solid var(--line); border-radius: 12px; background: #fcfdff; }

/* ------------------------------------------------------------- login page */

.login-body { min-height: 100vh; background: #fff; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(27rem, 0.92fr); }
.login-brand {
    position: relative; overflow: hidden; display: flex; padding: clamp(2rem, 5vw, 4.5rem);
    color: #fff; background:
        radial-gradient(circle at 85% 18%, rgba(65, 191, 212, 0.2), transparent 17rem),
        linear-gradient(145deg, #06111d, #0b2638 58%, #086b88);
}
.login-brand::before, .login-brand::after { content: ""; position: absolute; border: 1px solid rgba(103, 232, 249, 0.13); border-radius: 50%; }
.login-brand::before { width: 34rem; height: 34rem; right: -17rem; bottom: -18rem; }
.login-brand::after { width: 23rem; height: 23rem; right: -11rem; bottom: -12rem; }
.login-brand-content { position: relative; z-index: 1; display: flex; width: 100%; max-width: 44rem; flex-direction: column; }
.login-logo { display: block; width: fit-content; text-decoration: none; }
.login-logo img { display: block; width: 180px; height: 115px; object-fit: cover; object-position: center; }
.login-intro { margin: auto 0; padding-block: 4rem; }
.login-intro .eyebrow-sm { color: #67e8f9; }
.login-intro h1 { max-width: 38rem; margin-top: 1rem; font-size: clamp(2.35rem, 4.6vw, 4.25rem); line-height: 1.06; letter-spacing: -0.055em; }
.login-intro > p:last-child { max-width: 34rem; margin-top: 1.5rem; color: rgba(226, 245, 250, 0.72); font-size: 1rem; }
.login-brand-note { display: flex; align-items: center; gap: 0.6rem; color: rgba(226, 245, 250, 0.72); font-size: 0.78rem; }
.pulse-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #67e8f9; box-shadow: 0 0 0 5px rgba(103, 232, 249, 0.12); }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.login-form-wrap { width: 100%; max-width: 25rem; }
.login-mobile-brand { display: none; }
.login-head { margin: 0 0 2rem; text-align: left; }
.login-head h2 { margin-top: 0.65rem; font-size: clamp(1.65rem, 3vw, 2rem); letter-spacing: -0.035em; }
.login-head > p:last-child { margin-top: 0.55rem; color: var(--muted); font-size: 0.9rem; }
.login-form .field { margin-bottom: 1.25rem; }
.input-with-icon { position: relative; }
.input-with-icon svg {
    position: absolute; z-index: 1; left: 0.95rem; top: calc(50% + 0.25rem); width: 1.05rem; height: 1.05rem;
    transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.input-with-icon input { min-height: 3.15rem; padding-left: 2.75rem; border-radius: 12px; }
.login-submit { width: 100%; min-height: 3.2rem; margin-top: 0.25rem; gap: 0.55rem; border-radius: 12px; background: linear-gradient(135deg, var(--ink-900), var(--brand-700)); }
.login-submit svg { margin-left: auto; }
.login-help { margin-top: 1.5rem; color: var(--muted); text-align: center; font-size: 0.78rem; }

@media (max-width: 980px) {
    .admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-nav a span { display: none; }
}

@media (max-width: 820px) {
    .login-page { display: block; }
    .login-brand { display: none; }
    .login-panel { min-height: 100vh; padding: 2rem 1.25rem; background: linear-gradient(180deg, var(--brand-50), #fff 35%); }
    .login-mobile-brand { display: block; width: 145px; margin: 0 auto 2rem; }
    .login-mobile-brand img { display: block; width: 145px; height: 93px; object-fit: cover; object-position: center; }
    .login-head { text-align: center; }
}

@media (max-width: 720px) {
    .admin-bar .inner { padding-inline: 1rem; }
    .admin-logo { width: 84px; height: 54px; }
    .admin-brand .brand-copy, .admin-user-copy, .admin-nav a:nth-child(2), .admin-bar .btn-ghost span { display: none; }
    .admin-nav { margin-left: auto; }
    .admin-user { margin-left: 0.25rem; padding-left: 0.6rem; }
    .admin-bar .btn-ghost { width: 2.35rem; padding: 0; }
    .admin-main { padding: 1.75rem 1rem 4rem; }
    .admin-page-head { align-items: flex-start; flex-direction: column; }
    .admin-page-head .btn { display: none; }
    .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-total { grid-column: 1 / -1; }
    .admin-toolbar { align-items: stretch; }
    .toolbar-title { width: 100%; }
    .search-field { flex-basis: 100%; }
    .filters select { flex: 1 1 10rem; width: auto; }
    .detail-hero { align-items: stretch; flex-direction: column; padding: 1.15rem; }
    .detail-logo { width: 3.75rem; height: 3.75rem; }
    .status-form { grid-template-columns: 1fr auto; }
    .status-form select { width: 100%; }
}

@media (max-width: 460px) {
    .preview { align-items: flex-start; flex-wrap: wrap; }
    .preview-meta { width: calc(100% - 5rem); flex-basis: calc(100% - 5rem); }
    .preview > .btn { width: 100%; }
    .admin-stats { gap: 0.65rem; }
    .stat-card { padding: 0.9rem; }
    .stat-card strong { font-size: 1.4rem; }
}

code { background: var(--shell-100); padding: 0.1rem 0.4rem; border-radius: 6px; font-size: 0.85em; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
