* {
    box-sizing: border-box;
}

:root {
    --bg: #edf2f7;
    --ink: #132033;
    --muted: #5c6c82;
    --surface: #ffffff;
    --surface-soft: #f6f8fb;
    --line: #dbe2ea;
    --brand: #0f7bff;
    --brand-deep: #0b1730;
    --success: #10663b;
    --success-bg: #e6f8ee;
    --danger: #8f2020;
    --danger-bg: #fdeaea;
    --shadow: 0 18px 50px rgba(18, 36, 60, 0.08);
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: radial-gradient(circle at top left, #ffffff 0%, #edf2f7 45%, #e4ebf4 100%);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.app-body {
    min-height: 100vh;
}

.app-shell {
    min-height: 100vh;
    transition: transform 0.28s ease;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(7, 17, 32, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-toggle,
.menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
}

.menu-toggle {
    flex-direction: column;
    gap: 4px;
}

.brand {
    font-size: 1.18rem;
    font-weight: 700;
    color: #ffffff;
}

.topbar-context {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
}

.panel-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(15, 123, 255, 0.16);
    color: #9ec8ff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.panel-context-copy {
    min-width: 0;
}

.panel-context-copy strong,
.panel-context-copy small {
    display: block;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-context-copy small {
    color: #aab8cb;
    margin-top: 3px;
}

.topbar-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 600;
}

.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    width: min(360px, 92vw);
    height: 100vh;
    background: linear-gradient(180deg, #0b1730 0%, #0f2447 100%);
    color: #ffffff;
    transform: translateX(-104%);
    transition: transform 0.32s ease;
    box-shadow: 24px 0 70px rgba(4, 11, 24, 0.4);
    display: flex;
    flex-direction: column;
}

.app-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--panel-header-height);
    padding: calc(14px + var(--app-safe-top)) 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-kicker {
    display: block;
    color: #8ebcff;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.app-sidebar-body {
    flex: 1;
    min-height: 0;
    padding: 18px 12px calc(34px + env(safe-area-inset-bottom)) 18px;
    display: grid;
    gap: 18px;
    align-content: start;
    overflow-y: auto;
    scroll-padding-bottom: 48px;
    scrollbar-width: thin;
    scrollbar-color: rgba(142, 188, 255, 0.38) rgba(255, 255, 255, 0.04);
}

.sidebar-profile {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-profile p {
    margin: 4px 0 0;
    color: #aab8cb;
    font-size: 0.92rem;
}

.sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(15, 123, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
    padding-bottom: 32px;
}

.sidebar-section {
    display: grid;
    gap: 8px;
}

.sidebar-section-label {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 12px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(214, 226, 242, 0.58);
}

.sidebar-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 14px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #d6e2f2;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.sidebar-group-toggle:hover,
.sidebar-group-toggle.is-open {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.sidebar-group-toggle:hover {
    transform: translateX(3px);
}

.sidebar-group-icon {
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.sidebar-group-toggle.is-open .sidebar-group-icon {
    transform: rotate(45deg);
}

.sidebar-subnav {
    display: grid;
    gap: 8px;
    padding-left: 12px;
}

.sidebar-subnav[hidden] {
    display: none !important;
}

.sidebar-link {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 14px;
    border-radius: 14px;
    color: #d6e2f2;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(3px);
}

.sidebar-sublink {
    min-height: 46px;
    padding-left: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.app-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 17, 32, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    z-index: 1000;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .app-sidebar {
    transform: translateX(0);
}

body.menu-open .app-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.page {
    padding: 28px 0 48px;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 24px;
    align-items: stretch;
    padding: 42px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #d6f5e6;
    color: #0d6b45;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.hero h1,
.page-head h1,
.card h2,
.form-card h1,
.auth-split-copy h1 {
    margin: 0 0 12px;
}

.hero h1,
.auth-split-copy h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.03;
    max-width: 12ch;
}

.hero p,
.page-head p,
.card p,
.card small,
.auth-split-copy p {
    color: var(--muted);
    line-height: 1.6;
}

.actions,
.camera-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.btn-primary {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 123, 255, 0.22);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
}

.card,
.stat-card,
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.check-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.8;
}

.auth-shell {
    max-width: 1120px;
    margin: 10px auto 0;
}

.auth-split {
    display: grid;
    grid-template-columns: 1fr minmax(360px, 440px);
    gap: 22px;
    align-items: stretch;
}

.auth-split-copy,
.form-card,
.compact-stack {
    display: grid;
    gap: 16px;
}

.auth-split-copy {
    background: linear-gradient(135deg, #ffffff 0%, #f6f9fc 100%);
}

label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfd7e1;
    border-radius: 14px;
    background: #fbfcfe;
}

textarea {
    resize: vertical;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.page-head-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.panel-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #e9f2ff;
    color: #0f5cb8;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stats-grid,
.grid-two,
.grid-three {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}

.stat-card span {
    display: block;
    color: #607087;
    margin-bottom: 10px;
}

.stat-card strong {
    font-size: 1.8rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e6ebf1;
    text-align: left;
    vertical-align: top;
}

.table th {
    color: #5c6c82;
    font-size: 0.92rem;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger);
}

.alert-info {
    background: #eaf3ff;
    color: #17305c;
    border: 1px solid #c8d8f2;
}

.inline-form {
    display: grid;
    grid-template-columns: 1.3fr repeat(4, 1fr) auto;
    gap: 8px;
    margin-bottom: 10px;
}

.inline-form-compact {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.camera-shell {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px dashed #c7d3e1;
    border-radius: 16px;
    background: #f7fbff;
}

.camera-video,
.camera-preview {
    width: 100%;
    min-height: 220px;
    object-fit: cover;
    border-radius: 16px;
    background: #0e1f36;
}

.ticket-preview {
    display: grid;
    gap: 20px;
}

.ticket-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    padding: 26px;
    border-radius: 16px;
    background: #f6f8fb;
}

.ticket-preview-modal {
    position: relative;
}

.ticket-preview-modal .ticket-qr {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.ticket-meta p {
    margin: 0 0 8px;
}

.quick-grid {
    display: grid;
    gap: 14px;
}

.quick-link {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.quick-link strong {
    font-size: 1.02rem;
}

.quick-link span {
    color: var(--muted);
    font-size: 0.94rem;
}

.admin-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 24px;
    padding: 30px;
    margin-bottom: 26px;
    border-radius: 28px;
    border: 1px solid rgba(12, 40, 78, 0.08);
    background: linear-gradient(135deg, #0f2341 0%, #1b5fa7 52%, #2ac7c9 100%);
    color: #f7fbff;
    box-shadow: 0 28px 48px rgba(12, 36, 68, 0.18);
}

.admin-dashboard-hero-copy {
    display: grid;
    gap: 14px;
    align-content: center;
}

.admin-dashboard-hero-copy h2 {
    margin: 0;
    font-size: clamp(1.9rem, 2.6vw, 2.8rem);
    line-height: 1.06;
    color: #ffffff;
}

.admin-dashboard-hero-copy p {
    margin: 0;
    max-width: 56ch;
    font-size: 1rem;
    color: rgba(247, 251, 255, 0.84);
}

.admin-hero-tag {
    width: fit-content;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.admin-dashboard-hero-side {
    display: grid;
    gap: 16px;
    align-content: center;
}

.admin-mini-stat {
    padding: 22px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.admin-mini-stat strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.9rem;
    color: #ffffff;
}

.admin-mini-stat span {
    display: block;
    color: rgba(247, 251, 255, 0.84);
}

.admin-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 28px;
}

.admin-stat-card {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    min-height: 176px;
    padding: 24px;
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    border-radius: 22px 0 0 22px;
    background: rgba(11, 36, 70, 0.18);
}

.admin-stat-card span,
.admin-stat-card strong,
.admin-stat-card .metric-note {
    position: relative;
    z-index: 1;
}

.admin-stat-card span {
    margin-bottom: 12px;
    font-weight: 700;
    color: #27425e;
}

.admin-stat-card strong {
    font-size: 2rem;
    color: #13263f;
}

.admin-stat-card .metric-note {
    display: inline-flex;
    margin-top: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #26415d;
    background: rgba(255, 255, 255, 0.58);
}

.stat-sky {
    background: linear-gradient(180deg, #edf7ff 0%, #d8ebff 100%);
    border-color: #c6defb;
}

.stat-sky::before {
    background: #3193ff;
}

.stat-indigo {
    background: linear-gradient(180deg, #f2f1ff 0%, #e1ddff 100%);
    border-color: #d5cdfd;
}

.stat-indigo::before {
    background: #6857ff;
}

.stat-emerald {
    background: linear-gradient(180deg, #effef6 0%, #d8f8e6 100%);
    border-color: #c0efda;
}

.stat-emerald::before {
    background: #18a76c;
}

.stat-gold {
    background: linear-gradient(180deg, #fff8e7 0%, #ffefbf 100%);
    border-color: #f7dda2;
}

.stat-gold::before {
    background: #d88b14;
}

.stat-cyan {
    background: linear-gradient(180deg, #ebfbff 0%, #d7f5fc 100%);
    border-color: #bceaf4;
}

.stat-cyan::before {
    background: #12a2c0;
}

.stat-rose {
    background: linear-gradient(180deg, #fff1f4 0%, #ffdce5 100%);
    border-color: #f5cad7;
}

.stat-rose::before {
    background: #d34f7b;
}

.admin-recent-card {
    padding-top: 24px;
}

.admin-section-row {
    align-items: end;
    margin-bottom: 14px;
}

code {
    padding: 2px 6px;
    background: #f3f6fa;
    border-radius: 6px;
}

@media (max-width: 900px) {
    .topbar-inner,
    .hero,
    .auth-split,
    .grid-two,
    .grid-three,
    .stats-grid,
    .page-head {
        grid-template-columns: 1fr;
        display: grid;
    }

    .topbar-context {
        justify-content: flex-start;
    }

    .topbar-logout {
        display: none;
    }

    .page-head {
        align-items: start;
    }

    .page-head-actions {
        width: 100%;
    }

    .inline-form,
    .inline-form-compact {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
    }
}

.landing-body {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.96) 0%, rgba(236, 242, 248, 0.92) 34%, rgba(225, 234, 244, 0.95) 100%),
        linear-gradient(135deg, #f4f7fb 0%, #e7eef6 100%);
}

.marketing-nav {
    position: sticky;
    top: 0;
    z-index: 25;
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: none;
}

.marketing-nav-inner,
.marketing-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
}

.marketing-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
}

.marketing-brand span:last-child {
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.4px;
}



.marketing-brand-logo {
    display: inline-flex;
    align-items: center;
    height: 38px;
}

.marketing-brand-logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}


.marketing-nav-links,
.marketing-nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.marketing-nav-links a {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 600;
}

.marketing-nav-links a:hover {
    color: var(--brand-deep);
    background: rgba(15, 123, 255, 0.08);
}

.marketing-main {
    padding: 92px 0 56px;
}

.native-android-webview.guest-marketing-header .marketing-nav {
    display: none;
}

.native-android-webview.guest-marketing-header .marketing-main {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(22px + env(safe-area-inset-top)) 0 calc(28px + env(safe-area-inset-bottom));
}

.native-android-webview.guest-marketing-header .marketing-main > .container {
    width: min(100%, calc(100% - 32px));
}

.native-android-webview.guest-marketing-header .auth-shell-single {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.native-android-webview.guest-marketing-header .auth-login-card {
    width: min(100%, 380px);
    margin: 0 auto;
}

.marketing-hero {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 28px;
    align-items: stretch;
    padding: 34px 0 14px;
}

.marketing-copy,
.marketing-stage,
.marketing-band,
.flow-card,
.cta-band {
    border: 1px solid rgba(19, 32, 51, 0.08);
    box-shadow: var(--shadow);
}

.marketing-copy {
    padding: 34px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 249, 253, 0.94) 100%);
}

.marketing-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(2.5rem, 5vw, 4.9rem);
    line-height: 1.02;
    max-width: 11ch;
}

.marketing-lead {
    max-width: 60ch;
    font-size: 1.05rem;
    color: var(--muted);
}

.marketing-actions {
    margin: 28px 0 0;
}

.marketing-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.kpi-tile {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid rgba(15, 123, 255, 0.08);
}

.kpi-tile strong {
    font-size: 1.3rem;
    color: var(--brand-deep);
}

.kpi-tile span {
    color: var(--muted);
    line-height: 1.5;
}

.marketing-stage {
    display: grid;
    gap: 16px;
    padding: 24px;
    border-radius: 32px;
    background: linear-gradient(160deg, #132033 0%, #0f2f57 100%);
    color: #ffffff;
}

.stage-card {
    display: grid;
    gap: 10px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.stage-card-primary {
    padding: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.stage-card h2,
.stage-card p,
.stage-card span,
.stage-card strong,
.stage-kicker {
    color: inherit;
}

.stage-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(184, 214, 255, 0.86);
}

.stage-grid,
.feature-grid,
.marketing-flow {
    display: grid;
    gap: 18px;
}

.stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.marketing-band,
.marketing-flow,
.marketing-cta {
    margin-top: 24px;
}

.marketing-band {
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.88);
}

.marketing-band-copy {
    margin-bottom: 20px;
}

.marketing-band-copy h2,
.flow-card h2,
.cta-band h2 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.04;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.flow-card {
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
}

.feature-card strong,
.flow-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.06rem;
}

.feature-card p,
.flow-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.flow-list {
    margin: 18px 0 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.9;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    border-radius: 32px;
    background: linear-gradient(135deg, #0b1730 0%, #154a88 100%);
    color: #ffffff;
}

.cta-band p,
.cta-band .eyebrow,
.cta-band h2 {
    color: inherit;
}

.marketing-footer {
    border-top: 1px solid rgba(19, 32, 51, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.marketing-footer-inner {
    color: var(--muted);
}

@media (max-width: 900px) {
    .marketing-hero,
    .stage-grid,
    .feature-grid,
    .marketing-flow,
    .marketing-kpis,
    .cta-band {
        grid-template-columns: 1fr;
        display: grid;
    }

    .marketing-nav-inner,
    .marketing-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .marketing-nav-links,
    .marketing-nav-actions {
        flex-wrap: wrap;
    }

    .marketing-copy,
    .marketing-stage,
    .marketing-band,
    .flow-card,
    .cta-band {
        padding: 22px;
        border-radius: 24px;
    }

    .marketing-copy h1 {
        max-width: 100%;
    }
}
.guest-topbar-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.guest-topbar-link,
.topbar-guest-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
}

.guest-topbar-link {
    color: #d6dfeb;
}

.guest-topbar-link.is-active,
.guest-topbar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.topbar-guest-cta {
    background: #0f7bff;
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(15, 123, 255, 0.22);
}

.area-guest .topbar-inner {
    grid-template-columns: auto 1fr auto;
}

.auth-shell {
    max-width: 1180px;
    margin: 24px auto 0;
}

.auth-split {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
    gap: 28px;
}

.auth-split-copy,
.auth-split .form-card {
    align-content: start;
}

.auth-split-copy {
    padding: 30px;
}

.auth-split-copy h1 {
    font-size: clamp(2.3rem, 4vw, 4.5rem);
    line-height: 0.98;
    max-width: 9ch;
}

.auth-split .form-card {
    padding: 30px;
}

.auth-split .form-card h1 {
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.02;
    margin-bottom: 6px;
}

.auth-form-note {
    margin: -4px 0 6px;
    color: var(--muted);
    line-height: 1.6;
}

.auth-mini-card {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
}

.auth-mini-card strong {
    font-size: 1.05rem;
}

.auth-mini-card span {
    color: var(--muted);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .guest-topbar-nav {
        display: none;
    }

    .topbar-guest-cta {
        display: none;
    }

    .auth-shell {
        margin-top: 18px;
    }

    .auth-split .form-card,
    .auth-split-copy {
        padding: 22px;
    }

    .auth-split-copy h1 {
        max-width: 100%;
    }
}
.no-topbar .page-standalone {
    padding-top: 40px;
}

.no-topbar .public-site-header + .page-standalone {
    padding-top: 92px;
}

.no-topbar .auth-shell {
    margin-top: 0;
}
.btn-warning {
    background: #fff4db;
    color: #8a5800;
    border-color: #f0d08d;
}

.btn-danger {
    background: #fff0f0;
    color: #9b1f1f;
    border-color: #f0b7b7;
}

.btn-small {
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 18px;
}

.card-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.results-copy,
.table-subline {
    color: var(--muted);
    font-size: 0.92rem;
}

.table-subline {
    margin-top: 4px;
}

.table-wrap {
    overflow-x: auto;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-danger-form {
    margin: 0;
}

.compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-table th,
.compact-table td {
    padding-top: 10px;
    padding-bottom: 10px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-trial {
    background: #eef5ff;
    color: #0f5cb8;
}

.status-active,
.status-approved,
.status-paid {
    background: #e8f8ee;
    color: #0f6b3a;
}

.status-suspended,
.status-cancelled,
.status-expired,
.status-inactive {
    background: #fff0f0;
    color: #9b1f1f;
}

.admin-grid-top {
    align-items: start;
}

.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(7, 17, 32, 0.55);
}

.modal[hidden] {
    display: none;
}

.modal-card {
    width: min(720px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(10, 22, 38, 0.24);
}

.modal-card-wide {
    width: min(980px, 100%);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 16px;
    border-bottom: 1px solid #e8edf3;
}

.modal-head h2 {
    margin: 0;
}

.modal-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #f3f6fa;
    color: var(--ink);
    font-size: 1.3rem;
    cursor: pointer;
}

.modal-body {
    padding: 22px 24px 24px;
}

.stack-form {
    display: grid;
    gap: 18px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .search-form,
    .compact-grid,
    .table-actions,
    .card-toolbar,
    .modal-actions {
        grid-template-columns: 1fr;
        display: grid;
    }

    .modal {
        padding: 12px;
    }

    .modal-card,
    .modal-card-wide {
        width: 100%;
        max-height: calc(100vh - 24px);
        border-radius: 20px;
    }
}
.topbar-inner-admin {
    grid-template-columns: auto 1fr auto;
}

.topbar-admin-spacer {
    min-height: 1px;
}

.simple-page-head {
    margin-bottom: 18px;
}

.simple-page-head h1 {
    margin-bottom: 6px;
}

.admin-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-actions-line {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.list-card-block {
    margin-top: 18px;
}

.search-form-inline {
    margin-bottom: 0;
    min-width: min(460px, 100%);
}

.autocomplete-field {
    position: relative;
}

.autocomplete-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 35;
    display: grid;
    gap: 2px;
    max-height: 240px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #d8e2f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 44px rgba(10, 22, 38, 0.18);
}

.autocomplete-menu[hidden] {
    display: none !important;
}

.autocomplete-option {
    width: 100%;
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.autocomplete-option:hover,
.autocomplete-option.is-active {
    background: #eef5ff;
}

.autocomplete-option strong {
    font-size: 0.98rem;
}

.autocomplete-option small {
    color: var(--muted);
    font-size: 0.83rem;
}

.search-form-autocomplete {
    min-width: min(280px, 100%);
    flex: 1 1 280px;
}

.monthly-payments-page-head .page-head-actions .btn {
    min-width: 0;
}

.user-summary-table td[data-label]::before {
    content: none;
}

.user-summary-table .table-actions {
    justify-content: flex-start;
}

.user-management-table td[data-label]::before {
    content: none;
}

.user-list-stack {
    display: grid;
    gap: 14px;
}

.user-list-card {
    display: grid;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid #e4ebf3;
    border-radius: 22px;
    background: #fbfdff;
}

.user-list-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.user-list-field {
    display: grid;
    gap: 6px;
}

.user-list-label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.user-list-status {
    display: grid;
    gap: 6px;
    justify-items: start;
}

.user-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.toggle-field {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.toggle-field input {
    width: 20px;
    height: 20px;
}

.category-billing-mode {
    display: grid;
    gap: 10px;
}

.category-billing-mode > span {
    font-weight: 700;
}

.category-billing-options {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
}

.category-billing-option {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #cfd7e1;
    border-radius: 14px;
    background: #fbfcfe;
    font-weight: 700;
}

.category-billing-option span {
    font-weight: 700;
}

.category-billing-option input {
    width: auto;
    margin: 0;
    flex: 0 0 auto;
}

.park-list-card .btn-secondary,
.modal-actions .btn-secondary,
.search-form-inline .btn-secondary,
.table-actions .btn-secondary {
    background: #eef5ff;
    color: #123b70;
    border-color: #c9d8ec;
}

.usage-filter-form {
    gap: 18px;
    align-items: flex-end;
}

.usage-filter-form label {
    flex: 1 1 320px;
}

.usage-filter-form .btn {
    margin-top: 10px;
}

.category-page-lead,
.category-helper-text,
.category-modal-subtitle {
    margin: 0;
    color: var(--muted);
}

.category-billing-badge {
    text-transform: none;
    letter-spacing: 0.01em;
}

.category-billing-badge-full {
    background: #eef5ff;
    color: #0f5cb8;
}

.category-billing-badge-fraction {
    background: #e8fbef;
    color: #117a4b;
}

@media (max-width: 900px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions-line {
        justify-content: stretch;
    }

    .search-form-inline {
        min-width: 100%;
    }
}
.page .container > * + * {
    margin-top: 28px;
}

.simple-page-head {
    margin-bottom: 0;
    padding: 2px 4px;
}

.simple-page-head h1 {
    margin: 0;
}

.simple-page-head p {
    display: none;
}

.metric-note {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.empty-state {
    display: grid;
    gap: 8px;
    padding: 22px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
    color: var(--muted);
    text-align: center;
}


.billing-shell {
    max-width: 1040px;
    margin: 0 auto;
}

.billing-single-card {
    display: grid;
    gap: 28px;
    padding: 30px;
}

.billing-single-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.billing-single-head h1 {
    margin: 0 0 10px;
}

.billing-test-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff2cf;
    color: #9b6600;
    font-weight: 800;
    white-space: nowrap;
}

.billing-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 24px;
    align-items: start;
}

.billing-summary-block,
.billing-action-box {
    display: grid;
    gap: 18px;
}

.billing-action-box {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(17, 74, 142, 0.12);
    background: linear-gradient(180deg, #eef6ff 0%, #dfefff 100%);
}

.billing-inline-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(21, 113, 229, 0.12);
    color: #0f5cb8;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.billing-action-box strong {
    font-size: 1.3rem;
    color: #12263f;
}

.billing-action-box p,
.billing-modal-note {
    margin: 0;
}

.billing-open-button {
    min-height: 54px;
}

.billing-support-grid {
    margin-top: 2px;
}

.compact-empty-state {
    padding: 18px;
}

.billing-muted {
    color: var(--muted);
}

.billing-info-list {
    display: grid;
    gap: 12px;
}

.billing-plan-list {
    display: grid;
    gap: 12px;
}

.billing-plan-list-title {
    font-size: 1rem;
    color: #12263f;
}

.billing-plan-option {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    padding: 18px 56px 18px 18px;
    border-radius: 18px;
    border: 1px solid rgba(17, 74, 142, 0.12);
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    font-weight: 400;
}

.billing-plan-option:hover {
    border-color: rgba(15, 123, 255, 0.28);
    box-shadow: 0 16px 28px rgba(15, 52, 96, 0.1);
    transform: translateY(-2px);
}

.billing-plan-option.is-selected {
    border-color: rgba(15, 123, 255, 0.48);
    box-shadow: 0 18px 28px rgba(15, 52, 96, 0.12);
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.billing-plan-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    margin: 0;
}

.billing-plan-option::after {
    content: '';
    position: absolute;
    top: 18px;
    right: 18px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(15, 92, 184, 0.28);
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.billing-plan-option.is-selected::after {
    border-color: #0f7bff;
    box-shadow: inset 0 0 0 4px #ffffff;
    background: #0f7bff;
}

.billing-plan-copy {
    display: grid;
    gap: 8px;
}

.billing-plan-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff1c7 0%, #ffd978 100%);
    color: #8a5600;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.billing-plan-current-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f1ff;
    color: #0f5cb8;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.billing-plan-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    padding-right: 18px;
}

.billing-plan-option-featured {
    border-color: rgba(35, 123, 255, 0.28);
    background: linear-gradient(135deg, #eef6ff 0%, #fff8df 100%);
    box-shadow: 0 18px 32px rgba(15, 92, 184, 0.12);
}

.billing-plan-option-featured:hover {
    border-color: rgba(35, 123, 255, 0.44);
    box-shadow: 0 22px 36px rgba(15, 92, 184, 0.16);
}

.billing-plan-option-featured.is-selected {
    border-color: rgba(15, 123, 255, 0.62);
    background: linear-gradient(135deg, #e8f3ff 0%, #ffe9a9 100%);
    box-shadow: 0 24px 40px rgba(15, 92, 184, 0.2);
}

.billing-plan-copy strong {
    font-size: 1.18rem;
    color: #12263f;
}

.billing-plan-price {
    color: #0f5cb8;
    font-weight: 700;
    font-size: 1.02rem;
}

.billing-plan-copy small {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.billing-methods {
    display: grid;
    gap: 12px;
}

.billing-method-option {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    padding: 16px 52px 16px 16px;
    border-radius: 18px;
    border: 1px solid rgba(17, 74, 142, 0.12);
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    font-weight: 400;
}

.billing-method-option:hover {
    border-color: rgba(15, 123, 255, 0.28);
    box-shadow: 0 12px 22px rgba(15, 52, 96, 0.08);
}

.billing-method-option.is-selected {
    border-color: rgba(15, 123, 255, 0.48);
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
    box-shadow: 0 16px 26px rgba(15, 52, 96, 0.12);
}

.billing-method-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    margin: 0;
}

.billing-method-option::after {
    content: '';
    position: absolute;
    top: 18px;
    right: 18px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(15, 92, 184, 0.28);
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.billing-method-option.is-selected::after {
    border-color: #0f7bff;
    box-shadow: inset 0 0 0 4px #ffffff;
    background: #0f7bff;
}

.billing-method-copy {
    display: grid;
    gap: 6px;
}

.billing-method-copy strong {
    font-size: 1rem;
    color: #12263f;
}

.billing-method-copy small {
    color: var(--muted);
    line-height: 1.45;
}

.billing-pix-panel {
    display: grid;
    gap: 14px;
}

.billing-pix-box {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(17, 74, 142, 0.12);
}

.billing-pix-box p {
    margin: 0;
}

.billing-pix-box code {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    background: #0f172a;
    color: #f8fafc;
    font-size: 0.94rem;
    line-height: 1.45;
    word-break: break-all;
}

.billing-pix-qr {
    display: grid;
    place-items: center;
    min-height: 196px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px dashed rgba(17, 74, 142, 0.18);
}

.billing-pix-qr canvas,
.billing-pix-qr img {
    display: block;
    max-width: 100%;
    height: auto;
}

.billing-info-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-soft);
}

.billing-info-line strong,
.billing-info-line span {
    margin: 0;
}

.billing-modal-card {
    width: min(1100px, 100%);
}

.billing-modal-body {
    display: block;
}

@media (max-width: 900px) {
    .dashboard-actions,
    .billing-summary-grid,
    .billing-single-head {
        grid-template-columns: 1fr;
        display: grid;
    }

    .billing-single-card {
        padding: 22px;
    }

    .billing-info-line {
        align-items: flex-start;
        flex-direction: column;
    }
}
@media (max-width: 1100px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Billing page refresh */
.billing-shell {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: none;
    min-height: calc(100vh - 28px);
    padding: 0 24px 24px;
    box-sizing: border-box;
}

.billing-shell::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at top right, rgba(255, 138, 0, 0.1), transparent 22%),
        linear-gradient(180deg, #14181f 0%, #0f1319 100%);
}

.billing-single-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: calc(100vh - 52px);
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(255, 138, 0, 0.14), transparent 24%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.16), transparent 28%),
        linear-gradient(180deg, #050505 0%, #0c1220 100%);
    box-shadow: 0 28px 60px rgba(8, 15, 28, 0.28);
}

.billing-single-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 46%);
}

.billing-single-head {
    position: relative;
}

.billing-single-head h1 {
    color: #f8fafc;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
}

.billing-test-chip {
    background: rgba(255, 173, 51, 0.12);
    border: 1px solid rgba(255, 196, 94, 0.24);
    color: #ffd166;
}

.billing-summary-block {
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
}

.billing-action-box {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(255, 138, 0, 0.18), transparent 24%),
        linear-gradient(180deg, rgba(13, 25, 46, 0.96) 0%, rgba(9, 18, 33, 0.96) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.billing-inline-badge {
    padding: 10px 18px;
    background: linear-gradient(90deg, #ff8a00, #ff5a00);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(255, 100, 0, 0.25);
    font-size: 0.8rem;
}

.billing-action-box strong,
.billing-plan-list-title,
.billing-plan-copy strong,
.billing-method-copy strong,
.billing-info-line strong {
    color: #f8fafc;
}

.billing-action-box p,
.billing-pix-box p,
.billing-method-copy small,
.billing-plan-copy small,
.billing-support-grid .quick-link span,
.billing-muted,
.billing-info-line span {
    color: rgba(226, 232, 240, 0.8);
}

.billing-plan-list {
    gap: 14px;
}

.billing-plan-option,
.billing-method-option {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.billing-plan-option {
    padding: 20px 22px;
    border-radius: 22px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.billing-method-option {
    padding: 18px 20px;
}

.billing-plan-option:hover,
.billing-method-option:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.24);
}

.billing-plan-option.is-selected {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 22px 40px rgba(2, 6, 23, 0.32);
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(17, 35, 61, 0.96) 0%, rgba(10, 23, 43, 0.96) 100%);
}

.billing-method-option.is-selected {
    border-color: rgba(255, 138, 0, 0.42);
    background: linear-gradient(180deg, rgba(255, 138, 0, 0.16) 0%, rgba(255, 90, 0, 0.1) 100%);
    box-shadow: 0 18px 30px rgba(255, 94, 0, 0.14);
}

.billing-plan-option::after,
.billing-method-option::after {
    content: none;
}

.billing-plan-price {
    color: #ffd7b0;
}

.billing-plan-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.billing-plan-current-badge {
    background: rgba(56, 189, 248, 0.16);
    color: #9bdcff;
}

.billing-plan-option-featured {
    border-color: rgba(255, 164, 84, 0.38);
    background: linear-gradient(135deg, #ff8a00 0%, #ff5a00 100%);
    box-shadow: 0 22px 44px rgba(255, 94, 0, 0.28);
}

.billing-plan-option-featured:hover {
    border-color: rgba(255, 196, 94, 0.58);
    box-shadow: 0 28px 48px rgba(255, 94, 0, 0.34);
}

.billing-plan-option-featured.is-selected {
    border-color: rgba(255, 224, 185, 0.72);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 24%),
        linear-gradient(135deg, #ff8a00 0%, #ff5a00 100%);
    box-shadow: 0 32px 54px rgba(255, 94, 0, 0.4);
}

.billing-plan-option-featured .billing-plan-badge,
.billing-plan-option-featured .billing-plan-current-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.billing-plan-option-featured .billing-plan-copy strong,
.billing-plan-option-featured .billing-plan-price,
.billing-plan-option-featured .billing-plan-copy small {
    color: rgba(255, 247, 237, 0.96);
}

.billing-info-line {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.billing-pix-box {
    gap: 10px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.billing-pix-qr {
    border: 1px dashed rgba(255, 138, 0, 0.38);
}

.billing-support-grid .quick-link {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.billing-support-grid .quick-link strong {
    color: #f8fafc;
}

.billing-whatsapp-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(74, 222, 128, 0.18);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.16) 0%, rgba(22, 163, 74, 0.1) 100%);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.billing-whatsapp-link:hover {
    transform: translateY(-2px);
    border-color: rgba(74, 222, 128, 0.34);
    box-shadow: 0 18px 32px rgba(22, 101, 52, 0.18);
}

.billing-whatsapp-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.28);
}

.billing-whatsapp-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.billing-whatsapp-copy {
    display: grid;
    gap: 4px;
}

.billing-whatsapp-copy strong {
    color: #f8fafc;
    font-size: 0.98rem;
    line-height: 1.35;
}

.billing-whatsapp-copy small {
    color: rgba(220, 252, 231, 0.86);
    font-size: 0.9rem;
}

@media (max-width: 700px) {
    .billing-shell {
        min-height: auto;
        padding: 0 14px 18px;
    }

    .billing-single-card {
        min-height: calc(100vh - 34px);
        padding: 24px;
        border-radius: 24px;
    }

    .billing-summary-block,
    .billing-action-box {
        padding: 20px;
    }

    .billing-whatsapp-link {
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .admin-dashboard-hero,
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-hero {
        padding: 24px;
    }

    .admin-dashboard-hero-side {
        grid-template-columns: 1fr;
    }
}
.topbar-park-spacer {
    min-height: 1px;
}

.status-warning {
    background: #fff7e0;
    color: #9a6400;
}

.is-disabled {
    pointer-events: none;
    opacity: 0.7;
}

.park-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
    padding: 28px;
    border: 0;
    background: linear-gradient(135deg, #11203c 0%, #0f7bff 52%, #55c7ff 100%);
}

.park-dashboard-hero-single {
    grid-template-columns: 1fr;
}

.park-dashboard-hero-copy {
    display: grid;
    gap: 12px;
}

.park-dashboard-hero-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    line-height: 1.04;
}

.park-dashboard-hero-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.park-hero-actions {
    display: grid;
    gap: 12px;
}

.operation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.operation-card {
    display: grid;
    gap: 12px;
    min-height: 220px;
    padding: 24px;
    border-radius: 28px;
    color: #ffffff;
    box-shadow: 0 24px 48px rgba(18, 36, 60, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.operation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 58px rgba(18, 36, 60, 0.22);
}

.operation-card-entry {
    background: linear-gradient(135deg, #0f7bff 0%, #49b5ff 100%);
}

.operation-card-exit {
    background: linear-gradient(135deg, #0f2341 0%, #195d9d 100%);
}

.operation-card-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.operation-card strong {
    font-size: clamp(1.85rem, 3.4vw, 2.7rem);
    line-height: 1;
}

.operation-card p {
    margin: 0;
    max-width: 26ch;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.55;
}

.park-metric-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.park-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.compact-metrics-grid {
    margin-top: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.park-metric-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 8px;
    padding: 22px;
    border-radius: 24px;
    color: #11203c;
    box-shadow: 0 18px 40px rgba(18, 36, 60, 0.08);
}

.park-metric-card-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    pointer-events: auto;
}

.park-metric-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(15, 34, 62, 0.16);
}

.park-metric-card-link:focus-visible {
    outline: 3px solid rgba(15, 123, 255, 0.35);
    outline-offset: 4px;
}

.park-metric-card span,
.park-metric-card small {
    position: relative;
    z-index: 1;
}

.park-metric-card strong {
    position: relative;
    z-index: 1;
    font-size: 1.8rem;
    line-height: 1;
}

.park-metric-card::after {
    content: '';
    position: absolute;
    inset: auto -28px -38px auto;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.26);
    pointer-events: none;
}

.tone-blue {
    background: linear-gradient(135deg, #dfefff 0%, #b7d4ff 100%);
}

.tone-cyan {
    background: linear-gradient(135deg, #d9fbff 0%, #a9eef8 100%);
}

.tone-emerald {
    background: linear-gradient(135deg, #dff9ea 0%, #b5efca 100%);
}

.tone-amber {
    background: linear-gradient(135deg, #fff2d9 0%, #ffdca6 100%);
}

.tone-rose {
    background: linear-gradient(135deg, #ffe3eb 0%, #ffc3d5 100%);
}

.tone-indigo {
    background: linear-gradient(135deg, #ece8ff 0%, #d2c9ff 100%);
}

.park-dashboard-grid,
.park-dashboard-actions {
    margin-top: 0;
}

.park-section-card,
.park-list-card,
.park-form-block,
.ticket-inline-card {
    margin-top: 22px;
}

.park-due-list {
    display: grid;
    gap: 14px;
}

.park-due-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid #e4ebf3;
    border-radius: 18px;
    background: #fbfdff;
}

.entry-single-card {
    margin-top: 18px;
}

.entry-single-card .camera-shell {
    margin-bottom: 10px;
}

.park-admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .park-dashboard-hero,
    .park-metrics-grid,
    .compact-metrics-grid,
    .park-admin-grid,
    .operation-grid {
        grid-template-columns: 1fr;
    }

    .park-due-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .park-hero-actions {
        grid-template-columns: 1fr;
    }
}

.app-sidebar-body::-webkit-scrollbar {
    width: 10px;
}

.app-sidebar-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.app-sidebar-body::-webkit-scrollbar-thumb {
    background: rgba(142, 188, 255, 0.38);
    border-radius: 999px;
    border: 2px solid rgba(15, 36, 71, 0.86);
}

.feedback-modal-card {
    width: min(460px, 100%);
}

.feedback-modal-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2157a5;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.qr-modal-card {
    width: min(760px, 100%);
}

.qr-modal-body {
    display: grid;
    gap: 16px;
    padding: 24px;
}

.qr-scanner-video {
    display: block;
    width: 100%;
    min-height: 320px;
    max-height: 56vh;
    border-radius: 22px;
    object-fit: cover;
    background: linear-gradient(135deg, #0f1f3b 0%, #162b4f 100%);
}

.qr-scanner-status {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f4f7fb;
    color: #42526b;
    line-height: 1.5;
}

.modal-open .topbar {
    top: 0;
}

@media (max-width: 900px) {
    .app-sidebar-body {
        padding-right: 10px;
    }

    .qr-scanner-video {
        min-height: 280px;
    }
}
.fee-breakdown-note {
    margin-top: -2px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f4f8ff;
    color: #23436f;
    line-height: 1.55;
}

.exit-pix-panel {
    display: grid;
    gap: 12px;
    margin-top: 2px;
}

.exit-pix-box {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #d7e7ff;
}

.exit-pix-box p,
.exit-pix-box small {
    margin: 0;
}

.exit-pix-amount-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #d9e7ff;
    color: #23436f;
}

.exit-pix-amount-line span {
    font-size: 0.96rem;
    font-weight: 700;
}

.exit-pix-amount-line strong {
    font-size: 1.28rem;
    line-height: 1;
    color: #0b1b34;
}

.exit-pix-code {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    background: #0f172a;
    color: #f8fafc;
    font-size: 0.83rem;
    line-height: 1.6;
    word-break: break-all;
    white-space: pre-wrap;
}

.exit-pix-code[hidden] {
    display: none !important;
}

.exit-pix-qr {
    min-height: 196px;
}

.exit-pix-warning {
    margin: 0;
}

.exit-pix-modal-card {
    width: min(520px, 100%);
}

.exit-pix-modal-body {
    display: grid;
    gap: 16px;
}

.exit-pix-actions {
    margin-top: 2px;
}

@media (max-width: 640px) {
    .exit-pix-amount-line {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    .app-sidebar-body {
        padding-bottom: calc(110px + env(safe-area-inset-bottom));
    }

    .sidebar-nav {
        padding-bottom: 56px;
    }
}
/* auth-shell-login-fix */
@media (max-width: 900px) {
    .auth-shell {
        width: min(100%, calc(100% - 24px));
        margin: 16px auto 0;
    }

    .auth-split {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px;
        align-items: start;
    }

    .auth-split > * {
        min-width: 0;
    }

    .auth-split .form-card {
        order: 1;
        width: 100%;
        padding: 22px;
    }

    .auth-split-copy {
        order: 2;
        width: 100%;
        padding: 20px;
        overflow: hidden;
    }

    .auth-split-copy h1,
    .auth-split .form-card h1 {
        max-width: 100%;
        font-size: clamp(1.95rem, 8vw, 2.6rem);
        line-height: 1.02;
    }

    .auth-form-note,
    .auth-split-copy p {
        font-size: 1.02rem;
    }

    .quick-grid {
        gap: 12px;
    }

    .quick-link,
    .auth-mini-card {
        padding: 16px;
        border-radius: 18px;
    }
}
.guest-topbar-nav-back {
    justify-content: flex-start;
}

.guest-topbar-back {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding-inline: 16px;
}

.guest-topbar-back:hover {
    background: rgba(255, 255, 255, 0.14);
}

.marketing-nav-inner {
    justify-content: space-between;
}
.auth-inline-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
}

.auth-text-link {
    color: var(--brand);
    font-weight: 700;
}

.auth-text-link:hover {
    text-decoration: underline;
}

.public-auth-nav {
    position: sticky;
    top: 0;
}

.page-public-auth {
    padding-top: 18px;
}
.pwa-install-button {
    display: none;
}

.pwa-install-button.is-visible {
    display: inline-flex;
}

.public-auth-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 720px) {
    .public-auth-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .public-auth-actions .btn,
    .public-auth-actions .pwa-install-button {
        flex: 1 1 auto;
        justify-content: center;
    }
}
.feedback-modal-badge-success {
    background: #e7f7ef;
    color: #0f8f53;
}

.exit-result-modal-card {
    width: min(480px, 100%);
}

.exit-result-body {
    display: grid;
    gap: 12px;
}
.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    padding-right: 56px;
}

.field-placeholder-only {
    gap: 0;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: #eef4ff;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    padding: 0;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.password-toggle:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.password-toggle .password-eye {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle .password-eye-closed {
    display: none;
}

.password-toggle.is-visible .password-eye-open {
    display: none;
}

.password-toggle.is-visible .password-eye-closed {
    display: block;
}
.auth-shell-single {
    display: block;
}

.auth-login-card {
    max-width: 540px;
    margin: 0 auto;
}

.auth-login-links {
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .auth-login-card {
        max-width: none;
    }

    .auth-signup-actions {
        grid-template-columns: 1fr;
    }
}
.auth-submit-button {
    width: 100%;
    justify-content: center;
    min-height: 54px;
    border-radius: 16px;
    font-size: 1rem;
}

.auth-signup-box {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #dbe7f7;
    border-radius: 18px;
    background: #f8fbff;
    display: grid;
    gap: 14px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.auth-signup-copy {
    display: grid;
    gap: 4px;
    text-align: center;
}

.auth-signup-copy strong {
    color: #111827;
    font-size: 1rem;
}

.auth-signup-copy span {
    color: #5b6780;
    font-size: 0.93rem;
    line-height: 1.35;
}

.auth-signup-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.auth-signup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.auth-signup-button:hover {
    transform: translateY(-1px);
}

.auth-signup-primary {
    color: #ffffff;
    background: var(--brand);
    box-shadow: 0 10px 28px rgba(15, 123, 255, 0.22);
}

.auth-signup-secondary {
    color: #0f7bff;
    background: #ffffff;
    border-color: #cfe0f8;
}

.auth-signup-secondary:hover {
    border-color: #0f7bff;
    box-shadow: 0 10px 22px rgba(15, 123, 255, 0.12);
}

.auth-install-button {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    border-radius: 16px;
    margin-top: 12px;
}

.auth-install-button.is-visible {
    display: inline-flex;
}

.legal-page {
    padding: 22px 0 54px;
}

.legal-card {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
    line-height: 1.7;
}

.legal-head {
    display: grid;
    gap: 10px;
    margin-bottom: 4px;
}

.legal-head h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1;
}

.legal-head p,
.legal-card p,
.legal-card li {
    color: var(--muted);
}

.legal-card h2 {
    margin: 8px 0 0;
    font-size: 1.22rem;
}

.legal-card ul {
    margin: 0;
    padding-left: 22px;
}

.legal-card a {
    color: var(--brand);
    font-weight: 700;
}

.brand-with-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
}

.brand-logo img {
    display: block;
    height: 28px;
    width: auto;
    object-fit: contain;
}

.sidebar-head-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.sidebar-head-brand-simple strong {
    font-size: 1.9rem;
    line-height: 1;
}

.sidebar-head-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-head-logo img {
    display: block;
    width: 42px;
    height: auto;
    object-fit: contain;
}

.page-head-actions .btn-secondary {
    background: var(--brand) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 12px 26px rgba(15, 123, 255, 0.24) !important;
}

.page-head-actions .btn-secondary:hover {
    background: #0f5cb8 !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 14px 30px rgba(15, 92, 184, 0.32) !important;
}

.area-admin .topbar .container,
.area-park .topbar .container {
    width: 100%;
    max-width: none;
    padding-inline: 14px;
    box-sizing: border-box;
}

.area-admin .topbar-inner,
.area-park .topbar-inner {
    gap: 12px;
}

.compact-page-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
    margin: 4px 0 22px;
    padding: 0;
}

.compact-page-head > div:first-child {
    position: relative;
    padding-left: 18px;
}

.compact-page-head > div:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, #0f7bff 0%, #39a0ff 100%);
    box-shadow: 0 10px 24px rgba(15, 123, 255, 0.28);
}

.compact-page-head h1 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
}

.compact-page-head p {
    display: block;
    margin: 10px 0 0;
    max-width: 780px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

.compact-page-head .page-head-actions {
    width: auto;
    justify-content: flex-end;
}

.compact-page-head .page-head-actions .btn {
    min-width: 172px;
}

@media (max-width: 900px) {
    .area-admin .topbar-inner,
    .area-park .topbar-inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }

    .area-admin .topbar-logout,
    .area-park .topbar-logout {
        display: inline-flex;
        justify-self: end;
    }

    .compact-page-head {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 14px;
    }

    .compact-page-head .page-head-actions {
        width: auto;
        justify-content: flex-end;
    }

    .compact-page-head .page-head-actions .btn {
        min-width: 0;
        white-space: nowrap;
    }

    .compact-page-head h1 {
        font-size: clamp(1.9rem, 9vw, 2.5rem);
    }

    .compact-page-head p {
        font-size: 0.95rem;
        line-height: 1.45;
    }
}

.area-admin .page-head,
.area-park .page-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
    margin: 4px 0 22px;
}

.area-admin .page-head > div:first-child,
.area-park .page-head > div:first-child {
    position: relative;
    padding-left: 18px;
}

.area-admin .page-head > div:first-child::before,
.area-park .page-head > div:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, #0f7bff 0%, #39a0ff 100%);
    box-shadow: 0 10px 24px rgba(15, 123, 255, 0.28);
}

.area-admin .page-head h1,
.area-park .page-head h1 {
    margin: 0;
    font-size: clamp(1.85rem, 3.2vw, 2.8rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.area-admin .page-head p,
.area-park .page-head p {
    display: block;
    margin: 10px 0 0;
    max-width: 780px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

.area-admin .page-head .page-head-actions,
.area-park .page-head .page-head-actions {
    width: auto;
    justify-content: flex-end;
}

.area-admin .page-head .page-head-actions .btn,
.area-park .page-head .page-head-actions .btn {
    min-width: 172px;
}

@media (max-width: 900px) {
    .area-admin .page-head,
    .area-park .page-head {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 14px;
    }

    .area-admin .page-head .page-head-actions,
    .area-park .page-head .page-head-actions {
        width: auto;
        justify-content: flex-end;
    }

    .area-admin .page-head .page-head-actions .btn,
    .area-park .page-head .page-head-actions .btn {
        min-width: 0;
        white-space: nowrap;
    }

    .area-admin .page-head h1,
    .area-park .page-head h1 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .area-admin .page-head p,
    .area-park .page-head p {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .monthly-payments-page-head {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .monthly-payments-page-head .page-head-actions {
        width: auto;
        justify-content: flex-end;
        align-self: start;
    }

    .monthly-payments-page-head .page-head-actions .btn {
        min-width: 0;
        padding: 10px 14px;
        font-size: 0.92rem;
        white-space: nowrap;
    }

    .user-summary-table thead {
        display: none;
    }

    .user-summary-table,
    .user-summary-table tbody,
    .user-summary-table tr,
    .user-summary-table td {
        display: block;
        width: 100%;
    }

    .user-summary-table tr {
        padding: 14px 0;
        border-bottom: 1px solid #e8edf3;
    }

    .user-summary-table tr:last-child {
        border-bottom: 0;
    }

    .user-summary-table td {
        padding: 8px 0;
        border: 0;
    }

    .user-summary-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        color: var(--muted);
        font-size: 0.82rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .user-summary-table .table-actions {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .user-summary-table .table-actions .btn,
    .user-summary-table .table-actions .status-badge {
        width: 100%;
        justify-content: center;
    }

    .user-list-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .user-list-card {
        padding: 16px;
        border-radius: 18px;
    }

    .user-list-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .user-list-actions .btn,
    .user-list-actions .status-badge {
        width: 100%;
        justify-content: center;
    }

    .user-management-table thead {
        display: none;
    }

    .user-management-table,
    .user-management-table tbody,
    .user-management-table tr,
    .user-management-table td {
        display: block;
        width: 100%;
    }

    .user-management-table tr {
        padding: 14px 0;
        border-bottom: 1px solid #e8edf3;
    }

    .user-management-table tr:last-child {
        border-bottom: 0;
    }

    .user-management-table td {
        padding: 8px 0;
        border: 0;
    }

    .user-management-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        color: var(--muted);
        font-size: 0.82rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .user-management-table td input,
    .user-management-table td select,
    .user-management-table td .btn,
    .user-management-table td form {
        width: 100%;
    }

    .user-management-table td small {
        display: block;
        margin-top: 8px;
    }
}

html,
body {
    padding: 0;
}

:root {
    --app-safe-top: max(env(safe-area-inset-top), 0px);
    --panel-header-height: calc(72px + var(--app-safe-top));
}

.area-admin,
.area-park {
    margin: 0;
    padding: 0;
}

.area-admin .app-shell,
.area-park .app-shell,
.area-admin .topbar,
.area-park .topbar {
    margin-top: 0 !important;
}

.area-admin .topbar,
.area-park .topbar {
    inset-block-start: 0;
}

.area-admin .topbar,
.area-park .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9000 !important;
    pointer-events: auto !important;
}

.area-admin .page,
.area-park .page {
    padding-top: calc(116px + var(--app-safe-top));
    overflow: hidden;
}

.area-admin .page > .container,
.area-park .page > .container {
    position: relative;
    z-index: 1;
}

.menu-toggle,
.menu-close,
.page-head-actions,
.page-head-actions .btn {
    pointer-events: auto !important;
}

.app-sidebar {
    z-index: 10000 !important;
}

.app-drawer-backdrop {
    z-index: 9500 !important;
}

.area-admin .topbar,
.area-park .topbar,
.app-sidebar {
    overflow: hidden;
}

@media (max-width: 900px) {
    .area-admin .topbar-inner,
    .area-park .topbar-inner {
        min-height: var(--panel-header-height);
        padding-top: calc(10px + var(--app-safe-top));
        padding-bottom: 10px;
    }

    .area-admin .page,
    .area-park .page {
        padding-top: calc(var(--panel-header-height) + 28px);
    }
}

.camera-shell-compact {
    gap: 8px;
}

.camera-actions-compact {
    margin-top: 4px;
}

.camera-actions-single {
    justify-content: flex-start;
}

.camera-actions .btn-secondary {
    background: #ffffff;
    color: var(--ink);
    border-color: #c7d3e1;
    box-shadow: 0 8px 20px rgba(18, 36, 60, 0.08);
}

.camera-actions .btn-secondary:hover {
    background: #eef4fb;
    color: var(--ink);
    border-color: #b6c8dc;
}

.entry-vehicle-history {
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: #eff6ff;
    color: #123b70;
    font-weight: 800;
    line-height: 1.45;
}

.report-print-summary {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
}

.report-payment-print h3 {
    margin: 0 0 12px;
    color: var(--ink);
}

.thermal-report {
    display: none;
}

.report-print-modal-card {
    width: min(460px, 94vw);
}

.report-print-preview-shell {
    display: flex;
    justify-content: center;
    max-height: min(62vh, 680px);
    overflow: auto;
    padding: 18px;
    border: 1px dashed #c8d7ea;
    border-radius: 22px;
    background: #f3f7fc;
}

.report-print-preview-shell img {
    width: 48mm;
    max-width: 100%;
    height: auto;
    display: block;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 34, 62, 0.14);
}

.report-print-status {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.report-print-status.is-info {
    background: #eaf3ff;
    color: #17305c;
}

.report-print-status.is-success {
    background: var(--success-bg);
    color: var(--success);
}

.report-print-status.is-error {
    background: var(--danger-bg);
    color: var(--danger);
}

.report-print-status[hidden] {
    display: none !important;
}

@media print {
    @page {
        size: 40mm 297mm;
        margin: 1.5mm;
    }

    html,
    body {
        background: #ffffff !important;
        color: #000000 !important;
        width: 48mm !important;
        min-width: 48mm !important;
        max-width: 48mm !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .topbar,
    .app-sidebar,
    .app-drawer-backdrop,
    .no-print,
    .form-card,
    .park-metrics-grid {
        display: none !important;
    }

    .area-admin .page,
    .area-park .page,
    .page {
        padding-top: 0 !important;
        overflow: visible !important;
    }

    .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
    }

    .page > *:not(.report-print-block),
    .report-print-block > .section-title-row,
    .report-print-block > .report-print-summary,
    .report-print-block > .report-payment-print {
        display: none !important;
    }

    .card,
    .park-list-card,
    .list-card-block {
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        break-inside: auto;
        page-break-inside: auto;
    }

    .section-title-row h2,
    .page-head h1 {
        color: #000000 !important;
    }

    .table-wrap {
        overflow: visible !important;
    }

    .table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 11px;
    }

    .table th,
    .table td {
        border-bottom: 1px solid #cccccc !important;
        padding: 6px !important;
        color: #000000 !important;
        vertical-align: top;
    }

    .table-subline,
    .empty-state,
    .report-print-summary,
    .report-payment-print small {
        color: #333333 !important;
    }

    .thermal-report {
        display: block !important;
        width: 46mm !important;
        max-width: 46mm !important;
        margin: 0 auto !important;
        padding: 0 !important;
        color: #000000 !important;
        font-family: Arial, sans-serif !important;
        font-size: 10px !important;
        line-height: 1.25 !important;
        overflow: hidden !important;
    }

    .thermal-report * {
        color: #000000 !important;
        box-sizing: border-box !important;
    }

    .thermal-report strong {
        font-weight: 800 !important;
    }

    .thermal-report-center {
        display: grid !important;
        gap: 1px !important;
        text-align: center !important;
    }

    .thermal-report-separator {
        border-top: 1px dashed #000000 !important;
        margin: 4px 0 !important;
        height: 0 !important;
    }

    .thermal-report-row {
        display: flex !important;
        justify-content: space-between !important;
        gap: 4px !important;
        width: 100% !important;
    }

    .thermal-report-row span:last-child,
    .thermal-report-row strong:last-child {
        text-align: right !important;
        white-space: nowrap !important;
    }

    .thermal-report-total {
        font-size: 10px !important;
        margin-top: 2px !important;
    }

    .thermal-report-title {
        display: block !important;
        margin: 2px 0 !important;
        text-transform: uppercase !important;
    }

    .thermal-report-group,
    .thermal-report-item {
        display: grid !important;
        gap: 1px !important;
        margin: 3px 0 !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .thermal-report-item span {
        display: block !important;
        word-break: break-word !important;
    }
}

.entry-vehicle-history[hidden] {
    display: none !important;
}


