/* ===== Site theme utilities ===== */
.gt-gradient-text {
    background: linear-gradient(to right, var(--gt-primary), var(--gt-secondary), var(--gt-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gt-gradient-price {
    background: linear-gradient(to right, var(--gt-primary), var(--gt-secondary), var(--gt-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}
.gt-section-title {
    background: linear-gradient(to right, var(--gt-primary), var(--gt-secondary), var(--gt-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}
.gt-badge-gradient {
    background: linear-gradient(135deg, var(--gt-primary), var(--gt-secondary));
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgb(var(--gt-primary-rgb) / 0.35);
}
.gt-flash-ring {
    box-shadow: 0 0 0 1px rgb(var(--gt-primary-rgb) / 0.35), 0 0 12px rgb(var(--gt-secondary-rgb) / 0.15);
}
.gt-btn-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    background: linear-gradient(to right, var(--gt-primary), var(--gt-secondary));
    color: #fff;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgb(var(--gt-primary-rgb) / 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.gt-btn-gradient:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 30px rgb(var(--gt-primary-rgb) / 0.5);
    transform: translateY(-2px);
}
.gt-game-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s ease;
}
.gt-game-card::after,
.flash-home-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 9rem;
    height: 9rem;
    margin-right: -2.75rem;
    margin-top: -2.75rem;
    border-radius: 9999px;
    background: radial-gradient(
        circle,
        rgb(var(--gt-primary-rgb) / 0.22) 0%,
        rgb(var(--gt-secondary-rgb) / 0.1) 42%,
        transparent 72%
    );
    filter: blur(28px);
    opacity: 0.45;
    transform: scale(1);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}
.gt-game-card:hover::after,
.flash-home-card:hover::after {
    opacity: 1;
    transform: scale(1.55);
}
.gt-game-card:hover {
    background: rgb(39 39 42 / 0.55) !important;
    transform: translateY(-2px);
}
.gt-game-card > * {
    position: relative;
    z-index: 1;
}
.gt-input:focus,
.input-field:focus {
    border-color: rgb(var(--gt-primary-rgb) / 0.8) !important;
    box-shadow: 0 0 0 1px rgb(var(--gt-primary-rgb) / 0.25);
    outline: none;
}
.gt-auth-icon {
    background: linear-gradient(135deg, var(--gt-primary), var(--gt-secondary));
    box-shadow: 0 10px 15px -3px rgb(var(--gt-primary-rgb) / 0.25);
}
.gt-auth-label {
    display: block;
    font-size: 0.78125rem;
    font-weight: 500;
    color: #a1a1aa;
    margin-bottom: 0.3rem;
}
.gt-auth-field {
    display: block;
}
.gt-auth-field-control {
    position: relative;
}
.gt-auth-field-icon {
    position: absolute;
    left: 0.9375rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #71717a;
    pointer-events: none;
    transition: color 0.15s ease;
}
.gt-auth-field-icon svg {
    width: 100%;
    height: 100%;
}
.gt-auth-field-control:focus-within .gt-auth-field-icon {
    color: var(--gt-primary);
}
.gt-auth-field.is-valid .gt-auth-field-icon {
    color: #34d399;
}
.gt-auth-field.is-invalid .gt-auth-field-icon {
    color: #f87171;
}
.gt-auth-field-input {
    width: 100%;
    min-height: 3.125rem;
    padding: 0.9375rem 1rem 0.9375rem 2.875rem;
    border-radius: 0.875rem;
    border: 1px solid rgb(63 63 70 / 0.55);
    background: rgb(39 39 42 / 0.45);
    color: #fff;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.gt-auth-field-has-status .gt-auth-field-input {
    padding-right: 2.875rem;
}
.gt-auth-field-password .gt-auth-field-input {
    padding-right: 3.25rem;
}
.gt-auth-field-password.gt-auth-field-has-status .gt-auth-field-input {
    padding-right: 5.75rem;
}
.gt-auth-field-input::placeholder {
    color: #52525b;
}
.gt-auth-field-input:focus {
    border-color: rgb(var(--gt-primary-rgb, 99 102 241) / 0.75);
    box-shadow: 0 0 0 3px rgb(var(--gt-primary-rgb, 99 102 241) / 0.15);
    outline: none;
}
.gt-auth-field.is-valid .gt-auth-field-input {
    border-color: rgb(52 211 153 / 0.55);
}
.gt-auth-field.is-invalid .gt-auth-field-input {
    border-color: rgb(248 113 113 / 0.55);
}
.gt-auth-field-status {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.gt-auth-field-password .gt-auth-field-status {
    right: 2.75rem;
}
.gt-auth-field-status.is-loading::after {
    content: '';
    width: 1rem;
    height: 1rem;
    border: 2px solid rgb(113 113 122 / 0.35);
    border-top-color: rgb(var(--gt-primary-rgb, 99 102 241));
    border-radius: 9999px;
    animation: gt-auth-spin 0.65s linear infinite;
}
@keyframes gt-auth-spin {
    to { transform: rotate(360deg); }
}
.gt-auth-field-toggle {
    position: absolute;
    top: 50%;
    right: 0.625rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: #71717a;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.gt-auth-field-toggle:hover {
    color: #d4d4d8;
    background: rgb(63 63 70 / 0.45);
}
.gt-auth-field-hint {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.35;
    color: #52525b;
}
.gt-auth-field.is-invalid .gt-auth-field-hint {
    color: #f87171;
}
.gt-auth-field.is-valid .gt-auth-field-hint {
    color: #34d399;
}
#register-submit:disabled,
.gt-auth-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.gt-auth-password-input {
    font-family: inherit;
    letter-spacing: 0.02em;
    line-height: 1.5;
}
.gt-auth-password-input::placeholder {
    letter-spacing: 0.08em;
}

/* Auth split layout */
.gt-auth-body {
    min-height: 100vh;
    background: #050507;
    color: #fafafa;
    font-family: Inter, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.gt-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.gt-auth-shell {
    width: min(1120px, 100%);
    min-height: min(720px, calc(100vh - 2rem));
    border-radius: 1.5rem;
    border: 1px solid rgb(39 39 42 / 0.9);
    background: rgb(9 9 11 / 0.92);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.55);
    overflow: hidden;
}
.gt-auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: inherit;
}
.gt-auth-form-panel {
    display: flex;
    flex-direction: column;
    padding: 2rem 2.25rem;
    background: linear-gradient(180deg, rgb(12 12 14 / 0.98), rgb(9 9 11 / 0.98));
}
.gt-auth-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.gt-auth-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}
.gt-auth-brand-logo {
    width: 2rem;
    height: 2rem;
    border-radius: 0.625rem;
    object-fit: cover;
}
.gt-auth-brand-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 0.625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gt-primary), var(--gt-secondary));
    color: #fff;
}
.gt-auth-brand-name {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gt-auth-lang {
    position: relative;
}
.gt-auth-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.625rem;
    border: 1px solid rgb(63 63 70 / 0.55);
    background: rgb(24 24 27 / 0.65);
    color: #d4d4d8;
    font-size: 0.8125rem;
    cursor: pointer;
}
.gt-auth-lang-menu {
    position: absolute;
    top: calc(100% + 0.375rem);
    right: 0;
    min-width: 9rem;
    padding: 0.375rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(63 63 70 / 0.65);
    background: rgb(24 24 27 / 0.98);
    box-shadow: 0 16px 40px rgb(0 0 0 / 0.35);
    z-index: 30;
}
.gt-auth-lang-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    color: #d4d4d8;
    text-decoration: none;
    font-size: 0.875rem;
}
.gt-auth-lang-item:hover,
.gt-auth-lang-item.is-active {
    background: rgb(63 63 70 / 0.45);
    color: #fff;
}
.gt-auth-form-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(420px, 100%);
    margin: 0 auto;
}
.gt-auth-form-intro {
    margin-bottom: 1.25rem;
}
.gt-auth-form-title {
    font-size: clamp(1.75rem, 4vw, 2.125rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.5rem;
}
.gt-auth-form-subtitle {
    margin: 0;
    color: #71717a;
    font-size: 0.9375rem;
    line-height: 1.5;
}
.gt-auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.gt-auth-submit {
    width: 100%;
    min-height: 3.125rem;
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.375rem;
}
.gt-auth-switch {
    margin: 1.125rem 0 0;
    text-align: center;
    font-size: 0.875rem;
    color: #71717a;
}
.gt-auth-switch a {
    color: var(--gt-primary);
    font-weight: 600;
    text-decoration: none;
}
.gt-auth-switch a:hover {
    color: var(--gt-accent);
}

.gt-auth-social {
    margin-bottom: 0.125rem;
}
.gt-auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    min-height: 3.125rem;
    padding: 0.75rem 1rem;
    border-radius: 0.875rem;
    border: 1px solid rgb(63 63 70 / 0.65);
    background: rgb(24 24 27 / 0.85);
    color: #f4f4f5;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.gt-auth-google-btn:hover {
    background: rgb(39 39 42 / 0.9);
    border-color: rgb(113 113 122 / 0.55);
}
.gt-auth-google-btn:active {
    transform: scale(0.99);
}
.gt-auth-google-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}
.gt-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.125rem 0 0.25rem;
    color: #52525b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.gt-auth-divider::before,
.gt-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgb(63 63 70 / 0.55);
}
.gt-auth-divider span {
    flex-shrink: 0;
}

.gt-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.375rem;
}
.gt-auth-label-row .gt-auth-label {
    margin-bottom: 0;
}

.gt-auth-visual-panel {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 45%, rgb(var(--gt-primary-rgb) / 0.14), transparent 52%),
        linear-gradient(160deg, #0d0d12 0%, #09090b 55%, #050507 100%);
    border-left: 1px solid rgb(39 39 42 / 0.65);
}
.gt-auth-visual-inner {
    position: relative;
    height: 100%;
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gt-auth-visual-scene {
    position: relative;
    width: min(340px, 78%);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gt-auth-visual-scene .gt-auth-orbit {
    pointer-events: none;
}
.gt-auth-visual-logo-link {
    position: relative;
    z-index: 3;
    text-decoration: none;
    border-radius: 1.5rem;
    transition: transform 0.18s ease, filter 0.18s ease;
    cursor: pointer;
}
.gt-auth-visual-logo-link:hover {
    transform: scale(1.05);
    filter: brightness(1.06);
}
.gt-auth-visual-logo-link:active {
    transform: scale(0.97);
}
.gt-auth-visual-logo {
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(18 18 20 / 0.72);
    border: 1px solid rgb(63 63 70 / 0.45);
    box-shadow:
        0 0 0 1px rgb(255 255 255 / 0.04) inset,
        0 0 48px rgb(var(--gt-primary-rgb) / 0.22),
        0 20px 40px rgb(0 0 0 / 0.35);
}
.gt-auth-visual-logo-img {
    width: 5.25rem;
    height: 5.25rem;
    object-fit: contain;
    border-radius: 1rem;
    filter: drop-shadow(0 4px 12px rgb(var(--gt-primary-rgb) / 0.25));
}
.gt-auth-visual-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.25rem;
    height: 5.25rem;
    border-radius: 1rem;
    color: var(--gt-primary);
    background: linear-gradient(135deg, rgb(var(--gt-primary-rgb) / 0.18), rgb(var(--gt-secondary-rgb) / 0.1));
}
.gt-auth-orbit {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gt-auth-orbit-glow {
    position: absolute;
    inset: 8%;
    border-radius: 9999px;
    background: radial-gradient(circle, rgb(var(--gt-primary-rgb) / 0.2) 0%, transparent 68%);
    animation: gt-auth-glow-pulse 3.2s ease-in-out infinite;
}
@keyframes gt-auth-glow-pulse {
    0%, 100% { opacity: 0.55; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1.04); }
}
.gt-auth-orbit-ring {
    position: absolute;
    border-radius: 9999px;
    border: 2px solid transparent;
}
.gt-auth-orbit-ring--outer {
    inset: 0;
    border-top-color: var(--gt-primary);
    border-right-color: rgb(var(--gt-primary-rgb) / 0.4);
    border-bottom-color: rgb(var(--gt-primary-rgb) / 0.08);
    transform: rotate(-24deg);
    animation: gt-auth-orbit-spin 14s linear infinite;
    box-shadow:
        0 0 24px rgb(var(--gt-primary-rgb) / 0.2),
        0 0 48px rgb(var(--gt-primary-rgb) / 0.08);
}
.gt-auth-orbit-ring--inner {
    inset: 14%;
    border-bottom-color: var(--gt-accent, var(--gt-primary));
    border-left-color: rgb(var(--gt-accent-rgb, var(--gt-primary-rgb)) / 0.45);
    transform: rotate(40deg);
    animation: gt-auth-orbit-spin-rev 9s linear infinite;
    opacity: 0.85;
}
@keyframes gt-auth-orbit-spin {
    to { transform: rotate(336deg); }
}
@keyframes gt-auth-orbit-spin-rev {
    to { transform: rotate(-320deg); }
}
.gt-auth-spark {
    position: absolute;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 9999px;
    background: #fff;
    box-shadow:
        0 0 6px 1px rgb(var(--gt-primary-rgb) / 0.9),
        0 0 14px 3px rgb(var(--gt-primary-rgb) / 0.45);
    animation: gt-auth-sparkle 2.4s ease-in-out infinite;
}
.gt-auth-spark--1 { top: 6%; left: 52%; animation-delay: 0s; }
.gt-auth-spark--2 { top: 22%; right: 10%; animation-delay: 0.4s; }
.gt-auth-spark--3 { bottom: 18%; right: 14%; animation-delay: 0.9s; }
.gt-auth-spark--4 { bottom: 8%; left: 42%; animation-delay: 1.3s; }
.gt-auth-spark--5 { top: 48%; left: 4%; animation-delay: 0.6s; }
.gt-auth-spark--6 { top: 38%; right: 4%; animation-delay: 1.7s; }
@keyframes gt-auth-sparkle {
    0%, 100% { opacity: 0.15; transform: scale(0.6); }
    45% { opacity: 1; transform: scale(1.25); }
    70% { opacity: 0.35; transform: scale(0.85); }
}

.gt-auth-mobile-hero,
.gt-auth-sheet-handle {
    display: none;
}
.gt-auth-visual-scene--compact {
    width: min(220px, 58vw);
}
.gt-auth-visual-scene--compact .gt-auth-visual-logo {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 1.25rem;
}
.gt-auth-visual-scene--compact .gt-auth-visual-logo-img,
.gt-auth-visual-scene--compact .gt-auth-visual-logo-fallback {
    width: 3.75rem;
    height: 3.75rem;
}
@keyframes gt-auth-sheet-up {
    from {
        transform: translateY(105%);
        opacity: 0.5;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 960px) {
    .gt-auth-split {
        grid-template-columns: 1fr;
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    .gt-auth-visual-panel {
        display: none;
    }

    /* Mobile: bottom sheet + hero logo (login & register) */
    .gt-auth-page {
        flex-direction: column;
        justify-content: flex-end;
        align-items: stretch;
        height: 100dvh;
        max-height: 100dvh;
        min-height: 100dvh;
        padding: 0;
        overflow: hidden;
        background:
            radial-gradient(circle at 50% 18%, rgb(var(--gt-primary-rgb) / 0.12), transparent 48%),
            #050507;
    }
    .gt-auth-mobile-hero {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        padding: 1rem 1rem 1.5rem;
        padding-top: max(1rem, env(safe-area-inset-top));
    }
    .gt-auth-visual-scene--compact {
        width: min(132px, 36vw);
    }
    .gt-auth-visual-scene--compact .gt-auth-visual-logo {
        width: 3.75rem;
        height: 3.75rem;
    }
    .gt-auth-visual-scene--compact .gt-auth-visual-logo-img,
    .gt-auth-visual-scene--compact .gt-auth-visual-logo-fallback {
        width: 2.5rem;
        height: 2.5rem;
    }
    .gt-auth-shell {
        display: flex;
        flex-direction: column;
        width: 100%;
        flex: 1 1 0;
        min-height: 0;
        max-height: none;
        margin-top: 0.25rem;
        border-radius: 1.5rem 1.5rem 0 0;
        border: 1px solid rgb(63 63 70 / 0.55);
        border-bottom: 0;
        background: rgb(12 12 14 / 0.98);
        box-shadow:
            0 -12px 40px rgb(0 0 0 / 0.45),
            0 0 0 1px rgb(255 255 255 / 0.03) inset;
        overflow: hidden;
        animation: gt-auth-sheet-up 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    .gt-auth-sheet-handle {
        display: block;
        width: 2.5rem;
        height: 0.28rem;
        margin: 0.625rem auto 0;
        border-radius: 9999px;
        background: rgb(82 82 91 / 0.9);
        flex-shrink: 0;
    }
    .gt-auth-form-panel {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        padding: 0.5rem 1.25rem max(1.5rem, calc(env(safe-area-inset-bottom) + 1rem));
        border-radius: 0;
        background: transparent;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
    }
    .gt-auth-form-header {
        justify-content: flex-end;
        margin-bottom: 0.5rem;
        flex-shrink: 0;
    }
    .gt-auth-form-header .gt-auth-brand-link {
        display: none;
    }
    .gt-auth-form-content {
        width: 100%;
        justify-content: flex-start;
        flex: none;
    }
    .gt-auth-form-intro {
        margin-bottom: 0.875rem;
    }
    .gt-auth-form-title {
        font-size: 1.375rem;
    }
    .gt-auth-form-subtitle {
        font-size: 0.875rem;
    }
    .gt-auth-switch {
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
    }
    .gt-auth-body--register .gt-auth-form {
        gap: 0.625rem;
    }
    .gt-auth-body--register .gt-auth-form-intro {
        margin-bottom: 0.75rem;
    }
}
@media (max-width: 520px) {
    .gt-auth-form-panel {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
.gt-hero-glow-a { background: rgb(var(--gt-primary-rgb) / 0.2); }
.gt-hero-glow-b { background: rgb(var(--gt-accent-rgb) / 0.2); }
.gt-badge-live {
    background: rgb(var(--gt-primary-rgb) / 0.1);
    color: var(--gt-primary);
    border: 1px solid rgb(var(--gt-primary-rgb) / 0.2);
}
.gt-badge-live .gt-ping { background: var(--gt-primary); }
.gt-badge-live .gt-dot { background: var(--gt-primary); }

/* ===== Game top-up page ===== */
.game-topup-page .game-topup-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
}
.game-topup-page .game-topup-panel {
    border: 1px solid rgb(63 63 70 / 0.55);
    background: rgb(24 24 27 / 0.35);
    position: relative;
    overflow: hidden;
}
.game-topup-page .game-topup-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gt-primary), var(--gt-secondary), var(--gt-accent));
}
.game-topup-page .game-topup-summary {
    border: 1px solid rgb(63 63 70 / 0.55);
    background: rgb(24 24 27 / 0.5);
    position: relative;
    overflow: hidden;
}
.game-topup-page .game-topup-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gt-primary), var(--gt-secondary), var(--gt-accent));
}
.game-topup-page .game-topup-balance {
    background: linear-gradient(to right, var(--gt-primary), var(--gt-secondary), var(--gt-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}
.game-topup-page .game-topup-summary-price {
    background: linear-gradient(to right, var(--gt-primary), var(--gt-secondary), var(--gt-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.game-topup-page .package-btn .game-topup-price {
    background: linear-gradient(to right, var(--gt-primary), var(--gt-secondary), var(--gt-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.game-topup-page .package-btn:hover .game-topup-price {
    filter: drop-shadow(0 0 6px rgb(var(--gt-primary-rgb) / 0.25));
}
.game-topup-page .game-topup-game-img {
    box-shadow: 0 8px 24px rgb(var(--gt-primary-rgb) / 0.15);
    border: 1px solid rgb(var(--gt-primary-rgb) / 0.2);
}

/* ===== Hero banner slider ===== */
.hero-slider-section {
    isolation: isolate;
}
.hero-slider-viewport {
    position: relative;
    overflow: hidden;
}
.hero-slider-track {
    display: flex;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.hero-slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    min-height: 17rem;
    overflow: hidden;
}
@media (min-width: 768px) {
    .hero-slide { min-height: 24rem; }
}
@media (min-width: 1024px) {
    .hero-slide { min-height: 26rem; }
}
.hero-slide-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.02);
    transition: transform 8s ease;
}
.hero-slide.is-active .hero-slide-bg {
    transform: scale(1.06);
}
.hero-slide-bg--fallback {
    background: linear-gradient(135deg, rgb(24 24 27), rgb(9 9 11));
}
.hero-slide-dots-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
    mask-image: linear-gradient(to bottom, white, transparent);
    pointer-events: none;
}
.hero-slide--pos-left .hero-slide-bg {
    background-position: 72% center;
}
.hero-slide--pos-right .hero-slide-bg {
    background-position: 28% center;
}
.hero-slide--image-only .hero-slide-bg {
    background-position: center center;
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.hero-slide--image-text.hero-slide--pos-left .hero-slide-overlay {
    background: linear-gradient(
        100deg,
        rgb(9 9 11 / 0.97) 0%,
        rgb(9 9 11 / 0.9) 34%,
        rgb(9 9 11 / 0.55) 52%,
        rgb(9 9 11 / 0.15) 68%,
        transparent 78%
    );
}
.hero-slide--image-text.hero-slide--pos-right .hero-slide-overlay {
    background: linear-gradient(
        260deg,
        rgb(9 9 11 / 0.97) 0%,
        rgb(9 9 11 / 0.9) 34%,
        rgb(9 9 11 / 0.55) 52%,
        rgb(9 9 11 / 0.15) 68%,
        transparent 78%
    );
}
.hero-slide-overlay--subtle {
    background: linear-gradient(180deg, transparent 55%, rgb(9 9 11 / 0.35) 100%);
}
.hero-slide-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: inherit;
    padding: 1.5rem 1.25rem 2.75rem;
}
@media (min-width: 768px) {
    .hero-slide-inner { padding: 3.5rem 3.5rem 4rem; }
}
.hero-slide--pos-left .hero-slide-inner {
    justify-content: flex-start;
}
.hero-slide--pos-right .hero-slide-inner {
    justify-content: flex-end;
}
.hero-slide--pos-right .hero-slide-content {
    text-align: right;
    margin-left: auto;
}
.hero-slide--pos-right .hero-slide-content .gt-btn-gradient {
    margin-left: auto;
}
.hero-slide-content {
    position: relative;
    z-index: 2;
}
.hero-slide-eyebrow {
    font-size: 0.625rem;
    padding: 0.25rem 0.625rem;
    margin-bottom: 0.625rem;
}
@media (min-width: 768px) {
    .hero-slide-eyebrow {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        margin-bottom: 1.5rem;
    }
}
.hero-slide-title {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 0.625rem;
}
@media (min-width: 640px) {
    .hero-slide-title { font-size: 1.75rem; }
}
@media (min-width: 768px) {
    .hero-slide-title {
        font-size: 3rem;
        margin-bottom: 1.25rem;
    }
}
@media (min-width: 1024px) {
    .hero-slide-title { font-size: 3.75rem; }
}
.hero-slide-desc {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #a1a1aa;
    margin-bottom: 1rem;
    max-width: 36rem;
}
@media (min-width: 768px) {
    .hero-slide-desc {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
}
.hero-slide-content .gt-btn-gradient {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    gap: 0.375rem;
}
.hero-slide-content .gt-btn-gradient svg {
    width: 1rem;
    height: 1rem;
}
@media (min-width: 768px) {
    .hero-slide-content .gt-btn-gradient {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        gap: 0.5rem;
    }
    .hero-slide-content .gt-btn-gradient svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-top: -1.25rem;
    border-radius: 9999px;
    border: 1px solid rgb(63 63 70 / 0.7);
    background: rgb(24 24 27 / 0.85);
    color: #e4e4e7;
    backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
    cursor: pointer;
}
.hero-slider-arrow:hover {
    background: rgb(39 39 42 / 0.95);
    border-color: rgb(var(--gt-primary-rgb) / 0.45);
    color: #fff;
    transform: scale(1.05);
}
.hero-slider-prev { left: 0.75rem; }
.hero-slider-next { right: 0.75rem; }
@media (min-width: 768px) {
    .hero-slider-prev { left: 1.25rem; }
    .hero-slider-next { right: 1.25rem; }
}
.hero-slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1rem;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1rem;
    pointer-events: none;
}
.hero-slider-dot {
    pointer-events: auto;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: rgb(63 63 70 / 0.9);
    border: none;
    cursor: pointer;
    transition: width 0.25s, background 0.25s;
    padding: 0;
}
.hero-slider-dot.is-active {
    width: 1.5rem;
    background: linear-gradient(90deg, var(--gt-primary), var(--gt-secondary));
}
.hero-slider-dot:hover:not(.is-active) {
    background: rgb(var(--gt-primary-rgb) / 0.45);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #18181b; }
::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 3px; }

/* Package selection */
.package-btn.selected {
    border-color: transparent;
    background:
        linear-gradient(rgb(39 39 42 / 0.85), rgb(39 39 42 / 0.85)) padding-box,
        linear-gradient(135deg, var(--gt-primary), var(--gt-secondary), var(--gt-accent)) border-box;
    border: 2px solid transparent;
    box-shadow: 0 0 20px rgb(var(--gt-primary-rgb) / 0.2);
}
.package-btn {
    overflow: hidden;
}
.package-selected-check {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--gt-primary), var(--gt-secondary), var(--gt-accent));
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 12px rgb(var(--gt-primary-rgb) / 0.55);
}
.package-selected-check::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--gt-primary), var(--gt-accent));
    opacity: 0.45;
    filter: blur(6px);
    z-index: -1;
    animation: package-check-sparkle 1.8s ease-in-out infinite;
}
.package-btn.selected .package-selected-check {
    opacity: 1;
    transform: scale(1);
}
@keyframes package-check-sparkle {
    0%, 100% { opacity: 0.35; transform: scale(0.95); }
    50% { opacity: 0.75; transform: scale(1.08); }
}
.package-btn:hover {
    border-color: rgb(var(--gt-primary-rgb) / 0.4);
}
.game-topup-page .input-field.input-highlight {
    border-color: rgb(239 68 68 / 0.65) !important;
    box-shadow: 0 0 0 3px rgb(239 68 68 / 0.15);
}
.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1875rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(63 63 70 / 0.65);
    background: rgb(24 24 27 / 0.65);
}
.qty-stepper-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    color: #e4e4e7;
    font-size: 1.125rem;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}
.qty-stepper-btn:hover:not(:disabled) {
    background: rgb(var(--gt-primary-rgb) / 0.15);
    color: #fff;
}
.qty-stepper-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.qty-stepper-value {
    min-width: 1.75rem;
    text-align: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #f4f4f5;
}
.summary-qty-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.4375rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, rgb(var(--gt-primary-rgb) / 0.22), rgb(var(--gt-accent-rgb, 239 68 68) / 0.18));
    border: 1px solid rgb(var(--gt-primary-rgb) / 0.35);
    color: #fde68a;
    vertical-align: middle;
}
.order-batch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(63 63 70 / 0.55);
    background: rgb(24 24 27 / 0.45);
}
.order-batch-item-label {
    font-size: 0.8125rem;
    color: #d4d4d8;
    font-weight: 500;
}
.order-batch-item-meta {
    text-align: right;
    flex-shrink: 0;
}
.order-batch-summary {
    padding: 0.875rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(var(--gt-primary-rgb) / 0.25);
    background: rgb(var(--gt-primary-rgb) / 0.08);
}

/* ===== Toggle Switch ===== */
.gt-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.gt-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.gt-switch-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #3f3f46;
    border-radius: 24px;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.gt-switch-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.gt-switch input:checked + .gt-switch-slider { background: var(--gt-primary); }
.gt-switch input:checked + .gt-switch-slider::before { transform: translateX(20px); }
.gt-switch-amber input:checked + .gt-switch-slider { background: #f59e0b; }
.gt-switch input:disabled + .gt-switch-slider { opacity: 0.5; cursor: not-allowed; }

/* ===== Buttons ===== */
.gt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.gt-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.gt-btn-primary {
    background: var(--gt-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgb(var(--gt-primary-rgb) / 0.25);
}
.gt-btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.gt-btn-secondary {
    background: rgb(39 39 42 / 0.8);
    color: #e4e4e7;
    border: 1px solid rgb(63 63 70 / 0.8);
}
.gt-btn-secondary:hover:not(:disabled) { background: #3f3f46; }
.gt-btn-ghost {
    background: transparent;
    color: #a1a1aa;
    border: 1px solid rgb(63 63 70 / 0.5);
}
.gt-btn-ghost:hover:not(:disabled) { background: rgb(39 39 42 / 0.5); color: #fff; }
.gt-btn.is-loading { pointer-events: none; }
.gt-btn .gt-btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: gt-spin 0.7s linear infinite;
}

/* ===== Form inputs ===== */
.gt-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #a1a1aa;
    margin-bottom: 0.375rem;
}
.gt-input {
    width: 100%;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    background: rgb(39 39 42 / 0.5);
    border: 1px solid rgb(63 63 70 / 0.8);
    color: #fff;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}
.gt-input:focus { border-color: #6366f1; box-shadow: 0 0 0 1px rgb(99 102 241 / 0.3); }

.gt-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    background: rgb(39 39 42 / 0.5);
    border: 1px solid rgb(63 63 70 / 0.8);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.gt-search:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgb(99 102 241 / 0.3);
}
.gt-search-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: #71717a;
    pointer-events: none;
}
.gt-search-field {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.625rem 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 0.875rem;
    outline: none;
    line-height: 1.25rem;
}
.gt-search-field::-webkit-search-cancel-button,
.gt-search-field::-webkit-search-decoration { display: none; }
.gt-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.125rem;
    color: #71717a;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 0;
}
.gt-search-clear:hover { color: #d4d4d8; }
.gt-search-clear.hidden { display: none; }
.gt-search-hidden,
tr.gt-search-hidden { display: none !important; }
tr.flash-page-hidden { display: none !important; }

.gt-pagination .gt-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1;
    color: #a1a1aa;
    background: #27272a;
    border: 1px solid transparent;
    transition: color 0.15s, background 0.15s;
}
.gt-pagination a.gt-page-btn:hover { color: #fff; background: #3f3f46; }
.gt-pagination .gt-page-btn.is-active {
    color: #fff;
    background: #4f46e5;
}
.gt-pagination .gt-page-btn.is-disabled,
.gt-pagination .gt-page-nav.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}
.gt-pagination .gt-page-ellipsis {
    padding: 0 0.25rem;
    color: #71717a;
    user-select: none;
}
.gt-pagination .gt-page-info {
    margin-left: 0.75rem;
    font-size: 0.75rem;
    color: #71717a;
}
#history-table-wrap.is-loading,
#admin-orders-table-wrap.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s;
}

/* ===== Loading Overlay ===== */
.gt-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gt-overlay.hidden { display: none; }
.gt-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(9 9 11 / 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.gt-overlay-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 2.5rem;
    border-radius: 1.25rem;
    background: rgb(24 24 27 / 0.9);
    border: 1px solid rgb(63 63 70 / 0.5);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}
.gt-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgb(63 63 70 / 0.5);
    border-top-color: #818cf8;
    border-radius: 50%;
    animation: gt-spin 0.8s linear infinite;
}
.gt-overlay-text {
    font-size: 0.875rem;
    color: #a1a1aa;
    font-weight: 500;
}
@keyframes gt-spin { to { transform: rotate(360deg); } }

/* ===== Toast ===== */
.gt-toast-container {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
    width: auto;
    max-width: calc(100% - 2rem);
}
.admin-bottom-nav ~ * .gt-toast-container,
body:has(.admin-bottom-nav) .gt-toast-container {
    bottom: 5rem;
}
.gt-toast {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: 1rem;
    background: rgb(24 24 27 / 0.95);
    border: none;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgb(0 0 0 / 0.4);
    pointer-events: auto;
    animation: gt-toast-in 0.35s cubic-bezier(0.21, 1.02, 0.73, 1);
    width: max-content;
    max-width: calc(100vw - 2rem);
}
.gt-toast.is-leaving { animation: gt-toast-out 0.3s ease forwards; }
.gt-toast-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.gt-toast-message {
    font-size: 0.875rem;
    font-weight: 500;
    color: #fafafa;
    flex: 0 1 auto;
    white-space: normal;
}
.gt-toast-success .gt-toast-icon { color: #34d399; }
.gt-toast-error .gt-toast-icon { color: #f87171; }
.gt-toast-info .gt-toast-icon { color: #818cf8; }
.gt-toast-warning .gt-toast-icon { color: #fbbf24; }
@keyframes gt-toast-in {
    from { opacity: 0; transform: translateY(16px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes gt-toast-out {
    to { opacity: 0; transform: translateY(8px) scale(0.95); }
}
@keyframes order-row-flash {
    from { background-color: rgb(var(--gt-primary-rgb, 99 102 241) / 0.12); }
    to { background-color: transparent; }
}
.order-row-updated {
    animation: order-row-flash 1.2s ease-out;
}
#history-live-dot.is-idle .history-live-ping {
    animation: none;
    opacity: 0;
}
#history-live-dot.is-idle span:last-child {
    background-color: rgb(113 113 122);
}

/* ===== Modal ===== */
.gt-modal {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.gt-modal.hidden { display: none; }
.gt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(9 9 11 / 0.7);
    backdrop-filter: blur(4px);
}
.gt-modal-panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    border-radius: 1.25rem;
    background: rgb(24 24 27 / 0.98);
    border: 1px solid rgb(63 63 70 / 0.6);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.6);
    animation: gt-modal-in 0.3s cubic-bezier(0.21, 1.02, 0.73, 1);
}
@keyframes gt-modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.gt-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgb(39 39 42 / 0.8);
}
.gt-modal-close {
    padding: 0.375rem;
    border-radius: 0.5rem;
    color: #71717a;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.gt-modal-close:hover { background: #3f3f46; color: #fff; }
.gt-modal-panel > form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.gt-modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
}
.gt-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
    padding: 1rem 1.5rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    border-top: 1px solid rgb(39 39 42 / 0.8);
    background: rgb(24 24 27 / 0.98);
}

@media (max-width: 639px) {
    .gt-modal {
        padding: 0;
        align-items: flex-end;
    }
    .gt-modal-panel {
        max-width: none;
        max-height: min(92dvh, calc(100dvh - env(safe-area-inset-top)));
        border-radius: 1.25rem 1.25rem 0 0;
        border-bottom: none;
        animation: gt-modal-in-mobile 0.3s cubic-bezier(0.21, 1.02, 0.73, 1);
    }
    @keyframes gt-modal-in-mobile {
        from { opacity: 0; transform: translateY(100%); }
        to { opacity: 1; transform: translateY(0); }
    }
    .gt-modal-header {
        padding: 1rem 1.25rem;
    }
    .gt-modal-body {
        padding: 1rem 1.25rem;
    }
    .gt-modal-footer {
        padding: 0.875rem 1.25rem;
        padding-bottom: max(0.875rem, env(safe-area-inset-bottom));
    }
}

/* ===== Tabs ===== */
.gt-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgb(39 39 42 / 0.8);
    overflow-x: auto;
}
.gt-tab {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #71717a;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    margin-bottom: -1px;
}
.gt-tab:hover { color: #d4d4d8; }
.gt-tab.active {
    color: #818cf8;
    border-bottom-color: #6366f1;
}
.gt-tab-panel.hidden { display: none; }

/* ===== Admin Mobile ===== */
.admin-drawer {
    position: fixed;
    inset: 0;
    z-index: 9995;
    pointer-events: none;
}
.admin-drawer[aria-hidden="false"] { pointer-events: auto; }
.admin-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(9 9 11 / 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s;
}
.admin-drawer[aria-hidden="false"] .admin-drawer-backdrop { opacity: 1; }
.admin-drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(280px, 85vw);
    background: rgb(24 24 27 / 0.98);
    border-right: 1px solid rgb(63 63 70 / 0.5);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.admin-drawer[aria-hidden="false"] .admin-drawer-panel { transform: translateX(0); }
.admin-bottom-nav { padding-bottom: env(safe-area-inset-bottom, 0); }
.safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0); }

/* Horizontal scroll table (mobile) */
.gt-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
.gt-table-scroll::-webkit-scrollbar { height: 4px; }
.gt-table-scroll::-webkit-scrollbar-thumb { background: #52525b; border-radius: 2px; }

/* Package table: drag reorder + search */
.pkg-drag-handle { touch-action: none; user-select: none; -webkit-user-select: none; }
.pkg-row.pkg-dragging { opacity: 0.45; background: rgb(39 39 42 / 0.5); }
.pkg-placeholder td {
    height: 3rem;
    padding: 0;
    background: rgb(99 102 241 / 0.08);
    border: 2px dashed rgb(99 102 241 / 0.35);
}
.packages-sort-disabled .pkg-drag-handle {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
}

/* Package bulk edit modal */
.pkg-bulk-mode {
    display: flex;
    gap: 0.375rem;
    padding: 0.25rem;
    border-radius: 0.625rem;
    background: rgb(39 39 42 / 0.5);
    border: 1px solid rgb(63 63 70 / 0.5);
}
.pkg-bulk-mode-btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #a1a1aa;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.pkg-bulk-mode-btn:hover {
    color: #e4e4e7;
}
.pkg-bulk-mode-btn.active {
    background: rgb(63 63 70 / 0.85);
    color: #fafafa;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
}
.pkg-bulk-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 0.35rem;
    border-radius: 9999px;
    background: rgb(63 63 70 / 0.8);
    outline: none;
}
.pkg-bulk-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: var(--gt-primary);
    border: 2px solid #18181b;
    cursor: pointer;
}
.pkg-bulk-slider::-moz-range-thumb {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: var(--gt-primary);
    border: 2px solid #18181b;
    cursor: pointer;
}
#pkg-bulk-modal .gt-tabs .gt-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* Flash sale live panel (admin modal) */
.flash-tabs {
    display: flex;
    gap: 0.375rem;
    padding: 0.25rem;
    border-radius: 0.625rem;
    background: rgb(39 39 42 / 0.5);
    border: 1px solid rgb(63 63 70 / 0.5);
}
.flash-tabs.hidden { display: none; }
.flash-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #a1a1aa;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.flash-tab:hover { color: #e4e4e7; }
.flash-tab.active {
    color: #fafafa;
    background: rgb(63 63 70 / 0.8);
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
}
.flash-tab-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background: var(--gt-accent);
    flex-shrink: 0;
}
.flash-tab-dot.hidden { display: none; }
.flash-tab-panel.hidden { display: none; }

.flash-profit-preview {
    padding: 0.75rem 0.875rem;
    border-radius: 0.625rem;
    background: rgb(24 24 27 / 0.45);
    border: 1px solid rgb(63 63 70 / 0.5);
    transition: border-color 0.2s, background 0.2s;
}
.flash-profit-preview.is-profit {
    border-color: rgb(52 211 153 / 0.25);
    background: rgb(16 185 129 / 0.06);
}
.flash-profit-preview.is-loss {
    border-color: rgb(248 113 113 / 0.25);
    background: rgb(239 68 68 / 0.06);
}
.flash-profit-preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.flash-profit-value {
    font-size: 0.9375rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.flash-live-panel {
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(var(--gt-primary-rgb) / 0.25);
    background: linear-gradient(135deg, rgb(var(--gt-primary-rgb) / 0.08), rgb(var(--gt-secondary-rgb) / 0.04));
}
.flash-live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.flash-live-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    background: rgb(var(--gt-primary-rgb) / 0.15);
    color: var(--gt-accent);
}
.flash-live-stat {
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    background: rgb(24 24 27 / 0.45);
    border: 1px solid rgb(63 63 70 / 0.5);
}
.flash-live-stat-label {
    font-size: 0.625rem;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.flash-live-stat-value {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.125rem;
}
.flash-progress-track {
    height: 0.5rem;
    border-radius: 9999px;
    background: rgb(39 39 42 / 0.8);
    border: 1px solid rgb(63 63 70 / 0.6);
    overflow: hidden;
}
.flash-progress-bar {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--gt-primary), var(--gt-accent));
    transition: width 0.35s ease;
    min-width: 0;
}
.flash-live-date {
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    background: rgb(24 24 27 / 0.35);
    border: 1px solid rgb(63 63 70 / 0.4);
}
.flash-live-card {
    padding: 0.75rem;
    border-radius: 0.625rem;
    background: rgb(24 24 27 / 0.45);
    border: 1px solid rgb(63 63 70 / 0.5);
}
.flash-live-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgb(99 102 241 / 0.12);
    color: #a5b4fc;
    flex-shrink: 0;
}
.flash-live-card:last-child .flash-live-card-icon {
    background: rgb(113 113 122 / 0.15);
    color: #a1a1aa;
}

/* ===== Homepage Flash Sale ===== */
.flash-home-section {
    position: relative;
    padding: 1.25rem 1rem 1.5rem;
    border-radius: 1.25rem;
    overflow: hidden;
}
.flash-home-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gt-primary), var(--gt-secondary), var(--gt-accent));
    pointer-events: none;
}
.flash-home-section::before {
    content: '';
    position: absolute;
    top: -4rem;
    right: -4rem;
    width: 12rem;
    height: 12rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgb(var(--gt-primary-rgb) / 0.12), rgb(var(--gt-accent-rgb) / 0.08));
    filter: blur(48px);
    pointer-events: none;
}
@media (min-width: 640px) {
    .flash-home-section {
        padding: 1.5rem 1.25rem 1.75rem;
    }
}
.flash-home-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.125rem;
}
.flash-home-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    min-width: 0;
}
.flash-home-title {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.flash-home-title-text {
    background: linear-gradient(to right, var(--gt-primary), var(--gt-secondary), var(--gt-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.flash-home-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--gt-primary), var(--gt-secondary), var(--gt-accent));
    color: #fff;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    filter: drop-shadow(0 0 8px rgb(var(--gt-primary-rgb) / 0.35));
}
.flash-home-title-icon svg {
    color: #fff;
}
.flash-home-countdown {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: #a1a1aa;
}
.flash-home-countdown-label {
    margin-right: 0.125rem;
    white-space: nowrap;
}
.flash-home-countdown-box {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    
}
.flash-home-countdown-box::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 0.375rem;
    background: rgb(39 39 42 / 0.9);
    border: 1px solid rgb(var(--gt-primary-rgb) / 0.25);
}
.flash-home-countdown-unit,
.flash-home-countdown-sep {
    color: #71717a;
    font-weight: 500;
}
.flash-home-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #a1a1aa;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s;
}
.flash-home-view-all:hover {
    background: linear-gradient(to right, var(--gt-primary), var(--gt-secondary), var(--gt-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.flash-home-marquee {
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin: 0 -0.25rem;
    padding: 0.25rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}
.flash-home-track {
    display: flex;
    gap: 0.875rem;
    width: max-content;
    animation: flash-home-scroll 75s linear infinite;
    will-change: transform;
}
.flash-home-marquee:hover .flash-home-track {
    animation-play-state: paused;
}
@keyframes flash-home-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.flash-home-card {
    display: flex;
    flex-direction: column;
    width: 11.5rem;
    padding: 0.625rem;
    border-radius: 1rem;
    border: 1px solid rgb(63 63 70 / 0.55);
    background: rgb(24 24 27 / 0.65);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s ease;
}
@media (min-width: 640px) {
    .flash-home-card {
        width: 13rem;
        padding: 0.75rem;
    }
}
.flash-home-card:hover {
    background: rgb(39 39 42 / 0.55);
    transform: translateY(-3px);
}
.flash-home-card > * {
    position: relative;
    z-index: 1;
}
.flash-home-card-image {
    position: relative;
    margin-bottom: 0.625rem;
}
.flash-home-badge {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    z-index: 2;
    padding: 0.1875rem 0.4375rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--gt-primary), var(--gt-secondary), var(--gt-accent));
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgb(var(--gt-primary-rgb) / 0.45);
}
.flash-home-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.75rem;
    background: rgb(39 39 42 / 0.8);
    border: 1px solid rgb(63 63 70 / 0.5);
    transition: transform 0.4s ease;
}
.flash-home-card:hover .flash-home-card-img {
    transform: scale(1.03);
}
.flash-home-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgb(39 39 42 / 0.9), rgb(24 24 27 / 0.9));
}
.flash-home-game {
    font-size: 0.6875rem;
    color: #71717a;
    line-height: 1.3;
    margin-bottom: 0.3125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.flash-home-package {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.4375rem;
    min-height: 1.25rem;
}
.flash-home-package-icon {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 0.25rem;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgb(63 63 70 / 0.5);
}
.flash-home-package-icon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gt-primary), var(--gt-secondary));
    color: #fff;
    border: none;
}
.flash-home-package-name {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: linear-gradient(to right, #f4f4f5, #e4e4e7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.flash-home-card:hover .flash-home-package-name {
    background: linear-gradient(to right, var(--gt-primary), var(--gt-secondary), var(--gt-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.flash-home-prices {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    flex-wrap: wrap;
}
.flash-home-price {
    font-size: 1rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    background: linear-gradient(to right, var(--gt-primary), var(--gt-secondary), var(--gt-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 8px rgb(var(--gt-primary-rgb) / 0.2));
}
.flash-home-strike {
    font-size: 0.6875rem;
    color: #71717a;
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}
.flash-home-quota {
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    border-top: 1px solid rgb(63 63 70 / 0.45);
}
.flash-home-quota-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}
.flash-home-quota-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    color: #a1a1aa;
}
.flash-home-quota-text {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #d4d4d8;
    font-variant-numeric: tabular-nums;
}
.flash-home-progress-track {
    height: 0.375rem;
}
.flash-home-progress-bar {
    min-width: 0;
}
.flash-home-quota-foot {
    margin-top: 0.375rem;
    font-size: 0.625rem;
    color: #71717a;
    line-height: 1.3;
}

/* ===== Homepage Recent Orders Carousel ===== */
.recent-orders-section {
    margin-bottom: 3.5rem;
}
.recent-orders-panel {
    border-radius: 1.25rem;
    border: 1px solid rgb(63 63 70 / 0.55);
    background: rgb(24 24 27 / 0.45);
    overflow: hidden;
    box-shadow: 0 4px 24px rgb(0 0 0 / 0.2);
}
.recent-orders-marquee {
    overflow: hidden;
    padding: 1rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.recent-orders-track {
    display: flex;
    gap: 0.875rem;
    width: max-content;
    padding: 0 0.5rem;
    animation: recent-orders-scroll 60s linear infinite;
    will-change: transform;
}
.recent-orders-marquee:hover .recent-orders-track {
    animation-play-state: paused;
}
@keyframes recent-orders-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.recent-order-card {
    width: 15rem;
    padding: 0.875rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgb(63 63 70 / 0.55);
    background: rgb(24 24 27 / 0.7);
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    transition: border-color 0.25s ease, background 0.25s ease;
}
@media (min-width: 640px) {
    .recent-order-card {
        width: 16.5rem;
        padding: 1rem 1.125rem;
    }
}
.recent-order-card:hover {
    border-color: rgb(var(--gt-primary-rgb, 99 102 241) / 0.35);
    background: rgb(39 39 42 / 0.55);
}
.recent-order-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.recent-order-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: rgb(var(--gt-primary-rgb, 99 102 241) / 0.15);
    color: #a5b4fc;
    flex-shrink: 0;
}
.recent-order-username {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f4f4f5;
    letter-spacing: 0.02em;
}
.recent-order-game {
    font-size: 0.6875rem;
    color: #71717a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recent-order-package {
    font-size: 0.8125rem;
    color: #d4d4d8;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
}
.recent-order-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.125rem;
}
.recent-order-price {
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(to right, var(--gt-primary), var(--gt-secondary), var(--gt-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.recent-order-status {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    border: 1px solid rgb(16 185 129 / 0.35);
    background: rgb(16 185 129 / 0.12);
    color: #34d399;
}
.recent-order-date {
    font-size: 0.6875rem;
    color: #71717a;
    margin-top: 0.125rem;
    font-variant-numeric: tabular-nums;
}

.site-header {
    isolation: isolate;
}
.site-nav {
    position: relative;
    z-index: 2;
}
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: 0;
}
.site-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--gt-primary), var(--gt-secondary));
    box-shadow: 0 0 16px rgb(var(--gt-primary-rgb) / 0.35);
    flex-shrink: 0;
}
.site-logo-text {
    font-size: 1.0625rem;
    font-weight: 800;
    color: #fafafa;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.site-nav-link {
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.site-nav-link:hover {
    color: #fafafa;
    background: rgb(39 39 42 / 0.6);
}
.site-nav-link.is-active {
    color: var(--gt-primary);
    background: rgb(var(--gt-primary-rgb) / 0.1);
}
.site-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    color: #a1a1aa;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
}
.site-icon-btn:hover {
    color: #fafafa;
    background: rgb(39 39 42 / 0.7);
}
.site-search {
    position: relative;
    display: flex;
    align-items: center;
}
.site-search-icon {
    position: absolute;
    left: 0.875rem;
    width: 1rem;
    height: 1rem;
    color: #71717a;
    pointer-events: none;
}
.site-search-input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #f4f4f5;
    background: rgb(39 39 42 / 0.55);
    border: 1px solid rgb(63 63 70 / 0.6);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.site-search-input::placeholder { color: #71717a; }
.site-search-input:focus {
    border-color: rgb(var(--gt-primary-rgb) / 0.5);
    box-shadow: 0 0 0 3px rgb(var(--gt-primary-rgb) / 0.12);
}
.site-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem 0.375rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #e4e4e7;
    background: rgb(39 39 42 / 0.65);
    border: 1px solid rgb(63 63 70 / 0.6);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.site-user-btn:hover {
    border-color: rgb(var(--gt-primary-rgb) / 0.35);
    background: rgb(39 39 42 / 0.9);
}
.site-dropdown {
    position: absolute;
    top: calc(100% + 0.375rem);
    right: 0;
    min-width: 11rem;
    padding: 0.375rem;
    border-radius: 0.75rem;
    background: rgb(24 24 27 / 0.98);
    border: 1px solid rgb(63 63 70 / 0.6);
    box-shadow: 0 12px 32px rgb(0 0 0 / 0.45);
    z-index: 60;
}
.site-dropdown.hidden { display: none; }
.site-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    color: #d4d4d8;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-align: left;
}
.site-dropdown-item:hover {
    background: rgb(39 39 42 / 0.8);
    color: #fff;
}
.site-search-mobile {
    background: rgb(24 24 27 / 0.5);
}
.site-search-mobile.hidden { display: none; }

/* Announcement ticker */
.site-announce {
    position: relative;
    z-index: 1;
    height: 2.25rem;
    overflow: hidden;
    background: linear-gradient(90deg, var(--gt-primary) 0%, var(--gt-secondary) 50%, var(--gt-accent) 100%);
    border-bottom: 1px solid rgb(var(--gt-primary-rgb) / 0.35);
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    cursor: default;
}
.site-announce::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 3px,
        rgb(255 255 255 / 0.04) 3px,
        rgb(255 255 255 / 0.04) 6px
    );
    pointer-events: none;
}
.site-announce:hover {
    height: 3.5rem;
    box-shadow: 0 8px 28px rgb(var(--gt-primary-rgb) / 0.35);
}
.site-announce-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
    padding: 0 1rem;
    max-width: 80rem;
    margin: 0 auto;
}
.site-announce-live {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    flex-shrink: 0;
    padding: 0.1875rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    background: rgb(0 0 0 / 0.2);
    border: 1px solid rgb(255 255 255 / 0.15);
}
.site-announce-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.site-announce-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: site-announce-scroll 50s linear infinite;
    will-change: transform;
}
.site-announce-track-static {
    animation: none;
    width: auto;
}
.site-announce:hover .site-announce-track:not(.site-announce-track-static) {
    animation-play-state: paused;
}
.site-announce-text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.15);
    transition: font-size 0.35s ease;
}
.site-announce:hover .site-announce-text {
    font-size: 0.9375rem;
}
.site-announce-gap {
    display: inline-block;
    width: 4rem;
    flex-shrink: 0;
}
.site-announce-speaker {
    display: none;
    color: rgb(255 255 255 / 0.85);
    flex-shrink: 0;
}
@media (min-width: 640px) {
    .site-announce-speaker { display: inline-flex; }
}
@keyframes site-announce-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.site-announce-preview {
    pointer-events: none;
}
.site-announce-preview:hover {
    height: 2.25rem;
    box-shadow: none;
}

/* Site mobile drawer */
.site-drawer {
    position: fixed;
    inset: 0;
    z-index: 9995;
    pointer-events: none;
}
.site-drawer[aria-hidden="false"] { pointer-events: auto; }
.site-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(9 9 11 / 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s;
}
.site-drawer[aria-hidden="false"] .site-drawer-backdrop { opacity: 1; }
.site-drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 88vw);
    background: rgb(24 24 27 / 0.98);
    border-right: 1px solid rgb(63 63 70 / 0.55);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-drawer[aria-hidden="false"] .site-drawer-panel { transform: translateX(0); }
.site-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgb(63 63 70 / 0.5);
}
.site-drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.site-drawer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #a1a1aa;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.site-drawer-link:hover {
    color: #fafafa;
    background: rgb(39 39 42 / 0.6);
}
.site-drawer-link.is-active {
    color: var(--gt-primary);
    background: rgb(var(--gt-primary-rgb) / 0.12);
    border: 1px solid rgb(var(--gt-primary-rgb) / 0.2);
}
.site-drawer-footer {
    padding: 1rem;
    border-top: 1px solid rgb(63 63 70 / 0.5);
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
.site-drawer-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--gt-primary), var(--gt-secondary));
    border: none;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgb(var(--gt-primary-rgb) / 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.site-drawer-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgb(var(--gt-primary-rgb) / 0.4);
}
.site-drawer-logout-btn {
    background: rgb(39 39 42 / 0.8);
    border: 1px solid rgb(63 63 70 / 0.6);
    box-shadow: none;
    color: #fca5a5;
}
.site-drawer-logout-btn:hover {
    background: rgb(239 68 68 / 0.12);
    box-shadow: none;
}

/* Search trigger & modal */
.site-search-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    text-align: left;
    color: #71717a;
    background: rgb(39 39 42 / 0.55);
    border: 1px solid rgb(63 63 70 / 0.6);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}
.site-search-trigger:hover {
    border-color: rgb(var(--gt-primary-rgb) / 0.45);
}
.site-search-trigger .site-search-icon,
.site-search-trigger > svg:first-child {
    position: absolute;
    left: 0.875rem;
}
.game-search-panel {
    max-width: 36rem;
}
.game-search-results {
    max-height: min(50vh, 24rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.game-search-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
}
@media (min-width: 480px) {
    .game-search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.game-search-item {
    display: flex;
    flex-direction: column;
    padding: 0.625rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(63 63 70 / 0.55);
    background: rgb(24 24 27 / 0.5);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.game-search-item:hover {
    border-color: rgb(var(--gt-primary-rgb) / 0.45);
    background: rgb(39 39 42 / 0.55);
    transform: translateY(-2px);
}
.game-search-item img,
.game-search-item-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    object-fit: cover;
    background: rgb(39 39 42 / 0.8);
    margin-bottom: 0.5rem;
}
.game-search-item-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #52525b;
}
.game-search-item-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #f4f4f5;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.site-logo-img {
    height: 2rem;
    width: auto;
    max-width: 7rem;
    object-fit: contain;
}
.site-bg-glow-a {
    background: rgb(var(--gt-primary-rgb) / 0.1);
}
.site-bg-glow-b {
    background: rgb(var(--gt-secondary-rgb) / 0.1);
}
.site-dropdown-accent {
    color: var(--gt-accent) !important;
}
.site-theme-preview-chip {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}
.site-theme-preview-chip.primary { background: var(--gt-primary); }
.site-theme-preview-chip.secondary { background: var(--gt-secondary); }
.site-theme-preview-chip.accent { background: var(--gt-accent); }
.site-color-picker {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    background: transparent;
}

/* ===== Language tabs ===== */
.site-lang-tabs {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(39 39 42 / 0.9);
    background: rgb(24 24 27 / 0.85);
    gap: 0.125rem;
}
.site-lang-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 1.625rem;
    padding: 0 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
    color: #71717a;
    transition: color 0.15s, background 0.15s;
}
.site-lang-tab:hover { color: #e4e4e7; }
.site-lang-tab.is-active {
    color: #fff;
    background: rgb(99 102 241 / 0.85);
}
.site-drawer-lang-tabs .site-lang-tab {
    min-width: 0;
    height: 2rem;
    font-size: 0.75rem;
}

/* ===== Order input copy ===== */
.order-input-cell {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    min-width: 0;
}
.order-input-text { flex: 1 1 auto; min-width: 0; }
.btn-copy-input {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 0.375rem;
    color: #71717a;
    transition: color 0.15s, background 0.15s;
}
.btn-copy-input:hover { color: #fff; background: #27272a; }

/* ===== Order receipt bill ===== */
.order-receipt-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.order-receipt-modal.hidden { display: none; }
.order-receipt-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 0.72);
    backdrop-filter: blur(4px);
}
.order-receipt-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 24rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.order-receipt-card {
    position: relative;
    padding-top: 2.5rem;
    width: 360px;
    max-width: 100%;
    margin: 0 auto;
}
.order-receipt-logo-wrap {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1rem;
    background: #111;
    border: 4px solid #ececec;
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    box-sizing: border-box;
}
.order-receipt-logo {
    display: block;
    max-width: 3rem;
    max-height: 3rem;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}
.order-receipt-logo-fallback {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
}
.order-receipt-sheet {
    position: relative;
    background: #f5f5f5;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgb(0 0 0 / 0.25);
    color: #18181b;
}
.order-receipt-watermark {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}
.order-receipt-watermark-inner {
    position: absolute;
    width: 220%;
    height: 220%;
    top: -60%;
    left: -60%;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 2.75rem 1.75rem;
    transform: rotate(-32deg);
    opacity: 0.045;
}
.order-receipt-watermark-inner span {
    font-size: 0.8125rem;
    font-weight: 300;
    color: #18181b;
    white-space: nowrap;
    letter-spacing: 0.05em;
    user-select: none;
}
.order-receipt-head,
.order-receipt-tear,
.order-receipt-body,
.order-receipt-footer {
    position: relative;
    z-index: 1;
}
.order-receipt-head {
    padding: 2.75rem 1.5rem 1.25rem;
    text-align: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.order-receipt-amount {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.order-receipt-date {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: #71717a;
}
.order-receipt-tear {
    height: 14px;
    background: #fff;
    overflow: hidden;
}
.order-receipt-tear-svg {
    display: block;
    width: 100%;
    height: 14px;
}
.order-receipt-body {
    padding: 1rem 1.25rem 1.25rem;
    background: #fff;
}
.order-receipt-item { margin-bottom: 0.875rem; }
.order-receipt-item-cat {
    font-size: 0.6875rem;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.order-receipt-item-name {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-top: 0.125rem;
}
.order-receipt-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}
.order-receipt-label { color: #71717a; flex-shrink: 0; }
.order-receipt-value { text-align: right; font-weight: 600; word-break: break-all; }
.order-receipt-inputs {
    margin: 0.75rem 0;
    padding-top: 0.75rem;
    border-top: 1px dashed #e4e4e7;
}
.order-receipt-summary {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e4e4e7;
}
.order-receipt-profit .order-receipt-value { color: #b45309; }
.order-receipt-footer {
    padding: 1rem 1.25rem 1.25rem;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid #ececec;
}
.order-receipt-site { font-size: 0.8125rem; font-weight: 700; }
.order-receipt-thanks { font-size: 0.75rem; color: #71717a; margin-top: 0.25rem; }
.order-receipt-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}
.order-receipt-actions .gt-btn { flex: 1 1 0; justify-content: center; }

/* ===== Coin top-up ===== */
.coin-balance-card {
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgb(16 185 129 / 0.25);
    background: linear-gradient(135deg, rgb(16 185 129 / 0.12), rgb(24 24 27 / 0.5));
}
.coin-topup-card { backdrop-filter: blur(8px); }
.coin-country-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem 0;
}
.coin-country-tab {
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid rgb(63 63 70 / 0.6);
    color: #a1a1aa;
    background: rgb(24 24 27 / 0.6);
}
.coin-country-tab.is-active {
    color: #fff;
    border-color: rgb(var(--gt-primary-rgb, 99 102 241) / 0.5);
    background: rgb(var(--gt-primary-rgb, 99 102 241) / 0.15);
}
.coin-country-tab.is-disabled { opacity: 0.45; cursor: not-allowed; }
.coin-method-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}
.coin-method-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.875rem 0.5rem;
    border-radius: 0.875rem;
    border: 1px solid rgb(63 63 70 / 0.55);
    background: rgb(24 24 27 / 0.55);
    color: #d4d4d8;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}
.coin-method-tab.is-active {
    border-color: rgb(var(--gt-primary-rgb, 99 102 241) / 0.55);
    background: rgb(var(--gt-primary-rgb, 99 102 241) / 0.12);
    color: #fff;
}
.coin-method-tab.is-soon { opacity: 0.55; cursor: not-allowed; }
.coin-method-icon { font-size: 1.25rem; line-height: 1; }
.coin-soon-badge {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    font-size: 0.5625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 999px;
    background: rgb(63 63 70 / 0.8);
    color: #a1a1aa;
}
.coin-fee-badge {
    font-size: 0.625rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}
.coin-fee-badge.is-free {
    background: rgb(16 185 129 / 0.14);
    color: #6ee7b7;
}
.coin-fee-badge.is-fee {
    background: rgb(245 158 11 / 0.14);
    color: #fcd34d;
}
.coin-bank-info {
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    border: 1px dashed rgb(63 63 70 / 0.7);
    background: rgb(24 24 27 / 0.45);
    font-size: 0.875rem;
    line-height: 1.6;
}
.coin-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}
.coin-amount-btn {
    padding: 0.625rem 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(63 63 70 / 0.6);
    background: rgb(24 24 27 / 0.55);
    color: #e4e4e7;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: border-color 0.2s, background 0.2s;
}
.coin-amount-btn.is-active,
.coin-amount-btn:hover {
    border-color: rgb(var(--gt-primary-rgb, 99 102 241) / 0.55);
    background: rgb(var(--gt-primary-rgb, 99 102 241) / 0.12);
}
.coin-slip-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 9rem;
    padding: 1rem;
    border-radius: 0.875rem;
    border: 2px dashed rgb(63 63 70 / 0.7);
    background: rgb(24 24 27 / 0.35);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.coin-slip-drop.is-dragover {
    border-color: rgb(var(--gt-primary-rgb, 99 102 241) / 0.7);
    background: rgb(var(--gt-primary-rgb, 99 102 241) / 0.08);
}
.coin-slip-preview {
    max-height: 8rem;
    max-width: 100%;
    border-radius: 0.5rem;
    object-fit: contain;
}
.coin-status-pill {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
}
.coin-status-pill.is-success { background: rgb(16 185 129 / 0.15); color: #34d399; }
.coin-status-pill.is-failed { background: rgb(239 68 68 / 0.15); color: #f87171; }
.coin-status-pill.is-pending { background: rgb(245 158 11 / 0.15); color: #fbbf24; }

.coin-slip-view-btn,
.coin-angpao-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #a5b4fc;
    background: rgb(99 102 241 / 0.12);
    border: 1px solid rgb(99 102 241 / 0.25);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.coin-slip-view-btn:hover,
.coin-angpao-view-btn:hover {
    color: #c7d2fe;
    background: rgb(99 102 241 / 0.22);
    border-color: rgb(99 102 241 / 0.45);
}
.coin-slip-viewer {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.coin-slip-viewer.hidden { display: none; }
.coin-slip-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 0.88);
    border: 0;
    cursor: zoom-out;
}
.coin-slip-viewer-inner {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 720px);
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.coin-slip-viewer-img {
    max-width: 100%;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}
.coin-slip-viewer-close {
    position: absolute;
    top: -2.75rem;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    color: #fff;
    background: rgb(39 39 42 / 0.9);
    border: 1px solid rgb(63 63 70 / 0.8);
    transition: background 0.15s;
}
.coin-slip-viewer-close:hover { background: #3f3f46; }

.coin-angpao-viewer-inner {
    width: min(96vw, 36rem);
}
.coin-angpao-viewer-card {
    width: 100%;
    padding: 1.25rem;
    border-radius: 0.875rem;
    border: 1px solid rgb(63 63 70 / 0.8);
    background: rgb(24 24 27 / 0.98);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}
.coin-angpao-viewer-label {
    font-size: 0.8125rem;
    color: #a1a1aa;
    margin-bottom: 0.5rem;
}
.coin-angpao-viewer-url {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border-radius: 0.625rem;
    border: 1px solid rgb(63 63 70 / 0.8);
    background: rgb(9 9 11 / 0.8);
    color: #e4e4e7;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.4;
    word-break: break-all;
}
.coin-angpao-viewer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.coin-slip-purge-panel {
    border-radius: 0.75rem;
    border: 1px solid rgb(39 39 42 / 0.9);
    background: linear-gradient(135deg, rgb(24 24 27 / 0.95), rgb(24 24 27 / 0.6));
    padding: 1rem 1.125rem;
    max-width: 100%;
    overflow: hidden;
}
.coin-slip-purge-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    flex-wrap: wrap;
}
.coin-slip-purge-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1 1 16rem;
    min-width: 0;
}
.coin-slip-purge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    flex-shrink: 0;
    color: #f87171;
    background: rgb(239 68 68 / 0.12);
    border: 1px solid rgb(239 68 68 / 0.2);
}
.coin-slip-purge-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f4f4f5;
    line-height: 1.3;
}
.coin-slip-purge-hint {
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: #71717a;
    line-height: 1.45;
    max-width: 22rem;
}
.coin-slip-purge-form {
    display: flex;
    align-items: flex-end;
    gap: 1rem 1.25rem;
    flex-wrap: wrap;
    flex: 1 1 24rem;
    justify-content: flex-end;
    min-width: 0;
    max-width: 100%;
}
.coin-slip-purge-dates {
    display: flex;
    align-items: flex-end;
    gap: 0.625rem;
    flex-wrap: wrap;
}
.coin-slip-purge-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.coin-slip-purge-field span {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #71717a;
    letter-spacing: 0.02em;
}
.coin-slip-purge-field .gt-input[type="date"] {
    min-width: 9.75rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}
.coin-slip-purge-sep {
    padding-bottom: 0.55rem;
    color: #52525b;
    font-size: 0.875rem;
    line-height: 1;
    user-select: none;
}
.coin-slip-purge-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.coin-slip-purge-stats {
    min-height: 1.75rem;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #a1a1aa;
    background: rgb(39 39 42 / 0.7);
    border: 1px solid rgb(63 63 70 / 0.6);
    white-space: nowrap;
}
.coin-slip-purge-stats.is-found {
    color: #fbbf24;
    background: rgb(245 158 11 / 0.1);
    border-color: rgb(245 158 11 / 0.25);
}
.coin-slip-purge-stats.is-empty {
    color: #71717a;
}
.coin-slip-purge-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fca5a5;
    background: rgb(239 68 68 / 0.12);
    border: 1px solid rgb(239 68 68 / 0.28);
    transition: background 0.15s, opacity 0.15s, transform 0.15s;
    white-space: nowrap;
}
.coin-slip-purge-btn:hover:not(:disabled) {
    background: rgb(239 68 68 / 0.22);
    transform: translateY(-1px);
}
.coin-slip-purge-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.coin-truemoney-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.45rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #93c5fd;
    background: rgb(59 130 246 / 0.12);
    border: 1px solid rgb(59 130 246 / 0.25);
    transition: background 0.15s, border-color 0.15s;
}
.coin-truemoney-guide-btn:hover {
    background: rgb(59 130 246 / 0.2);
    border-color: rgb(59 130 246 / 0.4);
}
.coin-topup-approve-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6ee7b7;
    background: rgb(16 185 129 / 0.12);
    border: 1px solid rgb(16 185 129 / 0.28);
    transition: background 0.15s;
    white-space: nowrap;
}
.coin-topup-approve-btn:hover {
    background: rgb(16 185 129 / 0.22);
}

@media (max-width: 768px) {
    .coin-slip-purge-panel {
        padding: 0.875rem;
    }
    .coin-slip-purge-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 0.875rem;
    }
    .coin-slip-purge-info {
        flex: none;
        width: 100%;
    }
    .coin-slip-purge-hint {
        max-width: none;
    }
    .coin-slip-purge-form {
        width: 100%;
        flex: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .coin-slip-purge-dates {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.625rem;
    }
    .coin-slip-purge-field {
        flex: none;
        width: 100%;
    }
    .coin-slip-purge-field .gt-input[type="date"] {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    .coin-slip-purge-sep {
        display: none;
    }
    .coin-slip-purge-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.625rem;
        width: 100%;
    }
    .coin-slip-purge-stats {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
        line-height: 1.4;
        min-height: auto;
        padding: 0.5rem 0.75rem;
    }
    .coin-slip-purge-btn {
        width: 100%;
        justify-content: center;
    }
}

.coin-stepper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.coin-stepper-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #71717a;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.coin-stepper-item.is-active { color: #e4e4e7; }
.coin-stepper-item.is-done { color: #34d399; }
.coin-stepper-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    border: 1px solid rgb(63 63 70 / 0.8);
    font-size: 0.6875rem;
    font-weight: 700;
}
.coin-stepper-item.is-active .coin-stepper-num {
    border-color: rgb(var(--gt-primary-rgb, 99 102 241) / 0.6);
    background: rgb(var(--gt-primary-rgb, 99 102 241) / 0.2);
    color: #fff;
}
.coin-stepper-item.is-done .coin-stepper-num {
    border-color: rgb(16 185 129 / 0.5);
    background: rgb(16 185 129 / 0.15);
    color: #34d399;
}
.coin-stepper-line {
    flex: 1 1 0;
    height: 1px;
    background: rgb(63 63 70 / 0.6);
    min-width: 1rem;
}
.coin-stepper-label { display: none; }
@media (min-width: 480px) {
    .coin-stepper-label { display: inline; }
}
.coin-wizard-step[hidden] { display: none !important; }
.coin-wizard-actions {
    display: flex;
    gap: 0.75rem;
}
.coin-slip-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(16 185 129 / 0.25);
    background: rgb(16 185 129 / 0.08);
}
.coin-promptpay-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}
@media (min-width: 520px) {
    .coin-promptpay-panel {
        flex-direction: row;
        align-items: flex-start;
    }
}
.coin-promptpay-qr-wrap {
    position: relative;
    flex-shrink: 0;
    padding: 0.75rem;
    border-radius: 0.875rem;
    background: #fff;
    border: 1px solid rgb(63 63 70 / 0.5);
}
.coin-promptpay-qr { display: block; width: 220px; height: 220px; max-width: 100%; object-fit: contain; }
.coin-promptpay-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    color: #52525b;
    background: rgb(255 255 255 / 0.9);
    border-radius: 0.75rem;
}
.coin-promptpay-meta {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.coin-promptpay-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgb(39 39 42 / 0.8);
}

/* Coin admin settings */
.coin-settings-page {
    width: 100%;
    max-width: none;
}
.coin-settings-card {
    width: 100%;
    border-radius: 0.875rem;
    border: 1px solid rgb(39 39 42 / 0.9);
    background: rgb(24 24 27 / 0.55);
    overflow: hidden;
}
.coin-settings-tabs {
    display: flex;
    gap: 0.125rem;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgb(39 39 42 / 0.9);
    overflow-x: auto;
    scrollbar-width: none;
}
.coin-settings-tabs::-webkit-scrollbar { display: none; }
.coin-settings-tab {
    flex-shrink: 0;
    padding: 0.875rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #71717a;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}
.coin-settings-tab:hover { color: #d4d4d8; }
.coin-settings-tab.is-active {
    color: #fff;
    border-bottom-color: rgb(var(--gt-primary-rgb, 99 102 241));
}
.coin-settings-panels { padding: 0 1.5rem; }
.coin-settings-panel { display: none; padding: 1.5rem 0; }
.coin-settings-panel.is-active { display: block; }
.coin-settings-row {
    display: grid;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgb(39 39 42 / 0.75);
}
.coin-settings-row:last-child { border-bottom: 0; }
@media (min-width: 768px) {
    .coin-settings-row {
        grid-template-columns: minmax(11rem, 17.5rem) minmax(0, 1fr);
        gap: 2.5rem;
        align-items: start;
    }
}
.coin-settings-row-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.coin-settings-row-head h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f4f4f5;
}
.coin-settings-row-head p {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #71717a;
}
.coin-field-label {
    display: block;
    font-size: 0.75rem;
    color: #a1a1aa;
    margin-bottom: 0.375rem;
}
.coin-settings-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgb(39 39 42 / 0.9);
    background: rgb(9 9 11 / 0.35);
}
.coin-quota-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
}
@media (min-width: 640px) {
    .coin-quota-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.coin-quota-card {
    padding: 0.75rem;
    border-radius: 0.625rem;
    border: 1px solid rgb(63 63 70 / 0.45);
    background: rgb(39 39 42 / 0.35);
}
.coin-quota-card p {
    font-size: 0.6875rem;
    color: #71717a;
    margin-bottom: 0.25rem;
}
.coin-quota-card strong {
    font-size: 1.125rem;
    font-weight: 700;
    color: #e4e4e7;
}
.coin-security-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.625rem;
}
.coin-security-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #a1a1aa;
}
.coin-security-check {
    color: #34d399;
    font-weight: 700;
    line-height: 1.25rem;
}

/* Toggle row (coin settings — separate from compact .gt-switch) */
.gt-switch-row {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    width: 100%;
    max-width: 40rem;
    cursor: pointer;
    user-select: none;
}
.gt-switch-row-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.gt-switch-row-track {
    position: relative;
    flex-shrink: 0;
    width: 2.75rem;
    height: 1.5rem;
    margin-top: 0.125rem;
    border-radius: 999px;
    background: rgb(63 63 70 / 0.9);
    border: 1px solid rgb(82 82 91 / 0.8);
    transition: background 0.2s, border-color 0.2s;
}
.gt-switch-row-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.35);
    transition: transform 0.2s;
}
.gt-switch-row-input:checked + .gt-switch-row-track {
    background: rgb(var(--gt-primary-rgb, 99 102 241) / 0.85);
    border-color: rgb(var(--gt-primary-rgb, 99 102 241));
}
.gt-switch-row-input:checked + .gt-switch-row-track .gt-switch-row-thumb {
    transform: translateX(1.25rem);
}
.gt-switch-row-input:focus-visible + .gt-switch-row-track {
    outline: 2px solid rgb(var(--gt-primary-rgb, 99 102 241) / 0.55);
    outline-offset: 2px;
}
.gt-switch-row-text {
    flex: 1;
    min-width: 0;
}
.gt-switch-row-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e4e4e7;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
}
.gt-switch-row-desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #71717a;
    white-space: normal;
    word-break: break-word;
}

/* Admin announcements */
.announcements-layout {
    display: grid;
    gap: 0;
    min-width: 0;
}
.announcements-main {
    min-width: 0;
}
.announcements-row-no-border {
    border-bottom: 0;
    padding-bottom: 0;
}
.announcements-row-no-border + .announcements-row-no-border {
    padding-top: 0.5rem;
}
.announcements-preview-panel {
    padding: 1.25rem 1.5rem 1.5rem;
    border-top: 1px solid rgb(39 39 42 / 0.75);
    min-width: 0;
}
.announcements-preview-head h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f4f4f5;
}
.announcements-preview-head p {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #71717a;
}
.announcements-preview-wrap {
    margin-top: 1rem;
}
.announcements-preview-wrap.is-disabled .site-announce-preview {
    opacity: 0.45;
    filter: grayscale(0.35);
}
.announcements-preview-off,
.announcements-preview-empty {
    margin-top: 0.625rem;
    font-size: 0.75rem;
    color: #71717a;
}
.announcements-preview-off.hidden,
.announcements-preview-empty.hidden {
    display: none;
}
@media (min-width: 1024px) {
    .announcements-layout {
        grid-template-columns: minmax(0, 1fr) minmax(17.5rem, 22rem);
        align-items: start;
    }
    .announcements-preview-panel {
        position: sticky;
        top: 5rem;
        align-self: start;
        max-height: calc(100vh - 6rem);
        overflow: auto;
        border-top: 0;
        border-left: 1px solid rgb(39 39 42 / 0.75);
        padding-top: 1.5rem;
    }
    .coin-settings-page#admin-announcements .coin-settings-panels {
        padding-bottom: 0.5rem;
    }
}

/* Admin members modal */
.gt-sort-th {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
}
.gt-sort-th:hover {
    color: #e4e4e7;
}
.gt-sort-th.is-active {
    color: #fafafa;
}
.gt-sort-th-icon {
    opacity: 0.45;
    font-size: 0.7rem;
    line-height: 1;
}
.gt-sort-th.is-active .gt-sort-th-icon {
    opacity: 1;
    color: var(--gt-primary);
}
.member-google-icon {
    flex-shrink: 0;
}
.member-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}
.member-tab-panel.hidden { display: none; }
.member-role-option {
    display: block;
    cursor: pointer;
}
.member-role-input:checked + .member-role-card {
    border-color: rgb(var(--gt-primary-rgb, 99 102 241) / 0.75);
    background: rgb(var(--gt-primary-rgb, 99 102 241) / 0.12);
}
.member-role-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(63 63 70 / 0.55);
    background: rgb(39 39 42 / 0.35);
    transition: border-color 0.15s, background 0.15s;
    min-height: 100%;
}
.member-role-card strong {
    font-size: 0.875rem;
    color: #f4f4f5;
}
.member-role-card span {
    font-size: 0.75rem;
    line-height: 1.45;
    color: #71717a;
}
#member-delete-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
#admin-members-table-wrap.is-loading {
    opacity: 0.55;
    pointer-events: none;
}
