:root {
    color-scheme: light;
    --bg: #eef3f7;
    --surface: #ffffff;
    --surface-2: #f7fafc;
    --ink: #101828;
    --muted: #637083;
    --line: #d7e0ea;
    --brand: #0f8f83;
    --brand-2: #1b74d8;
    --accent: #c9792b;
    --danger: #d94b3d;
    --shadow: 0 20px 50px rgba(16, 24, 40, 0.12);
    --sidebar: #ffffff;
    --sidebar-ink: #101828;
    --sidebar-muted: #637083;
    --sidebar-panel: #f7fafc;
    --sidebar-panel-border: #d7e0ea;
    --sidebar-hover: #eef3f7;
    --sidebar-icon-bg: #eef3f7;
    --sidebar-strong: #101828;
    --sidebar-action: #0f8f83;
    --sidebar-danger: #b42318;
    --sidebar-card: #101828;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0d1117;
    --surface: #151b23;
    --surface-2: #1b2430;
    --ink: #edf4ff;
    --muted: #a5b4c7;
    --line: #2a3645;
    --brand: #20c2a6;
    --brand-2: #65a7ff;
    --accent: #e5aa55;
    --danger: #ff786a;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
    --sidebar: #090d13;
    --sidebar-ink: #e9f1fa;
    --sidebar-muted: #8b9bae;
    --sidebar-panel: rgba(255, 255, 255, 0.06);
    --sidebar-panel-border: rgba(255, 255, 255, 0.12);
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --sidebar-icon-bg: rgba(255, 255, 255, 0.08);
    --sidebar-strong: #ffffff;
    --sidebar-action: #ffffff;
    --sidebar-danger: #ff9a88;
    --sidebar-card: #090d13;
}

:root[data-theme="electric"] {
    color-scheme: light;
    --bg: #f4f0ff;
    --surface: #ffffff;
    --surface-2: #f8fbff;
    --ink: #16162d;
    --muted: #65647a;
    --line: #ddd7f0;
    --brand: #00a887;
    --brand-2: #5b5cf0;
    --accent: #f06b3e;
    --danger: #e14a68;
    --shadow: 0 20px 55px rgba(53, 45, 100, 0.16);
    --sidebar: #17142d;
    --sidebar-ink: #eceaff;
    --sidebar-muted: #aaa6d0;
    --sidebar-panel: rgba(255, 255, 255, 0.06);
    --sidebar-panel-border: rgba(255, 255, 255, 0.12);
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --sidebar-icon-bg: rgba(255, 255, 255, 0.08);
    --sidebar-strong: #ffffff;
    --sidebar-action: #ffffff;
    --sidebar-danger: #ff9a88;
    --sidebar-card: #17142d;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--bg) 86%, #ffffff), var(--bg) 42%),
        var(--bg);
    color: var(--ink);
    font-size: 15px;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

body.sidebar-open {
    overflow: hidden;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) auto auto auto auto auto auto;
    align-items: center;
    gap: 16px;
    min-height: 74px;
    padding: 0 24px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
}

.topbar--public {
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) auto auto auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--brand);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 900;
}

.brand-mark--flag {
    border: 1px solid var(--line);
    background: #ffffff;
    padding: 3px;
    overflow: hidden;
}

.brand-mark--flag img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1.05rem;
    font-weight: 900;
}

.brand small {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 750;
}

.topbar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.page-context {
    display: grid;
    min-width: 0;
}

.page-context span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.page-context strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-actions,
.auth-nav,
.shortcut-menu-panel {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.quick-actions a,
.auth-nav a,
.shortcut-menu summary,
.shortcut-menu-panel a,
.account-pill a,
.notification-pill,
.language-menu summary,
.theme-switcher button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    padding: 8px 12px;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.quick-actions a:hover,
.auth-nav a:hover,
.auth-nav a.is-active,
.shortcut-menu[open] summary,
.shortcut-menu-panel a:hover,
.shortcut-menu-panel a.is-active,
.account-pill a:hover,
.notification-pill:hover,
.language-menu[open] summary {
    background: var(--ink);
    color: var(--surface);
    border-color: var(--ink);
}

.shortcut-menu,
.language-menu {
    position: relative;
    min-width: 0;
}

.shortcut-menu summary,
.language-menu summary {
    gap: 8px;
    cursor: pointer;
    list-style: none;
}

.shortcut-menu summary::-webkit-details-marker,
.language-menu summary::-webkit-details-marker {
    display: none;
}

.shortcut-menu summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.shortcut-menu[open] summary::after {
    transform: translateY(2px) rotate(225deg);
}

.shortcut-menu-panel,
.language-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    display: grid;
    width: min(260px, calc(100vw - 24px));
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 8px;
    box-shadow: var(--shadow);
}

.language-menu-panel {
    width: min(340px, calc(100vw - 24px));
    max-height: min(560px, calc(100vh - 110px));
    overflow: auto;
    padding: 10px;
}

.shortcut-menu-panel a {
    justify-content: flex-start;
    width: 100%;
    min-height: 34px;
    border: 0;
    background: transparent;
    padding: 8px 10px;
    font-size: 0.8rem;
}

.notification-pill {
    gap: 8px;
    text-decoration: none;
}

.notification-pill span,
.support-chat-count,
.nav-badge,
.staff-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--danger);
    color: #ffffff;
    padding: 0 7px;
    font-size: 0.74rem;
    font-weight: 900;
}

.notification-pill strong {
    font-size: 0.82rem;
}

.account-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 300px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
}

.account-pill span {
    overflow: hidden;
    max-width: 180px;
    padding-left: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-pill a {
    min-height: 30px;
    border: 0;
    background: var(--surface);
    padding: 6px 10px;
}

.language-menu summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 900;
}

.language-flag-img {
    display: block;
    width: 30px;
    height: 22px;
    border: 1px solid color-mix(in srgb, var(--brand-2) 24%, var(--line));
    border-radius: 6px;
    background: var(--surface-2);
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1);
}

.language-options {
    display: grid;
    gap: 4px;
}

.language-options button {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    padding: 9px 10px;
    font: inherit;
    font-weight: 850;
    text-align: left;
    cursor: pointer;
}

.language-options button:hover,
.language-options button.is-active {
    background: color-mix(in srgb, var(--brand) 10%, var(--surface-2));
    color: var(--brand);
}

.language-options button.is-active .language-flag-img {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}

.google-translate-shell {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.goog-te-gadget {
    color: var(--muted) !important;
    font-family: inherit !important;
    font-size: 0.78rem !important;
    font-weight: 800;
}

.goog-te-combo {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--ink);
    padding: 8px 10px;
    font: inherit;
}

body > .skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

.theme-switcher {
    display: flex;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
}

.theme-switcher button {
    min-height: 32px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.theme-switcher button.is-active {
    background: var(--brand);
    color: #ffffff;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.workspace {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: calc(100vh - 74px);
}

.sidebar {
    position: sticky;
    top: 74px;
    height: calc(100vh - 74px);
    overflow: auto;
    padding: 18px 14px;
    background: var(--sidebar);
    color: var(--sidebar-ink);
}

.wallet-mini {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--sidebar-panel-border);
    border-radius: 8px;
    background: var(--sidebar-panel);
}

.wallet-mini span,
.wallet-mini small,
.wallet-mini a {
    display: block;
    color: var(--sidebar-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.wallet-mini strong {
    display: block;
    margin: 4px 0 12px;
    color: var(--sidebar-strong);
    font-size: 1.35rem;
}

.wallet-mini a {
    margin-top: 10px;
    color: var(--sidebar-action);
    text-decoration: none;
}

.side-nav {
    display: grid;
    gap: 6px;
}

.nav-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border-radius: 8px;
    padding: 7px 10px;
    color: var(--sidebar-ink);
    font-size: 0.86rem;
    text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
    background: var(--sidebar-hover);
}

.nav-link.is-active .nav-icon {
    background: var(--brand);
    color: #ffffff;
}

.nav-link.is-danger {
    color: var(--sidebar-danger);
}

.nav-link.is-locked {
    color: var(--sidebar-muted);
}

.nav-link.is-locked .nav-icon {
    background: var(--sidebar-panel);
    color: var(--sidebar-muted);
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--sidebar-icon-bg);
    color: var(--sidebar-muted);
    font-size: 0.62rem;
    font-weight: 900;
}

.nav-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.68rem;
}

.content {
    min-width: 0;
    padding: 28px;
}

.workspace,
.topbar,
.topbar-main,
.page-head,
.metric-grid,
.split-grid,
.payment-layout,
.utility-grid,
.ticket-workspace,
.table-wrap {
    min-width: 0;
}

.message-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.message {
    border: 1px solid var(--line);
    border-left: 5px solid var(--brand-2);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    padding: 12px 14px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.07);
}

.message--error {
    border-left-color: var(--danger);
}

.message--success {
    border-left-color: var(--brand);
}

.message--warning {
    border-left-color: var(--accent);
}

.withdrawal-toast {
    position: fixed;
    left: 50%;
    top: 88px;
    z-index: 95;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    width: min(760px, calc(100vw - 36px));
    min-height: 66px;
    border: 2px solid color-mix(in srgb, var(--brand) 64%, var(--line));
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, transparent), transparent 56%),
        color-mix(in srgb, var(--surface) 96%, #ffffff);
    color: var(--ink);
    padding: 15px 20px;
    box-shadow: 0 22px 58px rgba(16, 24, 40, 0.2);
    font-size: 1.08rem;
    font-weight: 900;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, -18px, 0) scale(0.98);
    transition: opacity 260ms ease, transform 260ms ease;
}

.withdrawal-toast.is-visible {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(1);
}

.withdrawal-toast-dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand) 16%, transparent);
}

.withdrawal-toast span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.support-chat-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: grid;
    justify-items: end;
    gap: 10px;
}

.support-chat-toggle {
    display: inline-grid;
    grid-template-columns: 34px auto auto;
    align-items: center;
    gap: 9px;
    min-height: 50px;
    border: 1px solid color-mix(in srgb, var(--brand) 48%, var(--line));
    border-radius: 8px;
    background: var(--ink);
    color: var(--surface);
    padding: 8px 12px 8px 8px;
    box-shadow: 0 16px 38px rgba(16, 24, 40, 0.22);
    cursor: pointer;
}

.support-chat-toggle strong {
    font-size: 0.9rem;
}

.support-chat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--brand);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
}

.support-chat-panel {
    position: absolute;
    right: 0;
    bottom: 62px;
    display: grid;
    gap: 12px;
    width: min(390px, calc(100vw - 28px));
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    padding: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
}

body.support-chat-open .support-chat-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.support-chat-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.support-chat-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.16rem;
}

.support-chat-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--muted);
    font-weight: 900;
    cursor: pointer;
}

.support-chat-form {
    display: grid;
    gap: 10px;
}

.support-chat-form label {
    display: grid;
    gap: 6px;
}

.support-chat-form label span,
.support-chat-note {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
}

.support-chat-form textarea {
    min-height: 112px;
    resize: vertical;
}

.support-chat-panel .btn {
    width: 100%;
}

.support-chat-note {
    margin: 0;
}

.eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-panel,
.page-head,
.payment-layout,
.split-grid,
.utility-grid,
.activation-status-banner,
.activation-hero,
.code-grid,
.support-contact-grid,
.help-layout,
.legal-layout,
.ticket-workspace {
    margin-bottom: 20px;
}

.activation-status-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--line));
    border-radius: 8px;
    background: color-mix(in srgb, var(--brand) 9%, var(--surface));
    padding: 14px 16px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.activation-status-banner strong {
    color: var(--ink);
    font-size: 1rem;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: center;
    min-height: 300px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, transparent), transparent 42%),
        var(--surface);
    box-shadow: var(--shadow);
}

.hero-panel h1,
.page-head h1,
.status-panel h1 {
    max-width: 840px;
    margin: 0;
    color: var(--ink);
    font-size: 2.9rem;
    line-height: 1.02;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.hero-panel p,
.page-head p,
.status-panel p,
.gateway-card p {
    max-width: 650px;
    margin: 14px 0 0;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 138px;
    max-width: 100%;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.btn-primary {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 24%, transparent);
}

.btn-soft {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink);
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--danger) 20%, transparent);
}

.btn-disabled {
    background: var(--surface-2);
    color: var(--muted);
    cursor: not-allowed;
}

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

.balance-orbit {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent),
        var(--surface-2);
    text-align: center;
}

.balance-orbit span,
.balance-orbit small {
    color: var(--muted);
    font-weight: 800;
}

.balance-orbit strong {
    display: block;
    margin: 8px 0;
    font-size: 2.1rem;
}

.verified-orbit-badge {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin-top: 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 16%, transparent);
    color: var(--brand) !important;
    padding: 6px 10px 6px 34px;
    font-size: 0.78rem;
    font-weight: 900;
}

.verified-orbit-badge::before {
    position: absolute;
    left: 10px;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--brand);
    content: "";
    transform: translateY(-50%);
}

.verified-orbit-badge::after {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: "";
    transform: translateY(-62%) rotate(45deg);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.metric-card,
.workflow-panel,
.bookings-panel,
.lane-card,
.payment-form-panel,
.gateway-card,
.recent-payments,
.utility-panel,
.utility-stats article,
.status-panel,
.auth-panel,
.support-contact-grid article,
.help-contact-panel,
.faq-item,
.legal-panel,
.ticket-form-card,
.ticket-list,
.ticket-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
}

.metric-card,
.workflow-panel,
.bookings-panel,
.lane-card,
.payment-form-panel,
.gateway-card,
.recent-payments,
.utility-panel,
.status-panel,
.auth-panel,
.legal-panel,
.ticket-form-card,
.ticket-list,
.ticket-item {
    min-width: 0;
}

.metric-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    min-height: 126px;
    padding: 18px;
}

.metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    grid-row: span 3;
    margin: 0;
    border-radius: 8px;
    background: var(--brand-2);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
}

.metric-card--green .metric-icon {
    background: var(--brand);
}

.metric-card--amber .metric-icon {
    background: var(--accent);
}

.metric-card span:not(.metric-icon),
.metric-card small,
.gateway-meta,
.lane-details dt {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.metric-card strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-size: 1.18rem;
    overflow-wrap: anywhere;
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: 18px;
}

.workflow-panel,
.bookings-panel,
.recent-payments {
    padding: 20px;
}

.workflow-panel h2,
.panel-header h2,
.payment-form-panel h2,
.gateway-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.25rem;
}

.timeline {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.timeline div {
    border-left: 3px solid var(--brand);
    padding-left: 14px;
}

.timeline strong,
.timeline span {
    display: block;
}

.timeline span {
    color: var(--muted);
    font-size: 0.9rem;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.text-link {
    color: var(--brand-2);
    font-weight: 900;
    text-decoration: none;
}

.booking-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.booking-tools input,
.booking-tools select,
.activation-code-form input,
.shared-fields input,
.utility-panel input,
.staff-filter-bar input,
.staff-filter-bar select,
.staff-withdrawal-actions input,
.staff-reply-form textarea,
.ticket-form-card input,
.ticket-form-card select,
.ticket-form-card textarea,
.support-chat-form input,
.support-chat-form textarea,
.auth-form input {
    min-height: 44px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--ink);
    padding: 10px 12px;
    outline: 0;
    transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.booking-tools input:focus,
.booking-tools select:focus,
.activation-code-form input:focus,
.shared-fields input:focus,
.utility-panel input:focus,
.staff-filter-bar input:focus,
.staff-filter-bar select:focus,
.staff-withdrawal-actions input:focus,
.staff-reply-form textarea:focus,
.ticket-form-card input:focus,
.ticket-form-card select:focus,
.ticket-form-card textarea:focus,
.support-chat-form input:focus,
.support-chat-form textarea:focus,
.auth-form input:focus {
    border-color: color-mix(in srgb, var(--brand) 60%, var(--line));
    background: var(--surface);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 13%, transparent);
}

.ticket-form-card textarea {
    min-height: 128px;
    resize: vertical;
}

.booking-tools input {
    max-width: 280px;
}

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

th,
td {
    border-top: 1px solid var(--line);
    padding: 13px 10px;
    text-align: left;
}

th {
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    min-width: 86px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 14%, transparent);
    color: var(--brand);
    padding: 4px 9px;
    font-size: 0.78rem;
    font-weight: 900;
}

.status-pill--success {
    background: color-mix(in srgb, var(--brand) 18%, transparent);
    color: var(--brand);
}

.status-pill--success::before {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--brand);
    content: "";
}

.status-pill--danger {
    background: color-mix(in srgb, var(--danger) 14%, transparent);
    color: var(--danger);
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.page-head h1 {
    font-size: 2.3rem;
}

.legal-layout {
    display: grid;
    place-items: start center;
}

.legal-panel {
    width: min(980px, 100%);
    padding: 28px;
}

.legal-panel h1 {
    margin: 0;
    color: var(--ink);
    font-size: 2.7rem;
    line-height: 1.05;
}

.legal-summary {
    max-width: 760px;
    color: var(--muted);
    font-weight: 780;
}

.legal-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 22px;
}

.legal-meta {
    display: inline-grid;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    padding: 10px 12px;
}

.legal-meta span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.legal-meta strong {
    color: var(--ink);
}

.legal-body {
    color: var(--ink);
    font-size: 1rem;
}

.legal-body p,
.legal-body div,
.legal-body ul,
.legal-body ol,
.legal-body blockquote,
.legal-body pre {
    margin: 0 0 14px;
}

.legal-body h2,
.legal-body h3,
.legal-body h4 {
    margin: 24px 0 10px;
    color: var(--ink);
    line-height: 1.15;
}

.legal-body h2 {
    font-size: 1.55rem;
}

.legal-body h3 {
    font-size: 1.28rem;
}

.legal-body ul,
.legal-body ol {
    padding-left: 22px;
}

.legal-body li {
    margin-bottom: 7px;
}

.legal-body a {
    color: var(--brand-2);
    font-weight: 850;
}

.legal-body blockquote {
    border-left: 4px solid var(--brand);
    background: var(--surface-2);
    padding: 12px 14px;
}

.legal-body pre {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    padding: 12px;
}

.activation-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: stretch;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, transparent), transparent 42%),
        var(--surface);
    box-shadow: var(--shadow);
}

.activation-hero h1 {
    max-width: 880px;
    margin: 0;
    font-size: 3.3rem;
    line-height: 1.02;
    font-weight: 900;
}

.activation-hero p,
.empty-copy {
    max-width: 720px;
    color: var(--muted);
    font-weight: 750;
}

.activation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.activation-code-form {
    display: grid;
    gap: 12px;
    max-width: 540px;
    margin-top: 22px;
}

.activation-code-form label {
    display: grid;
    gap: 8px;
}

.activation-code-form label span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.activation-card {
    display: grid;
    align-content: center;
    gap: 12px;
    min-height: 280px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    padding: 22px;
}

.activation-card span,
.activation-card small {
    color: var(--muted);
    font-weight: 850;
}

.activation-card strong {
    font-size: 2.5rem;
    line-height: 1;
}

.activation-steps {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.activation-steps div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.activation-steps b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--brand);
    color: #ffffff;
}

.currency-note {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.currency-note span,
.gateway-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 850;
}

.lane-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(230px, 1fr));
    gap: 18px;
}

.lane-card {
    display: grid;
    gap: 16px;
    min-height: 360px;
    padding: 20px;
    overflow: hidden;
}

.lane-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: -20px -20px 2px;
    padding: 18px 20px;
    background: color-mix(in srgb, var(--brand) 55%, var(--surface));
}

.lane-top span {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
}

.lane-top strong {
    color: #ffffff;
    font-size: 1.15rem;
}

.lane-card--blue .lane-top {
    background: color-mix(in srgb, var(--brand-2) 56%, var(--surface));
}

.lane-card--gold .lane-top {
    background: color-mix(in srgb, var(--accent) 66%, var(--surface));
}

.lane-price {
    color: var(--ink);
    font-size: 2.2rem;
    font-weight: 900;
}

.lane-meter {
    height: 12px;
    border-radius: 999px;
    background: var(--surface-2);
    overflow: hidden;
}

.lane-meter span {
    display: block;
    width: 52%;
    height: 100%;
    background: var(--brand);
}

.lane-card--blue .lane-meter span {
    width: 72%;
    background: var(--brand-2);
}

.lane-card--gold .lane-meter span {
    width: 92%;
    background: var(--accent);
}

.lane-details {
    display: grid;
    gap: 10px;
    margin: 0;
}

.lane-details div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.lane-details dd {
    margin: 0;
    text-align: right;
    font-weight: 900;
}

.cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
}

.lane-summary {
    display: grid;
    gap: 12px;
    margin: 0;
}

.lane-summary div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.lane-summary dt {
    color: var(--ink);
    font-weight: 900;
}

.lane-summary dd {
    margin: 0;
    color: var(--brand);
    font-weight: 900;
}

.lane-card--blue .lane-summary dd {
    color: var(--brand-2);
}

.lane-card--gold .lane-summary dd {
    color: var(--accent);
}

.lane-policy {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 760;
}

.code-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 18px;
}

.code-card {
    display: grid;
    gap: 18px;
    min-height: 430px;
    border: 1px solid color-mix(in srgb, var(--brand-2) 42%, var(--line));
    border-radius: 8px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--brand-2) 28%, transparent), transparent),
        var(--sidebar-card);
    color: #ffffff;
    padding: 24px;
    box-shadow: var(--shadow);
}

.code-card--bronze {
    border-color: #bd806a;
}

.code-card--silver {
    border-color: #9aa7c0;
}

.code-card--gold {
    border-color: #d6b44d;
}

.code-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.code-card h2 {
    margin: 0;
    font-size: 1.35rem;
}

.code-card p {
    margin: -8px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.code-price {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-top: 18px;
    color: #36df82;
    font-size: 1.32rem;
    font-weight: 900;
}

.code-card .btn {
    width: min(230px, 100%);
    background: #f2c744;
    color: #273041;
    box-shadow: none;
}

.code-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 22px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.payment-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.payment-form-panel,
.gateway-card {
    padding: 20px;
}

.payment-form-panel {
    position: sticky;
    top: 104px;
}

.shared-fields {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.shared-fields label,
.utility-panel label span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 16px;
}

.gateway-card {
    display: grid;
    gap: 16px;
    min-height: 270px;
}

.gateway-card.is-placeholder {
    background: var(--surface-2);
    opacity: 0.72;
}

.gateway-card.is-placeholder .gateway-top img {
    filter: grayscale(1);
    opacity: 0.78;
}

.gateway-card.is-coming-soon {
    background: var(--surface-2);
}

.gateway-card.is-coming-soon .gateway-top img {
    filter: grayscale(1);
    opacity: 0.86;
}

.gateway-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gateway-top img {
    width: 58px;
    height: 58px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.gateway-top span {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.gateway-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.manual-payment-details {
    display: grid;
    gap: 8px;
    margin: 0;
}

.manual-payment-details div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 10px 12px;
}

.manual-payment-details dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.manual-payment-details dd {
    margin: 0;
    color: var(--ink);
    font-weight: 900;
}

.gateway-card form,
.gateway-card .btn {
    align-self: end;
    width: 100%;
}

.gateway-soon {
    pointer-events: none;
}

.recent-payments {
    margin-top: 18px;
}

.utility-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
}

.support-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 16px;
}

.support-contact-grid article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 170px;
    padding: 18px;
}

.support-contact-grid .btn {
    grid-column: 1 / -1;
    width: 100%;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--brand);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
}

.support-contact-grid h2,
.help-contact-panel h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.18rem;
}

.support-contact-grid p {
    margin: 4px 0 0;
    color: var(--muted);
    font-weight: 850;
    overflow-wrap: anywhere;
}

.utility-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 20px;
}

.utility-panel label {
    display: grid;
    gap: 7px;
}

.utility-panel .btn {
    align-self: end;
}

.ticket-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 18px;
    align-items: start;
}

.ticket-form-card,
.ticket-list {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.ticket-form-card label {
    display: grid;
    gap: 7px;
}

.ticket-form-card label span,
.ticket-item small,
.ticket-replies small {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.ticket-item {
    display: grid;
    gap: 10px;
    padding: 14px;
    box-shadow: none;
}

.ticket-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.ticket-top strong {
    color: var(--ink);
    overflow-wrap: anywhere;
}

.ticket-item p,
.ticket-reply p {
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.ticket-replies {
    display: grid;
    gap: 8px;
}

.ticket-reply {
    border-left: 3px solid var(--line);
    padding-left: 10px;
}

.ticket-reply.is-staff {
    border-left-color: var(--brand);
}

.ticket-reply strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 0.84rem;
}

.ticket-empty {
    margin: 0;
    color: var(--muted);
    font-weight: 850;
}

.form-error {
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 850;
}

.staff-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}

.staff-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    padding: 8px 12px;
    font-weight: 900;
    text-decoration: none;
}

.staff-tabs a.is-active,
.staff-tabs a:hover {
    border-color: color-mix(in srgb, var(--brand) 48%, var(--line));
    background: color-mix(in srgb, var(--brand) 14%, var(--surface));
    color: var(--brand);
}

.staff-tabs a.is-danger {
    color: var(--danger);
}

.staff-tabs a.is-danger:hover {
    border-color: color-mix(in srgb, var(--danger) 44%, var(--line));
    background: color-mix(in srgb, var(--danger) 11%, var(--surface));
    color: var(--danger);
}

.staff-tab-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.68rem;
}

.staff-filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(150px, 220px) auto auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 16px;
}

.staff-filter-bar--wide {
    grid-template-columns: minmax(260px, 1fr) minmax(150px, 190px) minmax(150px, 190px) auto auto;
}

.staff-filter-bar--accounts {
    grid-template-columns: minmax(220px, 1fr) minmax(130px, 170px) minmax(130px, 170px) minmax(180px, 240px) auto;
}

.staff-filter-bar label,
.staff-reply-form label {
    display: grid;
    gap: 7px;
}

.staff-filter-bar label span,
.staff-reply-form label span,
td small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.table-action-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.table-action-form .btn {
    min-height: 38px;
    padding: 8px 12px;
}

.staff-account-actions .btn {
    min-width: 0;
}

.staff-filter-actions {
    display: flex;
    gap: 8px;
    align-items: end;
}

.referral-banner {
    display: grid;
    gap: 3px;
    border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--line));
    border-radius: 8px;
    background: color-mix(in srgb, var(--brand) 9%, var(--surface));
    padding: 10px 12px;
}

.referral-banner span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.referral-banner strong {
    overflow-wrap: anywhere;
}

.referral-link-field {
    width: min(280px, 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--ink);
    padding: 8px 10px;
    font-size: 0.78rem;
    font-weight: 800;
}

.profile-referral-box {
    grid-column: 1 / -1;
}

.profile-referral-box dd,
td .copy-referral-button {
    margin-top: 8px;
}

.profile-referral-box dd {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.copy-referral-button {
    min-width: 78px;
    min-height: 38px;
    padding: 8px 12px;
}

.staff-protected-note {
    color: var(--muted);
    font-weight: 850;
}

.staff-ticket-list {
    display: grid;
    gap: 14px;
}

.staff-ticket-item {
    padding: 18px;
}

.staff-reply-form {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.staff-reply-form textarea {
    min-height: 96px;
    resize: vertical;
}

.staff-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.staff-withdrawal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(86px, auto));
    gap: 8px;
}

.staff-withdrawal-actions input {
    grid-column: 1 / -1;
    min-width: 220px;
}

.processing-timer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px solid color-mix(in srgb, var(--brand) 44%, var(--line));
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, transparent), transparent 52%),
        var(--surface);
    padding: 20px;
    box-shadow: var(--shadow);
}

.processing-timer h2 {
    margin: 0;
    color: var(--ink);
    font-size: 2.1rem;
    line-height: 1;
}

.processing-timer p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
    font-weight: 800;
}

.processing-timer.is-active h2 {
    color: var(--brand);
    font-variant-numeric: tabular-nums;
}

.help-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.help-contact-panel {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.help-contact-list {
    display: grid;
    gap: 10px;
}

.help-contact-list a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    padding: 12px;
    text-decoration: none;
}

.help-contact-list strong,
.help-contact-list small {
    display: block;
    overflow-wrap: anywhere;
}

.help-contact-list small {
    color: var(--muted);
    font-weight: 850;
}

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

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 18px 20px;
    color: var(--ink);
    font-weight: 900;
}

.faq-item p {
    margin: 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 16px 20px 18px;
}

.utility-stats {
    display: grid;
    gap: 14px;
}

.utility-stats article {
    min-height: 116px;
    padding: 18px;
}

.utility-stats span,
.status-details dt {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.utility-stats strong {
    display: block;
    margin-top: 8px;
    font-size: 1.35rem;
}

.status-page {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 160px);
}

.content--auth {
    min-height: calc(100vh - 76px);
    padding: 0 24px 48px;
}

.auth-page {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 480px);
    gap: 34px;
    align-items: center;
    width: min(1120px, 100%);
    min-height: calc(100vh - 122px);
    margin: 0 auto;
    padding: 48px 0;
}

.auth-intro {
    display: grid;
    gap: 20px;
    max-width: 560px;
}

.auth-intro h1 {
    margin: 0;
    color: var(--ink);
    font-size: 3.3rem;
    line-height: 0.98;
    font-weight: 900;
}

.auth-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-proof span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    padding: 7px 11px;
    font-size: 0.8rem;
    font-weight: 850;
}

.auth-panel {
    width: 100%;
    padding: 32px;
}

.auth-panel h2 {
    margin: 0;
    color: var(--ink);
    font-size: 2.05rem;
    line-height: 1;
    font-weight: 900;
}

.auth-form,
.auth-form label {
    display: grid;
    gap: 10px;
}

.auth-form {
    margin-top: 24px;
}

.google-auth-form {
    margin-top: 24px;
}

.google-button-shell {
    min-height: 44px;
    width: 100%;
    overflow: hidden;
}

.google-button-shell > div,
.google-button-shell iframe {
    width: 100% !important;
    max-width: none !important;
}

.auth-divider {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 18px 0 -4px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: var(--line);
}

.auth-form .btn {
    width: 100%;
    margin-top: 2px;
}

.auth-form label span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.auth-form ul,
.form-errors {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--line));
    border-radius: 8px;
    background: color-mix(in srgb, var(--danger) 9%, transparent);
    color: var(--danger);
    font-size: 0.84rem;
}

.auth-form li {
    margin-left: 16px;
}

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

.auth-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 18px 0 0;
    color: var(--muted);
    font-weight: 800;
}

.auth-switch a {
    color: var(--brand-2);
    font-weight: 900;
    text-decoration: none;
}

.auth-copy {
    margin: 16px 0 0;
    color: var(--muted);
    font-weight: 800;
}

.status-panel {
    width: min(760px, 100%);
    padding: 28px;
}

.error-panel {
    position: relative;
    overflow: hidden;
}

.error-panel::before {
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent));
    content: "";
}

.error-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    min-height: 54px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--brand-2);
    font-size: 1.8rem;
    font-weight: 900;
}

.error-details {
    margin-bottom: 24px;
}

.status-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 0;
}

.status-details div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.status-details dd {
    margin: 6px 0 0;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.profile-status-list {
    margin: 0;
}

.sidebar-scrim {
    display: none;
}

@media (max-width: 1220px) {
    .lane-grid,
    .code-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .hero-panel,
    .split-grid,
    .payment-layout,
    .utility-grid,
    .ticket-workspace,
    .activation-hero,
    .help-layout {
        grid-template-columns: 1fr;
    }

    .payment-form-panel {
        position: static;
    }

    .account-pill span {
        display: none;
    }

}

@media (max-width: 920px) {
    .topbar {
        grid-template-columns: minmax(0, 1fr) auto auto auto;
        min-height: 68px;
        gap: 10px;
        padding: 0 12px;
    }

    .brand small,
    .topbar:not(.topbar--public) .topbar-main,
    .account-pill,
    .topbar:not(.topbar--public) .notification-pill,
    .topbar:not(.topbar--public) .theme-switcher {
        display: none;
    }

    .topbar--public {
        grid-template-columns: minmax(0, 1fr) auto auto auto auto;
    }

    .topbar--public .topbar-main {
        justify-content: flex-end;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .workspace {
        display: block;
    }

    .sidebar {
        position: fixed;
        z-index: 40;
        top: 68px;
        left: 0;
        width: min(86vw, 300px);
        height: calc(100vh - 68px);
        transform: translateX(-105%);
        transition: transform 180ms ease;
        box-shadow: 18px 0 34px rgba(16, 24, 40, 0.22);
    }

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

    body.sidebar-open .sidebar-scrim {
        display: block;
    }

    .sidebar-scrim {
        position: fixed;
        inset: 68px 0 0;
        z-index: 35;
        border: 0;
        background: rgba(16, 24, 40, 0.44);
    }

    .content {
        padding: 20px 14px 46px;
    }

    .content--auth {
        padding: 0 14px 38px;
    }

    .auth-page {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: auto;
        padding: 28px 0;
    }

    .auth-intro {
        max-width: 680px;
    }

    .auth-intro h1 {
        font-size: 2rem;
        line-height: 1.04;
    }

    .page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-panel h1,
    .page-head h1,
    .status-panel h1,
    .activation-hero h1,
    .legal-panel h1 {
        font-size: 2rem;
        line-height: 1.08;
    }

    .hero-panel,
    .activation-hero {
        min-height: auto;
        padding: 22px;
    }

    .balance-orbit {
        aspect-ratio: auto;
        min-height: 150px;
    }

    .balance-orbit strong,
    .activation-card strong {
        font-size: 1.85rem;
    }

    .activation-card {
        min-height: auto;
    }
}

@media (min-width: 681px) and (max-width: 1024px) and (orientation: portrait) {
    .content--auth {
        padding-right: 18px;
        padding-left: 18px;
    }

    .auth-page {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .auth-panel {
        padding: 36px 40px;
    }

    .google-auth-form,
    .google-button-shell {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .topbar {
        grid-template-columns: minmax(0, 1fr) auto auto auto;
        align-items: center;
        min-height: 64px;
        padding: 8px 10px 9px;
    }

    .topbar--public {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .topbar--public .topbar-main {
        display: none;
    }

    .auth-nav {
        display: none;
    }

    .language-menu summary {
        display: inline-flex;
        min-width: 40px;
        padding: 6px;
    }

    .language-menu summary [data-language-current] {
        display: none;
    }

    .topbar--public .theme-switcher {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .topbar--public .theme-switcher button {
        min-width: 0;
        padding-right: 8px;
        padding-left: 8px;
    }

    .hero-panel {
        min-height: auto;
        padding: 20px;
    }

    .hero-panel h1,
    .page-head h1,
    .status-panel h1,
    .activation-hero h1,
    .legal-panel h1 {
        font-size: 1.72rem;
        line-height: 1.1;
    }

    .hero-panel p,
    .page-head p,
    .status-panel p,
    .gateway-card p,
    .activation-hero p,
    .legal-summary {
        margin-top: 10px;
        font-size: 0.92rem;
    }

    .shortcut-menu summary,
    .language-menu summary {
        min-height: 36px;
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .withdrawal-toast {
        left: 50%;
        top: 74px;
        width: calc(100vw - 20px);
        min-height: 58px;
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .support-chat-widget {
        right: 12px;
        bottom: 12px;
    }

    .support-chat-panel {
        right: 0;
        bottom: 60px;
        width: min(390px, calc(100vw - 24px));
    }

    .menu-toggle {
        grid-column: 4;
        grid-row: 1;
    }

    .sidebar {
        top: 64px;
        height: calc(100vh - 64px);
    }

    .sidebar-scrim {
        inset: 64px 0 0;
    }

    .hero-actions,
    .currency-note,
    .activation-actions {
        width: 100%;
    }

    .activation-status-banner {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hero-actions .btn,
    .currency-note span,
    .page-head .btn,
    .activation-actions .btn {
        width: 100%;
    }

    .metric-grid,
    .lane-grid,
    .code-grid,
    .support-contact-grid,
    .payment-method-grid,
    .utility-panel,
    .staff-filter-bar,
    .staff-filter-bar--accounts,
    .staff-filter-bar--wide,
    .staff-withdrawal-actions,
    .processing-timer,
    .ticket-workspace,
    .status-details,
    .auth-two {
        grid-template-columns: 1fr;
    }

    .staff-withdrawal-actions input {
        min-width: 0;
    }

    .staff-filter-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .staff-tabs a:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .staff-tabs a {
        justify-content: center;
    }

    .lane-card,
    .gateway-card,
    .code-card,
    .auth-panel,
    .metric-card,
    .utility-stats article,
    .support-contact-grid article,
    .ticket-list,
    .ticket-item {
        min-height: auto;
    }

    .auth-panel {
        padding: 22px;
    }

    .auth-panel h2 {
        font-size: 1.9rem;
        line-height: 1.08;
    }

    .metric-grid,
    .lane-grid,
    .code-grid,
    .payment-method-grid,
    .utility-stats,
    .support-contact-grid,
    .faq-list {
        gap: 12px;
    }

    .metric-card {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        column-gap: 12px;
        align-items: center;
        padding: 14px;
    }

    .metric-icon {
        grid-row: span 3;
        margin: 0;
    }

    .metric-card strong,
    .utility-stats strong {
        font-size: 1.05rem;
    }

    .lane-card,
    .code-card {
        gap: 14px;
    }

    .lane-top {
        padding: 14px 16px;
    }

    .lane-summary div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .lane-summary dd {
        text-align: left;
    }

    .payment-form-panel,
    .gateway-card,
    .workflow-panel,
    .bookings-panel,
    .recent-payments,
    .utility-panel,
    .utility-stats article,
    .status-panel,
    .help-contact-panel,
    .support-contact-grid article,
    .ticket-form-card,
    .ticket-list,
    .legal-panel {
        box-shadow: 0 8px 20px rgba(16, 24, 40, 0.07);
    }

    .booking-tools input,
    .booking-tools select {
        max-width: none;
    }

    table {
        min-width: 560px;
        font-size: 0.82rem;
    }

    th,
    td {
        padding: 10px 8px;
        overflow-wrap: anywhere;
    }

    .status-pill {
        min-width: 0;
        white-space: nowrap;
    }
}

@media (max-width: 520px) {
    .topbar {
        grid-template-columns: minmax(0, 1fr) auto auto auto;
        gap: 8px;
        min-height: 64px;
        padding: 8px 10px;
    }

    .topbar--public {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .brand {
        gap: 9px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
    }

    .brand strong {
        font-size: 0.98rem;
    }

    .language-menu summary {
        display: inline-flex;
        min-width: 38px;
        padding: 5px;
    }

    .language-menu summary [data-language-current] {
        display: none;
    }

    .topbar:not(.topbar--public) .theme-switcher {
        display: none;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .sidebar {
        top: 64px;
        height: calc(100vh - 64px);
    }

    .sidebar-scrim {
        inset: 64px 0 0;
    }

    .content {
        padding: 14px 10px 34px;
    }

    .content--auth {
        padding: 0 10px 32px;
    }

    .auth-page {
        gap: 12px;
        padding: 14px 0;
    }

    .auth-intro {
        gap: 12px;
    }

    .auth-intro h1 {
        font-size: 1.55rem;
        line-height: 1.08;
    }

    .auth-proof {
        gap: 6px;
    }

    .auth-proof span {
        min-height: 30px;
        padding: 6px 9px;
        font-size: 0.72rem;
    }

    .hero-panel,
    .activation-hero {
        padding: 16px;
    }

    .hero-panel h1,
    .page-head h1,
    .status-panel h1,
    .activation-hero h1,
    .legal-panel h1 {
        font-size: 1.48rem;
        line-height: 1.12;
    }

    .shortcut-menu-panel,
    .language-menu-panel {
        right: -48px;
        width: min(250px, calc(100vw - 20px));
    }

    .eyebrow {
        margin-bottom: 6px;
        font-size: 0.68rem;
    }

    .page-head {
        gap: 10px;
    }

    .hero-actions,
    .activation-actions {
        gap: 8px;
        margin-top: 16px;
    }

    .auth-panel,
    .activation-hero,
    .activation-card,
    .code-card,
    .support-contact-grid article,
    .help-contact-panel,
    .payment-form-panel,
    .gateway-card,
    .workflow-panel,
    .bookings-panel,
    .recent-payments,
    .utility-panel,
    .ticket-form-card,
    .ticket-list,
    .status-panel {
        padding: 18px;
    }

    .auth-panel h2 {
        font-size: 1.55rem;
    }

    .legal-panel {
        padding: 18px;
    }

    .btn {
        width: 100%;
        min-width: 0;
    }

    .status-page {
        min-height: calc(100vh - 130px);
    }

    .brand-mark,
    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    .btn,
    .booking-tools input,
    .booking-tools select,
    .activation-code-form input,
    .shared-fields input,
    .utility-panel input,
    .staff-filter-bar input,
    .staff-filter-bar select,
    .staff-withdrawal-actions input,
    .staff-reply-form textarea,
    .ticket-form-card input,
    .ticket-form-card select,
    .ticket-form-card textarea,
    .support-chat-form input,
    .support-chat-form textarea,
    .auth-form input {
        min-height: 42px;
    }

    .workflow-panel h2,
    .panel-header h2,
    .payment-form-panel h2,
    .gateway-card h2,
    .support-contact-grid h2,
    .help-contact-panel h2,
    .ticket-form-card h2 {
        font-size: 1.08rem;
    }

    .timeline {
        gap: 10px;
        margin-top: 14px;
    }

    .timeline div {
        padding-left: 10px;
    }

    .activation-steps {
        gap: 8px;
    }

    .activation-steps b,
    .nav-icon {
        width: 30px;
        height: 30px;
    }

    .nav-link {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        min-height: 42px;
        padding: 6px 9px;
    }

    .wallet-mini {
        padding: 14px;
    }
}

@supports not (color: color-mix(in srgb, white, black)) {
    .topbar {
        background: var(--surface);
    }

    .hero-panel {
        background: var(--surface);
    }

    .status-pill {
        background: var(--surface-2);
    }
}

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