:root {
    --bg: #070b14;
    --bg-2: #0c1220;
    --surface: rgba(16, 24, 40, 0.72);
    --surface-2: #121a2b;
    --line: rgba(212, 175, 112, 0.18);
    --line-soft: rgba(255, 255, 255, 0.08);
    --gold: #d4af70;
    --gold-2: #f3d9a4;
    --teal: #5eead4;
    --text: #eef3fb;
    --muted: #8b97ad;
    --danger: #f07178;
    --ok: #7dd3a0;
    --warn: #f0c674;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    --radius: 22px;
    --font: "Manrope", "Segoe UI", sans-serif;
    --display: "Syne", "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(212, 175, 112, 0.16), transparent 50%),
        radial-gradient(900px 500px at 100% 0%, rgba(94, 234, 212, 0.08), transparent 45%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    letter-spacing: 0.01em;
}
a { color: var(--gold-2); text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(7, 11, 20, .72);
    backdrop-filter: saturate(1.4) blur(22px);
}
.topbar, .admin-top, .portal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    position: relative;
    z-index: 60;
}
.site-chrome { position: relative; }
.topbar-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.topbar-theme-lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.topbar-login-sm { display: none; }
.nav-drawer-tools { display: none; }
.nav-burger {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.nav-burger-lines {
    display: grid;
    gap: 5px;
    width: 18px;
}
.nav-burger-lines i {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}
.site-chrome.is-nav-open .nav-burger-lines i:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-chrome.is-nav-open .nav-burger-lines i:nth-child(2) { opacity: 0; }
.site-chrome.is-nav-open .nav-burger-lines i:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(5, 8, 14, .55);
    backdrop-filter: blur(2px);
    cursor: pointer;
}
.nav-backdrop[hidden] { display: none !important; }
.nav-drawer {
    display: none;
}
.nav-drawer-head,
.nav-drawer-close {
    display: none;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}
.brand-plate {
    background: #fff;
    border-radius: 14px;
    padding: 8px 12px;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.brand-mark {
    display: grid;
    place-items: center;
}
.brand-mark img,
.brand-plate img { height: 42px; width: auto; display: block; }
.brand-mark .logo-light,
.brand-plate .logo-light { display: none; }
html[data-theme="light"] .brand-mark .logo-dark,
html[data-theme="light"] .brand-plate .logo-dark { display: none; }
html[data-theme="light"] .brand-mark .logo-light,
html[data-theme="light"] .brand-plate .logo-light { display: block; }
.nav {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.topbar > .nav-desk {
    margin-left: auto;
}
.topbar-tools .theme-toggle,
.topbar .theme-toggle {
    flex-shrink: 0;
}
.nav a, .nav button.lang {
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
}
.nav a:hover, .nav a.is-active { color: var(--text); border-color: var(--line); background: rgba(212,175,112,.08); }
.nav a.lang-toggle,
.nav a.lang-toggle:hover,
.nav a.lang-toggle:visited,
.topbar-tools a.lang-toggle,
.topbar-tools a.lang-toggle:hover,
.topbar-tools a.lang-toggle:visited {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--gold);
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 999px;
    line-height: 1;
    text-decoration: none;
}
.btn, .btn-gold, .btn-ghost, .btn-danger, .btn-ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 20px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    transition: .2s ease;
}
.btn-gold {
    border: 0;
    background: linear-gradient(180deg, #f6e0b4 0%, #d4af70 52%, #c9a45e 100%);
    color: #1a1408;
    box-shadow: 0 10px 28px rgba(184, 138, 58, .28);
    background-origin: border-box;
    background-clip: padding-box;
}
.btn-gold:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--gold-2); background: transparent; }
.btn-danger { background: rgba(240,113,120,.12); color: var(--danger); border-color: rgba(240,113,120,.3); }
.btn-ok { background: rgba(125,211,160,.12); color: var(--ok); border-color: rgba(125,211,160,.28); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
    padding: 48px 0 80px;
    min-height: calc(100vh - 110px);
}
.kicker {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: 12px;
    font-weight: 700;
}
h1, h2, .display {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 8px 0 16px;
    line-height: .95;
}
h1 { font-size: clamp(40px, 6vw, 72px); line-height: .95; overflow: visible; }
.lead { font-size: 18px; color: var(--muted); max-width: 52ch; line-height: 1.7; }
.hero-rotator {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 24px 0 8px;
    line-height: 1.05;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: visible;
}
.hero-rotator-title { display: block; line-height: 1.05; }
.typed {
    color: var(--gold-2);
    display: block;
    line-height: 1.1;
    min-height: 1.15em;
    overflow: visible;
    transition: opacity .22s ease, transform .28s ease;
}
.typed.is-swap { opacity: 0; transform: translateY(6px); }
.typed.is-float { opacity: 0; transform: translateY(18px); }
.typed.is-in { animation: typedFloatIn .45s ease forwards; }
@keyframes typedFloatIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-card, .glass, .card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.hero-card { padding: 28px; }
.grid-3, .grid-2, .kpi-grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.kpi-grid { grid-template-columns: repeat(4, 1fr); }
.feature, .kpi, .card { padding: 22px; }
.feature h3, .kpi h3 { margin: 0 0 8px; font-size: 18px; }
.kpi .num { font-family: var(--display); font-size: 36px; color: var(--gold-2); }
.muted { color: var(--muted); }
.page-hero {
    padding: 48px 0 24px;
}
.page-hero h1 { font-size: 42px; }
.footer, .site-footer {
    border-top: 1px solid var(--line-soft);
    margin-top: 80px;
    padding: 48px 0 28px;
    color: var(--muted);
    font-size: 14px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.12));
}
.site-footer .brand-mark img { height: 34px; }
.site-footer .cookie-pill { font-size: 12px; padding: 6px 12px; }
.site-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr .85fr .7fr;
    gap: 36px;
    padding-bottom: 32px;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-nav strong {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--text); }
.site-footer {
    position: relative;
}
.site-footer-copy {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line-soft);
    padding-top: 18px;
    align-items: flex-start;
    font-size: 13px;
}
.copyright-line { color: var(--muted); font-size: 11px; line-height: 1.45; }
.copyright-line a { color: var(--gold-2); }
.copyright-line p, .copyright-line b { margin: 0; font-weight: 500; }
/* Desktop: Script stays on same line; mobile breaks via media query */
.copyright-line .copyright-br { display: none; }
.footer-a11y-row {
    display: block;
}
.footer-a11y-row .a11y-root {
    /* Desktop: FAB floats fixed; keep root out of footer flow */
    display: block;
    width: 0;
    height: 0;
    overflow: visible;
}
.form-grid { display: grid; gap: 14px; }
[data-tabs-target="panel"][hidden],
.premium-book-body[hidden],
.sf-section-card[hidden] {
    display: none !important;
}
label span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number], input[type=url], input[type=date], input[type=datetime-local], input[type=time], input[type=search], select, textarea {
    width: 100%;
    background: rgba(7,11,20,.65);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    padding: 12px 14px;
    outline: none;
    color: var(--text);
    font: inherit;
    color-scheme: dark;
}
html[data-theme="light"] input[type=text],
html[data-theme="light"] input[type=password],
html[data-theme="light"] input[type=email],
html[data-theme="light"] input[type=tel],
html[data-theme="light"] input[type=number],
html[data-theme="light"] input[type=url],
html[data-theme="light"] input[type=date],
html[data-theme="light"] input[type=datetime-local],
html[data-theme="light"] input[type=time],
html[data-theme="light"] input[type=search],
html[data-theme="light"] select,
html[data-theme="light"] textarea {
    background: #fff;
    color: var(--text);
    border-color: rgba(40, 28, 10, 0.12);
    color-scheme: light;
}
input:focus, select:focus, textarea:focus, input[type=search]:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,112,.12); }
.flash, .alert {
    padding: 12px 16px;
    border-radius: 14px;
    margin: 12px 0;
}
.flash-success, .alert-ok { background: rgba(125,211,160,.12); color: var(--ok); }
.flash-error, .alert-error { background: rgba(240,113,120,.12); color: var(--danger); }
.dropzone {
    border: 1.5px dashed rgba(212,175,112,.45);
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    background: rgba(212,175,112,.04);
    transition: .2s ease;
    overflow: hidden;
}
.dropzone.is-over, .dropzone.has-file { border-color: var(--gold); background: rgba(212,175,112,.1); }
.dropzone img {
    display: block;
    max-width: 100%;
    max-height: 140px;
    width: auto;
    height: auto;
    margin: 12px auto 0;
    object-fit: contain;
    border-radius: 12px;
}
.dropzone input { display: none; }
.stored-file { display: grid; gap: 6px; margin-top: 6px; }
.stored-file span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.stored-file code {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    line-height: 1.4;
    word-break: break-all;
}
html[data-theme="dark"] .stored-file code { background: rgba(7,11,20,.65); }
.media-drop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.table-wrap { overflow: auto; }
table.data {
    width: 100%;
    border-collapse: collapse;
}
table.data th, table.data td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line-soft);
    white-space: nowrap;
}
body.admin table.data th,
body.admin table.data td {
    padding: 14px 12px;
    vertical-align: middle;
    line-height: 1.35;
    white-space: nowrap;
    border-bottom: 1px solid var(--line-soft);
}
body.admin table.data td.thumb {
    width: 112px;
    max-width: 112px;
    overflow: hidden;
}
body.admin table.data td strong {
    display: inline;
    font-weight: 700;
}
body.admin table.data td .muted {
    font-size: 12px;
}
body.admin table.data td.actions {
    display: table-cell;
    text-align: right;
}
body.admin .table-wrap.card {
    padding: 0;
    overflow: hidden;
}
body.admin .table-wrap.card > :not(table) {
    margin: 0;
    padding: 16px 18px 0;
}
body.admin .table-wrap.card > :not(table) + :not(table) {
    padding-top: 6px;
    padding-bottom: 12px;
}
body.admin table.data th:first-child,
body.admin table.data td:first-child { padding-left: 18px; }
body.admin table.data th:last-child,
body.admin table.data td:last-child { padding-right: 18px; }
body.admin table.data tbody tr:last-child td { border-bottom: 0; }
html[data-theme="light"] .badge-live,
html[data-theme="light"] .sf-pill-active,
html[data-theme="light"] .sf-pill-paid,
html[data-theme="light"] .sf-pill-live {
    background: #157a45;
    color: #fff;
    border-color: #157a45;
}
html[data-theme="light"] .badge-scheduled {
    background: #b86a08;
    color: #fff;
}
.plan-badges { display: inline-flex; gap: 6px; align-items: center; }
.plan-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1px solid rgba(176, 132, 58, .4);
    background: rgba(212, 175, 112, .2);
    color: #6a4a12;
}
.plan-badge.is-free {
    background: rgba(40, 28, 10, .06);
    border-color: rgba(40, 28, 10, .14);
    color: #4a433b;
}
.plan-badge.is-interval {
    background: #fff;
    font-weight: 700;
}
html[data-theme="dark"] .plan-badge { color: #f3d9a4; background: rgba(212, 175, 112, .14); }
html[data-theme="dark"] .plan-badge.is-free { color: #d5dcea; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .plan-badge.is-interval { background: transparent; }
body.admin table.data .actions form {
    display: inline-flex;
    margin: 0;
}
body.admin table.data .actions .btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}
table.data th { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}
.badge-live { background: rgba(125,211,160,.15); color: var(--ok); }
.badge-paused { background: rgba(240,113,120,.12); color: var(--danger); }
.badge-scheduled { background: rgba(240,198,116,.12); color: var(--warn); }
.layout-admin, .layout-portal {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}
.sidebar {
    padding: 22px 16px;
    border-right: 1px solid var(--line-soft);
    background: rgba(8,12,22,.75);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
}
.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 4px;
}
.sidebar a:hover, .sidebar a.is-active { background: rgba(212,175,112,.1); color: var(--text); }
.sidebar .group-label {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin: 18px 12px 8px;
}
.content { padding: 28px 32px 60px; }
.banner-thumb {
    display: block;
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
}
body.admin table.data .banner-thumb {
    width: 92px;
    height: 40px;
    max-width: 92px;
    max-height: 40px;
    object-position: left center;
    border-radius: 8px;
    padding: 2px;
}
.chart-box { height: 280px; }
.embed textarea { font-family: ui-monospace, monospace; font-size: 12px; min-height: 90px; }
.cookie-root { z-index: 80; }
.cookie-bar {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 80;
    padding: 22px 24px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    max-width: 1080px;
    margin: 0 auto;
}
.cookie-bar-copy { max-width: 62ch; }
.cookie-bar-copy p, .cookie-modal p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; font-size: 14px; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }
.cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(4, 8, 16, .62);
    display: grid;
    place-items: center;
    padding: 24px;
}
.cookie-overlay[hidden], .cookie-bar[hidden], .cookie-root[hidden] { display: none !important; }
.cookie-modal {
    width: min(560px, 100%);
    background: var(--surface-2);
    color: var(--text);
    border-radius: 24px;
    padding: 28px 28px 22px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    position: relative;
    max-height: min(88vh, 760px);
    overflow: auto;
}
.cookie-modal h2 { font-size: 28px; margin-bottom: 8px; }
.cookie-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}
.cookie-cat {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--line-soft);
}
.cookie-cat p { margin: 4px 0 0; font-size: 13px; }
.cookie-lock { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.cookie-cat input[type=checkbox] {
    width: 42px;
    height: 24px;
    appearance: none;
    background: rgba(139,151,173,.28);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}
.cookie-cat input[type=checkbox]::after {
    content: "";
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: .2s ease;
}
.cookie-cat input[type=checkbox]:checked { background: var(--gold); }
.cookie-cat input[type=checkbox]:checked::after { left: 21px; }
.cookie-actions-modal { margin-top: 18px; justify-content: flex-end; }
.example-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    min-height: 88px;
    resize: vertical;
}
.legal-body { line-height: 1.8; color: #d5dcea; }
.legal-body a { text-decoration: underline; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.status-dot.live { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.status-dot.paused { background: var(--danger); }
.status-dot.scheduled { background: var(--warn); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.login-wrap { width: min(460px, calc(100% - 32px)); margin: 8vh auto 40px; padding: 32px; }
.preview-stage {
    background:
        linear-gradient(45deg, #101826 25%, transparent 25%) -8px 0 / 16px 16px,
        linear-gradient(-45deg, #101826 25%, transparent 25%) -8px 0 / 16px 16px,
        #0b1220;
    border-radius: 16px;
    padding: 18px;
    display: grid;
    place-items: center;
    min-height: 140px;
}
iframe.banner-frame { border: 0; background: transparent; max-width: 100%; }

.theme-toggle {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--gold);
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 999px;
    cursor: pointer;
}
.theme-toggle i[hidden] { display: none; }
.mega {
    position: relative;
}
.mega-trigger {
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.mega.is-open .mega-trigger,
.mega-trigger:hover {
    color: var(--text);
    border-color: var(--line);
    background: rgba(212,175,112,.08);
}
.mega-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    left: auto;
    transform: none;
    min-width: min(760px, calc(100vw - 48px));
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 8px 28px;
    padding: 18px 24px 22px;
    z-index: 70;
    background: var(--surface-2);
    border: 1px solid var(--line);
}
.mega-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
}
.mega-panel[hidden] { display: none !important; }
.mega-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mega-col strong {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.mega-col a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--text);
    padding: 8px 10px;
    border-radius: 12px;
}
.mega-col a:hover { background: rgba(212,175,112,.1); }
.mega-col small { color: var(--muted); font-size: 12px; }
.cookie-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    width: fit-content;
}
.cookie-pill:hover { border-color: var(--gold); }
.banner-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding-bottom: 48px;
}
.format-studio { padding-bottom: 80px; }
.format-search {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.format-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.format-search-field i { color: var(--gold); }
.format-search-field input {
    width: 100%;
    border: 0;
    background: transparent;
    outline: none;
    padding: 8px 0;
}
.format-status { margin: 0 4px 18px; }
.format-results { display: grid; gap: 22px; }
.format-card {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 22px;
    padding: 22px;
    align-items: start;
}
.format-card h3 { margin: 6px 0 8px; }
.format-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.format-tags span {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 8px;
    color: var(--muted);
}
.format-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}
.format-previews iframe {
    border: 0;
    display: block;
    max-width: 100%;
    background: transparent;
}
.theme-studio {
    border-radius: 22px;
    padding: 22px;
    border: 1px solid var(--line);
}
.theme-studio h3 { margin: 6px 0 16px; }
.theme-studio-dark {
    background: #0c1220;
    color: #eef3fb;
    border-color: rgba(212, 175, 112, .2);
}
.theme-studio-light {
    background: #fffdf8;
    color: #1c1710;
    border-color: rgba(176, 132, 58, .22);
}
.theme-studio-light .kicker { color: #b8893a; }
.theme-studio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-start;
}
.theme-unit {
    display: grid;
    gap: 8px;
}
.theme-unit iframe {
    border: 0;
    display: block;
    max-width: 100%;
    background: transparent;
}
.placement-card {
    border-radius: 22px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
}
.placement-wide { grid-column: 1 / -1; }
.placement-pair, .placement-stack {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 16px;
    align-items: flex-start;
}
.placement-unit, .format-unit {
    display: grid;
    gap: 8px;
    margin: 0;
}
.placement-unit figcaption, .format-unit figcaption {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}
.placement-card iframe {
    border: 0;
    display: block;
    background: transparent;
    max-width: 100%;
}
.consent-placeholder {
    border: 1px dashed var(--line);
    border-radius: 16px;
    padding: 18px;
    background: var(--surface);
    margin-top: 12px;
}
.consent-embed iframe {
    width: 100%;
    min-height: 220px;
    border: 0;
    border-radius: 16px;
    margin-top: 12px;
}
.mega-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.mega-admin-col {
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 12px;
    background: rgba(212,175,112,.04);
}
.mega-admin-item {
    border: 1px solid rgba(212,175,112,.22);
    border-radius: 14px;
    padding: 12px 12px 10px;
    display: grid;
    gap: 8px;
    background: var(--surface, #fff);
    box-shadow: 0 4px 14px rgba(40, 28, 10, .04);
}
.mega-admin-item + .mega-admin-item {
    margin-top: 2px;
}
html[data-theme="dark"] .mega-admin-col {
    background: rgba(255,255,255,.03);
}
html[data-theme="dark"] .mega-admin-item {
    background: rgba(255,255,255,.04);
    border-color: rgba(212,175,112,.18);
}
.mega-admin-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}
.mega-admin-actions .btn-gold {
    width: auto;
    min-width: 140px;
    justify-self: end;
}
label.inline { display: flex; gap: 8px; align-items: center; }
.banner-showcase {
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    gap: 22px;
    align-items: stretch;
    padding-bottom: 80px;
}
.banner-frame-wrap {
    border-radius: 18px;
    overflow: hidden;
    width: 160px;
    min-height: 600px;
    border: 1px solid var(--line-soft);
    background: var(--surface);
}
.banner-frame-wrap iframe {
    width: 160px;
    height: 600px;
    border: 0;
    display: block;
}
.placement-mock {
    border-radius: 22px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
}
.admin-gate {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background:
        radial-gradient(900px 500px at 8% 0%, rgba(212,175,112,.22), transparent 50%),
        radial-gradient(700px 420px at 100% 100%, rgba(94,234,212,.12), transparent 46%),
        linear-gradient(180deg, var(--bg), var(--bg-2));
}
.admin-gate-card {
    width: min(440px, 100%);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
}
.admin-gate-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.admin-gate .brand-plate { margin-bottom: 18px; }
.error-page { min-height: 100vh; }
.error-stage {
    min-height: calc(100vh - 110px);
    display: grid;
    place-items: center;
    padding: 24px 16px 80px;
}
.error-card {
    width: min(640px, 100%);
    padding: 40px 36px;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.error-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.error-code {
    font-family: var(--display);
    font-size: clamp(72px, 14vw, 140px);
    line-height: .85;
    letter-spacing: -.06em;
    color: var(--gold);
    margin: 12px 0 8px;
}

html[data-theme="light"] {
    --bg: #f6f1e8;
    --bg-2: #fffdf8;
    --surface: rgba(255, 252, 247, 0.86);
    --surface-2: #ffffff;
    --line: rgba(176, 132, 58, 0.28);
    --line-soft: rgba(40, 28, 10, 0.08);
    --gold: #b8893a;
    --gold-2: #8a6424;
    --teal: #0f766e;
    --text: #1c1710;
    --muted: #6d6458;
    --shadow: 0 24px 60px rgba(80, 55, 20, 0.08);
}
html[data-theme="light"] body {
    background:
        radial-gradient(1100px 520px at 8% -10%, rgba(212, 175, 112, 0.22), transparent 52%),
        radial-gradient(800px 480px at 100% 0%, rgba(15, 118, 110, 0.08), transparent 46%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
html[data-theme="light"] input[type=text],
html[data-theme="light"] input[type=password],
html[data-theme="light"] input[type=email],
html[data-theme="light"] input[type=tel],
html[data-theme="light"] input[type=number],
html[data-theme="light"] input[type=url],
html[data-theme="light"] input[type=date],
html[data-theme="light"] input[type=datetime-local],
html[data-theme="light"] input[type=time],
html[data-theme="light"] select,
html[data-theme="light"] textarea {
    background: #fff;
    color: var(--text);
    border-color: rgba(40, 28, 10, 0.12);
    color-scheme: light;
}
html[data-theme="light"] .sidebar {
    background: rgba(255, 252, 247, 0.92);
}
html[data-theme="light"] .legal-body { color: #3b3328; }
html[data-theme="light"] .preview-stage {
    background:
        linear-gradient(45deg, #efe8dc 25%, transparent 25%) -8px 0 / 16px 16px,
        linear-gradient(-45deg, #efe8dc 25%, transparent 25%) -8px 0 / 16px 16px,
        #f7f1e6;
}
html[data-theme="light"] .site-header { border-bottom-color: rgba(176, 132, 58, 0.22); }
html[data-theme="light"] .cookie-overlay { background: rgba(28, 23, 16, .28); }
html[data-theme="light"] .site-footer {
    background: #e4d7c6;
    border-top-color: rgba(90, 64, 28, .14);
}
.layout-admin { grid-template-columns: 272px 1fr; }
.admin-rail .brand { margin-bottom: 18px; }
.admin-rail-kicker {
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 12px 10px;
}
.admin-rail i { width: 18px; text-align: center; color: var(--gold-2); }
.admin-rail-foot { margin: 22px 12px 8px; }
.admin-stage { min-width: 0; }
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 32px 0;
}
.admin-topbar-meta { display: flex; gap: 12px; align-items: center; }
.admin-launch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 22px 0;
}
.admin-launch-card {
    padding: 18px;
    display: grid;
    gap: 6px;
    color: var(--text);
    border: 1px solid var(--line-soft);
}
.admin-launch-card i { color: var(--gold); font-size: 18px; }
.admin-launch-card span { color: var(--muted); font-size: 13px; }
.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 22px;
}
.media-tile { padding: 10px; margin: 0; }
.media-tile img { height: 110px; width: 100%; object-fit: contain; background: rgba(255,255,255,.04); border-radius: 12px; }
.media-tile figcaption { display: grid; gap: 6px; margin-top: 8px; font-size: 12px; }
.media-url { font-size: 10px; word-break: break-all; color: var(--muted); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--muted);
    font-size: 13px;
}
.chip.is-on, .chip:has(input:checked) { border-color: var(--gold); color: var(--text); background: rgba(212,175,112,.1); }
.demo-preview { border: 0; max-width: 100%; max-height: 280px; background: transparent; margin-top: 12px; border-radius: 12px; }
.impersonate-bar {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(212,175,112,.2), rgba(240,113,120,.16));
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.maintenance-count {
    margin-top: 28px;
    padding: 28px;
    font-family: var(--display);
    font-size: clamp(40px, 8vw, 88px);
    letter-spacing: -.04em;
    width: fit-content;
}
.maintenance-hero { min-height: 70vh; display: grid; align-content: center; }

/* Admin maintenance calendar */
.maint-settings .sf-switch { margin-bottom: 12px; }
.maint-calendar { margin-top: 16px; gap: 14px; }
.maint-cal-field span {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text);
}
.maint-cal-field span i { color: var(--gold); }
.maint-cal-wrap {
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(212,175,112,.35);
    background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(212,175,112,.06));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 24px rgba(0,0,0,.08);
    overflow: hidden;
}
html[data-theme="light"] .maint-cal-wrap {
    background: linear-gradient(160deg, #fff, #faf6ef);
    border-color: rgba(212,175,112,.4);
    box-shadow: 0 8px 20px rgba(40, 28, 10, .06);
}
.maint-cal-input {
    width: 100%;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 16px !important;
    padding: 14px 16px !important;
    min-height: 52px;
    font-weight: 600;
    letter-spacing: .02em;
    color-scheme: dark;
}
html[data-theme="light"] .maint-cal-input { color-scheme: light; }
.maint-cal-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: .85;
    filter: invert(.7) sepia(1) saturate(3) hue-rotate(5deg);
    scale: 1.15;
    padding: 4px;
}
html[data-theme="light"] .maint-cal-input::-webkit-calendar-picker-indicator {
    filter: none;
    opacity: .7;
}

/* Premium public maintenance page */
body.maintenance-page {
    margin: 0;
    min-height: 100vh;
}
.maint-premium {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
    overflow: hidden;
    background:
        radial-gradient(900px 480px at 12% -10%, rgba(212,175,112,.28), transparent 55%),
        radial-gradient(700px 420px at 100% 10%, rgba(56, 120, 180, .18), transparent 50%),
        linear-gradient(165deg, #070b14 0%, #101826 48%, #0a0f18 100%);
    color: #f5efe4;
}
.maint-premium-glow {
    position: absolute;
    inset: auto auto 8% 50%;
    width: 520px;
    height: 520px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,112,.22), transparent 68%);
    pointer-events: none;
}
.maint-premium-inner {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    text-align: center;
}
.maint-premium-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 28px;
}
.maint-premium-brand {
    display: inline-flex;
    justify-content: center;
    margin-bottom: 0;
}
.maint-premium-brand .logo {
    height: 48px;
    width: auto;
    display: block;
}
.maint-lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(212,175,112,.38);
    background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(212,175,112,.08));
    color: #f0c674;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    box-shadow: 0 10px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06);
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.maint-lang i {
    font-size: 13px;
    opacity: .9;
}
.maint-lang:hover {
    border-color: rgba(240,198,116,.7);
    background: linear-gradient(160deg, rgba(240,198,116,.16), rgba(212,175,112,.1));
    transform: translateY(-1px);
    color: #f6e0b4;
}
.maint-premium-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #d4af70;
    font-weight: 700;
}
.maint-premium h1 {
    margin: 0 0 18px;
    font-family: var(--display);
    font-size: clamp(36px, 7vw, 64px);
    line-height: 1.05;
    color: #fff;
}
.maint-premium-copy {
    color: rgba(245,239,228,.78);
    font-size: 17px;
    line-height: 1.65;
    max-width: 48ch;
    margin: 0 auto 28px;
}
.maint-premium-copy p { margin: 0 0 10px; }
.maint-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 auto 16px;
    max-width: 520px;
}
.maint-count-tile {
    border-radius: 18px;
    border: 1px solid rgba(212,175,112,.32);
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(12px);
    padding: 16px 10px;
    box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.maint-count-tile strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(28px, 5vw, 40px);
    color: #f0c674;
    line-height: 1;
}
.maint-count-tile span {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(245,239,228,.55);
}
.maint-premium-until {
    margin: 0;
    color: rgba(245,239,228,.55);
    font-size: 13px;
}
@media (max-width: 560px) {
    .maint-countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
table.data td.actions {
    display: table-cell;
    white-space: nowrap;
    vertical-align: middle;
}
table.data td.actions > a,
table.data td.actions > button,
table.data td.actions > form {
    display: inline-flex;
    vertical-align: middle;
    margin-right: 6px;
}
label.inline { display: flex; gap: 8px; align-items: center; }

@media (max-width: 980px) {
        .hero, .grid-3, .kpi-grid, .layout-admin, .layout-portal, .grid-2, .banner-showcase, .banner-gallery, .site-footer-grid, .media-drop-grid, .mega-panel, .mega-admin-grid, .format-card, .admin-launch {
        grid-template-columns: 1fr;
    }
    .mega-panel { min-width: min(420px, calc(100vw - 32px)); right: auto; left: 0; }
    .format-search { flex-direction: column; align-items: stretch; }
    .format-intro-actions { grid-template-columns: 1fr; }
    .sidebar { position: relative; height: auto; }
    h1 { font-size: 40px; }
    .banner-frame-wrap { min-height: 420px; }
    .cookie-bar { flex-direction: column; align-items: stretch; }
    .cookie-actions { justify-content: stretch; }
    .cookie-actions .btn-ghost, .cookie-actions .btn-gold { flex: 1; }
}

/* ScriptFabrik-style admin chrome */
body.admin .layout-admin {
    grid-template-columns: 248px 1fr;
    min-height: 100vh;
}
body.admin .admin-rail,
html[data-theme="light"] body.admin .admin-rail,
html[data-theme="dark"] body.admin .admin-rail,
html[data-theme="light"] body.admin .sidebar,
html[data-theme="dark"] body.admin .sidebar {
    background: #070b14 !important;
    border-right: 1px solid rgba(212, 175, 112, .16);
    color: #f4efe4;
    display: flex;
    flex-direction: column;
    padding: 16px 12px 12px;
}
body.admin .admin-rail .brand,
body.admin .admin-rail .brand-mark { color: #fff; }
body.admin .admin-rail .logo-light { display: none !important; }
body.admin .admin-rail .logo-dark { display: block !important; }
body.admin .admin-rail .brand-mark img { height: 34px; filter: none; }
body.admin .admin-rail-brand { margin-bottom: 18px; padding: 6px 10px; }
.sf-nav { display: grid; gap: 2px; }
.sf-nav-link, .sf-nav-group summary, .sf-nav-sub a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f3ead8 !important;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}
.sf-nav-link i, .sf-nav-group summary i { width: 18px; text-align: center; color: #f3d9a4 !important; }
.sf-nav-link:hover, .sf-nav-group summary:hover, .sf-nav-sub a:hover,
.sf-nav-link.is-active, .sf-nav-sub a.is-active {
    background: rgba(212,175,112,.16);
    color: #fff !important;
}
.sf-nav-group { margin: 0; }
.sf-nav-group summary {
    list-style: none;
    cursor: pointer;
}
.sf-nav-group summary::-webkit-details-marker { display: none; }
.sf-nav-group .chev { margin-left: auto; font-size: 10px; transition: transform .2s; color: #f3d9a4; }
.sf-nav-group[open] > summary .chev { transform: rotate(90deg); }
.sf-nav-sub { display: grid; padding: 2px 0 8px 12px; gap: 2px; }
.sf-nav-sub a { padding: 7px 12px; font-weight: 500; color: #efe6d4 !important; }
.admin-rail-end { margin-top: auto; display: grid; gap: 10px; padding-top: 18px; }
.sf-version {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(212,175,112,.08);
    border: 1px solid rgba(212,175,112,.18);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 11px;
    letter-spacing: .12em;
    color: #d4af70;
}
.sf-version strong { color: #f3d9a4; letter-spacing: 0; font-size: 13px; }
.sf-user-card {
    display: flex;
    gap: 10px;
    align-items: center;
    background: linear-gradient(180deg, rgba(243,217,164,.16), rgba(212,175,112,.08));
    border: 1px solid rgba(212,175,112,.28);
    border-radius: 16px;
    padding: 10px 12px;
    text-decoration: none;
}
a.sf-user-card.is-link { color: inherit; }
a.sf-user-card.is-link:hover {
    border-color: rgba(243,217,164,.55);
    background: linear-gradient(180deg, rgba(243,217,164,.22), rgba(212,175,112,.12));
}
.sf-user-card .chev { margin-left: auto; color: #f3d9a4; font-size: 11px; }
.sf-user-card strong { display: block; color: #fff; font-size: 14px; }
.sf-user-card small { color: #d4af70; letter-spacing: .12em; font-size: 10px; }
.sf-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(180deg, #f3d9a4, #d4af70);
    color: #1a1408; font-weight: 700;
    flex: 0 0 auto;
}
.sf-avatar.sm { width: 28px; height: 28px; font-size: 12px; }

body.admin .admin-stage { min-width: 0; }
body.admin .admin-topbar {
    padding: 14px 22px 0;
    align-items: center;
    gap: 16px;
}
.sf-search {
    position: relative;
    flex: 1;
    max-width: 560px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 16px;
    height: 42px;
    color: var(--muted);
}
.sf-search input {
    border: 0; background: transparent; width: 100%; outline: none; color: var(--text);
}
.sf-search-panel {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 8px; z-index: 40; display: grid; gap: 2px;
}
.sf-search-panel a {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 10px 12px; border-radius: 10px; color: var(--text);
}
.sf-search-panel a:hover { background: rgba(212,175,112,.1); }
.sf-search-panel span { color: var(--muted); font-size: 12px; }
.sf-search-panel[hidden], .sf-notify-panel[hidden], .sf-user-panel[hidden],
[data-admin-search-target="item"][hidden], [data-admin-search-target="empty"][hidden] {
    display: none !important;
}
.sf-status {
    display: inline-flex; align-items: center; gap: 6px;
    border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700;
}
.sf-status-ok { background: #e8f6ee; color: #1f7a4d; }
.sf-status-warn { background: #fdece6; color: #b42318; }
.sf-status-plan {
    background: #1c1710;
    color: #f3e6c8;
    border: 1px solid rgba(61, 42, 10, .4);
}
html[data-theme="dark"] .sf-status-plan {
    background: rgba(212, 175, 112, .16);
    color: #f3d9a4;
    border: 1px solid rgba(212, 175, 112, .35);
}
html[data-theme="dark"] .sf-status-ok {
    background: rgba(212, 175, 112, .14);
    color: #f3d9a4;
    border: 1px solid rgba(212, 175, 112, .28);
}
html[data-theme="dark"] .sf-status-warn {
    background: rgba(180, 70, 50, .18);
    color: #f0b4a8;
    border: 1px solid rgba(220, 100, 80, .28);
}
.sf-icon-btn {
    position: relative; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
}
.sf-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: #e24b4b; color: #fff;
    font-size: 11px; font-weight: 800; display: grid; place-items: center;
}
.sf-notify, .sf-user-menu { position: relative; }
.sf-notify-panel, .sf-user-panel {
    position: absolute; top: calc(100% + 10px); right: 0; width: 360px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow);
    z-index: 50; overflow: hidden;
    max-height: min(70vh, 540px); overflow-y: auto;
}
.sf-notify-panel header {
    display: flex; justify-content: space-between; padding: 14px 16px 8px; color: var(--muted); font-size: 12px;
}
.sf-notify-tablist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 0 12px 8px;
}
.sf-notify-tablist button {
    border: 1px solid var(--line-soft);
    background: rgba(212,175,112,.06);
    color: var(--muted);
    border-radius: 999px;
    padding: 7px 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.sf-notify-tablist button.is-active {
    background: rgba(212,175,112,.2);
    color: var(--text);
    border-color: rgba(212,175,112,.45);
}
.sf-notify-tablist em {
    font-style: normal;
    margin-left: 4px;
    opacity: .75;
}
.sf-notify-item {
    display: flex; gap: 10px; padding: 12px 16px; color: var(--text); border-top: 1px solid var(--line-soft);
}
.sf-notify-item i { color: var(--gold); margin-top: 3px; }
.sf-notify-item.tone-alert i { color: #c2410c; }
.sf-notify-item.tone-warn i { color: #b45309; }
.sf-notify-item strong, .sf-notify-item span { display: block; }
.sf-notify-item span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.sf-notify-item:hover { background: rgba(212,175,112,.08); }
.sf-notify-item.is-read {
    opacity: .62;
}
.sf-notify-item.is-read strong::after {
    content: ' · gelesen';
    font-weight: 600;
    font-size: 11px;
    color: var(--muted);
}
.sf-notify-empty { padding: 16px; }
.sf-notify-foot { display: block; text-align: center; padding: 12px; color: var(--gold-2); font-weight: 700; border-top: 1px solid var(--line-soft); }
.sf-user-chip {
    display: flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 12px 0 6px;
    border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
    color: var(--text); font-weight: 700; cursor: pointer;
}
.sf-user-chip .fa-chevron-down { font-size: 10px; color: var(--muted); }
.sf-user-head { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.sf-user-head strong, .sf-user-head small { display: block; color: var(--text); }
.sf-user-head small { color: var(--muted); font-weight: 500; }
.sf-user-panel a, .sf-user-panel summary, .sf-logout {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 11px 16px; color: var(--text); background: none; border: 0;
    font-weight: 600; cursor: pointer; text-align: left;
}
.sf-user-panel a:hover, .sf-user-panel summary:hover, .sf-theme-choices button:hover { background: rgba(212,175,112,.1); }
.sf-theme-group summary { list-style: none; }
.sf-theme-group summary::-webkit-details-marker { display: none; }
.sf-theme-group .chev { margin-left: auto; font-size: 10px; }
.sf-theme-choices { display: grid; padding: 0 10px 8px; gap: 4px; }
.sf-theme-choices button {
    border: 0; background: rgba(212,175,112,.08); border-radius: 10px; padding: 8px 12px;
    text-align: left; color: var(--text); font-weight: 600; cursor: pointer;
}
.sf-theme-choices button.is-active { background: rgba(212,175,112,.2); color: var(--gold-2); outline: 1px solid var(--gold); }
.sf-logout { color: #d92d20 !important; }

body.admin .content { padding: 18px 22px 48px; }
body.admin .content > h1 {
    font-size: 28px; line-height: 1.15; margin: 0 0 14px;
}
.theme-toggle-admin { display: grid; place-items: center; }
.theme-toggle-admin i[hidden] { display: none !important; }

.sf-alert {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    background: #8a4b12; color: #fff; border-radius: 14px; padding: 12px 16px; margin-bottom: 18px;
}
.sf-alert p { margin: 4px 0 0; font-size: 13px; opacity: .9; }
.sf-alert.tone-info { background: #1d4f91; }
.sf-alert.tone-warn { background: #9a3412; }
.sf-alert-btn { color: #fff !important; border-color: rgba(255,255,255,.35); background: transparent; }
.sf-alert-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.sf-maint-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px 22px; font-size: 13px;
    border-bottom: 1px solid rgba(180, 83, 9, .25);
    background: linear-gradient(90deg, #fff7ed, #ffedd5);
    color: #9a3412;
}
.sf-maint-bar.is-active { background: linear-gradient(90deg, #fef2f2, #fee2e2); color: #991b1b; }
.sf-maint-bar strong { margin-right: 8px; }
.sf-maint-bar a { font-weight: 700; color: inherit; text-decoration: underline; }
html[data-theme="dark"] .sf-maint-bar {
    background: linear-gradient(90deg, rgba(154,52,18,.35), rgba(154,52,18,.15));
    color: #fdba74; border-color: rgba(253,186,116,.2);
}
.sf-admin-preview-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
    padding: 10px 18px; font-size: 13px;
    background: #1c1917; color: #fafaf9;
}
.sf-admin-preview-bar a { color: #f0c674; font-weight: 700; margin-left: auto; }
.sf-notify-mark {
    width: 100%; border: 0; background: transparent; cursor: pointer; font: inherit;
}
.sf-status-card.is-warn { border-color: rgba(185, 28, 28, .35); }
.sf-dash { display: flex; flex-direction: column; gap: 18px; }
.sf-hello {
    padding: 22px 26px;
    border-radius: 22px;
    border: 1px solid var(--line-soft);
    background: var(--surface);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 46%);
    gap: 22px;
    align-items: stretch;
}
.sf-hello-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.sf-hello-aside .sf-status-card { margin: 0; min-width: 0; }
.sf-hello h1 { font-size: 34px !important; line-height: 1.15 !important; margin: 6px 0 8px !important; }
.sf-hello-meta { color: var(--muted); font-size: 13px; margin: 0; display: flex; gap: 8px; align-items: center; }
.sf-ver-pill { background: rgba(212,175,112,.16); color: var(--gold-2); border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 800; }
.sf-hello-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.sf-dash-body { display: grid; grid-template-columns: 1fr 280px; gap: 22px; align-items: start; }
.sf-status-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; }
.sf-status-card {
    background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; padding: 16px 18px;
    display: grid; gap: 6px;
}
.sf-status-card.is-ok { background: rgba(125,211,160,.1); border-color: rgba(125,211,160,.28); }
.sf-status-card.is-info { background: rgba(94,234,212,.08); border-color: rgba(94,234,212,.22); }
.sf-status-card .kicker { margin: 0; }
.sf-status-card p, .sf-status-card a { margin: 0; font-size: 13px; }
.sf-status-num { font-family: var(--display); font-size: 42px; line-height: 1; color: var(--text); }
.sf-kpi-row {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px;
}
.sf-kpi {
    background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; padding: 14px 12px;
    color: var(--text); display: grid; gap: 2px; min-width: 0;
}
.sf-kpi strong { font-family: var(--display); font-size: 28px; line-height: 1; color: var(--gold-2); }
.sf-kpi span { font-size: 12px; font-weight: 700; }
.sf-kpi small { color: var(--muted); font-size: 11px; }
.sf-section-title { font-size: 16px; margin: 22px 0 12px; color: var(--text); }
.sf-work { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sf-work a {
    background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px;
    padding: 14px; display: flex; gap: 12px; align-items: center; color: var(--text);
}
.sf-work a:hover { border-color: var(--gold); }
.sf-work i {
    width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: 0 0 auto;
}
.sf-work strong, .sf-work span { display: block; }
.sf-work span { color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 2px; }
.tone-blue { background: #3b82f6; } .tone-teal { background: #14b8a6; } .tone-pink { background: #f472b6; }
.tone-violet { background: #8b5cf6; } .tone-orange { background: #fb923c; } .tone-navy { background: #1e3a5f; }
.tone-green { background: #22c55e; } .tone-amber { background: #f59e0b; } .tone-slate { background: #64748b; }
.tone-red { background: #ef4444; }
.sf-dash-side { display: grid; gap: 12px; align-content: start; }
.sf-side-card {
    background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; padding: 16px;
}
.sf-side-card.tip { background: rgba(125,211,160,.12); border-color: rgba(125,211,160,.28); }
.sf-side-card strong { font-size: 28px; font-family: var(--display); display: block; }
.sf-side-card p { margin: 6px 0 10px; color: var(--muted); font-size: 13px; }
.sf-side-card.links a { display: block; padding: 6px 0; color: var(--gold-2); font-weight: 600; }
.sf-side-card.sys { background: #070b14; color: #f3ead8; border-color: rgba(212,175,112,.2); }
.sf-side-card.sys > .kicker,
.sf-side-card.sys > p,
.sf-side-card.sys > a,
.sf-side-card.sys > .sf-sys-link { color: #f3d9a4; }

.sf-settings-hero {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    padding: 22px 24px 0;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.sf-settings-hero h1 { font-size: 30px !important; margin: 4px 0 8px !important; }
.sf-crumb { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.sf-crumb a { color: var(--muted); }
.sf-settings-tabs {
    display: flex; gap: 4px; overflow: auto; margin-top: 18px;
    border-bottom: 1px solid var(--line-soft);
}
.sf-settings-tabs button, .sf-settings-tabs a {
    border: 0; background: none; color: var(--muted); font-weight: 700;
    padding: 12px 14px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.sf-settings-tabs button.is-active, .sf-settings-tabs a.is-active { color: var(--gold-2); border-bottom-color: var(--gold); }
.sf-settings-body {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    padding: 22px 24px 18px;
    display: grid; gap: 16px;
    box-shadow: var(--shadow);
}
.sf-settings-panel { display: grid; gap: 14px; }
.sf-settings-panel[hidden] { display: none !important; }
.sf-brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sf-brand-drop { text-align: left; min-height: 220px; display: grid; align-content: start; gap: 8px; }
.sf-brand-drop img { max-height: 72px; margin: 8px 0; background: #fff; padding: 8px 12px; border-radius: 12px; }
.sf-brand-upload { color: var(--gold-2); font-weight: 700; font-size: 13px; }
.sf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-hint { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.sf-settings-foot {
    display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px;
    border-top: 1px solid var(--line-soft);
}

html[data-theme="light"] body.admin .sf-search,
html[data-theme="light"] body.admin .sf-icon-btn,
html[data-theme="light"] body.admin .sf-user-chip,
html[data-theme="light"] body.admin .sf-search-panel,
html[data-theme="light"] body.admin .sf-notify-panel,
html[data-theme="light"] body.admin .sf-user-panel {
    background: #fff;
    border-color: rgba(176, 132, 58, 0.22);
    color: #1c1710;
}
html[data-theme="light"] body.admin .sf-search input,
html[data-theme="light"] body.admin .sf-user-chip { color: #1c1710; }

.cms-studio { display: grid; gap: 16px; }
.cms-studio-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap;
}
.cms-studio-head h1 { margin: 4px 0 6px !important; font-size: 28px !important; }
.cms-studio-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cms-lang-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cms-lang-chip {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; padding: 6px 12px; border-radius: 999px;
    border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700;
}
.cms-lang-chip.is-on { border-color: var(--gold); color: var(--text); background: rgba(212,175,112,.14); }
.cms-translate-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: 14px;
    background: rgba(212,175,112,.06);
}
.cms-translate-bar .btn-gold.is-busy { opacity: .7; }
.cms-lt-hint { margin-left: auto; font-size: 12px; color: var(--gold-2); }
.cms-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cms-pane {
    border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
    background: var(--panel, rgba(12,16,26,.72)); box-shadow: var(--shadow);
}
.cms-pane-head {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    padding: 10px 14px; border-bottom: 1px solid var(--line-soft);
}
.cms-pane .tox-tinymce { border: 0 !important; border-radius: 0 !important; }
.cms-meta, .cms-seo { display: grid; gap: 14px; padding: 18px; }
.cms-seo h2 { margin: 0; font-size: 18px; }
.cms-input-row { display: flex; gap: 8px; align-items: flex-start; }
.cms-input-row input { flex: 1; }
.cms-checks { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; padding-top: 22px; }
.cms-picker {
    position: fixed; inset: 0; z-index: 200000;
    background: rgba(7, 11, 20, .72);
    display: grid; place-items: center; padding: 24px;
}
.cms-picker[hidden] { display: none !important; }
.cms-picker-box {
    width: min(1080px, 96vw); height: min(82vh, 860px);
    display: grid; grid-template-rows: auto auto auto 1fr;
    padding: 18px; border-radius: 22px;
}
.cms-picker-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cms-picker-head h2 { margin: 0; font-size: 22px; }
.cms-picker-tools { display: flex; gap: 10px; align-items: center; margin: 12px 0; }
.cms-picker-tools input[type="search"] { flex: 1; }
.cms-picker-upload { cursor: pointer; }
.cms-picker-status { margin: 0 0 8px; }
.cms-picker-status.is-error { color: #f07178; }
.cms-picker-grid {
    overflow: auto; display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px; padding-right: 4px;
}
.cms-picker-tile {
    display: grid; gap: 6px; text-align: left;
    background: rgba(255,255,255,.04); border: 1px solid var(--line-soft);
    border-radius: 14px; padding: 8px; color: var(--text); cursor: pointer;
}
.cms-picker-tile:hover { border-color: var(--gold); }
.cms-picker-tile img {
    width: 100%; height: 92px; object-fit: contain;
    background: rgba(255,255,255,.06); border-radius: 10px;
}
.cms-picker-tile span { font-size: 11px; color: var(--muted); word-break: break-all; }

html[data-theme="light"] .cms-pane,
html[data-theme="light"] .cms-picker-box,
html[data-theme="light"] .cms-picker-tile { background: #fff; }
html[data-theme="light"] .cms-picker { background: rgba(28, 23, 16, .45); }

@media (max-width: 1180px) {
    .cms-split { grid-template-columns: 1fr; }
}

.mail-catalog {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.mail-card {
    text-align: left;
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--line-soft);
    background: var(--panel, rgba(12,16,26,.55));
    color: var(--text);
    cursor: pointer;
}
.mail-card span { color: var(--muted); font-size: 13px; }
.mail-card.is-active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.mail-toolbar { margin-bottom: 12px; }
.mail-work {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr);
    gap: 16px;
    align-items: start;
}
.mail-preview { padding: 0; overflow: hidden; }
.mail-frame {
    width: 100%;
    min-height: 420px;
    border: 0;
    background: #070b14;
}
.mail-studio .cms-bilingual { min-width: 0; }
.mail-layout-source {
    width: 100%;
    min-height: 280px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.55;
    border-radius: 12px;
}
html[data-theme="light"] .mail-card { background: #fff; }
html[data-theme="light"] .mail-frame { background: #f4efe6; }

.bms-toasts {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 300000;
    display: grid;
    gap: 10px;
    width: min(380px, calc(100vw - 28px));
    pointer-events: none;
}
.bms-toast {
    pointer-events: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(212,175,112,.35);
    background: rgba(12, 16, 26, .94);
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
    color: #eef3fb;
    animation: bmsToastIn .28s ease;
}
.bms-toast strong { display: block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-2); }
.bms-toast p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: #d5dcea; }
.bms-toast > i { color: var(--gold); margin-top: 3px; }
.bms-toast.is-success > i { color: #7dd3a0; }
.bms-toast.is-error { border-color: rgba(240,113,120,.45); }
.bms-toast.is-error > i { color: #f07178; }
.bms-toast.is-warning > i { color: #e7c37a; }
.bms-toast.is-out { opacity: 0; transform: translateX(12px); transition: .25s ease; }
.bms-toast-x {
    background: transparent;
    border: 0;
    color: #8b93a7;
    cursor: pointer;
    padding: 0;
}
.bms-confirm {
    position: fixed;
    inset: 0;
    z-index: 300100;
    display: grid;
    place-items: center;
    background: rgba(7, 11, 20, .72);
    padding: 24px;
}
.bms-confirm[hidden] { display: none !important; }
.bms-confirm-box {
    width: min(440px, 94vw);
    padding: 22px 24px;
    border-radius: 22px;
}
.bms-confirm-box h2 { margin: 4px 0 10px; font-size: 24px; }
.bms-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
@keyframes bmsToastIn {
    from { opacity: 0; transform: translateY(-8px) translateX(8px); }
    to { opacity: 1; transform: none; }
}
html[data-theme="light"] .bms-toast {
    background: #fff;
    color: #1c1710;
    box-shadow: 0 16px 40px rgba(28, 23, 16, .14);
}
html[data-theme="light"] .bms-toast p { color: #3b3328; }
html[data-theme="light"] .bms-confirm { background: rgba(28, 23, 16, .45); }

@media (max-width: 1180px) {
    .mail-catalog { grid-template-columns: 1fr 1fr; }
    .mail-work { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
    .sf-kpi-row { grid-template-columns: repeat(4, 1fr); }
    .sf-dash-body, .sf-brand-grid, .sf-two { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
    body.admin .layout-admin { grid-template-columns: 1fr; }
    body.admin .admin-rail { height: auto; position: relative; }
    .sf-kpi-row, .sf-work, .sf-status-cards { grid-template-columns: 1fr; }
}
.builder-preview { padding: 16px; }
.builder-stage {
    min-height: 120px;
    margin-top: 10px;
    border: 1px dashed var(--line-soft);
    border-radius: 16px;
    padding: 12px;
    background: rgba(0,0,0,.12);
}
.sortable-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    cursor: grab;
}
input[type=range] {
    width: 100%;
    accent-color: var(--gold);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sf-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1px solid var(--line-soft);
    background: rgba(255,255,255,.04);
}
.sf-pill-running, .sf-pill-live, .sf-pill-active, .sf-pill-paid { color: #5eead4; border-color: rgba(94,234,212,.35); }
.sf-pill-winner { color: #d4af70; border-color: rgba(212,175,112,.45); }
.sf-pill-draft, .sf-pill-paused, .sf-pill-pending, .sf-pill-open { color: #fbbf24; border-color: rgba(251,191,36,.35); }
.sf-pill-expired, .sf-pill-exhausted, .sf-pill-blocked { color: #f87171; border-color: rgba(248,113,113,.35); }
.sf-pill-scheduled { color: #93c5fd; }
.weekday-row, .hour-sliders { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.weekday-row .chip {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
}
.campaign-hours { padding: 12px 0; }
.meter {
    height: 6px;
    border-radius: 99px;
    background: rgba(255,255,255,.08);
    margin-top: 8px;
    overflow: hidden;
}
.meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #d4af70, #5eead4);
}
.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}
.plan-card {
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    padding: 14px;
    cursor: pointer;
    background: rgba(255,255,255,.03);
    transition: transform .2s ease, border-color .2s ease;
}
.plan-card.is-current { border-color: var(--gold); transform: translateY(-2px); }
.plan-card ul { margin: 10px 0 0; padding-left: 16px; font-size: 13px; }
.wizard-steps { display: flex; gap: 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.wizard-steps span.is-on { color: var(--gold); }
.motion-in { animation: rise .45s ease; }
@keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
.live-board { padding: 18px; border-radius: var(--radius); }
.live-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 14px; margin-top: 14px; }
.chart-box { height: 220px; background: rgba(255,255,255,.03); border: 1px solid var(--line-soft); border-radius: 16px; padding: 10px; }
.ticker { max-height: 220px; overflow: auto; font-size: 13px; }
.tick { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.tick span { color: var(--gold); min-width: 54px; }
.geo-map { height: 220px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-soft); margin-top: 10px; }
.geo-map.lg { height: 360px; }
.geo-editor { padding: 14px; border-radius: 18px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip-row .chip { border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
tr.is-ok td:nth-child(4) { color: var(--ok); }
tr.is-off td:nth-child(4) { color: var(--danger); }
@media (max-width: 980px) {
    .plan-grid { grid-template-columns: 1fr; }
    .live-grid { grid-template-columns: 1fr; }
}
.ab-heat { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.ab-heat-stage {
    position: relative;
    min-height: 180px;
    border-radius: 16px;
    background: radial-gradient(circle at 20% 20%, rgba(212,175,112,.12), transparent 50%), rgba(255,255,255,.03);
    border: 1px solid var(--line-soft);
    overflow: hidden;
}
.ab-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(248,113,113,.85), rgba(212,175,112,.05));
    pointer-events: none;
}
.ab-landing { padding: 28px; margin: 18px 0 0; }
.ab-steps { display: flex; gap: 10px; flex-wrap: wrap; padding: 0; list-style: none; margin-top: 16px; }
html[data-theme="light"] .ab-heat-stage { background: #fff8ee; }

html { scroll-behavior: smooth; }
html:has(body.apple-home),
html:has(body.apple-page) {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-padding: 0;
    scroll-behavior: auto;
}
body.apple-home,
body.apple-page {
    overflow: visible;
    height: auto;
    scroll-snap-type: none;
}
body.apple-home .site-header,
body.apple-page .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 240;
}
body.apple-home:has(.sf-admin-preview-bar) .apple-section,
body.apple-page:has(.sf-admin-preview-bar) .apple-section {
    padding-top: 132px;
}
body.apple-home .ab-variant,
body.apple-page .ab-variant {
    display: none;
}
.apple-flow { position: relative; }
.apple-section {
    min-height: 100svh;
    height: 100svh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 88px 4.5vw 92px;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-margin: 0;
    justify-content: safe center;
}
.apple-section::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 6%;
    width: min(1080px, 92vw);
    height: 520px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse 72% 58% at 50% 42%, rgba(212,175,112,.26) 0%, rgba(212,175,112,.1) 36%, rgba(212,175,112,.03) 62%, transparent 78%);
    filter: blur(64px);
    pointer-events: none;
    z-index: 0;
}
.apple-copy,
.apple-gallery,
.apple-plans,
.apple-feature-row,
.apple-steps,
.apple-contact,
.signup-wrap {
    z-index: 1;
}
.apple-copy {
    width: min(1320px, 100%);
    text-align: center;
    margin: 0 auto 28px;
    position: relative;
}
.apple-copy .lead {
    margin-left: auto;
    margin-right: auto;
    max-width: 78ch;
}
.apple-copy .hero-rotator { align-items: center; }
#intro.apple-section {
    overflow: visible;
    padding-bottom: 108px;
}
.apple-hero .hero-split {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    position: relative;
    z-index: 1;
    padding-bottom: 8px;
}
.apple-hero .hero-copy {
    width: 100%;
    margin: 0;
    text-align: left;
}
.apple-hero .hero-copy .lead {
    margin-left: 0;
    margin-right: 0;
    max-width: 48ch;
}
.apple-hero .hero-copy .hero-rotator { align-items: flex-start; }
.apple-hero .apple-actions { justify-content: flex-start; }
.apple-hero h1, .apple-hero h2 { font-size: clamp(40px, 5.2vw, 72px); letter-spacing: -.05em; text-align: inherit; }
.hero-checks {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}
.hero-checks li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}
.hero-checks i { color: var(--gold-2); font-size: 15px; }
.hero-visual {
    position: relative;
    min-height: min(360px, 42vh);
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 30%, rgba(212,175,112,.22), transparent 42%),
        radial-gradient(circle at 78% 62%, rgba(212,175,112,.16), transparent 46%),
        linear-gradient(160deg, rgba(255,255,255,.72), rgba(246,241,232,.45));
    border: 1px solid rgba(212,175,112,.22);
    box-shadow: 0 18px 40px rgba(40, 28, 10, .1);
}
html[data-theme="dark"] .hero-visual {
    background:
        radial-gradient(circle at 30% 30%, rgba(212,175,112,.2), transparent 42%),
        radial-gradient(circle at 78% 62%, rgba(212,175,112,.12), transparent 46%),
        linear-gradient(160deg, rgba(28,34,48,.7), rgba(12,16,26,.55));
    border-color: rgba(212,175,112,.16);
}
.hero-blob {
    position: absolute;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(212,175,112,.28), rgba(212,175,112,.06));
    border: 1px solid rgba(212,175,112,.2);
    z-index: 0;
    pointer-events: none;
}
.hero-blob.b1 { width: 54%; aspect-ratio: 1; left: 12%; top: 16%; border-radius: 36%; transform: rotate(-12deg); }
.hero-blob.b2 { width: 38%; aspect-ratio: 1; right: 12%; bottom: 16%; border-radius: 30%; transform: rotate(18deg); opacity: .85; }
.hero-blob.b3 { width: 24%; aspect-ratio: 1; right: 30%; top: 20%; border-radius: 50%; opacity: .7; }
.hero-visual-node {
    position: absolute;
    z-index: 1;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(212,175,112,.3);
    color: var(--gold-2);
    font-size: 19px;
    box-shadow: 0 12px 28px rgba(40, 28, 10, .1);
    animation: hero-orbit-float 7s ease-in-out infinite;
    backdrop-filter: blur(8px);
}
html[data-theme="dark"] .hero-visual-node {
    background: rgba(18, 22, 34, .82);
}
.hero-visual-node.n1 { left: 16%; top: 20%; animation-delay: 0s; }
.hero-visual-node.n2 { right: 16%; top: 16%; animation-delay: .7s; }
.hero-visual-node.n3 { left: 26%; bottom: 16%; animation-delay: 1.3s; }
.hero-visual-node.n4 { right: 20%; bottom: 18%; animation-delay: 2s; }
@media (prefers-reduced-motion: reduce) {
    .hero-visual-node { animation: none; }
}
@media (max-width: 900px) {
    .apple-hero .hero-split {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .apple-hero .hero-copy { text-align: center; }
    .apple-hero .hero-copy .lead { margin-left: auto; margin-right: auto; }
    .apple-hero .hero-copy .hero-rotator { align-items: center; }
    .apple-hero .apple-actions { justify-content: center; }
    .hero-checks { justify-content: center; }
    .hero-visual { min-height: 240px; }
}
#book-intro h1 {
    font-size: clamp(40px, 4.6vw, 68px);
    white-space: nowrap;
    letter-spacing: -.04em;
}
@media (max-width: 980px) {
    #book-intro h1 { white-space: normal; font-size: clamp(34px, 8vw, 52px); }
}
#formats-intro h1 {
    font-size: clamp(30px, 4.2vw, 58px);
    letter-spacing: -.04em;
    white-space: nowrap;
}
#pakete-intro .lead {
    max-width: none;
    white-space: nowrap;
    font-size: 17px;
}
#kontakt .apple-copy .lead {
    max-width: none;
    white-space: nowrap;
    font-size: 15px;
    line-height: 1.4;
}
@media (max-width: 980px) {
    #kontakt .apple-copy .lead { white-space: normal; font-size: 15px; }
}
.apple-section h2 { font-size: clamp(36px, 5vw, 68px); letter-spacing: -.04em; text-align: center; }
.apple-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
    position: relative;
}
@keyframes hero-orbit-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
#pakete-list .apple-actions { margin-top: 32px; }
.apple-feature-row, .apple-steps {
    width: min(1320px, 100%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    position: relative;
}
.apple-tile {
    padding: 26px 24px;
    min-height: 180px;
}
.apple-tile span {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 700;
}
.apple-tile h3 { margin: 10px 0 8px; font-size: 22px; }
.apple-tile p { margin: 0; color: var(--muted); line-height: 1.6; }
.apple-plans {
    width: min(1320px, 100%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    position: relative;
}
.apple-plans.is-compact { grid-template-columns: repeat(4, 1fr); }
.apple-plan {
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.apple-plan:hover { transform: translateY(-4px); border-color: var(--gold); }
.apple-plan.is-featured {
    border-color: rgba(212,175,112,.55);
    box-shadow: 0 24px 60px rgba(212,175,112,.16);
}
.apple-plan.is-selected {
    border-color: var(--gold);
    box-shadow: 0 22px 64px rgba(212,175,112,.34);
    transform: translateY(-4px);
}
.apple-plan-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-style: normal;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #1a1408;
    background: linear-gradient(135deg, #f3d9a4, #d4af70);
    border-radius: 999px;
    padding: 4px 8px;
    font-weight: 800;
}
.apple-price {
    font-family: var(--display);
    font-size: 34px;
    font-weight: 700;
    margin: 4px 0 0;
    letter-spacing: -.03em;
}
.apple-price small { font-size: 14px; color: var(--muted); font-family: var(--font); font-weight: 600; }
.apple-plan-year { min-height: 1.4em; margin: 0; }
.apple-plan ul { margin: 8px 0 16px; padding-left: 16px; color: var(--muted); font-size: 13px; line-height: 1.7; flex: 1; }
.apple-plan-cta {
    width: 100%;
    min-height: 42px;
    height: 42px;
    padding: 0 14px;
    box-sizing: border-box;
}
#formate.apple-section {
    padding-top: 76px;
    padding-bottom: 72px;
}
#formate .apple-copy { margin-bottom: 8px; }
.apple-gallery {
    width: min(1320px, 100%);
    position: relative;
    align-items: stretch;
    grid-template-columns: minmax(360px, .78fr) minmax(660px, 1.22fr);
}
.apple-section .banner-gallery { padding-bottom: 56px; gap: 16px; }
.apple-section .apple-copy { margin-bottom: 12px; flex-shrink: 0; }
.apple-gallery .placement-card {
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}
.apple-gallery .placement-pair,
.apple-gallery .placement-stack {
    flex: 1;
    margin-top: 10px;
    gap: 16px;
    justify-content: center;
    align-items: center;
}
.apple-gallery .placement-pair { flex-wrap: nowrap; }
.apple-gallery .placement-unit {
    flex: 0 0 auto;
    width: auto;
    justify-items: center;
    align-content: center;
}
.apple-gallery iframe {
    max-height: min(470px, calc(100svh - 370px));
    max-width: 100%;
}
.format-search-hero {
    width: 100%;
    margin: 0;
    padding: 6px 8px 6px 16px;
    text-align: left;
    background: rgba(7,11,20,.5);
    border: 1px solid rgba(212,175,112,.2);
    border-radius: 999px;
    box-shadow: none;
    backdrop-filter: none;
}
html[data-theme="light"] .format-search-hero {
    background: #fff;
    border-color: rgba(40, 28, 10, .12);
    box-shadow: 0 8px 24px rgba(40, 28, 10, .06);
}
html[data-theme="light"] .format-search-hero input {
    color: var(--text);
    background: transparent;
}
.format-search-hero .btn-gold {
    flex: 0 0 auto;
    min-width: 112px;
    height: 42px;
    padding: 0 18px;
}
.format-intro-panel {
    width: min(760px, 100%);
    margin: 28px auto 0;
    padding: 18px;
    display: grid;
    gap: 12px;
    text-align: left;
    position: relative;
    overflow: hidden;
    border-color: rgba(212,175,112,.42);
    box-shadow: 0 22px 64px rgba(212,175,112,.2), inset 0 1px 0 rgba(243,217,164,.14);
    background:
        radial-gradient(ellipse 90% 60% at 50% -20%, rgba(212,175,112,.18), transparent 64%),
        var(--surface);
}
.format-intro-panel::before {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: 0;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: linear-gradient(90deg, transparent, #f3d9a4 18%, #d4af70 50%, #f3d9a4 82%, transparent);
}
.format-intro-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.format-intro-actions .btn-gold,
.format-intro-actions .btn-ghost {
    width: 100%;
    height: 42px;
    padding: 0 16px;
    box-sizing: border-box;
}
.format-pane .apple-copy { margin-bottom: 14px; }
.format-pane h2 { font-size: clamp(32px, 4.4vw, 58px); }
.format-stage {
    width: fit-content;
    max-width: min(920px, 100%);
    padding: 14px 16px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    flex: 0 0 auto;
}
.format-stage .placement-pair,
.format-stage .placement-stack {
    margin: 0;
    width: auto;
    justify-content: center;
    align-items: center;
    gap: 14px;
}
.format-stage .placement-pair { flex-wrap: nowrap; }
.format-stage .placement-stack {
    flex-direction: column;
    flex-wrap: nowrap;
}
.format-stage iframe {
    max-height: min(460px, calc(100svh - 360px));
    max-width: 100%;
}
.signup-wrap { width: min(1100px, 100%); position: relative; }
.signup-shell {
    width: min(1360px, 100%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    position: relative;
    z-index: 1;
}
.signup-shell.is-form {
    width: min(960px, 100%);
}
.signup-shell.is-done {
    width: min(720px, 100%);
}
.signup-shell > .signup-steps {
    width: 100%;
    margin: 0;
    justify-content: space-between;
}
.signup-shell.is-form > .signup-steps {
    flex-wrap: nowrap;
    gap: 6px;
}
.signup-shell.is-form > .signup-steps li {
    flex: 1 1 0;
    text-align: center;
    padding: 7px 6px;
    white-space: nowrap;
}
.signup-stage {
    width: 100%;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}
.signup-stage.is-form {
    width: 100%;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
}
.signup-side {
    display: flex;
    min-height: 0;
}
.signup-side-card {
    flex: 1;
    width: 100%;
    padding: 26px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border-color: rgba(212,175,112,.5);
    box-shadow: 0 22px 64px rgba(212,175,112,.22), inset 0 1px 0 rgba(243,217,164,.14);
    background:
        radial-gradient(ellipse 90% 46% at 50% -8%, rgba(212,175,112,.2), transparent 62%),
        var(--surface);
}
.signup-side-card::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: linear-gradient(90deg, transparent, #f3d9a4 20%, #d4af70 50%, #f3d9a4 80%, transparent);
}
.signup-side-card .kicker {
    margin: 4px 0 0;
    letter-spacing: .2em;
}
.signup-side-card h3 {
    font-family: var(--display);
    font-size: 30px;
    margin: 0;
    letter-spacing: -.03em;
    line-height: 1;
}
.signup-side-card .apple-price { font-size: 32px; margin: 2px 0 0; }
.signup-side-meta {
    display: inline-flex;
    align-self: flex-start;
    margin: 4px 0 2px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(212,175,112,.28);
    color: var(--gold-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.signup-side-card ul {
    list-style: none;
    margin: 8px 0 16px;
    padding: 12px 0 0;
    border-top: 1px solid rgba(212,175,112,.16);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    flex: 1;
}
.signup-side-card li {
    position: relative;
    padding: 6px 0 6px 16px;
}
.signup-side-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(212,175,112,.55);
}
.signup-stage.is-form .signup-side-card .apple-plan-cta { margin-top: auto; }
.signup-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.signup-main .apple-copy { width: 100%; }
.signup-main .apple-plans,
.signup-main .apple-plans.is-compact {
    width: 100%;
    flex: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.signup-main .apple-plans.is-compact .apple-plan {
    padding: 16px 14px 14px;
    gap: 6px;
    height: 100%;
    cursor: pointer;
}
.signup-main .apple-plans.is-compact h3 { font-size: 22px; margin: 0; }
.signup-main .apple-plans.is-compact .apple-price { font-size: 24px; }
.signup-main .apple-plans.is-compact ul {
    margin: 4px 0 10px;
    font-size: 12px;
    line-height: 1.55;
}
.signup-steps {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
.signup-steps li {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
}
.signup-steps li.is-on {
    color: var(--gold-2);
    border-color: var(--gold);
    background: rgba(212,175,112,.12);
}
.signup-step-compact { display: none; }
.signup-step-full { display: inline; }
.signup-form { width: min(640px, 100%); margin: 0 auto; text-align: left; padding: 28px 26px; box-sizing: border-box; }
.signup-stage.is-form .signup-form { width: 100%; margin: 0; height: 100%; }
.signup-form .btn-gold { width: 100%; }
.signup-form label em { font-style: normal; color: var(--muted); font-weight: 600; font-size: 12px; }
.signup-stage.is-form .signup-form.signup-wait {
    height: auto;
    align-self: stretch;
    justify-content: center;
    text-align: left;
    gap: 14px;
    padding: 28px 26px;
    border-color: rgba(212, 175, 112, .42);
    box-shadow: 0 22px 64px rgba(212, 175, 112, .16), inset 0 1px 0 rgba(243, 217, 164, .1);
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212, 175, 112, .16), transparent 60%),
        var(--surface);
}
.signup-wait-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: var(--gold-2);
    background: rgba(212, 175, 112, .12);
    border: 1px solid rgba(212, 175, 112, .28);
    font-size: 22px;
}
.signup-wait-body { display: grid; gap: 8px; }
.signup-wait-kicker {
    margin: 0;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-2);
}
.signup-wait-body h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(26px, 3vw, 34px);
    letter-spacing: -.03em;
    line-height: 1.05;
}
.signup-wait-lead {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}
.signup-wait-lead strong { color: var(--text); font-weight: 700; }
.signup-wait-steps {
    margin: 6px 0 0;
    padding: 0 0 0 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}
.signup-wait-steps li::marker { color: var(--gold-2); }
.signup-form.signup-wait .btn-ghost {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}
.signup-wait-note {
    margin: 0;
    font-size: 12px;
    text-align: center;
}
.signup-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.signup-interval {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 20px;
    position: relative;
    z-index: 1;
}
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.interval-seg {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(176, 132, 58, .28);
    background: rgba(255, 252, 247, .9);
    box-shadow: inset 0 1px 2px rgba(40, 28, 10, .06);
}
html[data-theme="dark"] .interval-seg {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(212, 175, 112, .28);
}
.interval-seg button {
    min-width: 118px;
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.interval-seg button.is-on {
    background: linear-gradient(180deg, #f3d9a4, #d4af70);
    color: #1c1710;
    box-shadow: 0 8px 18px rgba(184, 137, 58, .28);
}
html[data-theme="dark"] .interval-seg button.is-on {
    color: #1c1710;
}
.interval-label {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    padding: 0;
}
.interval-label.is-on { color: var(--gold-2); }
.interval-switch {
    position: relative;
    display: inline-flex;
    width: 52px;
    height: 30px;
    margin: 0;
    cursor: pointer;
}
.interval-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}
.interval-switch-ui {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 3px rgba(0,0,0,.35);
    transition: background .2s ease, border-color .2s ease;
}
.interval-switch-ui::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 3px;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f6e0b4, #d4af70);
    box-shadow: 0 2px 6px rgba(40, 28, 10, .18);
    transition: transform .2s ease;
}
.interval-switch input:checked + .interval-switch-ui {
    background: rgba(212,175,112,.22);
    border-color: rgba(212,175,112,.55);
}
.interval-switch input:checked + .interval-switch-ui::after {
    transform: translateX(22px);
}
html[data-theme="light"] .interval-switch-ui {
    background: #c4b08a;
    border-color: #9a7a42;
    box-shadow: inset 0 1px 2px rgba(40, 28, 10, .12);
}
html[data-theme="light"] .interval-switch-ui::after {
    background: linear-gradient(180deg, #fff, #f4efe6);
    border: 1px solid rgba(40, 28, 10, .14);
    box-shadow: 0 2px 6px rgba(40, 28, 10, .18);
}
html[data-theme="light"] .interval-switch input:checked + .interval-switch-ui {
    background: #8a5a12;
    border-color: #6f4710;
}
.signup-interval label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}
.talk-end {
    height: auto;
    min-height: 0;
    justify-content: flex-start;
    padding-top: 120px;
    padding-bottom: 72px;
    gap: 36px;
}
.talk-end .apple-copy { margin-bottom: 0; }
.talk-board {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
    margin-top: 8px;
}
.talk-fact {
    padding: 26px 22px 24px;
    min-height: 168px;
    display: grid;
    gap: 12px;
    align-content: start;
    border-radius: 22px;
    border: 1px solid rgba(176, 132, 58, .18);
    box-shadow: 0 18px 40px rgba(80, 55, 20, .08);
    background: linear-gradient(180deg, rgba(255,252,247,.98), rgba(255,255,255,.92));
}
html[data-theme="dark"] .talk-fact {
    background: linear-gradient(180deg, rgba(22, 30, 46, .92), rgba(16, 24, 40, .88));
    border-color: rgba(212, 175, 112, .2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}
.talk-fact i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(212, 175, 112, .16);
    color: var(--gold-2);
    font-size: 16px;
}
.talk-fact strong {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-2);
}
.talk-fact p,
.talk-fact a {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
    word-break: break-word;
}
.talk-page {
    width: min(920px, calc(100% - 40px));
    margin: 28px auto 80px;
    display: grid;
    gap: 18px;
}
.talk-page .page-hero { padding-bottom: 0; }
.talk-page .talk-board { width: 100%; }
.talk-form {
    display: grid;
    gap: 14px;
    padding: 26px 24px 22px;
}
.talk-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.talk-map {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    background: rgba(212, 175, 112, .06);
}
.talk-map .consent-embed,
.talk-map .consent-placeholder { margin: 0; }
.talk-map iframe {
    width: 100%;
    min-height: 280px;
    border: 0;
    display: block;
}
.talk-form .btn-gold { width: 100%; }
.talk-page { width: min(1120px, calc(100% - 40px)); }
.talk-desk {
    display: grid;
    grid-template-columns: minmax(240px, .9fr) minmax(0, 1.25fr);
    gap: 22px;
    align-items: start;
}
.talk-desk-side {
    border-radius: 24px;
    border: 1px solid rgba(212,175,112,.2);
    padding: 26px 24px 22px;
    background:
        radial-gradient(90% 80% at 0% 0%, rgba(212,175,112,.16), transparent 55%),
        linear-gradient(165deg, rgba(255,255,255,.92), rgba(248,246,242,.88));
    box-shadow: 0 18px 40px rgba(80,55,20,.07);
}
html[data-theme="dark"] .talk-desk-side {
    background:
        radial-gradient(90% 80% at 0% 0%, rgba(212,175,112,.14), transparent 55%),
        linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.talk-desk-side h2 {
    margin: 4px 0 16px;
    font-family: var(--display);
    font-size: 26px;
    letter-spacing: -.03em;
}
.talk-sla { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.talk-sla li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    align-items: start;
}
.talk-sla i {
    width: 36px; height: 36px; border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(212,175,112,.14); color: var(--gold-2); font-size: 13px;
}
.talk-sla span { display: grid; gap: 2px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.talk-sla strong { color: var(--text); font-size: 14px; }
.talk-lang-note {
    margin: 18px 0 16px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--line-soft);
    font-size: 12px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.45;
}
.talk-lang-note i { color: var(--gold); margin-top: 2px; }
.talk-desk-side .talk-map { margin-top: 4px; }
.talk-form-pro {
    border-radius: 24px;
    border: 1px solid var(--line-soft);
    background: rgba(255,255,255,.55);
    box-shadow: 0 18px 40px rgba(80,55,20,.06);
}
html[data-theme="dark"] .talk-form-pro {
    background: rgba(255,255,255,.03);
}
.talk-form-head h2 {
    margin: 4px 0 4px;
    font-family: var(--display);
    font-size: 22px;
    letter-spacing: -.02em;
}
.talk-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
}
.talk-consent input { margin-top: 3px; accent-color: var(--gold); }
.talk-consent span { display: block; margin: 0; }
.talk-form-foot { margin: 0; font-size: 12px; text-align: center; }
.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.talk-form-pro { position: relative; }
.sf-spam-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700;
    border: 1px solid var(--line-soft);
}
.sf-spam-chip.is-ok { background: rgba(34,197,94,.1); color: #15803d; }
.sf-spam-chip.is-review { background: rgba(245,158,11,.12); color: #b45309; }
.sf-spam-chip.is-blocked { background: rgba(220,80,80,.1); color: #b42318; }
@media (max-width: 900px) {
    .talk-desk { grid-template-columns: 1fr; }
    .talk-board, .talk-fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .talk-board, .talk-fields { grid-template-columns: 1fr; }
}
.section-next {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    z-index: 3;
    text-decoration: none;
    padding: 8px;
}
.section-next span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.section-next i {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--gold);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    animation: appleNudge 1.8s ease-in-out infinite;
    filter: drop-shadow(0 6px 12px rgba(212,175,112,.35));
}
@keyframes appleNudge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}
html[data-theme="light"] .site-header {
    background: rgba(247, 242, 234, .78);
}
body.apple-home .site-footer,
body.apple-page .site-footer {
    margin-top: 0;
    scroll-snap-align: start;
    padding: 72px 0 48px;
    font-size: 14px;
}
body.apple-home .site-footer .brand-mark img,
body.apple-page .site-footer .brand-mark img { height: 46px; }
body.apple-home .site-footer-grid,
body.apple-page .site-footer-grid {
    gap: 48px;
    padding-bottom: 40px;
}
body.apple-home .site-footer-copy,
body.apple-page .site-footer-copy {
    font-size: 13px;
    padding-top: 24px;
}
.apple-section-end {
    height: auto;
    min-height: 100svh;
    overflow: visible;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    padding-bottom: 64px;
}
body.apple-home .talk-end.apple-section-end {
    min-height: 0;
    height: auto;
    padding-bottom: 48px;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}
body.apple-home #buchen .section-next { display: none; }
body.apple-home:has(.talk-end) .site-footer {
    scroll-snap-align: end;
    padding-top: 40px;
}
html:has(body.book-page),
html:has(body.book-page) {
    scroll-snap-type: none;
    height: auto;
    overflow-y: auto;
}
body.book-page {
    overflow: visible;
}
body.book-page .site-footer {
    scroll-snap-align: none;
    margin-top: 0;
}
.book-premium {
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
    padding: 132px 0 72px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: stretch;
}
body.book-page:has(.sf-admin-preview-bar) .book-premium {
    padding-top: 172px;
}
.book-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 34px 30px 28px;
    border-radius: 28px;
    border: 1px solid rgba(176, 132, 58, .18);
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 175, 112, .16), transparent 68%),
        linear-gradient(180deg, rgba(255,252,247,.98), rgba(255,255,255,.92));
    box-shadow: 0 22px 50px rgba(80, 55, 20, .09);
    text-align: left;
}
html[data-theme="dark"] .book-card {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 175, 112, .14), transparent 68%),
        linear-gradient(180deg, rgba(22, 30, 46, .94), rgba(16, 24, 40, .9));
    border-color: rgba(212, 175, 112, .22);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .3);
}
.book-card .kicker { margin: 0; }
.book-hero h1 {
    margin: 0;
    font-size: clamp(30px, 3.4vw, 44px);
    letter-spacing: -.04em;
    line-height: 1.08;
}
.book-price {
    display: grid;
    gap: 4px;
    margin: 4px 0 0;
}
.book-price strong {
    font-family: var(--display);
    font-size: clamp(36px, 4vw, 48px);
    letter-spacing: -.04em;
    color: var(--gold-2);
    line-height: 1;
}
.book-price span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}
.book-hero .lead {
    margin: 0;
    max-width: none;
    font-size: 15px;
    line-height: 1.55;
}
.book-flow h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -.03em;
    line-height: 1.1;
}
.book-steps {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
    flex: 1;
}
.book-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 14px 14px 14px 12px;
    border-radius: 16px;
    border: 1px solid rgba(176, 132, 58, .14);
    background: rgba(255, 255, 255, .55);
}
html[data-theme="dark"] .book-steps li {
    background: rgba(255, 255, 255, .03);
    border-color: rgba(212, 175, 112, .16);
}
.book-steps span {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 800;
    margin-top: 3px;
}
.book-steps h3 {
    margin: 0 0 4px;
    font-size: 17px;
}
.book-steps p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}
.book-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
}
@media (max-width: 900px) {
    .book-premium { grid-template-columns: 1fr; gap: 16px; padding-top: 108px; }
}
html:has(body.apple-home),
html:has(body.apple-page) {
    scrollbar-width: thin;
    scrollbar-color: #d4af70 transparent;
}
html:has(body.apple-home)::-webkit-scrollbar,
html:has(body.apple-page)::-webkit-scrollbar,
body.apple-home .apple-section::-webkit-scrollbar,
body.apple-page .apple-section::-webkit-scrollbar {
    width: 10px;
}
html:has(body.apple-home)::-webkit-scrollbar-track,
html:has(body.apple-page)::-webkit-scrollbar-track,
body.apple-home .apple-section::-webkit-scrollbar-track,
body.apple-page .apple-section::-webkit-scrollbar-track {
    background: transparent;
}
html:has(body.apple-home)::-webkit-scrollbar-thumb,
html:has(body.apple-page)::-webkit-scrollbar-thumb,
body.apple-home .apple-section::-webkit-scrollbar-thumb,
body.apple-page .apple-section::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f3d9a4, #d4af70 55%, #b98a45);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
html[data-theme="light"]:has(body.apple-home),
html[data-theme="light"]:has(body.apple-page) {
    scrollbar-color: #d4af70 #f4eee4;
}
body.has-cookie-bar .section-next {
    bottom: 118px;
}
@media (max-width: 980px) {
    .shell { width: min(1180px, calc(100% - 28px)); }
    .topbar {
        gap: 12px;
        padding: 12px 0;
        flex-wrap: nowrap;
    }
    .brand-mark img,
    .brand-plate img { height: 34px; }
    .topbar-login-sm {
        display: inline-flex;
        align-items: center;
        max-width: min(42vw, 168px);
        min-width: 0;
        padding-left: 12px;
        padding-right: 12px;
        overflow: hidden;
    }
    .topbar-login-sm .topbar-login-label {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }
    .topbar-theme-lang { display: none; }
    .topbar > .nav-desk { display: none; }
    .nav-burger { display: inline-flex; }
    .nav-drawer-tools {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 0 12px;
        padding: 0 0 14px;
        border-bottom: 1px solid var(--line-soft);
    }
    .nav-drawer-tools .theme-toggle,
    .nav-drawer-tools .lang-toggle {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
    .nav-drawer {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 6px;
        position: fixed;
        top: 0;
        right: 0;
        width: min(340px, 88vw);
        height: 100dvh;
        height: 100vh;
        margin: 0;
        padding: 18px 18px 28px;
        background: var(--bg-2);
        border-left: 1px solid var(--line);
        box-shadow: -24px 0 60px rgba(0, 0, 0, .35);
        transform: translateX(105%);
        transition: transform .28s ease;
        overflow-y: auto;
        z-index: 210;
        -webkit-overflow-scrolling: touch;
    }
    .nav-drawer[hidden] {
        display: flex !important;
        pointer-events: none;
        visibility: hidden;
    }
    .site-chrome.is-nav-open .nav-drawer,
    .site-chrome.is-nav-open .nav-drawer[hidden] {
        transform: translateX(0);
        pointer-events: auto;
        visibility: visible;
    }
    .nav-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 10px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--line-soft);
    }
    .nav-drawer-head strong {
        font-size: 13px;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--muted);
    }
    .nav-drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: var(--surface);
        color: var(--text);
        cursor: pointer;
    }
    .nav-drawer > a,
    .nav-drawer > .mega {
        width: 100%;
    }
    .nav-drawer > a {
        padding: 14px 16px;
        border-radius: 14px;
        font-weight: 650;
        font-size: 15px;
        box-sizing: border-box;
    }
    .nav-drawer .mega-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 14px 16px;
        border-radius: 14px;
    }
    .nav-drawer .mega-panel {
        position: static;
        min-width: 0;
        width: 100%;
        margin-top: 6px;
        box-shadow: none;
        border-radius: 14px;
    }
    .nav-drawer .mega-panel::before { display: none; }
    .nav-drawer > .btn-gold {
        margin-top: 8px;
        width: 100%;
        justify-content: center;
    }
    /* Login/Kundenportal schon im Header – nicht im Drawer */
    .nav-drawer a[href="/login"],
    .nav-drawer a[href$="/login"] {
        display: none !important;
    }
    html.nav-drawer-open,
    html.nav-drawer-open body {
        overflow: hidden;
    }

    .apple-feature-row, .apple-steps, .apple-plans, .apple-plans.is-compact, .apple-contact, .signup-stage,
    .signup-main .apple-plans, .signup-main .apple-plans.is-compact, .apple-gallery,
    body.apple-page:has(.signup-stage.is-form) .signup-stage.is-form {
        grid-template-columns: 1fr;
    }
    .signup-side { position: static; }
    .signup-wrap,
    .signup-shell,
    .signup-shell.is-form {
        width: 100%;
        max-width: 100%;
    }
    /* Buchung: nur aktueller Schritt, premium */
    .signup-steps,
    .signup-shell.is-form > .signup-steps,
    body.apple-page:has(.signup-stage.is-form) .signup-shell.is-form > .signup-steps {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0;
        margin: 0 0 14px;
    }
    .signup-steps li,
    .signup-shell.is-form > .signup-steps li,
    body.apple-page:has(.signup-stage.is-form) .signup-shell.is-form > .signup-steps li {
        display: none;
        flex: none;
        white-space: nowrap;
    }
    .signup-steps li.is-on,
    .signup-shell.is-form > .signup-steps li.is-on,
    body.apple-page:has(.signup-stage.is-form) .signup-shell.is-form > .signup-steps li.is-on {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
        font-size: 12px;
        letter-spacing: .04em;
        border-radius: 999px;
        border: 1px solid rgba(212,175,112,.55);
        background:
            linear-gradient(180deg, rgba(243,217,164,.18), rgba(212,175,112,.1)),
            var(--surface);
        box-shadow: 0 10px 28px rgba(80, 55, 20, .12);
        color: var(--text);
    }
    .signup-steps li.is-on .signup-step-full { display: none; }
    .signup-steps li.is-on .signup-step-compact {
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }
    .signup-steps li.is-on .signup-step-compact em {
        font-style: normal;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .12em;
        color: var(--gold);
        padding: 4px 8px;
        border-radius: 999px;
        border: 1px solid rgba(212,175,112,.35);
        background: rgba(212,175,112,.12);
    }
    .signup-steps li.is-on .signup-step-compact strong {
        font-size: 13px;
        font-weight: 750;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    /* Index: normales Scrollen, keine Section-Snaps/Pfeile */
    body.apple-home .section-next,
    body.apple-page .section-next {
        display: none !important;
    }
    html:has(body.apple-home),
    html:has(body.apple-page) {
        height: auto !important;
        overflow-y: auto !important;
        scroll-snap-type: none !important;
        scroll-behavior: smooth;
        scroll-padding: 0 !important;
    }
    body.apple-home,
    body.apple-page {
        height: auto !important;
        overflow: visible !important;
        scroll-snap-type: none !important;
    }
    body.apple-home .apple-flow {
        display: block;
    }
    body.apple-home .apple-section,
    body.apple-page .apple-section {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 48px 16px 40px;
        overflow: hidden; /* Cards nicht in nächste Section zeichnen */
        scroll-snap-align: none !important;
        scroll-snap-stop: normal !important;
        scroll-margin: 0 !important;
        justify-content: flex-start;
        isolation: isolate;
    }
    body.apple-home .apple-section.apple-hero {
        padding-top: 96px;
        padding-bottom: 36px;
        min-height: 0 !important;
        overflow: visible;
    }
    body.apple-home .apple-section + .apple-section {
        margin-top: 0;
        padding-top: 48px;
        border-top: 1px solid rgba(212,175,112,.12);
        background: transparent;
    }
    html[data-theme="light"] body.apple-home .apple-section + .apple-section {
        border-top-color: rgba(176, 132, 58, 0.14);
        background: transparent;
    }
    body.apple-home .apple-section::before {
        top: 0;
        height: 220px;
        opacity: .7;
        filter: blur(70px);
        z-index: 0;
    }
    body.apple-home .apple-feature-row,
    body.apple-home .apple-plans,
    body.apple-home .apple-plans.is-compact,
    body.apple-home .apple-steps,
    body.apple-home .apple-gallery,
    body.apple-home .banner-gallery {
        width: 100%;
        gap: 18px;
        position: relative;
        z-index: 1;
    }
    body.apple-home .apple-tile,
    body.apple-home .apple-plan,
    body.apple-home .placement-card {
        margin-bottom: 0;
        position: relative;
        z-index: 1;
        transform: none !important;
    }
    body.apple-home .apple-gallery .placement-card,
    body.apple-home .banner-gallery .placement-card {
        overflow: hidden;
        padding: 16px 14px 14px;
    }
    body.apple-home .apple-gallery,
    body.apple-home .banner-gallery.apple-gallery {
        grid-template-columns: 1fr !important;
        gap: 18px;
        width: 100%;
        max-width: 100%;
    }
    body.apple-home .apple-gallery .placement-wide,
    body.apple-home .banner-gallery .placement-wide {
        grid-column: auto;
    }
    body.apple-home .apple-gallery .placement-pair,
    body.apple-home .apple-gallery .placement-stack,
    body.apple-home .banner-gallery .placement-pair,
    body.apple-home .banner-gallery .placement-stack {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        gap: 14px;
    }
    body.apple-home .apple-gallery iframe,
    body.apple-home .banner-gallery iframe,
    body.apple-home .placement-card iframe {
        max-width: 100%;
        max-height: 320px;
        width: auto;
        height: auto;
    }
    body.apple-home .hero-visual {
        margin-bottom: 8px;
        position: relative;
        z-index: 1;
    }
    body.apple-home .apple-section-end,
    body.apple-home .talk-end.apple-section-end {
        min-height: 0 !important;
        height: auto !important;
        padding-bottom: 36px;
        overflow: visible;
    }
    body.apple-home .site-footer,
    body.apple-page .site-footer {
        scroll-snap-align: none !important;
    }
    .apple-copy h1,
    .apple-hero h1,
    .apple-section h2 {
        font-size: clamp(28px, 9vw, 42px);
        line-height: 1.12;
        word-break: break-word;
    }
    .apple-copy .lead,
    .apple-hero .lead {
        font-size: 15px;
        white-space: normal;
        max-width: 36ch;
    }
    .apple-actions {
        width: 100%;
    }
    .apple-actions .btn-gold,
    .apple-actions .btn-ghost {
        width: 100%;
        max-width: 280px;
    }
    .hero-checks {
        flex-wrap: wrap;
        justify-content: center;
    }
    #formats-intro h1,
    #book-intro h1 { white-space: normal; }
    #pakete-intro .lead,
    #kontakt .apple-copy .lead { white-space: normal; }
    .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 8px;
        padding-right: 0;
    }
    body.apple-home .site-footer,
    body.apple-page .site-footer {
        padding: 56px 0 28px;
    }
    .site-footer-copy {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 4px;
        padding-top: 14px;
        font-size: 11px;
        line-height: 1.45;
    }
    .site-footer-copy .copyright-line {
        font-size: 12px;
        line-height: 1.45;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
    }
    .site-footer-copy .copyright-line p,
    .site-footer-copy .copyright-line div {
        margin: 0;
        display: block;
        white-space: normal;
    }
    .copyright-line .copyright-br {
        display: block;
        content: '';
        margin: 0;
    }
    .site-footer-copy .footer-meta,
    .site-footer-copy .muted {
        font-size: 11px;
        white-space: normal;
        flex: 0 0 auto;
        line-height: 1.4;
        width: 100%;
    }
    .footer-a11y-row {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    .footer-a11y-row > a {
        display: inline;
    }
    .footer-a11y-row .a11y-root {
        display: inline-flex;
        align-items: center;
        width: auto;
        height: auto;
        overflow: visible;
    }
    .footer-a11y-row .a11y-fab {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 34px;
        height: 34px;
        font-size: 10px;
        z-index: 1;
        box-shadow: 0 6px 14px rgba(80, 55, 20, .16);
        flex-shrink: 0;
    }
    body.has-cookie-bar .footer-a11y-row .a11y-fab {
        bottom: auto !important;
    }
}

@media (min-width: 981px) {
    .nav-burger { display: none !important; }
    .nav-backdrop { display: none !important; }
    .nav-drawer { display: none !important; }
    .topbar-login-sm { display: none !important; }
}

@media (max-width: 640px) {
    .topbar-login-sm { padding: 8px 12px; font-size: 12px; }
    .signup-form .grid-2 { grid-template-columns: 1fr; }
    body.apple-page:has(.signup-stage.is-form) .signup-form {
        padding: 18px 16px 16px;
    }
    body.apple-page:has(.signup-stage.is-form) .signup-side-card {
        padding: 18px 16px 14px;
    }
    .hero-visual { min-height: 200px; }
}

/* Admin page chrome */
.sf-page-hero {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    padding: 22px 24px 0;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}
.sf-page-hero h1 { font-size: 30px !important; margin: 4px 0 8px !important; }
.sf-page-hero-row {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap;
}
.sf-page-lead { max-width: 720px; font-size: 15px; line-height: 1.55; }
.sf-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sf-crumb .is-now { color: var(--text); font-weight: 600; }
.sf-help {
    display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: start;
    padding: 14px 16px; border-radius: 16px; margin-bottom: 16px;
    background: rgba(212,175,112,.08); border: 1px solid rgba(212,175,112,.22);
}
.sf-help i { color: var(--gold-2); margin-top: 2px; }
.sf-help strong { display: block; margin-bottom: 2px; }
.sf-help p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.sf-section-card {
    background: var(--surface); border: 1px solid var(--line-soft); border-radius: 22px;
    padding: 20px 22px; box-shadow: var(--shadow); display: grid; gap: 14px;
}
.sf-log-search {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
}
.sf-log-search__field {
    flex: 1;
    min-width: 220px;
    display: grid;
    gap: 6px;
    margin: 0;
}
.sf-log-search__field span {
    margin: 0;
    font-weight: 700;
}
.sf-log-search .btn-gold {
    height: 46px;
    padding: 0 18px;
}
.sf-section-card[hidden],
.sf-settings-panel[hidden] { display: none !important; }
.sf-section-card + .sf-section-card, .sf-section-card + form, form + .sf-section-card { margin-top: 16px; }
.sf-section-card h2, .sf-section-card h3 { margin: 0; font-size: 18px; }
.pay-admin { display: grid; gap: 16px; }
.pay-admin-status {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.pay-admin-status .sf-status-card { margin: 0; }
.pay-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pay-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.pay-card-head h2 { margin: 0 0 4px; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.pay-card-head p { margin: 0; font-size: 13px; }
.pay-card-head code { font-size: 12px; word-break: break-all; }
.pay-admin .sf-switch.compact { margin: 0; flex: 0 0 auto; }
.pay-live-note {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(245,158,11,.35);
    background: rgba(245,158,11,.12);
    color: #92400e;
    font-size: 13px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
html[data-theme="dark"] .pay-live-note { color: #fbbf24; }
.pay-help { font-size: 13px; line-height: 1.5; }
.pay-help code { font-size: 11px; word-break: break-all; }
.pay-sub { font-size: 14px; margin: 18px 0 10px; }
.pay-copy-row { display: flex; gap: 8px; align-items: center; }
.pay-copy-row input { flex: 1; }
.pay-mollie-actions {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px;
}
.pay-connected { color: #15803d; font-weight: 700; font-size: 13px; }
.btn-gold.is-disabled { opacity: .45; pointer-events: none; }
.pay-inline-switch { display: flex; align-items: flex-end; }
@media (max-width: 980px) {
    .pay-admin-status, .pay-admin-grid { grid-template-columns: 1fr; }
}
body.admin .form-grid label span { font-weight: 700; }
body.admin .card.form-grid, body.admin .sf-section-card.form-grid { gap: 16px; }
.sf-choice-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px;
}
.sf-choice {
    display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; cursor: pointer;
    border: 1px solid var(--line-soft); background: rgba(255,255,255,.4);
}
html[data-theme="dark"] .sf-choice { background: rgba(255,255,255,.03); }
.sf-choice:has(input:checked), .sf-choice.is-on {
    border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); background: rgba(212,175,112,.12);
}
.sf-choice input { accent-color: var(--gold); }
.sf-choice strong { font-size: 16px; }
.sf-choice span { color: var(--muted); font-size: 12px; }
.sf-choice em { font-style: normal; color: var(--gold-2); font-weight: 700; }
.sf-plan-admin {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px;
}
.sf-plan-admin article {
    border: 1px solid var(--line-soft); border-radius: 20px; padding: 16px 16px 14px;
    background: linear-gradient(180deg, rgba(212,175,112,.08), transparent 42%);
    display: grid; gap: 10px;
}
.sf-plan-admin .plan-code { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sf-plan-admin h3 { margin: 0; font-size: 22px; }
.sf-plan-admin .plan-price { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.sf-plan-admin .plan-price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.sf-plan-admin label { display: grid; gap: 4px; }
.sf-plan-admin label span { font-size: 11px; color: var(--muted); font-weight: 700; }
.sf-plan-admin input[type="number"], .sf-plan-admin input[type="text"] {
    width: 100%; border-radius: 10px; padding: 8px 10px;
}
.sf-meter { display: grid; gap: 4px; }
.sf-meter .bar { height: 6px; border-radius: 99px; background: rgba(0,0,0,.08); overflow: hidden; }
html[data-theme="dark"] .sf-meter .bar { background: rgba(255,255,255,.08); }
.sf-meter .bar i { display: block; height: 100%; background: linear-gradient(90deg, #d4af70, #f3d9a4); }
.sf-cdn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.sf-cdn-card {
    border: 1px solid var(--line-soft); border-radius: 16px; padding: 14px; display: grid; gap: 6px; cursor: pointer;
}
.sf-cdn-card:has(input:checked) { border-color: var(--gold); background: rgba(212,175,112,.1); }
.sf-cdn-card strong { text-transform: capitalize; }
.sf-inner-tabs { margin-top: 4px; }
.sf-inner-tabs .sf-settings-tabs { margin-top: 0; }
body.admin .content > .table-wrap.card, body.admin .content > .card { border-radius: 22px; }
.sf-empty { padding: 28px; text-align: center; color: var(--muted); }
.sf-api-box {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px; background: rgba(0,0,0,.04); border-radius: 12px; padding: 12px 14px;
    overflow: auto; white-space: pre-wrap;
    max-height: min(42vh, 360px);
}
html[data-theme="dark"] .sf-api-box { background: rgba(255,255,255,.05); }
.sf-modal[data-symfony-update-target="modal"] .sf-api-box,
.sf-side-card.sys .sf-api-box {
    max-height: min(48vh, 420px);
}
.sf-status-map { display: flex; gap: 8px; flex-wrap: wrap; }
.sf-status-map span { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-soft); }
.sf-section-card details {
    border-top: 1px solid var(--line-soft); padding-top: 12px;
}
.sf-section-card summary {
    cursor: pointer; font-weight: 700; color: var(--gold-2);
}
.sf-avatar.xl { width: 72px; height: 72px; font-size: 28px; }
.sf-profile-hero {
    display: flex; gap: 18px; align-items: center;
    background: var(--surface); border: 1px solid var(--line-soft);
    border-radius: 22px; padding: 18px 22px; margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.sf-profile-hero h2 { margin: 0 0 4px; font-size: 24px; }
.sf-qr { width: 180px; height: 180px; border-radius: 16px; background: #fff; padding: 8px; }
.sf-sys-link {
    border: 0; background: none; color: #f3d9a4; font-weight: 700; cursor: pointer; padding: 0; text-align: left;
}
.sf-modal[hidden] { display: none !important; }
.sf-modal {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(8, 10, 16, .55);
    display: grid; place-items: center; padding: 20px;
}
.sf-modal-card {
    width: min(560px, 100%);
    max-height: min(90vh, 860px);
    overflow: auto;
    background: var(--surface-2, #101828); color: var(--text);
    border: 1px solid var(--line-soft); border-radius: 22px;
    padding: 22px 24px 18px; box-shadow: var(--shadow);
    display: grid; gap: 14px; position: relative;
    align-content: start;
}
.sf-side-card.sys .sf-modal-card,
.sf-modal[data-symfony-update-target="modal"] .sf-modal-card {
    width: min(860px, calc(100vw - 32px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.sf-side-card.sys .sf-modal-card > header,
.sf-side-card.sys .sf-modal-card > ol.sf-wizard-steps,
.sf-side-card.sys .sf-modal-card > footer.sf-modal-foot {
    flex: 0 0 auto;
}
.sf-side-card.sys .sf-modal-card > .sf-update-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    display: grid;
    gap: 12px;
    padding-right: 4px;
}
.sf-side-card.sys .sf-modal-card .sf-api-box {
    max-height: none;
}
.sf-modal-card,
.sf-modal-card p,
.sf-modal-card strong,
.sf-modal-card li,
.sf-modal-card h2,
.sf-modal-card .kicker {
    color: var(--text);
}
.sf-modal-card .muted { color: var(--muted); }
.sf-modal-card .btn-ghost { color: var(--gold-2); }
.sf-modal-card h2 { margin: 0; font-size: 24px; }
.sf-modal-x {
    position: absolute; top: 14px; right: 14px;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--text);
}
.sf-modal-foot { display: flex; justify-content: flex-end; gap: 8px; }
.sf-wizard-steps {
    display: flex; gap: 8px; list-style: none; padding: 0; margin: 0;
}
.sf-wizard-steps li {
    flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted);
    padding-bottom: 8px; border-bottom: 2px solid var(--line-soft);
}
.sf-wizard-steps li.is-on { color: var(--gold-2); border-bottom-color: var(--gold); }
.sf-update-result {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
}
.sf-update-result i {
    font-size: 22px;
    line-height: 1.2;
    flex-shrink: 0;
}
.sf-update-result strong {
    display: block;
    margin: 0 0 4px;
    font-size: 16px;
}
.sf-update-result p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}
.sf-update-result.is-ok {
    background: rgba(31, 122, 77, .12);
    border-color: rgba(31, 122, 77, .35);
    color: #1f7a4d;
}
.sf-update-result.is-ok i,
.sf-update-result.is-ok strong,
.sf-update-result.is-ok p {
    color: #1f7a4d;
}
.sf-update-result.is-fail {
    background: rgba(180, 50, 50, .1);
    border-color: rgba(180, 50, 50, .35);
    color: #a12828;
}
.sf-update-result.is-fail i,
.sf-update-result.is-fail strong,
.sf-update-result.is-fail p {
    color: #a12828;
}
html[data-theme="dark"] .sf-update-result.is-ok {
    background: rgba(94, 234, 212, .1);
    border-color: rgba(94, 234, 212, .35);
    color: #5eead4;
}
html[data-theme="dark"] .sf-update-result.is-ok i,
html[data-theme="dark"] .sf-update-result.is-ok strong,
html[data-theme="dark"] .sf-update-result.is-ok p {
    color: #5eead4;
}
html[data-theme="dark"] .sf-update-result.is-fail {
    background: rgba(248, 113, 113, .1);
    border-color: rgba(248, 113, 113, .35);
    color: #f87171;
}
html[data-theme="dark"] .sf-update-result.is-fail i,
html[data-theme="dark"] .sf-update-result.is-fail strong,
html[data-theme="dark"] .sf-update-result.is-fail p {
    color: #f87171;
}
.sf-api-box.is-ok {
    border-color: rgba(31, 122, 77, .35);
}
.sf-api-box.is-fail {
    border-color: rgba(180, 50, 50, .4);
}
html[data-theme="light"] .sf-modal {
    background: rgba(28, 23, 16, .42);
}
html[data-theme="light"] .sf-modal-card {
    background: #fff;
    color: #1c1710;
    border-color: rgba(40, 28, 10, .1);
    box-shadow: 0 28px 70px rgba(40, 28, 10, .18);
}
html[data-theme="light"] .sf-modal-card p,
html[data-theme="light"] .sf-modal-card strong,
html[data-theme="light"] .sf-modal-card h2,
html[data-theme="light"] .sf-modal-card li {
    color: #1c1710;
}
html[data-theme="light"] .sf-modal-card .muted { color: #6d6458; }
html[data-theme="light"] .sf-modal-card .btn-ghost {
    color: #1c1710;
    border-color: rgba(40, 28, 10, .16);
    background: #fff;
}
html[data-theme="light"] .sf-modal-x {
    color: #1c1710;
    border-color: rgba(40, 28, 10, .14);
    background: #fff;
}
.sf-avatar img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block;
}
.sf-avatar-drop {
    width: 140px; min-height: 140px; padding: 16px; border-radius: 50%;
    display: grid; place-items: center; gap: 6px; margin: 0 auto 8px;
}
.sf-avatar-drop img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0; }
.sf-avatar-drop .muted { font-size: 12px; }
.sf-consent-hero {
    display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-bottom: 16px;
}
.sf-consent-panel {
    background: var(--surface); border: 1px solid var(--line-soft);
    border-radius: 22px; padding: 20px 22px; box-shadow: var(--shadow);
}
.sf-consent-panel h2 { margin: 0 0 8px; font-size: 18px; }
.sf-consent-versions { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.sf-consent-versions li {
    display: flex; justify-content: space-between; gap: 10px; align-items: center;
    padding: 10px 12px; border-radius: 12px; background: rgba(212,175,112,.06);
    border: 1px solid var(--line-soft); font-size: 13px;
}
.sf-consent-versions .is-live { color: var(--ok); font-weight: 700; font-size: 11px; letter-spacing: .08em; }
.sf-consent-api {
    margin-top: 16px; padding: 14px 16px; border-radius: 16px;
    background: rgba(212,175,112,.06); border: 1px dashed var(--line);
    font-size: 12px; color: var(--muted);
}
@media (max-width: 980px) {
    .sf-consent-hero { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
    .sf-hello, .sf-hello-aside { grid-template-columns: 1fr; }
}

/* —— Premium switches & geo flags (admin) —— */
.sf-switch {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    margin: 0;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(40, 28, 10, .14);
    background: #fff;
    box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 6px 18px rgba(40, 28, 10, .05);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    user-select: none;
}
html[data-theme="dark"] .sf-switch {
    border-color: var(--line-soft);
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.sf-switch:hover {
    border-color: rgba(146, 98, 28, .45);
    box-shadow: 0 10px 28px rgba(146, 98, 28, .1);
}
.sf-switch:has(input:checked) {
    border-color: #8a5a12;
    background: linear-gradient(180deg, #f5e6c8, #efe0bc);
    box-shadow: 0 0 0 1px rgba(138, 90, 18, .25), 0 8px 22px rgba(138, 90, 18, .12);
}
html[data-theme="dark"] .sf-switch:has(input:checked) {
    border-color: rgba(212,175,112,.55);
    background: linear-gradient(180deg, rgba(212,175,112,.14), rgba(212,175,112,.06));
    box-shadow: none;
}
.sf-switch-track {
    position: relative;
    flex: 0 0 52px;
    width: 52px;
    height: 30px;
}
.sf-switch-track input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}
.sf-switch-ui {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #d7d0c4;
    border: 1px solid #b7ae9f;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.14);
    transition: background .2s ease, border-color .2s ease;
}
html[data-theme="dark"] .sf-switch-ui {
    background: rgba(255,255,255,.08);
    border-color: var(--line);
    box-shadow: inset 0 1px 3px rgba(0,0,0,.35);
}
.sf-switch-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(180deg, #fff, #f3efe6);
    border: 1px solid rgba(40, 28, 10, .12);
    box-shadow: 0 2px 8px rgba(40, 28, 10, .18);
    transition: transform .22s cubic-bezier(.2,.8,.2,1), background .2s ease, border-color .2s ease;
}
html[data-theme="dark"] .sf-switch-ui::after {
    background: linear-gradient(180deg, #fff8ea, #e8c98a);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(212,175,112,.4);
}
.sf-switch-track input:checked + .sf-switch-ui {
    background: #8a5a12;
    border-color: #6f4710;
}
html[data-theme="dark"] .sf-switch-track input:checked + .sf-switch-ui {
    background: rgba(212,175,112,.28);
    border-color: rgba(212,175,112,.6);
}
.sf-switch-track input:checked + .sf-switch-ui::after {
    transform: translateX(22px);
    background: linear-gradient(180deg, #fffdf8, #f0e2c4);
    border-color: rgba(138, 90, 18, .2);
}
html[data-theme="dark"] .sf-switch-track input:checked + .sf-switch-ui::after {
    background: linear-gradient(180deg, #fff8ea, #e8c98a);
    border-color: transparent;
}
.sf-switch-track input:focus-visible + .sf-switch-ui {
    outline: 2px solid #8a5a12;
    outline-offset: 2px;
}
html[data-theme="dark"] .sf-switch-track input:focus-visible + .sf-switch-ui {
    outline-color: rgba(212,175,112,.55);
}
.sf-switch-label {
    flex: 1;
    font-size: 14px;
    font-weight: 650;
    color: var(--text);
    line-height: 1.35;
}
.sf-switch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.sf-switch.compact {
    padding: 8px 12px;
    border-radius: 12px;
    gap: 10px;
}
.sf-switch.compact .sf-switch-track { flex-basis: 44px; width: 44px; height: 26px; }
.sf-switch.is-disabled,
.sf-switch:has(input:disabled) {
    opacity: .45;
    pointer-events: none;
    cursor: not-allowed;
}
.infra-block { margin-top: 28px; padding-top: 8px; }
.infra-block h2 { margin: 0 0 6px; font-size: 18px; }
.infra-card {
    margin-top: 14px;
    padding: 18px 18px 8px;
    border: 1px solid var(--line, rgba(212,175,112,.22));
    border-radius: 18px;
    background: rgba(255,255,255,.35);
}
html[data-theme="dark"] .infra-card { background: rgba(255,255,255,.03); }
.infra-card h3 { margin: 0 0 8px; font-size: 15px; }
.infra-card > p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.infra-card-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.infra-status { font-size: 12px; font-weight: 700; margin: 0 0 10px; }
.infra-status.is-ok { color: #2f7d4a; }
.infra-status.is-off { color: #9a6b1a; }
.geo-drops { margin: 4px 0 10px; }
.geo-drop { min-height: 150px; cursor: pointer; }
.geo-drop .geo-file { display: block; margin-top: 8px; font-weight: 700; font-size: 12px; color: var(--gold-2, #8a6424); }
.sf-switch.compact .sf-switch-ui::after { width: 18px; height: 18px; top: 3px; left: 3px; }
.sf-switch.compact .sf-switch-track input:checked + .sf-switch-ui::after { transform: translateX(18px); }
.sf-switch.compact .sf-switch-label { font-size: 13px; font-weight: 600; }

.sf-flag-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 6px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    background: rgba(255,255,255,.55);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    vertical-align: middle;
}
html[data-theme="dark"] .sf-flag-badge { background: rgba(255,255,255,.05); }
.sf-flag-badge.is-unknown { opacity: .65; }
.sf-flag { font-size: 16px; line-height: 1; }
.sf-flag-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .04em;
    color: var(--muted);
}
.sf-flag-name { color: var(--text); }

.sf-country-select {
    display: grid;
    gap: 8px;
}
.sf-country-select select {
    appearance: none;
    padding-right: 40px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--gold-2) 50%),
        linear-gradient(135deg, var(--gold-2) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.sf-fw-hero {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 16px;
    margin-bottom: 18px;
}
.sf-fw-hero-card {
    border-radius: 22px;
    border: 1px solid var(--line-soft);
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(212,175,112,.18), transparent 55%),
        linear-gradient(160deg, rgba(255,255,255,.9), rgba(248,246,242,.95));
    box-shadow: var(--shadow);
    padding: 22px 24px;
}
html[data-theme="dark"] .sf-fw-hero-card {
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(212,175,112,.16), transparent 55%),
        linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.sf-fw-hero-card h2 { margin: 0 0 6px; font-size: 22px; }
.sf-fw-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
    border: 1px solid rgba(212,175,112,.35); background: rgba(212,175,112,.12); color: var(--gold-2);
}
.sf-fw-pill.is-off { border-color: var(--line); background: rgba(0,0,0,.04); color: var(--muted); }

.sf-fw-command {
    --fw-accent: var(--gold);
    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, 1.05fr) minmax(0, 1.55fr);
    gap: 0;
    margin-bottom: 20px;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(212,175,112,.22);
    background:
        radial-gradient(90% 120% at 0% 0%, rgba(212,175,112,.22), transparent 52%),
        radial-gradient(70% 90% at 100% 100%, rgba(94,234,212,.08), transparent 48%),
        linear-gradient(145deg, rgba(255,255,255,.92), rgba(248,246,242,.88));
    box-shadow:
        0 1px 0 rgba(255,255,255,.55) inset,
        0 22px 50px rgba(80,55,20,.08);
}
html[data-theme="dark"] .sf-fw-command {
    border-color: rgba(212,175,112,.2);
    background:
        radial-gradient(90% 120% at 0% 0%, rgba(212,175,112,.18), transparent 52%),
        radial-gradient(70% 90% at 100% 100%, rgba(94,234,212,.07), transparent 48%),
        linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    box-shadow:
        0 1px 0 rgba(255,255,255,.06) inset,
        0 24px 60px rgba(0,0,0,.28);
}
.sf-fw-command::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--gold-2), var(--gold), transparent 85%);
    opacity: .9;
}
.sf-fw-command.is-standby::before {
    background: linear-gradient(180deg, var(--muted), transparent 85%);
    opacity: .5;
}
.sf-fw-command__intro {
    position: relative;
    padding: 26px 28px 24px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    border-right: 1px solid rgba(212,175,112,.14);
}
html[data-theme="dark"] .sf-fw-command__intro {
    border-right-color: rgba(255,255,255,.06);
}
.sf-fw-command__status {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sf-fw-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 0 rgba(125,211,160,.55);
    animation: sf-fw-pulse 2.2s ease-out infinite;
}
.sf-fw-command.is-standby .sf-fw-pulse {
    background: var(--muted);
    box-shadow: none;
    animation: none;
}
@keyframes sf-fw-pulse {
    0% { box-shadow: 0 0 0 0 rgba(125,211,160,.5); }
    70% { box-shadow: 0 0 0 10px rgba(125,211,160,0); }
    100% { box-shadow: 0 0 0 0 rgba(125,211,160,0); }
}
.sf-fw-command__title {
    margin: 2px 0 0;
    font-family: var(--display);
    font-size: clamp(26px, 2.4vw, 34px);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.05;
    color: var(--text);
}
.sf-fw-command__lead {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    max-width: 34ch;
}
.sf-fw-command__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.sf-fw-command__meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    background: rgba(255,255,255,.45);
    font-size: 11px;
    font-weight: 650;
    color: var(--muted);
}
html[data-theme="dark"] .sf-fw-command__meta span {
    background: rgba(255,255,255,.04);
}
.sf-fw-command__meta i { color: var(--gold); font-size: 11px; }
.sf-fw-command__meta code {
    font-size: 11px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--text);
}
.sf-fw-command__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: rgba(212,175,112,.12);
    min-height: 100%;
}
html[data-theme="dark"] .sf-fw-command__metrics {
    background: rgba(255,255,255,.06);
}
.sf-fw-metric {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 20px;
    background: rgba(255,255,255,.72);
    overflow: hidden;
}
html[data-theme="dark"] .sf-fw-metric {
    background: rgba(12,18,30,.55);
}
.sf-fw-metric::after {
    content: "";
    position: absolute;
    inset: auto -20% -40% auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--metric-glow, rgba(212,175,112,.16)), transparent 68%);
    pointer-events: none;
}
.sf-fw-metric__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid var(--metric-line, rgba(212,175,112,.28));
    background: var(--metric-bg, rgba(212,175,112,.12));
    color: var(--metric-fg, var(--gold-2));
    font-size: 15px;
}
.sf-fw-metric__body {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.sf-fw-metric__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.sf-fw-metric__value {
    font-family: var(--display);
    font-size: clamp(28px, 2.6vw, 36px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--text);
}
.sf-fw-metric.is-blocks {
    --metric-fg: #b42318;
    --metric-bg: rgba(220,80,80,.1);
    --metric-line: rgba(220,80,80,.22);
    --metric-glow: rgba(220,80,80,.14);
}
.sf-fw-metric.is-rate {
    --metric-fg: #b45309;
    --metric-bg: rgba(245,158,11,.12);
    --metric-line: rgba(245,158,11,.24);
    --metric-glow: rgba(245,158,11,.14);
}
.sf-fw-metric.is-geo {
    --metric-fg: #4338ca;
    --metric-bg: rgba(99,102,241,.1);
    --metric-line: rgba(99,102,241,.22);
    --metric-glow: rgba(99,102,241,.14);
}
.sf-fw-metric.is-malware {
    --metric-fg: #0f766e;
    --metric-bg: rgba(94,234,212,.12);
    --metric-line: rgba(94,234,212,.24);
    --metric-glow: rgba(94,234,212,.14);
}
@media (max-width: 1100px) {
    .sf-fw-command {
        grid-template-columns: 1fr;
    }
    .sf-fw-command__intro {
        border-right: 0;
        border-bottom: 1px solid rgba(212,175,112,.14);
    }
}
@media (max-width: 640px) {
    .sf-fw-command__metrics { grid-template-columns: 1fr; }
    .sf-fw-command__intro { padding: 20px 18px 18px 22px; }
    .sf-fw-metric { padding: 16px; }
}

.sf-fw-panel { margin-top: 18px; }
.sf-fw-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
}
.sf-fw-subtabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    background: rgba(255,255,255,.4);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
html[data-theme="dark"] .sf-fw-subtabs a {
    background: rgba(255,255,255,.04);
}
.sf-fw-subtabs a:hover { border-color: rgba(212,175,112,.45); }
.sf-fw-subtabs a.is-active {
    border-color: var(--gold);
    background: rgba(212,175,112,.14);
    color: var(--gold-2);
}
.sf-fw-subtabs em {
    font-style: normal;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(0,0,0,.06);
    color: var(--muted);
}
.sf-fw-subtabs a.is-active em {
    background: rgba(212,175,112,.22);
    color: var(--gold-2);
}
.sf-fw-panel .sf-pager { margin-top: 14px; }
.sf-action-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
    border: 1px solid var(--line-soft); text-transform: uppercase; letter-spacing: .04em;
}
.sf-action-chip.blocked, .sf-action-chip.honeypot, .sf-action-chip.malware_detected { background: rgba(220,80,80,.1); color: #b42318; border-color: rgba(220,80,80,.25); }
.sf-action-chip.rate_limited, .sf-action-chip.api_blocked { background: rgba(245,158,11,.12); color: #b45309; }
.sf-action-chip.geo_blocked, .sf-action-chip.bot_detected { background: rgba(99,102,241,.1); color: #4338ca; }
.sf-action-chip.good_bot, .sf-action-chip.whitelisted, .sf-action-chip.allowed { background: rgba(34,197,94,.1); color: #15803d; }

.sf-pager-meta {
    margin: 0 0 10px;
    font-size: 13px;
}
.sf-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
}
.sf-pager__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg, transparent);
    color: inherit;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.sf-pager__btn:hover { border-color: rgba(212,175,112,.55); }
.sf-pager__btn.is-disabled {
    opacity: .45;
    pointer-events: none;
}
.sf-pager__pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.sf-pager__pages a,
.sf-pager__pages span {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
}
.sf-pager__pages a {
    border: 1px solid var(--line);
    background: var(--bg, transparent);
}
.sf-pager__pages a:hover { border-color: rgba(212,175,112,.55); }
.sf-pager__pages .is-current {
    background: rgba(212,175,112,.18);
    border: 1px solid rgba(212,175,112,.55);
    color: var(--gold-2, var(--gold));
}
.sf-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
body.admin .sf-settings-tabs .tab-pill {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    background: rgba(251, 191, 36, .2);
    color: #b45309;
}
.layout-portal {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
    align-content: stretch;
}
.layout-portal > .impersonate-bar,
.layout-portal > .portal-footer {
    grid-column: 1 / -1;
}
.portal-stage {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.portal-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 28px 0;
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(10px);
}
.portal-topbar-lead {
    display: grid;
    gap: 2px;
}
.portal-topbar-lead strong { font-size: 15px; }
.portal-topbar-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}
.portal-stage > .content { flex: 0 0 auto; }
.portal-footer {
    margin-top: 0;
    padding: 14px 28px;
    border-top: 0;
    background: rgba(184, 137, 58, .05);
}
.portal-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 18px;
}
.portal-footer .footer-nav {
    display: grid;
    gap: 8px;
    align-content: start;
}
.portal-footer .footer-nav strong {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}
.portal-footer .footer-nav a { color: var(--muted); }
.portal-footer .footer-nav a:hover { color: var(--text); }
.portal-footer-copy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
    padding-top: 0;
    border-top: 0;
}

/* Premium booking */
.premium-book-card {
    border-radius: 24px;
    border: 1px solid rgba(212,175,112,.35);
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(212,175,112,.2), transparent 50%),
        linear-gradient(165deg, rgba(255,255,255,.92), rgba(248,246,242,.98));
    box-shadow: var(--shadow);
    overflow: hidden;
}
html[data-theme="dark"] .premium-book-card {
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(212,175,112,.18), transparent 50%),
        linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.premium-book-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 28px 18px;
    border-bottom: 1px solid var(--line-soft);
}
.premium-book-badge {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: rgba(212,175,112,.16);
    color: var(--gold-2, var(--gold));
    margin-bottom: 10px;
}
.premium-book-hero h2 { margin: 0 0 8px; font-size: 28px; }
.premium-book-hero p { margin: 0; max-width: 48ch; color: var(--muted); }
.premium-book-price {
    text-align: right;
    align-self: center;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid rgba(212,175,112,.4);
    background: rgba(212,175,112,.1);
}
.premium-book-price em {
    display: block;
    font-style: normal;
    font-family: var(--display);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.03em;
}
.premium-book-price span { color: var(--muted); font-size: 13px; }
.premium-book-body { padding: 22px 28px 28px; }
.premium-book-cta { width: auto; margin-top: 8px; font-size: 14px; padding: 10px 18px; }
.pay-tiles {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.pay-tiles-label {
    grid-column: 1 / -1;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}
.pay-tile {
    display: grid;
    gap: 4px;
    justify-items: center;
    text-align: center;
    padding: 14px 10px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s;
}
.pay-tile i { font-size: 22px; color: var(--gold); margin-bottom: 4px; }
.pay-tile strong { font-size: 13px; }
.pay-tile small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.pay-tile input { position: absolute; opacity: 0; pointer-events: none; }
.pay-tile:has(input:checked) {
    border-color: rgba(212,175,112,.7);
    background: rgba(212,175,112,.12);
    transform: translateY(-1px);
}
.pay-tile.is-off { opacity: .45; cursor: not-allowed; }
.bank-hint {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed var(--line);
    background: rgba(212,175,112,.06);
}
.sortable-row.is-reported {
    border-radius: 14px;
    padding: 12px;
    background: rgba(240,198,116,.1);
    border: 1px solid rgba(240,198,116,.35);
}

/* Portal premium surface */
body.portal {
    background:
        radial-gradient(90% 60% at 100% -10%, rgba(212,175,112,.16), transparent 55%),
        radial-gradient(70% 50% at 0% 100%, rgba(184,137,58,.1), transparent 50%),
        var(--bg);
}
body.portal .layout-portal {
    background: transparent;
}
body.portal .portal-sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid rgba(212,175,112,.22);
    box-shadow: 8px 0 28px rgba(40, 28, 10, .04);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px 10px 10px;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}
html[data-theme="dark"] body.portal .portal-sidebar {
    background: linear-gradient(180deg, rgba(18,22,32,.96), rgba(10,13,22,.98));
    box-shadow: none;
}
html[data-theme="light"] body.portal .portal-sidebar,
html[data-theme="light"] body.portal .sidebar.portal-sidebar {
    background: #fff;
    overflow: hidden;
}
body.portal .portal-sidebar .brand {
    display: block;
    margin: 0 2px 8px;
    padding: 2px 6px 8px;
    border-bottom: 1px solid rgba(212,175,112,.16);
}
body.portal .portal-sidebar .brand img,
body.portal .portal-sidebar .brand-mark img {
    max-height: 28px;
}
body.portal .portal-side-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 2px 8px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(212,175,112,.22);
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(212,175,112,.14), transparent 55%),
        #fffdf8;
}
html[data-theme="dark"] body.portal .portal-side-user {
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(212,175,112,.12), transparent 55%),
        rgba(255,255,255,.04);
}
body.portal .portal-side-user-meta {
    min-width: 0;
    display: grid;
    gap: 2px;
}
body.portal .portal-side-user-meta strong {
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.portal .portal-side-id {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--gold-2);
    background: rgba(212,175,112,.14);
    border: 1px solid rgba(212,175,112,.28);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.portal .portal-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
body.portal .portal-sidebar .group-label {
    margin: 8px 8px 3px;
    padding: 0 2px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-2);
}
body.portal .portal-sidebar .group-label:first-of-type {
    margin-top: 0;
}
body.portal .portal-sidebar a {
    font-weight: 600;
    font-size: 14.5px;
    border-radius: 10px;
    margin: 0 2px;
    padding: 7px 9px;
    border: 1px solid transparent;
    color: var(--muted);
    gap: 8px;
}
body.portal .portal-sidebar a:hover {
    background: rgba(212,175,112,.08);
    color: var(--text);
}
body.portal .portal-sidebar a.is-active {
    background: linear-gradient(135deg, rgba(212,175,112,.2), rgba(212,175,112,.08));
    border-color: rgba(212,175,112,.34);
    color: var(--text);
    box-shadow: none;
}
body.portal .portal-sidebar a i {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    background: rgba(212,175,112,.12);
    color: var(--gold-2);
    font-size: 12px;
}
body.portal .portal-sidebar a.is-active i {
    background: rgba(212,175,112,.22);
    color: var(--gold);
}
body.portal .portal-nav-foot {
    margin-top: auto;
    padding: 8px 2px 2px;
    border-top: 1px solid rgba(212,175,112,.16);
}
body.portal .portal-sidebar a.nav-logout,
body.portal .portal-sidebar a.nav-logout:visited,
body.portal .portal-sidebar a.nav-logout i {
    color: #c53d3d !important;
}
body.portal .portal-sidebar a.nav-logout i {
    background: rgba(220, 80, 80, .1);
}
body.portal .portal-sidebar a.nav-logout:hover {
    background: rgba(220, 80, 80, .1);
    color: #a61f1f !important;
}
body.portal .layout-portal {
    grid-template-columns: 260px 1fr;
}
.portal-side-head {
    display: block;
}
.portal-nav-close,
.portal-nav-burger,
.portal-nav-backdrop {
    display: none;
}
.portal-topbar-titles {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.sf-avatar-fallback {
    display: inline-grid;
    place-items: center;
    background: linear-gradient(160deg, rgba(212,175,112,.22), rgba(212,175,112,.08));
    color: var(--gold-2);
}
.sf-avatar-fallback .bi { display: none; }
.sf-avatar-fallback .fa-solid,
.sf-avatar-fallback .fa-regular { display: inline-block; }
.sf-avatar-drop-fallback {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: linear-gradient(160deg, rgba(212,175,112,.18), rgba(0,0,0,.03));
    color: var(--gold);
    font-size: 48px;
    line-height: 1;
}
.sf-avatar-drop-fallback .bi { display: none; }
.sf-avatar-drop.has-file .sf-avatar-drop-fallback { display: none; }
body.portal .portal-topbar {
    padding: 16px 28px 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.45));
    border-bottom: 1px solid rgba(212,175,112,.14);
}
html[data-theme="dark"] body.portal .portal-topbar {
    background: linear-gradient(180deg, rgba(16,20,30,.8), rgba(16,20,30,.35));
}
body.portal .portal-topbar .theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
}
body.portal .portal-content {
    padding: 22px 28px 28px;
}
body.portal .portal-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(212,175,112,.24);
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(212,175,112,.18), transparent 55%),
        linear-gradient(165deg, rgba(255,255,255,.92), rgba(248,246,242,.88));
    box-shadow: 0 14px 34px rgba(40, 28, 10, .05);
}
.portal-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.partner-pending-banner {
    margin-bottom: 16px;
}
.partner-dash {
    margin-top: 8px;
}
.partner-quick-code code {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(212,175,112,.1);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .06em;
}
.partner-balance {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 8px 0 10px;
    color: var(--gold-2, var(--gold));
}
.partner-copy-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: start;
}
.partner-copy-row textarea {
    min-height: 72px;
    resize: vertical;
}
.partner-link-card,
.partner-payout-card {
    margin-bottom: 0;
}
@media (max-width: 720px) {
    .partner-copy-row { grid-template-columns: 1fr; }
}
html[data-theme="dark"] body.portal .portal-hero {
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(212,175,112,.14), transparent 55%),
        linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
body.portal .portal-hero h1 {
    margin: 4px 0 8px;
    letter-spacing: -.03em;
    font-size: clamp(28px, 4vw, 40px);
}
body.portal .portal-hero .lead {
    max-width: 70ch;
    color: var(--muted);
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.55;
}
body.portal .portal-plan-line {
    margin: 0;
    color: var(--muted);
}
body.portal .portal-pay-link {
    color: #3d2a0a;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}
html[data-theme="dark"] body.portal .portal-pay-link {
    color: #f3d9a4;
}
.sf-pill-plan {
    color: #3d2a0a;
    border-color: rgba(61, 42, 10, .3);
    background: rgba(212, 175, 112, .2);
    font-weight: 700;
}
html[data-theme="light"] .sf-pill-plan {
    color: #f3e6c8;
    background: #1c1710;
    border-color: rgba(61, 42, 10, .4);
}
html[data-theme="dark"] .sf-pill-plan {
    color: #f3d9a4;
    background: rgba(212, 175, 112, .14);
    border-color: rgba(212, 175, 112, .3);
}
.sf-password-form {
    max-width: 420px;
    display: grid;
    gap: 12px;
}
.sf-password-rules {
    list-style: none;
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(212,175,112,.22);
    background: rgba(212,175,112,.06);
    display: grid;
    gap: 6px;
}
.sf-password-rules li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}
.sf-password-rules li.is-ok { color: #1f7a4d; }
.sf-password-rules li.is-bad { color: #a61f1f; }
.sf-password-rules.is-ready {
    border-color: rgba(31, 122, 77, .35);
    background: rgba(31, 122, 77, .06);
}
html[data-theme="dark"] .sf-password-rules li.is-ok { color: #5eead4; }
html[data-theme="dark"] .sf-password-rules li.is-bad { color: #f87171; }
body.portal .portal-panel {
    background: #fff;
    border: 1px solid rgba(212,175,112,.22);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(40, 28, 10, .04);
    padding: 20px 22px;
    margin-bottom: 16px;
}
html[data-theme="dark"] body.portal .portal-panel {
    background: rgba(255,255,255,.04);
    box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
body.portal .portal-panel h2 {
    margin: 0 0 12px;
    font-size: 17px;
}
body.portal .portal-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}
body.portal .portal-panel-head h2 { margin: 0; }
body.portal .portal-kpi {
    margin: 0 0 16px !important;
}
body.portal .portal-kpi .kpi {
    border-radius: 20px;
    border: 1px solid rgba(212,175,112,.2);
    background: #fff;
    box-shadow: 0 8px 20px rgba(40, 28, 10, .035);
    padding: 16px 18px;
}
html[data-theme="dark"] body.portal .portal-kpi .kpi {
    background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
}
body.portal .portal-kpi .kpi h3 {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold);
}
body.portal .portal-kpi .kpi .num {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.03em;
}
body.portal .portal-grid { margin-bottom: 4px; gap: 16px; }
body.portal .portal-banner-card .preview-stage {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(212,175,112,.12), rgba(0,0,0,.03));
    min-height: 120px;
    display: grid;
    place-items: center;
}
body.portal .chart-box {
    min-height: 280px;
    overflow: hidden;
}
body.portal .portal-panel.chart-box {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
body.portal .portal-panel.chart-box .portal-panel-head {
    flex: 0 0 auto;
}
body.portal .portal-panel.chart-box canvas {
    flex: 1 1 auto;
    width: 100% !important;
    min-height: 200px;
    max-height: none;
    display: block;
}
body.portal .portal-footer-slim {
    padding: 12px 28px 12px calc(260px + 28px);
    border-top: 0 !important;
    background: rgba(184, 137, 58, .06);
    width: 100%;
}
body.portal .portal-footer-slim .portal-footer-copy {
    border-top: 0 !important;
    padding-top: 0;
    justify-content: space-between;
    max-width: none;
    width: 100%;
    align-items: center;
}
body.portal .portal-copy-text {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(520px, 70vw);
}
body.portal .card {
    border-radius: 22px;
    border-color: rgba(212,175,112,.28);
}
body.portal .bms-toasts {
    top: 16px;
    right: 18px;
    left: auto;
    transform: none;
    width: min(380px, calc(100vw - 28px));
}
body.portal .sf-settings,
body.portal .sf-section-card {
    border-radius: 22px;
}
body.portal .portal-form-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 4px;
}
body.portal .portal-form-compact .btn-gold,
body.portal .premium-book-body > .portal-form-actions .btn-gold,
body.portal .vendor-wizard .portal-form-actions .btn-gold {
    width: auto;
    min-width: 160px;
    padding: 10px 18px;
    font-size: 14px;
}
body.portal .premium-book-cta { display: none; }

/* Dashboard drag tiles */
.dash-hint {
    margin: 0 0 12px;
    font-size: 13px;
}
.dash-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.dash-board .dash-tile.chart-box,
.dash-board .dash-tile[data-id="trend"] {
    grid-column: 1 / -1;
}
.dash-tile {
    cursor: grab;
    position: relative;
    transition: box-shadow .15s, transform .15s, border-color .15s;
}
.dash-tile:active { cursor: grabbing; }
.dash-tile.is-dragging {
    opacity: .85;
    transform: scale(1.01);
    box-shadow: 0 22px 48px rgba(40, 28, 10, .14);
    border-color: rgba(212,175,112,.55);
}
.dash-grip {
    color: var(--gold);
    margin-right: 8px;
    opacity: .55;
    font-size: 13px;
}

.portal-quota-chip {
    display: grid;
    gap: 2px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    min-width: 160px;
    text-align: right;
    align-self: start;
}
.portal-quota-chip__label {
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}
.portal-quota-chip strong { font-size: 22px; line-height: 1.1; }
.portal-quota-chip small { color: var(--muted); font-size: 12px; }
.portal-quota-chip.is-ok { border-color: rgba(46, 160, 90, .45); background: rgba(46, 160, 90, .08); }
.portal-quota-chip.is-ok strong { color: #2ea05a; }
.portal-quota-chip.is-full { border-color: rgba(200, 80, 60, .4); background: rgba(200, 80, 60, .06); }

.book-mode-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.book-mode-hero h2 { margin: 0 0 8px; font-size: 24px; }
.book-mode-hero p { margin: 0; max-width: 52ch; color: var(--muted); }
.book-mode-hero--free .premium-book-price em { color: #2ea05a; }
.book-mode-form { margin-top: 4px; }
.book-mode-hint { margin: 0; flex: 1; }
.book-mode-empty { margin-top: 8px; }
.portal-book-tabs .tab-pill {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    background: rgba(46, 160, 90, .18);
    color: #2ea05a;
}

/* Booking packages */
.pkg-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.pkg-tiles--with-included {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.pkg-tile {
    display: grid;
    gap: 4px;
    padding: 14px 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    cursor: pointer;
    text-align: center;
    position: relative;
}
.pkg-tile input { position: absolute; opacity: 0; pointer-events: none; }
.pkg-tile strong { font-size: 14px; }
.pkg-tile em { font-style: normal; font-weight: 800; font-size: 18px; color: var(--gold-2, var(--gold)); }
.pkg-tile small { color: var(--muted); font-size: 11px; }
.pkg-tile:has(input:checked),
.pkg-tile.is-featured:has(input:checked) {
    border-color: rgba(212,175,112,.7);
    background: rgba(212,175,112,.12);
}
.pkg-tile.is-included:has(input:checked) {
    border-color: rgba(46, 160, 90, .65);
    background: rgba(46, 160, 90, .12);
}
.pkg-tile.is-included em { color: #2ea05a; }
.pay-tile { padding: 12px 8px; }
.pay-tile i { font-size: 18px; }
.premium-book-cta { width: auto; }
.portal-book-tabs {
    margin: 0 28px;
    padding-top: 4px;
    gap: 4px;
}
.portal-book-tabs button i { margin-right: 6px; }
.portal-book-next {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}
.portal-embed-picker {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.portal-embed-picker label { flex: 1; min-width: 220px; }
.portal-embed-preview {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(212,175,112,.22);
    background: #fff;
}
html[data-theme="dark"] .portal-embed-preview {
    background: rgba(255,255,255,.03);
}
.portal-embed-frames {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.portal-embed-frames > div {
    display: grid;
    gap: 8px;
}
.portal-embed-frames iframe {
    border-radius: 12px;
    border: 1px solid rgba(212,175,112,.2) !important;
    max-width: 100%;
}
.portal-embed-warn {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(251, 191, 36, .1);
    border: 1px solid rgba(251, 191, 36, .28);
}
.portal-embed-codes { margin-top: 8px; }
.portal-embed-codes .sf-section-card label {
    position: relative;
}
.portal-embed-codes .btn-ghost.btn-sm {
    margin-top: 8px;
}
.portal-banner-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.portal-embed-section { margin-bottom: 20px; }
@media (max-width: 820px) {
    .portal-embed-frames { grid-template-columns: 1fr; }
    .portal-book-tabs { margin: 0 16px; }
}

.site-user-menu { margin-left: 4px; }
.site-user-menu .sf-user-chip {
    border: 1px solid var(--line);
    background: var(--surface);
}
.site-user-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-help-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.portal-help-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(212,175,112,.26);
    background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(250,246,239,.9));
    box-shadow: 0 10px 24px rgba(40, 28, 10, .04);
}
html[data-theme="dark"] .portal-help-card {
    background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.portal-help-card > i {
    color: var(--gold);
    font-size: 18px;
    margin-top: 2px;
}
.portal-help-card strong { display: block; margin-bottom: 4px; }
.portal-help-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.portal-help-card code {
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(212,175,112,.12);
}
.portal-keys-once {
    border-color: rgba(240,198,116,.55);
    background: rgba(240,198,116,.1);
}
.portal-api-docs summary {
    cursor: pointer;
    list-style: none;
}
.portal-api-docs summary::-webkit-details-marker { display: none; }
.portal-api-list {
    margin: 14px 0 8px;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}
.portal-api-list code {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(212,175,112,.1);
}
.sf-hint { font-size: 12px; color: var(--muted); margin-top: 8px; }

@media (max-width: 980px) {
    .layout-portal,
    body.portal .layout-portal {
        grid-template-columns: 1fr !important;
    }
    .portal-footer-grid, .premium-book-hero, .pay-tiles, .pkg-tiles, .dash-board, .portal-help-grid { grid-template-columns: 1fr; }
    .premium-book-price { text-align: left; }
    .portal-topbar {
        flex-wrap: nowrap;
        padding: 12px 14px !important;
        gap: 10px;
        position: sticky;
        top: 0;
        z-index: 40;
    }
    body.portal .portal-topbar-lead {
        display: flex;
        align-items: center;
        gap: 14px;
        min-width: 0;
        flex: 1;
    }
    .portal-topbar-titles {
        min-width: 0;
    }
    .portal-topbar-titles strong {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 14px;
    }
    .portal-topbar-titles .portal-id-badge {
        display: none;
    }
    .portal-plan-label { display: none; }
    body.portal .portal-topbar-meta {
        gap: 8px;
        flex-shrink: 0;
    }
    body.portal .portal-topbar-meta .sf-user-chip span:not(.sf-avatar) {
        display: none;
    }
    .portal-nav-burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 999px;
        border: 1px solid rgba(212,175,112,.28);
        background: var(--surface);
        color: var(--text);
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
    }
    .portal-nav-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 180;
        border: 0;
        margin: 0;
        padding: 0;
        background: rgba(5, 8, 14, .55);
        backdrop-filter: blur(2px);
        cursor: pointer;
    }
    .layout-portal.is-portal-nav-open .portal-nav-backdrop,
    .layout-portal.is-portal-nav-open .portal-nav-backdrop[hidden] {
        display: block;
    }
    body.portal .portal-sidebar,
    html[data-theme="light"] body.portal .portal-sidebar,
    html[data-theme="light"] body.portal .sidebar.portal-sidebar,
    html[data-theme="dark"] body.portal .portal-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 200;
        width: min(300px, 88vw) !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        transform: translateX(-105%);
        transition: transform .28s ease;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: 18px 0 48px rgba(0,0,0,.28);
        visibility: visible;
        pointer-events: auto;
    }
    /* Must beat light/dark theme sidebar selectors (same or higher specificity) */
    body.portal .layout-portal.is-portal-nav-open .portal-sidebar,
    html[data-theme="light"] body.portal .layout-portal.is-portal-nav-open .portal-sidebar,
    html[data-theme="light"] body.portal .layout-portal.is-portal-nav-open .sidebar.portal-sidebar,
    html[data-theme="dark"] body.portal .layout-portal.is-portal-nav-open .portal-sidebar {
        transform: translateX(0);
    }
    .portal-side-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin: 0 2px 8px;
        padding: 2px 2px 10px;
        border-bottom: 1px solid rgba(212,175,112,.16);
    }
    body.portal .portal-sidebar .brand {
        margin: 0;
        padding: 0;
        border: 0;
        flex: 1;
        min-width: 0;
    }
    .portal-nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 999px;
        border: 1px solid rgba(212,175,112,.28);
        background: var(--surface);
        color: var(--text);
        cursor: pointer;
        flex-shrink: 0;
    }
    body.portal .portal-stage {
        width: 100%;
        min-width: 0;
        grid-column: 1 / -1;
    }
    body.portal .portal-content {
        padding: 16px 20px 28px;
        overflow-x: hidden;
    }
    body.portal .portal-footer-slim { padding: 12px 20px; }
    body.portal .portal-content .card,
    body.portal .portal-content .glass,
    body.portal .dash-board > *,
    body.portal .sf-section-card {
        max-width: 100%;
        box-sizing: border-box;
    }
    body.portal .dash-board {
        gap: 14px;
        width: 100%;
        max-width: 100%;
    }
    body.portal .portal-panel,
    body.portal .dash-tile {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: clip;
        overflow-y: visible;
        padding: 16px;
        margin-left: 0;
        margin-right: 0;
    }
    body.portal .chart-box,
    body.portal .portal-panel.chart-box,
    body.portal .dash-tile.chart-box {
        overflow: hidden;
        min-height: 300px;
        height: 300px;
        padding-bottom: 16px;
    }
    body.portal .portal-panel.chart-box canvas {
        min-height: 0;
        height: 100% !important;
        max-width: 100%;
    }
    body.portal .portal-kpi {
        gap: 10px;
    }
    body.portal .portal-kpi .kpi {
        padding: 14px 16px;
    }
    body.portal .portal-hero {
        padding: 14px 16px;
        margin-bottom: 14px;
    }
}

@media (max-width: 900px) {
    .sf-switch-grid, .sf-fw-hero { grid-template-columns: 1fr; }
}

.grecaptcha-badge { visibility: hidden !important; }
.captcha-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.captcha-info { position: relative; display: inline-flex; }
.captcha-info button {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--gold-2);
    cursor: pointer;
    padding: 0;
}
.captcha-tip {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    width: max-content;
    max-width: 260px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    z-index: 6;
    white-space: normal;
}
.captcha-info:hover .captcha-tip,
.captcha-info:focus-within .captcha-tip { display: block; }

html[data-theme="light"] body.apple-page:has(.signup-stage.is-form),
html[data-theme="light"] body.apple-page:has(.signup-stage.is-done) {
    background: #f6f1e8;
}
html[data-theme="dark"] body.apple-page:has(.signup-stage.is-form),
html[data-theme="dark"] body.apple-page:has(.signup-stage.is-done) {
    background: #070b14;
}
body.apple-page:has(.signup-stage.is-form) .apple-section::before,
body.apple-page:has(.signup-stage.is-done) .apple-section::before { content: none; }
body.apple-page:has(.signup-stage.is-form) .apple-section.apple-section-end,
body.apple-page:has(.signup-stage.is-done) .apple-section.apple-section-end {
    min-height: 100svh;
    height: auto;
    justify-content: flex-start;
    padding: 104px 4.5vw 36px;
    gap: 14px;
    overflow: visible;
}
body.apple-page:has(.sf-admin-preview-bar):has(.signup-stage.is-form) .apple-section.apple-section-end {
    padding-top: 144px;
}
body.apple-page:has(.signup-stage.is-form) .site-footer {
    background: #070b14;
    border-top-color: rgba(255, 255, 255, .06);
    margin-top: 0;
    padding-top: 36px;
}
html[data-theme="light"] body.apple-page:has(.signup-stage.is-form) .site-footer {
    background: #f6f1e8;
    border-top-color: rgba(90, 64, 28, .12);
}
html[data-theme="light"] .signup-side-card {
    background: #fff;
    box-shadow: 0 16px 36px rgba(80, 55, 20, .08);
}
.signup-side-head {
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(212,175,112,.16);
    text-align: left;
    overflow: visible;
    position: relative;
    z-index: 40;
}
.signup-side-head .apple-copy,
.signup-side-head .signup-head-tight {
    width: 100%;
    margin: 0;
    padding-right: 36px;
    text-align: left;
}
body.apple-page:has(.signup-stage.is-form) .signup-side-head .kicker {
    margin: 0 0 4px;
    font-size: 11px;
}
body.apple-page:has(.signup-stage.is-form) .signup-side-head h1 {
    font-size: clamp(22px, 2.4vw, 28px);
    display: block;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -.03em;
    overflow: visible;
}
body.apple-page:has(.signup-stage.is-form) .signup-shell.is-form > .signup-steps {
    margin-bottom: 0;
}
body.apple-page:has(.signup-stage.is-form) .signup-stage.is-form {
    width: 100%;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}
@media (max-width: 980px) {
    body.apple-page:has(.signup-stage.is-form) .signup-stage.is-form,
    .signup-stage.is-form,
    .signup-stage {
        grid-template-columns: 1fr;
    }
}
body.apple-page:has(.signup-stage.is-form) .signup-side-card {
    padding: 20px 18px 16px;
    gap: 6px;
    overflow: visible;
}
body.apple-page:has(.signup-stage.is-form) .signup-side-card > .kicker {
    margin-top: 2px;
}
body.apple-page:has(.signup-stage.is-form) .signup-side-card h3 { font-size: 24px; }
body.apple-page:has(.signup-stage.is-form) .signup-side-card .apple-price { font-size: 24px; }
body.apple-page:has(.signup-stage.is-form) .signup-side-card ul {
    margin: 8px 0 12px;
    padding-top: 10px;
    font-size: 12px;
}
body.apple-page:has(.signup-stage.is-form) .signup-side-card li { padding: 4px 0 4px 16px; }
body.apple-page:has(.signup-stage.is-form) .signup-side-card li::before { top: 10px; }
body.apple-page:has(.signup-stage.is-form) .signup-form {
    padding: 22px 22px 18px;
    gap: 11px;
    display: grid;
    overflow: visible;
}
body.apple-page:has(.signup-stage.is-form) .signup-form .grid-2 { gap: 12px; }
body.apple-page:has(.signup-stage.is-form) .signup-form .grid-street {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 12px;
}
@media (max-width: 560px) {
    body.apple-page:has(.signup-stage.is-form) .signup-form .grid-street {
        grid-template-columns: 1fr;
    }
}
body.apple-page:has(.signup-stage.is-form) .signup-form label span {
    margin-bottom: 5px;
    font-size: 12px;
}
body.apple-page:has(.signup-stage.is-form) .signup-form input,
body.apple-page:has(.signup-stage.is-form) .signup-form select,
body.apple-page:has(.signup-stage.is-form) .signup-form textarea {
    padding: 10px 12px;
    border-radius: 12px;
}
body.apple-page:has(.signup-stage.is-form) .signup-hint {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
}
body.apple-page:has(.signup-stage.is-form) .captcha-note {
    margin-top: 4px;
    margin-bottom: 2px;
    font-size: 12px;
}
body.apple-page:has(.signup-stage.is-form) .signup-form .btn-gold {
    padding: 12px 16px;
    margin-top: 4px;
}
.signup-stage.is-form .signup-form.signup-pay {
    height: auto;
    align-self: start;
    gap: 16px;
    padding: 22px 22px 20px;
}
.signup-pay-sum {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(212, 175, 112, .18);
}
.signup-pay-sum span {
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-2);
    font-weight: 700;
}
.signup-pay-sum strong {
    font-family: var(--display);
    font-size: 22px;
    letter-spacing: -.02em;
}
.signup-pay-sum em {
    font-style: normal;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    font-family: var(--font);
}
.signup-pay-tiles {
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    gap: 10px;
}
.signup-pay-tiles .pay-tile {
    padding: 14px 10px 12px;
    border-radius: 14px;
    position: relative;
}
.signup-pay-hint {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}
.signup-pay-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}
.signup-form.signup-pay .btn-gold {
    width: auto;
    min-width: 168px;
    padding: 11px 22px;
    font-size: 14px;
    line-height: 1.2;
    border-radius: 999px;
}
.signup-stage.is-done {
    width: min(720px, 100%);
    grid-template-columns: 1fr;
    justify-items: center;
}
.signup-main.is-done {
    width: 100%;
}
.signup-success {
    width: 100%;
    padding: 36px 32px 28px;
    text-align: center;
    display: grid;
    gap: 14px;
    justify-items: center;
    border-color: rgba(212, 175, 112, .42);
    box-shadow: 0 22px 64px rgba(212, 175, 112, .16), inset 0 1px 0 rgba(243, 217, 164, .1);
    background:
        radial-gradient(ellipse 80% 50% at 50% -12%, rgba(212, 175, 112, .18), transparent 58%),
        var(--surface);
}
.signup-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 28px;
    color: #1c1710;
    background: linear-gradient(135deg, #f3d9a4, #d4af70);
    box-shadow: 0 10px 28px rgba(212, 175, 112, .35);
}
.signup-success .kicker { margin: 4px 0 0; }
.signup-success h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -.04em;
    line-height: 1.05;
}
.signup-success-lead {
    margin: 0;
    max-width: 42ch;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
}
.signup-success-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
    text-align: left;
}
.signup-success-card {
    padding: 14px 14px 12px;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 112, .22);
    background: rgba(255, 255, 255, .03);
    display: grid;
    gap: 4px;
}
.signup-success-label {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-2);
    font-weight: 700;
}
.signup-success-card strong {
    font-size: 16px;
    line-height: 1.25;
    word-break: break-word;
}
.signup-success-card small {
    color: var(--muted);
    font-size: 12px;
}
.signup-success-list {
    width: 100%;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
    display: grid;
    gap: 10px;
}
.signup-success-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line-soft);
    background: rgba(0, 0, 0, .12);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}
.signup-success-list i {
    color: var(--gold-2);
    margin-top: 2px;
    width: 16px;
    text-align: center;
}
.signup-success-list strong { color: var(--text); }
.signup-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 8px;
}
.signup-success-actions .btn-gold,
.signup-success-actions .btn-ghost {
    width: auto;
    min-width: 150px;
}
@media (max-width: 720px) {
    .signup-success { padding: 28px 18px 22px; }
    .signup-success-grid { grid-template-columns: 1fr; }
}
.signup-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    overflow: visible;
    z-index: 20;
}
.signup-info button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(212, 175, 112, .12);
    color: var(--gold-2);
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    flex: 0 0 auto;
}
.signup-tip {
    position: absolute;
    bottom: calc(100% + 10px);
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    max-width: min(260px, 80vw);
    padding: 12px 14px;
    border-radius: 14px;
    background: #121a2b;
    color: #eef3fb;
    border: 1px solid rgba(212, 175, 112, .35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease, visibility .15s ease;
}
html[data-theme="light"] .signup-tip {
    background: #fff;
    color: #1c1710;
    border-color: rgba(176, 132, 58, .28);
    box-shadow: 0 16px 36px rgba(80, 55, 20, .16);
}
.signup-tip::before {
    content: "";
    position: absolute;
    top: auto;
    bottom: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    background: inherit;
    border-right: 1px solid inherit;
    border-bottom: 1px solid inherit;
    transform: rotate(45deg);
}
.signup-info:hover .signup-tip,
.signup-info:focus-within .signup-tip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.signup-side-head .signup-info {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 70;
}
.signup-side-head .signup-tip {
    left: auto;
    right: 0;
    transform: none;
}
.signup-side-head .signup-tip::before {
    left: auto;
    right: 10px;
    margin-left: 0;
}
/* Titel-Tooltip: rechts am Icon, nicht unter die Cards */
.signup-head-tight .signup-info {
    z-index: 70;
}
.signup-head-tight .signup-tip {
    left: auto;
    right: 0;
    transform: none;
}
.signup-head-tight .signup-tip::before {
    left: auto;
    right: 10px;
    margin-left: 0;
}
/* Passwort-Tooltip: nach oben, im Formular sichtbar */
.signup-form .signup-info {
    z-index: 50;
}
.signup-form .signup-tip {
    left: 0;
    right: auto;
    transform: none;
}
.signup-form .signup-tip::before {
    left: 14px;
    margin-left: 0;
}

.a11y-fab {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 70;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: linear-gradient(180deg, #f3d9a4, #d4af70);
    color: #1c1710;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 12px 28px rgba(80, 55, 20, .22);
}
body.has-cookie-bar .a11y-fab { bottom: 128px; }
.a11y-modal[hidden] { display: none !important; }
.a11y-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(8, 10, 16, .45);
    display: grid;
    align-items: end;
    justify-items: start;
    padding: 18px;
}
.a11y-card {
    width: min(380px, calc(100vw - 36px));
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px 22px 16px;
    box-shadow: var(--shadow);
    position: relative;
    display: grid;
    gap: 10px;
}
.a11y-card h2 { margin: 0; font-size: 26px; }
.a11y-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    cursor: pointer;
}
.a11y-scoreline { margin: 0; font-size: 13px; color: var(--muted); }
.a11y-options { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.a11y-options button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    border: 1px solid var(--line-soft);
    background: transparent;
    color: var(--text);
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 700;
}
.a11y-options button i { width: 18px; color: var(--gold-2); }
.a11y-options button.is-on {
    border-color: var(--gold);
    background: rgba(212, 175, 112, .16);
}
.a11y-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.a11y-cert { display: grid; gap: 16px; margin-bottom: 72px; }
.a11y-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.a11y-metrics article {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    padding: 16px;
    display: grid;
    gap: 4px;
}
.a11y-metrics span { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.a11y-metrics strong { font-family: var(--display); font-size: 32px; }
.a11y-metrics .is-score { border-color: rgba(212, 175, 112, .45); }
.a11y-cert-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
html.a11y-font { font-size: 18px; }
html.a11y-links a { text-decoration: underline; }
html.a11y-motion *,
html.a11y-motion *::before,
html.a11y-motion *::after {
    animation: none !important;
    transition: none !important;
}
html.a11y-contrast {
    --bg: #fff;
    --bg-2: #fff;
    --surface: #fff;
    --surface-2: #fff;
    --text: #000;
    --muted: #1a1a1a;
    --gold: #5c3d00;
    --gold-2: #3d2800;
    --line: #111;
    --line-soft: #222;
}
html.a11y-contrast body { background: #fff; color: #000; }
@media (max-width: 800px) {
    .a11y-metrics { grid-template-columns: 1fr 1fr; }
}

/* Plan pending + premium Zahlungsstatus */
body.portal .plan-hero.is-pending h1 {
    letter-spacing: -.02em;
}
body.portal .plan-kicker-pending {
    color: #fbbf24;
}
body.portal .plan-pending-badge {
    margin: 10px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
body.portal .plan-card.is-pending {
    border-color: rgba(251, 191, 36, .55);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, .2), 0 14px 28px rgba(0, 0, 0, .18);
    background: linear-gradient(165deg, rgba(251, 191, 36, .12), rgba(255, 255, 255, .02));
}
body.portal .portal-kpi.is-pending-meters .kpi-pending {
    opacity: .88;
    border-style: dashed;
    border-color: rgba(251, 191, 36, .4);
}
body.portal .kpi-pending-tag {
    font-style: normal;
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8a5a12;
    font-weight: 700;
    margin-left: 4px;
}
html[data-theme="light"] body.portal .kpi-pending-tag {
    color: #f3e6c8;
    background: #1c1710;
    border-radius: 999px;
    padding: 2px 8px;
    border: 1px solid rgba(61, 42, 10, .35);
}
html[data-theme="dark"] body.portal .kpi-pending-tag {
    color: #fbbf24;
}
body.portal .meter-pending span {
    background: linear-gradient(90deg, rgba(251, 191, 36, .55), rgba(212, 175, 112, .35));
    opacity: .7;
}
body.portal .pay-status-panel {
    background: #fff;
    border-color: rgba(212, 175, 112, .24);
    color: var(--text);
}
html[data-theme="dark"] body.portal .pay-status-panel {
    background: linear-gradient(165deg, rgba(20, 18, 14, .92), rgba(12, 11, 9, .96));
    border-color: rgba(212, 175, 112, .32);
    color: #f3eee4;
}
html[data-theme="light"] body.portal .pay-status-panel h2,
html[data-theme="light"] body.portal .pay-status-panel .pay-status-amount,
html[data-theme="light"] body.portal .pay-status-panel .pay-status-plan strong {
    color: inherit;
}
html[data-theme="light"] body.portal .pay-status-panel .muted,
html[data-theme="light"] body.portal .pay-status-panel a.muted {
    color: var(--muted);
}
body.portal .pay-status-list {
    display: grid;
    gap: 12px;
}
body.portal .pay-status-card {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 112, .2);
    background: #fff;
}
html[data-theme="dark"] body.portal .pay-status-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border-color: rgba(212, 175, 112, .22);
}
body.portal .pay-status-card.pay-status-waiting,
body.portal .pay-status-card.pay-status-pending,
body.portal .pay-status-card.pay-status-reported {
    border-color: rgba(184, 137, 58, .35);
    background: linear-gradient(155deg, #fffdf8, #fff);
}
html[data-theme="dark"] body.portal .pay-status-card.pay-status-waiting,
html[data-theme="dark"] body.portal .pay-status-card.pay-status-pending,
html[data-theme="dark"] body.portal .pay-status-card.pay-status-reported {
    border-color: rgba(251, 191, 36, .4);
    background: linear-gradient(155deg, rgba(251, 191, 36, .1), rgba(255, 255, 255, .02));
}
body.portal .pay-status-card.pay-status-paid {
    border-color: rgba(94, 234, 212, .28);
}
body.portal .pay-status-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}
body.portal .pay-status-plan {
    display: grid;
    gap: 2px;
}
body.portal .pay-status-plan strong {
    font-size: 16px;
    letter-spacing: .02em;
}
body.portal .pay-status-amount {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--gold);
}
body.portal .pay-status-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    font-size: 13px;
    color: var(--muted);
}
body.portal .pay-status-meta i {
    margin-right: 4px;
    color: var(--gold-2);
}
body.portal .pay-status-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
body.portal .pay-booking-row {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}
body.portal .pay-booking-row:last-child {
    border-bottom: 0;
}
.sf-pill-waiting,
.sf-pill-reported {
    color: #8a5a12;
    border-color: rgba(138, 90, 18, .35);
    background: rgba(212, 175, 112, .16);
    font-weight: 700;
}
html[data-theme="light"] .sf-pill-waiting,
html[data-theme="light"] .sf-pill-reported,
html[data-theme="light"] .sf-pill-pending {
    color: #f3e6c8;
    border-color: rgba(61, 42, 10, .45);
    background: #1c1710;
}
html[data-theme="dark"] .sf-pill-waiting,
html[data-theme="dark"] .sf-pill-reported {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, .4);
    background: transparent;
}

body.portal .portal-id-badge,
.sf-id-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(212,175,112,.35);
    background: rgba(212,175,112,.12);
    color: var(--gold-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}
body.portal .portal-topbar-lead {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 14px;
}
@media (max-width: 980px) {
    body.portal .portal-topbar-lead {
        gap: 14px;
        flex-wrap: nowrap;
    }
}
body.portal.partner .partner-topbar-lead {
    display: flex;
    align-items: center;
}
body.portal.partner .partner-topbar-kicker {
    margin: 0;
    display: block;
    line-height: 1.2;
}
body.portal.partner .sf-avatar-fallback {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(212,175,112,.28), rgba(212,175,112,.1));
    color: #6a5428;
}
body.portal.partner .sf-avatar-fallback .sf-avatar-nopic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
body.portal.partner .sf-avatar-fallback .bi {
    display: none !important;
}
body.portal.partner .sf-avatar-fallback .fa-solid,
body.portal.partner .sf-avatar-fallback .fa-regular {
    display: none !important;
}
body.portal.partner .sf-avatar-drop-fallback {
    position: relative;
}
body.portal.partner .sf-avatar-drop-fallback .sf-avatar-nopic {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
body.portal.partner .sf-avatar-drop-fallback .bi {
    display: none !important;
}
body.portal.partner .sf-avatar-drop-fallback .fa-solid,
body.portal.partner .sf-avatar-drop-fallback .fa-regular {
    display: none !important;
}
body.portal.partner .partner-avatar-field {
    text-align: center;
    max-width: 180px;
}
body.portal.partner .partner-avatar-field .sf-avatar-drop {
    width: 140px;
    height: 140px;
    min-height: 140px;
    max-height: 140px;
    margin: 0 auto 8px;
    padding: 12px;
    gap: 0;
    overflow: hidden;
    place-content: center;
}
body.portal.partner .partner-avatar-field.is-over .sf-avatar-drop,
body.portal.partner .partner-avatar-field.has-file .sf-avatar-drop {
    border-color: var(--gold);
    background: rgba(212,175,112,.1);
}
body.portal.partner .partner-avatar-field.has-file .sf-avatar-drop-fallback {
    display: none;
}
body.portal.partner .partner-avatar-hint {
    margin: 0 0 8px;
    font-size: 12px;
    text-align: center;
}
.sf-id-chip { margin-left: 0; }
.sf-user-head small { display: block; }

body.portal .portal-empty {
    text-align: center;
    padding: 42px 28px;
    background:
        radial-gradient(90% 80% at 50% 0%, rgba(212,175,112,.16), transparent 55%),
        #fff;
}
html[data-theme="dark"] body.portal .portal-empty {
    background:
        radial-gradient(90% 80% at 50% 0%, rgba(212,175,112,.12), transparent 55%),
        rgba(255,255,255,.04);
}
body.portal .portal-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-size: 28px;
    color: var(--gold-2);
    background: linear-gradient(160deg, rgba(212,175,112,.22), rgba(212,175,112,.06));
    border: 1px solid rgba(212,175,112,.28);
}
body.portal .portal-empty h2 { margin: 0 0 8px; }
body.portal .portal-empty .lead {
    max-width: 46ch;
    margin: 0 auto 18px;
    color: var(--muted);
}
body.portal .portal-empty-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
body.portal .portal-empty-inline {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 4px;
    flex-wrap: wrap;
}
body.portal .portal-empty-inline > i {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--gold-2);
    background: rgba(212,175,112,.14);
    border: 1px solid rgba(212,175,112,.22);
    flex: 0 0 auto;
}
body.portal .portal-empty-inline strong { display: block; }
body.portal .portal-empty-inline .muted { margin: 2px 0 0; }
body.portal .portal-empty-inline .btn-ghost { margin-left: auto; }
body.portal .sf-password-card h2 { margin-top: 0; }
body.portal .sf-settings-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Public + portal cards: light theme stays bright white */
html[data-theme="light"] .glass,
html[data-theme="light"] .card,
html[data-theme="light"] .hero-card,
html[data-theme="light"] .talk-fact,
html[data-theme="light"] body.portal .kpi.glass {
    background: #fff;
    box-shadow: 0 8px 22px rgba(40, 28, 10, .04);
}
html[data-theme="light"] .site-footer {
    background: linear-gradient(180deg, transparent, rgba(184, 137, 58, .06));
}
html[data-theme="light"] body.portal .portal-hero {
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(212,175,112,.12), transparent 55%),
        #fff;
}
html[data-theme="light"] body.portal .portal-panel,
html[data-theme="light"] body.portal .pay-status-panel,
html[data-theme="light"] body.portal .pay-status-card {
    background: #fff;
}
html[data-theme="light"] body.portal .pay-status-card.pay-status-waiting,
html[data-theme="light"] body.portal .pay-status-card.pay-status-pending,
html[data-theme="light"] body.portal .pay-status-card.pay-status-reported {
    background: linear-gradient(155deg, #fffdf8, #fff);
}

/* Partner registration — two cards */
.partner-register-page {
    width: min(960px, calc(100% - 32px));
    margin: 4vh auto 48px;
}
.partner-register-intro {
    margin-bottom: 18px;
}
.partner-register-intro h1 {
    margin: 4px 0 8px;
    font-size: clamp(28px, 4vw, 36px);
}
.partner-register-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
    align-items: start;
}
.partner-register-card {
    padding: 22px 24px;
    border-radius: 22px;
    display: grid;
    gap: 12px;
}
.partner-register-card h2 {
    margin: 0;
    font-size: 22px;
}
.partner-register-note {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}
.partner-register-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}
.partner-register-fields .partner-register-full {
    grid-column: 1 / -1;
}
.partner-register-fields label {
    display: grid;
    gap: 5px;
}
.partner-register-fields span {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}
.partner-register-fields span em {
    font-style: normal;
    font-weight: 500;
    opacity: .75;
}
.partner-register-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 4px;
}
.consent-gates {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line-soft);
    background: rgba(120,120,120,.05);
    transition: background .2s ease, border-color .2s ease;
}
.consent-gates .sf-switch {
    margin: 0;
    background: transparent;
    border: 0;
    padding: 4px 2px;
    box-shadow: none;
}
.consent-gates .sf-switch:hover {
    background: transparent;
}
.consent-gates.is-ready {
    background: rgba(34, 160, 90, .14);
    border-color: rgba(34, 160, 90, .45);
}
button.consent-submit:disabled {
    opacity: .45;
    cursor: not-allowed;
}
button.consent-submit.is-ready,
button.btn-gold.consent-submit.is-ready {
    background: linear-gradient(180deg, #2fbf6e, #1f8f4d) !important;
    color: #fff !important;
    border-color: transparent !important;
}
@media (max-width: 820px) {
    .partner-register-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .partner-register-fields { grid-template-columns: 1fr; }
    .partner-register-fields .partner-register-full { grid-column: auto; }
}

/* Footer service buttons */
.footer-service-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(212,175,112,.45);
    color: var(--gold-2);
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    width: fit-content;
}
.footer-service-btn:hover {
    background: rgba(212,175,112,.1);
    color: var(--gold);
}
.footer-nav .cookie-pill.footer-service-btn {
    margin-top: 4px;
}

/* Withdrawal form */
.withdrawal-page { margin-bottom: 80px; }
.withdrawal-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 30px;
    display: grid;
    gap: 16px;
}
.withdrawal-card label small.muted,
.withdrawal-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
}
.withdrawal-street {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 12px;
}
.withdrawal-city {
    display: grid;
    grid-template-columns: 110px 1fr 1fr;
    gap: 12px;
}
.withdrawal-declare {
    margin: 4px 0 0;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    display: grid;
    gap: 12px;
}
.withdrawal-declare legend {
    padding: 0 6px;
    font-weight: 800;
    font-size: 14px;
}
.withdrawal-confirm { align-items: flex-start; }
.withdrawal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
}
@media (max-width: 720px) {
    .withdrawal-street,
    .withdrawal-city { grid-template-columns: 1fr; }
    .site-footer-grid { grid-template-columns: 1fr; }
}

/* —— Lizenz & Updates —— */
.sf-license-page { display: grid; gap: 16px; }
.sf-license-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(239, 68, 68, .28);
    background: linear-gradient(135deg, rgba(239,68,68,.1), rgba(239,68,68,.04));
}
.sf-license-banner strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b91c1c;
    font-size: 15px;
}
html[data-theme="dark"] .sf-license-banner strong { color: #fca5a5; }
.sf-license-banner p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; max-width: 62ch; }
.sf-license-hero {
    padding: 22px 22px 18px !important;
    display: grid;
    gap: 14px;
}
.sf-license-hero h1 { font-size: 30px !important; margin: 4px 0 6px !important; }
.sf-license-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sf-license-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.sf-license-stat {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    padding: 16px 18px;
    display: grid;
    gap: 6px;
    box-shadow: 0 10px 28px rgba(28, 20, 8, .05);
}
.sf-license-stat .kicker { margin: 0; }
.sf-license-stat strong {
    font-family: var(--display);
    font-size: 22px;
    letter-spacing: -.02em;
    line-height: 1.1;
}
.sf-license-stat span { color: var(--muted); font-size: 13px; }
.sf-license-stat.is-ok {
    background: rgba(16, 185, 129, .08);
    border-color: rgba(16, 185, 129, .28);
}
.sf-license-stat.is-bad {
    background: rgba(239, 68, 68, .07);
    border-color: rgba(239, 68, 68, .28);
}
.sf-license-stat.is-info {
    background: rgba(59, 130, 246, .06);
    border-color: rgba(59, 130, 246, .2);
}
.sf-license-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 16px;
    align-items: stretch;
}
.sf-license-card {
    padding: 22px 22px 18px !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 14px 36px rgba(28, 20, 8, .06);
}
.sf-license-card-head h2 {
    margin: 0 0 4px;
    font-size: 18px;
}
.sf-license-card-head.row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.sf-license-card-head .muted { margin: 0; font-size: 13px; }
.sf-license-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .02em;
}
.sf-license-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.sf-license-actions .btn-gold,
.sf-license-actions .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.sf-license-meta {
    display: grid;
    gap: 0;
    margin: 4px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}
.sf-license-meta div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(120, 100, 60, .08);
    font-size: 13px;
}
.sf-license-meta div:last-child { border-bottom: 0; }
.sf-license-meta dt { color: var(--muted); margin: 0; }
.sf-license-meta dd { margin: 0; font-weight: 650; }
.sf-license-pid { color: #dc2626; }
html[data-theme="dark"] .sf-license-pid { color: #f87171; }
.sf-license-meta-block { margin: 0; }
.sf-license-meta-block .kicker { margin-bottom: 6px; }
.sf-license-meta-block p { margin: 0 0 6px; }
.sf-license-cron code {
    display: block;
    margin: 6px 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0,0,0,.04);
    border: 1px solid var(--line-soft);
    font-size: 12px;
    word-break: break-all;
    color: var(--text);
}
html[data-theme="dark"] .sf-license-cron code {
    background: rgba(255,255,255,.04);
}
.sf-license-update-alert {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px !important;
    border-color: rgba(16, 185, 129, .32) !important;
    background: rgba(16, 185, 129, .1) !important;
}
.sf-license-update-alert strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.sf-license-update-alert .muted { margin: 4px 0 0; }
.sf-license-update-alert.is-available {
    border-color: rgba(212,175,112,.42) !important;
    background: rgba(212,175,112,.12) !important;
}
.sf-license-history-card { padding: 20px 22px !important; }
.sf-license-empty { margin: 0; }
.sf-license-history { display: grid; gap: 8px; }
.sf-license-history-item {
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255,255,255,.45);
}
html[data-theme="dark"] .sf-license-history-item {
    background: rgba(255,255,255,.03);
}
.sf-license-history-item summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    list-style: none;
}
.sf-license-history-item summary::-webkit-details-marker { display: none; }
.sf-license-history-body { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.sf-license-change-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.sf-license-change-grid ul { list-style: none; margin: 0; padding: 0; }
.sf-license-change-grid li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 4px 0;
    font-size: 13px;
    color: var(--muted);
}
.sf-license-change-grid i { color: var(--gold-2); margin-top: 3px; }
.sf-license-lock {
    border-color: rgba(239,68,68,.25) !important;
    background: rgba(239,68,68,.06);
}
.sf-license-nav-lock {
    margin: 8px 10px 16px;
    padding: 14px 12px;
    border-radius: 16px;
    border: 1px solid rgba(212,175,112,.28);
    background: rgba(212,175,112,.1);
}
.sf-license-nav-lock .kicker { margin: 0 0 6px; }
.sf-license-nav-lock p {
    margin: 0 0 12px;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    line-height: 1.45;
}
.sf-search.is-disabled { opacity: .55; pointer-events: none; }
@media (max-width: 980px) {
    .sf-license-summary,
    .sf-license-grid,
    .sf-license-change-grid { grid-template-columns: 1fr; }
    .sf-license-meta div { grid-template-columns: 1fr; gap: 2px; }
}
