/* ============================
   Nexus Royale — Dark & Silver
   ============================ */

/* 1) Reset & base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background: #000000;
    color: #e5e7eb;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-width: 0;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

:root {
    --bg: #000000;
    --bg-elev: #000000;
    --bg-elev-2: #000000;
    /* Gold palette */
    --gold-50: #fff7e6;
    --gold-200: #f7d58a;
    --gold-300: #f0c96a;
    --gold-400: #eab54a;
    --gold-500: #dca92d;
    --gold-600: #b8860b;
    --silver-50: #f7f7f7;
    --silver-100: #f1f1f1;
    --silver-300: #d0d5dd;
    --silver-500: #c0c0c0;
    --silver-700: #9aa0a6;
    --accent: linear-gradient(135deg, #fff2c6 0%, #f7d58a 35%, #eab54a 60%, #dca92d 85%, #b8860b 100%);
    --accent-soft: linear-gradient(135deg, rgba(234, 181, 74, 0.12), rgba(184, 134, 11, 0.08));
    --accent-ring: rgba(234, 181, 74, 0.35);
    --muted: #94a3b8;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --ring: #8e99a7;
    --sidebar-width: 280px;
    --sidebar-width-collapsed: 76px;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --shadow-1: 0 6px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    --shadow-2: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.shimmer {
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 2) Sidebar */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    background: #000000;
    border-right: 1px solid rgba(192, 192, 192, 0.15);
    transform: translateX(-100%);
    transition: transform 320ms ease, box-shadow 320ms ease, width 240ms ease;
    z-index: 50;
    padding: 18px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-1);
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    border: 1px solid rgba(192, 192, 192, 0.12);
}

.brand-mark {
    font-size: 18px;
    color: var(--gold-400);
    text-shadow: 0 0 12px rgba(192, 192, 192, 0.2);
}

.brand-name {
    font-weight: 700;
    letter-spacing: 0.4px;
}

.sidebar__brand {
    justify-content: center;
    background: transparent !important;
    border: 0 !important;
}

.brand-logo {
    display: block;
    height: 100px;
    width: auto;
    margin: 0 auto;
    border-radius: 10px;
}

.sidebar__nav {
    display: grid;
    gap: 6px;
}

.nav-item {
    padding: 8px 10px;
    border-radius: var(--radius-xs);
    color: #cfd8e3;
    border: 1px solid rgba(192, 192, 192, 0.14);
    background: rgba(255, 255, 255, 0.02);
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 120ms ease;
    font-size: 14px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar__nav .nav-item::before {
    content: attr(data-icon);
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
    line-height: 1;
    transform: translateY(1px);
}

.sidebar__nav .nav-icon {
    width: 36px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    color: #f6e7a9;
    border-radius: 50%;
    background: radial-gradient(ellipse at top, rgba(234, 181, 74, 0.35), rgba(234, 181, 74, 0.12));
    border: 1px solid rgba(234, 181, 74, 0.25);
}

.sidebar__nav .nav-icon svg {
    width: 18px;
    height: 18px;
}

.nav-item:hover .nav-icon {
    color: #ffffff;
}

.nav-item:hover,
.nav-item:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(192, 192, 192, 0.18);
}

.nav-item.is-active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border-color: rgba(192, 192, 192, 0.24);
    color: #ffffff;
}

/* Enhanced active indicator bar */
.nav-item.is-active {
    position: relative;
    box-shadow: inset 0 0 0 2px rgba(234, 181, 74, 0.14);
}
.nav-item.is-active::after {
    content: "";
    position: absolute;
    left: -10px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(234, 181, 74, 0.9), rgba(234, 181, 74, 0.25), rgba(234, 181, 74, 0));
}

.nav-label {
    font-weight: 600;
    letter-spacing: .2px;
}

.nav-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 999px;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.nav-badge--hot {
    border-color: rgba(244, 63, 94, 0.35);
    background: rgba(244, 63, 94, 0.18);
}
.nav-badge--new {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.18);
}
.nav-badge--vip {
    border-color: rgba(234, 181, 74, 0.45);
    background: rgba(234, 181, 74, 0.22);
    color: #ffffff;
}
.nav-badge--bonus {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.18);
}

.sidebar__footer {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

/* 3) Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #000000;
    border-bottom: 1px solid rgba(192, 192, 192, 0.12);
    backdrop-filter: blur(8px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible !important;
}

/* Ensure user menu dropdown appears above navbar and all other elements */
.navbar .user-menu__dropdown,
body .user-menu__dropdown,
main .user-menu__dropdown,
* .user-menu__dropdown {
    z-index: 9999999 !important;
}

/* Force dropdown to be visible and escape any overflow containers */
.user-menu[data-open="true"] .user-menu__dropdown {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999999 !important;
    position: fixed !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
}

/* On small screens, ensure parent containers don't clip the dropdown */
@media (max-width: 1024px) {
    .navbar {
        overflow: visible !important;
    }
    
    .navbar .user-menu,
    .nav-right .user-menu,
    .auth--user .user-menu {
        overflow: visible !important;
    }
    
    .user-menu[data-open="true"] {
        overflow: visible !important;
    }
    
    /* Ensure dropdown is visible and properly positioned */
    .user-menu[data-open="true"] .user-menu__dropdown {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 9999999 !important;
        position: fixed !important;
        overflow: visible !important;
    }
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 10px;
    border-radius: 8px;
    color: #cfd8e3;
}

.nav-link:hover,
.nav-link:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.nav-link.is-active {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    border: 1px solid rgba(192, 192, 192, 0.18);
}

/* Icons (inline SVG) */
.icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(192, 192, 192, 0.18);
    cursor: pointer;
    transition: transform 120ms ease, background 180ms ease, border 180ms ease;
}

.icon-btn:hover {
    transform: translateY(-1px);
}

.icon-btn:active {
    transform: translateY(0);
}

.icon-btn:focus-visible {
    outline: 2px solid transparent;
    box-shadow: 0 0 0 2px rgba(192, 192, 192, 0.35);
}

.icon-bars {
    position: relative;
    width: 16px;
    height: 2px;
    background: #c0c0c0;
}

.icon-bars::before,
.icon-bars::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #c0c0c0;
}

.icon-bars::before {
    top: -6px;
}

.icon-bars::after {
    top: 6px;
}

/* 4) Content & sections */
.content {
    padding: 12px 0px;
    max-width: 1500px;
    margin-right: auto;
    margin-left: auto;
    width: 90%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Search */
.search {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(192, 192, 192, 0.2);
    border-radius: 10px;
    padding: 6px 10px 6px 8px;
}

.search__icon {
    color: #c0c0c0;
    display: inline-flex;
}

.search__field {
    width: 220px;
    background: transparent;
    border: 0;
    outline: none;
    color: #e5e7eb;
}

.search__field::placeholder {
    color: #9aa0a6;
}

.hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 28px 20px;
    background: #000000;
    border: 1px solid rgba(192, 192, 192, 0.16);
    box-shadow: var(--shadow-2);
}

.hero::after {
    content: "";
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 180deg at 50% 50%, rgba(192, 192, 192, 0.15), transparent 40%, rgba(255, 255, 255, 0.06), transparent 70%);
    filter: blur(18px);
    z-index: 0;
    pointer-events: none;
}

.hero__body {
    position: relative;
    z-index: 1;
}

.hero__title {
    margin: 0 0 8px 0;
    font-size: 28px;
    line-height: 1.15;
}

.hero__subtitle {
    margin: 0 0 16px 0;
    color: var(--muted);
}

.hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 4b) Carousel */
.hero-carousel {
    overflow: hidden;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.hero-carousel::after {
    display: none;
}

.carousel {
    position: relative;
    overflow: hidden;
    /* prevent bottom scrollbar during slide */
}

.carousel__track {
    display: flex;
    width: 100%;
    transition: transform 420ms ease;
    will-change: transform;
}

.carousel__slide {
    min-width: 100%;
}

.hero-carousel .carousel__dots {
    display: flex;
}

/* Support multi-per-view carousels */
.carousel[data-per-view="3"] .carousel__slide {
    min-width: calc(100% / 3);
}

.carousel[data-per-view="2"] .carousel__slide {
    min-width: calc(100% / 2);
}

/* Ensure hero images show fully even if small */
.hero-carousel .carousel__media {
    display: block;
    background: #000000;
}
.hero-carousel .carousel__media img {
    object-fit: contain;
    object-position: center;
}

.hero-carousel .carousel__slide {
    background: transparent;
    border-radius: var(--radius);
    overflow: hidden;
}

.carousel__media img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
}

@media (max-width: 1023px) {
    .carousel__media img {
        height: 180px;
    }
}

.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(192, 192, 192, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: var(--silver-50);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 160ms ease, transform 120ms ease, border 160ms ease;
    z-index: 2;
}

.carousel__btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) scale(1.03);
}

.carousel__btn:active {
    transform: translateY(-50%) scale(0.98);
}

.carousel__btn.prev {
    left: 10px;
}

.carousel__btn.next {
    right: 10px;
}

.carousel__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.carousel__dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(192, 192, 192, 0.25);
    cursor: pointer;
    transition: width 160ms ease, background 160ms ease, border 160ms ease;
}

.carousel__dots .dot.is-active {
    width: 22px;
    background: var(--accent);
    border-color: rgba(255, 255, 255, 0.35);
}

.section {
    margin-top: 28px;
}

.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.section__tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section__title {
    margin: 0;
    font-size: 18px;
}

.section__action {
    color: var(--silver-300);
    opacity: 0.9;
}

.section__action:hover,
.section__action:focus-visible {
    color: #ffffff;
    outline: none;
}

.game-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 120px;
    gap: 24px;
    padding: 0 8px;
    overflow-x: auto;
    /* hide scrollbar but keep scroll for buttons */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge legacy */
    scroll-behavior: smooth;
}

.game-row::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.row-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(234, 181, 74, 0.35);
    background: rgba(234, 181, 74, 0.08);
    color: #f6e7a9;
    cursor: pointer;
    transition: background 160ms ease, border 160ms ease, transform 120ms ease;
}

.row-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

.row-btn:hover {
    background: rgba(234, 181, 74, 0.14);
    transform: translateY(-1px);
}

/* Providers strip */
.providers { margin-top: 8px; }

.providers-filters .filters {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 2px 6px;
}
.filters__label {
    font-size: 13px;
    color: var(--silver-300);
}
.filters__pills {
    display: inline-flex;
    gap: 8px;
}
.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(234, 181, 74, 0.25);
    background: rgba(255, 255, 255, 0.03);
    color: #e5e7eb;
    cursor: pointer;
    transition: background 160ms ease, border 160ms ease, transform 120ms ease, color 160ms ease;
}
.filter-pill:hover {
    background: rgba(234, 181, 74, 0.10);
    border-color: rgba(234, 181, 74, 0.5);
    transform: translateY(-1px);
}
.filter-pill.is-active {
    background: linear-gradient(180deg, rgba(234, 181, 74, 0.12), rgba(234, 181, 74, 0.06));
    border-color: rgba(234, 181, 74, 0.45);
    color: #f6e7a9;
    box-shadow: inset 0 0 0 2px rgba(234, 181, 74, 0.14);
}

.providers .carousel__slide {
    background: #000000;
    border: 1px solid rgba(192, 192, 192, 0.12);
    border-radius: 12px;
    padding: 12px;
}

/* Ensure providers carousel is scrollable on mobile */
@media (max-width: 1023px) {
    .providers .carousel__slide {
        padding: 8px;
    }
    
    .providers .carousel__track {
        overflow-x: visible;
    }
}

.chat-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(234, 181, 74, 0.4);
    background: radial-gradient(120% 120% at 30% 20%, rgba(234, 181, 74, 0.35), rgba(184, 134, 11, 0.2)), rgba(20, 20, 20, 0.9);
    color: #f6e7a9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45), inset 0 0 0 2px rgba(0,0,0,0.35);
    cursor: pointer;
    z-index: 1100;
    transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.55), inset 0 0 0 2px rgba(0,0,0,0.35); }
.chat-fab svg { width: 22px; height: 22px; display: block; }

.chat-widget {
    position: fixed;
    right: 20px;
    bottom: 84px;
    width: 320px;
    max-height: 520px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: #0b0b0b;
    border: 1px solid rgba(234, 181, 74, 0.25);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.02);
    overflow: hidden;
    z-index: 1100;
}
.chat__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(234, 181, 74, 0.12), rgba(234, 181, 74, 0.04));
    border-bottom: 1px solid rgba(234, 181, 74, 0.25);
}
.chat__title { font-weight: 600; color: #f6e7a9; }
.chat__close {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(234, 181, 74, 0.35);
    background: rgba(234, 181, 74, 0.08);
    color: #f6e7a9;
    cursor: pointer;
}
.chat__messages {
    padding: 10px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat__msg {
    max-width: 85%;
    padding: 8px 10px;
    border-radius: 10px;
    line-height: 1.35;
    font-size: 14px;
}
.chat__msg.from-bot {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(234, 181, 74, 0.15);
}
.chat__msg.from-me {
    margin-left: auto;
    background: rgba(234, 181, 74, 0.18);
    border: 1px solid rgba(234, 181, 74, 0.35);
    color: #f6e7a9;
}
.chat__form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.6);
}
.chat__input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(20,20,20,0.9);
    color: #e5e7eb;
}
.chat__send {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(234, 181, 74, 0.35);
    background: linear-gradient(180deg, rgba(234, 181, 74, 0.20), rgba(184, 134, 11, 0.12));
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}
@media (max-width: 420px) {
    .chat-widget { right: 12px; left: 12px; width: auto; }
    .chat-fab { right: 16px; bottom: 16px; }
}
.providers-logos {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
    justify-items: center;
}

.provider-logo {
    width: auto;
    max-width: 100%;
    height: 48px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid rgba(192, 192, 192, 0.12);
    border-radius: 10px;
    padding: 8px 10px;
    filter: grayscale(0.1);
    transition: filter 160ms ease, transform 120ms ease, border 160ms ease, box-shadow 160ms ease;
}

.provider-logo:hover,
.provider-logo:focus-visible {
    outline: none;
    filter: grayscale(0);
    transform: translateY(-1px);
    border-color: rgba(192, 192, 192, 0.28);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

@media (min-width: 1024px) {
    .provider-logo {
        height: 64px;
    }
}

/* Make providers scrollable horizontally on mobile */
@media (max-width: 1023px) {
    .providers-logos {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        padding: 8px 4px;
        scrollbar-width: thin;
        scrollbar-color: rgba(192, 192, 192, 0.3) transparent;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }
    
    .providers-logos::-webkit-scrollbar {
        height: 6px;
    }
    
    .providers-logos::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .providers-logos::-webkit-scrollbar-thumb {
        background: rgba(192, 192, 192, 0.3);
        border-radius: 3px;
    }
    
    .providers-logos::-webkit-scrollbar-thumb:hover {
        background: rgba(192, 192, 192, 0.5);
    }
    
    .provider-logo {
        flex: 0 0 auto;
        min-width: 80px;
        width: auto;
        height: 44px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .provider-logo {
        min-width: 70px;
        height: 40px;
        padding: 6px 8px;
    }
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.game-card {
    background: #000000;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-1);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.game-card:hover,
.game-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(192, 192, 192, 0.28);
    outline: none;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Hover overlay and Play Now button */
.game-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 180ms ease;
    pointer-events: none;
    z-index: 1;
}

.game-card::after {
    content: "Play Now";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.98);
    padding: 8px 14px;
    border-radius: 10px;
    background: #f19900;
    color: #f9f9f9;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1;
    white-space: nowrap;
    display: inline-block;
    opacity: 0;
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: none;
    /* purely visual */
    z-index: 2;
}

.game-card:hover::before,
.game-card:focus-visible::before {
    opacity: 1;
}

.game-card:hover::after,
.game-card:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.game-thumb {
    height: auto;
}

.game-thumb img {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
    border: 0;
}

.game-title {
    margin: 0 0 4px 0;
    font-size: 14px;
}

.game-meta {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

/* 5) Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: transform 120ms ease, background 180ms ease, border 180ms ease, box-shadow 180ms ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: 2px solid transparent;
    box-shadow: 0 0 0 2px rgba(192, 192, 192, 0.35);
}

.btn--primary {
    color: #ffffff;
    background: #ffb600;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn--primary:hover {
    box-shadow: 0 10px 30px rgba(192, 192, 192, 0.25);
}

.btn--outline {
    color: var(--silver-100);
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(192, 192, 192, 0.25);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn--ghost {
    color: var(--silver-300);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* 6) Overlay (mobile) */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 240ms ease, visibility 240ms ease;
    z-index: 40;
}

/* 7) Responsive behavior */
.hide-on-mobile {
    display: none;
}

.sidebar-open .overlay {
    opacity: 1;
    visibility: visible;
}

.sidebar-open .sidebar {
    transform: translateX(0);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

@media (min-width: 1024px) {
    .hide-on-mobile {
        display: inline-flex;
    }

    .sidebar {
        transform: none;
    }

    .overlay {
        display: none;
    }

    .navbar {
        padding-left: calc(16px + var(--sidebar-width));
    }

    .content {
        padding-left: calc(16px + var(--sidebar-width));
    }

    .carousel__media img {
        height: 250px;
    }

    .game-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    /* Collapsed mode (desktop) */
    .sidebar-collapsed .sidebar {
        width: var(--sidebar-width-collapsed);
    }

    .sidebar-collapsed .navbar {
        padding-left: calc(16px + var(--sidebar-width-collapsed));
    }

    .sidebar-collapsed .content {
        padding-left: calc(16px + var(--sidebar-width-collapsed));
    }

    .sidebar-collapsed .brand-name {
        display: none;
    }

    .sidebar-collapsed .sidebar__footer {
        display: none;
    }

    .sidebar-collapsed .sidebar__nav {
        justify-items: center;
    }

    .sidebar-collapsed .nav-item {
        position: relative;
        width: 44px;
        height: 44px;
        padding: 0;
        text-indent: -9999px;
        border-radius: 50%;
    }

    .sidebar-collapsed .nav-item::before {
        content: attr(data-icon);
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        text-indent: 0;
        font-size: 18px;
    }
    .sidebar-collapsed .nav-label,
    .sidebar-collapsed .nav-badge {
        display: none;
    }
}

@media (min-width: 1400px) {
    .hero__title {
        font-size: 36px;
    }

    .game-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* 8) Focus visible defaults */
:focus-visible {
    outline: 2px solid rgba(192, 192, 192, 0.35);
    outline-offset: 2px;
}

/* Ensure any [hidden] elements are fully hidden */
[hidden] {
    display: none !important;
}

/* 9) Gold accent overrides */
.nav-link.is-active,
.nav-item.is-active {
    border-color: var(--accent-ring);
    background: linear-gradient(180deg, rgba(234, 181, 74, 0.10), rgba(184, 134, 11, 0.05));
    color: #ffffff;
}

:focus-visible {
    outline: 2px solid var(--accent-ring);
    outline-offset: 2px;
}

.carousel__btn {
    border-color: var(--accent-ring);
}

.carousel__btn:hover {
    background: rgba(234, 181, 74, 0.12);
    border-color: rgba(234, 181, 74, 0.5);
}

.providers .carousel__slide {
    border-color: rgba(234, 181, 74, 0.16);
}

.provider-logo:hover,
.provider-logo:focus-visible {
    border-color: var(--accent-ring);
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.25);
    filter: grayscale(0);
}

/* Jackpot section */
.jackpot {
    margin-top: 16px;
}

.jackpot__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 36px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(234, 181, 74, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.jackpot__info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.jackpot__icon {
    font-size: 18px;
}

.jackpot__label {
    color: #e5e7eb;
    font-size: 24px;
    letter-spacing: 0.3px;
    font-weight: bolder;
}

.jackpot__amount {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #f6e7a9, #e3c770, #caa64c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 18px rgba(234, 181, 74, 0.15);
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.jackpot__amount .sep {
    color: #e5e7eb;
    -webkit-text-fill-color: initial;
    color: #e5e7eb;
    text-shadow: none;
}

.jackpot__amount .currency {
    color: #e5e7eb;
    opacity: 0.85;
    margin-right: 4px;
}

.reel {
    position: relative;
    overflow: hidden;
    height: 1em;
    line-height: 1em;
    min-width: 0.62em;
}

.reel__strip {
    display: block;
    will-change: transform;
    transition: transform 600ms cubic-bezier(.2, .7, .2, 1);
}

.reel__digit {
    display: block;
    height: 1em;
    line-height: 1em;
}

.jackpot__amount .reel__digit {
    -webkit-text-fill-color: initial;
    color: #f6e7a9;
}

.jackpot__actions {
    display: inline-flex;
    justify-content: center;
}

.jackpot__cta {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .jackpot__box {
        text-align: center;
    }
}

/* Winners list */
.winners__table {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(234, 181, 74, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(234, 181, 74, 0.3) transparent;
}

.winners__table::-webkit-scrollbar {
    width: 6px;
}

.winners__table::-webkit-scrollbar-track {
    background: transparent;
}

.winners__table::-webkit-scrollbar-thumb {
    background: rgba(234, 181, 74, 0.3);
    border-radius: 3px;
}

.winners__table::-webkit-scrollbar-thumb:hover {
    background: rgba(234, 181, 74, 0.5);
}

.winners__head,
.winners__row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr 0.9fr;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.winners__head {
    background: linear-gradient(135deg, rgba(234, 181, 74, 0.15), rgba(184, 134, 11, 0.08));
    border: 1px solid rgba(234, 181, 74, 0.3);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.winners__head span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.winners__head span::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(234, 181, 74, 0.6);
    box-shadow: 0 0 6px rgba(234, 181, 74, 0.4);
}

.winners__row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(192, 192, 192, 0.1);
    position: relative;
    overflow: hidden;
}

.winners__row::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.2s ease;
}

.winners__row:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(234, 181, 74, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(234, 181, 74, 0.1);
}

.winners__row:hover::after {
    background: linear-gradient(180deg, #f6e7a9, #e3c770, #caa64c);
}

.winners__row:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.winners__row span {
    font-size: 14px;
    line-height: 1.4;
}

.winners__prize {
    color: #f6e7a9;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.3px;
    text-shadow: 0 0 10px rgba(246, 231, 169, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 640px) {
    .winners__table {
        padding: 12px;
        gap: 6px;
    }

    .winners__head,
    .winners__row {
        grid-template-columns: 1fr 1fr;
        padding: 12px;
        gap: 8px;
    }

    /* On mobile, show Player and Prize; hide Game and Time */
    .winners__head span:nth-child(2),
    .winners__head span:nth-child(4),
    .winners__row span:nth-child(2),
    .winners__row span:nth-child(4) {
        display: none;
    }

    .winners__head span,
    .winners__row span {
        font-size: 13px;
    }

    .winners__prize {
        font-size: 14px;
    }
}

.section__title {
    position: relative;
    padding-left: 10px;
}

.section__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 3px;
    border-radius: 3px;
    background: var(--gold-400);
}

/* 11) Sidebar icons preference: show only in collapsed mode */
.sidebar:not(.sidebar-collapsed) .sidebar__nav .nav-item::before {
    content: none;
    margin: 0;
}

/* Catalog (injected category pages) */
.catalog {
    padding: 18px 16px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.catalog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.catalog__title {
    margin: 0;
    font-size: 20px;
}

.catalog__actions {
    display: inline-flex;
    gap: 8px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

@media (min-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .catalog-grid {
        grid-template-columns: repeat(9, minmax(0, 1fr));
    }
}

.back-link {
    color: var(--silver-300);
}

.back-link:hover {
    color: #fff;
}

/* Promotions & Bonuses shared styles */
.promo-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 20px 0 24px;
    position: relative;
    margin-bottom: 8px;
}

.promo-hero::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    margin-top: 12px;
    background: linear-gradient(90deg, transparent, #e3c770, #caa64c, transparent);
    border-radius: 999px;
    opacity: 0.9;
}

.promo-hero__icon {
    font-size: 32px;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(234, 181, 74, 0.3));
    margin-bottom: 4px;
}

.promo-hero .catalog__title {
    font-size: 28px;
    margin: 0;
    font-weight: 800;
    letter-spacing: 0.3px;
}

@media (min-width: 768px) {
    .promo-hero .catalog__title {
        font-size: 34px;
    }
    
    .promo-hero__icon {
        font-size: 36px;
    }
}

.promo-hero__subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--silver-300);
    font-weight: 500;
}

.title-gradient {
    background: linear-gradient(90deg, #f6e7a9, #e3c770, #caa64c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.section-title {
    margin: 32px 0 12px 0;
    font-size: 20px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.2px;
    position: relative;
    padding-left: 12px;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #f6e7a9, #caa64c);
    border-radius: 2px;
}

.promo-section-title {
    margin-top: 40px;
    margin-bottom: 14px;
}

.catalog__desc {
    margin: 0 0 32px 0;
    color: var(--silver-300);
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 8px;
}

@media (min-width: 480px) {
    .promo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .promo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (min-width: 1024px) {
    .promo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

.promo-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(234, 181, 74, 0.18);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.promo-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(234, 181, 74, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.promo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(234, 181, 74, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.promo-card:hover {
    transform: translateY(-6px);
    border-color: rgba(234, 181, 74, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(234, 181, 74, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
}

.promo-card:hover::before {
    opacity: 1;
}

.promo-card:hover::after {
    opacity: 1;
}

.promo-card--featured {
    padding: 24px;
    border-color: rgba(234, 181, 74, 0.28);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.promo-card--featured:hover {
    border-color: rgba(234, 181, 74, 0.5);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(234, 181, 74, 0.2);
    transform: translateY(-8px);
}

.promo-card .icon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 8px rgba(234, 181, 74, 0.4));
    display: block;
}

.promo-card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

.promo-card__desc {
    margin: 8px 0 12px 0;
    color: var(--silver-300);
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.muted {
    color: var(--silver-300);
    font-size: 13px;
    margin-bottom: 16px;
    display: block;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(192, 192, 192, .25);
    color: #fff;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.badge--gold {
    background: linear-gradient(90deg, #e3c770, #caa64c);
    color: #131313;
    border-color: #d7bb67;
}

.badge--green {
    background: rgba(54, 211, 153, .15);
    border-color: rgba(54, 211, 153, .35);
    color: #b0f5d8;
}

.badge--blue {
    background: rgba(96, 165, 250, .15);
    border-color: rgba(96, 165, 250, .35);
    color: #cfe6ff;
}

.badge--gray {
    background: rgba(148, 163, 184, .12);
    border-color: rgba(148, 163, 184, .3);
    color: #dbe2ea;
}

.stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--silver-300);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(234, 181, 74, .18);
    border-radius: 8px;
    padding: 7px 12px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.stat:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(234, 181, 74, .3);
    transform: translateY(-1px);
}

.stat strong {
    color: #f6e7a9;
    font-weight: 700;
    letter-spacing: 0.1px;
}

.kpi {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.kpi h3 {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.progress {
    height: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(234, 181, 74, .2);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    margin-top: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #f6e7a9, #e3c770, #caa64c);
    border-radius: 999px;
    transition: width 0.6s ease;
    box-shadow: 0 0 8px rgba(234, 181, 74, 0.4);
    position: relative;
}

.progress__bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(234, 181, 74, 0.1);
}

.btn-sm {
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(192, 192, 192, .25);
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, .05);
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.2px;
    flex: 1;
    min-width: 120px;
    top: 1px;
}

.btn-sm:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(234, 181, 74, .35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    
}

.btn-sm--primary {
    background: linear-gradient(135deg, rgba(234, 181, 74, 0.28), rgba(184, 134, 11, 0.18));
    color: #f6e7a9;
    border-color: rgba(234, 181, 74, .45);
    box-shadow: 0 3px 10px rgba(234, 181, 74, 0.25);
}

.btn-sm--primary:hover {
    background: linear-gradient(135deg, rgba(234, 181, 74, 0.38), rgba(184, 134, 11, 0.28));
    border-color: rgba(234, 181, 74, .6);
    box-shadow: 0 6px 16px rgba(234, 181, 74, 0.35);
    transform: translateY(-3px);
}

.list,
.promo-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .list,
    .promo-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (min-width: 1200px) {
    .list,
    .promo-list {
        gap: 20px;
    }
}

.promo-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.promo-stats .stat {
    font-size: 13px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(234, 181, 74, 0.12), rgba(184, 134, 11, 0.06));
    border-color: rgba(234, 181, 74, 0.25);
}

.promo-stats .stat strong {
    font-size: 15px;
    color: #f6e7a9;
}

.terms {
    margin-top: 48px;
    padding: 20px;
    border-radius: 14px;
    font-size: 13px;
    color: var(--silver-300);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(234, 181, 74, 0.18);
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
    .catalog {
        padding: 16px 12px 32px;
    }
    
    .catalog__desc {
        font-size: 14px;
        margin-bottom: 24px;
        padding: 0 8px;
    }
    
    .promo-hero,
    .vip-hero {
        padding: 16px 0 20px;
    }
    
    .promo-hero__icon,
    .vip-hero__icon {
        font-size: 28px;
        margin-bottom: 6px;
    }
    
    .promo-hero .catalog__title,
    .vip-hero .catalog__title {
        font-size: 26px;
    }
    
    .promo-hero__subtitle,
    .vip-hero__subtitle {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 18px;
        margin: 32px 0 12px;
        padding-left: 10px;
    }
    
    .section-title::before {
        width: 3px;
        height: 18px;
    }
    
    .promo-section-title {
        margin-top: 36px;
    }
    
    .muted {
        font-size: 12px;
        margin-bottom: 14px;
    }
    
    .promo-grid {
        gap: 14px;
    }
    
    .promo-card {
        padding: 18px;
    }
    
    .promo-card--featured {
        padding: 20px;
    }
    
    .promo-card--vip-status {
        padding: 20px;
    }
    
    .promo-card .icon {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .promo-card--tier .icon {
        font-size: 32px;
    }
    
    .promo-card h3 {
        font-size: 15px;
    }
    
    .promo-card--tier h3 {
        font-size: 16px;
    }
    
    .promo-card__desc {
        font-size: 13px;
        margin: 10px 0 14px;
    }
    
    .stat {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .btn-sm {
        padding: 9px 16px;
        font-size: 12px;
        flex: 1;
        min-width: 100px;
    }
    
    .actions {
        gap: 8px;
        margin-top: 14px;
        padding-top: 14px;
    }
    
    .kpi {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .kpi h3 {
        font-size: 15px;
    }
    
    .stats {
        gap: 6px;
        margin: 10px 0;
    }
    
    .promo-stats {
        margin-bottom: 16px;
        gap: 10px;
    }
    
    .promo-stats .stat {
        font-size: 12px;
        padding: 7px 12px;
    }
    
    .promo-stats .stat strong {
        font-size: 14px;
    }
    
    .progress {
        height: 10px;
        margin-top: 10px;
    }
    
    .terms {
        padding: 16px;
        font-size: 12px;
        margin-top: 40px;
        text-align: left;
    }
    
    .promo-list {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .catalog {
        padding: 14px 10px 28px;
    }
    
    .promo-hero,
    .vip-hero {
        padding: 12px 0 16px;
    }
    
    .promo-hero__icon,
    .vip-hero__icon {
        font-size: 24px;
    }
    
    .promo-hero .catalog__title,
    .vip-hero .catalog__title {
        font-size: 22px;
    }
    
    .promo-hero__subtitle,
    .vip-hero__subtitle {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 16px;
        margin: 28px 0 10px;
    }
    
    .catalog__desc {
        font-size: 13px;
        padding: 0 4px;
    }
    
    .promo-grid {
        gap: 12px;
    }
    
    .promo-list {
        gap: 14px;
    }
    
    .promo-card {
        padding: 16px;
    }
    
    .promo-card--featured {
        padding: 18px;
    }
    
    .promo-card .icon {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .promo-card--tier .icon {
        font-size: 28px;
    }
    
    .promo-card h3 {
        font-size: 14px;
    }
    
    .promo-card--tier h3 {
        font-size: 16px;
    }
    
    .promo-card__desc {
        font-size: 12px;
        margin: 8px 0 12px;
    }
    
    .stat {
        font-size: 10px;
        padding: 5px 8px;
    }
    
    .badge {
        font-size: 9px;
        padding: 3px 7px;
    }
    
    .actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-sm {
        width: 100%;
        min-width: 100%;
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .kpi h3 {
        font-size: 14px;
    }
    
    .terms {
        padding: 14px;
        font-size: 11px;
        margin-top: 36px;
    }
}

/* Promotions & Bonuses shared styles */
.vip-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 20px 0 24px;
    position: relative;
    margin-bottom: 8px;
}

.vip-hero::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    margin-top: 12px;
    background: linear-gradient(90deg, transparent, #e3c770, #caa64c, transparent);
    border-radius: 999px;
    opacity: 0.9;
}

.vip-hero__icon {
    font-size: 36px;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(234, 181, 74, 0.4));
    margin-bottom: 4px;
}

.vip-hero .catalog__title {
    font-size: 28px;
    margin: 0;
    font-weight: 800;
    letter-spacing: 0.3px;
}

@media (min-width: 768px) {
    .vip-hero .catalog__title {
        font-size: 34px;
    }
    
    .vip-hero__icon {
        font-size: 40px;
    }
}

.vip-hero__subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--silver-300);
    font-weight: 500;
}

.badge--silver {
    background: linear-gradient(90deg, #d9d9d9, #a8a8a8);
    color: #0b0f14;
    border-color: rgba(255, 255, 255, .35);
    font-weight: 700;
}

/* VIP-specific card styles */
.promo-card--vip-status {
    background: linear-gradient(135deg, rgba(234, 181, 74, 0.08), rgba(255, 255, 255, 0.03));
    border-color: rgba(234, 181, 74, 0.3);
    box-shadow: 0 6px 20px rgba(234, 181, 74, 0.15);
}

.promo-card--vip-status:hover {
    border-color: rgba(234, 181, 74, 0.45);
    box-shadow: 0 12px 32px rgba(234, 181, 74, 0.25);
}

.promo-card--tier {
    position: relative;
    overflow: hidden;
}

.promo-card--tier::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(234, 181, 74, 0.6), rgba(234, 181, 74, 0.3));
    opacity: 0.8;
}

.promo-card--tier:hover::before {
    opacity: 1;
    height: 5px;
}

.promo-card--tier .icon {
    font-size: 36px;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 8px rgba(234, 181, 74, 0.5));
}

.promo-card--tier h3 {
    font-size: 18px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #f6e7a9, #e3c770);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Quick categories (below providers) */
.quick-cats {
    margin-top: 16px;
}

.quick-cats__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 768px) {
    .quick-cats__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .quick-cats__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Make quick categories scrollable horizontally on mobile */
@media (max-width: 767px) {
    .quick-cats__grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        padding: 4px 4px 8px;
        scrollbar-width: thin;
        scrollbar-color: rgba(192, 192, 192, 0.3) transparent;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }
    
    .quick-cats__grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .quick-cats__grid::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .quick-cats__grid::-webkit-scrollbar-thumb {
        background: rgba(192, 192, 192, 0.3);
        border-radius: 3px;
    }
    
    .quick-cats__grid::-webkit-scrollbar-thumb:hover {
        background: rgba(192, 192, 192, 0.5);
    }
    
    .quick-cat {
        flex: 0 0 auto;
        white-space: nowrap;
        min-width: fit-content;
    }
}

.quick-cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 999px;
    border: 1px solid rgba(234, 181, 74, 0.25);
    background: rgba(255, 255, 255, 0.03);
    color: #e5e7eb;
    cursor: pointer;
    transition: background 160ms ease, border 160ms ease, transform 120ms ease, box-shadow 160ms ease, color 160ms ease;
    text-decoration: none;
    gap: 8px;
    font-weight: 600;
}

.quick-cat:hover {
    background: rgba(234, 181, 74, 0.10);
    border-color: rgba(234, 181, 74, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(184, 134, 11, 0.15);
}

.quick-cat__icon {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(234, 181, 74, 0.25);
    background: radial-gradient(ellipse at top, rgba(234, 181, 74, 0.35), rgba(234, 181, 74, 0.12));
    color: #f6e7a9;
    flex-shrink: 0;
}
.quick-cat__icon svg {
    width: 16px;
    height: 16px;
    stroke: #f6e7a9;
}

/* Footer */
.site-footer {
    margin-top: 48px;
    border-top: 1px solid rgba(234, 181, 74, 0.2);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95), #000000);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(234, 181, 74, 0.4), transparent);
}

.site-footer__grid {
    display: grid;
    gap: 24px;
    padding: 32px 16px;
    grid-template-columns: 1fr;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (min-width: 1024px) {
    .site-footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        padding-left: calc(16px + var(--sidebar-width));
        padding-right: calc(16px + var(--sidebar-width));
        gap: 60px;
    }
}

/* Center footer layout on small screens */
@media (max-width: 640px) {
    .site-footer { text-align: center; }
    .site-footer__grid { justify-items: center; }
    .site-footer__brand { align-items: center; }
    .site-footer__logo { margin-left: auto; margin-right: auto; }
    .site-footer__desc { text-align: center; }
    .site-footer__social { justify-content: center; }
    .site-footer__heading { text-align: center; }
    .site-footer__heading::after { left: 50%; transform: translateX(-50%); }
    .site-footer__list { justify-items: center; }
    .footer-logos { justify-content: center; }
    .site-footer__legal { justify-content: center; }
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer__logo {
    height: 160px;
    width: 50%;
    margin-bottom: 8px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.site-footer__logo:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 6px 16px rgba(234, 181, 74, 0.3));
}

.site-footer__desc {
    margin: 0;
    color: var(--silver-300);
    font-size: 13px;
    line-height: 1.6;
    max-width: 300px;
}

.site-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(234, 181, 74, 0.2);
    color: var(--silver-300);
    transition: all 0.2s ease;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    background: linear-gradient(135deg, rgba(234, 181, 74, 0.15), rgba(184, 134, 11, 0.08));
    border-color: rgba(234, 181, 74, 0.4);
    color: #f6e7a9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 181, 74, 0.2);
}

.site-footer__title {
    margin: 0 0 6px 0;
    font-size: 18px;
}

.site-footer__heading {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 8px;
}

.site-footer__heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, rgba(234, 181, 74, 0.8), transparent);
    border-radius: 2px;
}

.site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.site-footer__link {
    color: var(--silver-300);
    font-size: 13px;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.site-footer__link::before {
    content: "→";
    position: absolute;
    left: -16px;
    opacity: 0;
    transition: all 0.2s ease;
    color: rgba(234, 181, 74, 0.8);
}

.site-footer__link:hover {
    color: #f6e7a9;
    padding-left: 16px;
    transform: translateX(4px);
}

.site-footer__link:hover::before {
    opacity: 1;
    left: 0;
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.logo-img {
    height: 64px;
    width: auto;
    border: 1px solid rgba(234, 181, 74, 0.2);
    border-radius: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.logo-img:hover {
    border-color: rgba(234, 181, 74, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(234, 181, 74, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.site-footer__notice {
    margin: 12px 0 0 0;
    color: var(--silver-300);
    font-size: 11px;
    line-height: 1.5;
    font-style: italic;
}

.footer-providers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    text-align: center;
}

.footer-provider-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(192, 192, 192, 0.18);
    padding: 6px 8px;
}

.pay-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.pay-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 50px;
    border-radius: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.pay-logo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(234, 181, 74, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pay-logo:hover {
    border-color: rgba(234, 181, 74, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(234, 181, 74, 0.2);
}

.pay-logo:hover::before {
    opacity: 1;
}

.pay-logo svg {
    width: 56px;
    height: 20px;
    display: block;
    position: relative;
    z-index: 1;
}

.pay-logo img {
    width: 110px;
    height: 58px;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.pay-logo:hover img {
    transform: scale(1.05);
}

.pay-logo--gcash svg { stroke: #60a5fa; fill: none; }
.pay-logo--maya svg { stroke: #10b981; fill: none; }
.pay-logo--bank svg { stroke: #e5e7eb; fill: none; }
.pay-logo--crypto svg { stroke: #f59e0b; fill: none; }

.site-footer__bottom {
    border-top: 1px solid rgba(234, 181, 74, 0.15);
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

.site-footer__bottom::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(234, 181, 74, 0.3), transparent);
}

.site-footer__bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--silver-300);
    font-size: 12px;
    text-align: center;
}

@media (min-width: 768px) {
    .site-footer__bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .site-footer__bottom {
        padding-left: calc(16px + var(--sidebar-width));
        padding-right: calc(16px + var(--sidebar-width));
    }
}

.site-footer__legal {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.site-footer__legal-link {
    color: var(--silver-300);
    font-size: 12px;
    transition: color 0.2s ease;
    text-decoration: none;
}

.site-footer__legal-link:hover {
    color: #f6e7a9;
    text-decoration: underline;
}

.site-footer__separator {
    color: rgba(192, 192, 192, 0.3);
    font-size: 12px;
}

/* Auth Modals */
.modal {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal.is-open {
    display: block;
}

.modal__overlay {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    width: 100%;
    height: 100%;
}

.modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #0b0b0b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    width: min(92vw, 420px);
    max-width: calc(100vw - 16px);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    margin: 0;
}

@media (max-width: 480px) {
    .modal__dialog {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        padding: 16px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

.modal__title {
    margin: 0 0 12px;
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--gold-400, #f6e7a9), var(--gold-600, #e2b857));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: 0;
    color: #e5e7eb;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.form .field {
    margin-bottom: 12px;
}

.form label {
    display: block;
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 6px;
    font-weight: 500;
}

.security-desc {
    margin: 0 0 16px 0;
    color: var(--silver-300);
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(234, 181, 74, 0.15);
    border-radius: 8px;
}

.form input[type="email"],
.form input[type="password"],
.form input[type="text"],
.form input[type="tel"],
.form input[type="date"],
.form input[type="file"],
.form select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #000;
    color: #e5e7eb;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form input[type="file"] {
    padding: 8px;
    cursor: pointer;
}

.form input[type="file"]::file-selector-button {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(234, 181, 74, 0.3);
    background: rgba(234, 181, 74, 0.1);
    color: #f6e7a9;
    cursor: pointer;
    margin-right: 10px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.form input[type="file"]::file-selector-button:hover {
    background: rgba(234, 181, 74, 0.2);
    border-color: rgba(234, 181, 74, 0.5);
}

.form select {
    cursor: pointer;
    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='%23e5e7eb' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form select option {
    background: #000;
    color: #e5e7eb;
}

.form input:focus,
.form select:focus {
    border-color: var(--accent-ring, #e2b857);
    box-shadow: 0 0 0 3px rgba(226, 184, 87, 0.25);
}

.form .actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    gap: 8px;
    justify-content: flex-end;
}

/* User menu (navbar) */
.user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-bottom: 8px;
    z-index: 999999 !important;
    isolation: isolate;
}

.user-menu__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(192, 192, 192, 0.25);
    background: rgba(255, 255, 255, 0.02);
    color: #e5e7eb;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
}

.user-menu__trigger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-menu .avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6e7a9, #caa64c);
    color: #0b0f14;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .3px;
}

.user-menu .chevron {
    width: 16px;
    height: 16px;
    color: #cbd5e1;
    transition: transform 160ms ease;
}

.user-menu[data-open="true"] .chevron {
    transform: rotate(180deg);
}

.user-menu__dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 220px;
    max-width: calc(100vw - 16px);
    background: #0b0b0b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    padding: 8px;
    display: none;
    z-index: 9999999 !important;
    pointer-events: auto;
    -webkit-overflow-scrolling: touch;
    isolation: isolate;
}

/* Desktop: show on hover */
.user-menu:hover .user-menu__dropdown {
    display: block;
    z-index: 9999999 !important;
}

/* Show when data-open is true (for both desktop and mobile) */
.user-menu[data-open="true"] .user-menu__dropdown {
    display: block !important;
    z-index: 9999999 !important;
}

@media (max-width: 1024px) {
    .user-menu {
        position: relative;
        z-index: 999999 !important;
        isolation: isolate;
    }
    
    .user-menu__dropdown {
        z-index: 9999999 !important;
        isolation: isolate;
        position: fixed !important;
        min-width: 200px;
        padding: 6px;
    }
    
    .user-menu__item {
        font-size: 13px;
        padding: 7px 10px;
        gap: 7px;
    }
    
    .user-menu__item .um-icon {
        width: 16px;
        height: 16px;
    }
    
    .user-menu__item .um-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .user-menu__header {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    /* Ensure dropdown is positioned correctly on medium screens */
    .user-menu[data-open="true"] .user-menu__dropdown {
        display: block !important;
        z-index: 9999999 !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        overflow: visible !important;
    }
    
    .nav-right {
        overflow: visible !important;
    }
    
    .auth--user {
        overflow: visible !important;
    }
    
    .user-menu {
        position: relative;
        z-index: 999999 !important;
        isolation: isolate;
        overflow: visible !important;
    }
    
    .user-menu__dropdown {
        position: fixed !important;
        min-width: 180px;
        max-width: calc(100vw - 32px);
        z-index: 9999999 !important;
        isolation: isolate;
        overflow: visible !important;
        padding: 6px;
        /* Position will be set by JavaScript */
    }
    
    /* Disable hover on mobile */
    .user-menu:hover .user-menu__dropdown {
        display: none;
    }
    
    .user-menu[data-open="true"] .user-menu__dropdown {
        display: block !important;
        z-index: 9999999 !important;
        position: fixed !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Ensure dropdown works on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
    .user-menu {
        z-index: 999999 !important;
        isolation: isolate;
    }
    
    .user-menu:hover .user-menu__dropdown {
        display: none !important;
    }
    
    .user-menu[data-open="true"] .user-menu__dropdown {
        display: block !important;
        z-index: 9999999 !important;
        position: fixed !important;
        isolation: isolate;
    }
    
    .user-menu__trigger {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    }
}

/* Mobile touch targets */
@media (max-width: 768px) {
    .user-menu__item {
        pointer-events: auto;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        min-height: 44px;
    }
    
    .user-menu__item .um-icon {
        width: 16px;
        height: 16px;
    }
    
    .user-menu__item .um-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .user-menu__item {
        font-size: 13px;
        padding: 8px 10px;
        gap: 6px;
    }
    
    .user-menu__header {
        font-size: 11px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .user-menu__item {
        padding: 8px 10px;
        font-size: 12px;
        gap: 6px;
        min-height: 40px;
    }
    
    .user-menu__item .um-icon {
        width: 14px;
        height: 14px;
    }
    
    .user-menu__item .um-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .user-menu__header {
        font-size: 10px;
        padding: 6px 8px;
    }
}

.user-menu__header {
    padding: 8px 10px;
    font-size: 12px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 6px;
}

.user-menu__item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    color: #e5e7eb;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.user-menu__item:hover,
.user-menu__item:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
}

.user-menu__signout {
    color: #fca5a5;
}

.user-menu__item .um-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.user-menu__item .um-icon svg {
    width: 18px;
    height: 18px;
}

.user-menu__signout .um-icon {
    color: #fca5a5;
}

/* Balance pill (navbar) */
.balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(192, 192, 192, 0.22);
}

.balance__amount {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    color: #f6e7a9;
    font-weight: 700;
    letter-spacing: .2px;
}

.balance__refresh {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid rgba(192, 192, 192, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
    cursor: pointer;
    transition: transform 120ms ease, background 160ms ease, border 160ms ease;
}

.balance__refresh:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.balance__refresh svg {
    width: 16px;
    height: 16px;
}

.balance__refresh.is-spinning svg {
    animation: spin .6s linear;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Increase spacing for logged-in actions in navbar */
.auth--user {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Navbar responsive styles */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 12px;
        gap: 8px;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .nav-left {
        flex-shrink: 0;
    }

    .nav-right {
        flex: 1;
        min-width: 0;
        justify-content: flex-end;
    }

    .nav-left,
    .nav-right {
        gap: 8px;
    }

    .auth--user {
        gap: 8px;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }

    .balance-pill {
        padding: 5px 8px;
    }

    .balance__amount {
        font-size: 13px;
    }

    .balance__refresh {
        width: 24px;
        height: 24px;
    }

    .balance__refresh svg {
        width: 14px;
        height: 14px;
    }

    .btn {
        padding: 7px 12px;
        font-size: 13px;
    }

    .btn .icon {
        width: 14px;
        height: 14px;
    }

    .user-menu__trigger {
        padding: 5px 8px;
        gap: 6px;
    }

    .user-menu .avatar {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .user-name {
        font-size: 13px;
    }

    .user-menu .chevron {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 8px 10px;
        gap: 6px;
        flex-wrap: nowrap;
        overflow: visible !important;
    }

    .nav-left {
        flex: 0 0 auto;
        flex-shrink: 0;
    }

    .nav-right {
        flex: 1 1 auto;
        justify-content: flex-end;
        min-width: 0;
        overflow: visible !important;
    }

    .auth--user {
        gap: 6px;
        width: 100%;
        justify-content: flex-end;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        overflow: visible !important;
    }

    .balance-pill {
        flex: 0 0 auto;
    }

    .user-menu {
        flex: 0 0 auto;
    }

    .btn {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .btn .icon {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    /* Keep text visible for deposit/withdraw buttons */
    #navDepositBtn,
    #navWithdrawBtn {
        font-size: 12px;
    }

    .user-menu__trigger {
        padding: 6px 10px;
        gap: 6px;
        min-height: 36px;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    }

    .user-menu .avatar {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .user-name {
        font-size: 13px;
        display: inline;
    }

    .user-menu .chevron {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 8px;
        gap: 4px;
        flex-wrap: nowrap;
        overflow: visible !important;
    }

    .nav-left,
    .nav-right {
        gap: 4px;
    }

    .nav-right {
        flex: 1;
        min-width: 0;
        overflow: visible !important;
    }

    .auth--user {
        gap: 4px;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        overflow: visible !important;
        width: 100%;
        justify-content: flex-end;
    }
    
    .user-menu {
        overflow: visible !important;
    }
    
    .user-menu__dropdown {
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 160px;
        max-width: calc(100vw - 24px);
        padding: 4px;
    }
    
    .user-menu[data-open="true"] .user-menu__dropdown {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 9999999 !important;
        position: fixed !important;
    }

    .balance-pill {
        padding: 4px 6px;
        flex: 0 0 auto;
    }

    .balance__amount {
        font-size: 12px;
    }

    .balance__refresh {
        width: 22px;
        height: 22px;
    }

    .btn {
        padding: 5px 8px;
        font-size: 11px;
        min-width: auto;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* Smaller buttons on very small screens */
    #navDepositBtn,
    #navWithdrawBtn {
        padding: 5px 3px;
        font-size: 11px;
    }

    #navDepositBtn .icon,
    #navWithdrawBtn .icon {
        width: 14px;
        height: 14px;
        margin-right: 4px;
    }

    .user-menu {
        flex: 0 0 auto;
        position: relative;
        z-index: 999999 !important;
        padding-bottom: 0;
        isolation: isolate;
    }

    .user-menu__trigger {
        padding: 6px;
        min-width: 36px;
        width: 36px;
        height: 36px;
        justify-content: center;
        gap: 0;
        position: relative;
        z-index: 999999 !important;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        touch-action: manipulation;
    }

    .user-menu .chevron {
        display: none;
    }

    /* Hide username text, show only avatar icon on mobile */
    .user-menu__trigger .user-name {
        display: none;
    }

    .user-menu .avatar {
        width: 24px;
        height: 24px;
        font-size: 11px;
        margin: 0;
    }

    /* Guest auth buttons */
    .auth--guest {
        gap: 6px;
    }

    .auth--guest .btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Tablet adjustments */
@media (min-width: 601px) and (max-width: 768px) {
    .navbar {
        padding: 10px 14px;
    }

    .auth--user {
        gap: 10px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Account Center modal */
.modal--xl .modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(96vw, 1200px);
    max-width: 96vw;
    height: 88vh;
    max-height: 88vh;
    overflow: hidden;
    margin: 0;
}

.account-center {
    display: block;
    padding: 0;
    background: #0b0b0b;
    border: 1px solid rgba(192, 192, 192, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.pc {
    display: grid;
    grid-template-columns: 200px 1fr;
    height: 100%;
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
}

.pc__sidebar {
    background: #000000;
    border-right: 1px solid rgba(192, 192, 192, 0.12);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(234, 181, 74, 0.3) transparent;
}

.pc__sidebar::-webkit-scrollbar {
    width: 6px;
}

.pc__sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.pc__sidebar::-webkit-scrollbar-thumb {
    background: rgba(234, 181, 74, 0.3);
    border-radius: 3px;
}

.pc__sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(234, 181, 74, 0.5);
}

.pc__title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.2px;
}

.pc__nav {
    display: grid;
    gap: 2px;
    flex: 1;
}

.pc__item {
    text-align: left;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(192, 192, 192, 0.15);
    background: rgba(255, 255, 255, 0.02);
    color: #e5e7eb;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .2s ease;
    min-height: 32px;
    font-size: 12px;
    font-weight: 500;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
}

.pc__item .pc__icon {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 999px;
    background: radial-gradient(ellipse at top, rgba(234, 181, 74, 0.35), rgba(234, 181, 74, 0.12));
    border: 1px solid rgba(234, 181, 74, 0.25);
    color: #f6e7a9;
    flex-shrink: 0;
}

.pc__item .pc__icon svg {
    width: 12px;
    height: 12px;
    stroke: #f5d36b;
    stroke-width: 1.8;
    fill: none;
}

.pc__item.is-active {
    border-color: rgba(234, 181, 74, 0.4);
    background: linear-gradient(180deg, rgba(234, 181, 74, 0.12), rgba(234, 181, 74, 0.04));
    color: #ffffff;
    box-shadow: inset 0 0 0 2px rgba(234, 181, 74, 0.2);
    font-weight: 600;
}

.pc__item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(234, 181, 74, 0.25);
    transform: translateX(2px);
}

.pc__item:active {
    transform: translateX(2px) translateY(1px);
}

.pc__main {
    padding: 18px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(234, 181, 74, 0.3) transparent;
}

.pc__main::-webkit-scrollbar {
    width: 6px;
}

.pc__main::-webkit-scrollbar-track {
    background: transparent;
}

.pc__main::-webkit-scrollbar-thumb {
    background: rgba(234, 181, 74, 0.3);
    border-radius: 3px;
}

.pc__main::-webkit-scrollbar-thumb:hover {
    background: rgba(234, 181, 74, 0.5);
}

.pc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(234, 181, 74, 0.18);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.avatar--lg {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6e7a9, #caa64c);
    color: #0b0f14;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(234, 181, 74, 0.3);
}

.pc-header__left {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.pc-user__name {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2px;
}

.pc-user__username {
    font-size: 13px;
    color: var(--silver-300);
    margin-top: 2px;
}

.pc-user__meta {
    margin-top: 6px;
}

.pc-balance {
    text-align: right;
    flex-shrink: 0;
}

.pc-balance__label {
    font-size: 12px;
    color: var(--silver-300);
    margin-bottom: 4px;
    display: block;
}

.pc-balance__value {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(90deg, #f6e7a9, #e3c770, #caa64c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.pc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pc-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(192, 192, 192, 0.16);
    border-radius: 14px;
    padding: 18px;
    transition: all .25s ease;
}

.pc-card__title {
    margin: 0 0 12px;
    font-size: 15px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.pc-card:hover {
    border-color: rgba(234, 181, 74, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.pc-security {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pc-security__ring {
    display: grid;
    place-items: center;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: radial-gradient(circle at 50% 50%, rgba(255, 127, 127, 0.18), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 127, 127, 0.28);
    color: #ff8a8a;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
    position: relative;
}

.pc-security__ring::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(#ef4444 0 33%, #fbbf24 33% 66%, #22c55e 66% 100%);
    -webkit-mask: radial-gradient(circle at 50% 50%, transparent 58%, black 60%);
            mask: radial-gradient(circle at 50% 50%, transparent 58%, black 60%);
    opacity: .25;
    pointer-events: none;
}

.pc-security__text {
    font-size: 12px;
    color: var(--silver-300);
}

.pc-security__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.pc-security__list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(192, 192, 192, 0.12);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
}

.pc-security__list li::before {
    content: \"\";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #fbbf24;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.25);
    flex-shrink: 0;
}

.pc-security__list li.ok::before {
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.pc-security__list li.warn::before {
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

.pc-security__list li span {
    flex: 1;
    font-size: 13px;
    color: #e5e7eb;
}

.pc-security__list li .security-arrow {
    width: 16px;
    height: 16px;
    color: rgba(192, 192, 192, 0.4);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pc-security__list li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(234, 181, 74, 0.25);
    transform: translateX(2px);
}

.pc-security__list li:hover .security-arrow {
    color: rgba(234, 181, 74, 0.8);
    transform: translateX(2px);
}

.pc-security__list li:active {
    transform: translateX(2px) translateY(1px);
    background: rgba(255, 255, 255, 0.06);
}

.pc-security__list li:focus-visible {
    outline: 2px solid rgba(234, 181, 74, 0.5);
    outline-offset: 2px;
}

.pc-list {
    display: grid;
    gap: 6px;
}

.pc-list__item {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(192, 192, 192, 0.12);
}

/* Personal Center - Mobile Navigation */
.pc__mobile-nav {
    display: none;
}

/* Medium-large screens (900px - 1024px) - Slightly reduced sidebar */
@media (max-width: 1024px) and (min-width: 901px) {
    .modal--xl .modal__dialog {
        width: min(96vw, 1100px);
        max-width: 96vw;
        height: 88vh;
        max-height: 88vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }

    .pc {
        grid-template-columns: 180px 1fr;
    }

    .pc__sidebar {
        padding: 12px 8px;
    }
    
    .pc__main {
        padding: 16px;
    }
    
    .pc__item {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .pc__item .pc__icon {
        width: 20px;
        height: 20px;
    }
}

/* Medium screens (769px - 900px) - Transitional layout with reduced sidebar */
@media (max-width: 900px) and (min-width: 769px) {
    .modal--xl .modal__dialog {
        width: min(95vw, 1000px);
        max-width: 95vw;
        height: 90vh;
        max-height: 90vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }

    .account-center {
        height: 100%;
        width: 100%;
    }

    .pc {
        grid-template-columns: 160px 1fr;
    }

    .pc__sidebar {
        padding: 12px 8px;
    }

    .pc__title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .pc__item {
        padding: 4px 8px;
        font-size: 12px;
        min-height: 32px;
    }

    .pc__item .pc__icon {
        width: 20px;
        height: 20px;
    }
    
    .pc__item .pc__icon svg {
        width: 12px;
        height: 12px;
    }

    .pc__main {
        padding: 16px;
    }

    .pc-header {
        padding: 14px;
        flex-wrap: wrap;
    }
    
    .avatar--lg {
        width: 56px;
        height: 56px;
        font-size: 18px;
    }
    
    .pc-balance__value {
        font-size: 24px;
    }

    .pc-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pc-security {
        grid-template-columns: 1fr;
    }

    .pay-methods {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Small-medium screens (600px - 768px) */
@media (max-width: 768px) and (min-width: 601px) {
    .modal--xl .modal__dialog {
        width: 96vw;
        max-width: 96vw;
        height: 92vh;
        max-height: 92vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        border-radius: 12px;
    }

    .account-center {
        border-radius: 12px;
        height: 100%;
        width: 100%;
    }

    .pc {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .pc__sidebar {
        display: none;
    }

    .pc__mobile-nav {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.02);
        border-bottom: 1px solid rgba(192, 192, 192, 0.12);
        scrollbar-width: thin;
        scrollbar-color: rgba(234, 181, 74, 0.3) transparent;
        -webkit-overflow-scrolling: touch;
    }

    .pc__mobile-nav::-webkit-scrollbar {
        height: 4px;
    }

    .pc__mobile-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .pc__mobile-nav::-webkit-scrollbar-thumb {
        background: rgba(234, 181, 74, 0.3);
        border-radius: 2px;
    }

    .pc__mobile-item {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        border-radius: 10px;
        border: 1px solid rgba(192, 192, 192, 0.15);
        background: rgba(255, 255, 255, 0.02);
        color: #e5e7eb;
        white-space: nowrap;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        min-height: 44px;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        touch-action: manipulation;
    }

    .pc__mobile-item .pc__icon {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    .pc__mobile-item .pc__icon svg {
        width: 16px;
        height: 16px;
    }

    .pc__mobile-item.is-active {
        border-color: rgba(234, 181, 74, 0.4);
        background: linear-gradient(180deg, rgba(234, 181, 74, 0.12), rgba(234, 181, 74, 0.04));
        color: #ffffff;
        font-weight: 600;
    }

    .pc__main {
        flex: 1;
        overflow-y: auto;
        padding: 16px;
    }

    .pc-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 14px;
    }

    .pc-header__left {
        flex: 1;
        min-width: 0;
    }

    .pc-header__right {
        flex-shrink: 0;
    }
    
    .avatar--lg {
        width: 52px;
        height: 52px;
        font-size: 17px;
    }

    .pc-balance {
        text-align: right;
    }

    .pc-balance__value {
        font-size: 24px;
    }

    .pc-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pc-card {
        padding: 16px;
    }

    .pc-security {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .pc-security__ring {
        width: 110px;
        height: 110px;
        font-size: 22px;
    }

    .pc-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .pc-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    .pc-tabs .tab {
        padding: 8px 10px;
        font-size: 12px;
        min-height: 40px;
    }

    .pc-range {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .pc-range .date-field {
        flex: 1;
        min-width: 140px;
    }

    .pc-actions {
        margin-left: auto;
    }

    .pc-actions .btn {
        min-width: 120px;
        padding: 10px 16px;
    }

    .pc-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ac-table {
        min-width: 650px;
        font-size: 13px;
    }

    .pay-methods {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .reward-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* Small screens (below 600px) - Full mobile experience */
@media (max-width: 600px) {
    /* Modal adjustments for mobile */
    .modal--xl .modal__dialog {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        margin: 0;
        border-radius: 0;
        position: absolute;
    }

    .account-center {
        border-radius: 0;
        height: 100vh;
        width: 100%;
    }

    .pc {
        grid-template-columns: 1fr;
        height: 100%;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Hide desktop sidebar */
    .pc__sidebar {
        display: none;
    }

    /* Show mobile navigation */
    .pc__mobile-nav {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 12px 14px;
        background: rgba(255, 255, 255, 0.02);
        border-bottom: 1px solid rgba(192, 192, 192, 0.12);
        scrollbar-width: thin;
        scrollbar-color: rgba(234, 181, 74, 0.3) transparent;
        -webkit-overflow-scrolling: touch;
    }

    .pc__mobile-nav::-webkit-scrollbar {
        height: 4px;
    }

    .pc__mobile-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .pc__mobile-nav::-webkit-scrollbar-thumb {
        background: rgba(234, 181, 74, 0.3);
        border-radius: 2px;
    }

    .pc__mobile-item {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 14px;
        border-radius: 10px;
        border: 1px solid rgba(192, 192, 192, 0.15);
        background: rgba(255, 255, 255, 0.02);
        color: #e5e7eb;
        white-space: nowrap;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        min-height: 44px;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        touch-action: manipulation;
    }

    .pc__mobile-item .pc__icon {
        width: 26px;
        height: 26px;
        flex-shrink: 0;
    }

    .pc__mobile-item .pc__icon svg {
        width: 14px;
        height: 14px;
    }

    .pc__mobile-item.is-active {
        border-color: rgba(234, 181, 74, 0.4);
        background: linear-gradient(180deg, rgba(234, 181, 74, 0.12), rgba(234, 181, 74, 0.04));
        color: #ffffff;
        font-weight: 600;
    }

    .pc__main {
        flex: 1;
        overflow-y: auto;
        padding: 14px;
    }

    /* Header adjustments */
    .pc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
    }

    .pc-header__left {
        width: 100%;
    }

    .pc-header__right {
        width: 100%;
    }
    
    .avatar--lg {
        width: 52px;
        height: 52px;
        font-size: 17px;
    }

    .pc-balance {
        text-align: left;
        width: 100%;
    }

    .pc-balance__value {
        font-size: 24px;
    }

    /* Grid adjustments */
    .pc-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pc-security {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pc-security__ring {
        width: 100px;
        height: 100px;
        font-size: 20px;
        margin: 0 auto 10px;
    }

    /* Toolbar adjustments */
    .pc-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .pc-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .pc-tabs .tab {
        padding: 10px 12px;
        font-size: 12px;
        text-align: center;
        min-height: 44px;
    }

    .pc-range {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
    }

    .pc-range .date-field {
        width: 100%;
    }

    .pc-range input[type="date"] {
        width: 100%;
        min-width: auto;
        padding: 10px 12px;
        font-size: 14px;
    }

    .pc-actions {
        margin-left: 0;
        width: 100%;
    }

    .pc-actions .btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px;
    }

    /* Table adjustments */
    .pc-table-wrap {
        margin: 0 -14px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ac-table {
        min-width: 550px;
        font-size: 12px;
    }

    .ac-table thead th,
    .ac-table tbody td {
        padding: 10px 8px;
        min-height: 44px;
    }

    /* Payment methods */
    .pay-methods {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .pay-card {
        padding: 14px;
        min-height: 100px;
    }

    .pay-card .pay-logo {
        font-size: 20px;
    }

    /* Amount chips */
    .amount-chips {
        grid-template-columns: repeat(3, 1fr);
        display: grid;
        gap: 8px;
    }

    .chip {
        text-align: center;
        padding: 12px 8px;
        font-size: 13px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Reward grid */
    .reward-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Reference card */
    .ref-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .ref-card .btn {
        width: 100%;
        min-height: 44px;
    }

    .pc-card {
        padding: 16px;
    }

    .pc-card__title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .amount-input {
        padding: 12px 14px;
    }
    
    .amount-input input {
        font-size: 16px;
        padding: 0;
    }
}

/* Extra small mobile devices (below 480px) */
@media (max-width: 480px) {
    .pc__main {
        padding: 12px;
    }

    .pc-header {
        padding: 12px;
        gap: 10px;
    }
    
    .avatar--lg {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
    
    .pc-user__name {
        font-size: 15px;
    }
    
    .pc-user__username {
        font-size: 12px;
    }

    .pc-card {
        padding: 14px;
    }

    .pc-card__title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .pc-balance__value {
        font-size: 22px;
    }

    .pc__mobile-nav {
        padding: 10px 12px;
        gap: 6px;
    }

    .pc__mobile-item {
        padding: 9px 12px;
        font-size: 11px;
        min-height: 42px;
    }

    .pc__mobile-item .pc__icon {
        width: 24px;
        height: 24px;
    }

    .pc__mobile-item .pc__icon svg {
        width: 13px;
        height: 13px;
    }

    .pc-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .pc-tabs .tab {
        font-size: 11px;
        padding: 10px 8px;
        min-height: 42px;
    }

    .amount-chips {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .chip {
        padding: 11px 8px;
        font-size: 12px;
        min-height: 42px;
    }

    .pc-table-wrap {
        margin: 0 -12px;
    }

    .ac-table {
        min-width: 500px;
        font-size: 11px;
    }

    .ac-table thead th,
    .ac-table tbody td {
        padding: 9px 6px;
        min-height: 42px;
    }
    
    .pay-methods {
        gap: 8px;
    }
    
    .pay-card {
        padding: 12px;
        min-height: 90px;
    }
    
    .amount-input {
        padding: 10px 12px;
    }
    
    .amount-input input {
        font-size: 15px;
    }
    
    .pc-actions .btn {
        padding: 11px 14px;
        font-size: 13px;
        min-height: 42px;
    }
}

/* Winners - enhanced visuals */
.winners .section__head {
    margin-bottom: 12px;
}

.winners__row span:nth-child(1) {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #e5e7eb;
}

.winners__row span:nth-child(1)::before {
    content: "";
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(234, 181, 74, 0.2), rgba(184, 134, 11, 0.1));
    border: 2px solid rgba(234, 181, 74, 0.3);
    box-shadow: 0 0 12px rgba(234, 181, 74, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    position: relative;
}


.winners__row span:nth-child(2) {
    justify-self: start;
    padding: 6px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(234, 181, 74, 0.12), rgba(184, 134, 11, 0.06));
    border: 1px solid rgba(234, 181, 74, 0.25);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f6e7a9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.winners__row span:nth-child(2)::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(234, 181, 74, 0.8);
    box-shadow: 0 0 6px rgba(234, 181, 74, 0.6);
    flex-shrink: 0;
}

.winners__row span:nth-child(4) {
    color: var(--silver-300);
    font-size: 13px;
    font-weight: 500;
}

.winners__prize {
    color: #f6e7a9;
    font-weight: 800;
    letter-spacing: 0.3px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 0 12px rgba(246, 231, 169, 0.4);
}

.winners__prize::before {
    content: "🏆";
    font-size: 16px;
    filter: drop-shadow(0 0 4px rgba(246, 231, 169, 0.5));
}

/* Account Center - betting table and filters */
.pc-content {
    display: grid;
    gap: 14px;
}

.pc-section {
    display: block;
}

.pc-content [hidden] {
    display: none !important;
}

.pc-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pc-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(192, 192, 192, 0.18);
    border-radius: 10px;
    padding: 4px;
}

.pc-tabs .tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: #e5e7eb;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: 40px;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
}

.pc-tabs .tab:hover {
    background: rgba(255, 255, 255, 0.04);
}

.pc-tabs .tab.is-active {
    background: rgba(234, 181, 74, 0.15);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 0 0 0 2px rgba(234, 181, 74, 0.2);
}

.pc-range {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 6px 8px;
    border: 1px solid rgba(192, 192, 192, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.pc-range .date-field {
    position: relative;
}

.pc-range input[type="date"] {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(192, 192, 192, 0.18);
    color: #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
    min-width: 140px;
    font-size: 13px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

.pc-range input[type="date"]:focus {
    border-color: rgba(234, 181, 74, 0.4);
    background: rgba(255, 255, 255, 0.04);
    outline: none;
    box-shadow: 0 0 0 3px rgba(234, 181, 74, 0.1);
}

.pc-range .date-hint {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--silver-300);
    opacity: .6;
    font-size: 12px;
}

.pc-range input[type="date"]:not(:placeholder-shown)+.date-hint,
.pc-range input[type="date"]:focus+.date-hint {
    display: none;
}

.range-sep {
    color: var(--silver-300);
    font-size: 12px;
}

.pc-actions {
    margin-left: auto;
}

.pc-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid rgba(192, 192, 192, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(234, 181, 74, 0.3) transparent;
}

.pc-table-wrap::-webkit-scrollbar {
    height: 6px;
}

.pc-table-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.pc-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(234, 181, 74, 0.3);
    border-radius: 3px;
}

.pc-table-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(234, 181, 74, 0.5);
}

.ac-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 760px;
    font-size: 13px;
}

.ac-table thead th {
    position: sticky;
    top: 0;
    background: #0d0d0d;
    color: #e5e7eb;
    text-align: left;
    font-weight: 700;
    padding: 12px;
    border-bottom: 1px solid rgba(192, 192, 192, 0.18);
    font-size: 13px;
    letter-spacing: 0.2px;
    z-index: 1;
}

.ac-table tbody td {
    padding: 12px;
    border-bottom: 1px solid rgba(192, 192, 192, 0.10);
    font-size: 13px;
    line-height: 1.5;
}

.ac-table tbody tr {
    transition: background 0.15s ease;
}

.ac-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.pl--win {
    color: #86efac;
    font-weight: 700;
}

.pl--loss {
    color: #fca5a5;
    font-weight: 700;
}

/* Deposit section */
.pay-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 640px) {
    .pay-methods {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.pay-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(192, 192, 192, 0.18);
    background: #000000;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 100px;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
}

.pay-card:hover {
    border-color: rgba(234, 181, 74, 0.3);
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-2px);
}

.pay-card .pay-logo {
    font-size: 24px;
    line-height: 1;
    margin-bottom: 4px;
}

.pay-card .pay-name {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.pay-card.is-active {
    border-color: rgba(234, 181, 74, 0.5);
    box-shadow: inset 0 0 0 2px rgba(234, 181, 74, 0.3), 0 4px 12px rgba(234, 181, 74, 0.2);
    background: rgba(234, 181, 74, 0.08);
    transform: translateY(-2px);
}

.amount-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.chip {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(192, 192, 192, 0.22);
    background: rgba(255, 255, 255, 0.03);
    color: #e5e7eb;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
}

.chip:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(234, 181, 74, 0.3);
    transform: translateY(-1px);
}

.chip:active {
    transform: translateY(0);
}

.amount-input {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(192, 192, 192, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 12px;
    width: 100%;
    transition: all 0.2s ease;
}

.amount-input:focus-within {
    border-color: rgba(234, 181, 74, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(234, 181, 74, 0.1);
}

.amount-input .currency {
    color: #f6e7a9;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.amount-input input {
    background: transparent;
    border: 0;
    color: #e5e7eb;
    flex: 1;
    min-width: 0;
    outline: none;
    font-size: 15px;
    font-weight: 600;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

/* Rewards */
.reward-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 680px) {
    .reward-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.reward-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(192, 192, 192, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.reward-icon {
    font-size: 22px;
}

.reward-title {
    font-weight: 700;
}

.reward-desc {
    color: var(--silver-300);
    font-size: 12px;
}

/* Invite */
.ref-card {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(192, 192, 192, 0.18);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 10px;
}

.ref-info {
    flex: 1;
    display: grid;
    gap: 6px;
}

.ref-label {
    color: var(--silver-300);
    font-size: 12px;
}

.ref-input {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(192, 192, 192, 0.18);
    color: #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
}

.info-list {
    margin: 0;
    padding-left: 16px;
    color: var(--silver-300);
}

/* Messages */
.msg-list {
    display: grid;
    gap: 10px;
}

.msg {
    border: 1px solid rgba(192, 192, 192, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
}

.msg-title {  
    font-weight: 700;
}

.msg-meta {
    color: var(--silver-300);
    font-size: 12px;
    margin-bottom: 4px;
}

.msg-body {
    color: #e5e7eb;
}

/* Spacing for action buttons in Deposit/Withdrawal */
#acSection-deposit .pc-actions,
#acSection-withdrawal .pc-actions {
    margin-top: 12px;
}

/* Agent Account Modal Responsive Styles */
/* Remove inline styles from Agent Account sidebar items */
#agentAccountModal .pc__nav {
    display: grid;
    gap: 2px;
}

#agentAccountModal .pc__item {
    width: 100%;
    padding: 4px 8px;
}

/* Agent Account Dashboard Content Responsive */
/* Override inline styles with !important for responsive behavior */
#agentAccountModal .ref-card {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

#agentAccountModal .ref-info {
    flex: 1;
    min-width: 200px;
}

#agentAccountModal .ref-label {
    font-size: 12px;
    margin-bottom: 0.25rem;
}

#agentAccountModal .ref-input {
    font-size: 12px;
    padding: 0.5rem;
}

/* QR Code and Share Section - Override inline styles */
#agentAccountModal .agent-qr {
    text-align: center;
    flex-shrink: 0;
}

#agentAccountModal .agent-share {
    flex: 1;
}

/* Container for QR and Share - Override inline flex styles */
#agentAccountModal [style*="display: flex"][style*="gap: 2rem"] {
    display: flex !important;
    gap: 2rem;
    align-items: flex-start;
    margin: 1rem 0;
    flex-wrap: wrap;
}

/* Search form container - Override inline styles */
#agentAccountModal [style*="display: flex"][style*="gap: 0.75rem"][style*="align-items: center"] {
    display: flex !important;
    gap: 0.75rem !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

/* Remove margin-bottom from search buttons - override inline styles */
#agentAccountModal #agentSearchBtn,
#agentAccountModal #agentClearBtn {
    margin-bottom: 0 !important;
    align-self: center;
}

/* Ensure search form container properly aligns items */
#agentAccountModal #agentSection-dashboard [style*="display: flex"][style*="gap: 0.75rem"][style*="align-items: center"] {
    display: flex !important;
    gap: 0.75rem !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

/* Ensure search input and buttons are aligned */
#agentAccountModal #agentSection-dashboard #agentSearchInput,
#agentAccountModal #agentSection-dashboard #agentSearchBtn,
#agentAccountModal #agentSection-dashboard #agentClearBtn {
    height: 32px;
    box-sizing: border-box;
    vertical-align: middle;
}

/* Commission Balance Section - General Responsive Styles */
#agentAccountModal #agentSection-commission .pc-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Commission Balance Cards */
#agentAccountModal #agentSection-commission .commission-balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

#agentAccountModal #agentSection-commission .balance-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#agentAccountModal #agentSection-commission .balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#agentAccountModal #agentSection-commission .balance-card:hover {
    transform: translateY(-2px);
    border-color: #444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#agentAccountModal #agentSection-commission .balance-card:hover::before {
    opacity: 0.5;
}

#agentAccountModal #agentSection-commission .balance-card:nth-child(1):hover::before {
    background: linear-gradient(90deg, transparent, #4caf50, transparent);
}

#agentAccountModal #agentSection-commission .balance-card:nth-child(2):hover::before {
    background: linear-gradient(90deg, transparent, #2196f3, transparent);
}

#agentAccountModal #agentSection-commission .balance-card:nth-child(3):hover::before {
    background: linear-gradient(90deg, transparent, #ff9800, transparent);
}

#agentAccountModal #agentSection-commission .balance-card:nth-child(4):hover::before {
    background: linear-gradient(90deg, transparent, #9c27b0, transparent);
}

/* Top-up Balance Cards */
#agentAccountModal #agentSection-topup .topup-balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

#agentAccountModal #agentSection-topup .balance-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#agentAccountModal #agentSection-topup .balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#agentAccountModal #agentSection-topup .balance-card:hover {
    transform: translateY(-2px);
    border-color: #444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#agentAccountModal #agentSection-topup .balance-card:hover::before {
    opacity: 0.5;
}

#agentAccountModal #agentSection-topup .balance-card:nth-child(1):hover::before {
    background: linear-gradient(90deg, transparent, #4caf50, transparent);
}

#agentAccountModal #agentSection-topup .balance-card:nth-child(2):hover::before {
    background: linear-gradient(90deg, transparent, #2196f3, transparent);
}

#agentAccountModal #agentSection-topup .balance-card:nth-child(3):hover::before {
    background: linear-gradient(90deg, transparent, #ff9800, transparent);
}

/* Top-up Balance Section - General Styles */
#agentAccountModal #agentSection-topup .amount-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

#agentAccountModal #agentSection-topup .amount-chips .chip {
    padding: 0.5rem 1rem;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

#agentAccountModal #agentSection-topup .amount-chips .chip:hover {
    background: #2a2a2a;
    border-color: #444;
}

#agentAccountModal #agentSection-topup .amount-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#agentAccountModal #agentSection-topup #playerUsername,
#agentAccountModal #agentSection-topup #transferAmount {
    width: 100%;
    box-sizing: border-box;
}

#agentAccountModal #agentSection-commission .amount-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

#agentAccountModal #agentSection-commission .amount-chips .chip {
    padding: 0.5rem 1rem;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

#agentAccountModal #agentSection-commission .amount-chips .chip:hover {
    background: #2a2a2a;
    border-color: #444;
}

#agentAccountModal #agentSection-commission .amount-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#agentAccountModal #agentSection-commission #withdrawAccount,
#agentAccountModal #agentSection-commission #commissionWithdrawAmount {
    width: 100%;
    box-sizing: border-box;
}

#agentAccountModal #agentSection-commission [style*="display: flex"][style*="align-items: center"][style*="gap: 0.75rem"] {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    flex-wrap: wrap !important;
}

@media (max-width: 768px) {
    #agentAccountModal [style*="display: flex"][style*="gap: 2rem"] {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: center !important;
    }
    
    #agentAccountModal .agent-qr,
    #agentAccountModal .agent-share {
        width: 100% !important;
        flex: none !important;
    }
    
    #agentAccountModal .agent-share {
        margin-top: 1rem;
    }
    
    /* Make search form responsive on mobile */
    #agentAccountModal #agentSection-dashboard [style*="display: flex"][style*="gap: 0.75rem"][style*="align-items: center"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    
    #agentAccountModal #agentSection-dashboard [style*="display: flex"][style*="gap: 0.75rem"][style*="align-items: center"] label {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    #agentAccountModal #agentSection-dashboard #agentSearchInput {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
    }
    
    #agentAccountModal #agentSection-dashboard #agentSearchBtn,
    #agentAccountModal #agentSection-dashboard #agentClearBtn {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    /* Commission Balance Section - Mobile Responsive */
    #agentAccountModal #agentSection-commission [style*="display: flex"][style*="align-items: center"][style*="gap: 0.75rem"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    
    #agentAccountModal #agentSection-commission [style*="display: flex"][style*="align-items: center"][style*="gap: 0.75rem"] label {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    #agentAccountModal #agentSection-commission #withdrawAccount {
        width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
    }
    
    #agentAccountModal #agentSection-commission #manageAccountBtn {
        width: 100% !important;
    }
    
    #agentAccountModal #agentSection-commission .amount-chips {
        justify-content: center !important;
    }
    
    #agentAccountModal #agentSection-commission .amount-chips .chip {
        flex: 1 1 calc(33.333% - 0.5rem) !important;
        min-width: calc(33.333% - 0.5rem) !important;
        max-width: calc(33.333% - 0.5rem) !important;
    }
    
    #agentAccountModal #agentSection-commission #commissionWithdrawAmount {
        width: 100% !important;
    }
    
    #agentAccountModal #agentSection-commission #submitCommissionWithdraw {
        width: 100% !important;
    }
    
    /* Commission Balance Cards - Mobile */
    #agentAccountModal #agentSection-commission .commission-balance-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    #agentAccountModal #agentSection-commission .balance-card {
        padding: 1rem !important;
    }
    
    #agentAccountModal #agentSection-commission .balance-card > div:last-child {
        font-size: 20px !important;
    }
    
    /* Top-up Balance Section - Mobile Responsive */
    #agentAccountModal #agentSection-topup .topup-balance-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    #agentAccountModal #agentSection-topup .balance-card {
        padding: 1rem !important;
    }
    
    #agentAccountModal #agentSection-topup .balance-card > div:last-child {
        font-size: 20px !important;
    }
    
    #agentAccountModal #agentSection-topup .amount-chips {
        justify-content: center !important;
    }
    
    #agentAccountModal #agentSection-topup .amount-chips .chip {
        flex: 1 1 calc(33.333% - 0.5rem) !important;
        min-width: calc(33.333% - 0.5rem) !important;
        max-width: calc(33.333% - 0.5rem) !important;
    }
    
    #agentAccountModal #agentSection-topup #playerUsername,
    #agentAccountModal #agentSection-topup #transferAmount {
        width: 100% !important;
    }
    
    #agentAccountModal #agentSection-topup #submitTransfer {
        width: 100% !important;
    }
}

/* Search Section */
#agentAccountModal #agentSearchInput {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

/* Agent Dashboard - General Responsive Styles */
#agentAccountModal #agentSection-dashboard .ref-card {
    flex-wrap: wrap;
}

/* Tablet and smaller screens */
@media (max-width: 1024px) {
    #agentAccountModal #agentSection-dashboard .ref-card {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    #agentAccountModal #agentSection-dashboard .ref-info {
        width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
    }
    
    #agentAccountModal #agentSection-dashboard #copyAgentRef {
        width: 100% !important;
        margin-top: 0.75rem;
    }
    
    /* Search form on tablet */
    #agentAccountModal #agentSection-dashboard [style*="display: flex"][style*="gap: 0.75rem"][style*="align-items: center"] {
        flex-wrap: wrap !important;
    }
    
    #agentAccountModal #agentSection-dashboard #agentSearchInput {
        max-width: 100% !important;
        min-width: 200px !important;
    }
    
    /* Commission Balance Section - Tablet Responsive */
    #agentAccountModal #agentSection-commission [style*="display: flex"][style*="align-items: center"][style*="gap: 0.75rem"] {
        flex-wrap: wrap !important;
    }
    
    #agentAccountModal #agentSection-commission #withdrawAccount {
        min-width: 200px !important;
        flex: 1 !important;
    }
    
    #agentAccountModal #agentSection-commission #manageAccountBtn {
        flex-shrink: 0 !important;
    }
    
    #agentAccountModal #agentSection-commission .amount-chips .chip {
        flex: 1 1 calc(20% - 0.4rem) !important;
        min-width: calc(20% - 0.4rem) !important;
    }
    
    /* Commission Balance Cards - Tablet */
    #agentAccountModal #agentSection-commission .commission-balance-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    /* Top-up Balance Cards - Tablet */
    #agentAccountModal #agentSection-topup .topup-balance-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    #agentAccountModal #agentSection-topup .amount-chips .chip {
        flex: 1 1 calc(20% - 0.4rem) !important;
        min-width: calc(20% - 0.4rem) !important;
    }
}

/* Medium screens - 2 columns for balance cards */
@media (max-width: 900px) and (min-width: 601px) {
    #agentAccountModal #agentSection-commission .commission-balance-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    #agentAccountModal #agentSection-topup .topup-balance-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Medium-large screens (900px - 1024px) */
@media (max-width: 1024px) and (min-width: 901px) {
    #agentAccountModal .pc {
        grid-template-columns: 180px 1fr;
    }
    
    /* Override ref-card inline styles */
    #agentAccountModal .ref-card[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    #agentAccountModal .ref-card[style*="display: flex"] .ref-info {
        min-width: 100% !important;
        flex: none !important;
    }
    
    #agentAccountModal .ref-card[style*="display: flex"] .btn {
        width: 100% !important;
    }
    
    /* Override QR and Share container */
    #agentAccountModal [style*="display: flex"][style*="gap: 2rem"] {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: center !important;
    }
    
    #agentAccountModal .agent-qr,
    #agentAccountModal .agent-share {
        width: 100% !important;
        flex: none !important;
    }
    
    #agentAccountModal .agent-share > div:first-child {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Medium screens (769px - 900px) */
@media (max-width: 900px) and (min-width: 769px) {
    #agentAccountModal .pc {
        grid-template-columns: 160px 1fr;
    }
    
    /* Override ref-card inline styles */
    #agentAccountModal .ref-card[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    #agentAccountModal .ref-card[style*="display: flex"] .ref-info {
        min-width: 100% !important;
        flex: none !important;
    }
    
    #agentAccountModal .ref-card[style*="display: flex"] .btn {
        width: 100% !important;
    }
    
    /* Override QR and Share container */
    #agentAccountModal [style*="display: flex"][style*="gap: 2rem"] {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: center !important;
    }
    
    #agentAccountModal .agent-qr,
    #agentAccountModal .agent-share {
        width: 100% !important;
        flex: none !important;
    }
    
    /* Search form responsive */
    #agentAccountModal [style*="display: flex"][style*="gap: 0.75rem"][style*="align-items: center"] {
        flex-wrap: wrap !important;
    }
    
    #agentAccountModal #agentSearchInput {
        max-width: 100% !important;
        min-width: 200px !important;
    }
}

/* Small-medium screens (600px - 768px) */
@media (max-width: 768px) and (min-width: 601px) {
    #agentAccountModal .pc__sidebar {
        display: none;
    }
    
    #agentAccountModal .pc__mobile-nav {
        display: flex;
    }
    
    #agentAccountModal .ref-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    #agentAccountModal .ref-info {
        min-width: 100%;
    }
    
    #agentAccountModal .ref-card .btn {
        width: 100%;
    }
    
    /* QR Code and Share - Stack vertically on mobile */
    #agentAccountModal .agent-qr,
    #agentAccountModal .agent-share {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    #agentAccountModal .agent-share > div:first-child {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #agentAccountModal .agent-share > div:first-child > div {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    /* Search section */
    #agentAccountModal #agentSearchInput {
        max-width: 100% !important;
        min-width: 100% !important;
    }
    
    /* Override search form inline styles */
    #agentAccountModal [style*="display: flex"][style*="gap: 0.75rem"][style*="align-items: center"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    
    #agentAccountModal [style*="display: flex"][style*="gap: 0.75rem"][style*="align-items: center"] label {
        width: 100% !important;
        height: auto !important;
        line-height: 1.5 !important;
        display: block !important;
    }
    
    #agentAccountModal [style*="display: flex"][style*="gap: 0.75rem"][style*="align-items: center"] input,
    #agentAccountModal [style*="display: flex"][style*="gap: 0.75rem"][style*="align-items: center"] button {
        width: 100% !important;
        margin-bottom: 0 !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
    
    #agentAccountModal .pc-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    #agentAccountModal .pc-actions {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }
    
    #agentAccountModal .pc-actions .btn {
        flex: 1;
    }
    
    /* Override QR and Share container */
    #agentAccountModal [style*="display: flex"][style*="gap: 2rem"] {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: center !important;
    }
    
    /* Override ref-card */
    #agentAccountModal .ref-card[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    #agentAccountModal .ref-card[style*="display: flex"] .ref-info,
    #agentAccountModal .ref-card[style*="display: flex"] .ref-info[style*="flex: 1"] {
        min-width: 100% !important;
        flex: none !important;
        width: 100% !important;
    }
    
    #agentAccountModal .ref-card[style*="display: flex"] .btn,
    #agentAccountModal .ref-card[style*="display: flex"] #copyAgentRef {
        width: 100% !important;
        flex-shrink: 0 !important;
    }
}

/* Small screens (below 600px) */
@media (max-width: 600px) {
    #agentAccountModal .pc__sidebar {
        display: none;
    }
    
    #agentAccountModal .pc__mobile-nav {
        display: flex;
    }
    
    #agentAccountModal .pc-card__title {
        font-size: 13px;
    }
    
    /* Override ref-card inline styles */
    #agentAccountModal .ref-card[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    
    #agentAccountModal .ref-card[style*="display: flex"] .ref-info[style*="flex: 1"] {
        flex: none !important;
        min-width: 100% !important;
        width: 100% !important;
    }
    
    #agentAccountModal .ref-label {
        font-size: 11px;
    }
    
    #agentAccountModal .ref-input {
        font-size: 11px;
        padding: 0.5rem;
        width: 100% !important;
    }
    
    #agentAccountModal .ref-card .btn,
    #agentAccountModal #copyAgentRef {
        width: 100% !important;
        padding: 0.5rem !important;
        flex-shrink: 0 !important;
    }
    
    /* QR Code and Share - Stack vertically - Override inline styles */
    #agentAccountModal [style*="display: flex"][style*="gap: 2rem"] {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: center !important;
        margin: 1rem 0 !important;
    }
    
    #agentAccountModal .agent-qr[style*="text-align: center"] {
        width: 100% !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
        flex-shrink: 0 !important;
    }
    
    #agentAccountModal .agent-share[style*="flex: 1"] {
        width: 100% !important;
        flex: none !important;
    }
    
    #agentAccountModal .agent-share > div:first-child {
        font-size: 12px !important;
        margin-bottom: 0.75rem !important;
    }
    
    #agentAccountModal .agent-share > div[style*="display: flex"][style*="flex-direction: column"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }
    
    #agentAccountModal .agent-share > div[style*="display: flex"][style*="flex-direction: column"] > div {
        display: flex !important;
        gap: 0.5rem !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }
    
    #agentAccountModal .agent-share .btn {
        font-size: 10px !important;
        padding: 0.375rem 0.5rem !important;
        flex: 1 !important;
        min-width: calc(33.333% - 0.5rem) !important;
    }
    
    /* Search section */
    /* Search section - Override all inline styles aggressively */
    #agentAccountModal #agentSearchInput {
        max-width: 100% !important;
        min-width: 100% !important;
        width: 100% !important;
        font-size: 12px !important;
        flex: none !important;
    }
    
    #agentAccountModal .pc-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    #agentAccountModal .pc-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #agentAccountModal .pc-actions .btn {
        width: 100%;
    }
    
    /* Search form container - Override inline styles aggressively */
    #agentAccountModal [style*="display: flex"][style*="gap: 0.75rem"][style*="align-items: center"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        flex-wrap: nowrap !important;
    }
    
    #agentAccountModal [style*="display: flex"][style*="gap: 0.75rem"][style*="align-items: center"] label {
        width: 100% !important;
        height: auto !important;
        line-height: 1.5 !important;
        display: block !important;
        margin-bottom: 0 !important;
        white-space: normal !important;
    }
    
    #agentAccountModal [style*="display: flex"][style*="gap: 0.75rem"][style*="align-items: center"] input,
    #agentAccountModal [style*="display: flex"][style*="gap: 0.75rem"][style*="align-items: center"] button {
        width: 100% !important;
        margin-bottom: 0 !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
    }
    
    /* Remove margin-bottom from search buttons */
    #agentAccountModal #agentSearchBtn[style*="margin-bottom"],
    #agentAccountModal #agentClearBtn[style*="margin-bottom"] {
        margin-bottom: 0 !important;
    }
    
    /* Override QR and Share container inline styles */
    #agentAccountModal [style*="display: flex"][style*="gap: 2rem"] {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: center !important;
    }
    
    /* Override ref-card inline styles */
    #agentAccountModal .ref-card[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    #agentAccountModal .ref-card[style*="display: flex"] .ref-info[style*="flex: 1"] {
        min-width: 100% !important;
        flex: none !important;
        width: 100% !important;
    }
    
    #agentAccountModal .ref-card[style*="display: flex"] .btn,
    #agentAccountModal .ref-card[style*="display: flex"] #copyAgentRef {
        width: 100% !important;
        flex-shrink: 0 !important;
    }
    
    /* Table adjustments */
    #agentAccountModal .pc-table-wrap {
        margin: 0 -12px;
        overflow-x: auto;
    }
    
    #agentAccountModal .ac-table {
        min-width: 600px;
        font-size: 11px;
    }
    
    #agentAccountModal .ac-table th,
    #agentAccountModal .ac-table td {
        padding: 8px 6px;
    }
}

/* Extra small screens (below 480px) */
@media (max-width: 480px) {
    #agentAccountModal .pc__main {
        padding: 12px;
    }
    
    #agentAccountModal .pc-card {
        padding: 12px;
    }
    #agentSection-dashboard .pc-card {
        width: 380px;
    }
    
    #agentAccountModal .pc-card__title {
        font-size: 12px;
        margin-bottom: 0.75rem;
    }
    
    #agentAccountModal .ref-input {
        font-size: 10px;
    }
    
    #agentAccountModal .agent-share .btn {
        font-size: 9px;
        padding: 0.3rem 0.4rem;
    }
    
    #agentAccountModal .ac-table {
        font-size: 10px;
        min-width: 550px;
    }
    
    #agentAccountModal .ac-table th,
    #agentAccountModal .ac-table td {
        padding: 6px 4px;
    }
    
    #agentAccountModal .btn-sm {
        font-size: 11px;
        padding: 0.375rem 0.5rem;
        margin-bottom: 15px;
    }
}

/* Additional aggressive mobile overrides for Agent Dashboard */
@media (max-width: 600px) {
    /* Target the specific div containers directly */
    #agentAccountModal #agentSection-dashboard .ref-card {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    #agentAccountModal #agentSection-dashboard .ref-info {
        flex: none !important;
        width: 100% !important;
        min-width: 100% !important;
    }
    
    #agentAccountModal #agentSection-dashboard #copyAgentRef {
        width: 100% !important;
        flex-shrink: 0 !important;
    }
    
    /* QR and Share container */
    #agentAccountModal #agentSection-dashboard > .pc-card > div[style*="display: flex"][style*="gap: 2rem"] {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: center !important;
    }
    
    #agentAccountModal #agentSection-dashboard .agent-qr {
        width: 100% !important;
        flex-shrink: 0 !important;
    }
    
    #agentAccountModal #agentSection-dashboard .agent-share {
        width: 100% !important;
        flex: none !important;
    }
    
    /* Search form */
    #agentAccountModal #agentSection-dashboard > .pc-card:last-child > div[style*="margin: 1.5rem 0"] > div {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    
    #agentAccountModal #agentSection-dashboard #agentSearchInput {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
    }
    
    #agentAccountModal #agentSection-dashboard #agentSearchBtn,
    #agentAccountModal #agentSection-dashboard #agentClearBtn {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    /* Override all inline styles in search form */
    #agentAccountModal #agentSection-dashboard label[style*="display: inline-flex"] {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        line-height: 1.5 !important;
        margin-bottom: 0 !important;
    }
}

/* Universal mobile overrides for Agent Dashboard - highest priority */
@media (max-width: 768px) {
    /* Force ref-card to stack */
    #agentAccountModal #agentSection-dashboard .ref-card[style] {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    #agentAccountModal #agentSection-dashboard .ref-card[style] .ref-info[style*="flex: 1"] {
        flex: none !important;
        width: 100% !important;
        min-width: 100% !important;
    }
    
    #agentAccountModal #agentSection-dashboard #copyAgentRef {
        width: 100% !important;
        flex-shrink: 0 !important;
        top: 0.5rem !important;
    }
    
    /* Force QR/Share container to stack */
    #agentAccountModal #agentSection-dashboard > .pc-card > div[style*="gap: 2rem"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: center !important;
        margin: 1rem 0 !important;
    }
    
    #agentAccountModal #agentSection-dashboard .agent-qr[style*="flex-shrink: 0"] {
        width: 100% !important;
        flex-shrink: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    #agentAccountModal #agentSection-dashboard .agent-share[style*="flex: 1"] {
        width: 100% !important;
        flex: none !important;
    }
    
    /* Social buttons - make them wrap properly */
    #agentAccountModal #agentSection-dashboard .agent-share > div[style*="flex-direction: column"] {
        width: 100% !important;
    }
    
    #agentAccountModal #agentSection-dashboard .agent-share > div[style*="flex-direction: column"] > div[style*="display: flex"] {
        width: 100% !important;
        justify-content: center !important;
    }
    
    #agentAccountModal #agentSection-dashboard .agent-share .btn {
        flex: 1 1 calc(33.333% - 0.5rem) !important;
        min-width: calc(33.333% - 0.5rem) !important;
        max-width: calc(33.333% - 0.5rem) !important;
    }
    
    /* Force search form to stack */
    #agentAccountModal #agentSection-dashboard > .pc-card:last-child > div[style*="margin: 1.5rem"] > div[style*="display: flex"] {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        flex-wrap: nowrap !important;
    }
    
    #agentAccountModal #agentSection-dashboard > .pc-card:last-child > div[style*="margin: 1.5rem"] > div[style*="display: flex"] label {
        width: 100% !important;
        height: auto !important;
        line-height: 1.5 !important;
        display: block !important;
        margin-bottom: 0 !important;
        white-space: normal !important;
    }
    
    #agentAccountModal #agentSection-dashboard #agentSearchInput {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
    }
    
    #agentAccountModal #agentSection-dashboard #agentSearchBtn,
    #agentAccountModal #agentSection-dashboard #agentClearBtn {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    /* Table - make it horizontally scrollable */
    #agentAccountModal #agentSection-dashboard .pc-table-wrap {
        margin: 0 -12px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    #agentAccountModal #agentSection-dashboard .ac-table {
        min-width: 600px !important;
        font-size: 11px !important;
    }
    
    #agentAccountModal #agentSection-dashboard .ac-table th,
    #agentAccountModal #agentSection-dashboard .ac-table td {
        padding: 8px 6px !important;
        white-space: nowrap !important;
    }
}

/* Extra aggressive mobile rules for very small screens */
@media (max-width: 480px) {
    #agentAccountModal #agentSection-dashboard .agent-share .btn {
        flex: 1 1 calc(50% - 0.5rem) !important;
        min-width: calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.5rem) !important;
        font-size: 10px !important;
        padding: 0.3rem 0.4rem !important;
    }
    
    #agentAccountModal #agentSection-dashboard .ac-table {
        min-width: 550px !important;
        font-size: 10px !important;
    }
    
    #agentAccountModal #agentSection-dashboard .ac-table th,
    #agentAccountModal #agentSection-dashboard .ac-table td {
        padding: 6px 4px !important;
    }
}

/* Maximum specificity overrides - target by exact structure */
@media (max-width: 768px) {
    /* Override ALL inline styles in Agent Dashboard using maximum specificity */
    #agentAccountModal #agentSection-dashboard div[style*="display: flex"][style*="gap: 0.75rem"][style*="align-items: center"] {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    
    #agentAccountModal #agentSection-dashboard div[style*="display: flex"][style*="gap: 0.75rem"][style*="align-items: center"] * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
        margin-bottom: 0 !important;
    }
    
    /* Social buttons - override inline styles on buttons */
    #agentAccountModal #agentSection-dashboard .agent-share button[data-share] {
        flex: 1 1 calc(33.333% - 0.5rem) !important;
        min-width: calc(33.333% - 0.5rem) !important;
        max-width: calc(33.333% - 0.5rem) !important;
        width: auto !important;
    }
    
    /* Table wrapper - ensure scrolling */
    #agentAccountModal #agentSection-dashboard .pc-card:last-child .pc-table-wrap {
        margin-left: -12px !important;
        margin-right: -12px !important;
        overflow-x: scroll !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
    }
    
    /* Universal override for all flex containers in dashboard */
    #agentAccountModal #agentSection-dashboard [style*="display: flex"] {
        flex-wrap: wrap !important;
    }
    
    /* Force all buttons in social section to be responsive */
    #agentAccountModal #agentSection-dashboard .agent-share button.btn {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}