:root {
    --site-nav-height: 4rem;
    --site-page-top-gap: clamp(3.5rem, 5vw, 4.5rem);
    --site-page-bottom-gap: clamp(3rem, 5vh, 5rem);
    --site-page-max-wide: 80rem;
    --site-page-max-medium: 64rem;
    --site-page-max-narrow: 56rem;
    --site-auth-slot-width: 20rem;
    --site-bg: #020711;
    --site-bg-deep: #040c18;
    --site-surface: rgba(9, 17, 31, 0.86);
    --site-surface-strong: rgba(14, 24, 42, 0.96);
    --site-surface-soft: rgba(14, 24, 42, 0.72);
    --site-border: rgba(120, 160, 255, 0.18);
    --site-border-strong: rgba(42, 245, 198, 0.32);
    --site-text-primary: #eef6ff;
    --site-text-secondary: #d4e4fa;
    --site-text-muted: #92a8c6;
    --site-text-faint: #6f86a8;
    --site-accent: #24f2c2;
    --site-accent-strong: #0cc7ff;
    --site-accent-soft: rgba(36, 242, 194, 0.16);
    --site-danger-soft: rgba(255, 98, 126, 0.16);
    --site-danger-text: #ff8aa5;
    --site-success-soft: rgba(43, 224, 160, 0.16);
    --site-success-text: #75f0c1;
    --site-warning-soft: rgba(255, 179, 71, 0.18);
    --site-warning-text: #ffc979;
    --site-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

html {
    min-height: 100%;
    background:
        radial-gradient(circle at top, rgba(12, 199, 255, 0.14), transparent 30%),
        radial-gradient(circle at 20% 20%, rgba(36, 242, 194, 0.08), transparent 24%),
        linear-gradient(180deg, #02040a 0%, #020711 38%, #01040a 100%);
    color: var(--site-text-primary);
    color-scheme: dark;
    scrollbar-gutter: stable both-edges;
    text-size-adjust: 100%;
}

html.site-pending body {
    opacity: 0;
}

html.site-ready body {
    opacity: 1;
}

body {
    min-height: 100%;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    line-height: 1.5;
    background: transparent;
    color: var(--site-text-primary);
    opacity: 1;
    transition: opacity 0.12s ease-out;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.site-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    position: relative;
    isolation: isolate;
}

.site-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(18, 36, 64, 0.24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 36, 64, 0.24) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at top, rgba(0, 0, 0, 0.72), transparent 82%);
    opacity: 0.48;
    z-index: -2;
}

.site-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 12%, rgba(36, 242, 194, 0.12), transparent 22%),
        radial-gradient(circle at 85% 18%, rgba(12, 199, 255, 0.12), transparent 24%),
        radial-gradient(circle at 50% 60%, rgba(36, 242, 194, 0.06), transparent 32%);
    z-index: -3;
}

@supports (min-height: 100dvh) {
    .site-shell {
        min-height: 100dvh;
    }
}

#app-nav {
    min-height: var(--site-nav-height);
}

.site-nav-container,
.site-footer-shell {
    width: min(100%, calc(var(--site-page-max-wide) + 2rem));
    margin-inline: auto;
    padding-inline: 1rem;
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
}

.site-home-main {
    display: flex;
    flex-direction: column;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    position: relative;
    transition: opacity 160ms ease;
}

.site-home-main::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 8%, rgba(12, 199, 255, 0.12), transparent 25%),
        radial-gradient(circle at 32% 24%, rgba(36, 242, 194, 0.1), transparent 28%);
}

.site-home-main .site-hero-section {
    flex: 1 0 auto;
}

.site-home-main .site-hero-copy {
    transform: translateY(clamp(-4rem, -4vh, -1rem));
}

body.index-page .gradient-text {
    background: linear-gradient(135deg, #0cc7ff 0%, #24f2c2 55%, #8bffec 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.index-page .hero-bg {
    background:
        radial-gradient(circle at 50% 10%, rgba(12, 199, 255, 0.18) 0%, transparent 30%),
        radial-gradient(circle at 22% 28%, rgba(36, 242, 194, 0.14) 0%, transparent 24%);
}

.site-page {
    width: min(100%, calc(var(--site-page-max-wide) + 2rem));
    margin-inline: auto;
    padding-inline: 1rem;
    padding-top: calc(var(--site-nav-height) + var(--site-page-top-gap));
    padding-bottom: var(--site-page-bottom-gap);
}

.site-page--wide {
    max-width: calc(var(--site-page-max-wide) + 2rem);
}

.site-page--medium {
    max-width: calc(var(--site-page-max-medium) + 2rem);
}

.site-page--narrow {
    max-width: calc(var(--site-page-max-narrow) + 2rem);
}

.site-footer {
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
}

.site-global-nav {
    inset: 0 0 auto 0;
    min-height: var(--site-nav-height);
    position: fixed;
    width: 100%;
    z-index: 50;
    background: rgba(7, 13, 24, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--site-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.site-nav-row {
    min-height: var(--site-nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-nav-brand,
.site-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--site-text-primary);
}

.site-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.site-brand-mark--nav {
    width: 2rem;
    height: 2rem;
    border-radius: 0.85rem;
}

.site-brand-mark--modal {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 1rem;
    margin-inline: auto;
    margin-bottom: 0.75rem;
}

.site-brand-mark--footer {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.5rem;
}

.site-brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-brand-text,
.site-footer-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--site-text-primary);
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 2vw, 2rem);
    margin-left: auto;
}

.site-nav-link {
    color: var(--site-text-muted);
    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.site-nav-link:hover {
    color: var(--site-accent);
}

.site-nav-link--active {
    color: var(--site-accent) !important;
    font-weight: 600;
}

.site-nav-link--mobile {
    display: block;
    padding-block: 0.2rem;
}

.site-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--site-border);
    border-radius: 0.9rem;
    background: rgba(10, 18, 30, 0.9);
    color: var(--site-text-secondary);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.site-nav-toggle:hover {
    border-color: var(--site-border-strong);
    color: var(--site-accent);
}

.site-nav-mobile-panel {
    display: none;
    border-top: 1px solid var(--site-border);
    background: rgba(8, 14, 25, 0.95);
    backdrop-filter: blur(20px);
}

.site-nav-mobile-panel:not(.hidden) {
    display: block;
}

.site-nav-mobile-inner {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.site-nav-auth-slot {
    min-width: var(--site-auth-slot-width);
    position: relative;
}

.site-nav-auth-slot-mobile {
    width: 100%;
    padding-top: 0.25rem;
}

.site-nav-auth-content {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    width: 100%;
}

.site-auth-pill,
.site-auth-points-badge {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 112px;
    gap: 0.75rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(12, 199, 255, 0.22);
    background: rgba(12, 199, 255, 0.12);
}

.site-auth-pill--skeleton {
    animation: site-pulse 1.4s ease-in-out infinite;
}

.site-auth-pill-skeleton-bar {
    display: block;
    width: 4rem;
    height: 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.site-auth-points-badge {
    color: var(--site-accent);
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease;
}

.site-auth-points-badge:hover {
    background: rgba(36, 242, 194, 0.16);
    border-color: var(--site-border-strong);
}

.site-auth-points-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.site-auth-points-value {
    font-size: 0.875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.site-nav-login-btn,
.site-nav-account-btn {
    width: 105px;
    max-width: 105px;
    min-width: 105px;
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid var(--site-border);
}

.site-nav-login-btn {
    color: #021018;
    border-color: rgba(12, 199, 255, 0.18);
    background: linear-gradient(135deg, var(--site-accent-strong), var(--site-accent));
    box-shadow: 0 14px 34px rgba(12, 199, 255, 0.24);
}

.site-nav-login-btn:hover {
    background: linear-gradient(135deg, #2ed3ff, #45ffd0);
}

.site-nav-account-btn {
    justify-content: flex-end;
    color: var(--site-text-primary);
    background: rgba(18, 30, 51, 0.92);
}

.site-nav-account-btn:hover {
    border-color: var(--site-border-strong);
    background: rgba(22, 36, 60, 0.96);
}

.site-nav-account-btn--skeleton {
    background: rgba(18, 30, 51, 0.92);
    animation: site-pulse 1.4s ease-in-out infinite;
}

.site-nav-account-label {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

.site-auth-menu-panel {
    position: absolute;
    right: 0;
    margin-top: 0.5rem;
    width: 11rem;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--site-border);
    background: rgba(8, 14, 25, 0.98);
    box-shadow: var(--site-shadow);
    z-index: 1041;
}

.site-auth-menu-panel.hidden {
    display: none;
}

.site-auth-menu-item {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    border: 0;
    background: transparent;
    color: var(--site-text-primary);
    font-size: 0.875rem;
    text-align: left;
}

.site-auth-menu-item:hover {
    background: rgba(22, 36, 60, 0.96);
}

.site-auth-menu-item--danger {
    color: var(--site-danger-text);
}

.site-auth-modal-host {
    position: fixed;
    inset: 0;
    z-index: 1040;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.site-auth-modal-host.hidden {
    display: none;
}

.site-auth-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.site-auth-modal-layer {
    position: relative;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.site-auth-modal-panel {
    position: relative;
    width: min(100%, 25rem);
    margin: auto;
    max-height: min(calc(100vh - 2rem), 44rem);
    overflow: auto;
    border-radius: 1.5rem;
    border: 1px solid var(--site-border);
    background: rgba(8, 14, 25, 0.98);
    box-shadow: var(--site-shadow);
}

@supports (min-height: 100dvh) {
    .site-auth-modal-layer {
        min-height: 100dvh;
    }

    .site-auth-modal-panel {
        max-height: min(calc(100dvh - 2rem), 44rem);
    }
}

.site-auth-modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--site-text-faint);
    font-size: 1.5rem;
    line-height: 1;
}

.site-auth-modal-close:hover {
    color: var(--site-text-primary);
}

.site-auth-modal-body {
    padding: 1.5rem;
}

.site-auth-modal-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-auth-modal-form.hidden {
    display: none;
}

.site-auth-modal-form--spaced {
    margin-top: 0.75rem;
}

.site-auth-input {
    width: 100%;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border-radius: 0.9rem;
    border: 1px solid var(--site-border);
    background: rgba(10, 18, 30, 0.92);
    color: var(--site-text-primary);
    outline: none;
}

.site-auth-input:focus {
    border-color: var(--site-border-strong);
    box-shadow: 0 0 0 3px rgba(36, 242, 194, 0.14);
}

.site-auth-inline-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-auth-inline-input {
    flex: 1 1 auto;
}

.site-auth-inline-button,
.site-auth-submit {
    border: 1px solid rgba(12, 199, 255, 0.18);
    border-radius: 0.9rem;
    font-weight: 600;
}

.site-auth-inline-button {
    flex-shrink: 0;
    padding: 0.7rem 1rem;
    background: rgba(12, 199, 255, 0.08);
    color: var(--site-accent);
}

.site-auth-inline-button:hover {
    background: rgba(36, 242, 194, 0.14);
    border-color: var(--site-border-strong);
}

.meta-label {
    color: #92a8c6;
}

.device-status-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: calc(1em + 6px);
    padding-left: 6px;
    padding-right: 6px;
    border-radius: 9999px;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
}

.site-auth-submit {
    width: 100%;
    padding: 0.85rem 1rem;
    color: #021018;
    background: linear-gradient(135deg, var(--site-accent-strong), var(--site-accent));
    box-shadow: 0 14px 34px rgba(12, 199, 255, 0.24);
}

.site-auth-submit:hover {
    background: linear-gradient(135deg, #2ed3ff, #45ffd0);
}

.site-auth-modal-actions {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-auth-action-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--site-accent);
    font-weight: 600;
}

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

.site-footer-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.site-footer-frame {
    padding: 1.5rem 0 2rem;
    background: var(--site-surface);
    border-top: 1px solid var(--site-border);
}

.site-footer-top {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.site-footer-brand {
    margin-right: 0;
    transform: translateY(1.5px);
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.site-footer-meta {
    color: rgb(148 163 184);
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: center;
}

.site-hero-section {
    padding-top: calc(var(--site-nav-height) + var(--site-page-top-gap));
    padding-bottom: clamp(4.5rem, 8vh, 6.5rem);
    min-height: min(54rem, 100dvh);
    display: flex;
    align-items: center;
    position: relative;
}

.site-hero-copy {
    max-width: 80rem;
}

.site-hero-title {
    min-height: clamp(8rem, 14vw, 12rem);
    line-height: 1.05;
    white-space: normal;
    animation: none !important;
    transform: none !important;
    will-change: auto;
}

.site-hero-title,
.site-hero-title * {
    animation: none !important;
    transform: none !important;
}

.site-hero-media-shell {
    position: relative;
}

.site-hero-media-frame {
    position: relative;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(12, 199, 255, 0.12), rgba(36, 242, 194, 0.18)),
        rgba(10, 18, 30, 0.98);
    border: 1px solid var(--site-border-strong);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.site-hero-media-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-hero-media-frame.is-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(201,255,247,0.35), rgba(255,255,255,0));
    transform: translateX(-100%);
    animation: site-hero-shimmer 1.6s infinite;
    z-index: 1;
}

@keyframes site-hero-shimmer {
    100% {
        transform: translateX(100%);
    }
}

a {
    color: inherit;
}

input,
select,
textarea {
    background: rgba(10, 18, 30, 0.92);
    color: var(--site-text-primary);
    border-color: var(--site-border);
}

input::placeholder,
textarea::placeholder {
    color: var(--site-text-faint);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--site-border-strong);
}

button,
a,
input,
select,
textarea {
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

button:disabled,
.disabled,
.cursor-not-allowed {
    opacity: 0.58;
}

.bg-gray-50,
.bg-white {
    background: var(--site-surface) !important;
    backdrop-filter: blur(16px);
}

body.bg-gray-50,
body.bg-white,
body.bg-white\/80,
body.bg-white\/95 {
    backdrop-filter: none !important;
    filter: none !important;
    transform: none !important;
}

.bg-white\/80 {
    background: rgba(7, 13, 24, 0.82) !important;
    backdrop-filter: blur(18px);
}

.bg-white\/95 {
    background: rgba(8, 14, 25, 0.95) !important;
    backdrop-filter: blur(20px);
}

.bg-gray-100,
.bg-gray-100\/80 {
    background: rgba(18, 30, 51, 0.92) !important;
}

.bg-indigo-50 {
    background: rgba(12, 199, 255, 0.14) !important;
}

.bg-indigo-100,
.bg-purple-100 {
    background: rgba(36, 242, 194, 0.12) !important;
}

.bg-indigo-600 {
    background: linear-gradient(135deg, var(--site-accent-strong), var(--site-accent)) !important;
    color: #021018 !important;
    box-shadow: 0 14px 34px rgba(12, 199, 255, 0.24);
}

.hover\:bg-indigo-700:hover {
    background: linear-gradient(135deg, #2ed3ff, #45ffd0) !important;
    color: #021018 !important;
}

.bg-gray-400 {
    background: linear-gradient(135deg, rgba(18, 30, 51, 0.95), rgba(28, 46, 74, 0.95)) !important;
}

.hover\:bg-gray-50:hover,
.hover\:bg-gray-200:hover {
    background: rgba(22, 36, 60, 0.96) !important;
}

.text-gray-900,
.text-gray-800,
.text-gray-700 {
    color: var(--site-text-primary) !important;
}

.text-gray-600,
.text-gray-500 {
    color: var(--site-text-muted) !important;
}

.text-gray-400 {
    color: var(--site-text-faint) !important;
}

.text-indigo-600,
.text-indigo-700 {
    color: var(--site-accent) !important;
}

.hover\:text-indigo-600:hover {
    color: var(--site-accent) !important;
}

.text-red-500,
.text-red-600,
.text-red-700 {
    color: var(--site-danger-text) !important;
}

.text-emerald-700,
.text-emerald-600 {
    color: var(--site-success-text) !important;
}

.text-sky-700,
.text-violet-700,
.text-amber-700 {
    color: #89ddff !important;
}

.border-gray-100,
.border-gray-200 {
    border-color: var(--site-border) !important;
}

.border-indigo-100 {
    border-color: rgba(12, 199, 255, 0.22) !important;
}

.border-indigo-600,
.hover\:border-indigo-200:hover {
    border-color: var(--site-border-strong) !important;
}

.border-red-100 {
    border-color: rgba(255, 98, 126, 0.26) !important;
}

.divide-gray-100 > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--site-border) !important;
}

.bg-red-50 {
    background: var(--site-danger-soft) !important;
}

.bg-emerald-50 {
    background: var(--site-success-soft) !important;
}

.bg-sky-50,
.bg-violet-50 {
    background: rgba(12, 199, 255, 0.14) !important;
}

.bg-amber-50 {
    background: var(--site-warning-soft) !important;
}

.rounded-2xl,
.rounded-3xl,
.rounded-xl {
    border-color: var(--site-border);
}

.shadow-sm,
.shadow-lg,
.shadow-xl,
.shadow-2xl,
.hover\:shadow-md:hover {
    box-shadow: var(--site-shadow) !important;
}

.shadow-indigo-100,
.shadow-indigo-200,
.shadow-gray-200\/30,
.shadow-gray-200\/50 {
    --tw-shadow-color: rgba(6, 10, 18, 0.64) !important;
}

.ring-indigo-500,
.focus\:ring-indigo-500:focus {
    --tw-ring-color: rgba(36, 242, 194, 0.34) !important;
}

.site-footer {
    position: relative;
}

.site-footer a:hover {
    color: var(--site-accent);
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(7, 13, 24, 0.95);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(12, 199, 255, 0.55), rgba(36, 242, 194, 0.55));
    border-radius: 999px;
    border: 2px solid rgba(7, 13, 24, 0.95);
}

@media (min-width: 640px) {
    .site-nav-container,
    .site-footer-shell {
        padding-inline: 1.5rem;
    }

    .site-page {
        padding-inline: 1.5rem;
    }
}

@media (max-width: 767px) {
    .site-nav-links {
        display: none;
    }

    .site-nav-toggle {
        display: inline-flex;
    }

    .site-nav-auth-slot {
        min-width: 0;
    }

    .site-nav-auth-content {
        justify-content: space-between;
    }

    .site-nav-login-btn,
    .site-nav-account-btn {
        width: auto;
        max-width: none;
        min-width: 105px;
    }

    .site-auth-modal-actions {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .site-footer-shell {
        text-align: center;
    }

    .site-footer-top {
        flex-direction: column;
        gap: 0.75rem;
    }

    .site-footer-links {
        gap: 1rem 1.25rem;
    }

    .site-footer-meta {
        font-size: 0.875rem;
    }

    .site-hero-section {
        align-items: flex-start;
        min-height: auto;
        padding-top: calc(var(--site-nav-height) + clamp(4.5rem, 12vw, 6rem));
        padding-bottom: clamp(3rem, 7vh, 4.5rem);
    }

    .site-home-main .site-hero-copy {
        transform: none;
    }

    .site-hero-title {
        min-height: 0;
        line-height: 1.08;
    }
}

@media (min-width: 768px) {
    .site-nav-mobile-panel {
        display: none !important;
    }
}

@keyframes site-pulse {
    0%, 100% {
        opacity: 0.62;
    }

    50% {
        opacity: 1;
    }
}

@media (max-height: 900px) {
    .site-hero-section {
        align-items: flex-start;
        min-height: auto;
        padding-top: calc(var(--site-nav-height) + clamp(5rem, 9vh, 6.5rem));
    }

    .site-home-main .site-hero-copy {
        transform: none;
    }
}

@media (max-height: 760px) {
    .site-hero-section {
        padding-top: calc(var(--site-nav-height) + clamp(5.5rem, 10vh, 7rem));
        padding-bottom: clamp(2.5rem, 5vh, 3.5rem);
    }

    .site-hero-title {
        min-height: 0;
        line-height: 1.06;
    }
}

@media (min-width: 3840px), (min-height: 2160px) {
    :root {
        --site-page-top-gap: clamp(3rem, 3.5vw, 4rem);
        --site-page-bottom-gap: clamp(2.5rem, 3.5vh, 4rem);
    }

    .site-footer > footer {
        padding-top: clamp(2rem, 2.2vh, 3rem) !important;
        padding-bottom: clamp(2rem, 2.2vh, 3rem) !important;
    }
}

.site-dialog-host {
    position: fixed;
    inset: 0;
    z-index: 1080;
    overflow-y: auto;
    overscroll-behavior: contain;
}

html.site-scroll-lock,
body.site-scroll-lock {
    overflow: hidden;
}

.site-dialog-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.site-dialog-layer {
    position: relative;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

@supports (min-height: 100dvh) {
    .site-dialog-layer {
        min-height: 100dvh;
    }
}

.site-dialog-panel {
    position: relative;
    width: min(100%, 26rem);
    margin: auto;
    max-height: min(calc(100vh - 2rem), 40rem);
    overflow: auto;
    border-radius: 1.25rem;
    border: 1px solid var(--site-border);
    background: rgba(8, 14, 25, 0.98);
    box-shadow: var(--site-shadow);
    color: var(--site-text-primary);
}

.site-dialog-body {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.site-dialog-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--site-text-primary);
}

.site-dialog-message {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--site-text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

.site-dialog-input {
    width: 100%;
    margin-top: 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid var(--site-border);
    background: rgba(10, 18, 30, 0.92);
    color: var(--site-text-primary);
    outline: none;
    font-size: 0.95rem;
}

.site-dialog-input:focus {
    border-color: var(--site-border-strong);
    box-shadow: 0 0 0 3px rgba(36, 242, 194, 0.14);
}

.site-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 1rem 1.5rem 1.25rem 1.5rem;
    flex-wrap: wrap;
}

.site-dialog-btn {
    min-width: 5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-dialog-btn--cancel {
    background: transparent;
    border-color: var(--site-border);
    color: var(--site-text-secondary);
}

.site-dialog-btn--cancel:hover {
    border-color: var(--site-border-strong);
    color: var(--site-text-primary);
}

.site-dialog-btn--confirm {
    background: linear-gradient(135deg, var(--site-accent-strong), var(--site-accent));
    color: #021018;
    border-color: rgba(12, 199, 255, 0.18);
    box-shadow: 0 10px 24px rgba(12, 199, 255, 0.2);
}

.site-dialog-btn--confirm:hover {
    background: linear-gradient(135deg, #2ed3ff, #45ffd0);
}

.site-dialog-btn:focus-visible {
    outline: 2px solid var(--site-accent);
    outline-offset: 2px;
}

body.topup-history-page {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

html.site-pending body.topup-history-page {
    opacity: 0;
}

html.site-ready body.topup-history-page {
    opacity: 1;
}

body.topup-history-page .tab-btn-active {
    background: linear-gradient(135deg, #0cc7ff 0%, #24f2c2 100%);
    color: #021018;
    box-shadow: 0 12px 28px rgba(12, 199, 255, 0.24);
}

body.topup-history-page .tab-btn-idle {
    background: rgba(15, 27, 46, 0.92);
    color: #92a8c6;
    border: 1px solid rgba(120, 160, 255, 0.18);
}

body.topup-history-page .skeleton-line {
    position: relative;
    overflow: hidden;
    background: rgba(17, 29, 48, 0.92);
}

body.topup-history-page .skeleton-line::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(163, 255, 240, 0.22), transparent);
    animation: topup-history-shimmer 1.4s infinite;
}

@keyframes topup-history-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.caac-subcard-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
}

.caac-subcard-list-scroll {
    overflow-x: auto;
}

.caac-subcard-list-inner {
    min-width: 900px;
}

.caac-subcard-info {
    flex: 1 1 auto;
    min-width: 0;
}

.caac-subcard-actions {
    flex: 0 0 320px;
    width: 320px;
    padding-top: 20px;
}

.caac-subcard-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.caac-subcard-btn-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.caac-subcard-btn-wide {
    grid-column: 1 / -1;
}
