:root {
    /* ============================================
       CONSOLIDATED THEME TOKENS
       Semua warna berasal dari satu sumber
       ============================================ */

    /* === SHELL & LAYOUT === */
    --layout-shell-max: 480px;

    /* === WARNA UTAMA (Gold Theme) === */
    --color-gold: #DCAE49;
    --color-gold-bright: #FFE59A;
    --color-gold-dark: #A66D19;

    /* === WARNA SEKUNDER (Blue/Teal) === */
    --color-blue: #18C7B6;
    --color-blue-bright: #5DE4D6;
    --color-blue-dark: #0E8E83;

    /* === WARNA STATUS === */
    --color-positive: #32D583;
    --color-warning: #F5B041;
    --color-danger: #E34B5F;
    --color-info: #38BDF8;

    /* === BACKGROUND & SURFACE === */
    --bg-page: #070807;
    --bg-canvas: #0B0D10;
    --bg-canvas-raised: #10151B;
    --bg-surface: #18212B;
    --bg-surface-strong: #202B36;
    --bg-surface-soft: #121820;

    /* === BORDER === */
    --border-default: rgba(245, 199, 92, 0.34);
    --border-soft: rgba(255, 229, 154, 0.15);

    /* === RADIUS === */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;

    /* === GRADIENTS === */
    --gradient-gold: linear-gradient(180deg, #FFF2B8 0%, var(--color-gold) 46%, var(--color-gold-dark) 100%);
    --gradient-gold-hover: linear-gradient(180deg, #FFF5C7 0%, #F2B840 100%);
    --gradient-blue: linear-gradient(135deg, var(--color-blue-bright) 0%, var(--color-blue-dark) 100%);
    --gradient-blue-gold: linear-gradient(135deg, var(--color-blue) 0%, var(--color-gold) 100%);
    --gradient-bg: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-canvas-raised) 52%, #171D25 100%);
    --gradient-shine: linear-gradient(135deg, #FFF2B8 0%, var(--color-gold) 45%, var(--color-blue) 100%);

    /* === Alias untuk backward compatibility dengan file lain === */
    --theme-shell-max: var(--layout-shell-max);
    --theme-legacy-rem-base: 37.5px;
    --theme-page-bg: var(--bg-page);
    --theme-canvas: var(--bg-canvas);
    --theme-canvas-raised: var(--bg-canvas-raised);
    --theme-surface: var(--bg-surface);
    --theme-surface-strong: var(--bg-surface-strong);
    --theme-surface-soft: var(--bg-surface-soft);
    --theme-border: var(--border-default);
    --theme-border-soft: var(--border-soft);
    --theme-text: #FFF8E6;
    --theme-text-muted: #8FA0B2;
    --theme-primary: var(--color-blue);
    --theme-primary-hover: var(--color-blue-bright);
    --theme-primary-dark: var(--color-blue-dark);
    --theme-accent: var(--color-gold);
    --theme-accent-strong: var(--color-gold-bright);
    --theme-accent-dark: var(--color-gold-dark);
    --theme-positive: var(--color-positive);
    --theme-warning: var(--color-warning);
    --theme-danger: var(--color-danger);
    --theme-info: var(--color-info);
    --theme-radius-sm: var(--radius-sm);
    --theme-radius: var(--radius-md);
    --theme-radius-lg: var(--radius-lg);
    --theme-shadow: 0 18px 42px rgb(0 6 20 / 35%);
    --theme-focus: #FFFFFF;
    --theme-z-base: 1;
    --theme-z-header: 100;
    --theme-z-nav: 900;
    --theme-z-overlay: 2000;
    --theme-z-toast: 3000;
    --theme-z-loading: 10000;

    /* Legacy aliases untuk backward compatibility */
    --royal-blue: var(--theme-primary);
    --royal-blue-hover: var(--theme-primary-hover);
    --royal-blue-dark: var(--theme-primary-dark);
    --gold: var(--theme-accent);
    --gold-hover: var(--theme-accent-strong);
    --gold-dark: var(--theme-accent-dark);
    --bg-deep: var(--bg-canvas);
    --bg-navy: var(--bg-canvas-raised);
    --bg-card: var(--bg-surface);
    --bg-card-hover: var(--bg-surface-strong);
    --user-ui-surface: var(--bg-canvas-raised);
    --user-ui-surface-light: var(--bg-surface-strong);
    --user-ui-text-muted: var(--theme-text-muted);
    --user-ui-focus: var(--theme-focus);
    --user-ui-accent: var(--theme-accent);
    --user-ui-accent-light: var(--theme-accent-strong);
    --user-ui-blue: var(--theme-primary);
    --user-ui-blue-dark: var(--theme-primary-dark);
    --user-ui-blue-light: var(--theme-primary-hover);

    /* Alias bdg-* yang dikonsolidasikan ke warna utama */
    --bdg-gold: var(--color-gold);
    --bdg-gold-bright: var(--color-gold-bright);
    --bdg-gold-dark: var(--color-gold-dark);
    --bdg-panel: var(--bg-surface);
    --bdg-panel-soft: var(--bg-surface-strong);
    --bdg-line: var(--border-soft);
    --bdg-radius: var(--radius-md);
    --bdg-page-bg: var(--bg-page);
    --bdg-canvas: var(--bg-canvas);
    --bdg-text: var(--theme-text);
    --bdg-muted: var(--theme-text-muted);
    --bdg-header: var(--bg-surface);
    --bdg-app-max: 480px;

    /* Glow effects */
    --gold-glow: 0 0 18px rgb(244 193 79 / 18%);
    --blue-glow: 0 0 18px rgb(29 107 255 / 25%);

    /* Tabbar dimensions */
    --user-tabbar-height: 68px;
    --user-content-nav-gap: 8px;
}

/* ============================================
   TEXT UTILITY CLASSES
   ============================================ */
.text-gold {
    color: var(--color-gold-bright);
}

.text-blue {
    color: var(--theme-primary);
}

.text-success {
    color: var(--theme-positive);
}

.text-warning {
    color: var(--theme-warning);
}

.text-danger {
    color: var(--theme-danger);
}

.text-muted {
    color: var(--theme-text-muted);
}

/* Gold Gradient Background */
.bg-gradient-gold-blue {
    background: var(--gradient-blue-gold) !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}

/* ============================================
   ACCESSIBILITY FOCUS STATES
   ============================================ */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
[role="link"]:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 2px solid var(--theme-focus);
    outline-offset: 2px;
}

.navbar-left,
.navbar-right {
    min-width: 44px;
    min-height: 44px;
}

.navbar__content-left,
.navbar__content-right {
    min-width: 44px;
    min-height: 44px;
}

.navbar-left > div,
.navbar-right > div {
    min-width: 100%;
    min-height: 100%;
}

.navbar__content-left[onclick],
.navbar__content-right[onclick] {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.navbar-left .fas,
.navbar-right .fas,
.navbar-left .far,
.navbar-right .far {
    font-size: 20px;
}

.fa-light,
.fa-duotone,
.fa-solid,
.fa-regular {
    display: inline-block;
    font-family: "Font Awesome 5 Free";
    font-style: normal;
    font-variant: normal;
    font-weight: 900;
    line-height: 1;
    text-rendering: auto;
}

.fa-xl {
    font-size: 1.5em;
    line-height: 0.04167em;
    vertical-align: -0.125em;
}

.fa-house::before {
    content: "\f015";
}

.fa-calendar-lines::before {
    content: "\f073";
}

.fa-fade {
    animation: none !important;
}

.eye[role="button"],
.toggle-password[role="button"],
#reload_money_amount_button {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.legacy-home-navigation {
    display: none !important;
}

body.has-user-tabbar {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
}

.nav.user-navigation {
    position: static !important;
    width: auto !important;
    max-width: none !important;
    height: 0 !important;
    touch-action: auto !important;
}

.user-navigation .user-support-fab {
    position: fixed;
    right: max(16px, calc((100% - var(--theme-shell-max)) / 2 + 16px));
    bottom: calc(82px + env(safe-area-inset-bottom));
    z-index: calc(var(--theme-z-nav) + 1);
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgb(0 0 0 / 35%);
}

.user-navigation .user-support-fab img {
    display: block;
    width: 100%;
    height: 100%;
}

.user-navigation .user-tabbar {
    box-sizing: border-box;
    position: fixed;
    bottom: 0;
    left: 50%;
    z-index: var(--theme-z-nav);
    display: grid;
    width: min(100%, var(--theme-shell-max));
    height: calc(68px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    padding: 6px 4px calc(7px + env(safe-area-inset-bottom));
    background: var(--user-ui-surface);
    border-top: 1px solid rgb(255 255 255 / 8%);
    box-shadow: 0 -4px 16px rgb(0 0 0 / 24%);
    transform: translateX(-50%);
    /* Performance optimization */
    contain: layout style;
    will-change: transform;
}

.user-navigation .user-tabbar__item {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 52px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 6px 4px;
    color: var(--user-ui-text-muted);
    font-size: 11px;
    line-height: 1;
    text-decoration: none;
    /* Smooth transitions */
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    /* Prevent text selection on rapid taps */
    user-select: none;
    -webkit-user-select: none;
    /* Touch feedback base */
    -webkit-tap-highlight-color: transparent;
}

.user-navigation .user-tabbar__item:hover,
.user-navigation .user-tabbar__item:focus,
.user-navigation .user-tabbar__item.active {
    color: var(--user-ui-accent-light);
    text-decoration: none;
}

/* Touch feedback state */
.user-navigation .user-tabbar__item.is-touching {
    transform: scale(0.92);
    transition-duration: 0.05s;
}

/* Active state with scale animation */
.user-navigation .user-tabbar__item.active {
    animation: tabbarItemActivate 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tabbarItemActivate {
    0% {
        transform: scale(0.88);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Pulse animation for notifications */
.user-navigation .user-tabbar__item.is-pulsing {
    animation: tabbarItemPulse 0.6s cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes tabbarItemPulse {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.15);
    }
    50% {
        transform: scale(0.95);
    }
    75% {
        transform: scale(1.08);
    }
}

.user-navigation .user-tabbar__icon {
    position: relative;
    display: flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    /* Icon transition */
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.user-navigation .user-tabbar__item.active .user-tabbar__icon {
    transform: scale(1.1);
}

.user-navigation .user-tabbar__item--primary .user-tabbar__icon {
    width: 48px;
    height: 48px;
    margin-top: -24px;
    color: #1a1f2e;
    font-size: 24px;
    background: var(--gradient-gold-blue);
    border: 4px solid var(--user-ui-surface);
    border-radius: 50%;
    box-shadow: 0 3px 15px rgba(212, 175, 55, 0.4), 0 3px 10px rgb(0 0 0 / 35%);
    /* Bounce animation on active */
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.2s ease;
}

.user-navigation .user-tabbar__item--primary.active .user-tabbar__icon {
    transform: scale(1.12);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.6), 0 4px 12px rgb(0 0 0 / 35%);
}

.user-navigation .user-tabbar__item--primary.active .user-tabbar__icon {
    color: #ffffff;
    background: var(--gradient-blue-gold);
}

.user-navigation .user-tabbar__label {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* Label transition */
    transition: font-weight 0.15s ease;
}

.user-navigation .user-tabbar__item.active .user-tabbar__label {
    font-weight: 700;
}

/* Active indicator line */
.user-navigation .user-tabbar__indicator {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--user-ui-accent-light);
    border-radius: 3px 3px 0 0;
    opacity: 0;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.15s ease;
}

.user-navigation .user-tabbar__item.active .user-tabbar__indicator {
    width: 20px;
    opacity: 1;
}

/* Badge styles */
.user-navigation .user-tabbar__badge[hidden],
.user-navigation .user-tabbar__badge:empty:not(.user-tabbar__badge--dot),
.user-navigation .user-tabbar__badge--dot[hidden],
body.public-ui-shell .user-navigation .user-tabbar__badge[hidden] {
    display: none !important;
}

.user-navigation .user-tabbar__badge {
    position: absolute;
    top: -4px;
    right: -6px;
    display: flex;
    min-width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    background: var(--color-danger);
    border: 2px solid var(--user-ui-surface);
    border-radius: 9px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    /* Badge animation */
    animation: tabbarBadgeAppear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tabbarBadgeAppear {
    0% {
        transform: scale(0) translate(50%, -50%);
        opacity: 0;
    }
    100% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }
}

/* Dot badge for simple notifications */
.user-navigation .user-tabbar__badge--dot {
    min-width: 10px;
    width: 10px;
    height: 10px;
    padding: 0;
    color: transparent;
    font-size: 0;
    border-radius: 50%;
    animation: tabbarBadgePulse 2s ease-in-out infinite;
}

@keyframes tabbarBadgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Count badge */
.user-navigation .user-tabbar__badge--count {
    min-width: 18px;
    padding: 0 5px;
    font-size: 10px;
}

/* Primary item badge adjustment */
.user-navigation .user-tabbar__item--primary .user-tabbar__badge {
    top: -6px;
    right: -4px;
}

.phoneInput__container-input,
.passwordInput__container-input {
    display: flex;
    align-items: center;
    min-width: 0;
}

.phoneInput__container-input .dropdown,
.phoneInput__container-input .dropdown__value,
.passwordInput__container-input .eye {
    flex: 0 0 auto;
}

.phoneInput__container-input input,
.passwordInput__container-input input {
    min-width: 0;
    width: 100%;
    text-overflow: ellipsis;
}

.auth-support-fab#customerId {
    display: none !important;
}

/* Reserve space di bawah konten agar tidak tertutup FAB. */
body.public-route-auth #app {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
}

.auth-support-fab#customerId img {
    display: block;
    width: 100%;
    height: 100%;
}

.public-home {
    --home-content-max: var(--bdg-app-max);
    --home-canvas: var(--theme-canvas);
    --home-background: var(--theme-canvas-raised);
    --home-surface: var(--theme-surface);
    --home-surface-raised: var(--theme-surface-strong);
    --home-border: var(--theme-border-soft);
    --home-text: var(--theme-text);
    --home-muted: var(--theme-text-muted);
    --home-accent: var(--theme-accent);
    --home-accent-strong: var(--theme-accent-strong);
    --home-blue: var(--theme-primary);
    --home-blue-light: var(--theme-primary-hover);
    --home-positive: var(--theme-positive);
    --home-gradient: var(--gradient-bg);
    --home-gradient-gold: var(--gradient-gold);
    --home-gradient-reverse: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-accent) 100%);
    color: var(--home-text);
    background: var(--home-gradient);
    background-attachment: fixed;
}

.public-home.has-user-tabbar {
    padding-bottom: 0;
}

.public-home #app {
    width: min(100%, var(--home-content-max));
    overflow: hidden;
    background: var(--home-background);
    box-shadow: 0 0 36px rgb(0 0 0 / 38%);
}

.public-home #app > .content {
    gap: 16px;
    padding-inline: 12px;
    padding-bottom: 96px;
    background: var(--home-background);
}

.public-home .navbar-fixed {
    width: min(100%, var(--home-content-max));
    background: var(--home-surface) !important;
    border-bottom: 1px solid var(--home-border);
    box-shadow: 0 4px 14px rgb(0 0 0 / 16%);
}

/* Download App Button - Compact Pill Style */
.public-home .content__right :is(.btn-download-app, .home-navbar-guest-action) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-accent-dark);
    background: var(--gradient-gold);
    border: none;
    border-radius: 18px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: var(--gold-glow);
}

.public-home .content__right :is(.btn-download-app, .home-navbar-guest-action):active {
    transform: scale(0.96);
    box-shadow: 0 1px 4px rgba(244, 193, 79, 0.25);
}

.public-home .content__right :is(.btn-download-app, .home-navbar-guest-action) svg {
    flex-shrink: 0;
}

.public-home .content__right :is(.btn-download-app, .home-navbar-guest-action):hover {
    background: var(--gradient-gold-hover);
    box-shadow: 0 4px 12px rgba(244, 193, 79, 0.45);
}

/* Legacy button style (keep for compatibility) */
.public-home .content__right .btn {
    color: #201d15;
    background: var(--home-accent);
}

.public-home .home-hero.my-swipe {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 768 / 300;
    overflow: hidden;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgb(0 0 0 / 20%);
}

.public-home .home-hero .home-hero__slides,
.public-home .home-hero .mySlides {
    width: 100%;
    height: 100%;
}

.public-home .home-hero .mySlides[hidden] {
    display: none !important;
}

.public-home .home-hero .mySlides:not([hidden]) {
    display: block;
}

.public-home .home-hero.my-swipe .mySlides img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.public-home .home-hero__indicators {
    position: absolute;
    right: 0;
    bottom: 8px;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}

.public-home .home-hero__indicator {
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    pointer-events: auto;
}

.public-home .home-hero__indicator::before {
    width: 7px;
    height: 7px;
    content: '';
    background: rgb(255 255 255 / 48%);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgb(0 0 0 / 35%);
    transition: width 180ms ease, background-color 180ms ease;
}

.public-home .home-hero__indicator.is-active::before {
    width: 20px;
    background: var(--home-accent);
    border-radius: 4px;
}

.public-home .noticeBar__container {
    display: flex;
    width: 100%;
    min-height: 44px;
    height: auto;
    align-items: center;
    padding: 6px 8px 6px 12px;
    color: var(--home-text);
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 8px;
}

.public-home .noticeBar__container > svg {
    width: 18px;
    margin-right: 8px;
}

.public-home .noticeBar__container-body {
    position: relative;
    overflow: hidden;
    width: auto;
    min-width: 0;
    height: auto;
    flex: 1;
    line-height: 1.35;
}

.public-home .noticeBar__ticker {
    display: flex;
    width: max-content;
    align-items: center;
    animation: homeNoticeTicker 18s linear infinite;
    will-change: transform;
}

.public-home .noticeBar__container:hover .noticeBar__ticker,
.public-home .noticeBar__container:focus-within .noticeBar__ticker {
    animation-play-state: paused;
}

.public-home .noticeBar__message {
    display: block;
    flex: 0 0 auto;
    padding-right: 48px;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    white-space: nowrap;
}

@keyframes homeNoticeTicker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.public-home .noticeBar__action {
    display: inline-flex;
    min-width: 72px;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-left: 8px;
    padding: 0 10px;
    color: var(--theme-accent-dark);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    background: var(--theme-accent);
    border-radius: var(--radius-sm);
}

.public-home .noticeBar__action:hover,
.public-home .noticeBar__action:focus {
    color: var(--theme-accent-dark);
    text-decoration: none;
    background: var(--theme-accent-strong);
}

.public-home .noticeBar__action > svg {
    display: none;
}

.public-home .gamesList__container,
.public-home .luckyWinners__container,
.public-home .dailyProfitRank {
    width: 100%;
    margin: 0;
}

.public-home .gamesList__container-title,
.public-home .luckyWinners__container > h1,
.public-home .dailyProfitRank > h1 {
    position: relative;
    display: flex;
    min-height: 22px;
    align-items: center;
    margin: 0 0 12px;
    padding-left: 12px;
    color: var(--home-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.public-home .gamesList__container-title::before,
.public-home .luckyWinners__container > h1::before,
.public-home .dailyProfitRank > h1::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 3px;
    height: 16px;
    margin: 0;
    background: var(--home-accent-strong);
    border-radius: 2px;
    transform: translateY(-50%);
}

.public-home .gameListGrid__container {
    position: static;
    width: 100%;
    padding-left: 0;
}

.public-home .lottery_container {
    width: 100%;
}

.public-home .lottery_container-tab:empty {
    display: none;
}

.public-home .gamesList__container .lottery_container-list {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.public-home .gamesList__container .lottery_container .lotterySlotItem {
    width: 100%;
    min-width: 0;
    aspect-ratio: 222 / 300;
    overflow: hidden;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 8px;
}

.public-home .gamesList__container .lottery_container .lotterySlotItem_img {
    width: 100%;
    height: 100%;
}

.public-home .gamesList__container .lottery_container .lotterySlotItem img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
}

.public-home .gamesList__container .lottery_container .lotterySlotItem span {
    z-index: 2;
    margin: 0;
    padding: 20px 8px 8px;
    color: var(--home-text);
    line-height: 1.3;
    text-shadow: 0 1px 3px rgb(0 0 0 / 75%);
    background: linear-gradient(to bottom, transparent, rgb(0 0 0 / 82%));
}

.public-home .gamesList__container-list__item,
.public-home .luckyWinners__container-wrapper__item,
.public-home .dailyProfitRank__content-list__item {
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: 8px;
}

.public-home .luckyWinners__container-wrapper {
    height: auto;
    overflow: visible;
}

.public-home .luckyWinners__container-wrapper > div {
    display: grid;
    gap: 8px;
}

.public-home .luckyWinners__container-wrapper__item {
    display: grid;
    width: 100%;
    min-height: 68px;
    height: auto;
    grid-template-columns: 44px minmax(0, 1fr) 64px minmax(88px, 1.2fr);
    gap: 8px;
    margin: 0;
    padding: 10px;
    background: var(--home-surface);
}

.public-home .luckyWinners__container-wrapper__item-img,
.public-home .luckyWinners__container-wrapper__item-info,
.public-home .luckyWinners__container-wrapper__item-winType {
    width: auto;
    margin: 0;
}

.public-home .luckyWinners__container-wrapper__item-img img {
    width: 44px;
    height: 44px;
}

.public-home .luckyWinners__container-wrapper__item-info h1,
.public-home .luckyWinners__container-wrapper__item-winAmount h1 {
    overflow: hidden;
    width: 100%;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-home .luckyWinners__container-wrapper__item-info h1 {
    color: var(--home-text);
}

.public-home .luckyWinners__container-wrapper__item-winType {
    width: 64px;
    height: 42px;
}

.public-home .luckyWinners__container-wrapper__item-winAmount {
    min-width: 0;
    text-align: right;
}

.public-home .luckyWinners__container-wrapper__item-winAmount h1 {
    color: var(--home-positive);
    font-size: 13px;
}

.public-home .luckyWinners__container-wrapper__item-winAmount span {
    color: var(--home-muted);
    font-size: 11px;
}

.public-home .dailyProfitRank__content .dailyProfitRank__content-topThree {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    min-height: 168px;
    height: auto;
    aspect-ratio: 3 / 1;
    padding-top: 28px;
    margin-bottom: 0;
}

.public-home .dailyProfitRank__content-topThree .dailyProfitRank__content-topThree__item {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    min-width: 0;
    height: auto;
}

.public-home .dailyProfitRank__content-topThree__item--one {
    grid-column: 2;
    grid-row: 1;
    transform: translateY(-20px);
}

.public-home .dailyProfitRank__content-topThree__item--two {
    grid-column: 1;
    grid-row: 1;
}

.public-home .dailyProfitRank__content-topThree__item--three {
    grid-column: 3;
    grid-row: 1;
}

.public-home .dailyProfitRank__content-topThree .dailyProfitRank__content-topThree__item > span {
    max-width: 100%;
}

.public-home .dailyProfitRank__content-topThree .dailyProfitRank__content-topThree__item > span:last-of-type,
.public-home .dailyProfitRank__content-list__item .right-box {
    color: #201d15;
}

.public-home .dailyProfitRank__content-list__item {
    background: var(--home-surface);
}

.public-home .user-navigation .user-tabbar {
    width: min(100%, var(--home-content-max));
    background: var(--home-surface);
    border-color: var(--home-border);
}

.public-home .user-navigation .user-tabbar__item--primary .user-tabbar__icon {
    border-color: var(--home-surface);
}

.public-home .user-navigation .user-support-fab {
    right: max(16px, calc((100% - var(--home-content-max)) / 2 + 16px));
}

.public-home .popup {
    color: var(--home-text);
    background: var(--home-surface-raised);
    border: 1px solid var(--home-border);
}

.public-home .popup-header {
    color: var(--home-text);
    background: var(--home-surface);
    border-bottom: 1px solid var(--home-border);
}

.public-home .popup-header p,
.public-home .deposit-option p,
.public-home .reminder-button {
    color: var(--home-muted);
}

.public-home .deposit-option,
.public-home .popup-footer {
    border-color: var(--home-border);
}

.public-home .deposit-header strong,
.public-home .bonus {
    color: var(--home-accent);
}

.public-home .progress-bar {
    background: var(--home-background);
}

.public-home .progress {
    background: var(--home-accent-strong);
}

.public-home .deposit-button,
.public-home .activity-button {
    color: #201d15;
    font-weight: 700;
    background: var(--home-accent);
}

.public-home .deposit-button:hover,
.public-home .activity-button:hover {
    background: #f7df9e;
}

.public-home .close-button {
    color: var(--home-muted);
}

.public-home .close-button:hover {
    color: var(--home-text);
}

@media (min-width: 600px) {
    .public-home #app > .content {
        gap: 20px;
        padding-inline: 20px;
    }

    .public-home .gamesList__container .lottery_container-list {
        gap: 12px;
    }

    .public-home .luckyWinners__container-wrapper > div {
        gap: 10px;
    }
}

@media (max-width: 340px) {
    .public-home .gamesList__container .lottery_container-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-home .dailyProfitRank__content .dailyProfitRank__content-topThree {
        min-height: 152px;
        padding-top: 22px;
    }

    .public-home .dailyProfitRank__content-topThree__item--one {
        transform: translateY(-14px);
    }

    .public-home .luckyWinners__container-wrapper__item {
        grid-template-columns: 40px minmax(0, 1fr) 56px minmax(78px, 1.1fr);
        gap: 6px;
        padding: 8px;
    }

    .public-home .luckyWinners__container-wrapper__item-img img {
        width: 40px;
        height: 40px;
    }

    .public-home .luckyWinners__container-wrapper__item-winType {
        width: 56px;
        height: 38px;
    }

    .public-home .luckyWinners__container-wrapper__item-winAmount span {
        display: none;
    }
}

@media (max-width: 420px) {
    .phoneInput__container-input input,
    .passwordInput__container-input input {
        /* Minimum 16px untuk cegah zoom otomatis di iOS/WebView. */
        font-size: 16px;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

    .public-home .noticeBar__ticker {
        width: 100%;
        animation: none !important;
        transform: none !important;
    }

    .public-home .noticeBar__message:first-child {
        overflow: hidden;
        width: 100%;
        padding-right: 0;
        text-overflow: ellipsis;
    }

    .public-home .noticeBar__message[aria-hidden="true"] {
        display: none;
    }
}

.public-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.public-skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 10000;
    padding: 10px 14px;
    color: #171107 !important;
    background: #f6d77d !important;
    border: 2px solid #171107;
    border-radius: 8px;
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform 0.15s ease;
}

.public-skip-link:focus {
    transform: translateY(0);
}

/* Tema publik gelap-emas memakai alias token pusat di awal file. */
html {
    background: var(--bdg-page-bg);
}

body.public-ui-shell,
body.public-home {
    min-height: 100dvh;
    margin: 0 auto;
    color: var(--bdg-text);
    font-family: var(--font-family) !important;
    background: var(--bdg-page-bg) !important;
}

body.public-ui-shell > *:not(script):not(style):not(.van-toast):not(.van-overlay):not(.dialog):not(.popup),
body.public-home #app {
    max-width: var(--bdg-app-max);
    margin-right: auto;
    margin-left: auto;
}

body.public-ui-shell #app,
body.public-home #app,
body.public-ui-shell .container,
body.public-ui-shell main {
    color: var(--bdg-text);
    background: var(--bdg-canvas);
}

.public-home {
    --home-content-max: var(--bdg-app-max);
    --home-canvas: var(--bdg-page-bg);
    --home-background: var(--bdg-canvas);
    --home-surface: var(--bdg-panel);
    --home-surface-raised: var(--bdg-panel-soft);
    --home-border: var(--bdg-line);
    --home-text: var(--bdg-text);
    --home-muted: var(--bdg-muted);
    --home-accent: var(--bdg-gold-bright);
    --home-accent-strong: var(--bdg-gold);
    --home-positive: var(--bdg-gold-bright);
}

.public-home #app {
    min-height: 100dvh;
    box-shadow: 0 0 28px rgb(0 0 0 / 26%);
}

.public-home #app > .content {
    gap: 10px;
    padding-inline: 8px;
    padding-bottom: 92px;
}

.public-home .navbar-fixed,
body.public-ui-shell .navbar-fixed,
body.public-ui-shell .navbar,
body.public-route-auth .navbar-fixed {
    max-width: var(--bdg-app-max);
    color: var(--bdg-text) !important;
    background: var(--bdg-header) !important;
}

/* Auth header: samakan positioning dengan home agar centered di shell 480px. */
body.public-route-auth .navbar-fixed {
    top: 0;
    right: auto;
    left: 50%;
    width: min(100%, var(--bdg-app-max));
    transform: translateX(-50%);
    z-index: 100;
}

.public-home #app > .content > .navbar {
    width: calc(100% + 16px);
    height: calc(64px + env(safe-area-inset-top));
    min-height: calc(64px + env(safe-area-inset-top));
    margin-inline: -8px;
    padding: 0;
}

.public-home .navbar-fixed {
    top: 0;
    right: auto;
    left: 50%;
    width: min(100%, var(--bdg-app-max));
    transform: translateX(-50%);
}

.public-home .navbar__content {
    width: 100%;
    height: calc(64px + env(safe-area-inset-top));
    min-height: calc(64px + env(safe-area-inset-top));
    padding: calc(4px + env(safe-area-inset-top)) 12px 4px;
}

body.public-ui-theme.public-page--home .navbar__content-left {
    position: static;
    display: flex;
    min-width: 0;
    height: 100%;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0;
}

body.public-ui-theme.public-page--home .navbar__content-left .logo {
    width: clamp(108px, 32vw, 128px) !important;
    height: 36px !important;
    flex: 0 0 auto;
    margin-top: 0 !important;
    background-size: contain !important;
}

body.public-ui-theme.public-page--home .languages .right {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--bdg-gold-bright);
    font-weight: 700;
}

body.public-ui-theme.public-page--home .navbar__content-right {
    position: static;
    right: auto;
    width: auto;
    flex: 0 0 auto;
    margin-left: 12px;
    transform: none;
}

body.public-ui-theme.public-page--home .content__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Override for download / guest button - compact pill */
.public-home .content__right :is(.btn-download-app, .home-navbar-guest-action) {
    min-width: 68px !important;
    min-height: 36px !important;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    height: 36px;
    color: var(--theme-accent-dark) !important;
    font-size: 13px;
    font-weight: 700;
    background: var(--gradient-gold) !important;
    border-radius: 18px !important;
    box-shadow: var(--gold-glow);
    text-decoration: none;
}

.public-home .content__right :is(.btn-download-app, .home-navbar-guest-action):active {
    transform: scale(0.96);
    box-shadow: 0 1px 4px rgba(244, 193, 79, 0.25);
}

.public-home .content__right :is(.btn-download-app, .home-navbar-guest-action):hover {
    background: var(--gradient-gold-hover) !important;
    box-shadow: 0 4px 12px rgba(244, 193, 79, 0.45);
}

.public-home .content__right .btn {
    min-width: 92px;
    min-height: 44px;
    justify-content: center;
    gap: 5px;
    padding: 4px 8px;
    color: #08111F !important;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
    background: var(--home-gradient-gold) !important;
    border: none;
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(244, 193, 79, 0.25);
}

.public-home .content__right .btn:hover {
    background: linear-gradient(180deg, #FFE58D 0%, #F6B92A 100%) !important;
}

.public-home .content__right .btn svg {
    width: 18px;
    height: 18px;
}

.public-home .home-hero.my-swipe {
    aspect-ratio: 690 / 380;
    border: 0;
    border-radius: 7px;
    box-shadow: none;
}

.public-home .noticeBar__container {
    min-height: 34px;
    padding: 4px 5px;
    color: var(--bdg-text);
    background: var(--bdg-panel);
    border: 0;
    border-radius: 7px;
}

.public-home .noticeBar__container > svg {
    width: 22px;
    height: 22px;
    margin-right: 5px;
}

.public-home .noticeBar__message {
    color: var(--theme-text-muted);
    font-size: 11px;
    font-weight: 700;
}

.public-home .noticeBar__action {
    min-width: 62px;
    min-height: 44px;
    color: var(--theme-accent-dark);
    background: var(--gradient-gold);
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
}

.public-home .gamesList__container-title,
.public-home .luckyWinners__container > h1,
.public-home .dailyProfitRank > h1 {
    margin-bottom: 8px;
    padding-left: 8px;
    color: var(--bdg-gold-bright);
    font-size: 14px;
    font-weight: 900;
}

.public-home .gamesList__container-title::before,
.public-home .luckyWinners__container > h1::before,
.public-home .dailyProfitRank > h1::before {
    width: 3px;
    height: 15px;
    background: var(--bdg-gold);
}

.public-home .gamesList__container .lottery_container-list {
    gap: 8px;
}

.public-home .gamesList__container .lottery_container .lotterySlotItem {
    aspect-ratio: 1 / 1.33;
    background: var(--bdg-panel);
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 2px;
}

.public-home .gamesList__container .lottery_container .lotterySlotItem span {
    min-height: 30px;
    padding: 13px 5px 5px;
    color: var(--bdg-gold-bright);
    font-size: 11px;
    font-weight: 900;
}

.public-home .luckyWinners__container-wrapper__item,
.public-home .dailyProfitRank__content-list__item {
    color: var(--bdg-text);
    background: var(--bdg-panel);
    border: 0;
    border-radius: 6px;
}

.public-home .luckyWinners__container-wrapper__item {
    min-height: 58px;
    grid-template-columns: 38px minmax(0, 1fr) 58px minmax(78px, 1.05fr);
    padding: 8px;
}

.public-home .luckyWinners__container-wrapper__item-img img {
    width: 38px;
    height: 38px;
}

.public-home .luckyWinners__container-wrapper__item-winType {
    width: 58px;
    height: 38px;
    border-radius: 7px;
}

.public-home .luckyWinners__container-wrapper__item-winAmount h1 {
    color: var(--bdg-gold-bright);
    font-size: 12px;
}

.public-home .dailyProfitRank__content-list__item .right-box,
.public-home .dailyProfitRank__content-topThree .dailyProfitRank__content-topThree__item > span:last-of-type {
    color: #1a1f2e;
    font-weight: 900;
    background: var(--home-gradient);
    border: none;
}

.nexus-public-section {
    width: 100%;
    padding: 0 10px 4px;
}

.nexus-public-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin: 2px 0 8px;
}

.nexus-public-header p {
    margin: 0 0 2px;
    color: var(--bdg-gold-bright);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.nexus-public-header h2 {
    margin: 0;
    color: var(--bdg-text);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.15;
}

.nexus-public-header a {
    flex: 0 0 auto;
    color: #2b1a02 !important;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    padding: 8px 10px;
    background: linear-gradient(180deg, #fff0ac, #d5a642);
    border-radius: 999px;
}

.nexus-provider-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 6px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.nexus-provider-rail::-webkit-scrollbar {
    display: none;
}

.nexus-provider-card {
    display: flex;
    flex: 0 0 82px;
    min-height: 86px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    overflow: hidden;
    padding: 8px 7px;
    color: var(--bdg-text) !important;
    text-align: center;
    text-decoration: none;
    background: var(--bdg-panel);
    border: 1px solid var(--bdg-line);
    border-radius: 8px;
    scroll-snap-align: start;
}

.nexus-provider-card:active,
.nexus-game-card:active {
    transform: scale(0.98);
}

.nexus-provider-card__icon {
    display: flex;
    width: 68px;
    height: 30px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--theme-text);
    font-size: 13px;
    font-weight: 900;
    background: linear-gradient(180deg, rgb(255 255 255 / 13%), rgb(255 255 255 / 4%));
    border: 1px solid var(--bdg-line);
    border-radius: 7px;
}

.nexus-provider-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nexus-game-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nexus-provider-card strong,
.nexus-game-card strong {
    display: block;
    width: 100%;
    overflow: hidden;
    color: var(--bdg-text);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nexus-provider-card small,
.nexus-game-card__provider {
    display: block;
    width: 100%;
    overflow: hidden;
    color: var(--theme-text-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nexus-game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.nexus-game-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
    padding: 6px;
    color: var(--bdg-text) !important;
    text-decoration: none;
    background: var(--bdg-panel);
    border: 1px solid var(--bdg-line);
    border-radius: 8px;
}

.nexus-game-card__media {
    display: flex;
    width: 100%;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--theme-text);
    font-size: 22px;
    font-weight: 900;
    background:
        radial-gradient(circle at 70% 18%, rgb(255 240 172 / 45%), transparent 26%),
        linear-gradient(135deg, var(--bg-surface-strong), var(--bg-surface));
    border-radius: 6px;
}

.nexus-game-card__provider {
    color: var(--bdg-gold-bright);
}

.nexus-game-card__badge {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    color: #211802;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    background: linear-gradient(180deg, #fff0ac, #d5a642);
    border-radius: 999px;
}

.nexus-public-empty {
    padding: 18px 12px;
    color: #c8cbd1;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    background: var(--bdg-panel);
    border: 1px solid var(--bdg-line);
    border-radius: 8px;
}

/* ============================================
   NEXUS CATEGORY PANEL - Grid Layout
   ============================================ */

.neon-grid .neon-card {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}

.neon-grid .neon-card.active::before {
    opacity: 0.8;
}

/* Panel Content */
.nexus-panel-content {
    width: 100%;
    padding: 0 8px 8px;
}

.nexus-category-panel {
    display: none;
    width: 100%;
}

.nexus-category-panel.active {
    display: block;
}

/* Grid Container */
.nexus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
}

/* Item Card (Games) */
.nexus-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px;
    color: var(--theme-text);
    text-decoration: none;
    background: var(--bdg-panel);
    border: 1px solid var(--bdg-line);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.nexus-item-card:hover {
    transform: translateY(-2px);
    border-color: var(--bdg-gold);
    box-shadow: 0 4px 16px rgb(0 0 0 / 40%);
}

.nexus-item-card__image {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--bdg-panel-soft);
    overflow: hidden;
}

.nexus-item-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nexus-item-card__letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--bdg-gold-bright);
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(135deg, rgb(255 215 0 / 20%) 0%, rgb(200 160 0 / 15%) 100%);
    border-radius: 50%;
}

.nexus-item-card__letter[hidden],
.nexus-provider-item__letter[hidden] {
    display: none;
}

.nexus-item-card__name {
    max-width: 100%;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.nexus-item-card__provider {
    max-width: 100%;
    margin-top: 2px;
    font-size: 11px;
    color: var(--theme-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Provider Card */
.nexus-provider-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    color: var(--theme-text);
    text-decoration: none;
    background: var(--bdg-panel);
    border: 1px solid var(--bdg-line);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.nexus-provider-item:hover {
    transform: translateY(-2px);
    border-color: var(--bdg-gold);
    box-shadow: 0 4px 16px rgb(0 0 0 / 40%);
}

.nexus-provider-item__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bdg-panel-soft);
    overflow: hidden;
}

.nexus-provider-item__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nexus-provider-item__letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--bdg-gold-bright);
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(135deg, rgb(255 215 0 / 20%) 0%, rgb(200 160 0 / 15%) 100%);
    border-radius: 50%;
}

.nexus-provider-item__name {
    max-width: 100%;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.nexus-provider-item__count {
    max-width: 100%;
    margin-top: 2px;
    font-size: 10px;
    color: var(--theme-text-muted);
}

/* Empty State */
.nexus-empty {
    grid-column: 1 / -1;
    padding: 32px 16px;
    color: var(--theme-text-muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    background: var(--bdg-panel);
    border: 1px dashed rgb(255 255 255 / 15%);
    border-radius: 10px;
}

/* Responsive - smaller screens */
@media (max-width: 380px) {
    .nexus-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .nexus-item-card,
    .nexus-provider-item {
        padding: 8px 4px;
    }

    .nexus-provider-item__icon {
        width: 40px;
        height: 40px;
    }

    .nexus-item-card__name,
    .nexus-provider-item__name {
        font-size: 9px;
    }
}

body.public-ui-shell .user-navigation .user-tabbar,
.public-home .user-navigation .user-tabbar {
    width: min(100%, var(--bdg-app-max));
    height: calc(var(--user-tabbar-height) + env(safe-area-inset-bottom));
    padding-top: 6px;
    background: rgb(18 24 32 / 96%);
    border-top: 1px solid var(--bdg-line);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -14px 30px rgb(0 0 0 / 42%);
    backdrop-filter: blur(18px);
}

body.public-ui-shell .user-navigation .user-tabbar__item {
    color: var(--bdg-muted);
    font-size: 11px;
    font-weight: 700;
}

body.public-ui-shell .user-navigation .user-tabbar__item.active,
body.public-ui-shell .user-navigation .user-tabbar__item:hover,
body.public-ui-shell .user-navigation .user-tabbar__item:focus {
    color: var(--bdg-gold-bright);
}

body.public-ui-shell .user-navigation .user-tabbar__icon {
    width: 30px;
    height: 28px;
    font-size: 19px;
}

body.public-ui-shell .user-navigation .user-tabbar__item--primary .user-tabbar__icon {
    width: 34px;
    height: 30px;
    margin-top: 0;
    color: #171107;
    background: var(--gradient-gold);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgb(245 199 92 / 22%);
}

/* Badge override untuk shell theme */
body.public-ui-shell .user-navigation .user-tabbar__badge {
    border-color: rgb(18 24 32 / 96%);
}

/* Indicator override untuk shell theme */
body.public-ui-shell .user-navigation .user-tabbar__indicator {
    background: var(--bdg-gold-bright);
}

body.public-ui-shell .user-navigation .user-support-fab {
    right: max(14px, calc((100% - var(--bdg-app-max)) / 2 + 14px));
    bottom: calc(76px + env(safe-area-inset-bottom));
    width: 50px;
    height: 50px;
}

body.public-route-auth,
body.public-route-auth #app {
    color: var(--bdg-text);
    background: var(--bdg-canvas) !important;
}

body.public-route-auth #app,
body.public-route-auth .login__container,
body.public-route-auth .register__container,
body.public-route-auth .forgot__container {
    max-width: var(--bdg-app-max);
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--bdg-canvas) !important;
}

body.public-route-auth .navbar,
body.public-route-auth .navbar-fixed,
body.public-route-auth [class*="navbar"] {
    background: var(--bdg-header) !important;
    /* Safe-area untuk notch/status bar */
    padding-top: env(safe-area-inset-top);
}

/* Safe-area untuk home indicator */
body.public-route-auth #app,
body.public-route-auth .login__container,
body.public-route-auth .register__container,
body.public-route-auth .forgot__container {
    padding-bottom: env(safe-area-inset-bottom);
}

body.public-route-auth .login__container-heading,
body.public-route-auth .register__container-heading,
body.public-route-auth .forgot__container-heading,
body.public-route-auth .resgister__C-heading {
    padding: 12px 20px 34px !important;
    background: var(--bdg-header) !important;
}

body.public-route-auth .login__container-heading__title,
body.public-route-auth h1 {
    color: var(--bdg-text) !important;
    font-size: 18px !important;
    font-weight: 900 !important;
}

body.public-route-auth .login__container-heading__subTitle,
body.public-route-auth .register__container-heading__subTitle,
body.public-route-auth .resgister__C-heading__subTitle {
    color: var(--theme-text) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

body.public-route-auth .login_container-tab,
body.public-route-auth .register_container-tab {
    width: calc(100% - 40px) !important;
    max-width: calc(100% - 40px) !important;
    margin: 0 20px 20px !important;
    box-sizing: border-box;
    overflow: hidden;
    border-bottom: 1px solid rgb(213 166 66 / 70%);
}

body.public-route-auth .tab.active,
body.public-route-auth .font30active,
body.public-route-auth .phonefont30active {
    color: var(--bdg-gold-bright) !important;
}

body.public-route-auth .phoneInput__container-label,
body.public-route-auth .passwordInput__container-label,
body.public-route-auth .emailinput__container-label {
    color: var(--bdg-text) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

body.public-route-auth .phoneInput__container-input,
body.public-route-auth .passwordInput__container-input,
body.public-route-auth .emailinput__container-input,
body.public-route-auth input {
    color: var(--bdg-text) !important;
    background: #363636 !important;
    border: 0 !important;
    border-radius: 9px !important;
}

/* Form auth baru memiliki surface pada wrapper; input harus tetap transparan. */
body.public-route-auth .auth-field input,
body.public-route-auth .auth-field__input {
    background: transparent !important;
    border-radius: 0 !important;
}

body.public-ui-shell input,
body.public-ui-shell textarea,
body.public-ui-shell select,
body.public-route-auth input {
    min-height: 44px;
    font-size: 16px !important;
}

body.public-route-auth .signIn__container-remember .van-checkbox,
body.public-route-auth .register__container-remember .van-checkbox {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
}

body.public-route-auth .phoneInput__container-input .dropdown__list {
    left: 0 !important;
    right: auto !important;
    width: min(300px, calc(100% - 40px)) !important;
    max-width: calc(100% - 40px) !important;
    overflow-x: hidden;
}

body.public-route-auth input::placeholder {
    color: #858585 !important;
}

body.public-route-auth .signIn__container-button button,
body.public-route-auth .register__container-button button,
body.public-route-auth .mian-btn button,
body.public-route-auth button.active,
body.public-route-auth button.register {
    min-height: 44px !important;
    color: #08111F !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    letter-spacing: 3px !important;
    background: var(--home-gradient-gold) !important;
    border: none !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 15px rgba(244, 193, 79, 0.35);
}

body.public-route-auth button.register,
body.public-route-auth .resgister__C-form .register__container-button button:last-child,
body.public-route-auth .signIn__container-button button.register {
    color: var(--theme-text) !important;
    background: var(--home-gradient) !important;
}

body.public-route-promotion,
body.public-route-wallet,
body.public-route-activity,
body.public-route-account,
body.public-route-game,
body.public-route-support {
    color: var(--bdg-text);
    background: var(--bdg-page-bg) !important;
}

body.public-route-promotion #app,
body.public-route-wallet #app,
body.public-route-activity #app,
body.public-route-account #app,
body.public-route-game #app,
body.public-route-support #app {
    max-width: var(--bdg-app-max);
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--bdg-canvas) !important;
}

body.public-route-promotion [class*="navbar"],
body.public-route-wallet [class*="navbar"],
body.public-route-activity [class*="navbar"],
body.public-route-account [class*="navbar"],
body.public-route-game [class*="navbar"],
body.public-route-support [class*="navbar"] {
    color: var(--bdg-text) !important;
    background: var(--bdg-header) !important;
}

body.public-ui-shell .van-button--primary,
body.public-ui-shell .btn-primary,
body.public-ui-shell .recharge_btn,
body.public-ui-shell .withdraw_btn,
body.public-ui-shell .copy-btn,
body.public-ui-shell .submit,
body.public-ui-shell .van-button {
    color: #5d3704 !important;
    font-weight: 900 !important;
    background: linear-gradient(180deg, #fff0ac, #d5a642) !important;
    border-color: rgb(255 231 162 / 30%) !important;
    border-radius: 999px !important;
}

body.public-ui-shell .van-cell,
body.public-ui-shell .van-field,
body.public-ui-shell .promotion,
body.public-ui-shell .wallet-container,
body.public-ui-shell .profile,
body.public-ui-shell .checkIn__container,
body.public-ui-shell .record__container {
    color: var(--bdg-text);
    background: var(--bdg-canvas);
}

body.public-ui-shell .van-cell,
body.public-ui-shell .box,
body.public-ui-shell .item,
body.public-ui-shell .list-item,
body.public-ui-shell .promotion .item,
body.public-ui-shell .wallet-card,
body.public-ui-shell .form-group {
    background: var(--bdg-panel) !important;
    border-color: var(--bdg-line) !important;
    border-radius: var(--bdg-radius) !important;
}

body.public-ui-shell a,
body.public-ui-shell .action,
body.public-ui-shell .active,
body.public-ui-shell .van-tab--active {
    color: var(--bdg-gold-bright);
}

body.public-route-auth .resgister__C-form .mian-btn button {
    color: #1a1f2e !important;
    background-color: var(--color-gold) !important;
    background-image: var(--gradient-gold-blue) !important;
    border: none !important;
}

body.public-ui-shell.public-route-auth .resgister__C .resgister__C-form .register__container .register__container-button .mian-btn > button {
    color: #1a1f2e !important;
    background-color: var(--color-gold) !important;
    background-image: var(--gradient-gold-blue) !important;
    border: none !important;
}

@media (min-width: 600px) {
    .public-home #app > .content {
        gap: 10px;
        padding-inline: 8px;
    }
}

/* ============================================
   CATEGORY CARD GRID
   Neon animation with theme colors
   ============================================ */

.neon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 8px;
}

.neon-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px 10px;
    color: var(--color-gold);
    text-decoration: none;
    background: linear-gradient(145deg, var(--bg-surface-strong) 0%, var(--bg-surface) 100%);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Animated neon border */
.neon-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;
    background: var(--gradient-shine);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    animation: neonBorder 4s ease infinite;
}

@keyframes neonBorder {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.neon-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 12px;
    background: radial-gradient(circle at 50% 30%, rgba(255, 107, 53, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neon-card:hover,
.neon-card:focus {
    transform: translateY(-3px);
    text-decoration: none;
    color: #3f2b07;
    box-shadow:
        0 8px 25px rgba(255, 107, 53, 0.25),
        0 0 40px rgba(255, 215, 0, 0.15);
}

.neon-card:hover::before,
.neon-card:focus::before {
    opacity: 1;
}

.neon-card:hover::after,
.neon-card:focus::after {
    opacity: 1;
}

.neon-card__icon {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: var(--gradient-gold-blue);
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.5);
    box-shadow:
        0 0 15px rgba(212, 175, 55, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Image icon styling */
.neon-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.neon-card:hover .neon-card__icon,
.neon-card:focus .neon-card__icon {
    transform: scale(1.15);
    border-color: rgba(30, 136, 229, 0.8);
    box-shadow:
        0 0 25px rgba(30, 136, 229, 0.6),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.neon-card__label {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #ffd700;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

.neon-card:hover .neon-card__label,
.neon-card:focus .neon-card__label {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.neon-card__badge {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 2px 8px;
    color: #1a1f2e;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    background: var(--gradient-gold-blue);
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

/* Featured card */
.neon-card--featured .neon-card__icon {
    animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(30, 136, 229, 0.6), inset 0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

/* Mobile responsive */
@media (max-width: 400px) {
    .neon-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 6px;
    }

    .neon-card {
        padding: 10px 4px 8px;
        gap: 4px;
    }

    .neon-card__icon {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .neon-card__label {
        font-size: 8px;
    }
}

/* Rail kategori mobile: ikon besar, ringkas, dan dapat digeser di WebView. */
.public-home .neon-grid {
    display: flex;
    width: 100%;
    gap: 8px;
    padding: 5px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    grid-template-columns: none;
    scrollbar-width: none;
    scroll-padding-inline: 8px;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.public-home .neon-grid::-webkit-scrollbar {
    display: none;
}

.public-home .neon-grid .neon-card {
    position: relative;
    display: flex;
    min-width: 74px;
    min-height: 80px;
    flex: 0 0 74px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 5px 4px 6px;
    color: var(--bdg-gold-bright);
    font: inherit;
    text-decoration: none;
    background: linear-gradient(180deg, rgb(27 45 70 / 92%), rgb(14 25 42 / 96%));
    border: 1px solid var(--bdg-line);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
    scroll-snap-align: start;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.public-home .neon-grid .neon-card::before,
.public-home .neon-grid .neon-card::after {
    content: none;
}

.public-home .neon-grid .neon-card:hover,
.public-home .neon-grid .neon-card:focus,
.public-home .neon-grid .neon-card.active {
    color: #fff5cc;
    text-decoration: none;
    background: linear-gradient(180deg, #253c5c, #17263c);
    border-color: rgb(244 193 79 / 72%);
    box-shadow: 0 3px 12px rgb(0 0 0 / 28%), inset 0 -3px 0 #dcae49;
    transform: none;
}

.public-home .neon-grid .neon-card:focus-visible {
    outline: 2px solid #fff1b8;
    outline-offset: 2px;
}

.public-home .neon-card__icon {
    position: relative;
    display: flex;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    overflow: visible;
    font-size: 30px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.public-home .neon-card__icon img {
    display: block;
    width: 64px;
    max-width: none;
    height: 64px;
    object-fit: contain;
    border-radius: 0;
    filter: drop-shadow(0 3px 5px rgb(0 0 0 / 48%));
    transition: transform 160ms ease;
}

.public-home .neon-card:hover .neon-card__icon,
.public-home .neon-card:focus .neon-card__icon {
    border: 0;
    box-shadow: none;
    transform: none;
}

.public-home .neon-card.active .neon-card__icon img {
    transform: scale(1.06);
}

.public-home .neon-card__fallback {
    display: block;
}

.public-home .neon-card__icon img ~ .neon-card__fallback {
    display: none;
}

.public-home .neon-card__icon.is-broken img {
    display: none;
}

.public-home .neon-card__icon.is-broken .neon-card__fallback {
    display: block;
}

.public-home .neon-card__label {
    position: relative;
    z-index: 1;
    display: -webkit-box;
    overflow: hidden;
    max-width: 100%;
    min-height: 12px;
    margin: 0;
    color: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.15px;
    text-shadow: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.public-home .neon-card__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
    display: inline-flex;
    width: 19px;
    height: 19px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    color: #1a1f2e;
    font-size: 11px;
    line-height: 1;
    background: #fff4c7;
    border: 1px solid rgb(255 255 255 / 72%);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgb(0 0 0 / 32%);
}

html,
body.public-ui-shell {
    overflow-x: hidden;
}

/* Izinkan popup (van-popup) overflow horizontal agar tidak terpotong
   di dalam shell mobile. Container utama tetap aman dari scroll spurious. */
.van-popup {
    overflow-x: visible;
}

body.public-ui-shell #app,
body.public-home #app {
    overflow-x: clip;
    overflow-y: visible;
}

/* Shell, konten, dan nav memakai lebar acuan yang sama agar tidak bergeser. */
html.public-home-root {
    display: block !important;
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body.public-home {
    display: block !important;
    width: 100%;
    height: auto !important;
    max-width: none;
    min-height: 100svh;
    overflow-y: visible;
}

.public-home #app {
    width: min(100%, var(--bdg-app-max));
    min-height: 100svh;
    margin-inline: auto;
}

.public-home #app > .content {
    width: 100%;
    min-height: 100svh;
    gap: 8px;
    padding-bottom: calc(
        var(--user-tabbar-height) + var(--user-content-nav-gap) + env(safe-area-inset-bottom)
    );
}

body.public-ui-shell .user-navigation .user-tabbar,
.public-home .user-navigation .user-tabbar {
    right: auto;
    left: 50%;
    width: min(100%, var(--bdg-app-max));
    max-width: var(--bdg-app-max);
    height: calc(var(--user-tabbar-height) + env(safe-area-inset-bottom));
    box-sizing: border-box;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgb(18 24 32 / 96%);
    border: 1px solid var(--bdg-line);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -14px 30px rgb(0 0 0 / 42%);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.public-home .noticeBar__container {
    min-height: 44px;
    padding: 0 4px;
}

.public-home .noticeBar__action {
    min-width: 64px;
    min-height: 44px;
}

/* Slot game pages tetap app-only; scroll horizontal hanya untuk strip internal. */
body.public-route-game #app {
    overflow-x: clip;
}

body.public-route-auth .mian.forgot {
    width: min(100%, var(--bdg-app-max));
    min-height: 100dvh;
    margin: 0 auto;
    color: var(--bdg-text);
    background: var(--bdg-canvas) !important;
}

body.public-route-auth .mian.forgot .navbar {
    height: 56px;
    color: var(--bdg-text) !important;
    background: var(--bdg-header) !important;
    border-bottom: 1px solid var(--bdg-line);
}

body.public-route-auth .mian.forgot .navbar-title {
    color: var(--bdg-text) !important;
    font-size: 16px;
    font-weight: 800;
}

body.public-route-auth .mian.forgot .forgot-box {
    min-height: calc(100dvh - 56px);
    padding: 28px 20px 36px;
    background: var(--bdg-canvas) !important;
}

body.public-route-auth .mian.forgot .mian-from {
    width: 100%;
    margin: 0 !important;
}

body.public-route-auth .mian.forgot .lab {
    margin-bottom: 10px;
    color: var(--bdg-muted) !important;
    font-size: 14px;
    font-weight: 700;
}

body.public-route-auth .mian.forgot .item {
    width: 100%;
    min-height: 52px;
    margin: 0 0 16px !important;
    overflow: hidden;
    background: var(--bdg-panel) !important;
    border: 1px solid var(--bdg-line) !important;
    border-radius: 12px !important;
}

body.public-route-auth .mian.forgot .item .number,
body.public-route-auth .mian.forgot .item .img {
    min-height: 52px;
    color: var(--bdg-gold-bright);
    background: rgb(255 255 255 / 4%);
}

body.public-route-auth .mian.forgot .item input {
    min-width: 0;
    height: 52px;
    color: var(--bdg-text) !important;
    background: transparent !important;
}

body.public-route-auth .mian.forgot .item input::placeholder {
    color: #8f9bad !important;
}

body.public-route-auth .mian.forgot .otp {
    min-width: 78px;
    min-height: 36px;
    margin-right: 7px;
    color: #1a1f2e !important;
    font-size: 13px;
    font-weight: 900;
    background: var(--gradient-gold-blue) !important;
    border: none;
    border-radius: 9px;
}

body.public-route-auth .mian.forgot .tip {
    margin: -3px 0 22px;
    color: var(--bdg-muted) !important;
    font-size: 12px;
    line-height: 1.45;
}

body.public-route-auth .mian.forgot .mian-btn {
    margin-top: 28px !important;
}

body.public-route-auth .mian.forgot .mian-btn button {
    width: 100%;
    min-height: 48px !important;
    color: #4f3504 !important;
    font-size: 16px !important;
    font-weight: 900;
    letter-spacing: 1.5px !important;
    background: linear-gradient(180deg, #fff0ac, #dcae49) !important;
    border: 0 !important;
    border-radius: 12px !important;
}

body.public-route-auth .register__container-remember .van-checkbox {
    align-items: flex-start;
}

body.public-route-auth .register__container-remember .van-checkbox__label {
    min-width: 0;
    white-space: normal !important;
    line-height: 1.45 !important;
}

/* ============================================
   RSNVIP9 PUBLIC THEME OVERRIDES
   Deep Navy theme - Konsisten dengan warna utama
   ============================================ */

/* Background utama - Deep Navy */
#app,
body #app,
html body #app,
.public-home #app {
    background-color: var(--theme-canvas);
    background: linear-gradient(180deg, var(--theme-canvas) 0%, var(--theme-canvas-raised) 50%, var(--theme-surface) 100%);
}

/* Container utama */
.container,
.content,
.page-content,
.main-content {
    background-color: var(--theme-surface);
}

/* Card dan Panel lama */
.card,
.panel,
.box,
.item,
.list-item,
.record,
.history-item,
.transaction-item {
    background-color: var(--theme-surface);
    border-color: var(--theme-border-soft);
}

/* Header/Navbar override */
.header,
.navbar,
.nav-header,
.page-header {
    background-color: var(--theme-surface);
    border-color: var(--theme-border-soft);
}

/* Footer override */
.footer,
.page-footer,
.bottom-bar {
    background-color: var(--theme-surface-soft);
    border-color: var(--theme-border-soft);
}

/* ============================================
   BUTTON COMPONENTS
   ============================================ */

/* Tombol Primary - Gold Gradient */
.btn-primary,
.btn-gold,
.btn-submit,
.btn-action,
.primary-btn,
.gold-btn,
.submit-btn,
.action-btn {
    background: var(--gradient-gold);
    color: var(--theme-canvas);
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 12px rgba(244, 193, 79, 0.25);
}

.btn-primary:hover,
.btn-gold:hover,
.btn-submit:hover,
.btn-action:hover,
.primary-btn:hover,
.gold-btn:hover,
.submit-btn:hover,
.action-btn:hover {
    background: var(--gradient-gold-hover);
}

.btn-primary:active,
.btn-gold:active,
.btn-submit:active,
.btn-action:active,
.primary-btn:active,
.gold-btn:active,
.submit-btn:active,
.action-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

/* Tombol Secondary - Royal Blue */
.btn-secondary,
.btn-blue,
.btn-outline {
    background: var(--gradient-blue);
    color: var(--theme-focus);
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 12px rgba(45, 125, 255, 0.25);
}

.btn-secondary:active,
.btn-blue:active,
.btn-outline:active {
    transform: scale(0.97);
    opacity: 0.9;
}

/* Input Fields */
input,
textarea,
select,
.input-field,
.form-control {
    background-color: var(--theme-surface-strong);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

input::placeholder,
textarea::placeholder {
    color: var(--theme-text-muted);
}

/* ============================================
   TEXT COLOR UTILITIES
   ============================================ */
.text-primary,
.text-blue {
    color: var(--theme-primary);
}

.text-accent,
.text-gold {
    color: var(--color-gold-bright);
}

.text-success {
    color: var(--theme-positive);
}

.text-warning {
    color: var(--theme-warning);
}

.text-error,
.text-danger {
    color: var(--theme-danger);
}

/* Border Colors */
.border-gold {
    border-color: var(--theme-border);
}

/* Glow Effects */
.glow-gold {
    box-shadow: var(--gold-glow);
}

.glow-blue {
    box-shadow: var(--blue-glow);
}

/* ============================================
   NAVIGATION TABS
   ============================================ */
.tab-bar,
.tabbar,
.tabs,
.nav-tabs {
    background-color: var(--theme-surface-soft);
    border-color: var(--theme-border-soft);
}

.tab-item,
.tab,
.nav-item {
    color: var(--nav-inactive);
}

.tab-item.active,
.tab.active,
.nav-item.active {
    color: var(--color-gold-bright);
}

/* ============================================
   BADGE COMPONENTS
   ============================================ */
.badge,
.tag,
.label {
    background: var(--gradient-blue);
    color: var(--theme-focus);
}

.badge-gold,
.tag-gold {
    background: var(--gradient-gold);
    color: var(--theme-canvas);
}

/* ============================================
   STATUS INDICATORS
   ============================================ */
.status-success,
.status-active {
    color: var(--theme-positive);
}

.status-pending {
    color: var(--theme-warning);
}

.status-error,
.status-failed {
    color: var(--theme-danger);
}

/* ============================================
   LOADING & OVERLAYS
   ============================================ */
.loading,
.spinner {
    border-color: var(--theme-border-soft);
    border-top-color: var(--color-gold-bright);
}

.overlay,
.modal-overlay,
.popup-overlay {
    background-color: rgba(7, 17, 30, 0.85);
}

.dialog,
.modal,
.popup {
    background-color: var(--theme-surface);
    border: 1px solid var(--theme-border-soft);
}

/* ============================================
   DROPDOWN COMPONENTS
   ============================================ */
.dropdown,
.select-menu,
.options-list {
    background-color: var(--theme-surface);
    border-color: var(--theme-border-soft);
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--theme-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-bright);
}

/* ============================================
   FOCUS STATES
   ============================================ */
*:focus,
input:focus,
button:focus {
    outline-color: var(--color-gold-bright);
}

/* ============================================
   LINK STYLES
   ============================================ */
a,
.link {
    color: var(--theme-primary);
}

a:hover,
.link:hover {
    color: var(--color-gold-bright);
}

/* ============================================
   ANIMATION KEYFRAMES
   ============================================ */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(244, 193, 79, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(244, 193, 79, 0);
    }
}

@keyframes pulse-blue {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(29, 107, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(29, 107, 255, 0);
    }
}

.pulse-gold {
    animation: pulse-gold 2s infinite;
}

.pulse-blue {
    animation: pulse-blue 2s infinite;
}

/* ============================================
   GRADIENT TEXT
   ============================================ */
.gradient-text-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-blue {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   MEMBER / USER PAGES THEME
   RSNVIP9 member theme
   ============================================ */

/* Member Route Classes - menggunakan CSS variables */
body.public-route-member,
body.public-route-profile,
body.public-route-wallet,
body.public-route-deposit,
body.public-route-withdraw,
body.public-route-transfer,
body.public-route-activity,
body.public-route-support,
body.public-route-promotion,
body.public-route-checkin,
body.public-route-games,
body.public-route-slots,
body.public-route-casino,
body.public-route-sports,
body.public-route-bet,
body.public-route-order,
body.public-route-history,
body.public-route-record,
body.public-route-statistic,
body.public-route-settings,
body.public-route-about,
body.public-route-terms,
body.public-route-privacy {
    color: var(--theme-text);
    background-color: var(--theme-canvas);
    background: var(--gradient-bg);
}

/* Member Main Container */
body.public-route-member .mian,
body.public-route-member .page,
body.public-route-member .content,
body.public-route-member .container,
body.public-route-wallet .mian,
body.public-route-wallet .page,
body.public-route-wallet .content,
body.public-route-wallet .container,
body.public-route-promotion .mian,
body.public-route-promotion .page,
body.public-route-promotion .content,
body.public-route-promotion .container {
    color: var(--theme-text);
    background-color: var(--theme-surface);
}

/* Member Navbar */
body.public-route-member .navbar,
body.public-route-wallet .navbar,
body.public-route-promotion .navbar,
body.public-route-member .navbar-fixed,
body.public-route-wallet .navbar-fixed,
body.public-route-promotion .navbar-fixed {
    color: var(--theme-text);
    background-color: var(--theme-surface);
    border-bottom: 1px solid var(--theme-border-soft);
}

body.public-route-member .navbar-title,
body.public-route-wallet .navbar-title,
body.public-route-promotion .navbar-title {
    color: var(--theme-text);
}

/* Member Info Box */
body.public-route-member .info,
body.public-route-member .info-box,
body.public-route-member .user-info,
body.public-route-member .profile-info,
body.public-route-wallet .info,
body.public-route-wallet .info-box,
body.public-route-wallet .user-info {
    color: var(--theme-text);
    background-color: var(--theme-surface);
    border: 1px solid var(--theme-border-soft);
    border-radius: var(--theme-radius);
}

/* Member State Box */
body.public-route-member .state-box,
body.public-route-member .balance-box,
body.public-route-member .wallet-box {
    color: var(--theme-text);
    background-color: var(--theme-surface);
    border: 1px solid var(--theme-border-soft);
    border-radius: var(--theme-radius);
}

body.public-route-member .state-box .title,
body.public-route-member .balance-box .title,
body.public-route-member .wallet-box .title {
    color: var(--theme-text-muted) !important;
}

body.public-route-member .state-box .amount,
body.public-route-member .balance-box .amount,
body.public-route-member .wallet-box .amount {
    color: var(--color-gold-bright) !important;
    font-weight: 700 !important;
}

/* Member User Avatar */
body.public-route-member .user-img,
body.public-route-member .avatar,
body.public-route-member .profile-avatar {
    border: 2px solid rgba(244, 193, 79, 0.35) !important;
    box-shadow: 0 0 12px rgba(244, 193, 79, 0.15) !important;
}

body.public-route-member .user-img img,
body.public-route-member .avatar img {
    background-color: var(--bdg-panel-soft) !important;
}

/* Member Name & ID */
body.public-route-member .name,
body.public-route-member .user-name,
body.public-route-member .username {
    color: var(--theme-text) !important;
}

body.public-route-member .id,
body.public-route-member .user-id,
body.public-route-member .uid {
    color: var(--theme-text-muted) !important;
    background-color: var(--bdg-line) !important;
}

/* Member Menu Box */
body.public-route-member .menu-box,
body.public-route-member .menu-list,
body.public-route-member .nav-list {
    background-color: var(--bdg-panel) !important;
    border: 1px solid var(--bdg-line) !important;
    border-radius: 14px !important;
}

/* Member Menu Item */
body.public-route-member .menu-item,
body.public-route-member .nav-item,
body.public-route-member .list-item,
body.public-route-member .menu-list .item {
    color: var(--theme-text) !important;
    background-color: transparent !important;
    border-bottom: 1px solid var(--bdg-line) !important;
}

body.public-route-member .menu-item:last-child,
body.public-route-member .nav-item:last-child,
body.public-route-member .list-item:last-child {
    border-bottom: none !important;
}

body.public-route-member .menu-item:hover,
body.public-route-member .nav-item:hover,
body.public-route-member .list-item:hover {
    background-color: var(--bdg-panel-soft) !important;
}

body.public-route-member .menu-item:active {
    background-color: var(--bdg-line) !important;
}

/* Member Menu Icon */
body.public-route-member .menu-icon,
body.public-route-member .nav-icon,
body.public-route-member .list-icon {
    color: #1D6BFF !important;
}

body.public-route-member .menu-item:hover .menu-icon,
body.public-route-member .nav-item:hover .nav-icon {
    color: var(--color-gold-bright) !important;
}

/* Member Menu Text */
body.public-route-member .menu-text,
body.public-route-member .nav-text,
body.public-route-member .list-text {
    color: var(--theme-text) !important;
}

body.public-route-member .menu-desc,
body.public-route-member .nav-desc {
    color: var(--theme-text-muted) !important;
}

/* Member Menu Arrow */
body.public-route-member .menu-arrow,
body.public-route-member .nav-arrow,
body.public-route-member .list-arrow {
    color: var(--theme-text-muted) !important;
}

/* Wallet Page Specific */
body.public-route-wallet .wallet,
body.public-route-wallet .wallet-container {
    color: #FFFFFF;
    background-color: var(--bdg-panel) !important;
    border: 1px solid var(--bdg-line) !important;
    border-radius: 14px !important;
}

body.public-route-wallet .wallet-user,
body.public-route-wallet .wallet-balance {
    background-color: var(--bdg-panel) !important;
}

body.public-route-wallet .wallet {
    overflow: visible;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

body.public-route-wallet .wallet-user {
    padding: 24px 20px 20px !important;
    border-bottom: 1px solid var(--bdg-line);
    border-radius: 0 0 20px 20px;
}

body.public-route-wallet .wallet-user .title {
    margin-top: 8px;
    color: var(--color-gold-bright) !important;
}

body.public-route-wallet .wallet-user p {
    max-width: 300px;
    margin: 6px auto 0 !important;
    color: var(--theme-text-muted);
    font-size: 13px !important;
    line-height: 1.4;
}

body.public-route-wallet .wallet-box {
    margin-top: 16px !important;
    padding: 0 12px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

body.public-route-wallet .wallet-box .box {
    padding: 12px !important;
    background-color: var(--bdg-panel-soft) !important;
    border: 1px solid var(--bdg-line) !important;
    border-radius: 10px !important;
}

/* Wallet Action Buttons */
body.public-route-wallet .btn-recharge,
body.public-route-wallet .btn-withdraw,
body.public-route-wallet .btn-transfer {
    background: linear-gradient(180deg, #FFE08A 0%, var(--color-gold-bright) 45%, #D99B12 100%) !important;
    color: #08111F !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(244, 193, 79, 0.25) !important;
}

body.public-route-wallet .btn-recharge:hover,
body.public-route-wallet .btn-withdraw:hover,
body.public-route-wallet .btn-transfer:hover {
    background: linear-gradient(180deg, #FFE58D 0%, #F6B92A 100%) !important;
}

/* Deposit/Withdraw Page */
body.public-route-deposit .form-box,
body.public-route-withdraw .form-box,
body.public-route-transfer .form-box {
    background-color: var(--bdg-panel) !important;
    border: 1px solid var(--bdg-line) !important;
    border-radius: 14px !important;
}

body.public-route-deposit .amount-list,
body.public-route-withdraw .amount-list {
    background-color: var(--bdg-panel-soft) !important;
    border: 1px solid var(--bdg-line) !important;
    border-radius: 10px !important;
}

body.public-route-deposit .amount-item,
body.public-route-withdraw .amount-item {
    color: var(--theme-text) !important;
    border: 1px solid var(--bdg-line) !important;
}

body.public-route-deposit .amount-item.selected,
body.public-route-withdraw .amount-item.selected {
    background: linear-gradient(180deg, #FFE08A 0%, var(--color-gold-bright) 45%, #D99B12 100%) !important;
    color: #08111F !important;
    border-color: transparent !important;
}

/* Promotion Page */
body.public-route-promotion .promotion-list,
body.public-route-promotion .promotion-item {
    background-color: var(--bdg-panel) !important;
    border: 1px solid var(--bdg-line) !important;
    border-radius: 14px !important;
}

body.public-route-promotion .promotion-item:active {
    background-color: var(--bdg-panel-soft) !important;
}

body.public-route-promotion .promotion-title {
    color: var(--theme-text) !important;
}

body.public-route-promotion .promotion-desc {
    color: var(--theme-text-muted) !important;
}

body.public-route-promotion .promotion-amount {
    color: var(--color-gold-bright) !important;
    font-weight: 700 !important;
}

/* Activity/History Page */
body.public-route-activity .record-list,
body.public-route-activity .record-item,
body.public-route-history .record-list,
body.public-route-history .record-item {
    background-color: var(--bdg-panel) !important;
    border: 1px solid var(--bdg-line) !important;
    border-radius: 10px !important;
}

body.public-route-activity .record-item:active,
body.public-route-history .record-item:active {
    background-color: var(--bdg-panel-soft) !important;
}

/* Check-in Page */
body.public-route-checkin .checkin-box,
body.public-route-checkin .calendar,
body.public-route-checkin .reward-list {
    background-color: var(--bdg-panel) !important;
    border: 1px solid var(--bdg-line) !important;
    border-radius: 14px !important;
}

body.public-route-checkin .checkin-day {
    color: var(--theme-text) !important;
    background-color: var(--bdg-panel-soft) !important;
    border: 1px solid var(--bdg-line) !important;
}

body.public-route-checkin .checkin-day.checked {
    background: linear-gradient(180deg, #FFE08A 0%, var(--color-gold-bright) 45%, #D99B12 100%) !important;
    color: #08111F !important;
    border-color: transparent !important;
}

body.public-route-checkin .checkin-day.today {
    border-color: #1D6BFF !important;
    box-shadow: 0 0 10px rgba(29, 107, 255, 0.3) !important;
}

/* Games/Slots Page */
body.public-route-games .game-list,
body.public-route-games .game-item,
body.public-route-slots .game-list,
body.public-route-slots .game-item {
    background-color: var(--bdg-panel) !important;
    border: 1px solid var(--bdg-line) !important;
    border-radius: 12px !important;
}

body.public-route-games .game-item:active,
body.public-route-slots .game-item:active {
    transform: scale(0.98);
    background-color: var(--bdg-panel-soft) !important;
}

body.public-route-games .game-name,
body.public-route-slots .game-name {
    color: var(--theme-text) !important;
}

body.public-route-games .game-provider,
body.public-route-slots .game-provider {
    color: var(--theme-text-muted) !important;
}

/* About/Settings Page */
body.public-route-about .about-content,
body.public-route-settings .settings-list,
body.public-route-settings .settings-item {
    background-color: var(--bdg-panel) !important;
    border: 1px solid var(--bdg-line) !important;
    border-radius: 14px !important;
}

body.public-route-about .about-content {
    color: var(--theme-text-muted) !important;
}

body.public-route-settings .settings-item {
    color: var(--theme-text) !important;
}

body.public-route-settings .settings-item:active {
    background-color: var(--bdg-panel-soft) !important;
}

/* Member Tabbar */
body.public-route-member .tabbar,
body.public-route-wallet .tabbar,
body.public-route-promotion .tabbar {
    background-color: var(--bdg-panel) !important;
    border-top: 1px solid var(--bdg-line) !important;
}

body.public-route-member .tabbar-item,
body.public-route-wallet .tabbar-item,
body.public-route-promotion .tabbar-item {
    color: #8C98A7 !important;
}

body.public-route-member .tabbar-item.active,
body.public-route-wallet .tabbar-item.active,
body.public-route-promotion .tabbar-item.active {
    color: var(--color-gold-bright) !important;
}

/* Van UI Components Override */
body.public-route-member .van-cell,
body.public-route-wallet .van-cell,
body.public-route-promotion .van-cell,
body.public-route-member .van-field,
body.public-route-wallet .van-field,
body.public-route-promotion .van-field {
    color: var(--theme-text) !important;
    background-color: var(--bdg-panel) !important;
}

body.public-route-member .van-cell-group,
body.public-route-wallet .van-cell-group,
body.public-route-promotion .van-cell-group {
    background-color: transparent !important;
}

body.public-route-member .van-field__label,
body.public-route-wallet .van-field__label,
body.public-route-promotion .van-field__label {
    color: var(--theme-text-muted) !important;
}

body.public-route-member .van-field__input,
body.public-route-wallet .van-field__input,
body.public-route-promotion .van-field__input {
    color: var(--theme-text) !important;
    background-color: var(--bdg-panel-soft) !important;
}

body.public-route-member .van-field__input::placeholder,
body.public-route-wallet .van-field__input::placeholder,
body.public-route-promotion .van-field__input::placeholder {
    color: #8C98A7 !important;
}

/* Van Button Override */
body.public-route-member .van-button--primary,
body.public-route-wallet .van-button--primary,
body.public-route-promotion .van-button--primary {
    color: #08111F !important;
    background: linear-gradient(180deg, #FFE08A 0%, var(--color-gold-bright) 45%, #D99B12 100%) !important;
    border: none !important;
}

body.public-route-member .van-button--primary:active,
body.public-route-wallet .van-button--primary:active,
body.public-route-promotion .van-button--primary:active {
    background: linear-gradient(180deg, #FFE58D 0%, #F6B92A 100%) !important;
}

/* Van Popup Override */
body.public-route-member .van-popup,
body.public-route-wallet .van-popup,
body.public-route-promotion .van-popup {
    color: var(--theme-text) !important;
    background-color: var(--bdg-panel) !important;
    border: 1px solid var(--bdg-line) !important;
}

body.public-route-member .van-popup__close-icon,
body.public-route-wallet .van-popup__close-icon,
body.public-route-promotion .van-popup__close-icon {
    color: var(--theme-text-muted) !important;
}

/* Member CSS Data Attributes */
body.public-route-member [data-v-8cd483ca],
body.public-route-wallet [data-v-7b283485],
body.public-route-promotion [data-v-] {
    background-color: inherit;
}

/* Daily Member Pages */
body.public-route-daily,
body.public-route-daily .page,
body.public-route-daily .container {
    color: var(--theme-text) !important;
    background-color: var(--bdg-canvas) !important;
}

body.public-route-daily .navbar {
    background-color: var(--bdg-canvas) !important;
    border-bottom: 1px solid var(--bdg-line) !important;
}

body.public-route-daily .box,
body.public-route-daily .card,
body.public-route-daily .item {
    background-color: var(--bdg-panel) !important;
    border: 1px solid var(--bdg-line) !important;
    border-radius: 12px !important;
}

/* Slots Page */
body.public-route-slots .slots-container,
body.public-route-slots .slots-header {
    background-color: var(--bdg-canvas) !important;
}

body.public-route-slots .slots-game {
    background-color: var(--bdg-panel) !important;
    border: 1px solid var(--bdg-line) !important;
    border-radius: 10px !important;
}

/* Betting Page */
body.public-route-bet,
body.public-route-bet .page {
    color: var(--theme-text) !important;
    background-color: var(--bdg-canvas) !important;
}

body.public-route-bet .betting-header,
body.public-route-bet .betting-info {
    background-color: var(--bdg-canvas) !important;
    border-bottom: 1px solid var(--bdg-line) !important;
}

body.public-route-bet .betting-option {
    background-color: var(--bdg-panel) !important;
    border: 1px solid var(--bdg-line) !important;
}

body.public-route-bet .betting-option.selected {
    background: linear-gradient(180deg, #FFE08A 0%, var(--color-gold-bright) 45%, #D99B12 100%) !important;
    color: #08111F !important;
}

/* Support/Customer Service */
body.public-route-support .support-box,
body.public-route-support .chat-bubble {
    background-color: var(--bdg-panel) !important;
    border: 1px solid var(--bdg-line) !important;
}

body.public-route-support .chat-bubble.sent {
    background: linear-gradient(135deg, #2B7DFF 0%, #1152C8 100%) !important;
    color: var(--theme-text) !important;
}

/* Global User Panel Fixes */
.public-ui-shell.public-route-member #app,
.public-ui-shell.public-route-wallet #app,
.public-ui-shell.public-route-promotion #app {
    background-color: var(--bdg-canvas) !important;
}

/* Member List Tables */
body.public-route-member table,
body.public-route-activity table,
body.public-route-history table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    color: var(--theme-text) !important;
}

body.public-route-member th,
body.public-route-activity th,
body.public-route-history th {
    background-color: var(--bdg-canvas) !important;
    color: var(--color-gold-bright) !important;
    border-color: var(--bdg-line) !important;
}

body.public-route-member td,
body.public-route-activity td,
body.public-route-history td {
    background-color: var(--bdg-panel) !important;
    border-color: var(--bdg-line) !important;
}

/* Member Badge */
body.public-route-member .van-badge,
body.public-route-member .badge,
body.public-route-wallet .van-badge,
body.public-route-wallet .badge {
    background: linear-gradient(135deg, #2B7DFF 0%, #1152C8 100%) !important;
    color: var(--theme-text) !important;
}

body.public-route-member .van-badge--dot {
    background-color: var(--color-gold-bright) !important;
}

/* Loading State */
body.public-route-member .van-loading,
body.public-route-wallet .van-loading,
body.public-route-promotion .van-loading {
    color: var(--color-gold-bright) !important;
}

/* Empty State */
body.public-route-member .empty-state,
body.public-route-wallet .empty-state,
body.public-route-promotion .empty-state {
    color: var(--theme-text-muted) !important;
}

/* Notification/Dot */
body.public-route-member .van-info,
body.public-route-wallet .van-info {
    background-color: var(--color-gold-bright) !important;
    color: #08111F !important;
}

/* Game Studio mobile-app final layer: menjaga semua route publik tetap 320-480px,
   rendah chrome, dan memakai material obsidian/emas/teal yang sama. */
body.public-ui-shell,
body.public-home,
body.public-route-promotion,
body.public-route-wallet,
body.public-route-activity,
body.public-route-account,
body.public-route-game,
body.public-route-support {
    color: var(--theme-text) !important;
    background: var(--theme-page-bg) !important;
}

body.public-ui-shell #app,
body.public-home #app,
body.public-ui-shell .container,
body.public-ui-shell main,
body.public-route-promotion #app,
body.public-route-wallet #app,
body.public-route-activity #app,
body.public-route-account #app,
body.public-route-game #app,
body.public-route-support #app {
    width: min(100%, var(--bdg-app-max)) !important;
    max-width: var(--bdg-app-max) !important;
    margin-inline: auto !important;
    color: var(--theme-text) !important;
    background: var(--theme-canvas-raised) !important;
    overflow-x: clip;
}

body.public-ui-shell :is(.card, .panel, .box, .item, .list-item, .record, .history-item, .transaction-item, .wallet-card, .form-group) {
    color: var(--theme-text) !important;
    background: var(--bdg-panel) !important;
    border-color: var(--bdg-line) !important;
}

body.public-ui-shell :is(.header, .navbar, .nav-header, .page-header, .navbar-fixed) {
    color: var(--theme-text) !important;
    background: var(--theme-surface-soft) !important;
    border-color: var(--bdg-line) !important;
}

body.public-ui-shell :is(.van-button--primary, .btn-primary, .recharge_btn, .withdraw_btn, .copy-btn, .submit, .van-button) {
    color: #171107 !important;
    background: var(--gradient-gold) !important;
    border-color: rgb(255 229 154 / 30%) !important;
}

body.public-ui-shell :is(a, .action, .active, .van-tab--active) {
    color: var(--theme-accent-strong);
}

body.public-ui-shell .user-navigation .user-tabbar,
.public-home .user-navigation .user-tabbar {
    background: rgb(18 24 32 / 96%) !important;
    border-color: var(--bdg-line) !important;
}

body.public-ui-shell .user-navigation .user-tabbar__item--primary .user-tabbar__icon,
.public-home .user-navigation .user-tabbar__item--primary .user-tabbar__icon {
    width: 34px !important;
    height: 30px !important;
    margin-top: 0 !important;
    color: #171107 !important;
    background: var(--gradient-gold) !important;
    border: 0 !important;
    border-radius: 12px !important;
}

/* ============================================
   BADGE STYLES
   Consistent badge component styles
   ============================================ */

.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    margin: 2px;
}

.badge-hot {
    background: linear-gradient(135deg, #ff2d6a, #ff6b6b);
    box-shadow: 0 2px 8px rgba(255,45,106,0.4);
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
}

.badge-new {
    background: linear-gradient(135deg, #00ff9d, #00cc7a);
    color: #000;
    box-shadow: 0 2px 8px rgba(0,255,157,0.3);
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
}

.badge-recommend {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    box-shadow: 0 2px 8px rgba(251,191,36,0.4);
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
    min-height: 24px;
    border-radius: 4px;
}

.badge-recommend__dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: recommend-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 4px #22c55e;
    flex-shrink: 0;
}

@keyframes recommend-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

.badge-rtp {
    color: #fff;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.badge-rtp-gacor {
    background: linear-gradient(135deg, #22C55E 0%, #16a34a 100%);
    box-shadow: 0 2px 8px rgba(34,197,94,0.4);
}

.badge-rtp-tinggi {
    background: linear-gradient(135deg, #18DFFF 0%, #0ea5e9 100%);
    box-shadow: 0 2px 8px rgba(24,223,255,0.4);
}

.badge-rtp-sedang {
    background: linear-gradient(135deg, #FFD166 0%, #f59e0b 100%);
    box-shadow: 0 2px 8px rgba(255,209,102,0.4);
}

.badge-rtp-rendah {
    background: linear-gradient(135deg, #EF4444 0%, #dc2626 100%);
    box-shadow: 0 2px 8px rgba(239,68,68,0.4);
}

/* Reduced motion for badges */
@media (prefers-reduced-motion: reduce) {
    .badge-recommend__dot {
        animation: none;
    }
}

/* ============================================
   LOADING STATES - RSNVIP9
   Comprehensive loading UI components
   ============================================ */

/* Full Page Loading Banner */
.loading-banner--fullpage {
    position: fixed;
    inset: 0;
    z-index: var(--theme-z-loading, 10000);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-canvas, #0B0D10);
    transition: opacity 380ms ease, visibility 380ms ease;
}

.loading-banner--fullpage.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-banner__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px;
}

.loading-banner__logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
}

.loading-logo__text {
    color: var(--color-gold, #DCAE49);
}

.loading-logo__accent {
    color: var(--color-gold-bright, #FFE59A);
    text-shadow: 0 0 20px rgba(244, 193, 79, 0.5);
}

/* Loading banner logo image (admin-configured) */
.loading-banner__logo-img {
    max-width: 160px;
    max-height: 80px;
    object-fit: contain;
}

.loading-banner__logo:has(.loading-banner__logo-img) {
    padding: 16px;
}

.loading-banner__logo:has(.loading-banner__logo-img) .loading-logo {
    display: none;
}

.loading-banner__spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-banner__text {
    color: var(--theme-text-muted, #AFA38B);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Primary Spinner - Ring Style */
.loading-spinner--primary {
    position: relative;
    width: 56px;
    height: 56px;
}

.loading-spinner__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--color-gold, #DCAE49);
    animation: spin-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loading-spinner__ring--delayed {
    inset: 8px;
    border-width: 2px;
    border-top-color: var(--color-blue, #18C7B6);
    animation-duration: 1.8s;
    animation-direction: reverse;
}

@keyframes spin-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Progress Bar for Loading */
.loading-progress {
    width: 160px;
}

.loading-progress__track {
    height: 3px;
    background: var(--bg-surface, #18212B);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress__bar {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, var(--color-gold, #DCAE49), var(--color-gold-bright, #FFE59A));
    border-radius: 2px;
    animation: progress-slide 1.5s ease-in-out infinite;
}

@keyframes progress-slide {
    0% {
        transform: translateX(-100%);
        width: 40%;
    }
    50% {
        width: 60%;
    }
    100% {
        transform: translateX(300%);
        width: 40%;
    }
}

/* Inline Spinner - Dots Style */
.loading-spinner--inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner--inline[hidden] {
    display: none !important;
}

.loading-spinner__dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.loading-spinner__dot {
    width: 8px;
    height: 8px;
    background: var(--color-gold, #DCAE49);
    border-radius: 50%;
    animation: dot-pulse 1.4s ease-in-out infinite;
}

.loading-spinner__dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-spinner__dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-pulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Pulse Spinner */
.loading-spinner--pulse {
    width: 48px;
    height: 48px;
}

.loading-spinner__pulse-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-gold, linear-gradient(180deg, #FFF2B8 0%, var(--color-gold) 46%, var(--color-gold-dark) 100%));
    animation: pulse-scale 1.2s ease-in-out infinite;
}

@keyframes pulse-scale {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

/* Small Spinner */
.loading-spinner--small {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.loading-spinner--small .loading-spinner__dot {
    width: 6px;
    height: 6px;
}

/* ============================================
   SKELETON SCREEN
   Content placeholder with shimmer effect
   ============================================ */

.skeleton-screen {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

.skeleton-screen[hidden] {
    display: none !important;
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-surface, #18212B) 25%,
        var(--bg-surface-strong, #202B36) 50%,
        var(--bg-surface, #18212B) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Skeleton Variants */
.skeleton--image {
    width: 100%;
    height: 180px;
    border-radius: 12px;
}

.skeleton--title {
    height: 24px;
    width: 60%;
}

.skeleton--text {
    height: 16px;
    width: 100%;
}

.skeleton--text-short {
    width: 40%;
}

.skeleton--text-medium {
    width: 70%;
}

.skeleton--avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton--thumbnail {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
}

.skeleton--badge {
    width: 32px;
    height: 20px;
    border-radius: 10px;
    flex-shrink: 0;
}

/* Skeleton Card */
.skeleton-screen__card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-surface, #18212B);
    border: 1px solid var(--border-soft, rgba(255, 229, 154, 0.15));
    border-radius: 12px;
}

.skeleton-screen__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Skeleton List */
.skeleton-screen__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-screen__list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-surface, #18212B);
    border: 1px solid var(--border-soft, rgba(255, 229, 154, 0.15));
    border-radius: 10px;
}

.skeleton-screen__list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Skeleton Grid */
.skeleton-screen__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.skeleton-screen__grid-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: var(--bg-surface, #18212B);
    border: 1px solid var(--border-soft, rgba(255, 229, 154, 0.15));
    border-radius: 8px;
}

/* ============================================
   PAGE TRANSITION LOADER
   Full screen overlay for page transitions
   ============================================ */

.page-transition-loader {
    position: fixed;
    inset: 0;
    z-index: var(--theme-z-loading, 10000);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-transition-loader[hidden] {
    display: none !important;
}

.page-transition-loader__overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 8, 8, 0.85);
    backdrop-filter: blur(4px);
}

.page-transition-loader__spinner {
    position: relative;
    z-index: 1;
}

/* ============================================
   PULL TO REFRESH
   Pull down to refresh indicator
   ============================================ */

.pull-to-refresh {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding-top: env(safe-area-inset-top, 0);
    /* Jangan intercept clicks - hanya indikator visual */
    pointer-events: none;
}

.pull-to-refresh[hidden],
.pull-to-refresh[aria-hidden="true"] {
    display: none !important;
}

.pull-to-refresh__track {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px;
}

.pull-to-refresh__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--color-gold, #DCAE49);
    transition: transform 0.3s ease;
}

.pull-to-refresh--pulling .pull-to-refresh__icon {
    transform: rotate(180deg);
}

.pull-to-refresh--refreshing .pull-to-refresh__icon {
    animation: spin-ring 1s linear infinite;
}

.pull-to-refresh__arrow {
    width: 24px;
    height: 24px;
}

.pull-to-refresh__text {
    font-size: 12px;
    color: var(--theme-text-muted, #AFA38B);
}

/* ============================================
   INFINITE SCROLL LOADER
   Load more content indicator
   ============================================ */

.infinite-scroll-loader {
    display: flex;
    justify-content: center;
    padding: 16px;
}

.infinite-scroll-loader[hidden] {
    display: none !important;
}

.infinite-scroll-loader__content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.infinite-scroll-loader__text {
    font-size: 13px;
    color: var(--theme-text-muted, #AFA38B);
}

/* ============================================
   BUTTON LOADING STATE
   Loading indicator in buttons
   ============================================ */

.btn-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-loading__spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-loading__icon {
    animation: spin-ring 0.8s linear infinite;
}

.btn-loading__track {
    opacity: 0.2;
}

.btn-loading__progress {
    animation: spin-ring 0.8s linear infinite;
}

/* Button with Loading State */
.btn:disabled,
.btn.is-loading,
button:disabled,
button.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn.is-loading::after,
button.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
    border-radius: inherit;
}

/* ============================================
   ERROR STATE WITH RETRY
   Error display with retry action
   ============================================ */

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 16px;
    text-align: center;
}

.error-state__icon {
    color: var(--color-danger, #E34B5F);
    opacity: 0.8;
}

.error-state__message {
    margin: 0;
    color: var(--theme-text, #FFF8E6);
    font-size: 16px;
    font-weight: 600;
}

.error-state__detail {
    margin: 0;
    color: var(--theme-text-muted, #AFA38B);
    font-size: 13px;
}

.error-state__retry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    color: var(--color-gold-dark, #A66D19);
    font-size: 14px;
    font-weight: 600;
    background: var(--gradient-gold, linear-gradient(180deg, #FFF2B8 0%, var(--color-gold) 46%, var(--color-gold-dark) 100%));
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.error-state__retry:hover {
    background: var(--gradient-gold-hover, linear-gradient(180deg, #FFF5C7 0%, #F2B840 100%));
    transform: scale(1.02);
}

.error-state__retry:active {
    transform: scale(0.98);
}

.error-state__retry-icon {
    font-size: 16px;
}

/* ============================================
   EMPTY STATE
   No content display
   ============================================ */

.empty-state-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 16px;
    text-align: center;
}

.empty-state__icon {
    color: var(--theme-text-muted, #AFA38B);
    opacity: 0.5;
}

.empty-state__title {
    margin: 0;
    color: var(--theme-text, #FFF8E6);
    font-size: 16px;
    font-weight: 600;
}

.empty-state__description {
    margin: 0;
    color: var(--theme-text-muted, #AFA38B);
    font-size: 13px;
}

/* ============================================
   OVERLAY LOADING
   Modal/overlay loading state
   ============================================ */

.loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 8, 8, 0.7);
    backdrop-filter: blur(2px);
    border-radius: inherit;
}

.loading-overlay__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.loading-overlay__text {
    font-size: 13px;
    color: var(--theme-text, #FFF8E6);
}

/* ============================================
   LAZY LOADING PLACEHOLDER
   Image/video lazy load placeholder
   ============================================ */

.lazy-placeholder {
    position: relative;
    overflow: hidden;
    background: var(--bg-surface, #18212B);
}

.lazy-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: lazy-shimmer 2s ease-in-out infinite;
}

@keyframes lazy-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.lazy-placeholder--loaded::before {
    animation: lazy-fade-out 0.3s ease forwards;
}

@keyframes lazy-fade-out {
    to {
        opacity: 0;
    }
}

/* ============================================
   CARD LOADING
   Card-level loading state
   ============================================ */

.card-loading {
    position: relative;
    pointer-events: none;
}

.card-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 8, 8, 0.5);
    backdrop-filter: blur(2px);
}

.card-loading__spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

/* ============================================
   FORM LOADING
   Form submission loading
   ============================================ */

.form-loading {
    position: relative;
}

.form-loading__overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(7, 8, 8, 0.85);
    backdrop-filter: blur(4px);
    border-radius: inherit;
}

.form-loading__spinner {
    width: 40px;
    height: 40px;
}

.form-loading__message {
    font-size: 14px;
    color: var(--theme-text, #FFF8E6);
}

/* ============================================
   TOAST LOADING
   Loading toast notification
   ============================================ */

.loading-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-surface-strong, #202B36);
    border: 1px solid var(--border-default, rgba(245, 199, 92, 0.34));
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.loading-toast__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold, #DCAE49);
}

.loading-toast__text {
    color: var(--theme-text, #FFF8E6);
    font-size: 14px;
}

/* ============================================
   SPINNER SIZES
   ============================================ */

.spinner-xs {
    width: 16px;
    height: 16px;
}

.spinner-sm {
    width: 24px;
    height: 24px;
}

.spinner-md {
    width: 32px;
    height: 32px;
}

.spinner-lg {
    width: 48px;
    height: 48px;
}

.spinner-xl {
    width: 64px;
    height: 64px;
}

/* ============================================
   ACCESSIBILITY
   Screen reader only content
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to main content link */
.skip-link {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    padding: 12px 24px;
    color: #08111F !important;
    background: var(--gradient-gold, linear-gradient(180deg, #FFF2B8 0%, var(--color-gold) 46%, var(--color-gold-dark) 100%));
    border-radius: 0 0 12px 12px;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .loading-spinner__ring,
    .loading-spinner__ring--delayed,
    .loading-spinner__pulse-ring,
    .loading-spinner__dot,
    .loading-progress__bar,
    .skeleton,
    .lazy-placeholder::before,
    .btn-loading__icon,
    .btn-loading__progress {
        animation: none;
    }

    .loading-spinner__dot {
        opacity: 0.6;
    }

    .skeleton {
        background-position: 0 0;
    }
}

/* ============================================
   MOBILE FIRST RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
    .loading-banner__inner {
        padding: 24px 16px;
        gap: 20px;
    }

    .loading-logo {
        font-size: 28px;
    }

    .loading-spinner--primary {
        width: 48px;
        height: 48px;
    }

    .loading-progress {
        width: 140px;
    }

    .skeleton-screen {
        padding: 12px;
        gap: 12px;
    }

    .skeleton-screen__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .error-state {
        padding: 24px 12px;
    }

    .empty-state-content {
        padding: 32px 12px;
    }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */

@media (prefers-contrast: high) {
    .skeleton {
        background: var(--bg-surface-strong, #202B36);
        border: 1px dashed var(--border-default, rgba(245, 199, 92, 0.34));
    }

    .loading-banner--fullpage {
        border: 2px solid var(--color-gold, #DCAE49);
    }

    .error-state__icon,
    .empty-state__icon {
        opacity: 1;
    }
}

/* ============================================
   MODAL SYSTEM - RSNVIP9 Reusable Modal Components
   Mobile-first (320-480px), touch-friendly, accessible
   ============================================ */

/* === Modal Overlay/Backdrop === */
.modal-overlay,
.modal-backdrop,
.modal-mask {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--theme-shell-max, 480px);
    z-index: var(--theme-z-overlay, 2000);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 8, 13, 0.85);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-active,
.modal-overlay.is-visible,
.modal-backdrop.is-active,
.modal-backdrop.is-visible,
.modal-mask.is-active {
    opacity: 1;
    visibility: visible;
}

/* Backdrop click target */
.modal-backdrop {
    cursor: pointer;
}

/* === Modal Dialog Base === */
.modal,
.modal-dialog,
.modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: calc(var(--theme-z-overlay, 2000) + 1);
    display: flex;
    flex-direction: column;
    max-width: 340px;
    width: calc(100% - 32px);
    max-height: calc(100dvh - 48px);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, calc(-50% + 8px)) scale(0.95);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    overflow: hidden;
    pointer-events: none;
}

.modal.is-active,
.modal.is-visible,
.modal-dialog.is-active,
.modal-dialog.is-visible,
.modal-box.is-active,
.modal-box.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.modal[hidden],
.modal-dialog[hidden],
.modal-box[hidden],
.account-dialog[hidden],
.confirm-dialog[hidden],
.alert-dialog[hidden],
.bottom-sheet[hidden],
.modal-backdrop[hidden],
.modal-overlay[hidden],
.popup-backdrop[hidden],
.loading-overlay[hidden] {
    display: none !important;
}

/* Modal Header */
.modal-header,
.modal-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-soft);
}

.modal-title,
.modal-dialog__title {
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--theme-text);
    line-height: 1.2;
}

/* Modal Close Button */
.modal-close,
.modal-dialog__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--theme-text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.modal-close:hover,
.modal-close:focus,
.modal-dialog__close:hover {
    color: var(--theme-text);
    background: var(--bg-surface-strong);
}

.modal-close::before {
    content: "\00d7";
    font-size: 24px;
    line-height: 1;
}

/* Modal Body */
.modal-body,
.modal-dialog__body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
    -webkit-overflow-scrolling: touch;
}

/* Modal Footer */
.modal-footer,
.modal-dialog__footer {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    border-top: 1px solid var(--border-soft);
}

.modal-footer--end {
    justify-content: flex-end;
}

.modal-footer--center {
    justify-content: center;
}

.modal-footer--spread {
    justify-content: space-between;
}

/* === Dialog Actions === */
.dialog-actions,
.modal-actions {
    display: flex;
    gap: var(--space-3);
}

.dialog-actions--vertical,
.modal-actions--vertical {
    flex-direction: column;
}

.dialog-actions .btn,
.modal-actions .btn {
    flex: 1;
}

/* === Confirm Dialog === */
.confirm-dialog,
.alert-dialog,
.info-dialog {
    text-align: center;
}

.confirm-dialog .modal-body,
.alert-dialog .modal-body,
.info-dialog .modal-body {
    padding: var(--space-6) var(--space-4);
}

.confirm-dialog__icon,
.alert-dialog__icon,
.info-dialog__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    font-size: 28px;
    background: var(--bg-surface-strong);
    border-radius: 50%;
}

.confirm-dialog__icon--success,
.alert-dialog__icon--success {
    color: var(--color-positive);
    background: rgba(50, 213, 131, 0.12);
}

.confirm-dialog__icon--warning,
.alert-dialog__icon--warning {
    color: var(--color-warning);
    background: rgba(245, 176, 65, 0.12);
}

.confirm-dialog__icon--danger,
.alert-dialog__icon--danger {
    color: var(--color-danger);
    background: rgba(227, 75, 95, 0.12);
}

.confirm-dialog__icon--info,
.alert-dialog__icon--info {
    color: var(--color-info);
    background: rgba(56, 189, 248, 0.12);
}

.confirm-dialog__message,
.alert-dialog__message,
.info-dialog__message {
    margin: 0 0 var(--space-4);
    font-size: var(--font-size-base);
    color: var(--theme-text-muted);
    line-height: 1.5;
}

.confirm-dialog__title,
.alert-dialog__title,
.info-dialog__title {
    margin: 0 0 var(--space-2);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--theme-text);
}

/* === Bottom Sheet === */
.bottom-sheet,
.sheet-modal {
    position: fixed;
    bottom: 0;
    left: 50%;
    z-index: var(--theme-z-overlay, 2000);
    transform: translateX(-50%) translateY(100%);
    max-width: 480px;
    width: 100%;
    max-height: calc(85dvh - 48px);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s ease, visibility 0.25s ease;
}

.bottom-sheet.is-active,
.bottom-sheet.is-visible,
.sheet-modal.is-active,
.sheet-modal.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Bottom sheet backdrop */
.bottom-sheet-backdrop {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--theme-shell-max, 480px);
    z-index: calc(var(--theme-z-overlay, 2000) - 1);
    background: rgba(7, 8, 13, 0.85);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.bottom-sheet-backdrop.is-active,
.bottom-sheet-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Bottom sheet handle */
.bottom-sheet__handle,
.sheet-modal__handle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) 0;
    cursor: grab;
}

.bottom-sheet__handle::before,
.sheet-modal__handle::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border-default);
    border-radius: 2px;
}

.bottom-sheet__header,
.sheet-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-4) var(--space-3);
    border-bottom: 1px solid var(--border-soft);
}

.bottom-sheet__title,
.sheet-modal__title {
    margin: 0;
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--theme-text);
}

.bottom-sheet__body,
.sheet-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
    -webkit-overflow-scrolling: touch;
}

.bottom-sheet__footer,
.sheet-modal__footer {
    padding: var(--space-4);
    border-top: 1px solid var(--border-soft);
}

/* === Toast / Snackbar === */
.toast-container,
.toast-wrapper {
    position: fixed;
    bottom: max(calc(var(--public-safe-bottom, 78px) + 16px), calc(96px + env(safe-area-inset-bottom)));
    left: 50%;
    z-index: var(--theme-z-toast, 3000);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    transform: translateX(-50%);
    pointer-events: none;
}

.toast,
.toast-notification,
.snackbar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    max-width: calc(min(100%, var(--theme-shell-max, 480px)) - 48px);
    width: max-content;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-surface-strong);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: var(--font-size-sm);
    color: var(--theme-text);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast[hidden],
.toast-notification[hidden],
.snackbar[hidden],
.auth-toast[hidden] {
    display: none !important;
}

.toast.is-visible,
.toast-notification.is-visible,
.snackbar.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast__icon,
.toast-notification__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    font-size: 16px;
}

.toast__icon--success {
    color: var(--color-positive);
}

.toast__icon--warning {
    color: var(--color-warning);
}

.toast__icon--error,
.toast__icon--danger {
    color: var(--color-danger);
}

.toast__icon--info {
    color: var(--color-info);
}

.toast__message,
.toast-notification__message {
    flex: 1;
    line-height: 1.4;
}

.toast__close,
.toast-notification__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    color: var(--theme-text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.toast__close:hover,
.toast-notification__close:hover {
    opacity: 1;
}

.toast__close::before,
.toast-notification__close::before {
    content: "\00d7";
    font-size: 18px;
    line-height: 1;
}

/* === Loading Overlay / Spinner === */
.loading-overlay,
.modal-loading {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--theme-shell-max, 480px);
    z-index: var(--theme-z-loading, 10000);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    background: rgba(7, 8, 13, 0.9);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.loading-overlay.is-active,
.loading-overlay.is-visible,
.modal-loading.is-active,
.modal-loading.is-visible {
    opacity: 1;
    visibility: visible;
}

.loading-spinner,
.spinner {
    position: relative;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
}

.loading-spinner::before,
.loading-spinner::after {
    content: '';
    position: absolute;
    border: 3px solid transparent;
    border-radius: 50%;
}

.loading-spinner::before {
    inset: 0;
    border-top-color: var(--color-gold-bright);
    border-right-color: var(--color-gold-bright);
    animation: spinner-rotate 1s linear infinite;
}

.loading-spinner::after {
    inset: 12px;
    border-bottom-color: var(--color-blue);
    border-left-color: var(--color-blue);
    animation: spinner-rotate 1.4s linear infinite reverse;
}

@keyframes spinner-rotate {
    to { transform: rotate(360deg); }
}

.loading-message,
.modal-loading__message {
    color: var(--theme-text-muted);
    font-size: var(--font-size-sm);
    text-align: center;
}

/* === Full-screen Modal === */
.modal--fullscreen,
.fullscreen-modal {
    position: fixed;
    inset: 0;
    left: 50%;
    z-index: var(--theme-z-overlay, 2000);
    max-width: var(--theme-shell-max, 480px);
    width: 100%;
    max-height: 100dvh;
    border-radius: 0;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.modal--fullscreen.is-active,
.modal--fullscreen.is-visible,
.fullscreen-modal.is-active,
.fullscreen-modal.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.modal--fullscreen .modal-header,
.fullscreen-modal .modal-header {
    padding-top: calc(var(--space-4) + env(safe-area-inset-top));
}

.modal--fullscreen .modal-footer,
.fullscreen-modal .modal-footer {
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
}

/* === Form Modal === */
.form-modal .modal-body {
    padding: var(--space-4);
}

.form-modal .form-group {
    margin-bottom: var(--space-4);
}

.form-modal .form-group:last-child {
    margin-bottom: 0;
}

.form-modal .form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--theme-text-muted);
}

.form-modal .form-input {
    width: 100%;
    min-height: var(--touch-target-min);
    padding: var(--space-3);
    color: var(--theme-text);
    background: var(--bg-surface-strong);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    font-size: var(--font-size-md);
}

.form-modal .form-input:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(24, 199, 182, 0.15);
}

/* === Animation Classes === */
.modal-animate-in {
    animation: modal-slide-in 0.3s ease forwards;
}

.modal-animate-out {
    animation: modal-slide-out 0.2s ease forwards;
}

@keyframes modal-slide-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modal-slide-out {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.95) translateY(8px);
    }
}

.bottom-sheet-animate-in {
    animation: sheet-slide-in 0.35s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.bottom-sheet-animate-out {
    animation: sheet-slide-out 0.25s ease forwards;
}

@keyframes sheet-slide-in {
    from {
        transform: translateX(-50%) translateY(100%);
    }
    to {
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes sheet-slide-out {
    from {
        transform: translateX(-50%) translateY(0);
    }
    to {
        transform: translateX(-50%) translateY(100%);
    }
}

/* ============================================
   POPUP STYLES (Legacy/Announcement Modal)
   Backward compatible dengan PopUp.ejs
   ============================================ */

.popup-backdrop,
.popup-backdrop.modal-backdrop {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--theme-shell-max, 480px);
    z-index: var(--theme-z-overlay, 2000);
    background: rgba(7, 8, 13, 0.9);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-backdrop.is-active,
.popup-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.popup,
.popup.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: calc(var(--theme-z-overlay, 2000) + 1);
    max-width: 340px;
    width: calc(100% - 32px);
    max-height: calc(100dvh - 48px);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.popup.is-active,
.popup.is-visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.popup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-surface-strong);
    border-bottom: 1px solid var(--border-soft);
}

.popup-header h2 {
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--theme-text);
    line-height: 1.3;
}

.popup-header p {
    margin: var(--space-1) 0 0;
    font-size: var(--font-size-sm);
    color: var(--theme-text-muted);
}

.close-button,
.popup .close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--theme-text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
}

.close-button:hover,
.close-button:focus {
    color: var(--theme-text);
    background: var(--bg-surface-soft);
}

.popup-content {
    padding: var(--space-4);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.popup-detail {
    margin: 0 0 var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--theme-text-muted);
    line-height: 1.6;
}

.popup-rule {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: var(--font-size-sm);
}

.popup-rule:last-of-type {
    border-bottom: none;
}

.popup-rule span {
    color: var(--theme-text-muted);
}

.popup-rule strong {
    color: var(--color-gold-bright);
    font-weight: 700;
}

.popup-note {
    margin-top: var(--space-4);
    padding: var(--space-3);
    font-size: var(--font-size-xs);
    color: var(--theme-text-muted);
    background: var(--bg-surface-soft);
    border-radius: var(--radius-md);
    line-height: 1.5;
}

.popup-footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    border-top: 1px solid var(--border-soft);
}

.reminder-button,
.popup .reminder-button {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-xs);
    color: var(--theme-text-muted);
    background: transparent;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
}

.reminder-button:hover {
    color: var(--theme-text);
    border-color: var(--border-default);
}

.activity-button,
.popup .activity-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target-min);
    padding: var(--space-3) var(--space-4);
    color: var(--text-inverse);
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-gold);
}

.activity-button:hover {
    background: var(--gradient-gold-hover);
    text-decoration: none;
    color: var(--text-inverse);
}

.activity-button:active {
    transform: scale(0.98);
}

/* ============================================
   LEGACY ACCOUNT MODAL PATTERNS
   ============================================ */

.account-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 13, 0.85);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.account-overlay.is-active,
.account-overlay.account-overlay--show {
    opacity: 1;
    visibility: visible;
}

.account-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    z-index: 100;
    max-width: 340px;
    width: 90%;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.account-dialog.is-active,
.account-dialog.account-dialog--show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.account-dialog__title {
    margin: 0 0 var(--space-3);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--theme-text);
}

.account-dialog__message {
    margin: 0 0 var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--theme-text-muted);
    line-height: 1.5;
}

.account-dialog__actions {
    display: flex;
    gap: var(--space-3);
}

.account-dialog__actions .btn {
    flex: 1;
}

/* Legacy Toast Styles */
.auth-toast-container {
    position: fixed;
    bottom: max(calc(var(--public-safe-bottom, 78px) + 16px), calc(96px + env(safe-area-inset-bottom)));
    left: 50%;
    z-index: var(--theme-z-toast, 3000);
    transform: translateX(-50%);
    pointer-events: none;
}

.auth-toast {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    max-width: calc(min(100%, var(--theme-shell-max, 480px)) - 48px);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-surface-strong);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: var(--font-size-sm);
    color: var(--theme-text);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.auth-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.auth-toast__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    font-size: 16px;
    color: var(--color-positive);
}

.auth-toast__icon.fa-check {
    color: var(--color-positive);
}

.auth-toast__icon.fa-exclamation-triangle {
    color: var(--color-warning);
}

.auth-toast__icon.fa-times-circle {
    color: var(--color-danger);
}

.auth-toast__msg {
    flex: 1;
    line-height: 1.4;
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    .modal,
    .modal-dialog,
    .modal-box,
    .bottom-sheet,
    .sheet-modal,
    .toast,
    .toast-notification,
    .snackbar,
    .loading-overlay,
    .modal-loading {
        transition: none;
    }

    .modal-animate-in,
    .modal-animate-out,
    .bottom-sheet-animate-in,
    .bottom-sheet-animate-out {
        animation: none;
    }

    /* Tabbar reduced motion - disable animations */
    .user-navigation .user-tabbar__item,
    .user-navigation .user-tabbar__item--primary .user-tabbar__icon,
    .user-navigation .user-tabbar__icon {
        transition: none;
        animation: none;
    }

    .user-navigation .user-tabbar__item.active .user-tabbar__icon {
        transform: none;
    }

    .user-navigation .user-tabbar__badge--dot {
        animation: none;
    }

    .user-navigation .user-tabbar__indicator {
        transition: none;
    }
}

/* ============================================
   REUSABLE SEARCH & FILTER COMPONENTS
   Mobile-first, touch-friendly
   ============================================ */

/* === Search Box === */
.ui-search-box {
    --sb-bg: var(--bg-surface, #18212B);
    --sb-border: var(--border-default, rgba(245, 199, 92, 0.34));
    --sb-focus-border: var(--color-cyan, #5DE4D6);
    --sb-text: var(--theme-text, #FFF8E6);
    --sb-muted: var(--theme-text-muted, #AFA38B);
    --sb-radius: 12px;
    --sb-height: 44px;

    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--sb-bg);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    padding: 0 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ui-search-box:focus-within {
    border-color: var(--sb-focus-border);
    box-shadow: 0 0 0 3px rgba(93, 228, 214, 0.15);
}

.ui-search-box__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--sb-height);
    color: var(--sb-muted);
    font-size: 14px;
    flex-shrink: 0;
    margin: 0 -4px 0 -8px;
}

.ui-search-box__input {
    flex: 1;
    min-width: 0;
    height: var(--sb-height);
    padding: 0;
    background: transparent;
    border: none;
    color: var(--sb-text);
    font-size: 15px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.ui-search-box__input::placeholder {
    color: var(--sb-muted);
}

.ui-search-box__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.ui-search-box__clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: -4px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--sb-muted);
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.ui-search-box__clear.is-visible {
    opacity: 1;
    visibility: visible;
}

.ui-search-box__clear:hover,
.ui-search-box__clear:focus {
    background: rgba(255, 255, 255, 0.1);
    color: var(--sb-text);
}

.ui-search-box__clear:focus-visible {
    outline: 2px solid var(--sb-focus-border);
    outline-offset: 2px;
}

/* === Filter Chips === */
.ui-filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.ui-filter-chips::-webkit-scrollbar {
    display: none;
}

.ui-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-surface, #18212B);
    border: 1px solid var(--border-default, rgba(245, 199, 92, 0.34));
    border-radius: 9999px;
    color: var(--theme-text-muted, #AFA38B);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    flex-shrink: 0;
}

.ui-filter-chip:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--theme-text, #FFF8E6);
    transform: translateY(-1px);
}

.ui-filter-chip:focus-visible {
    outline: 2px solid var(--color-cyan, #5DE4D6);
    outline-offset: 2px;
}

.ui-filter-chip.is-active,
.ui-filter-chip.active {
    background: linear-gradient(180deg, #FFF2B8 0%, #F5C75C 52%, #B87818 100%);
    border-color: transparent;
    color: #171107;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(245, 199, 92, 0.25);
}

.ui-filter-chip__icon {
    font-size: 12px;
}

.ui-filter-chip__count {
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.ui-filter-chip.is-active .ui-filter-chip__count,
.ui-filter-chip.active .ui-filter-chip__count {
    background: rgba(0, 0, 0, 0.2);
}

/* === Sort Dropdown === */
.ui-sort-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 0;
}

.ui-sort-bar__label {
    color: var(--theme-text-muted, #AFA38B);
    font-size: 12px;
}

.ui-sort-select {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    padding-right: 28px;
    background: var(--bg-surface, #18212B);
    border: 1px solid var(--border-default, rgba(245, 199, 92, 0.34));
    border-radius: 12px;
    color: var(--theme-text, #FFF8E6);
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23AFA38B' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    min-height: 36px;
    transition: border-color 0.2s;
}

.ui-sort-select:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.ui-sort-select:focus {
    outline: none;
    border-color: var(--color-cyan, #5DE4D6);
    box-shadow: 0 0 0 3px rgba(93, 228, 214, 0.15);
}

.ui-sort-select option {
    background: var(--bg-surface-strong, #202B36);
    color: var(--theme-text, #FFF8E6);
    padding: 8px;
}

/* === Search Suggestions Dropdown === */
.ui-search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-surface, #18212B);
    border: 1px solid var(--border-default, rgba(245, 199, 92, 0.34));
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    max-height: 320px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.ui-search-suggestions.is-active,
.ui-search-suggestions.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ui-suggestions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-soft, rgba(255, 229, 154, 0.15));
    color: var(--theme-text-muted, #AFA38B);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ui-suggestions-clear {
    background: none;
    border: none;
    color: var(--theme-text-muted, #AFA38B);
    font-size: 11px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.ui-suggestions-clear:hover {
    color: var(--theme-text, #FFF8E6);
    background: rgba(255, 255, 255, 0.1);
}

.ui-suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    background: none;
    border: none;
    color: var(--theme-text, #FFF8E6);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}

.ui-suggestion-item:hover,
.ui-suggestion-item:focus {
    background: rgba(255, 255, 255, 0.05);
}

.ui-suggestion-item:focus-visible {
    outline: none;
    background: rgba(93, 228, 214, 0.1);
}

.ui-suggestion-item i {
    color: var(--theme-text-muted, #AFA38B);
    font-size: 13px;
    width: 16px;
    text-align: center;
}

.ui-suggestion-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ui-suggestion-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    color: var(--theme-text-muted, #AFA38B);
    font-size: 10px;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s, background 0.15s;
}

.ui-suggestion-item:hover .ui-suggestion-remove,
.ui-suggestion-item:focus-within .ui-suggestion-remove {
    opacity: 1;
}

.ui-suggestion-remove:hover {
    color: var(--theme-text, #FFF8E6);
    background: rgba(255, 255, 255, 0.1);
}

/* === Search Loading Spinner === */
.ui-search-loading {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--theme-text-muted, #AFA38B);
    font-size: 12px;
}

.ui-search-loading.is-active,
.ui-search-loading.active {
    display: flex;
}

.ui-search-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(93, 228, 214, 0.2);
    border-top-color: var(--color-cyan, #5DE4D6);
    border-radius: 50%;
    animation: ui-spin 0.8s linear infinite;
}

@keyframes ui-spin {
    to { transform: rotate(360deg); }
}

/* === Empty State === */
.ui-empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.ui-empty-state.is-active,
.ui-empty-state.active {
    display: flex;
}

.ui-empty-state__icon {
    font-size: 48px;
    color: var(--theme-text-muted, #AFA38B);
    opacity: 0.4;
    margin-bottom: 16px;
}

.ui-empty-state__title {
    color: var(--theme-text, #FFF8E6);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ui-empty-state__text {
    color: var(--theme-text-muted, #AFA38B);
    font-size: 14px;
    max-width: 240px;
    line-height: 1.5;
}

.ui-empty-state__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px 20px;
    background: var(--bg-surface, #18212B);
    border: 1px solid var(--border-default, rgba(245, 199, 92, 0.34));
    border-radius: 12px;
    color: var(--color-cyan, #5DE4D6);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.ui-empty-state__action:hover {
    background: var(--bg-surface-strong, #202B36);
    border-color: var(--color-cyan, #5DE4D6);
}

/* === Search + Filter + Sort Combined Bar === */
.ui-search-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ui-search-filter-bar .ui-search-box {
    position: relative;
}

.ui-search-filter-bar .ui-search-suggestions {
    left: 0;
    right: 0;
}

/* === Responsive Adjustments === */
@media (max-width: 380px) {
    .ui-filter-chip {
        padding: 8px 12px;
        font-size: 12px;
    }

    .ui-filter-chip__count {
        padding: 2px 6px;
        font-size: 10px;
    }

    .ui-sort-select {
        padding: 6px 10px;
        padding-right: 24px;
        font-size: 12px;
    }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    .ui-search-box,
    .ui-filter-chip,
    .ui-search-suggestions,
    .ui-search-spinner,
    .ui-filter-chip:hover,
    .ui-filter-chip.is-active,
    .ui-filter-chip.active {
        transition: none;
        animation: none;
    }
}
