﻿:root {
    --bg: #f4f6f9;
    --bg-elev: #ffffff;
    --ink: #1d3557;
    --ink-soft: #5c708a;
    --ink-deep: #142943;
    --ink-mid: #457b9d;
    --line: #e4e9ef;
    --brand: #cb3048;
    --brand-dark: #b7253d;
    --brand-soft: rgba(203, 48, 72, .1);
    --accent: #cb3048;
    --gold: #b45309;
    --danger: #b42318;
    --warning: #b54708;
    --info: #457b9d;
    --ok: #067647;
    --shadow: 0 18px 60px rgba(29, 53, 87, .08);
    --shadow-card: 0 10px 35px rgba(29, 53, 87, .06);
    --radius: 24px;
    --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
    --display: "Manrope", "DM Sans", sans-serif;
}

[data-theme="dark"] {
    --bg: #0a0a0a;
    --bg-elev: #141414;
    --ink: #f4f4f5;
    --ink-soft: #a1a1aa;
    --line: #262626;
    --brand: #cb3048;
    --brand-dark: #e0485e;
    --brand-soft: rgba(203, 48, 72, .18);
    --accent: #cb3048;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.skip {
    position: absolute; left: 12px; top: -48px;
    background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 90;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.container { width: min(1280px, calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.logo-img {
    height: 48px;
    width: auto;
    transition: height .22s ease;
}
.logo-img-sm { height: 36px; width: auto; }
.logo-on-dark { display: inline-flex; }

.site-topbar {
    background: var(--ink);
    color: #fff;
    font-size: .8rem;
    line-height: 1.3;
}
.site-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 32px;
    padding-top: 6px;
    padding-bottom: 6px;
}
.site-topbar-text {
    margin: 0;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
}
.site-topbar-text strong { font-weight: 700; }
.site-topbar-text span { color: rgba(255,255,255,.72); }
.site-topbar-socials {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.site-topbar-socials a {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.site-topbar-socials a:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}
.site-topbar-social-icon {
    width: 15px;
    height: 15px;
}

.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid #f4f4f5;
    transition: box-shadow .22s ease;
}
.site-header.is-compact {
    box-shadow: 0 8px 24px rgba(29, 53, 87, .08);
}
[data-theme="dark"] .site-header { background: rgba(10,10,10,.92); border-color: var(--line); }
.header-inner {
    display: flex; align-items: center; gap: 24px;
    min-height: 76px;
    transition: min-height .22s ease;
}
.site-header.is-compact .header-inner {
    min-height: 58px;
}
.site-header.is-compact .logo-img {
    height: 36px;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; flex-shrink: 0; }
.brand:hover { color: inherit; }
.nav { display: flex; gap: 28px; align-items: center; margin-left: auto; }
.nav a {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: .925rem;
    text-decoration: none;
    transition: font-size .22s ease;
}
.site-header.is-compact .nav a { font-size: .875rem; }
.nav a:hover, .nav a.is-active { color: var(--brand); }
.header-actions { display: flex; gap: 8px; align-items: center; margin-left: 8px; }
.nav-toggle {
    display: none !important;
    width: 44px; height: 44px; padding: 0;
    border-radius: 14px;
}
.site-header.is-compact .nav-toggle,
.site-header.is-compact .cart-fab {
    transform: scale(.92);
}
.icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.icon-lg { width: 28px; height: 28px; }

.btn, button.btn, input.btn {
    appearance: none; border: 0; cursor: pointer;
    background: var(--brand); color: #fff; font-weight: 700;
    border-radius: 14px; padding: 12px 18px; font-size: .95rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none; font-family: inherit;
    transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn.btn-ghost, button.btn.btn-ghost {
    background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.btn.btn-ghost:hover, button.btn.btn-ghost:hover { background: #f4f4f5; color: var(--ink); }
[data-theme="dark"] .btn.btn-ghost:hover { background: #1f1f1f; }
.btn-ink, .btn.btn-ink, button.btn.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover, .btn.btn-ink:hover, button.btn.btn-ink:hover { background: var(--ink-deep); color: #fff; }
.btn-danger, .btn.btn-danger, button.btn.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover, .btn.btn-danger:hover, button.btn.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-success, .btn.btn-success, button.btn.btn-success { background: #16a34a; color: #fff; }
.btn-success:hover, .btn.btn-success:hover, button.btn.btn-success:hover { background: #15803d; color: #fff; }
.btn-info, .btn.btn-info, button.btn.btn-info { background: var(--ink-mid); color: #fff; }
.btn-info:hover, .btn.btn-info:hover, button.btn.btn-info:hover { background: var(--ink); color: #fff; }
.btn-warning, .btn.btn-warning, button.btn.btn-warning { background: #d97706; color: #fff; }
.btn-warning:hover, .btn.btn-warning:hover, button.btn.btn-warning:hover { background: #b45309; color: #fff; }
.btn-brand-soft, .btn.btn-brand-soft, button.btn.btn-brand-soft { background: #7c3aed; color: #fff; }
.btn-brand-soft:hover, .btn.btn-brand-soft:hover, button.btn.btn-brand-soft:hover { background: #6d28d9; color: #fff; }
.btn-sm { padding: 7px 12px; font-size: .8125rem; border-radius: 10px; gap: 6px; }
.btn-round { border-radius: 999px; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.cart-fab,
button.btn.cart-fab {
    position: relative;
    width: 44px; height: 44px; padding: 0;
    border-radius: 999px;
    background: var(--brand); color: #fff;
    box-shadow: 0 10px 24px rgba(203,48,72,.25);
}
.cart-fab:hover,
button.btn.cart-fab:hover { transform: translateY(-2px); color: #fff; }
.cart-fab .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.cart-count {
    position: absolute; right: -4px; top: -4px;
    min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px; border: 2px solid #fff;
    background: var(--ink); color: #fff;
    font-size: 10px; font-weight: 800;
    display: grid; place-items: center;
}

.hero-mesh {
    position: relative; overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 15% 15%, rgba(203,48,72,.11), transparent 22%),
        radial-gradient(circle at 90% 75%, rgba(37,38,42,.07), transparent 28%),
        #fff;
}
.hero-has-banner {
    background-image:
        linear-gradient(105deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.55) 38%, rgba(255,255,255,.22) 62%, rgba(255,255,255,.05) 100%),
        var(--hero-banner);
    background-size: cover;
    background-position: center right;
}
.hero-overlay { display: none; }
.hero-has-banner .hero-overlay {
    display: block; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.18));
}
.hero-grid {
    position: relative; z-index: 1;
    display: grid; gap: 48px; align-items: center;
    min-height: 630px; padding: 64px 0;
    grid-template-columns: 1.05fr .95fr;
}
.hero-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgba(203,48,72,.15);
    background: #fff; color: var(--brand);
    border-radius: 999px; padding: 8px 14px;
    font-size: .875rem; font-weight: 700;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.hero-kicker i { width: 8px; height: 8px; border-radius: 999px; background: var(--brand); display: inline-block; }
.hero h1, .display {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.08;
    margin: 0;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); max-width: 18ch; margin-top: 20px; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero-lead { margin: 22px 0 0; max-width: 40ch; font-size: 1.125rem; line-height: 1.7; color: var(--ink); }
.hero-search {
    margin-top: 36px; display: flex; gap: 10px; align-items: center;
    max-width: 640px; padding: 8px; border-radius: 18px;
    border: 1px solid #e4e4e7; background: #fff; box-shadow: var(--shadow);
}
.hero-search input { border: 0; box-shadow: none; padding: 12px 8px; }
.hero-search .btn { height: 48px; border-radius: 12px; padding: 0 28px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.hero-checks span { display: flex; align-items: center; gap: 8px; }
.hero-cta { margin: 20px 0 0; }
.check-dot { width: 20px; height: 20px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: .7rem; }

.journey-card {
    position: relative; background: #fff; border: 1px solid #fff;
    border-radius: 32px; padding: 28px; box-shadow: var(--shadow);
}
.journey-card h2 { font-family: var(--display); font-size: 1.5rem; margin: 4px 0 0; }
.journey-step { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 16px; background: #f4f4f5; margin-top: 12px; }
.journey-step.is-last { background: var(--ink); color: #fff; }
.journey-step.is-last .muted { color: rgba(255,255,255,.7); }
.step-num {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center;
    background: #fff; color: var(--ink);
    font-family: var(--display); font-weight: 800;
}
.journey-step.is-last .step-num { background: var(--ink-mid); color: #fff; }
.journey-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; text-align: center; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.journey-stats strong { display: block; font-size: 1.1rem; }

.trust-bar { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0; }
.trust-bar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.trust-bar span { display: flex; align-items: center; gap: 12px; }

.section { padding: 80px 0; }
.section h2, h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); margin: 10px 0; font-weight: 800; }
.kicker { letter-spacing: .18em; text-transform: uppercase; font-size: .75rem; font-weight: 800; color: var(--brand); }
.section-mist { background: var(--bg); }

.card, .exam-card, .panel, .table-wrap, .empty, .alert {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}
.card, .panel { padding: 22px; }
.exam-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.exam-grid-home { grid-template-columns: repeat(4, 1fr); }
.catalog-page { padding-top: 48px; }
.catalog-head {
    margin-bottom: 28px;
    max-width: 44rem;
}
.catalog-head h1 { margin: 8px 0 10px; }

.exam-path-notice {
    display: grid;
    gap: 18px;
    margin: 0 0 28px;
    padding: 22px 22px 20px;
    border: 1px solid rgba(29, 53, 87, .1);
    border-radius: 20px;
    background:
        radial-gradient(700px 220px at 0% 0%, rgba(203, 48, 72, .07), transparent 55%),
        linear-gradient(180deg, #fff, #f7f9fc);
    box-shadow: 0 14px 36px rgba(29, 53, 87, .05);
}
.exam-path-notice-intro { max-width: none; width: 100%; }
.exam-path-kicker {
    margin: 0 0 6px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand, #cb3048);
}
.exam-path-lead {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.55;
    color: #1d3557;
    font-weight: 650;
}
.exam-path-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.exam-path-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(29, 53, 87, .08);
    background: #fff;
}
.exam-path-option.is-accent {
    border-color: rgba(203, 48, 72, .18);
    background:
        linear-gradient(160deg, rgba(203, 48, 72, .05), transparent 60%),
        #fff;
}
.exam-path-num {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #1d3557;
    color: #fff;
    font-size: .85rem;
    font-weight: 800;
}
.exam-path-option.is-accent .exam-path-num {
    background: var(--brand, #cb3048);
}
.exam-path-option h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: #1d3557;
}
.exam-path-option p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.5;
    color: #51657c;
}
.exam-path-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--brand, #cb3048);
    text-decoration: none;
}
.exam-path-link:hover { text-decoration: underline; }
.exam-path-link .icon {
    width: 16px;
    height: 16px;
}
.exam-path-notice.is-compact {
    margin-bottom: 24px;
    padding: 18px;
}
.exam-path-notice.is-compact .exam-path-lead {
    font-size: .98rem;
    font-weight: 600;
}
@media (max-width: 800px) {
    .exam-path-options { grid-template-columns: 1fr; }
}

.catalog-layout {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.catalog-sidebar {
    position: sticky;
    top: 72px;
}
.catalog-filters {
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 55%),
        var(--bg-elev);
    box-shadow: var(--shadow-card);
}
.catalog-filter-block h2 {
    margin: 0 0 10px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.catalog-filter-block .field { margin: 0; }
.catalog-cat-list {
    display: grid;
    gap: 4px;
    max-height: 280px;
    overflow: auto;
    padding-right: 4px;
}
.catalog-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    font-size: .92rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.catalog-cat:hover {
    background: color-mix(in srgb, var(--brand) 8%, transparent);
    color: var(--brand);
}
.catalog-cat.is-active {
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    border-color: color-mix(in srgb, var(--brand) 22%, transparent);
    color: var(--brand);
}
.catalog-cat-mark {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--brand);
    flex-shrink: 0;
}
.catalog-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.catalog-filter-actions {
    display: grid;
    gap: 8px;
}
.catalog-filter-actions .btn {
    width: 100%;
    justify-content: center;
}
.catalog-main { min-width: 0; }
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.catalog-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.catalog-count {
    margin: 0;
    color: var(--ink-soft);
    font-size: .95rem;
}
.catalog-count strong {
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.15rem;
}
.catalog-count span { color: var(--brand); font-weight: 700; }
.exam-section-actions,
.exam-section-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}
.exam-section-footer {
    margin-top: 28px;
    justify-content: center;
}
.exam-packages-btn {
    height: 36px;
    min-height: 36px;
    padding: 0 14px;
    font-size: .86rem;
    font-weight: 650;
    color: #fff;
    border-color: var(--brand, #cb3048);
    background: var(--brand, #cb3048);
}
.exam-packages-btn:hover {
    color: #fff;
    border-color: color-mix(in srgb, var(--brand, #cb3048) 88%, #000);
    background: color-mix(in srgb, var(--brand, #cb3048) 88%, #000);
}
.exam-packages-btn .icon {
    width: 15px;
    height: 15px;
}
.catalog-exam-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.catalog-empty {
    text-align: center;
    padding: 48px 24px;
    display: grid;
    gap: 10px;
    justify-items: center;
}
.exam-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1px solid rgba(29, 53, 87, .08);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(29, 53, 87, .05);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.exam-card:hover {
    transform: translateY(-5px);
    border-color: rgba(203, 48, 72, .22);
    box-shadow: 0 20px 44px rgba(29, 53, 87, .1);
}
.exam-card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: #eef2f6;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.exam-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}
.exam-card:hover .exam-card-cover img {
    transform: scale(1.04);
}
.exam-card-cover-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 18, 32, .08) 0%, transparent 42%, rgba(10, 18, 32, .18) 100%);
    pointer-events: none;
}
.exam-card-cover-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--brand);
    background:
        radial-gradient(120% 80% at 10% 0%, rgba(203, 48, 72, .1), transparent 55%),
        linear-gradient(145deg, #fafafa, #f0f0f1);
}
.exam-card-cover-fallback .icon { width: 36px; height: 36px; }
.exam-placeholder-preview {
    width: 100%;
    max-width: 260px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(29, 53, 87, .06);
}
.exam-placeholder-preview-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(145deg, #fafafa, #f0f0f1);
}
.exam-placeholder-preview-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.exam-placeholder-preview-cover .exam-card-cover-fallback {
    position: absolute;
    inset: 0;
}
.exam-placeholder-preview-body {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
}
.exam-placeholder-preview-body strong {
    color: var(--ink);
    font-size: .92rem;
}
.exam-card-tags {
    position: absolute;
    inset: 12px 12px auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    z-index: 1;
    pointer-events: none;
}
.tag-cat {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, .92);
    color: var(--brand);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
    backdrop-filter: blur(8px);
}
.tag-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(29, 53, 87, .92);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .12);
}
.tag-badge.is-offer {
    background: var(--brand, #cb3048);
}
.exam-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 18px 16px;
    gap: 0;
}
.exam-card h3 {
    font-family: var(--display), Manrope, sans-serif;
    font-size: 1.08rem;
    font-weight: 780;
    letter-spacing: -.02em;
    line-height: 1.3;
    margin: 0;
}
.exam-card-title {
    color: #1d3557;
    text-decoration: none;
}
.exam-card-title:hover {
    color: var(--brand, #cb3048);
}
.exam-card-desc {
    margin: 8px 0 0;
    color: #64748b;
    font-size: .88rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.exam-prep {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 650;
    color: #7a8ba0;
    margin: 12px 0 0;
}
.prep-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--brand);
    flex-shrink: 0;
}
.exam-card-price {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(29, 53, 87, .08);
}
.exam-card-price-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8a9aab;
    margin-bottom: 2px;
}
.exam-card-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 14px;
}
.exam-card-details {
    justify-content: center;
}
.exam-add {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 1.3rem;
    border-radius: 12px;
}
.price {
    margin: 0;
    font-weight: 800;
    font-size: 1.4rem;
    font-family: var(--display), Manrope, sans-serif;
    color: #1d3557;
    letter-spacing: -.02em;
}
.price s {
    color: #94a3b8;
    font-weight: 500;
    margin-left: 6px;
    font-size: .9rem;
}
.badge, .badge-success, .badge-warning, .badge-danger, .badge-info, .badge-muted,
[class*="badge-st-"] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 2px 8px;
    min-height: 20px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.2;
    background: var(--brand-soft);
    color: var(--brand);
    white-space: nowrap;
}
.badge-ink { background: var(--ink); color: #fff; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #ffedd5; color: #9a3412; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #e0f2fe; color: #075985; }
.badge-muted { background: #f1f5f9; color: #475569; }

/* Status com cores distintas */
.badge-st-pending { background: #fef3c7; color: #92400e; }          /* âmbar */
.badge-st-confirmed { background: #dcfce7; color: #166534; }        /* verde */
.badge-st-rescheduled { background: #ede9fe; color: #5b21b6; }      /* roxo */
.badge-st-cancel-customer { background: #ffe4e6; color: #9f1239; }  /* rosa */
.badge-st-cancel-lab { background: #fee2e2; color: #991b1b; }       /* vermelho */
.badge-st-in-service { background: #e0f2fe; color: #075985; }       /* azul */
.badge-st-completed { background: #ccfbf1; color: #0f766e; }        /* teal */
.badge-st-no-show { background: #ffedd5; color: #9a3412; }          /* laranja */

.badge-st-cart { background: #f1f5f9; color: #475569; }             /* cinza */
.badge-st-awaiting { background: #fef3c7; color: #92400e; }         /* âmbar */
.badge-st-paid { background: #d1fae5; color: #047857; }             /* verde-escuro */
.badge-st-partial { background: #cffafe; color: #0e7490; }          /* ciano */
.badge-st-full { background: #e0e7ff; color: #3730a3; }             /* índigo */
.badge-st-cancelled { background: #fee2e2; color: #991b1b; }        /* vermelho */
.badge-st-refunded { background: #fce7f3; color: #9d174d; }         /* magenta */

.badge-st-authorized { background: #dbeafe; color: #1d4ed8; }       /* azul royal */
.badge-st-expired { background: #e7e5e4; color: #57534e; }          /* pedra */
.badge-st-refused { background: #fecaca; color: #7f1d1d; }          /* vermelho forte */

.badge-st-open { background: #fef9c3; color: #854d0e; }
.badge-st-notified { background: #e0f2fe; color: #0369a1; }
.badge-st-converted { background: #dcfce7; color: #15803d; }

[data-theme="dark"] .badge-success { background: #14532d; color: #bbf7d0; }
[data-theme="dark"] .badge-warning { background: #7c2d12; color: #fed7aa; }
[data-theme="dark"] .badge-danger { background: #7f1d1d; color: #fecaca; }
[data-theme="dark"] .badge-info { background: #0c4a6e; color: #bae6fd; }
[data-theme="dark"] .badge-st-pending,
[data-theme="dark"] .badge-st-awaiting { background: #78350f; color: #fde68a; }
[data-theme="dark"] .badge-st-confirmed { background: #14532d; color: #bbf7d0; }
[data-theme="dark"] .badge-st-rescheduled { background: #4c1d95; color: #ddd6fe; }
[data-theme="dark"] .badge-st-cancel-customer { background: #881337; color: #fecdd3; }
[data-theme="dark"] .badge-st-cancel-lab,
[data-theme="dark"] .badge-st-cancelled { background: #7f1d1d; color: #fecaca; }
[data-theme="dark"] .badge-st-in-service { background: #0c4a6e; color: #bae6fd; }
[data-theme="dark"] .badge-st-completed { background: #115e59; color: #99f6e4; }
[data-theme="dark"] .badge-st-no-show { background: #7c2d12; color: #fed7aa; }
[data-theme="dark"] .badge-st-cart { background: #334155; color: #cbd5e1; }
[data-theme="dark"] .badge-st-paid { background: #064e3b; color: #a7f3d0; }
[data-theme="dark"] .badge-st-partial { background: #155e75; color: #a5f3fc; }
[data-theme="dark"] .badge-st-full { background: #312e81; color: #c7d2fe; }
[data-theme="dark"] .badge-st-refunded { background: #9d174d; color: #fbcfe8; }
[data-theme="dark"] .badge-st-authorized { background: #1e3a8a; color: #bfdbfe; }
[data-theme="dark"] .badge-st-expired { background: #44403c; color: #d6d3d1; }
[data-theme="dark"] .badge-st-refused { background: #7f1d1d; color: #fecaca; }
[data-theme="dark"] .badge-st-open { background: #713f12; color: #fef08a; }
[data-theme="dark"] .badge-st-notified { background: #0c4a6e; color: #bae6fd; }
[data-theme="dark"] .badge-st-converted { background: #14532d; color: #bbf7d0; }

.pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill {
    flex-shrink: 0; border-radius: 999px; padding: 10px 20px;
    border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
    font-weight: 700; font-size: .875rem; text-decoration: none;
}
.pill:hover { border-color: var(--brand); color: var(--brand); }
.pill.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.cards, .stats, .grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.home-about-copy{max-width:760px;margin:18px auto 0;text-align:center}
.home-testimonials-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:20px;margin-top:28px}
.home-testimonial{margin:0;display:flex;flex-direction:column;gap:16px;min-width:0;overflow-wrap:anywhere}
.home-testimonial blockquote{margin:0;flex:1}.home-testimonial blockquote p{margin:0}
.home-testimonial figcaption{display:grid;gap:4px}.home-testimonial-rating{color:var(--brand);letter-spacing:.12em}
.grid-2, .split { display: grid; gap: 20px; grid-template-columns: 1.1fr .9fr; }
.stat { padding: 18px; }
.stat b { display: block; font-size: 1.5rem; font-family: var(--display); }

.step-card { border-radius: 24px; padding: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.step-ico {
    width: 48px; height: 48px; border-radius: 16px;
    display: grid; place-items: center;
    background: var(--brand); color: #fff;
    font-family: var(--display); font-weight: 800;
}
.step-ico.ink { background: var(--ink); }

.units-panel {
    background: linear-gradient(165deg, var(--ink) 0%, var(--ink-deep) 100%);
    color: #fff;
    border-radius: 32px;
    padding: 24px;
}
.home-units { display: grid; gap: 28px; }
.home-units-intro { max-width: 42rem; }
.home-units-intro h2 { margin: 8px 0 12px; }
.home-units-intro a { font-weight: 700; color: var(--brand); }
.home-units-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.unit-tile {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 20px;
    overflow: hidden;
}
.unit-tile h3 { margin: 8px 0; color: #fff; }
.unit-tile .muted { color: rgba(255,255,255,.6); }
.unit-tile a { color: #fff; font-weight: 700; }
.unit-tile-media { margin: -20px -20px 16px; aspect-ratio: 16/9; overflow: hidden; background: var(--ink-deep); }
.unit-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.unit-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.unit-card {
    background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
    display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.unit-card-media { aspect-ratio: 16 / 9; background: #f4f4f5; }
.unit-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.unit-card-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: var(--brand); min-height: 180px; }
.unit-card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.unit-card-body h2 { margin: 0; font-family: var(--display); font-size: 1.4rem; }
.unit-card-body a { font-weight: 700; margin-top: 8px; }

.footer-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.footer-socials a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: rgba(255,255,255,.8);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.footer-socials a:hover {
    color: #fff;
    background: rgba(203,48,72,.9);
    border-color: transparent;
}
.footer-social-icon { width: 18px; height: 18px; }

.exam-detail-media {
    border-radius: 24px; overflow: hidden; margin-bottom: 24px;
    aspect-ratio: 16 / 9; background: #f4f4f5;
}
.exam-detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Exam detail — premium */
.exam-page {
    background:
        radial-gradient(900px 380px at 100% 0%, rgba(203, 48, 72, .05), transparent 55%),
        #f3f5f8;
    padding: 28px 0 64px;
}
.exam-page-shell { max-width: 1120px; }
.exam-page-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    font-size: .88rem;
    color: #6b7c8f;
}
.exam-page-crumbs a { color: var(--brand, #cb3048); font-weight: 650; }
.exam-page-crumbs a:hover { color: var(--brand-dark, #b7253d); }
.exam-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    align-items: start;
}
.exam-page-main { min-width: 0; }
.exam-page-head {
    margin: 0 0 22px;
    padding: 0 0 22px;
    border-bottom: 1px solid rgba(29, 53, 87, .1);
}
.exam-page-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.exam-page-code,
.exam-page-type,
.exam-page-cat {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1px solid rgba(29, 53, 87, .12);
    background: #fff;
    color: #475569;
}
.exam-page-code { color: var(--brand, #cb3048); border-color: rgba(203, 48, 72, .22); background: rgba(203, 48, 72, .06); }
.exam-page-type { color: var(--ink, #1d3557); border-color: rgba(29, 53, 87, .18); }
.exam-page-head h1 {
    margin: 0;
    font-family: var(--display), Manrope, sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.15;
    color: var(--ink, #1d3557);
}
.exam-page-lead {
    margin: 12px 0 0;
    max-width: 52ch;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #52627a;
}
.exam-page-meta {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.exam-page-meta li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    background: #fff;
    border-top: 2px solid var(--brand, #cb3048);
}
.exam-page-meta-ico {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: rgba(203, 48, 72, .08);
    color: var(--brand, #cb3048);
    flex: 0 0 auto;
}
.exam-page-meta-ico .icon { width: 15px; height: 15px; }
.exam-page-meta strong {
    display: block;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 750;
}
.exam-page-meta span {
    display: block;
    margin-top: 2px;
    color: var(--ink, #1d3557);
    font-weight: 700;
    font-size: .92rem;
}
.exam-page-buy {
    position: sticky;
    top: 88px;
}
.exam-page-buy-inner {
    background: #fff;
    border: 1px solid rgba(29, 53, 87, .1);
    padding: 22px 20px 20px;
    box-shadow: 0 14px 36px rgba(29, 53, 87, .08);
}
.exam-page-buy-label {
    margin: 0;
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #64748b;
}
.exam-page-price {
    margin: 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}
.exam-page-price strong {
    font-family: var(--display), Manrope, sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--ink, #1d3557);
}
.exam-page-price s {
    color: #94a3b8;
    font-size: .95rem;
    font-weight: 600;
}
.exam-page-promo {
    margin: 6px 0 0;
    color: var(--brand, #cb3048);
    font-size: .88rem;
    font-weight: 700;
}
.exam-page-buy-form { margin-top: 16px; }
.exam-page-cta {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    font-weight: 750;
}
.exam-page-units {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(29, 53, 87, .1);
}
.exam-page-units-title {
    margin: 0 0 10px;
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #64748b;
}
.exam-page-units ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.exam-page-units li strong {
    display: block;
    color: var(--ink, #1d3557);
    font-size: .92rem;
}
.exam-page-units li span {
    color: #64748b;
    font-size: .84rem;
}
.exam-page-buy-note {
    margin: 14px 0 0;
    font-size: .8rem;
    color: #6b7c8f;
    line-height: 1.45;
}
.exam-page-intro {
    display: grid;
    grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin: 0 0 22px;
    padding: 0 0 22px;
    border-bottom: 1px solid rgba(29, 53, 87, .1);
}
.exam-page-intro.is-text-only {
    grid-template-columns: 1fr;
}
.exam-page-intro.is-media-only {
    grid-template-columns: minmax(160px, 240px);
}
.exam-page-media {
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #dbe3ee;
    aspect-ratio: 4 / 3;
    max-width: 240px;
    width: 100%;
    box-shadow: 0 10px 28px rgba(29, 53, 87, .08);
}
.exam-page-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.exam-page-about h2 {
    margin: 0 0 10px;
    font-family: var(--display), Manrope, sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink, #1d3557);
}
.exam-page-about .rich-text {
    color: #334155;
    font-size: 1rem;
    line-height: 1.65;
}
.exam-page-about-fallback {
    margin: 0;
    color: #334155;
    font-size: 1rem;
    line-height: 1.65;
}
.exam-page-block {
    margin: 0 0 20px;
    padding: 0 0 20px;
    border-bottom: 1px solid rgba(29, 53, 87, .1);
}
.exam-page-block:last-of-type { border-bottom: 0; margin-bottom: 12px; padding-bottom: 0; }
.exam-page-block h2 {
    margin: 0 0 10px;
    font-family: var(--display), Manrope, sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink, #1d3557);
}
.exam-page-block .rich-text {
    color: #334155;
    font-size: 1rem;
    line-height: 1.65;
}
.exam-page-prep-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 0;
}
.exam-page-prep-list li {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid rgba(29, 53, 87, .08);
}
.exam-page-prep-list li:last-child { border-bottom: 1px solid rgba(29, 53, 87, .08); }
.exam-page-prep-list strong {
    color: var(--ink, #1d3557);
    font-size: .9rem;
}
.exam-page-prep-list span { color: #475569; line-height: 1.5; }
.exam-page-package {
    list-style: none;
    margin: 0;
    padding: 0;
}
.exam-page-package li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-top: 1px solid rgba(29, 53, 87, .1);
}
.exam-page-package li:last-child { border-bottom: 1px solid rgba(29, 53, 87, .1); }
.exam-page-package-num {
    flex: 0 0 auto;
    font-family: var(--display), Manrope, sans-serif;
    font-weight: 800;
    color: var(--brand, #cb3048);
    font-size: .92rem;
    padding-top: 1px;
}
.exam-page-package strong {
    display: block;
    color: var(--ink, #1d3557);
}
.exam-page-package small {
    color: #64748b;
    font-size: .84rem;
}
.exam-page-package-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6em;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, #22c55e 14%, transparent);
    color: #1b6b3a;
    font-size: .78rem;
    font-weight: 800;
    vertical-align: middle;
}
.exam-page-package-body { min-width: 0; flex: 1; display: grid; gap: 6px; }
.exam-page-package-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.exam-page-package-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(29, 53, 87, .06);
    color: var(--ink-soft, #64748b);
    font-size: .72rem;
    font-weight: 700;
}
.exam-page-package-chip.is-fast {
    background: color-mix(in srgb, var(--brand, #cb3048) 12%, transparent);
    color: var(--brand, #cb3048);
}
.exam-page-package-more {
    margin-top: 2px;
}
.exam-page-package-more > summary {
    cursor: pointer;
    color: var(--brand, #cb3048);
    font-size: .84rem;
    font-weight: 700;
    list-style: none;
}
.exam-page-package-more > summary::-webkit-details-marker { display: none; }
.exam-page-package-more[open] > summary { margin-bottom: 8px; }
.exam-page-package-more p {
    margin: 0 0 8px;
    color: #475569;
    font-size: .88rem;
    line-height: 1.45;
}
.exam-page-package-prep {
    padding: 10px 12px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--brand, #cb3048) 7%, #fff);
    border: 1px solid color-mix(in srgb, var(--brand, #cb3048) 16%, transparent);
}
.exam-page-package-prep strong {
    margin-bottom: 4px;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--brand, #cb3048);
}
.exam-page-package-prep .rich-text {
    color: #44586e;
    font-size: .86rem;
    line-height: 1.5;
}
.exam-page-faq-list { display: grid; gap: 8px; }
.exam-page-faq-item {
    background: #fff;
    border: 1px solid rgba(29, 53, 87, .1);
}
.exam-page-faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    font-family: var(--display), Manrope, sans-serif;
    font-weight: 750;
    color: var(--ink, #1d3557);
}
.exam-page-faq-item summary::-webkit-details-marker { display: none; }
.exam-page-faq-item summary i {
    width: 18px;
    height: 18px;
    position: relative;
    flex: 0 0 auto;
}
.exam-page-faq-item summary i::before,
.exam-page-faq-item summary i::after {
    content: "";
    position: absolute;
    background: var(--brand, #cb3048);
    transition: transform .2s ease;
}
.exam-page-faq-item summary i::before {
    left: 0; right: 0; top: 8px; height: 2px;
}
.exam-page-faq-item summary i::after {
    top: 0; bottom: 0; left: 8px; width: 2px;
}
.exam-page-faq-item[open] summary i::after { transform: scaleY(0); }
.exam-page-faq-item[open] summary {
    border-bottom: 1px solid rgba(29, 53, 87, .08);
}
.exam-page-faq-item p {
    margin: 0;
    padding: 12px 16px 16px;
    color: #475569;
    line-height: 1.55;
}
.exam-page-disclaimer {
    margin: 8px 0 0;
    font-size: .86rem;
    color: #6b7c8f;
    line-height: 1.5;
}

@media (max-width: 960px) {
    .exam-page { padding: 20px 0 48px; }
    .exam-page-layout { grid-template-columns: 1fr; gap: 20px; }
    .exam-page-buy { position: static; order: -1; }
    .exam-page-meta { grid-template-columns: 1fr; }
    .exam-page-prep-list li { grid-template-columns: 1fr; gap: 4px; }
    .exam-page-intro {
        grid-template-columns: 1fr;
    }
    .exam-page-intro.is-media-only {
        grid-template-columns: minmax(0, 220px);
    }
    .exam-page-media {
        max-width: 220px;
    }
}

.cta-band {
    background: var(--brand); color: #fff; border-radius: 32px;
    padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.cta-band h2 { color: #fff; margin: 8px 0; }
.cta-band .muted, .cta-band p { color: rgba(255,255,255,.8); }
.cta-band .btn { background: #fff; color: var(--brand); }
.cta-band .btn:hover { background: #fff5f6; color: var(--brand); }

.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 12px; }
.faq-item summary { font-family: var(--display); font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
label { font-weight: 700; font-size: .92rem; }
input, select, textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 12px;
    padding: 11px 12px; font: inherit; background: var(--bg-elev); color: var(--ink);
}
.password-field {
    position: relative;
    display: block;
    width: 100%;
}
.password-field input {
    padding-right: 44px;
}
.password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink-soft);
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
}
.password-toggle:hover,
.password-toggle.is-on {
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.password-toggle .icon {
    width: 18px;
    height: 18px;
}
textarea { min-height: 110px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.check input { width: auto; }

.alert { padding: 12px 14px; margin: 12px 0; }
.alert-success { border-color: #86efac; }
.alert-error, .alert-danger { border-color: #fca5a5; }
.alert-warning { border-color: #fdba74; }
.toast-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: grid; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 999px; min-width: 240px; font-weight: 700; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.mobile-cards { display: none; }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pagination a, .pagination span {
    min-width: 36px; height: 36px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elev);
    text-decoration: none; color: inherit;
}
.pagination .is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty { padding: 40px; text-align: center; }

.site-footer {
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
    color: #fff;
    padding: 56px 0 0;
    margin-top: 0;
}
.site-footer a { color: rgba(255,255,255,.6); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.3fr 1fr 1fr 1fr; padding-bottom: 40px; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; color: rgba(255,255,255,.4); font-size: .75rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(160deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    text-decoration: none;
    box-shadow:
        0 10px 28px rgba(18, 140, 126, .42),
        0 2px 8px rgba(0, 0, 0, .18);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.wa-float:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow:
        0 14px 34px rgba(18, 140, 126, .5),
        0 4px 12px rgba(0, 0, 0, .2);
    filter: brightness(1.04);
}
.wa-float:active { transform: translateY(-1px); }
.wa-float-icon {
    width: 28px;
    height: 28px;
}
@media (max-width: 520px) {
    .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
    .wa-float-icon { width: 26px; height: 26px; }
}

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background:
    radial-gradient(circle at 15% 15%, rgba(203,48,72,.12), transparent 28%),
    var(--bg);
}
.auth-card { width: min(460px, 100%); background: var(--bg-elev); border: 1px solid var(--line); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); }
.auth-card .logo-img { height: 52px; margin-bottom: 18px; }

/* Admin login / recuperar senha */
.admin-auth-body {
    min-height: 100vh;
    margin: 0;
    background: #0f1c2e;
    color: var(--ink);
    overflow-x: hidden;
}
.admin-auth-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(120% 80% at 10% -10%, rgba(203, 48, 72, .28), transparent 42%),
        radial-gradient(90% 70% at 100% 0%, rgba(69, 123, 157, .35), transparent 48%),
        linear-gradient(160deg, #0f1c2e 0%, #1d3557 48%, #142943 100%);
}
.admin-auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    opacity: .55;
    animation: admin-auth-float 14s ease-in-out infinite;
}
.admin-auth-orb-a {
    width: 420px;
    height: 420px;
    left: -120px;
    top: -80px;
    background: radial-gradient(circle, rgba(203, 48, 72, .55), transparent 68%);
}
.admin-auth-orb-b {
    width: 360px;
    height: 360px;
    right: -80px;
    bottom: 8%;
    background: radial-gradient(circle, rgba(69, 123, 157, .5), transparent 70%);
    animation-delay: -4s;
}
.admin-auth-orb-c {
    width: 220px;
    height: 220px;
    left: 42%;
    bottom: -60px;
    background: radial-gradient(circle, rgba(168, 218, 220, .28), transparent 70%);
    animation-delay: -7s;
}
.admin-auth-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, #000 35%, transparent 80%);
    opacity: .55;
}
@keyframes admin-auth-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(18px, -22px, 0) scale(1.05); }
}
.admin-auth-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 36px 16px;
}
.admin-auth-card {
    width: min(440px, 100%);
    padding: 34px 32px 28px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), #fff 40%),
        #fff;
    border: 1px solid rgba(255,255,255,.55);
    box-shadow:
        0 30px 80px rgba(8, 18, 34, .38),
        0 2px 0 rgba(255,255,255,.65) inset;
    backdrop-filter: blur(18px);
}
.admin-auth-brand { margin-bottom: 22px; }
.admin-auth-logo {
    height: 46px;
    width: auto;
    margin-bottom: 18px;
}
.admin-auth-brand h1 {
    margin: 6px 0 8px;
    font-size: 1.2rem;
    letter-spacing: -.03em;
}
.admin-auth-lead {
    margin: 0;
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.5;
}
.admin-auth-form {
    display: grid;
    gap: 14px;
}
.admin-auth-form .field { margin: 0; }
.admin-auth-form input[type="email"],
.admin-auth-form input[type="password"] {
    border-radius: 14px;
    padding: 13px 14px;
    border: 1px solid color-mix(in srgb, var(--line) 80%, var(--ink-soft));
    background: #f8fafc;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.admin-auth-form input:focus {
    background: #fff;
    border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent);
    outline: none;
}
.admin-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.admin-auth-remember {
    margin: 0;
    font-size: .88rem;
    color: var(--ink-soft);
}
.admin-auth-forgot {
    font-size: .88rem;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
}
.admin-auth-forgot:hover { color: var(--brand-dark); }
.admin-auth-submit {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
    min-height: 48px;
    border-radius: 14px;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 28%, transparent);
}
.admin-auth-foot {
    margin: 22px 0 0;
    text-align: center;
}
.admin-auth-foot a {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
}
.admin-auth-foot a:hover { color: var(--ink); }
.admin-auth-card .alert { margin-bottom: 4px; }
@media (max-width: 520px) {
    .admin-auth-card { padding: 28px 20px 22px; border-radius: 24px; }
    .admin-auth-brand h1 { font-size: 1.45rem; }
}

/* Admin — layout referência (logo no sidebar) */
.admin-app {
    display: grid;
    grid-template-columns: 248px 1fr;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
}
.admin-side {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-elev);
    border-right: 1px solid var(--line);
    padding: 0;
    overflow: hidden;
}
.admin-brand {
    display: flex;
    align-items: center;
    padding: 7px 18px 14px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    flex-shrink: 0;
}
.admin-brand img {
    height: 42px;
    width: auto;
    display: block;
}
.admin-nav {
    flex: 1;
    overflow: auto;
    padding: 12px 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.admin-nav a {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 9px 14px;
    border-radius: 12px;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
}
.admin-nav a:hover { background: var(--bg); color: var(--ink); }
.admin-nav a.is-active {
    background: var(--brand);
    color: #fff;
}
.admin-nav a.is-active .icon { color: #fff; stroke: #fff; }
.admin-nav-group { display: flex; flex-direction: column; gap: 2px; }
.admin-nav-toggle {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink-soft);
    font: inherit;
    font-weight: 600;
    font-size: .92rem;
    cursor: pointer;
    text-align: left;
}
.admin-nav-toggle:hover { background: var(--bg); color: var(--ink); }
.admin-nav-toggle .admin-nav-caret {
    width: 16px;
    height: 16px;
    margin-left: auto;
    opacity: .7;
    transition: transform .18s ease;
}
.admin-nav-group.is-open > .admin-nav-toggle .admin-nav-caret { transform: rotate(180deg); }
.admin-nav-group.is-open > .admin-nav-toggle { color: var(--ink); }
.admin-nav-group.is-active > .admin-nav-toggle {
    background: var(--bg);
    color: var(--ink);
}
.admin-nav-group.is-active > .admin-nav-toggle .icon {
    color: var(--brand);
    stroke: var(--brand);
}
[data-theme="dark"] .admin-nav-group.is-active > .admin-nav-toggle {
    background: #1f1f1f;
    color: #fff;
}
[data-theme="dark"] .admin-nav-group.is-active > .admin-nav-toggle .icon {
    color: #fff;
    stroke: #fff;
}
.admin-nav-sub {
    display: none;
    flex-direction: column;
    gap: 1px;
    padding: 0 0 4px 12px;
    margin: 0 0 4px;
}
.admin-nav-group.is-open > .admin-nav-sub { display: flex; }
.admin-nav-sub a {
    padding: 8px 12px 8px 28px;
    font-size: .86rem;
    font-weight: 500;
    position: relative;
}
.admin-nav-sub a::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: .35;
    transform: translateY(-50%);
}
.admin-nav-sub a.is-active {
    background: var(--brand);
    color: #fff;
}
.admin-nav-sub a.is-active::before { opacity: 1; background: #fff; }
.admin-side-foot {
    flex-shrink: 0;
    padding: 14px 18px 18px;
    border-top: 1px solid var(--line);
    font-size: .78rem;
    color: var(--ink-soft);
    line-height: 1.35;
}
.admin-side-foot strong {
    display: block;
    color: var(--ink);
    font-size: .85rem;
    margin-bottom: 2px;
}
.admin-side-foot span { display: block; }

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 18px;
    padding: 6px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 14px;
}
.admin-tab {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 10px;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: .88rem;
}
.admin-tab:hover { background: var(--bg); color: var(--ink); }
.admin-tab.is-active {
    background: var(--brand);
    color: #fff;
}
.admin-tab-panel { min-width: 0; }
.admin-log-item {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
}
.admin-log-tabs details > summary {
    cursor: pointer;
    list-style: none;
}
.admin-log-tabs details > summary::-webkit-details-marker { display: none; }

.seo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: 18px;
    align-items: start;
}
.seo-layout-form,
.seo-layout-previews { min-width: 0; }
.seo-previews-sticky {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 14px;
}
.seo-og-field {
    width: 100%;
}
.seo-og-field .admin-file-btn {
    width: 100%;
    justify-content: center;
}
.seo-og-field .admin-img-preview,
.seo-og-preview {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 1200 / 630;
}
.seo-previews-heading {
    margin: 0 0 12px;
    font-size: 1rem;
    font-family: var(--display);
}
.seo-previews {
    display: grid;
    gap: 14px;
}
.seo-serp.card { padding: 14px; }
.seo-serp-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 10px;
    font-size: .78rem;
}
.seo-serp-engine {
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--ink);
}
.seo-serp-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    font-family: Arial, sans-serif;
}
.seo-serp-url {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #202124;
    font-size: .78rem;
    margin-bottom: 4px;
}
.seo-serp-favicon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #e8f0fe;
    border: 1px solid #d2e3fc;
    flex-shrink: 0;
}
.seo-serp-title {
    display: inline-block;
    color: #1a0dab;
    font-size: 1.15rem;
    line-height: 1.3;
    text-decoration: none;
    font-weight: 400;
}
.seo-serp-title:hover { text-decoration: underline; }
.seo-serp-desc {
    margin: 4px 0 0;
    color: #4d5156;
    font-size: .875rem;
    line-height: 1.45;
}
.seo-serp-card.is-bing-card { background: #f5f5f5; border-color: #e0e0e0; }
.seo-serp-title.is-bing-title { color: #001ba0; font-size: 1.05rem; font-weight: 600; }
.seo-serp-url.is-bing-url { color: #006621; margin: 2px 0 4px; }
.seo-serp-desc.is-bing-desc { color: #666; }
[data-theme="dark"] .seo-serp-card { background: #111; border-color: #2a2a2a; }
[data-theme="dark"] .seo-serp-title { color: #8ab4f8; }
[data-theme="dark"] .seo-serp-url,
[data-theme="dark"] .seo-serp-desc { color: #bdc1c6; }
[data-theme="dark"] .seo-serp-card.is-bing-card { background: #161616; }
[data-theme="dark"] .seo-serp-title.is-bing-title { color: #9bb0ff; }
[data-theme="dark"] .seo-serp-url.is-bing-url { color: #7dcea0; }
@media (max-width: 980px) {
    .seo-layout { grid-template-columns: 1fr; }
    .seo-previews-sticky { position: static; }
}

.admin-frame { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 22px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 30;
}
.admin-search {
    flex: 1;
    max-width: 420px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 16px;
}
.admin-search input { border: 0; background: transparent; padding: 10px 0; outline: none; width: 100%; }
.admin-unit-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    flex-shrink: 0;
}
.admin-unit-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    color: var(--ink);
    font-size: .78rem;
    white-space: nowrap;
}
.admin-unit-chip .icon { width: 14px; height: 14px; color: var(--brand); }
.admin-unit-chip b { font-weight: 700; }
.admin-unit-switch select {
    min-width: 150px;
    max-width: 200px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    font-size: .82rem;
    font-weight: 600;
    padding: 0 10px;
}
.admin-top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
@media (max-width: 960px) {
    .admin-topbar { height: auto; min-height: 64px; flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
    .admin-topbar .admin-search { display: none; }
    .admin-topbar .admin-unit-switch { order: 3; flex-basis: 100%; min-width: 0; }
    .admin-topbar .admin-unit-switch select { flex: 1; min-width: 0; max-width: none; }
    .admin-topbar > .admin-unit-chip { order: 3; max-width: 100%; white-space: normal; }
}
.admin-view-site {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 10px !important;
    border: 1px solid var(--line) !important;
    background: transparent !important;
    color: var(--ink) !important;
    white-space: nowrap;
}
.admin-view-site:hover { background: var(--bg) !important; }
.admin-view-site .icon { width: 14px; height: 14px; }
.admin-ico-btn {
    width: 36px; height: 36px; border: 0; border-radius: 999px;
    background: transparent; color: var(--ink-soft); cursor: pointer;
    display: grid; place-items: center;
}
.admin-ico-btn:hover { background: var(--bg); color: var(--ink); }
.admin-menu-btn { display: none; }
.admin-user { font-size: .85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 12px; padding: 4px 6px; margin: -4px -6px; }
.admin-user:hover { background: var(--bg); color: var(--ink-soft); }
.admin-side-foot-link { display: block; color: inherit; text-decoration: none; }
.admin-side-foot-link:hover strong { color: var(--brand); }
.admin-user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.admin-user-meta b { color: var(--ink); font-weight: 700; font-size: .88rem; }
.admin-user-meta small { color: var(--ink-soft); font-size: .72rem; }
.admin-avatar {
    width: 34px; height: 34px; border-radius: 999px;
    background: var(--brand); color: #fff;
    display: grid; place-items: center; font-weight: 800; font-size: .85rem;
    overflow: hidden;
}
.admin-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-profile-head {
    display: flex;
    align-items: center;
    gap: 14px;
}
.user-profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    object-fit: cover;
    border: 3px solid color-mix(in srgb, var(--brand) 25%, var(--line));
    flex-shrink: 0;
}
.user-profile-avatar.is-sm {
    width: 48px;
    height: 48px;
    border-width: 2px;
}
.user-profile-avatar.is-fallback {
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    font-size: 1.75rem;
}
.user-profile-avatar.is-fallback.is-sm {
    font-size: 1.1rem;
}
.audit-json {
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    overflow: auto;
    max-height: 420px;
    font-size: .82rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}
.audit-ua {
    font-weight: 400 !important;
    font-size: .85rem !important;
    word-break: break-word;
}
.admin-logout {
    border-radius: 999px !important;
    border: 1px solid var(--line) !important;
    background: transparent !important;
    color: var(--ink-soft) !important;
}
.admin-logout:hover { background: var(--bg) !important; color: var(--ink) !important; }
.admin-main { padding: 28px 32px 48px; }
.admin-main > h1:first-child { font-size: 1.75rem; margin: 0 0 6px; }
.admin-lead { color: var(--ink-soft); margin: 0 0 28px; }
.admin-resource-alert {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 18px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--info) 28%, var(--line));
    background: color-mix(in srgb, var(--info) 12%, var(--bg-elev));
    color: var(--ink);
    font-size: .92rem;
    line-height: 1.55;
}
[data-theme="dark"] .admin-resource-alert {
    border-color: color-mix(in srgb, var(--info) 40%, var(--line));
    background: color-mix(in srgb, var(--info) 18%, var(--bg-elev));
}
.field-select-search {
    display: grid;
    gap: 8px;
}
.field-select-search-input {
    margin: 0 !important;
}
.field-select-search select {
    min-height: 2.6rem;
}

/* Admin — tables & forms premium */
.admin-toolbar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 16px; padding: 10px 12px;
    background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px;
}
[data-crud-results].is-loading {
    opacity: .55;
    pointer-events: none;
    transition: opacity .15s ease;
}
.admin-toolbar-search {
    display: flex; align-items: center; gap: 8px; flex: 1; min-width: 200px;
}
.admin-toolbar-search .icon { width: 16px; height: 16px; color: var(--ink-soft); flex-shrink: 0; }
.admin-toolbar-search input {
    border: 0; background: transparent; padding: 6px 0; box-shadow: none; outline: none; font-size: .875rem;
}
.admin-toolbar-filter select {
    width: auto !important;
    min-width: 140px;
    margin: 0 !important;
    padding: 7px 28px 7px 10px !important;
    border-radius: 8px !important;
    border: 1px solid var(--line) !important;
    background: var(--bg) !important;
    font-size: .82rem !important;
    color: var(--ink) !important;
}
.admin-badge.is-exam { background: rgba(29,53,87,.1); color: #1D3557; }
.admin-badge.is-pkg { background: rgba(203,48,72,.12); color: #cb3048; }
[data-theme="dark"] .admin-badge.is-exam { color: #93c5fd; background: rgba(147,197,253,.12); }
[data-theme="dark"] .admin-badge.is-pkg { color: #fca5a5; background: rgba(252,165,165,.12); }
.admin-table-wrap {
    background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: none; overflow: auto;
}
.admin-table {
    width: 100%; border-collapse: collapse; font-size: .8125rem;
}
.admin-table.table-sm th,
.admin-table.table-sm td {
    padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle;
}
.admin-table thead th {
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: var(--ink-soft); background: color-mix(in srgb, var(--bg) 80%, transparent);
    white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
.admin-table tbody tr:hover { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table .col-actions { width: 1%; white-space: nowrap; text-align: right; }
.admin-row-actions {
    display: inline-flex; align-items: center; gap: 2px; justify-content: flex-end;
}
.admin-row-actions form { display: inline; margin: 0; }
.admin-action {
    width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent;
    color: var(--ink-soft); display: inline-grid; place-items: center; cursor: pointer;
    text-decoration: none; padding: 0; transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.admin-action .icon { width: 15px; height: 15px; }
.admin-action.is-edit { color: #3b82f6; }
.admin-action.is-edit:hover { background: rgba(59,130,246,.14); color: #2563eb; }
.admin-action.is-clone { color: #06b6d4; }
.admin-action.is-clone:hover { background: rgba(6,182,212,.14); color: #0891b2; }
.admin-action.is-toggle { color: #f59e0b; }
.admin-action.is-toggle:hover { background: rgba(245,158,11,.14); color: #d97706; }
.admin-action.is-view { color: #14b8a6; }
.admin-action.is-view:hover { background: rgba(20,184,166,.14); color: #0d9488; }
.admin-action.is-schedule { color: #8b5cf6; }
.admin-action.is-schedule:hover { background: rgba(139,92,246,.14); color: #7c3aed; }
.admin-action.is-danger { color: #ef4444; }
.admin-action.is-danger:hover { background: rgba(239,68,68,.14); color: #dc2626; }
.admin-badge {
    display: inline-flex; align-items: center; border-radius: 999px;
    padding: 2px 8px; font-size: .7rem; font-weight: 700; letter-spacing: .02em;
}
.admin-badge.is-on { background: rgba(34,197,94,.12); color: #15803d; }
.admin-badge.is-off { background: rgba(113,113,122,.12); color: #71717a; }
[data-theme="dark"] .admin-badge.is-on { color: #86efac; }
[data-theme="dark"] .admin-badge.is-off { color: #a1a1aa; }
.admin-thumb {
    display: inline-flex; width: 40px; height: 28px; border-radius: 6px; overflow: hidden;
    background: var(--bg); border: 1px solid var(--line); align-items: center; justify-content: center;
}
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-thumb.is-empty { color: var(--ink-soft); }
.admin-thumb.is-empty .icon { width: 14px; height: 14px; }
.admin-empty { border-radius: 14px; box-shadow: none; }
.admin-mobile-card { padding: 14px; border-radius: 12px; }
.admin-mobile-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }

.admin-form { padding: 20px 22px; border-radius: 16px; box-shadow: none; }
.admin-form-grid {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px 14px; align-items: start;
}
.admin-form .field { margin-bottom: 0; gap: 5px; min-width: 0; }
.admin-form .field label:not(.check) {
    font-size: .75rem; font-weight: 650; color: var(--ink-soft); letter-spacing: .01em;
    min-height: 1.2em; display: flex; align-items: flex-end; line-height: 1.2;
}
.admin-form.form-sm input,
.admin-form.form-sm select,
.admin-form.form-sm textarea {
    padding: 8px 10px; border-radius: 8px; font-size: .875rem;
    border-color: color-mix(in srgb, var(--line) 90%, var(--ink));
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.admin-form .check {
    width: fit-content;
    max-width: 100%;
    justify-content: flex-start;
    gap: 10px;
}
.admin-form .check input[type="checkbox"],
.admin-form.form-sm .check input[type="checkbox"] {
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
}
.admin-form.form-sm textarea { min-height: 88px; }
.admin-form.form-sm input:focus,
.admin-form.form-sm select:focus,
.admin-form.form-sm textarea:focus {
    outline: none; border-color: rgba(203,48,72,.45);
    box-shadow: 0 0 0 3px rgba(203,48,72,.1);
}
.admin-form .field-col-2 { grid-column: span 2; }
.admin-form .field-col-2 label:not(.check) { white-space: nowrap; }
.admin-form .field-col-3 { grid-column: span 3; }
.admin-form .field-col-4 { grid-column: span 4; }
.admin-form .field-col-5 { grid-column: span 5; }
.admin-form .field-col-6 { grid-column: span 6; }
.admin-form .field-col-7 { grid-column: span 7; }
.admin-form .field-col-8 { grid-column: span 8; }
.admin-form .field-col-9 { grid-column: span 9; }
.admin-form .field-col-10 { grid-column: span 10; }
.admin-form .field-col-12 { grid-column: span 12; }
.admin-settings { display: grid; gap: 14px; }
.admin-settings > .card h2 {
    margin: 0 0 14px; font-size: 1rem; font-family: var(--display); font-weight: 700;
}
.admin-settings > .card { margin: 0; }
.admin-settings .content-sec-head h2 { margin: 0 0 4px; }

.sec-geo-card .content-sec-head { margin-bottom: 14px; }
.sec-geo-warn {
    margin: 10px 0 0;
    color: #c2410c;
    font-size: .88rem;
    font-weight: 600;
}
.sec-geo-flags {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}
.sec-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .86rem;
    line-height: 1.45;
}
.sec-country-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.sec-country-search {
    flex: 1 1 220px;
    max-width: 320px;
    margin: 0 !important;
}
.sec-country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0;
    width: 100%;
    max-width: 100%;
    max-height: 440px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-elev);
    box-sizing: border-box;
}
.sec-country-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    border-right: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    margin: 0;
    cursor: pointer;
    font-size: .86rem;
    color: var(--ink);
    line-height: 1.25;
    box-sizing: border-box;
}
.sec-country-item:hover {
    background: color-mix(in srgb, var(--brand) 6%, transparent);
}
.sec-country-item.is-on {
    background: color-mix(in srgb, #ef4444 8%, transparent);
}
[data-theme="dark"] .sec-country-grid { color-scheme: dark; }
[data-theme="dark"] .sec-country-item:hover {
    background: color-mix(in srgb, var(--brand) 12%, transparent);
}
[data-theme="dark"] .sec-country-item.is-on {
    background: var(--brand-soft);
}
[data-theme="dark"] .sec-country-item.is-on:hover {
    background: color-mix(in srgb, var(--brand) 26%, transparent);
}
.admin-form .sec-country-item input[type="checkbox"],
.admin-form.form-sm .sec-country-item input[type="checkbox"],
.sec-country-item input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    max-width: 16px;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 16px !important;
    box-shadow: none !important;
    border-radius: 3px;
    accent-color: var(--brand);
}
.sec-country-flag {
    flex: 0 0 22px;
    width: 22px !important;
    height: 16px !important;
    max-width: 22px !important;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(29, 53, 87, .12);
    background: #eef2f6;
    display: block;
}
.sec-country-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}
.sec-country-code {
    flex: 0 0 auto;
    color: var(--ink-soft);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.sec-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
@media (max-width: 640px) {
    .sec-country-grid { grid-template-columns: 1fr; }
}

.content-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
}
.content-jump a {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #1d3557;
    color: #fff;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 600;
}
.content-jump a:hover { background: #fff; color: #1d3557; border-color: var(--ink-soft); }
.content-sec-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.content-sec-head p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .875rem;
    line-height: 1.45;
    max-width: 62ch;
}
.content-sec-where {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    color: var(--brand);
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}
.field-hint {
    margin: 6px 0 0;
    color: var(--ink-soft);
    font-size: .78rem;
    line-height: 1.4;
}
.field-hint code {
    font-size: .72rem;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--bg);
    border: 1px solid var(--line);
}
.content-list {
    display: grid;
    gap: 10px;
}
.content-list-rows {
    display: grid;
    gap: 8px;
}
.content-list-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
}
.content-list[data-content-list-type="icon_text"] .content-list-row,
.content-list[data-content-list-type="title_text"] .content-list-row {
    grid-template-columns: 72px 1fr auto;
}
.content-list[data-content-list-type="title_text"] .content-list-row {
    grid-template-columns: minmax(140px, .45fr) 1fr auto;
}
.content-list-row input {
    margin: 0 !important;
}
.content-list-icon {
    text-align: center;
    font-size: 1.1rem;
}
.content-list-remove {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-elev);
    color: var(--ink-soft);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}
.content-list-remove:hover {
    color: var(--brand);
    border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}
.content-list-add {
    justify-self: start;
}
@media (max-width: 640px) {
    .content-list[data-content-list-type="icon_text"] .content-list-row,
    .content-list[data-content-list-type="title_text"] .content-list-row {
        grid-template-columns: 1fr auto;
    }
    .content-list[data-content-list-type="icon_text"] .content-list-icon,
    .content-list[data-content-list-type="title_text"] .content-list-title {
        grid-column: 1 / -2;
    }
}
.field-mask-hint { color: #cb3048 !important; }
input.is-invalid,
textarea.is-invalid,
select.is-invalid {
    border-color: #cb3048 !important;
    box-shadow: 0 0 0 3px rgba(203, 48, 72, .12);
}
input.is-loading-cep { opacity: .75; }
.content-save-bar {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
@media (max-width: 720px) {
    .content-sec-head { flex-direction: column; }
    .content-save-bar { flex-direction: column; align-items: stretch; }
}
.admin-img-preview {
    width: 100%; max-width: 320px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--line); background: var(--bg); margin-bottom: 8px;
}
.admin-img-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-img-preview.is-avatar {
    width: 112px;
    max-width: 112px;
    aspect-ratio: 1;
    border-radius: 999px;
    border-width: 3px;
    border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
}
.admin-img-preview.is-empty {
    display: grid;
    place-items: center;
    gap: 6px;
    color: var(--ink-soft);
    font-size: .82rem;
    font-weight: 600;
}
.admin-img-preview.is-empty .icon {
    width: 28px;
    height: 28px;
    color: var(--brand);
    opacity: .7;
}
.admin-file-field {
    display: grid;
    gap: 8px;
    justify-items: start;
}
.admin-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.admin-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-elev);
    color: var(--ink);
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
}
.admin-file-btn:hover {
    border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
    color: var(--brand);
}
.admin-file-btn .icon {
    width: 16px;
    height: 16px;
}
.admin-breadcrumb {
    margin: 0 0 8px;
}
.admin-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}
.admin-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink-soft);
}
.admin-breadcrumb-item a {
    color: var(--ink-soft);
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 999px;
}
.admin-breadcrumb-item a:hover {
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.admin-breadcrumb-item.is-current span {
    color: var(--brand);
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.admin-breadcrumb-sep {
    display: inline-flex;
    color: var(--muted);
}
.admin-breadcrumb-sep .icon {
    width: 14px;
    height: 14px;
}
.admin-img-preview.is-avatar.is-lg {
    width: 148px;
    max-width: 148px;
}
.user-edit-form {
    overflow: hidden;
}
.user-edit-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.user-edit-photo {
    display: grid;
    gap: 14px;
    justify-items: center;
    padding: 8px 8px 0;
    border-right: 1px solid var(--line);
    padding-right: 24px;
}
.user-edit-photo .admin-file-field {
    justify-items: center;
}
.user-edit-photo-meta {
    display: grid;
    gap: 2px;
    text-align: center;
}
.user-edit-photo-meta strong {
    font-size: .95rem;
}
.user-edit-photo-meta span {
    font-size: .8rem;
    word-break: break-all;
}
.user-edit-initial {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.admin-img-preview.is-avatar.is-empty .user-edit-initial {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: var(--brand);
}
.user-edit-fields {
    min-width: 0;
}
input.is-locked,
textarea.is-locked {
    background: var(--bg);
    color: var(--ink-soft);
    cursor: not-allowed;
}
@media (max-width: 860px) {
    .user-edit-layout {
        grid-template-columns: 1fr;
    }
    .user-edit-photo {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 0 18px;
    }
}

.unit-edit-form { overflow: hidden; }
.unit-edit-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.unit-edit-media {
    position: sticky;
    top: 16px;
}
.unit-edit-media-card {
    display: grid;
    gap: 16px;
    padding: 4px 20px 4px 0;
    border-right: 1px solid var(--line);
}
.unit-edit-file {
    display: grid;
    gap: 12px;
    justify-items: stretch;
}
.unit-edit-preview {
    aspect-ratio: 4 / 3;
    width: 100%;
    max-width: none;
    margin-bottom: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background:
        linear-gradient(160deg, color-mix(in srgb, var(--brand) 8%, var(--bg)), var(--bg));
    display: grid;
    place-items: center;
}
.unit-edit-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.unit-edit-preview.is-empty {
    gap: 6px;
    color: var(--ink-soft);
    text-align: center;
    padding: 20px;
}
.unit-edit-preview.is-empty .icon {
    width: 28px;
    height: 28px;
    color: var(--brand);
}
.unit-edit-preview.is-empty strong {
    color: var(--ink);
    font-size: .95rem;
}
.unit-edit-preview.is-empty span {
    font-size: .78rem;
}
.unit-edit-media-meta {
    display: grid;
    gap: 4px;
}
.unit-edit-media-meta strong {
    font-family: var(--display);
    font-size: 1.05rem;
}
.unit-edit-media-meta .muted {
    font-size: .82rem;
}
.unit-edit-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.unit-edit-badge.is-on {
    background: color-mix(in srgb, #16a34a 14%, transparent);
    color: #15803d;
}
.unit-edit-badge.is-off {
    background: color-mix(in srgb, #64748b 14%, transparent);
    color: #475569;
}
[data-theme="dark"] .unit-edit-badge.is-on { color: #86efac; }
[data-theme="dark"] .unit-edit-badge.is-off { color: #cbd5e1; }
.unit-edit-fields {
    min-width: 0;
    display: grid;
    gap: 18px;
}
.unit-edit-section {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--bg) 55%, var(--bg-elev));
}
.unit-edit-section-head {
    margin-bottom: 14px;
}
.unit-edit-section-head h2 {
    margin: 0;
    font-size: .98rem;
    font-family: var(--display);
}
.unit-edit-section-head p {
    margin: 4px 0 0;
    font-size: .82rem;
}
.unit-edit-active {
    display: flex;
    align-items: end;
    padding-bottom: 6px;
}
.admin-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
@media (max-width: 960px) {
    .unit-edit-layout {
        grid-template-columns: 1fr;
    }
    .unit-edit-media {
        position: static;
    }
    .unit-edit-media-card {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 0 18px;
    }
}

.banner-edit-form { overflow: hidden; }
.banner-edit-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.banner-edit-media {
    position: sticky;
    top: 16px;
}
.banner-edit-media-card {
    display: grid;
    gap: 16px;
    padding: 4px 20px 4px 0;
    border-right: 1px solid var(--line);
}
.banner-edit-file {
    display: grid;
    gap: 12px;
    justify-items: stretch;
}
.banner-edit-preview {
    aspect-ratio: 16 / 10;
    width: 100%;
    max-width: none;
    margin-bottom: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background:
        linear-gradient(160deg, color-mix(in srgb, var(--ink) 10%, var(--bg)), var(--bg));
    display: grid;
    place-items: center;
}
.banner-edit-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.banner-edit-preview.is-empty {
    gap: 6px;
    color: var(--ink-soft);
    text-align: center;
    padding: 20px;
}
.banner-edit-preview.is-empty .icon {
    width: 28px;
    height: 28px;
    color: var(--brand);
}
.banner-edit-preview.is-empty strong {
    color: var(--ink);
    font-size: .95rem;
}
.banner-edit-preview.is-empty span {
    font-size: .78rem;
}
.banner-edit-media-meta {
    display: grid;
    gap: 4px;
}
.banner-edit-media-meta strong {
    font-family: var(--display);
    font-size: 1.05rem;
}
.banner-edit-media-meta .muted {
    font-size: .82rem;
}
.banner-edit-fields {
    min-width: 0;
    display: grid;
    gap: 18px;
}
.banner-edit-note {
    margin: 0;
}
@media (max-width: 960px) {
    .banner-edit-layout {
        grid-template-columns: 1fr;
    }
    .banner-edit-media {
        position: static;
    }
    .banner-edit-media-card {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 0 18px;
    }
}

/* Pages edit — two columns */
.page-edit-form { overflow: hidden; }
.page-edit-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.page-edit-side {
    position: sticky;
    top: 16px;
}
.page-edit-side-card {
    display: grid;
    gap: 16px;
    padding: 4px 20px 4px 0;
    border-right: 1px solid var(--line);
}
.page-edit-side-meta {
    display: grid;
    gap: 4px;
}
.page-edit-side-meta strong {
    font-size: .98rem;
    color: var(--ink);
}
.page-edit-side-meta .muted {
    font-size: .82rem;
}
.page-edit-file {
    display: grid;
    gap: 12px;
    justify-items: stretch;
}
.page-edit-preview {
    aspect-ratio: 16 / 10;
    width: 100%;
    max-width: none;
    margin-bottom: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background:
        linear-gradient(160deg, color-mix(in srgb, var(--brand) 8%, var(--bg)), var(--bg));
    display: grid;
    place-items: center;
}
.page-edit-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.page-edit-preview.is-empty {
    gap: 6px;
    color: var(--ink-soft);
    text-align: center;
    padding: 20px;
}
.page-edit-preview.is-empty .icon {
    width: 28px;
    height: 28px;
}
.page-edit-preview.is-empty strong {
    display: block;
    font-size: .9rem;
}
.page-edit-preview.is-empty span {
    font-size: .78rem;
}
.page-edit-main { min-width: 0; }
@media (max-width: 960px) {
    .page-edit-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .page-edit-side {
        position: static;
    }
    .page-edit-side-card {
        border-right: 0;
        padding: 0 0 16px;
        border-bottom: 1px solid var(--line);
    }
}

/* Financeiro / Mercado Pago */
.finance-copy-row {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.finance-code {
    display: block; flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px;
    background: var(--bg); border: 1px solid var(--line); font-size: .78rem;
    word-break: break-all;
}
.finance-actions {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px;
}
.finance-test-result {
    margin-top: 16px; padding: 14px 16px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--bg);
}
.finance-test-result.is-loading { color: var(--muted); }
.finance-test-result.is-ok {
    border-color: color-mix(in srgb, #16a34a 35%, var(--line));
    background: color-mix(in srgb, #16a34a 8%, var(--bg-elev));
}
.finance-test-result.is-fail {
    border-color: color-mix(in srgb, #cb3048 35%, var(--line));
    background: color-mix(in srgb, #cb3048 8%, var(--bg-elev));
}
.finance-test-title { margin: 0 0 10px; font-weight: 700; }
.finance-test-dl {
    display: grid; gap: 8px; margin: 0;
}
.finance-test-dl > div {
    display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 8px;
    padding-top: 8px; border-top: 1px solid var(--line); font-size: .88rem;
}
.finance-test-dl dt {
    margin: 0; color: var(--muted); text-transform: capitalize; font-weight: 600;
}
.finance-test-dl dd { margin: 0; word-break: break-word; }
.finance-log-list { display: grid; gap: 10px; }
.finance-log-item {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 14px 0; border-bottom: 1px solid var(--line);
}
.finance-log-item:last-child { border-bottom: 0; padding-bottom: 0; }
.finance-log-main strong { display: block; margin-bottom: 4px; }
.finance-log-side {
    display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.finance-log-pre {
    margin: 8px 0 0; padding: 10px 12px; border-radius: 10px;
    background: var(--bg); border: 1px solid var(--line);
    font-size: .75rem; white-space: pre-wrap; word-break: break-word;
    max-height: 140px; overflow: auto;
}

/* Logo previews (personalização) */
.logo-preview { margin: 0 0 10px; max-width: 100%; }
.logo-preview-stage {
    display: flex; align-items: center; justify-content: center;
    min-height: 112px; padding: 20px 24px; border-radius: 12px;
    border: 1px solid var(--line); overflow: hidden;
}
.logo-preview-stage.is-light {
    background:
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
        linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-color: #fff;
    border-color: #e5e5e5;
}
.logo-preview-stage.is-dark {
    background:
        linear-gradient(45deg, #1a1a1a 25%, transparent 25%),
        linear-gradient(-45deg, #1a1a1a 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #1a1a1a 75%),
        linear-gradient(-45deg, transparent 75%, #1a1a1a 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-color: #0a0a0a;
    border-color: #2a2a2a;
}
.logo-preview-stage.is-neutral {
    background: #f4f4f5;
    border-color: #e4e4e7;
}
[data-theme="dark"] .logo-preview-stage.is-neutral {
    background: #18181b;
    border-color: #27272a;
}
.logo-preview-img {
    display: block; max-width: 100%; max-height: 72px; width: auto; height: auto;
    object-fit: contain;
}
.logo-preview.is-favicon .logo-preview-stage {
    width: 88px; min-height: 88px; padding: 18px;
}
.logo-preview.is-favicon .logo-preview-img {
    max-width: 48px; max-height: 48px;
}
.logo-preview-empty {
    font-size: .8rem; font-weight: 600; color: #888; letter-spacing: .02em;
}
.logo-preview-stage.is-dark .logo-preview-empty { color: #777; }
.logo-preview-hint {
    margin: 8px 0 0; font-size: .78rem; color: var(--muted);
}
.logo-preview-grid .field { align-self: start; }
.admin-form-block {
    margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
}
.admin-form-block h3 {
    margin: 0 0 12px; font-size: .95rem; font-family: var(--display); font-weight: 700;
}
.admin-check-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 12px;
}
.admin-check-grid .check { font-size: .85rem; font-weight: 600; }
.role-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.role-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    transition: border-color .15s ease, transform .15s ease;
}
.role-card:hover {
    border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}
.role-card.is-super {
    border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--brand) 6%, var(--bg-elev)), var(--bg-elev));
}
.role-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.role-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    color: var(--brand);
    flex-shrink: 0;
}
.role-card-icon .icon { width: 20px; height: 20px; }
.role-card-titles {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.role-card-titles h2 {
    margin: 0;
    font-size: 1.05rem;
    font-family: var(--display);
}
.role-card-desc {
    margin: 0;
    color: var(--ink-soft);
    font-size: .9rem;
    line-height: 1.45;
    min-height: 2.7em;
}
.role-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.role-card-stats > div {
    display: grid;
    gap: 2px;
}
.role-stat-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}
.role-card-stats strong {
    font-size: 1.05rem;
    color: var(--ink);
}
.role-card-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--bg);
    overflow: hidden;
}
.role-card-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brand);
}
.role-card-actions {
    display: flex;
    gap: 8px;
}
.role-super-note {
    margin-bottom: 16px;
}
.role-super-note strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.role-super-note .icon { width: 18px; height: 18px; color: var(--brand); }
.role-perm-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.role-perm-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.role-perm-modules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.role-perm-module {
    display: grid;
    gap: 14px;
    padding: 16px;
}
.role-perm-module-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.role-perm-module-title {
    display: flex;
    gap: 12px;
    align-items: center;
}
.role-perm-module-title h2 {
    margin: 0;
    font-size: 1rem;
    font-family: var(--display);
}
.role-perm-module-title p {
    margin: 2px 0 0;
    font-size: .8rem;
}
.role-perm-module-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    color: var(--brand);
    flex-shrink: 0;
}
.role-perm-module-icon .icon { width: 18px; height: 18px; }
.role-perm-module-toggle {
    margin: 0;
    white-space: nowrap;
}
.role-perm-list {
    display: grid;
    gap: 8px;
}
.role-perm-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg);
    cursor: pointer;
}
.role-perm-item.is-on {
    border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
    background: color-mix(in srgb, var(--brand) 7%, var(--bg-elev));
}
.role-perm-item input {
    width: auto;
    margin-top: 3px;
}
.role-perm-item-body {
    display: grid;
    gap: 2px;
}
.role-perm-item-body strong {
    font-size: .9rem;
    font-weight: 700;
}
.role-perm-item-body small {
    color: var(--muted);
    font-size: .75rem;
}
.role-perm-footer {
    position: sticky;
    bottom: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
    backdrop-filter: blur(8px);
    z-index: 5;
}
@media (max-width: 960px) {
    .role-perm-modules { grid-template-columns: 1fr; }
}
.admin-form-actions {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px;
    border-top: 1px solid var(--line);
}
.admin-form-actions .btn .icon { width: 15px; height: 15px; }
.admin-top { margin-bottom: 20px; }
.admin-top h1 { font-size: 1.45rem; margin: 0; }
.btn-sm .icon { width: 14px; height: 14px; }

/* Listas admin fora do CRUD */
.admin-main .table-wrap:not(.admin-table-wrap) {
    background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: none; overflow: auto; margin-top: 12px;
}
.admin-main .table-wrap:not(.admin-table-wrap) table {
    width: 100%; border-collapse: collapse; font-size: .8125rem;
}
.admin-main .table-wrap:not(.admin-table-wrap) th,
.admin-main .table-wrap:not(.admin-table-wrap) td {
    padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle;
}
.admin-main .table-wrap:not(.admin-table-wrap) th {
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: var(--ink-soft); background: color-mix(in srgb, var(--bg) 80%, transparent);
}
.admin-main > form.card,
.admin-main form.card.form-grid {
    padding: 14px 16px; border-radius: 12px; box-shadow: none; margin-bottom: 14px;
}
.admin-main form.card.form-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 12px; align-items: end;
}
.admin-main form.card .field { margin-bottom: 0; }
.admin-main form.card label { font-size: .75rem; font-weight: 650; color: var(--ink-soft); }
.admin-main form.card input,
.admin-main form.card select,
.admin-main form.card textarea {
    padding: 8px 10px; border-radius: 8px; font-size: .875rem;
}

@media (max-width: 900px) {
    .admin-form .field-col-2,
    .admin-form .field-col-3,
    .admin-form .field-col-4,
    .admin-form .field-col-5,
    .admin-form .field-col-6,
    .admin-form .field-col-7,
    .admin-form .field-col-8,
    .admin-form .field-col-9,
    .admin-form .field-col-10 { grid-column: span 12; }
}

/* Exam form — layout referência (main + sidebar) */
.exam-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
    align-items: start;
}
.exam-type-radios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    min-width: 0;
}
.exam-type-option {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.exam-type-option:hover { border-color: rgba(203, 48, 72, .35); }
.exam-type-option:has(input:checked) {
    border-color: var(--brand, #cb3048);
    box-shadow: 0 0 0 3px rgba(203, 48, 72, .12);
}
.exam-type-option > input[type="radio"],
.exam-form .exam-type-option input[type="radio"] {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px;
    margin: 2px 0 0;
    padding: 0;
    flex: 0 0 18px;
    border: 0;
    background: transparent;
    box-shadow: none;
    accent-color: var(--brand, #cb3048);
}
.exam-type-option > span {
    flex: 1 1 auto;
    min-width: 0;
}
.exam-type-option strong {
    display: block;
    color: var(--ink, #1d3557);
    font-size: .98rem;
}
.exam-type-option small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    line-height: 1.4;
}
@media (max-width: 720px) {
    .exam-type-radios { grid-template-columns: 1fr; }
}
.exam-form-main { display: grid; gap: 14px; min-width: 0; }
.exam-form-side {
    display: grid; gap: 12px;
    position: sticky; top: 88px;
}
.exam-form-card-title,
.exam-side-card h3 {
    margin: 0 0 14px;
    font-family: var(--display);
    font-size: .95rem;
    font-weight: 750;
}
.exam-side-card { padding: 14px; border-radius: 14px; box-shadow: none; }
.exam-side-actions { display: grid; gap: 8px; }
.exam-side-actions .btn { width: 100%; justify-content: center; }
.exam-side-flags { display: grid; gap: 10px; }
.exam-side-flags .check { font-size: .85rem; }
.exam-featured-image {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
    aspect-ratio: 1;
    margin-bottom: 10px;
}
.exam-featured-image img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.exam-featured-empty {
    width: 100%; height: 100%;
    display: grid; place-content: center; gap: 8px; text-align: center;
    color: var(--ink-soft); font-size: .8rem; font-weight: 600;
}
.exam-featured-empty .icon { width: 28px; height: 28px; margin: 0 auto; opacity: .7; }
.exam-faq-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 14px; flex-wrap: wrap;
}
.exam-faq-list { display: grid; gap: 8px; }
.exam-faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    overflow: hidden;
}
.exam-faq-summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; font-weight: 650; font-size: .875rem;
    user-select: none;
}
.exam-faq-summary::-webkit-details-marker { display: none; }
.exam-faq-summary::before {
    content: '';
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--ink-soft);
    transition: transform .15s ease;
    flex-shrink: 0;
}
.exam-faq-item[open] > .exam-faq-summary::before { transform: rotate(180deg); }
.exam-faq-summary-text {
    flex: 1; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: var(--ink);
}
.exam-faq-body {
    display: grid; gap: 10px;
    padding: 0 12px 12px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.exam-faq-body .field { margin: 0; }
.exam-faq-remove { flex-shrink: 0; }
.exam-faq-empty { margin: 0; }

.rich-text { line-height: 1.7; color: inherit; }
.rich-text p { margin: 0 0 12px; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text ul, .rich-text ol { margin: 0 0 12px; padding-left: 1.25rem; }
.rich-text a { color: var(--brand); font-weight: 650; }
.rich-text h2 {
    margin: 28px 0 12px;
    font-family: var(--display, Manrope, sans-serif);
    font-size: 1.25rem;
    color: var(--ink);
    letter-spacing: -.02em;
}
.rich-text h3 {
    margin: 20px 0 8px;
    font-size: 1.02rem;
    color: var(--ink);
}
.rich-text li { margin: 0 0 6px; }

.legal-page {
    background:
        radial-gradient(900px 420px at 8% -10%, rgba(203, 48, 72, .08), transparent 55%),
        radial-gradient(700px 380px at 100% 0%, rgba(29, 53, 87, .08), transparent 50%),
        #f4f6f9;
    padding-bottom: 72px;
}
.legal-hero {
    position: relative;
    padding: 56px 0 36px;
    border-bottom: 1px solid rgba(29, 53, 87, .08);
    background: linear-gradient(180deg, rgba(255,255,255,.7), transparent);
    overflow: hidden;
}
.legal-hero.has-image {
    color: #fff;
    border-bottom: 0;
    background:
        radial-gradient(640px 280px at 8% 0%, rgba(203, 48, 72, .26), transparent 55%),
        linear-gradient(145deg, #1d3557 0%, #15263f 50%, #0d1726 100%);
    padding: 64px 0 52px;
}
.legal-hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(10, 18, 32, .88) 0%, rgba(10, 18, 32, .62) 42%, rgba(10, 18, 32, .4) 100%),
        var(--legal-hero-image, none);
    background-size: cover;
    background-position: center;
    pointer-events: none;
}
.legal-hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 18, 32, .12) 0%, transparent 40%, rgba(10, 18, 32, .35) 100%),
        radial-gradient(520px 240px at 90% 20%, rgba(203, 48, 72, .14), transparent 60%);
    pointer-events: none;
}
.legal-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}
.legal-eyebrow {
    margin: 0 0 10px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
}
.legal-hero.has-image .legal-eyebrow {
    color: rgba(255, 255, 255, .78);
}
.legal-hero h1 {
    margin: 0;
    font-family: var(--display, Manrope, sans-serif);
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    line-height: 1.15;
    letter-spacing: -.03em;
    color: #1D3557;
}
.legal-hero.has-image h1 { color: #fff; }
.legal-lead {
    margin: 14px 0 0;
    max-width: 54ch;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #51657c;
}
.legal-hero.has-image .legal-lead { color: rgba(255, 255, 255, .82); }
.legal-meta {
    margin: 16px 0 0;
    font-size: .82rem;
    color: #7a8ba0;
}
.legal-hero.has-image .legal-meta { color: rgba(255, 255, 255, .62); }
.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: start;
    margin-top: 28px;
}
.legal-body {
    background: #fff;
    border: 1px solid rgba(29, 53, 87, .08);
    border-radius: 18px;
    padding: 28px 30px 32px;
    box-shadow: 0 18px 40px rgba(29, 53, 87, .05);
    color: #334155;
}
.legal-body > *:first-child { margin-top: 0; }
.legal-aside {
    position: sticky;
    top: 88px;
    display: grid;
    gap: 14px;
}
.legal-aside-card,
.legal-aside-nav {
    background: #fff;
    border: 1px solid rgba(29, 53, 87, .08);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(29, 53, 87, .04);
}
.legal-aside-label {
    margin: 0 0 8px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #7a8ba0;
}
.legal-aside-card p {
    margin: 0 0 14px;
    font-size: .9rem;
    line-height: 1.5;
    color: #51657c;
}
.legal-aside-card .btn { width: 100%; justify-content: center; margin-bottom: 8px; }
.legal-aside-card .btn:last-child { margin-bottom: 0; }
.legal-aside-nav {
    display: grid;
    gap: 8px;
}
.legal-aside-nav a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(29, 53, 87, .06);
    color: #1D3557;
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
}
.legal-aside-nav a:last-of-type { border-bottom: 0; padding-bottom: 0; }
.legal-aside-nav a:hover { color: var(--brand); }
@media (max-width: 900px) {
    .legal-layout { grid-template-columns: 1fr; }
    .legal-aside { position: static; }
    .legal-body { padding: 22px 18px; }
}
.tox-tinymce { border-radius: 10px !important; border-color: var(--line) !important; }
.admin-form .tox-editor-header { box-shadow: none !important; }

@media (max-width: 1100px) {
    .exam-form-layout { grid-template-columns: 1fr; }
    .exam-form-side { position: static; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

.shortcut-label { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 12px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 22px; }
.shortcut {
    display: block; text-decoration: none; color: inherit;
    border-radius: 16px; padding: 18px 16px 16px; min-height: 118px;
    border: 0;
}
.shortcut:hover { transform: translateY(-2px); color: inherit; }
.shortcut b { display: block; font-size: 1.7rem; font-family: var(--display); margin: 8px 0 10px; }
.shortcut span, .shortcut small { display: block; font-size: .78rem; opacity: .75; }
.shortcut-teal { background: #d1fae5; }
.shortcut-blue { background: #dbeafe; }
.shortcut-amber { background: #fef3c7; }
.shortcut-sky { background: #e0f2fe; }
.shortcut-rose { background: #ffe4e6; }
.shortcut-violet { background: #ede9fe; }
[data-theme="dark"] .shortcut-teal { background: #042f2e; color: #99f6e4; }
[data-theme="dark"] .shortcut-blue { background: #0b1f3a; color: #bfdbfe; }
[data-theme="dark"] .shortcut-amber { background: #3b2a0a; color: #fde68a; }
[data-theme="dark"] .shortcut-sky { background: #0c2744; color: #bae6fd; }
[data-theme="dark"] .shortcut-rose { background: #3f1219; color: #fecdd3; }
[data-theme="dark"] .shortcut-violet { background: #1e1538; color: #ddd6fe; }

/* Dashboard moderno */
.dash-top { margin-bottom: 22px; }
.dash-shortcuts {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.dash-shortcut {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    text-decoration: none;
    color: inherit;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 55%),
        linear-gradient(165deg, color-mix(in srgb, var(--bg-elev) 88%, #fff), var(--bg-elev));
    box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 4%, transparent);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    min-height: 108px;
}
.dash-shortcut::after {
    content: "";
    position: absolute;
    inset: auto -20% -40% auto;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 6%, transparent);
    pointer-events: none;
}
.dash-shortcut:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
    box-shadow: 0 14px 32px color-mix(in srgb, var(--ink) 9%, transparent);
    color: inherit;
}
.dash-shortcut-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    color: var(--brand);
}
.dash-shortcut-icon .icon { width: 18px; height: 18px; }
.dash-shortcut-meta { display: grid; gap: 2px; min-width: 0; }
.dash-shortcut-label {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.dash-shortcut strong {
    font-size: 1.55rem;
    font-family: var(--display);
    line-height: 1.1;
}
.dash-shortcut small {
    color: var(--ink-soft);
    font-size: .78rem;
}
.dash-shortcut.is-exams {
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, #0f766e 12%, transparent), transparent 55%),
        linear-gradient(165deg, color-mix(in srgb, var(--bg-elev) 88%, #fff), var(--bg-elev));
}
.dash-shortcut.is-customers {
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, #1d4ed8 12%, transparent), transparent 55%),
        linear-gradient(165deg, color-mix(in srgb, var(--bg-elev) 88%, #fff), var(--bg-elev));
}
.dash-shortcut.is-orders {
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, #b45309 12%, transparent), transparent 55%),
        linear-gradient(165deg, color-mix(in srgb, var(--bg-elev) 88%, #fff), var(--bg-elev));
}
.dash-shortcut.is-payments {
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, #0369a1 12%, transparent), transparent 55%),
        linear-gradient(165deg, color-mix(in srgb, var(--bg-elev) 88%, #fff), var(--bg-elev));
}
.dash-shortcut.is-agenda {
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 55%),
        linear-gradient(165deg, color-mix(in srgb, var(--bg-elev) 88%, #fff), var(--bg-elev));
}
.dash-shortcut.is-calendar {
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, #334155 12%, transparent), transparent 55%),
        linear-gradient(165deg, color-mix(in srgb, var(--bg-elev) 88%, #fff), var(--bg-elev));
}
.dash-shortcut.is-exams .dash-shortcut-icon { background: color-mix(in srgb, #0f766e 14%, transparent); color: #0f766e; }
.dash-shortcut.is-customers .dash-shortcut-icon { background: color-mix(in srgb, #1d4ed8 14%, transparent); color: #1d4ed8; }
.dash-shortcut.is-orders .dash-shortcut-icon { background: color-mix(in srgb, #b45309 14%, transparent); color: #b45309; }
.dash-shortcut.is-payments .dash-shortcut-icon { background: color-mix(in srgb, #0369a1 14%, transparent); color: #0369a1; }
.dash-shortcut.is-agenda .dash-shortcut-icon { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.dash-shortcut.is-calendar .dash-shortcut-icon { background: color-mix(in srgb, #334155 14%, transparent); color: #334155; }
[data-theme="dark"] .dash-shortcut {
    background: linear-gradient(165deg, color-mix(in srgb, var(--bg-elev) 90%, #fff), var(--bg-elev));
}
[data-theme="dark"] .dash-shortcut.is-exams .dash-shortcut-icon { color: #5eead4; }
[data-theme="dark"] .dash-shortcut.is-customers .dash-shortcut-icon { color: #93c5fd; }
[data-theme="dark"] .dash-shortcut.is-orders .dash-shortcut-icon { color: #fcd34d; }
[data-theme="dark"] .dash-shortcut.is-payments .dash-shortcut-icon { color: #7dd3fc; }
[data-theme="dark"] .dash-shortcut.is-calendar .dash-shortcut-icon { color: #cbd5e1; }

.dash-filters { margin-bottom: 18px; }
.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.dash-kpi {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--bg-elev) 92%, #fff), var(--bg-elev));
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px 16px 14px;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--ink) 4%, transparent);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.dash-kpi:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--brand) 22%, var(--line));
    box-shadow: 0 12px 28px color-mix(in srgb, var(--ink) 8%, transparent);
}
.dash-kpi::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 40%, #f59e0b));
}
.dash-kpi::after {
    content: "";
    position: absolute;
    right: -24px;
    top: -24px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 7%, transparent);
    pointer-events: none;
}
.dash-kpi.is-warn::before { background: #d97706; }
.dash-kpi.is-danger::before { background: #dc2626; }
.dash-kpi.is-muted::before { background: #64748b; }
.dash-kpi-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.dash-kpi-head span:first-child {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.dash-kpi-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    color: var(--brand);
}
.dash-kpi-icon .icon { width: 14px; height: 14px; }
.dash-kpi.is-warn .dash-kpi-icon { background: color-mix(in srgb, #d97706 12%, transparent); color: #d97706; }
.dash-kpi.is-danger .dash-kpi-icon { background: color-mix(in srgb, #dc2626 12%, transparent); color: #dc2626; }
.dash-kpi.is-muted .dash-kpi-icon { background: color-mix(in srgb, #64748b 12%, transparent); color: #64748b; }
.dash-kpi strong {
    display: block;
    font-size: 1.45rem;
    font-family: var(--display);
    line-height: 1.15;
    margin-bottom: 4px;
}
.dash-kpi small { color: var(--ink-soft); }
.dash-alert { margin-bottom: 12px; }

.dash-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.dash-panel {
    padding: 18px;
    display: grid;
    gap: 14px;
    border-radius: 20px;
    background:
        radial-gradient(90% 70% at 0% 0%, color-mix(in srgb, var(--brand) 6%, transparent), transparent 50%),
        var(--bg-elev);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--ink) 5%, transparent);
}
.dash-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.dash-panel-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-family: var(--display);
}
.dash-panel-head p {
    margin: 4px 0 0;
    font-size: .82rem;
}
.dash-empty { margin: 0; font-size: .9rem; }
.dash-status-list,
.dash-appt-list,
.dash-rank-list,
.dash-unit-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.dash-status-row,
.dash-rank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.dash-bar {
    margin-top: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--bg);
    overflow: hidden;
}
.dash-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #f59e0b));
}
.dash-chart-wrap {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.dash-chart-caption {
    display: grid;
    gap: 2px;
    margin-bottom: 10px;
}
.dash-chart-caption strong {
    font-size: .88rem;
    color: var(--ink);
}
.dash-chart-caption .muted {
    font-size: .78rem;
}
.dash-chart-canvas {
    position: relative;
    height: 240px;
    width: 100%;
}
.dash-chart-wrap canvas {
    width: 100% !important;
    display: block;
}
.dash-appt-list li {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, color-mix(in srgb, var(--bg) 70%, #fff), var(--bg));
    transition: border-color .15s ease, box-shadow .15s ease;
}
.dash-appt-list li:hover {
    border-color: color-mix(in srgb, var(--brand) 24%, var(--line));
    box-shadow: 0 6px 16px color-mix(in srgb, var(--ink) 5%, transparent);
}
.dash-appt-main {
    display: grid;
    gap: 2px;
}
.dash-appt-main a {
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
}
.dash-appt-main strong { font-size: .95rem; }
.dash-appt-meta {
    display: flex;
    gap: 10px;
    color: var(--ink-soft);
    font-size: .82rem;
}
.dash-rank-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
}
.dash-rank-pos {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: .78rem;
    font-weight: 800;
    background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 18%, transparent), color-mix(in srgb, var(--brand) 8%, transparent));
    color: var(--brand);
    border: 1px solid color-mix(in srgb, var(--brand) 16%, transparent);
}
.dash-rank-body { min-width: 0; }
.dash-rank-row strong {
    font-size: .9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-rank-row span {
    font-weight: 700;
    color: var(--ink-soft);
    font-size: .85rem;
}
.dash-subpanel {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.dash-subpanel h3 {
    margin: 0 0 12px;
    font-size: .92rem;
    font-family: var(--display);
}

.filter-bar {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: end;
    background: var(--bg-elev); border-radius: 16px; padding: 16px 18px; margin-bottom: 18px;
    border: 1px solid var(--line);
}
.filter-bar .field { margin: 0; min-width: 160px; }
.filter-bar .btn {
    border-radius: 12px;
}
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.kpi {
    background: var(--bg-elev); border-radius: 16px; padding: 18px 16px;
    border: 1px solid var(--line);
}
.kpi span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.kpi b { display: block; font-size: 1.6rem; margin: 8px 0 4px; font-family: var(--display); }
.kpi small { color: var(--ink-soft); }

.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.crumbs { color: var(--ink-soft); font-size: .9rem; }
.theme-switch { display: flex; gap: 4px; }

/* Calendário */
.calendar-wrap { margin-top: 8px; }
.calendar-panel { padding: 18px; }
.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.cal-nav-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cal-nav-btn {
    width: 36px;
    padding-inline: 0;
    justify-content: center;
}
.cal-nav-title {
    margin: 0;
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    text-align: center;
    flex: 1 1 auto;
    min-width: 160px;
}
.cal-nav-views {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ink) 5%, transparent);
}
.cal-nav-view {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink-soft);
    text-decoration: none;
}
.cal-nav-view:hover { color: var(--ink); }
.cal-nav-view.is-active {
    background: var(--brand);
    color: #fff;
}
.calendar-list-filters { margin-bottom: 16px; }
.calendar-list-card { padding: 0; overflow: hidden; }
.calendar-list-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.calendar-list-head strong {
    font-family: var(--display);
    font-size: 1.2rem;
}
.calendar-events-table { width: 100%; }
.calendar-events-table th,
.calendar-events-table td {
    padding: 12px 14px;
    vertical-align: top;
}
.calendar-events-actions { text-align: right; white-space: nowrap; }
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}
.calendar-week-grid .cal-day {
    min-height: 160px;
}
.calendar-day-view {
    display: grid;
    gap: 12px;
}
.calendar-day-view .cal-day-focus {
    min-height: 280px;
    padding: 16px;
}
.cal-day-weekday {
    margin: 0 0 2px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.cal-empty { margin: 8px 0 0; }
.cal-head {
    text-align: center;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: 6px 0;
}
.cal-pad { min-height: 108px; border-radius: 12px; background: transparent; }
.cal-day {
    min-height: 108px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.cal-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}
.cal-day-head strong { margin: 0; }
.cal-day-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
}
.cal-today-tag,
.cal-block-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.cal-today-tag {
    background: var(--brand);
    color: #fff;
}
.cal-block-tag.is-sunday {
    background: color-mix(in srgb, var(--ink) 14%, transparent);
    color: var(--ink);
}
.cal-block-tag.is-holiday {
    background: color-mix(in srgb, #b45309 16%, transparent);
    color: #b45309;
}
.cal-day.is-today {
    border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--brand) 12%, var(--bg-elev)), var(--bg-elev));
    box-shadow:
        0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent),
        0 10px 22px color-mix(in srgb, var(--brand) 10%, transparent);
}
.cal-day.is-today > strong,
.cal-day.is-today .cal-day-head strong {
    color: var(--brand);
    font-weight: 800;
}
.cal-day.is-blocked {
    background:
        repeating-linear-gradient(
            -45deg,
            color-mix(in srgb, var(--ink) 5%, var(--bg-elev)),
            color-mix(in srgb, var(--ink) 5%, var(--bg-elev)) 6px,
            color-mix(in srgb, var(--ink) 9%, var(--bg)) 6px,
            color-mix(in srgb, var(--ink) 9%, var(--bg)) 12px
        );
    border-color: color-mix(in srgb, var(--ink) 18%, var(--line));
    opacity: .95;
}
.cal-day.is-blocked.is-holiday {
    background:
        repeating-linear-gradient(
            -45deg,
            color-mix(in srgb, #b45309 10%, var(--bg-elev)),
            color-mix(in srgb, #b45309 10%, var(--bg-elev)) 6px,
            color-mix(in srgb, #b45309 16%, var(--bg)) 6px,
            color-mix(in srgb, #b45309 16%, var(--bg)) 12px
        );
    border-color: color-mix(in srgb, #b45309 32%, var(--line));
}
.cal-day.is-blocked.is-today {
    box-shadow:
        0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent),
        0 10px 22px color-mix(in srgb, var(--brand) 10%, transparent);
}
.cal-block {
    margin-top: 6px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    background: color-mix(in srgb, var(--ink) 8%, var(--bg-elev));
    border: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent);
}
.cal-day.is-holiday .cal-block {
    color: #9a3412;
    background: color-mix(in srgb, #b45309 14%, var(--bg-elev));
    border-color: color-mix(in srgb, #b45309 32%, transparent);
}
.cal-day strong {
    display: block;
    font-size: .85rem;
    margin-bottom: 6px;
    color: var(--ink);
}
.cal-event {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    border: 0;
    text-align: left;
    font: inherit;
    font-size: .72rem;
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: 8px;
    padding: 4px 6px;
    margin-top: 4px;
    cursor: pointer;
}
.cal-event-time { font-weight: 800; flex: 0 0 auto; }
.cal-event-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.calendar-day-view .cal-event {
    font-size: .9rem;
    padding: 10px 12px;
    margin-top: 8px;
}
.cal-event:hover { background: var(--brand); color: #fff; }
[data-calendar-modal]:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(10, 18, 32, .58);
    backdrop-filter: blur(4px);
    display: grid;
    place-items: center;
    padding: 20px;
    animation: cal-modal-fade .18s ease;
}
@keyframes cal-modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.cal-modal {
    --cal-modal-ink: #1d3557;
    --cal-modal-ink-soft: #5c708a;
    --cal-modal-bg: #ffffff;
    --cal-modal-chip: #f4f6f9;
    --cal-modal-line: rgba(29, 53, 87, .1);
    position: relative;
    width: min(560px, 100%);
    border-radius: 22px;
    overflow: hidden;
    background: var(--cal-modal-bg);
    color: var(--cal-modal-ink);
    border: 1px solid var(--cal-modal-line);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .7) inset,
        0 28px 70px rgba(15, 28, 46, .28);
    animation: cal-modal-rise .28s cubic-bezier(.2, .8, .2, 1);
}
[data-theme="dark"] .cal-modal {
    --cal-modal-ink: #f4f4f5;
    --cal-modal-ink-soft: #a1a1aa;
    --cal-modal-bg: #171717;
    --cal-modal-chip: #222222;
    --cal-modal-line: #2e2e2e;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .55);
}
@keyframes cal-modal-rise {
    from { opacity: 0; transform: translateY(14px) scale(.97); }
    to { opacity: 1; transform: none; }
}
.cal-modal-x {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background .16s ease;
}
.cal-modal-x:hover { background: rgba(255, 255, 255, .26); }
.cal-modal-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px 20px;
    background:
        radial-gradient(420px 160px at 100% 0%, rgba(203, 48, 72, .28), transparent 60%),
        linear-gradient(135deg, #15263f 0%, #1d3557 58%, #0f1c2e 100%);
    color: #fff;
}
.cal-modal-avatar {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
    font-family: var(--display);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: .04em;
    box-shadow: 0 10px 22px rgba(203, 48, 72, .35);
    flex-shrink: 0;
    color: #fff;
}
.cal-modal-kicker {
    margin: 0 0 4px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .58);
}
.cal-modal-hero h3 {
    margin: 0;
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #fff;
}
.cal-modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.cal-modal-body { padding: 20px 22px 8px; color: var(--cal-modal-ink); }
.cal-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.cal-modal-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px;
    border-radius: 14px;
    background: var(--cal-modal-chip);
    border: 1px solid var(--cal-modal-line);
}
.cal-modal-ico {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(203, 48, 72, .12);
    color: var(--brand);
}
.cal-modal-item em {
    display: block;
    font-style: normal;
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--cal-modal-ink-soft);
}
.cal-modal-item strong {
    display: block;
    margin-top: 2px;
    font-size: .92rem;
    color: var(--cal-modal-ink);
    line-height: 1.35;
}
.cal-modal-item small {
    display: block;
    margin-top: 2px;
    font-size: .78rem;
    color: var(--cal-modal-ink-soft);
}
.cal-modal-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--cal-modal-line);
}
.cal-modal-section h4 {
    margin: 0 0 10px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cal-modal-ink-soft);
}
.cal-modal-exams {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.cal-modal-exams li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--cal-modal-chip);
    border: 1px solid var(--cal-modal-line);
    font-size: .9rem;
    font-weight: 650;
    color: var(--cal-modal-ink);
}
.cal-modal-exams li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(203, 48, 72, .12);
    flex-shrink: 0;
}
.cal-modal-empty {
    margin: 0;
    font-size: .9rem;
    color: var(--cal-modal-ink-soft);
}
.cal-modal-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 22px 20px;
}
.cal-modal-foot .btn {
    min-width: 120px;
    justify-content: center;
}
.cal-modal-foot .btn.btn-ghost {
    color: var(--cal-modal-ink);
    border-color: var(--cal-modal-line);
    background: transparent;
}
.cal-modal-foot .btn.btn-ghost:hover {
    background: var(--cal-modal-chip);
    color: var(--cal-modal-ink);
}
@media (max-width: 560px) {
    .cal-modal-grid { grid-template-columns: 1fr; }
    .cal-modal-hero { padding-right: 52px; }
    .cal-modal-foot .btn { flex: 1; }
}

/* Calendar dark theme — blocked / holiday / events */
[data-theme="dark"] .cal-block-tag.is-sunday {
    background: rgba(244, 244, 245, .12);
    color: #e4e4e7;
}
[data-theme="dark"] .cal-block-tag.is-holiday {
    background: rgba(245, 158, 11, .22);
    color: #fbbf24;
}
[data-theme="dark"] .cal-day.is-holiday .cal-block {
    color: #fcd34d;
    background: rgba(245, 158, 11, .16);
    border-color: rgba(245, 158, 11, .35);
}
[data-theme="dark"] .cal-event {
    background: rgba(203, 48, 72, .28);
    color: #fecdd3;
}
[data-theme="dark"] .cal-event:hover {
    background: var(--brand);
    color: #fff;
}

/* Scrollbars quase imperceptíveis */
* {
    scrollbar-width: thin;
    scrollbar-color: #e6e8ec transparent;
}
*::-webkit-scrollbar { width: 5px; height: 5px; }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-corner { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: #e6e8ec;
    border-radius: 999px;
    border: 1px solid transparent;
    background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
    background: #d5d8de;
    background-clip: padding-box;
    border: 1px solid transparent;
}

/* Inclui o próprio html/body (barra da direita da página) */
html[data-theme="dark"],
html[data-theme="dark"] * {
    color-scheme: dark;
    scrollbar-width: thin;
    scrollbar-color: #1a1a1a #0a0a0a;
}
html[data-theme="dark"]::-webkit-scrollbar-track,
html[data-theme="dark"] *::-webkit-scrollbar-track {
    background: #0a0a0a;
}
html[data-theme="dark"]::-webkit-scrollbar-thumb,
html[data-theme="dark"] *::-webkit-scrollbar-thumb {
    background: #1c1c1c;
    background-clip: padding-box;
    border: 1px solid transparent;
}
html[data-theme="dark"]::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] *::-webkit-scrollbar-thumb:hover {
    background: #2a2a2a;
    background-clip: padding-box;
    border: 1px solid transparent;
}
html[data-theme="dark"]::-webkit-scrollbar-corner,
html[data-theme="dark"] *::-webkit-scrollbar-corner {
    background: #0a0a0a;
}

.admin-nav,
.admin-side {
    scrollbar-width: thin;
    scrollbar-color: #e4e6eb transparent;
}
.admin-nav::-webkit-scrollbar,
.admin-side::-webkit-scrollbar { width: 4px; }
.admin-nav::-webkit-scrollbar-thumb,
.admin-side::-webkit-scrollbar-thumb {
    background: #e4e6eb;
    background-clip: padding-box;
    border: 1px solid transparent;
}
.admin-nav::-webkit-scrollbar-thumb:hover,
.admin-side::-webkit-scrollbar-thumb:hover {
    background: #d2d5dc;
    background-clip: padding-box;
}
html[data-theme="dark"] .admin-nav,
html[data-theme="dark"] .admin-side {
    scrollbar-color: #1a1a1a transparent;
}
html[data-theme="dark"] .admin-nav::-webkit-scrollbar-thumb,
html[data-theme="dark"] .admin-side::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    background-clip: padding-box;
}
html[data-theme="dark"] .admin-nav::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] .admin-side::-webkit-scrollbar-thumb:hover {
    background: #2a2a2a;
    background-clip: padding-box;
}

.cookie {
    position: fixed; left: 16px; bottom: 16px; z-index: 70; max-width: 420px;
    background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
    box-shadow: var(--shadow);
}
.receipt { max-width: 720px; margin: 24px auto; padding: 32px; }
.skeleton { background: linear-gradient(90deg, var(--line), transparent, var(--line)); min-height: 18px; border-radius: 8px; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.ios-hint { display: none; }
.ios-hint.is-visible { display: block; }

.account-shell .site-header { background: #fff; }
.account-shell .site-topbar {
    background: linear-gradient(90deg, var(--ink) 0%, var(--ink-deep) 100%);
}
.account-main {
    padding: 28px 0 64px;
    min-height: 60vh;
    background:
        radial-gradient(900px 320px at 8% -10%, rgba(203, 48, 72, .07), transparent 60%),
        radial-gradient(700px 280px at 100% 0%, rgba(29, 53, 87, .06), transparent 55%),
        #f7f9fc;
}
.account-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.account-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px 16px;
    background: #fff;
    border: 1px solid rgba(29, 53, 87, .08);
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(29, 53, 87, .06);
}
.account-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 12px;
    border-bottom: 1px solid rgba(29, 53, 87, .08);
}
.account-sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #cb3048, #9e2438);
    color: #fff;
    font-family: Manrope, sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.account-sidebar-profile strong {
    display: block;
    color: var(--ink);
    font-size: .98rem;
}
.account-sidebar-profile small {
    color: #6b7c8f;
    font-size: .78rem;
}
.account-sidebar-nav {
    display: grid;
    gap: 4px;
}
.account-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 14px;
    color: #44566c;
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    transition: background .15s ease, color .15s ease;
}
.account-sidebar-nav a .icon {
    width: 18px;
    height: 18px;
    opacity: .85;
}
.account-sidebar-nav a:hover {
    background: rgba(29, 53, 87, .05);
    color: var(--ink);
}
.account-sidebar-nav a.is-active {
    background: rgba(203, 48, 72, .1);
    color: var(--brand, #cb3048);
}
.account-sidebar-nav a.is-active .icon { opacity: 1; }
.account-sidebar-foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(29, 53, 87, .08);
    display: grid;
    gap: 6px;
}
.account-sidebar-link,
.account-sidebar-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #5a6b7d;
    font: inherit;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
}
.account-sidebar-link:hover,
.account-sidebar-logout:hover {
    background: rgba(29, 53, 87, .05);
    color: var(--ink);
}
.account-sidebar-logout { color: #9e2438; }
.account-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 55;
    border: 0;
    background: rgba(15, 23, 42, .35);
    cursor: pointer;
}
.account-sidebar-backdrop.is-open { display: block; }
.account-mobile-bar { display: none; margin-bottom: 14px; }
.account-content {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

/* Account page premium UI */
.acct-kicker {
    margin: 0 0 6px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand, #cb3048);
}
.acct-hero,
.acct-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.acct-hero h1,
.acct-page-head h1 {
    margin: 0;
    font-family: Manrope, sans-serif;
    font-size: clamp(1.7rem, 2.4vw, 2.15rem);
    color: var(--ink);
    letter-spacing: -.02em;
}
.acct-lead,
.acct-muted {
    margin: 8px 0 0;
    color: #5a6b7d;
    max-width: 52ch;
    line-height: 1.55;
}
.acct-hero-cta { flex-shrink: 0; }
.acct-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.acct-kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(29, 53, 87, .08);
    box-shadow: 0 8px 28px rgba(29, 53, 87, .05);
    transition: transform .15s ease, box-shadow .15s ease;
}
.acct-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(29, 53, 87, .1);
}
.acct-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.acct-kpi-icon .icon { width: 20px; height: 20px; }
.acct-kpi.is-rose .acct-kpi-icon { background: rgba(203, 48, 72, .12); color: #cb3048; }
.acct-kpi.is-amber .acct-kpi-icon { background: rgba(217, 119, 6, .12); color: #b45309; }
.acct-kpi.is-teal .acct-kpi-icon { background: rgba(13, 148, 136, .12); color: #0f766e; }
.acct-kpi.is-ink .acct-kpi-icon { background: rgba(29, 53, 87, .1); color: #1d3557; }
.acct-kpi-meta { display: grid; gap: 2px; min-width: 0; }
.acct-kpi-meta small {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6b7c8f;
}
.acct-kpi-meta strong {
    font-family: Manrope, sans-serif;
    font-size: 1.55rem;
    color: var(--ink);
    line-height: 1.1;
}
.acct-kpi-meta em {
    font-style: normal;
    font-size: .8rem;
    color: #7a8a9a;
}
.acct-panels,
.acct-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
}
.acct-panel {
    background: #fff;
    border: 1px solid rgba(29, 53, 87, .08);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 28px rgba(29, 53, 87, .04);
}
.acct-panel > h2 {
    margin: 0 0 14px;
    font-size: 1.05rem;
    color: var(--ink);
}
.acct-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.acct-panel-head h2 {
    margin: 0;
    font-size: 1.08rem;
    color: var(--ink);
}
.acct-panel-head p {
    margin: 4px 0 0;
    color: #6b7c8f;
    font-size: .88rem;
}
.acct-link {
    color: var(--brand, #cb3048);
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
    white-space: nowrap;
}
.acct-link:hover { text-decoration: underline; }
.acct-stack { display: grid; gap: 8px; }
.acct-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, background .15s ease;
}
.acct-row:hover {
    border-color: rgba(203, 48, 72, .2);
    background: #fff;
}
.acct-row.is-static { cursor: default; }
.acct-row-main { display: grid; gap: 2px; min-width: 0; }
.acct-row-main strong {
    color: var(--ink);
    font-size: .95rem;
}
.acct-row-main small,
.acct-row-side small {
    color: #6b7c8f;
    font-size: .8rem;
}
.acct-row-side {
    display: grid;
    justify-items: end;
    gap: 4px;
    text-align: right;
    flex-shrink: 0;
}
.acct-row-side b {
    color: var(--ink);
    font-size: .92rem;
}
.acct-empty {
    padding: 28px 18px;
    text-align: center;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px dashed rgba(29, 53, 87, .15);
}
.acct-empty strong { display: block; color: var(--ink); margin-bottom: 6px; }
.acct-empty p { margin: 0 0 14px; color: #6b7c8f; }
.acct-empty-lg { padding: 48px 24px; }
.acct-subblock {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(29, 53, 87, .08);
}
.acct-subblock h3 {
    margin: 0 0 10px;
    font-size: .92rem;
    color: var(--ink);
}
.acct-cta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.acct-cta-list .btn { width: 100%; justify-content: center; }
.acct-list { display: grid; gap: 12px; }
.acct-list-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid rgba(29, 53, 87, .08);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(29, 53, 87, .04);
}
.acct-list-card-main { min-width: 0; }
.acct-list-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.acct-list-card-top strong {
    font-family: Manrope, sans-serif;
    color: var(--ink);
    font-size: 1.02rem;
}
.acct-list-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0;
    color: #5a6b7d;
    font-size: .88rem;
}
.acct-list-meta .icon { width: 14px; height: 14px; }
.acct-side-stack { display: grid; gap: 14px; align-content: start; }
.acct-exam-card {
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
}
.acct-exam-card strong { display: block; color: var(--ink); margin-bottom: 8px; }
.acct-exam-prep { color: #5a6b7d; font-size: .9rem; line-height: 1.5; }
.acct-form { display: grid; gap: 12px; }
.acct-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}
.acct-timeline li {
    padding-left: 14px;
    border-left: 2px solid rgba(203, 48, 72, .35);
}
.acct-timeline strong { display: block; color: var(--ink); font-size: .9rem; }
.acct-timeline small { color: #7a8a9a; font-size: .78rem; }
.acct-timeline p { margin: 4px 0 0; color: #5a6b7d; font-size: .88rem; }
.acct-table-card {
    background: #fff;
    border: 1px solid rgba(29, 53, 87, .08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(29, 53, 87, .04);
}
.acct-table-card .table-wrap { margin: 0; border: 0; border-radius: 0; }
.acct-form-card {
    background: #fff;
    border: 1px solid rgba(29, 53, 87, .08);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 8px 28px rgba(29, 53, 87, .04);
}
.acct-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
@media (max-width: 720px) {
    .site-topbar-text span { display: none; }
    .site-topbar-inner { gap: 10px; }
}
.page-head { margin-bottom: 24px; }
.page-head h1 { margin: 8px 0 0; font-size: 2rem; }

@media (max-width: 1100px) {
    .shortcut-grid, .kpi-grid, .dash-shortcuts { grid-template-columns: repeat(3, 1fr); }
    .dash-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-panels { grid-template-columns: 1fr; }
    .exam-grid, .exam-grid-home { grid-template-columns: 1fr 1fr; }
    .catalog-layout { grid-template-columns: minmax(220px, 240px) minmax(0, 1fr); gap: 20px; }
    .catalog-exam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .unit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-units-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-grid { grid-template-columns: 1fr; min-height: 0; padding: 48px 0; }
    .hero-has-banner {
        background-image:
            linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.45)),
            var(--hero-banner);
        background-position: center top;
    }
    .acct-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .acct-panels,
    .acct-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
    .nav-toggle,
    button.nav-toggle,
    button[data-nav-toggle] {
        display: inline-flex !important;
    }
    .nav { display: none; }
    .nav.is-open {
        display: flex; flex-direction: column; align-items: stretch; gap: 4px;
        position: absolute; inset: 80px 16px auto; background: #fff;
        padding: 12px; border: 1px solid var(--line); border-radius: 16px;
        margin: 0;
    }
    .cards, .grid-3, .grid-2, .stats, .footer-grid, .form-grid, .split { grid-template-columns: 1fr; }
    .home-units-grid,
    .unit-grid { grid-template-columns: 1fr; }
    .shortcut-grid, .kpi-grid, .dash-shortcuts { grid-template-columns: 1fr 1fr; }
    .dash-kpi-grid { grid-template-columns: 1fr; }
    .exam-grid, .exam-grid-home, .catalog-exam-grid { grid-template-columns: 1fr; }
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-sidebar { position: static; }
    .admin-app { grid-template-columns: 1fr; }
    .admin-menu-btn { display: grid; }
    .admin-side {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(280px, 88vw);
        z-index: 50;
        transform: translateX(-110%);
        transition: transform .2s ease;
        box-shadow: var(--shadow);
    }
    .admin-side.is-open { transform: none; }
    .admin-user-meta { display: none; }
    .admin-view-site { padding-inline: 10px; }
    .admin-view-site-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
    .account-layout { grid-template-columns: 1fr; }
    .account-mobile-bar { display: block; }
    .account-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(300px, 88vw);
        top: 0;
        z-index: 60;
        border-radius: 0;
        height: 100%;
        overflow: auto;
        transform: translateX(-110%);
        transition: transform .2s ease;
        box-shadow: var(--shadow);
    }
    .account-sidebar.is-open { transform: none; }
    .acct-kpi-grid { grid-template-columns: 1fr 1fr; }
    .acct-list-card { flex-direction: column; align-items: stretch; }
    .cta-band { flex-direction: column; align-items: flex-start; padding: 28px; }
    table.desktop-only { display: none; }
    .mobile-cards { display: grid; gap: 10px; padding: 12px; }
    .hero-search { flex-direction: column; align-items: stretch; }
    .calendar-grid { gap: 4px; }
    .cal-nav { flex-direction: column; align-items: stretch; }
    .cal-nav-title { order: -1; text-align: left; }
    .cal-nav-controls { justify-content: flex-start; }
    .cal-nav-views { align-self: flex-start; }
    .cal-day { min-height: 72px; padding: 6px; }
}

@page { margin: 12mm; size: A4; }
@media print {
    .no-print, .wa-float, .site-header, .site-footer, .site-topbar, .admin-topbar, .admin-side, .account-sidebar, .account-mobile-bar, .account-sidebar-backdrop { display: none !important; }
    body { background: #fff; }
    .print-sheet-body { background: #fff !important; }
    .print-toolbar { display: none !important; }
    .print-a4 {
        box-shadow: none !important;
        margin: 0 !important;
        width: 100% !important;
        min-height: auto !important;
    }
}

/* Table export / sort */
.table-export-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0;
    flex-shrink: 0;
}
.admin-top .table-export-bar {
    margin-left: auto;
}
.sort-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}
.sort-link:hover { color: var(--brand, #cb3048); }

/* Print sheet A4 */
.print-sheet-body {
    margin: 0;
    background: #e8eef5;
    color: #1d3557;
    font-family: "Segoe UI", Tahoma, sans-serif;
}
.print-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid #d7e0ea;
    box-shadow: 0 2px 10px rgba(29, 53, 87, .06);
}
.print-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.print-a4 {
    width: 210mm;
    max-width: 100%;
    min-height: 297mm;
    margin: 24px auto;
    padding: 14mm 12mm 12mm;
    background: #fff;
    box-shadow: 0 12px 40px rgba(29, 53, 87, .12);
    box-sizing: border-box;
    overflow: hidden;
}
.print-a4.is-pdf-export {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 8mm 6mm !important;
    box-shadow: none !important;
    overflow: hidden !important;
}
.print-a4-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 3px solid #cb3048;
    margin-bottom: 18px;
    min-width: 0;
}
.print-a4-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}
.print-a4-logo {
    height: 48px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    flex-shrink: 0;
}
.print-a4-lab {
    display: block;
    font-size: 1.1rem;
    color: #1d3557;
}
.print-a4-doc {
    margin: 2px 0 0;
    color: #5a6b7d;
    font-size: .9rem;
}
.print-a4-meta {
    text-align: right;
    font-size: .78rem;
    color: #5a6b7d;
    flex-shrink: 0;
    max-width: 28%;
}
.print-a4-meta strong {
    display: block;
    color: #1d3557;
    margin-top: 2px;
}
.print-a4-footer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 24px;
    padding-top: 10px;
    border-top: 1px solid #d7e0ea;
    font-size: .72rem;
    color: #7a8a9a;
    flex-wrap: wrap;
}
.print-a4-footer span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.print-subtitle {
    margin: 0 0 12px;
    color: #5a6b7d;
    font-size: .9rem;
}
.print-section { margin-bottom: 18px; }
.print-section h2 {
    margin: 0 0 10px;
    font-size: .95rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #cb3048;
}
.print-dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    margin: 0;
}
.print-dl > div { min-width: 0; }
.print-dl-full { grid-column: 1 / -1; }
.print-dl dt {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #7a8a9a;
    margin: 0 0 2px;
}
.print-dl dd {
    margin: 0;
    font-weight: 600;
    color: #1d3557;
    word-break: break-word;
}
.print-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: .8rem;
    line-height: 1.45;
}
.print-table th,
.print-table td {
    border: 1px solid #d7e0ea;
    padding: 8px 8px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: break-word;
    word-break: normal;
    white-space: normal;
    line-height: 1.45;
}
.print-table th {
    background: #f4f7fb;
    color: #1d3557;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1.3;
}
.print-table td .print-cell-line {
    display: block;
}
.print-table td .print-cell-sub {
    display: block;
    margin-top: 2px;
    font-size: .92em;
    color: #5a6b7d;
    font-weight: 500;
}
.print-table tbody tr:nth-child(even) td { background: #fafcfe; }
.print-a4-body {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
.print-count {
    margin: 10px 0 0;
    font-size: .82rem;
    color: #5a6b7d;
}
.print-list {
    margin: 0;
    padding-left: 18px;
}
.print-list li { margin-bottom: 6px; }

@media (max-width: 900px) {
    .print-a4 {
        width: auto;
        min-height: auto;
        margin: 12px;
        padding: 20px 16px;
    }
    .print-dl { grid-template-columns: 1fr; }
}

/* Appointment detail */
.appt-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.appt-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.appt-status-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}
.appt-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.appt-detail-card h2.appt-card-title,
.appt-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 1rem;
    font-family: var(--display);
    font-weight: 700;
}
.appt-card-title .icon { width: 18px; height: 18px; color: var(--brand); }
.appt-meta {
    display: grid;
    gap: 12px;
    margin: 0;
}
.appt-meta > div {
    display: grid;
    gap: 2px;
}
.appt-meta dt {
    margin: 0;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--ink);
}
.appt-meta dd {
    margin: 0;
    font-size: .95rem;
    font-weight: 400;
    color: var(--ink-soft);
}
.appt-exam-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.appt-exam-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg);
}
.appt-exam-combo-admin {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 4px;
}
.appt-exam-combo-admin li {
    display: block;
    padding: 6px 10px;
    border-radius: 8px;
    border: 0;
    background: color-mix(in srgb, #22c55e 10%, transparent);
    color: var(--ink);
    font-size: .84rem;
}
.appt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.appt-actions .btn .icon,
.appt-side-form .btn .icon {
    width: 16px;
    height: 16px;
}
.appt-actions .btn:disabled,
.appt-actions .btn.is-done {
    opacity: .48;
    filter: grayscale(1);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.appt-actions .btn.is-done {
    background: #d1d5db;
    border-color: #c4c9d1;
    color: #4b5563;
}
.appt-secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
}
.appt-reschedule-form {
    grid-column: 1 / -1;
    padding: 18px 18px 16px;
    margin-bottom: 4px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(520px 160px at 0% 0%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 60%),
        var(--bg-elev, #fff);
}
.appt-reschedule-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.appt-reschedule-head h3 {
    margin: 0 0 4px;
}
.appt-reschedule-summary {
    margin: 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ink) 6%, transparent);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: .84rem;
    font-weight: 650;
    max-width: 100%;
}
.appt-reschedule-exams {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 12px;
}
.appt-reschedule-reason { margin-bottom: 14px; }
.appt-reschedule-board {
    display: grid;
    gap: 14px;
    margin-bottom: 4px;
}
.appt-sch-panel {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 65%, var(--bg-elev, #fff));
}
.appt-sch-panel-head {
    margin-bottom: 12px;
}
.appt-sch-panel-head h4 {
    margin: 0 0 2px;
    font-size: .92rem;
    font-family: var(--display);
    color: var(--ink);
}
.appt-sch-panel-head p {
    margin: 0;
    font-size: .82rem;
    color: var(--ink-soft);
}
.appt-reschedule-form .sch-units {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.appt-reschedule-form .sch-unit {
    width: auto;
    min-width: 0;
}
.appt-reschedule-form .sch-dates {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}
.appt-reschedule-form .sch-times {
    max-height: 220px;
    overflow-y: auto;
}
.appt-schedule-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}
.appt-schedule-picks .btn,
.appt-schedule-picks .btn-ghost {
    font-size: .82rem;
    padding: 8px 12px;
}
.appt-schedule-picks .btn.is-selected,
.appt-schedule-picks button.is-selected {
    background: var(--brand, #cb3048) !important;
    color: #fff !important;
    border-color: var(--brand, #cb3048) !important;
    box-shadow: 0 0 0 2px rgba(203, 48, 72, .18);
}
.appt-notify-options {
    display: grid;
    gap: 8px;
    margin: 14px 0 12px;
    padding: 12px;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--line);
}
.appt-whatsapp-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.appt-side-form h3 {
    margin: 16px 0 10px;
    font-size: .92rem;
    font-family: var(--display);
}
.appt-reschedule-form h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.appt-reschedule-form h3 .icon {
    width: 16px;
    height: 16px;
}
.appt-history {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}
.appt-history li {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.appt-history li:last-child { border-bottom: 0; }
.appt-history-dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
@media (max-width: 960px) {
    .appt-detail-grid,
    .appt-secondary-grid { grid-template-columns: 1fr; }
}
.cust-detail-grid { margin-bottom: 0; }

/* Lead detail — full-width premium */
.lead-detail {
    width: 100%;
    max-width: none;
    display: grid;
    gap: 18px;
}
.lead-detail-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 22px 24px;
    border-radius: 20px;
    border: 1px solid rgba(29, 53, 87, .08);
    background:
        radial-gradient(520px 180px at 0% 0%, rgba(203, 48, 72, .1), transparent 60%),
        linear-gradient(135deg, #fff 0%, #f7f9fc 100%);
    box-shadow: 0 10px 30px rgba(29, 53, 87, .05);
}
.lead-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink-soft);
    text-decoration: none;
}
.lead-detail-back:hover { color: var(--brand); }
.lead-detail-back .icon { width: 15px; height: 15px; }
.lead-detail-identity {
    display: flex;
    align-items: center;
    gap: 14px;
}
.lead-detail-avatar {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: .04em;
    box-shadow: 0 10px 22px rgba(203, 48, 72, .28);
    flex-shrink: 0;
}
.lead-detail-identity h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    letter-spacing: -.02em;
}
.lead-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: .9rem;
}
.lead-detail-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(29, 53, 87, .28);
}
.lead-detail-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.lead-detail-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    width: 100%;
}
.lead-detail-side {
    display: grid;
    gap: 16px;
}
.lead-panel {
    margin: 0;
    padding: 20px 20px 18px;
    border-radius: 18px;
    border: 1px solid rgba(29, 53, 87, .08);
    background: #fff;
    box-shadow: 0 8px 24px rgba(29, 53, 87, .04);
}
.lead-panel h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 750;
}
.lead-panel h2 .icon {
    width: 18px;
    height: 18px;
    color: var(--brand);
}
.lead-kv {
    display: grid;
    gap: 14px;
    margin: 0;
}
.lead-kv > div {
    display: grid;
    gap: 3px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(29, 53, 87, .06);
}
.lead-kv > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.lead-kv dt {
    margin: 0;
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.lead-kv dd {
    margin: 0;
    font-size: .95rem;
    color: var(--ink);
    word-break: break-word;
}
.lead-kv code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .85rem;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(29, 53, 87, .05);
}
.lead-subject-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(29, 53, 87, .07);
    font-size: .84rem;
    font-weight: 700;
}
.lead-subject-pill.is-job {
    background: rgba(203, 48, 72, .1);
    color: var(--brand);
}
.lead-panel-resume {
    background:
        linear-gradient(160deg, rgba(203, 48, 72, .06), transparent 55%),
        #fff;
}
.lead-resume-hint {
    margin: -6px 0 12px;
    font-size: .84rem;
    color: var(--ink-soft);
}
.lead-resume-btn {
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(29, 53, 87, .1);
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.lead-resume-btn:hover {
    border-color: rgba(203, 48, 72, .35);
    box-shadow: 0 8px 20px rgba(29, 53, 87, .08);
    transform: translateY(-1px);
    color: inherit;
}
.lead-resume-btn > span {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
}
.lead-resume-btn .icon { width: 18px; height: 18px; }
.lead-resume-btn strong {
    font-size: .92rem;
    color: var(--ink);
}
.lead-resume-btn em {
    font-style: normal;
    font-size: .78rem;
    color: var(--ink-soft);
}
.lead-status-form { display: grid; gap: 12px; }
.lead-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.lead-status-opt {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1.5px solid rgba(29, 53, 87, .12);
    background: #f8fafc;
    cursor: pointer;
    font-size: .84rem;
    font-weight: 700;
    color: var(--ink-soft);
    transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}
.lead-status-opt input { position: absolute; opacity: 0; pointer-events: none; }
.lead-status-opt:hover {
    border-color: rgba(203, 48, 72, .35);
    color: var(--ink);
}
.lead-status-opt.is-on,
.lead-status-opt:has(input:checked) {
    border-color: rgba(203, 48, 72, .5);
    background: rgba(203, 48, 72, .08);
    color: var(--brand);
    box-shadow: 0 0 0 3px rgba(203, 48, 72, .1);
}
.lead-status-save { width: 100%; justify-content: center; }
.lead-status-readonly { margin: 0; }
.lead-panel-message {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.lead-message-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.lead-message-head h2 { margin: 0; }
.lead-message-head > span {
    font-size: .78rem;
    color: var(--ink-soft);
}
.lead-message-body {
    flex: 1;
    min-height: 280px;
    padding: 18px 20px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, #f7f9fc 0%, #fff 100%);
    border: 1px solid rgba(29, 53, 87, .08);
    white-space: pre-wrap;
    line-height: 1.65;
    color: var(--ink);
    font-size: .98rem;
}
.lead-message-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(29, 53, 87, .08);
}
@media (max-width: 980px) {
    .lead-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .lead-detail-hero { padding: 18px; }
    .lead-detail-avatar { width: 48px; height: 48px; border-radius: 14px; }
    .lead-status-grid { grid-template-columns: 1fr; }
}

.cust-summary-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cust-summary-stats dd {
    font-size: 1.25rem;
    color: var(--brand);
}
.section-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}
.section-pager-meta {
    margin: 0;
    font-size: .82rem;
}
.section-pager .pagination {
    margin-top: 0;
}
.section-pager .pagination a {
    min-width: 32px;
    text-align: center;
    padding: 4px 8px;
    font-size: .85rem;
}
tr.is-login-fail td {
    background: color-mix(in srgb, #fee2e2 55%, transparent);
}
[data-theme="dark"] tr.is-login-fail td {
    background: color-mix(in srgb, #7f1d1d 35%, transparent);
}

/* Order detail */
.order-total {
    font-size: 1.15rem;
    color: var(--brand);
}
.order-items-table tfoot td {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.order-foot-label {
    text-align: right;
    color: var(--muted);
    font-weight: 600;
}
.order-appt-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.order-appt-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
}

.coupon-block {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.coupon-block:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.coupon-block h2 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-family: var(--display);
}
.coupon-scope-panel {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
}
.coupon-check-grid {
    max-height: 240px;
    overflow: auto;
    padding-right: 4px;
}
.msel {
    position: relative;
}
.msel-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 0;
    margin-bottom: 8px;
}
.msel-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 6px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 12%, var(--bg-elev));
    border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
    font-size: .82rem;
    font-weight: 600;
}
.msel-chip button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 2px;
}
.msel-chip button:hover { color: var(--brand); }
.msel-search {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-elev);
    color: var(--ink);
}
.msel-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 20;
    max-height: 240px;
    overflow: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-elev);
    box-shadow: var(--shadow);
}
.msel-dropdown[hidden] { display: none; }
.msel-dropdown li button {
    width: 100%;
    text-align: left;
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--ink);
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}
.msel-dropdown li button:hover,
.msel-dropdown li button.is-active {
    background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.msel-empty {
    padding: 10px;
    color: var(--muted);
    font-size: .85rem;
}
.msel-inputs { display: none; }

/* Dual list picker (package components) */
.dual-pick {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface, #fff);
    overflow: hidden;
}
.dual-pick-head {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 70%, transparent);
}
.dual-pick-head strong {
    font-size: .92rem;
    color: var(--ink);
}
.dual-pick-search {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 8px !important;
}
.dual-pick-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 280px;
}
.dual-pick-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-right: 1px solid var(--line);
}
.dual-pick-col:last-child { border-right: 0; }
.dual-pick-col-label {
    padding: 8px 12px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.dual-pick-col-selected .dual-pick-col-label {
    color: #1b6b3a;
    background: color-mix(in srgb, #22c55e 10%, var(--bg));
}
.dual-pick-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: auto;
    max-height: 320px;
    flex: 1;
}
.dual-pick-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    padding: 10px 12px;
    font-size: .86rem;
    line-height: 1.35;
    cursor: pointer;
}
.dual-pick-item:hover {
    background: color-mix(in srgb, var(--brand) 8%, transparent);
}
.dual-pick-col-selected .dual-pick-item {
    background: color-mix(in srgb, #22c55e 12%, transparent);
}
.dual-pick-col-selected .dual-pick-item:hover {
    background: color-mix(in srgb, #ef4444 12%, transparent);
}
.dual-pick-empty {
    padding: 16px 12px;
    color: var(--ink-soft);
    font-size: .84rem;
}
.dual-pick-hint {
    margin: 0;
    padding: 10px 14px;
    border-top: 1px solid var(--line);
    font-size: .78rem;
    color: var(--ink-soft);
    background: var(--bg);
}
.dual-pick-inputs { display: none; }
@media (max-width: 720px) {
    .dual-pick-cols { grid-template-columns: 1fr; }
    .dual-pick-col { border-right: 0; border-bottom: 1px solid var(--line); }
    .dual-pick-col:last-child { border-bottom: 0; }
    .dual-pick-list { max-height: 220px; }
}

.pay-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .85rem;
    word-break: break-all;
}
.pay-confirm-form {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.pay-confirm-form h3 {
    margin: 0 0 10px;
    font-size: .92rem;
    font-family: var(--display);
}
.pay-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

/* Reports hub */
.reports-top { align-items: flex-start; }
.reports-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 16px;
    margin-bottom: 16px;
    padding: 16px;
}
.reports-filters-actions .btn { width: 100%; }
.reports-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
    scrollbar-width: thin;
}
.reports-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: .86rem;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.reports-tab .icon { width: 16px; height: 16px; }
.reports-tab:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.reports-tab.is-active {
    background: rgba(203, 48, 72, .08);
    color: var(--brand, #cb3048);
    border-color: rgba(203, 48, 72, .22);
}
.reports-panel-head { margin-bottom: 16px; }
.reports-panel-head h2 { margin: 0; font-size: 1.25rem; }
.reports-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.reports-kpi {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    box-shadow: 0 4px 16px rgba(29, 53, 87, .04);
}
[data-theme="dark"] .reports-kpi { background: var(--card, #151515); }
.reports-kpi-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    font-weight: 700;
}
.reports-kpi-value {
    font-size: 1.25rem;
    color: var(--ink);
    line-height: 1.2;
    word-break: break-word;
}
.reports-kpi-hint { font-size: .75rem; color: var(--muted); }
.finance-panel-sums {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: .86rem;
    color: var(--ink-soft);
}
.finance-panel-sums strong { color: var(--ink); }
.finance-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.finance-mini-card {
    padding: 16px;
    box-shadow: none;
}
.finance-mini-card h3 {
    margin: 0 0 12px;
    font-size: .95rem;
}
.finance-mini-card-wide { grid-column: 1 / -1; }
@media (max-width: 900px) {
    .finance-overview-grid { grid-template-columns: 1fr; }
}
.reports-charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.reports-chart-card h3 {
    margin: 0 0 12px;
    font-size: .95rem;
}
.reports-chart-wrap {
    position: relative;
    height: 260px;
}
.reports-table-card { padding: 16px; }
.reports-table-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}
.reports-table-head h3 { margin: 0; font-size: 1rem; }

@media (max-width: 1100px) {
    .reports-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .reports-charts { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .reports-filters { grid-template-columns: 1fr 1fr; }
    .reports-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .reports-filters { grid-template-columns: 1fr; }
}

/* Customer auth split login */
.auth-customer-body {
    margin: 0;
    height: 100dvh;
    min-height: 100vh;
    overflow: hidden;
    background: #f4f7fb;
    color: var(--ink, #1d3557);
    font-family: "DM Sans", sans-serif;
}
.auth-split {
    height: 100%;
    min-height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    overflow: hidden;
}
.auth-split-visual {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100dvh;
    min-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(29,53,87,.82), rgba(203,48,72,.55)),
        var(--auth-bg, none) center / cover no-repeat,
        linear-gradient(145deg, #1d3557, #cb3048);
    background-size: auto, cover, auto;
    color: #fff;
    padding: 36px 40px 40px;
    display: flex;
}
.auth-split-visual-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.16), transparent 42%),
        linear-gradient(180deg, rgba(15,23,42,.15), rgba(15,23,42,.55));
    pointer-events: none;
}
.auth-split-visual-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}
.auth-split-brand img {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}
.auth-split-copy {
    margin-top: clamp(48px, 12vh, 110px);
    padding-top: 0;
}
.auth-split-cards {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    margin-bottom: 0;
}
.auth-split-kicker {
    margin: 0 0 10px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .85;
}
.auth-split-copy h2 {
    margin: 0 0 12px;
    font-family: Manrope, sans-serif;
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
    line-height: 1.15;
    font-weight: 800;
}
.auth-split-copy p {
    margin: 0;
    max-width: 34ch;
    font-size: 1.02rem;
    line-height: 1.55;
    opacity: .92;
}
.auth-side-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(10px);
    color: #fff;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.auth-side-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.4);
    color: #fff;
    text-decoration: none;
}
.auth-side-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.16);
    flex-shrink: 0;
}
.auth-side-card-icon .icon { width: 20px; height: 20px; }
.auth-side-card-body { flex: 1; min-width: 0; }
.auth-side-card-body strong {
    display: block;
    font-size: .98rem;
    font-weight: 700;
}
.auth-side-card-body small {
    display: block;
    margin-top: 2px;
    opacity: .85;
    font-size: .82rem;
}
.auth-side-card-arrow {
    opacity: .75;
    display: grid;
    place-items: center;
}
.auth-side-card.is-light {
    background: #fff;
    border-color: var(--line, #d7e0ea);
    color: var(--ink, #1d3557);
    box-shadow: 0 8px 24px rgba(29,53,87,.06);
}
.auth-side-card.is-light:hover {
    border-color: rgba(203,48,72,.35);
    color: var(--ink, #1d3557);
}
.auth-side-card.is-light .auth-side-card-icon {
    background: rgba(203,48,72,.1);
    color: var(--brand, #cb3048);
}

.auth-split-panel {
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 100dvh;
    min-height: 100vh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 40px 28px;
    background:
        radial-gradient(circle at 100% 0%, rgba(203,48,72,.06), transparent 28%),
        #f7f9fc;
}
.auth-split-panel-inner {
    width: 100%;
    max-width: 420px;
    margin-block: auto;
    padding-block: 8px;
}
.auth-split:has(.auth-split-form-register) .auth-split-panel-inner {
    max-width: 480px;
}
.auth-split-mobile-brand {
    display: none;
    margin-bottom: 28px;
}
.auth-split-mobile-brand img {
    height: 42px;
    width: auto;
}
.auth-split-panel h1 {
    margin: 8px 0 8px;
    font-family: Manrope, sans-serif;
    font-size: clamp(1.8rem, 2.2vw, 2.2rem);
    font-weight: 800;
    color: var(--ink, #1d3557);
}
.auth-split-lead {
    margin: 0 0 22px;
    color: var(--muted, #5a6b7d);
    line-height: 1.5;
}
.auth-split-form .field { margin-bottom: 14px; }
.auth-split-form input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--line, #d7e0ea);
    background: #fff;
    padding: 12px 14px;
    font: inherit;
}
.auth-split-form input[type="checkbox"],
.auth-split-form input[type="radio"] {
    width: auto;
    min-width: 18px;
    min-height: 18px;
    margin: 2px 0 0;
    padding: 0;
    border: none;
    background: transparent;
    flex: 0 0 auto;
    accent-color: var(--brand, #cb3048);
}
.auth-split-form input:focus {
    outline: 2px solid rgba(203,48,72,.25);
    border-color: var(--brand, #cb3048);
}
.auth-split-form input[type="checkbox"]:focus,
.auth-split-form input[type="radio"]:focus {
    outline: 2px solid rgba(203,48,72,.35);
    outline-offset: 2px;
    border-color: transparent;
}
.auth-split-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    margin: 4px 0 18px;
}
.auth-split-row .check {
    flex: 0 0 auto;
    white-space: nowrap;
    gap: 10px;
}
.auth-split-forgot {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: .9rem;
    font-weight: 600;
    color: var(--brand, #cb3048);
    text-decoration: none;
}
.auth-split-forgot:hover { text-decoration: underline; }
.auth-split-submit {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
}
.auth-split-foot {
    margin: 22px 0 0;
    text-align: center;
    color: var(--muted, #5a6b7d);
    font-size: .92rem;
}
.auth-split-foot a {
    color: var(--ink, #1d3557);
    font-weight: 700;
    text-decoration: none;
}
.auth-split-foot a:hover { color: var(--brand, #cb3048); }
.auth-split-mobile-cards {
    display: none;
    gap: 10px;
    margin-top: 28px;
}

@media (max-width: 980px) {
    .auth-customer-body {
        height: auto;
        min-height: 100dvh;
        overflow: auto;
    }
    .auth-split {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
        grid-template-columns: 1fr;
    }
    .auth-split-visual {
        position: relative;
        top: auto;
        height: auto;
        min-height: 36vh;
        max-height: none;
        padding: 28px 24px 32px;
    }
    .auth-split-panel {
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
    }
    .auth-split-copy { margin-top: 28px; padding-top: 0; }
    .auth-split-cards { display: none; }
    .auth-split-mobile-brand { display: block; }
    .auth-split-mobile-cards { display: grid; }
    .auth-split-brand { display: none; }
}
@media (max-width: 560px) {
    .auth-split-panel { padding: 28px 18px 36px; }
    .auth-split-row {
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 16px;
    }
    .acct-kpi-grid { grid-template-columns: 1fr; }
    .acct-hero,
    .acct-page-head { align-items: flex-start; }
}

/* About — premium editorial */
.about-page {
    --about-paper: #f3f5f8;
    --about-line: rgba(29, 53, 87, .1);
    background: var(--about-paper);
}
.about-eyebrow {
    margin: 0 0 10px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand, #cb3048);
}
.about-eyebrow.is-light { color: rgba(255, 255, 255, .7); }

.about-hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(640px 280px at 8% 0%, rgba(203, 48, 72, .26), transparent 55%),
        linear-gradient(145deg, #1d3557 0%, #15263f 50%, #0d1726 100%);
}
.about-hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(10, 18, 32, .88) 0%, rgba(10, 18, 32, .62) 42%, rgba(10, 18, 32, .4) 100%),
        var(--about-hero-image, none);
    background-size: cover;
    background-position: center;
    pointer-events: none;
}
.about-hero:not(.has-image) .about-hero-media { display: none; }
.about-hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 18, 32, .12) 0%, transparent 40%, rgba(10, 18, 32, .35) 100%),
        radial-gradient(520px 240px at 90% 20%, rgba(203, 48, 72, .14), transparent 60%);
    pointer-events: none;
}
.about-hero-layout {
    position: relative;
    z-index: 1;
    padding: 56px 0 52px;
    text-align: left;
}
.about-hero-copy {
    min-width: 0;
    max-width: 36rem;
}
.about-brand {
    margin: 0 0 12px;
    font-family: var(--display), Manrope, sans-serif;
    font-size: clamp(1.85rem, 4.2vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    color: #fff;
    animation: about-rise .85s cubic-bezier(.22, 1, .36, 1) both;
}
.about-hero h1 {
    margin: 0;
    font-family: var(--display), Manrope, sans-serif;
    font-size: clamp(1.15rem, 1.9vw, 1.45rem);
    font-weight: 650;
    letter-spacing: -.015em;
    line-height: 1.25;
    color: rgba(255, 255, 255, .9);
    animation: about-rise .85s .06s cubic-bezier(.22, 1, .36, 1) both;
}
.about-lead {
    margin: 12px 0 0;
    font-size: 1.02rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .78);
    max-width: 40ch;
    animation: about-rise .85s .12s cubic-bezier(.22, 1, .36, 1) both;
}
.about-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    animation: about-rise .85s .18s cubic-bezier(.22, 1, .36, 1) both;
}
.about-hero .btn.btn-ghost.about-hero-ghost,
.about-hero a.btn.btn-ghost.about-hero-ghost {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .72);
    color: #fff;
}
.about-hero .btn.btn-ghost.about-hero-ghost:hover,
.about-hero a.btn.btn-ghost.about-hero-ghost:hover {
    background: rgba(255, 255, 255, .18);
    border-color: #fff;
    color: #fff;
}
.about-hero .about-hero-ghost .icon {
    color: #fff;
    stroke: currentColor;
}

.about-story {
    padding: 56px 0 24px;
}
.about-story-grid {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}
.about-story-grid.is-text-only,
.about-story-grid.is-media-only {
    grid-template-columns: 1fr;
    max-width: 760px;
}
.about-story-media {
    margin: 0;
    width: 100%;
    max-width: 320px;
    max-height: 220px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #e8eef5;
    border: 1px solid var(--about-line);
    box-shadow: 0 12px 28px rgba(29, 53, 87, .08);
}
.about-story-media img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    object-position: center;
    display: block;
}
.about-story-copy { min-width: 0; }
.about-story-body {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #334155;
}
.about-story-body p { margin: 0 0 1em; }
.about-story-body p:last-child { margin-bottom: 0; }
.about-story-body > p:first-child {
    font-family: var(--display), Manrope, sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.4;
    color: var(--ink, #1d3557);
}

.about-purpose {
    padding: 40px 0 20px;
}
.about-purpose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.about-purpose-block {
    position: relative;
    padding: 36px 32px 40px;
    overflow: hidden;
    background: #fff;
    border-top: 3px solid var(--brand, #cb3048);
}
.about-purpose-block.is-vision {
    border-top-color: var(--ink, #1d3557);
}
.about-purpose-index {
    position: absolute;
    right: 16px;
    top: 8px;
    font-family: var(--display), Manrope, sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: 1;
    color: rgba(29, 53, 87, .06);
    pointer-events: none;
}
.about-purpose-block.is-mission .about-purpose-index {
    color: rgba(203, 48, 72, .08);
}
.about-purpose-text {
    position: relative;
    font-size: 1.02rem;
    line-height: 1.7;
    color: #475569;
    max-width: 42ch;
}
.about-purpose-text p { margin: 0 0 .75em; }
.about-purpose-text p:last-child { margin-bottom: 0; }

.about-values {
    padding: 56px 0 72px;
    background: #fff;
}
.about-values-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(29, 53, 87, .18);
}
.about-values-mark {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    background: var(--brand, #cb3048);
    transform: rotate(45deg);
}
.about-values-head h2 {
    margin: 0;
    font-family: var(--display), Manrope, sans-serif;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand, #cb3048);
}
.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    padding-top: 28px;
}
.about-values-col h3 {
    margin: 0 0 22px;
    font-family: var(--display), Manrope, sans-serif;
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand, #cb3048);
}
.about-values-body {
    color: #1e293b;
    font-size: .98rem;
    line-height: 1.55;
}
.about-values-body p {
    margin: 0 0 1.35rem;
}
.about-values-body p:last-child { margin-bottom: 0; }
.about-values-body strong {
    display: block;
    margin-bottom: 4px;
    font-family: var(--display), Manrope, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}
.about-values-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.about-values-body li {
    margin: 0 0 1.25rem;
}
.about-values-body li:last-child { margin-bottom: 0; }

.about-close {
    position: relative;
    padding: 64px 0 72px;
    background:
        radial-gradient(620px 240px at 12% 0%, rgba(203, 48, 72, .2), transparent 55%),
        linear-gradient(125deg, #142943 0%, #1d3557 48%, #101b2b 100%);
    color: #fff;
    overflow: hidden;
}
.about-close-inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 28px;
    flex-wrap: wrap;
}
.about-close-copy h2 {
    margin: 0;
    font-family: var(--display), Manrope, sans-serif;
    font-size: clamp(1.55rem, 2.6vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.03em;
    max-width: 18ch;
    line-height: 1.15;
}
.about-close-copy p:not(.about-eyebrow) {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, .76);
    max-width: 44ch;
    line-height: 1.6;
}
.about-close-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.about-close .btn.btn-ghost.about-close-ghost,
.about-close a.btn.btn-ghost.about-close-ghost {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .55);
    color: #fff;
}
.about-close .btn.btn-ghost.about-close-ghost:hover,
.about-close a.btn.btn-ghost.about-close-ghost:hover {
    background: rgba(255, 255, 255, .16);
    border-color: #fff;
    color: #fff;
}

@keyframes about-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
    .about-hero-layout { padding: 44px 0 40px; }
    .about-hero-copy { max-width: none; }
    .about-story { padding: 40px 0 16px; }
    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .about-story-media {
        max-width: 280px;
        max-height: 180px;
    }
    .about-story-media img { max-height: 180px; }
    .about-purpose-grid { grid-template-columns: 1fr; gap: 16px; }
    .about-purpose-block { padding: 28px 22px 32px; }
    .about-values { padding: 40px 0 56px; }
    .about-values-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 22px;
    }
    .about-close { padding: 48px 0 56px; }
    .about-close-inner { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .about-brand,
    .about-hero h1,
    .about-lead,
    .about-hero-actions {
        animation: none !important;
    }
}

/* Contact page — split editorial shell */
.contact-page {
    position: relative;
    isolation: isolate;
    padding: 48px 0 96px;
    overflow: clip;
    background:
        radial-gradient(900px 420px at -8% 0%, rgba(203, 48, 72, .1), transparent 58%),
        radial-gradient(760px 380px at 108% 18%, rgba(29, 53, 87, .09), transparent 52%),
        linear-gradient(180deg, #eef2f7 0%, #f7f8fb 38%, #fff 100%);
}
.contact-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.contact-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .55;
    animation: contact-float 12s ease-in-out infinite;
}
.contact-orb-a {
    width: 280px;
    height: 280px;
    top: 4%;
    left: -4%;
    background: rgba(203, 48, 72, .22);
}
.contact-orb-b {
    width: 320px;
    height: 320px;
    right: -6%;
    bottom: 8%;
    background: rgba(69, 123, 157, .18);
    animation-delay: -4s;
}
.contact-grid-lines {
    position: absolute;
    inset: 0;
    opacity: .35;
    background-image:
        linear-gradient(rgba(29, 53, 87, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 53, 87, .04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
@keyframes contact-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(18px, -22px, 0) scale(1.06); }
}
.contact-page-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
}
.contact-shell {
    display: grid;
    grid-template-columns: minmax(280px, .92fr) minmax(0, 1.28fr);
    gap: 0;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(29, 53, 87, .1);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .7) inset,
        0 28px 80px rgba(20, 41, 67, .12);
    background: #fff;
    animation: contact-rise .7s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes contact-rise {
    from { opacity: 0; transform: translateY(22px) scale(.985); }
    to { opacity: 1; transform: none; }
}
.contact-rail {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 40px 34px 36px;
    color: #e8eef6;
    background:
        linear-gradient(165deg, rgba(203, 48, 72, .22) 0%, transparent 42%),
        linear-gradient(160deg, #15263f 0%, #0f1c2e 55%, #0a1420 100%);
    overflow: hidden;
}
.contact-page.has-hero-image .contact-rail {
    background:
        linear-gradient(160deg, rgba(10, 18, 32, .82) 0%, rgba(10, 18, 32, .72) 100%),
        var(--contact-hero-image, none);
    background-size: cover;
    background-position: center;
}
.contact-rail-glow {
    position: absolute;
    width: 240px;
    height: 240px;
    right: -80px;
    top: -60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(203, 48, 72, .45), transparent 68%);
    pointer-events: none;
}
.contact-rail-kicker {
    position: relative;
    margin: 0;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .58);
}
.contact-rail-title {
    position: relative;
    margin: 0;
    font-family: var(--display, Manrope), Manrope, sans-serif;
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.2;
    color: #fff;
}
.contact-rail-lead {
    position: relative;
    margin: 0;
    max-width: 34ch;
    color: rgba(232, 238, 246, .78);
    font-size: .98rem;
    line-height: 1.65;
}
.contact-rail-points {
    position: relative;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}
.contact-rail-points li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: start;
}
.contact-rail-ico {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
}
.contact-rail-ico .icon { width: 18px; height: 18px; }
.contact-rail-points strong {
    display: block;
    font-size: .92rem;
    color: #fff;
}
.contact-rail-points span {
    display: block;
    margin-top: 2px;
    font-size: .8rem;
    color: rgba(232, 238, 246, .62);
}
.contact-rail-channels {
    position: relative;
    margin-top: auto;
    display: grid;
    gap: 10px;
    padding-top: 18px;
}
.contact-channel {
    display: grid;
    grid-template-columns: 34px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 1px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: inherit;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.contact-channel > span:first-child {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(203, 48, 72, .28);
    color: #fff;
}
.contact-channel > span:first-child .icon { width: 16px; height: 16px; }
.contact-channel em {
    font-style: normal;
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}
.contact-channel strong {
    font-size: .88rem;
    font-weight: 650;
    color: #fff;
    word-break: break-word;
}
.contact-channel:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .2);
    transform: translateX(3px);
    color: inherit;
}
.contact-channel.is-whats > span:first-child {
    background: #1f9d57;
}
.contact-channel.is-static { cursor: default; }
.contact-channel.is-static:hover { transform: none; }

.contact-form {
    position: relative;
    display: grid;
    gap: 22px;
    padding: 36px 38px 32px;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}
.contact-form-head { margin-bottom: 2px; }
.contact-form-eyebrow {
    margin: 0 0 6px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand);
}
.contact-form-head h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--ink);
}
.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.contact-subject-set {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}
.contact-subject-set legend {
    margin: 0 0 10px;
    padding: 0;
    font-size: .86rem;
    font-weight: 700;
    color: var(--ink);
}
.contact-subject-set legend span { color: var(--brand); }
.contact-subject-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.contact-subject-card {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 84px;
    padding: 14px 14px 14px 12px;
    border-radius: 16px;
    border: 1.5px solid rgba(29, 53, 87, .12);
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}
.contact-subject-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.contact-subject-ico {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(29, 53, 87, .06);
    color: var(--ink);
    transition: background .2s ease, color .2s ease;
}
.contact-subject-ico .icon { width: 20px; height: 20px; }
.contact-subject-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.contact-subject-copy strong {
    font-size: .95rem;
    color: var(--ink);
    letter-spacing: -.01em;
}
.contact-subject-copy em {
    font-style: normal;
    font-size: .78rem;
    color: var(--ink-soft);
    line-height: 1.35;
}
.contact-subject-check {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1.5px solid rgba(29, 53, 87, .18);
    color: transparent;
    transition: all .2s ease;
}
.contact-subject-check .icon { width: 12px; height: 12px; }
.contact-subject-card:hover {
    border-color: rgba(203, 48, 72, .35);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(29, 53, 87, .08);
}
.contact-subject-card.is-checked,
.contact-subject-card:has(input:checked) {
    border-color: rgba(203, 48, 72, .55);
    background:
        linear-gradient(135deg, rgba(203, 48, 72, .06), rgba(255, 255, 255, .9) 55%);
    box-shadow: 0 0 0 4px rgba(203, 48, 72, .1);
}
.contact-subject-card.is-checked .contact-subject-ico,
.contact-subject-card:has(input:checked) .contact-subject-ico {
    background: var(--brand);
    color: #fff;
}
.contact-subject-card.is-checked .contact-subject-check,
.contact-subject-card:has(input:checked) .contact-subject-check {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.contact-identity {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.contact-identity .field:last-child {
    grid-column: 1 / -1;
}
.contact-float {
    position: relative;
    margin: 0;
}
.contact-float input,
.contact-float textarea {
    width: 100%;
    border: 1.5px solid rgba(29, 53, 87, .12);
    border-radius: 14px;
    background: #f7f9fc;
    min-height: 56px;
    padding: 22px 16px 10px;
    font: inherit;
    color: var(--ink);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.contact-float textarea {
    min-height: 168px;
    resize: vertical;
    line-height: 1.55;
    padding-top: 28px;
}
.contact-float label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    font-size: .95rem;
    font-weight: 600;
    color: #8a97a8;
    pointer-events: none;
    transition: transform .18s ease, font-size .18s ease, color .18s ease, top .18s ease;
}
.contact-float.is-area label {
    top: 18px;
    transform: none;
}
.contact-float label span { color: var(--brand); }
.contact-float input:focus,
.contact-float textarea:focus {
    outline: none;
    border-color: rgba(203, 48, 72, .55);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(203, 48, 72, .12);
}
.contact-float input:focus + label,
.contact-float input:not(:placeholder-shown) + label,
.contact-float textarea:focus + label,
.contact-float textarea:not(:placeholder-shown) + label {
    top: 10px;
    transform: none;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.contact-float.is-area textarea:focus + label,
.contact-float.is-area textarea:not(:placeholder-shown) + label {
    top: 10px;
}

.contact-resume-field {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height .36s ease, opacity .28s ease, transform .28s ease;
    margin: 0 !important;
}
.contact-resume-field.is-open,
.contact-resume-field:not([hidden]) {
    max-height: 240px;
    opacity: 1;
    transform: none;
}
.contact-resume-field[hidden] {
    display: block !important;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}
.contact-resume-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.contact-resume-head label {
    margin: 0;
    font-size: .86rem;
    font-weight: 700;
    color: var(--ink);
}
.contact-resume-head label span { color: var(--brand); }
.contact-resume-head > span {
    font-size: .78rem;
    color: var(--ink-soft);
}
.contact-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    padding: 14px 16px;
    border: 1.5px dashed rgba(29, 53, 87, .22);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(203, 48, 72, .04), transparent 40%),
        #fff;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.contact-upload:hover,
.contact-upload.is-dragover {
    border-color: rgba(203, 48, 72, .5);
    background: rgba(203, 48, 72, .05);
    box-shadow: 0 0 0 4px rgba(203, 48, 72, .08);
    transform: translateY(-1px);
}
.contact-upload.is-ready {
    border-style: solid;
    border-color: rgba(29, 53, 87, .22);
}
.contact-upload-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.contact-upload-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand);
    flex-shrink: 0;
}
.contact-upload-icon .icon { width: 20px; height: 20px; }
.contact-upload-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.contact-upload-copy strong {
    font-size: .95rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.contact-upload-copy em {
    font-style: normal;
    font-size: .78rem;
    color: var(--ink-soft);
}
.contact-upload-btn {
    flex-shrink: 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
}

.contact-message { margin: 0; }
.contact-secure {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto;
    gap: 18px;
    align-items: end;
    padding-top: 8px;
    border-top: 1px solid rgba(29, 53, 87, .08);
}
.contact-captcha-field { margin: 0; }
.contact-captcha-field > label {
    display: block;
    margin-bottom: 8px;
    font-size: .86rem;
    font-weight: 700;
    color: var(--ink);
}
.contact-captcha-field > label span { color: var(--brand); }
.contact-captcha-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}
.contact-captcha-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 52px;
    padding: 0 8px;
    border: 1.5px solid rgba(29, 53, 87, .12);
    border-radius: 14px;
    background:
        repeating-linear-gradient(
            -18deg,
            transparent,
            transparent 6px,
            rgba(29, 53, 87, .05) 6px,
            rgba(29, 53, 87, .05) 7px
        ),
        #edf1f6;
    user-select: none;
}
.contact-captcha-code span {
    display: inline-block;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.15rem;
    color: #1d3557;
    transform: rotate(var(--r, 0deg));
}
.contact-captcha-row input {
    width: 100%;
    min-height: 52px;
    border: 1.5px solid rgba(29, 53, 87, .12);
    border-radius: 14px;
    background: #f7f9fc;
    padding: 0 14px;
    font: inherit;
    color: var(--ink);
}
.contact-captcha-row input:focus {
    outline: none;
    border-color: rgba(203, 48, 72, .55);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(203, 48, 72, .12);
}
.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    min-height: 54px;
    padding: 14px 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: -.01em;
    box-shadow: 0 14px 32px rgba(203, 48, 72, .28);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.contact-submit i {
    display: grid;
    place-items: center;
    transition: transform .2s ease;
}
.contact-submit .icon { width: 18px; height: 18px; }
.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(203, 48, 72, .34);
    color: #fff;
    filter: brightness(1.03);
}
.contact-submit:hover i { transform: translateX(3px); }

@media (max-width: 980px) {
    .contact-shell { grid-template-columns: 1fr; }
    .contact-rail { padding: 32px 26px 28px; min-height: auto; }
    .contact-rail-channels { margin-top: 12px; }
    .contact-form { padding: 28px 22px 24px; }
}
@media (max-width: 640px) {
    .contact-page { padding: 28px 0 72px; }
    .contact-shell { border-radius: 20px; }
    .contact-subject-grid { grid-template-columns: 1fr; }
    .contact-identity { grid-template-columns: 1fr; }
    .contact-identity .field:last-child { grid-column: auto; }
    .contact-secure { grid-template-columns: 1fr; }
    .contact-submit { width: 100%; }
    .contact-captcha-row { grid-template-columns: 1fr; }
    .contact-upload { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .contact-orb,
    .contact-shell,
    .contact-subject-card,
    .contact-submit,
    .contact-upload { animation: none !important; transition: none !important; }
}

/* Shop / cart / prescription premium */
.shop-page {
    padding: 40px 0 72px;
    background:
        radial-gradient(900px 320px at 0% -10%, rgba(203, 48, 72, .07), transparent 55%),
        radial-gradient(700px 280px at 100% 0%, rgba(29, 53, 87, .06), transparent 50%),
        #f5f7fb;
    min-height: 60vh;
}
.shop-shell { max-width: 1100px; }
.shop-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.shop-kicker {
    margin: 0 0 8px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand, #cb3048);
}
.shop-hero h1 {
    margin: 0;
    font-family: Manrope, sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    color: var(--ink, #1d3557);
    letter-spacing: -.02em;
}
.shop-lead {
    margin: 10px 0 0;
    color: #5a6b7d;
    max-width: 48ch;
    line-height: 1.55;
}
.shop-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(29, 53, 87, .1);
    color: #44566c;
    font-size: .85rem;
}
.shop-steps {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.shop-steps li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(29, 53, 87, .08);
    color: #7a8a9a;
    font-size: .82rem;
    font-weight: 600;
}
.shop-steps li span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e8eef5;
    font-size: .75rem;
}
.shop-steps li.is-done,
.shop-steps li.is-current {
    color: var(--ink);
    background: #fff;
}
.shop-steps li.is-current span,
.shop-steps li.is-done span {
    background: var(--brand, #cb3048);
    color: #fff;
}
.shop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .75fr);
    gap: 22px;
    align-items: start;
}
.shop-layout-upload { grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); }
.shop-main { min-width: 0; }
.shop-panel,
.shop-summary,
.shop-upload {
    background: #fff;
    border: 1px solid rgba(29, 53, 87, .08);
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(29, 53, 87, .06);
}
.shop-panel { padding: 8px; overflow: hidden; }
.shop-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 18px 12px;
}
.shop-panel-head h2,
.shop-summary h2 {
    margin: 0;
    font-family: Manrope, sans-serif;
    font-size: 1.15rem;
    color: var(--ink);
}
.shop-panel-head p {
    margin: 4px 0 0;
    color: #6b7c8f;
    font-size: .9rem;
}
.shop-link {
    color: var(--brand);
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    white-space: nowrap;
}
.shop-panel-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.shop-panel-actions .shop-remove {
    white-space: nowrap;
}
.shop-item-list { display: grid; gap: 8px; padding: 0 8px 8px; }
.shop-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.shop-item.is-checked {
    background: #fff;
    border-color: rgba(203, 48, 72, .28);
    box-shadow: 0 8px 24px rgba(203, 48, 72, .08);
}
.shop-item.is-unmatched {
    opacity: .78;
    cursor: not-allowed;
}
.shop-item-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand, #cb3048);
}
.shop-item-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.shop-item-body strong {
    color: var(--ink);
    font-size: .98rem;
}
.shop-item-body small { color: #6b7c8f; font-size: .82rem; }
.shop-item-price {
    font-family: Manrope, sans-serif;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
}
.shop-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}
.shop-pill.is-ok { background: #dcfce7; color: #166534; }
.shop-pill.is-warn { background: #ffedd5; color: #9a3412; }
.shop-side { position: sticky; top: 96px; display: grid; gap: 12px; }
.shop-summary { padding: 22px; }
.shop-summary-rows {
    margin: 16px 0 0;
    display: grid;
    gap: 10px;
}
.shop-summary-rows > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #5a6b7d;
}
.shop-summary-rows dt { margin: 0; }
.shop-summary-rows dd { margin: 0; font-weight: 700; color: var(--ink); }
.shop-summary-rows .is-total {
    padding-top: 12px;
    border-top: 1px solid rgba(29, 53, 87, .1);
    align-items: baseline;
}
.shop-summary-total {
    font-family: Manrope, sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--ink);
}
.shop-summary-note {
    margin: 12px 0 0;
    color: #7a8a9a;
    font-size: .82rem;
    line-height: 1.45;
}
.shop-summary-actions {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}
.shop-btn-primary { width: 100%; justify-content: center; }
.shop-catalog-add { margin-top: 18px; }
.shop-catalog-add label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--ink);
    font-size: .9rem;
}
.shop-catalog-filter,
.shop-catalog-add select,
.shop-coupon input,
.shop-qty input {
    width: 100%;
    border: 1px solid #d7e0ea;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
}
.shop-catalog-add select {
    margin-top: 8px;
    min-height: 160px;
}
.shop-hint {
    margin: 6px 0 0;
    color: #8a97a6;
    font-size: .78rem;
}
.shop-reanalyze { text-align: center; }
.shop-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}
.shop-alert strong { display: block; margin-bottom: 4px; }
.shop-alert p { margin: 0; }
.shop-empty {
    text-align: center;
    padding: 48px 24px;
}
.shop-empty-lg {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(29, 53, 87, .08);
    box-shadow: 0 14px 40px rgba(29, 53, 87, .05);
}
.shop-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(203, 48, 72, .1);
    color: var(--brand);
}
.shop-empty strong { display: block; color: var(--ink); font-size: 1.15rem; }
.shop-empty p { margin: 8px auto 18px; max-width: 40ch; color: #6b7c8f; }
.shop-empty-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.shop-drop {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin: 8px 18px 18px;
    padding: 36px 18px;
    border: 1.5px dashed rgba(29, 53, 87, .22);
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fafc, #fff);
    text-align: center;
    cursor: pointer;
}
.shop-drop-icon { color: var(--brand); }
.shop-drop strong { color: var(--ink); }
.shop-drop small { color: #6b7c8f; }
.shop-drop input { margin-top: 10px; }
.shop-upload .shop-btn-primary { margin: 0 18px 18px; width: calc(100% - 36px); }

/* Pedido médico — upload premium */
.rx-page {
    padding: 48px 0 80px;
    background:
        radial-gradient(900px 360px at 8% -8%, rgba(203, 48, 72, .09), transparent 55%),
        radial-gradient(720px 300px at 100% 0%, rgba(29, 53, 87, .08), transparent 50%),
        #f4f6f9;
    min-height: 62vh;
}
.rx-shell { max-width: 1080px; }
.rx-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.rx-kicker {
    margin: 0 0 10px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand, #cb3048);
}
.rx-hero h1 {
    margin: 0;
    max-width: none;
    font-family: var(--display, Manrope), Manrope, sans-serif;
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    line-height: 1.25;
    letter-spacing: -.02em;
    color: #1d3557;
}
.rx-lead {
    margin: 12px 0 0;
    max-width: 62ch;
    font-size: 1rem;
    line-height: 1.55;
    color: #51657c;
}
.rx-steps {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.rx-steps li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(29, 53, 87, .08);
    color: #7a8a9a;
    font-size: .82rem;
    font-weight: 650;
}
.rx-steps li span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e8eef5;
    font-size: .75rem;
}
.rx-steps li.is-current {
    color: #1d3557;
    background: #fff;
}
.rx-steps li.is-current span {
    background: var(--brand, #cb3048);
    color: #fff;
}
.rx-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 22px;
    align-items: start;
}
.rx-card {
    background: #fff;
    border: 1px solid rgba(29, 53, 87, .08);
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(29, 53, 87, .06);
}
.rx-upload { padding: 8px 8px 20px; overflow: hidden; }
.rx-card-head {
    padding: 18px 18px 8px;
}
.rx-card-head h2,
.rx-guide h2 {
    margin: 0;
    font-family: var(--display, Manrope), Manrope, sans-serif;
    font-size: 1.15rem;
    color: #1d3557;
}
.rx-card-head p {
    margin: 6px 0 0;
    font-size: .88rem;
    color: #7a8ba0;
}
.rx-drop {
    position: relative;
    margin: 8px 18px 14px;
    min-height: 240px;
    padding: 36px 22px;
    border: 1.5px dashed rgba(29, 53, 87, .22);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, .95), #fff);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
    outline: none;
}
.rx-drop:hover,
.rx-drop:focus-visible {
    border-color: rgba(203, 48, 72, .45);
    box-shadow: 0 0 0 4px rgba(203, 48, 72, .08);
}
.rx-drop.is-dragover {
    border-color: var(--brand, #cb3048);
    border-style: solid;
    background:
        linear-gradient(180deg, rgba(203, 48, 72, .06), #fff);
    box-shadow: 0 0 0 4px rgba(203, 48, 72, .12);
}
.rx-drop.is-ready {
    border-style: solid;
    border-color: rgba(29, 53, 87, .14);
    background: linear-gradient(180deg, #f8fafc, #fff);
}
.rx-drop-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}
.rx-drop.is-ready .rx-drop-input {
    pointer-events: none;
}
.rx-drop-idle,
.rx-drop-ready {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 8px;
}
.rx-drop-ready[hidden],
.rx-drop-idle[hidden] { display: none !important; }
.rx-drop-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(203, 48, 72, .08);
    color: var(--brand, #cb3048);
    margin-bottom: 4px;
}
.rx-drop-icon .icon { width: 26px; height: 26px; }
.rx-drop-icon.is-ok {
    background: rgba(22, 163, 74, .1);
    color: #15803d;
}
.rx-drop strong {
    font-size: 1.05rem;
    color: #1d3557;
}
.rx-drop span {
    color: #51657c;
    font-size: .92rem;
}
.rx-drop em {
    margin-top: 4px;
    font-style: normal;
    font-size: .8rem;
    color: #8a9aab;
}
.rx-drop-change {
    pointer-events: auto;
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(29, 53, 87, .14);
    background: #fff;
    color: #1d3557;
    font-size: .85rem;
    font-weight: 650;
    cursor: pointer;
}
.rx-drop-change:hover {
    border-color: rgba(203, 48, 72, .35);
    color: var(--brand, #cb3048);
}
.rx-drop-error {
    margin: 0 18px 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(203, 48, 72, .08);
    color: #9f1239;
    font-size: .88rem;
}
.rx-drop-error[hidden] { display: none !important; }
.rx-submit {
    display: flex;
    width: calc(100% - 36px);
    margin: 0 18px;
    justify-content: center;
}
.rx-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.rx-side { position: sticky; top: 88px; }
.rx-guide { padding: 22px; }
.rx-guide-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.rx-guide-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px;
    border-radius: 14px;
    background: #f7f9fc;
}
.rx-guide-num {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #1d3557;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
}
.rx-guide-list strong {
    display: block;
    color: #1d3557;
    font-size: .92rem;
}
.rx-guide-list p {
    margin: 4px 0 0;
    font-size: .84rem;
    line-height: 1.45;
    color: #61758a;
}
.rx-guide-foot {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(29, 53, 87, .08);
}
.rx-guide-foot p {
    margin: 0 0 12px;
    font-size: .88rem;
    color: #61758a;
    line-height: 1.45;
}
@media (max-width: 900px) {
    .rx-layout { grid-template-columns: 1fr; }
    .rx-side { position: static; }
}

.shop-help-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}
.shop-help-list li {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    color: #44566c;
    line-height: 1.45;
}
.shop-help-list strong { color: var(--ink); }
.shop-cart-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
}
.shop-cart-thumb {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid rgba(29, 53, 87, .08);
    color: var(--brand);
}
.shop-cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-cart-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}
.shop-cart-top h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--ink);
}
.shop-cart-top small {
    display: block;
    margin-top: 2px;
    color: #7a8a9a;
}
.shop-cart-right {
    display: grid;
    justify-items: end;
    gap: 10px;
    flex-shrink: 0;
}
.shop-cart-line {
    font-family: Manrope, sans-serif;
    font-size: 1.05rem;
    color: var(--ink);
    white-space: nowrap;
}
.shop-cart-meta {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    color: #6b7c8f;
    font-size: .88rem;
}
.shop-remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #9e2438;
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.shop-coupon { margin-top: 16px; }
.shop-coupon label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--ink);
    font-size: .9rem;
}
.shop-coupon-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}
.checkout-block { padding-bottom: 8px; margin-bottom: 16px; }
.checkout-block:last-child { margin-bottom: 0; }
.checkout-identity {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 8px 18px 18px;
}
.checkout-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #cb3048, #9e2438);
    color: #fff;
    font-family: Manrope, sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.checkout-identity strong {
    display: block;
    color: var(--ink);
    font-size: 1.02rem;
}
.checkout-identity p {
    margin: 2px 0 0;
    color: #6b7c8f;
    font-size: .9rem;
}
.checkout-methods {
    display: grid;
    gap: 10px;
    padding: 0 18px 18px;
}
.checkout-method { cursor: pointer; }
.checkout-method input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.checkout-method-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #d7e0ea;
    background: #f8fafc;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.checkout-method input:checked + .checkout-method-card {
    background: #fff;
    border-color: rgba(203, 48, 72, .45);
    box-shadow: 0 8px 24px rgba(203, 48, 72, .1);
}
.checkout-method-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(203, 48, 72, .1);
    color: var(--brand, #cb3048);
    flex-shrink: 0;
}
.checkout-method-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.checkout-method-copy strong { color: var(--ink); }
.checkout-method-copy small { color: #6b7c8f; line-height: 1.4; }
.checkout-terms {
    display: grid;
    gap: 12px;
    padding: 0 18px 18px;
    justify-items: start;
}
.checkout-check {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    color: #334155;
    line-height: 1.45;
    font-weight: 600;
}
.checkout-check input[type="checkbox"] {
    width: auto !important;
    min-width: 18px;
    max-width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 3px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    accent-color: var(--brand, #cb3048);
}
.checkout-check > span {
    flex: 1 1 auto;
    min-width: 0;
}
.checkout-check a { color: var(--brand); font-weight: 600; }
.checkout-summary-count {
    margin: 8px 0 0;
    color: #6b7c8f;
    font-size: .9rem;
}
.checkout-summary-items {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
    max-height: 220px;
    overflow: auto;
}
.checkout-summary-items li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: .9rem;
    color: #44566c;
}
.checkout-summary-items span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.checkout-summary-items strong { color: var(--ink); white-space: nowrap; }
@media (max-width: 960px) {
    .shop-layout,
    .shop-layout-upload { grid-template-columns: 1fr; }
    .shop-side { position: static; }
    .shop-cart-item { grid-template-columns: 56px minmax(0, 1fr); }
    .shop-cart-thumb { width: 56px; height: 56px; }
}

/* Admin notifications */
.admin-notif { position: relative; }
.admin-notif-toggle { position: relative; }
.admin-notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    pointer-events: none;
}
.admin-notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, calc(100vw - 24px));
    background: var(--surface, #fff);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(29, 53, 87, .14);
    z-index: 80;
    overflow: hidden;
}
.admin-notif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}
.admin-notif-head strong { font-size: .92rem; color: var(--ink); }
.admin-notif-body { max-height: 340px; overflow: auto; }
.admin-notif-empty { margin: 0; padding: 18px 14px; font-size: .86rem; }
.admin-notif-row {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    transition: background .15s ease;
}
.admin-notif-row:hover { background: var(--bg); }
.admin-notif-row.is-unread { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.admin-notif-row strong {
    display: block;
    font-size: .86rem;
    color: var(--ink);
    margin-bottom: 2px;
}
.admin-notif-row p {
    margin: 0;
    font-size: .8rem;
    color: var(--ink-soft);
    line-height: 1.4;
}
.admin-notif-row small {
    display: block;
    margin-top: 6px;
    font-size: .72rem;
    color: var(--ink-soft);
}
.admin-notif-foot {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: .84rem;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    border-top: 1px solid var(--line);
}
.admin-notif-foot:hover { background: var(--bg); }
.admin-notif-list { list-style: none; margin: 0; padding: 0; }
.admin-notif-item {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.admin-notif-item:last-child { border-bottom: 0; }
.admin-notif-item.is-read { opacity: .72; }
.admin-notif-item-main { min-width: 0; flex: 1; }
.admin-notif-item-main strong { display: block; color: var(--ink); margin-bottom: 4px; }
.admin-notif-item-main p { margin: 0 0 6px; color: var(--ink-soft); font-size: .9rem; }
.admin-notif-item-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
@media (max-width: 720px) {
    .admin-notif-item { flex-direction: column; }
}

/* —— Cart drawer —— */
html.cart-drawer-open { overflow: hidden; }
.cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, .45);
    opacity: 0;
    transition: opacity .28s ease;
}
.cart-drawer-backdrop.is-open { opacity: 1; }
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1201;
    display: flex;
    flex-direction: column;
    width: min(420px, 100vw);
    height: 100%;
    background: #fff;
    box-shadow: -18px 0 48px rgba(15, 23, 42, .18);
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.22, 1, .36, 1);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--line);
}
.cart-drawer-kicker {
    margin: 0 0 2px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand);
}
.cart-drawer-head h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--ink);
}
.cart-drawer-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
}
.cart-drawer-close:hover { background: color-mix(in srgb, var(--brand) 12%, var(--bg)); color: var(--brand); }
.cart-drawer-body {
    flex: 1;
    overflow: auto;
    padding: 8px 12px 16px;
}
.cart-drawer-empty {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    padding: 48px 20px;
    color: var(--ink-soft);
}
.cart-drawer-empty[hidden],
.cart-drawer-list[hidden],
.cart-drawer-foot[hidden] { display: none !important; }
.cart-drawer-empty-ico {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--brand) 10%, #fff);
    color: var(--brand);
    margin-bottom: 4px;
}
.cart-drawer-empty strong { color: var(--ink); font-size: 1rem; }
.cart-drawer-empty p { margin: 0 0 8px; font-size: .9rem; max-width: 240px; }
.cart-drawer-list { display: grid; gap: 8px; padding: 8px 0; }
.cart-drawer-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 12px;
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid var(--line);
}
.cart-drawer-item-media {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}
.cart-drawer-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cart-drawer-item-ph {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8eef5, #f8fafc);
}
.cart-drawer-item-body { min-width: 0; }
.cart-drawer-item-name {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.3;
}
.cart-drawer-item-name:hover { color: var(--brand); }
.cart-drawer-item-code {
    display: block;
    margin-top: 2px;
    font-size: .72rem;
    color: var(--ink-soft);
}
.cart-drawer-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    margin-top: 8px;
}
.cart-drawer-item-qty {
    font-size: .78rem;
    font-weight: 700;
    color: var(--ink-soft);
}
.cart-drawer-item-list {
    font-size: .78rem;
    color: var(--ink-soft);
}
.cart-drawer-item-meta strong {
    font-size: .95rem;
    color: var(--brand);
}
.cart-drawer-item-remove {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink-soft);
    display: grid;
    place-items: center;
    cursor: pointer;
}
.cart-drawer-item-remove:hover {
    background: color-mix(in srgb, #dc2626 12%, transparent);
    color: #dc2626;
}
.cart-drawer-foot {
    padding: 16px 20px 22px;
    border-top: 1px solid var(--line);
    background: #fff;
    display: grid;
    gap: 10px;
}
.cart-drawer-totals {
    margin: 0;
    display: grid;
    gap: 6px;
}
.cart-drawer-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: .9rem;
    color: var(--ink-soft);
}
.cart-drawer-totals dt { margin: 0; }
.cart-drawer-totals dd { margin: 0; font-weight: 700; color: var(--ink); }
.cart-drawer-totals .is-total {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
    font-size: 1.05rem;
    color: var(--ink);
}
.cart-drawer-totals .is-total dd { color: var(--brand); font-size: 1.15rem; }
.cart-drawer-checkout {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    padding: 12px 16px;
}
.cart-drawer-full {
    width: 100%;
    justify-content: center;
}
@media (max-width: 480px) {
    .cart-drawer { width: 100vw; }
}

/* Pay page — Checkout Transparente */
.pay-page .pay-amount-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 20px;
    padding: 0 18px 16px;
    border-bottom: 1px solid var(--line);
}
.pay-amount-label {
    display: block;
    font-size: .82rem;
    color: var(--ink-soft);
    margin-bottom: 4px;
}
.pay-amount {
    font-size: 1.65rem;
    color: var(--brand);
    letter-spacing: -0.02em;
}
.pay-method-pill {
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    color: var(--brand);
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}
.pay-pix { display: grid; gap: 14px; padding: 0 18px 18px; }
.pay-pix-qr {
    width: 220px;
    max-width: 100%;
    margin: 0 auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}
.pay-pix-qr img { display: block; width: 100%; height: auto; }
.pay-copy-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: start;
}
.pay-pix-code {
    min-height: 96px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .8rem;
    line-height: 1.4;
    resize: vertical;
}
.pay-boleto { display: grid; gap: 12px; justify-items: start; padding: 0 18px 18px; }

/* Card payment — premium */
.pay-card-wrap {
    display: grid;
    gap: 20px;
    padding: 0 18px 22px;
}
.pay-card-visual {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 22px 22px 18px;
    min-height: 190px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(203,48,72,.45), transparent 45%),
        linear-gradient(145deg, #142943 0%, #1d3557 48%, #2a4a73 100%);
    box-shadow: 0 18px 40px rgba(29, 53, 87, .22);
}
.pay-card-visual::after {
    content: '';
    position: absolute;
    inset: auto -20% -40% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
    pointer-events: none;
}
.pay-card-visual-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}
.pay-card-chip {
    width: 42px;
    height: 32px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, #f6e27a, #d4a017 55%, #f8e7a1);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.pay-card-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}
.pay-brand {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.78);
    transition: background .2s ease, color .2s ease, transform .2s ease, opacity .2s ease;
}
.pay-brand.is-active {
    background: #fff;
    color: #1d3557;
    transform: translateY(-1px);
}
.pay-brand.is-dim { opacity: .35; }
.pay-card-number {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
    letter-spacing: .12em;
    margin-bottom: 22px;
}
.pay-card-visual-bottom {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    align-items: end;
}
.pay-card-visual-bottom small {
    display: block;
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .7;
    margin-bottom: 4px;
}
.pay-card-visual-bottom strong {
    font-size: .92rem;
    font-weight: 700;
}
.pay-card-brand-thumb {
    width: 52px;
    height: 34px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
}
.pay-card-form {
    display: grid;
    gap: 14px;
    padding: 0;
}
.pay-card-form .field { margin: 0; }
.pay-card-form label {
    display: block;
    margin-bottom: 6px;
    font-size: .84rem;
    font-weight: 700;
    color: var(--ink);
}
.pay-card-form input,
.pay-card-form select,
.pay-card-form .pay-mp-field {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(29, 53, 87, .14);
    border-radius: 14px;
    background: #fff;
    padding: 0 14px;
    font: inherit;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pay-card-form .pay-mp-field {
    padding: 0 4px;
    display: flex;
    align-items: center;
    background: #fff !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
.pay-card-form .pay-mp-field iframe {
    width: 100% !important;
    min-height: 48px !important;
    border: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
.pay-card-form input:focus,
.pay-card-form select:focus,
.pay-card-form .pay-mp-field:focus-within {
    outline: none;
    border-color: color-mix(in srgb, var(--brand) 45%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent);
}
.pay-card-api-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .02em;
    background: rgba(255,255,255,.14);
    color: rgba(255,255,255,.92);
}
.pay-mp-brick {
    min-height: 320px;
    background: #fff;
    border: 1px solid rgba(29, 53, 87, .1);
    border-radius: 16px;
    padding: 8px 6px 4px;
}
.pay-mp-brick iframe {
    width: 100% !important;
    border: 0 !important;
}
.pay-card-form input,
.pay-card-form select {
    pointer-events: auto !important;
    cursor: auto;
}
.pay-card-form select {
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: menulist;
    background-color: #fff;
}
.pay-card-form select:disabled {
    cursor: not-allowed;
    background: #f8fafc;
    color: #64748b;
}
.pay-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.pay-card-loading {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: .88rem;
    font-weight: 600;
}
.pay-card-hint {
    margin: 0;
    color: #6b7c8f;
    font-size: .84rem;
}
.pay-card-alert,
.pay-card-error {
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.4;
}
.pay-card-alert {
    display: grid;
    gap: 6px;
}
.pay-card-alert strong {
    display: block;
    font-size: .95rem;
}
.pay-card-alert span {
    display: block;
    font-weight: 500;
    font-size: .86rem;
}
.pay-card-alert code {
    font-size: .8em;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 6px;
    background: rgba(0,0,0,.06);
}
.pay-card-alert.is-error,
.pay-card-error {
    border: 1px solid color-mix(in srgb, #c0392b 35%, transparent);
    background: #fdecea;
    color: #8e1b12;
}
.pay-card-alert.is-warn {
    border: 1px solid color-mix(in srgb, #b45309 40%, transparent);
    background: #fff7ed;
    color: #9a3412;
}
.pay-card-alert[hidden],
.pay-card-error[hidden] {
    display: none !important;
}
.pay-card-form .shop-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}
.pay-card-form .shop-btn-primary .icon { width: 16px; height: 16px; }
.pay-feedback {
    display: grid;
    gap: 12px;
    margin: 0 18px 18px;
    padding: 14px;
    border-radius: 14px;
}
.pay-feedback.is-ok { background: color-mix(in srgb, #1f8a4c 12%, transparent); }
.pay-feedback.is-fail { background: color-mix(in srgb, #c0392b 12%, transparent); }
.pay-feedback p { margin: 0; }
@media (max-width: 640px) {
    .pay-copy-row { grid-template-columns: 1fr; }
    .pay-amount-row { flex-direction: column; }
    .pay-card-row { grid-template-columns: 1fr; }
    .pay-card-visual-bottom { grid-template-columns: 1fr auto; }
}


/* Auth register form grid */
.auth-split-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}
.auth-split-fields .field { margin-bottom: 14px; }
.auth-split-fields .auth-field-full { grid-column: 1 / -1; }
.auth-split-checks {
    display: grid;
    gap: 10px;
    margin: 4px 0 18px;
}
.auth-split-checks .check {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    line-height: 1.45;
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink, #1d3557);
}
.auth-split-checks .check > span {
    flex: 1 1 auto;
    min-width: 0;
}
.auth-split-checks .check a {
    color: var(--brand, #cb3048);
    font-weight: 700;
    text-decoration: none;
}
.auth-split-checks .check a:hover { text-decoration: underline; }
@media (max-width: 640px) {
    .auth-split-fields { grid-template-columns: 1fr; }
}

/* ===== Schedule booking (premium) ===== */
.sch-head { margin-bottom: 18px; }
.sch-board {
    display: grid;
    gap: 16px;
    background: transparent;
    min-width: 0;
    max-width: 100%;
}
.sch-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(29, 53, 87, .08);
    box-shadow: 0 10px 28px rgba(29, 53, 87, .04);
}
.sch-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink-soft);
    font: inherit;
    font-weight: 700;
    font-size: .86rem;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.sch-step span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(29, 53, 87, .08);
    color: var(--ink);
    font-size: .75rem;
}
.sch-step.is-active {
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    color: var(--brand);
}
.sch-step.is-active span {
    background: var(--brand);
    color: #fff;
}
.sch-step.is-done span {
    background: var(--ink);
    color: #fff;
}
.sch-step:hover { background: #f8fafc; color: var(--ink); }
.sch-panel {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 10px 28px rgba(29, 53, 87, .04);
    opacity: .72;
    transition: opacity .2s ease, box-shadow .2s ease;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
.sch-panel.is-current,
.sch-panel.is-done { opacity: 1; }
.sch-panel.is-current {
    box-shadow: 0 14px 36px rgba(29, 53, 87, .08);
    border-color: color-mix(in srgb, var(--brand) 22%, rgba(29, 53, 87, .08));
}
.sch-panel-head { margin-bottom: 16px; }
.sch-panel-head h2 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    color: var(--ink);
}
.sch-panel-head p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .9rem;
}
.sch-panel-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.sch-exam-list,
.sch-units {
    display: grid;
    gap: 10px;
}
.sch-exam {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(29, 53, 87, .12);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.sch-exam > input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.sch-exam > input[type="hidden"] {
    display: none;
}
.sch-exam-check {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 2px solid rgba(29, 53, 87, .22);
    background: #fff;
    position: relative;
    flex-shrink: 0;
}
.sch-exam:has(input[type="checkbox"]:checked) .sch-exam-check {
    border-color: var(--brand);
    background: var(--brand);
}
.sch-exam:has(input[type="checkbox"]:checked) .sch-exam-check::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.sch-exam-body { display: grid; gap: 2px; min-width: 0; }
.sch-exam-body strong {
    color: var(--ink);
    font-size: .98rem;
}
.sch-exam-body small {
    color: var(--ink-soft);
    font-size: .82rem;
}
.sch-exam:has(input[type="checkbox"]:checked) {
    border-color: color-mix(in srgb, var(--brand) 45%, transparent);
    background: color-mix(in srgb, var(--brand) 6%, #fff);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent);
}
.sch-exam.is-locked { cursor: default; }
.sch-reason { margin-top: 14px; }
.sch-unit {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--bg-elev);
    cursor: pointer;
    font: inherit;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.sch-unit-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 30% 30%, rgba(203,48,72,.18), transparent 55%),
        linear-gradient(145deg, #142943, #1d3557);
}
.sch-unit-body { display: grid; gap: 2px; min-width: 0; }
.sch-unit-body strong {
    color: var(--ink);
    font-size: .98rem;
}
.sch-unit-body small {
    color: var(--ink-soft);
    font-size: .82rem;
}
.sch-unit:hover {
    border-color: rgba(29, 53, 87, .22);
    transform: translateY(-1px);
}
.sch-unit.is-selected {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
    background: color-mix(in srgb, var(--brand) 8%, var(--bg-elev));
}
.sch-date-nav {
    display: inline-flex;
    gap: 6px;
}
.sch-nav-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(29, 53, 87, .12);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}
.sch-nav-btn:hover {
    background: #f8fafc;
    border-color: rgba(29, 53, 87, .22);
}
.sch-nav-btn .icon { width: 18px; height: 18px; }
.sch-dates-wrap {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
.sch-dates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 10px;
    max-width: 100%;
    padding: 2px;
}
.sch-dates:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent);
    outline-offset: 2px;
    border-radius: 16px;
}
.sch-date {
    width: 100%;
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 12px 6px 10px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--bg-elev), color-mix(in srgb, var(--ink) 3%, var(--bg-elev)));
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}
.sch-date-week {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.sch-date-day {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
    font-family: Manrope, "DM Sans", sans-serif;
}
.sch-date-month {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ink-mid);
}
.sch-date-slots {
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(29, 53, 87, .06);
    color: var(--ink-soft);
    font-size: .68rem;
    font-weight: 700;
}
.sch-date.is-weekend .sch-date-week { color: var(--brand); }
.sch-date.is-today {
    border-color: color-mix(in srgb, var(--ink-mid) 45%, transparent);
}
.sch-date:hover {
    transform: translateY(-2px);
    border-color: rgba(29, 53, 87, .24);
}
.sch-date.is-selected {
    border-color: var(--brand);
    background: linear-gradient(160deg, #1d3557 0%, #142943 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(29, 53, 87, .22);
}
.sch-date.is-selected .sch-date-week,
.sch-date.is-selected .sch-date-month,
.sch-date.is-selected .sch-date-slots {
    color: rgba(255,255,255,.82);
}
.sch-date.is-selected .sch-date-slots {
    background: rgba(255,255,255,.14);
}
.sch-times {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 10px;
}
.sch-time {
    display: grid;
    gap: 2px;
    justify-items: center;
    padding: 14px 10px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--bg-elev);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}
.sch-time strong {
    font-size: 1.05rem;
    color: var(--ink);
}
.sch-time small {
    color: var(--ink-soft);
    font-size: .75rem;
    font-weight: 600;
}
.sch-time:hover {
    transform: translateY(-1px);
    border-color: rgba(29, 53, 87, .22);
}
.sch-time.is-selected {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, var(--bg-elev));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}
.sch-time.is-selected strong { color: var(--brand); }
.sch-footer {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(29, 53, 87, .1);
    box-shadow: 0 16px 40px rgba(29, 53, 87, .12);
    backdrop-filter: blur(10px);
}
.sch-summary {
    color: var(--ink);
    font-weight: 700;
    font-size: .92rem;
}
.sch-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.sch-submit .icon { width: 18px; height: 18px; }
.sch-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.sch-empty {
    margin: 0;
    padding: 22px 18px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--ink) 5%, var(--bg-elev));
    border: 1px dashed color-mix(in srgb, var(--ink) 14%, var(--line));
    color: var(--ink-soft);
    font-weight: 600;
    text-align: center;
    line-height: 1.45;
}
.sch-dates > .sch-empty,
.sch-times > .sch-empty,
.sch-units > .sch-empty {
    grid-column: 1 / -1;
    width: 100%;
}
.sch-empty-card {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin: 0;
    padding: 28px 20px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--brand) 6%, var(--bg-elev));
    border: 1px dashed color-mix(in srgb, var(--brand) 28%, var(--line));
    text-align: center;
}
.sch-dates > .sch-empty-card,
.sch-times > .sch-empty-card,
.sch-units > .sch-empty-card {
    grid-column: 1 / -1;
    width: 100%;
}
.sch-empty-card strong {
    display: block;
    font-size: .98rem;
    color: var(--ink);
    font-weight: 800;
}
.sch-empty-card span {
    display: block;
    max-width: 36ch;
    font-size: .86rem;
    color: var(--ink-soft);
    font-weight: 500;
    line-height: 1.5;
}
[data-theme="dark"] .sch-empty-card {
    background: rgba(203, 48, 72, .1);
    border-color: rgba(203, 48, 72, .28);
}
.sch-skeleton {
    height: 72px;
    border-radius: 16px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 6%, var(--bg)), color-mix(in srgb, var(--ink) 12%, var(--bg)), color-mix(in srgb, var(--ink) 6%, var(--bg)));
    background-size: 200% 100%;
    animation: schPulse 1.2s ease-in-out infinite;
}
.sch-dates .sch-skeleton {
    height: 110px;
}
.sch-times .sch-skeleton { height: 64px; }
@keyframes schPulse {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Schedule picker dark theme */
[data-theme="dark"] .sch-panel {
    background: var(--bg-elev);
    border-color: var(--line);
    box-shadow: none;
}
[data-theme="dark"] .sch-unit,
[data-theme="dark"] .sch-date,
[data-theme="dark"] .sch-time,
[data-theme="dark"] .sch-exam,
[data-theme="dark"] .sch-nav-btn {
    background: var(--bg-elev);
    border-color: var(--line);
    color: var(--ink);
}
[data-theme="dark"] .sch-date {
    background: linear-gradient(180deg, #1a1a1a, #141414);
}
[data-theme="dark"] .sch-unit:hover,
[data-theme="dark"] .sch-date:hover,
[data-theme="dark"] .sch-time:hover,
[data-theme="dark"] .sch-nav-btn:hover {
    background: #1c1c1c;
    border-color: #3a3a3a;
}
[data-theme="dark"] .sch-unit.is-selected {
    background: color-mix(in srgb, var(--brand) 14%, var(--bg-elev));
    border-color: var(--brand);
}
[data-theme="dark"] .sch-date.is-selected {
    background: linear-gradient(160deg, #2a3348 0%, #1d3557 100%);
    color: #fff;
    border-color: #457b9d;
}
[data-theme="dark"] .sch-time.is-selected {
    background: color-mix(in srgb, var(--brand) 16%, var(--bg-elev));
}
[data-theme="dark"] .sch-date-slots {
    background: rgba(255, 255, 255, .08);
    color: var(--ink-soft);
}
[data-theme="dark"] .sch-footer {
    background: rgba(20, 20, 20, .94);
    border-color: var(--line);
}
[data-theme="dark"] .sch-step:hover { background: #1a1a1a; }
[data-theme="dark"] .sch-step span { background: rgba(255, 255, 255, .1); color: #fff; }
[data-theme="dark"] .appt-sch-panel {
    background: color-mix(in srgb, var(--bg) 40%, var(--bg-elev));
}
[data-theme="dark"] .appt-reschedule-form {
    background:
        radial-gradient(520px 160px at 0% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 60%),
        var(--bg-elev);
}
.sch-waitlist {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px dashed rgba(29, 53, 87, .18);
}
.sch-waitlist-copy h2 {
    margin: 0 0 4px;
    font-size: 1rem;
}
.sch-waitlist-copy p { margin: 0; }
@media (max-width: 720px) {
    .sch-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sch-step { font-size: .78rem; }
    .sch-panel { padding: 16px; border-radius: 18px; }
    .sch-dates { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; }
    .sch-footer { bottom: 8px; }
}

/* Appointment exam list + dialog */
.appt-exam-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.appt-exam-tile {
    width: 100%;
    display: grid;
    gap: 6px;
    text-align: left;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(29, 53, 87, .12);
    background: linear-gradient(180deg, #fff, #f8fafc);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.appt-exam-tile:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--brand) 35%, rgba(29, 53, 87, .12));
    box-shadow: 0 10px 24px rgba(29, 53, 87, .08);
}
.appt-exam-tile-top {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.appt-exam-code {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-mid);
}
.appt-exam-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(29, 53, 87, .06);
    color: var(--ink-soft);
    font-size: .72rem;
    font-weight: 700;
}
.appt-exam-tag.is-fast {
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    color: var(--brand);
}
.appt-exam-tag.is-ok {
    background: color-mix(in srgb, #1f8a4c 12%, transparent);
    color: #166534;
}
.appt-exam-tag.is-pkg {
    background: color-mix(in srgb, #0f766e 14%, transparent);
    color: #0f766e;
}
.appt-exam-tile.is-package {
    border-color: color-mix(in srgb, #0f766e 22%, rgba(29, 53, 87, .12));
    background: linear-gradient(180deg, #fff, #f3fbf9);
}
.appt-exam-tile strong {
    font-size: 1rem;
    line-height: 1.3;
}
.appt-exam-tile small {
    color: var(--ink-soft);
    font-size: .86rem;
    line-height: 1.4;
}
.appt-exam-tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    color: var(--brand);
    font-size: .84rem;
    font-weight: 700;
}
.appt-exam-tile-cta .icon { width: 16px; height: 16px; }
.appt-exam-dialog {
    border: 0;
    padding: 0;
    border-radius: 22px;
    width: min(640px, calc(100vw - 28px));
    max-height: min(88vh, 820px);
    background: transparent;
    box-shadow: 0 24px 60px rgba(20, 41, 67, .28);
}
.appt-exam-dialog::backdrop {
    background: rgba(20, 41, 67, .48);
    backdrop-filter: blur(3px);
}
.appt-exam-dialog-shell {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    max-height: min(88vh, 820px);
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
}
.appt-exam-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 12px;
    background:
        radial-gradient(circle at 100% 0%, rgba(203,48,72,.1), transparent 45%),
        linear-gradient(180deg, #fff, #fafbfc);
    border-bottom: 1px solid rgba(29, 53, 87, .08);
}
.appt-exam-dialog-kicker {
    margin: 0 0 4px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.appt-exam-dialog-head h2 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.25;
    color: var(--ink);
}
.appt-exam-dialog-lead {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: .92rem;
    line-height: 1.45;
}
.appt-exam-dialog-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(29, 53, 87, .12);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    flex-shrink: 0;
}
.appt-exam-dialog-close:hover { background: #f8fafc; }
.appt-exam-dialog-close .icon { width: 18px; height: 18px; }
.appt-exam-dialog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(29, 53, 87, .06);
}
.appt-exam-dialog-body {
    overflow: auto;
    padding: 8px 20px 18px;
    display: grid;
    gap: 14px;
}
.appt-exam-block h3 {
    margin: 0 0 6px;
    font-size: .92rem;
    color: var(--ink);
}
.appt-exam-block .rich-text {
    color: #44586e;
    font-size: .92rem;
    line-height: 1.55;
}
.appt-exam-block.is-prep {
    padding: 12px 14px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--brand) 7%, #fff);
    border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
}
.appt-exam-empty {
    margin: 8px 0;
    color: var(--ink-soft);
    font-weight: 600;
}
.appt-exam-block.is-combo {
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, #22c55e 28%, rgba(29, 53, 87, .1));
    background: color-mix(in srgb, #22c55e 6%, #fff);
}
.appt-exam-combo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: color-mix(in srgb, #22c55e 12%, #fff);
    border-bottom: 1px solid color-mix(in srgb, #22c55e 22%, transparent);
}
.appt-exam-combo-head h3 {
    margin: 0;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #1b6b3a;
}
.appt-exam-combo-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #1b6b3a;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
}
.appt-exam-combo-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: min(42vh, 360px);
    overflow: auto;
}
.appt-exam-combo-item {
    border-bottom: 1px solid color-mix(in srgb, #22c55e 18%, transparent);
}
.appt-exam-combo-item:last-child { border-bottom: 0; }
.appt-exam-combo-item > summary {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
}
.appt-exam-combo-item > summary::-webkit-details-marker { display: none; }
.appt-exam-combo-item > summary::marker { content: ''; }
.appt-exam-combo-item[open] > summary {
    background: color-mix(in srgb, #22c55e 10%, #fff);
}
.appt-exam-combo-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: color-mix(in srgb, #22c55e 16%, #fff);
    color: #1b6b3a;
    font-size: .72rem;
    font-weight: 800;
}
.appt-exam-combo-main {
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1;
}
.appt-exam-combo-main strong {
    font-size: .92rem;
    color: var(--ink);
    line-height: 1.3;
}
.appt-exam-combo-main small {
    color: var(--ink-soft);
    font-size: .78rem;
}
.appt-exam-combo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}
.appt-exam-combo-body {
    display: grid;
    gap: 10px;
    padding: 0 14px 14px 52px;
}
.appt-exam-combo-section strong {
    display: block;
    margin-bottom: 4px;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--ink-soft);
}
.appt-exam-combo-section .rich-text {
    font-size: .86rem;
    color: #44586e;
    line-height: 1.5;
}
.appt-exam-combo-section.is-prep {
    padding: 10px 12px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--brand) 7%, #fff);
    border: 1px solid color-mix(in srgb, var(--brand) 16%, transparent);
}
.appt-exam-combo-short {
    margin: 0;
    color: var(--ink-soft);
    font-size: .86rem;
}
.appt-exam-dialog-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid rgba(29, 53, 87, .08);
    background: #fafbfc;
}
@media (max-width: 640px) {
    .appt-exam-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        border-radius: 18px;
    }
    .appt-exam-dialog-shell {
        max-height: calc(100vh - 16px);
        border-radius: 18px;
    }
}

