/**
 * BDGJosh Mobile Gaming Platform Core Styles
 * Mobile-First Shell & Modern Dark Crimson/Gold Theme
 */

:root {
    --bg-main: #0d0e12;
    --bg-card: #181a22;
    --bg-card-light: #222634;
    --bg-surface: #14161f;
    --bg-elevated: #282c3c;
    
    --primary: #d92438;
    --primary-dark: #b81729;
    --primary-glow: rgba(217, 36, 56, 0.4);
    
    --gold: #f5a623;
    --gold-light: #ffd166;
    --gold-glow: rgba(245, 166, 35, 0.3);
    
    --color-green: #00b977;
    --color-red: #f83a52;
    --color-violet: #9c27b0;
    --color-blue: #2979ff;
    
    --text-primary: #ffffff;
    --text-secondary: #9aa1b5;
    --text-muted: #656d82;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    
    --bottom-nav-height: 69px;
    --header-height: 62px;
    --app-max-width: 440px;
    
    /* Exact stack from bdg2.vip */
    --font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "Segoe UI", Arial, Roboto, "PingFang SC", miui, "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "Segoe UI", Arial, Roboto, "PingFang SC", "Microsoft Yahei", sans-serif;
    --font-bahnschrift: bahnschrift, var(--font-family);
}

@font-face {
    font-family: bahnschrift;
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/bahnschrift.woff2') format('woff2');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100%;
    background-color: #07080a;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 12px;
    line-height: 1.45;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
}

/* Theme-Based Luxury Custom Scrollbar (Sidebar) */
* {
    scrollbar-width: thin;
    scrollbar-color: #9c7128 #13151c;
}

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

::-webkit-scrollbar-track {
    background: #13151c;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d49a37 0%, #8c5d1e 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f5bc5c 0%, #b87c24 100%);
    box-shadow: 0 0 6px rgba(245, 188, 92, 0.4);
}

::-webkit-scrollbar-corner {
    background: #13151c;
}

::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

/* Centered Mobile Shell */
.app-container {
    width: 100%;
    max-width: var(--app-max-width, 440px);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.85);
    font-family: var(--font-family);
}

/* Header — fixed to mobile shell (does not scroll away) */
.app-header {
    height: var(--header-height);
    min-height: var(--header-height);
    background: linear-gradient(180deg, #1f222e 0%, #161822 100%);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-max-width, 440px);
    z-index: 1200;
    box-sizing: border-box;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #fff;
}

.header-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 17px;
    color: #fff;
    box-shadow: 0 2px 10px var(--primary-glow);
}

.header-logo-text {
    font-size: 17px;
    font-weight: 800;
    background: linear-gradient(90deg, #fff 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-action-btn {
    background: var(--bg-card-light);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.header-action-btn:hover {
    color: #fff;
    border-color: var(--gold);
}

.back-btn {
    border: none;
    background: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Page Content — leave room for fixed header + bottom nav */
.page-content {
    flex: 1;
    padding: 12px;
    padding-bottom: calc(var(--bottom-nav-height) + 20px);
}

/* When top header is present, offset content under fixed bar */
.app-container.has-header > .page-content,
.app-container:has(> .app-header) > .page-content {
    padding-top: calc(var(--header-height) + 12px);
}

.page-content.no-nav {
    padding-bottom: 20px;
}

/* The shell brand footer reserves its own clearance for the fixed tab bar, so
   pages that show it don't need to pad for the nav twice. */
body.has-site-footer .app-container > .page-content {
    padding-bottom: 18px;
}

/* Bottom Navigation — fixed to mobile shell */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-max-width);
    height: var(--bottom-nav-height);
    background: #141620;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1200;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    transition: color 0.2s ease;
    flex: 1;
    position: relative;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active svg {
    transform: scale(1.1);
    stroke: var(--primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px var(--primary-glow);
}

/* Cards & Surfaces */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 14px;
    margin-bottom: 12px;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Wallet Banner Card */
.wallet-card {
    background: linear-gradient(135deg, #241c2c 0%, #161822 50%, #20171d 100%);
    border: 1px solid rgba(245, 166, 35, 0.25);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
}

.wallet-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.wallet-label {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.wallet-tag {
    background: rgba(245, 166, 35, 0.15);
    color: var(--gold-light);
    border: 1px solid rgba(245, 166, 35, 0.3);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.wallet-amount {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.wallet-currency {
    font-size: 14px;
    color: var(--gold);
    font-weight: 700;
}

.wallet-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #e62e43 0%, #b81729 100%);
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-gold {
    background: linear-gradient(135deg, #f5a623 0%, #d48806 100%);
    color: #121212;
    box-shadow: 0 4px 14px var(--gold-glow);
}

.btn-secondary {
    background: var(--bg-card-light);
    color: #fff;
    border: 1px solid var(--border-light);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    width: auto;
}

/* Announcement Bar with Continuous Smooth Marquee */
.marquee-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(245, 166, 35, 0.25);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--gold-light);
    overflow: hidden;
    position: relative;
}

.marquee-icon {
    font-size: 15px;
    color: var(--gold);
    flex-shrink: 0;
    z-index: 2;
}

.marquee-track {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-text-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marqueeScroll 20s linear infinite;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Floating Lucky Red Envelope Widget */
.floating-red-packet {
    position: fixed;
    right: max(16px, calc((100vw - var(--app-max-width)) / 2 + 16px));
    bottom: calc(var(--bottom-nav-height) + 18px);
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #ff1744 0%, #b71c1c 100%);
    box-shadow: 0 4px 18px rgba(255, 23, 68, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    z-index: 99;
    border: 2px solid var(--gold-light);
    animation: packetBounce 2.4s ease-in-out infinite;
}

@keyframes packetBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

/* Quick Action Buttons (Deposit / Withdraw) */
.wallet-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.action-pill-btn {
    background: var(--bg-card-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 4px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-pill-btn:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.action-pill-icon {
    font-size: 18px;
}

.action-pill-deposit {
    background: linear-gradient(135deg, rgba(0, 185, 119, 0.2) 0%, rgba(0, 153, 91, 0.3) 100%);
    border-color: var(--color-green);
    color: #a3ffdc;
}

.action-pill-withdraw {
    background: linear-gradient(135deg, rgba(217, 36, 56, 0.2) 0%, rgba(184, 23, 41, 0.3) 100%);
    border-color: var(--primary);
    color: #ffb3bd;
}

/* Category Tabs */
.category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 14px;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-chip {
    flex-shrink: 0;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.category-chip.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Game Cards Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-light);
}

.game-thumb {
    width: 100%;
    height: 105px;
    position: relative;
    overflow: hidden;
    background: #1d202d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.game-tag-demo {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: var(--gold-light);
    border: 1px solid var(--gold);
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.game-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.game-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.game-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-play-btn {
    margin-top: auto;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 0;
    border-radius: var(--radius-sm);
    background: var(--bg-card-light);
    color: var(--gold-light);
    text-align: center;
    border: 1px solid rgba(245, 166, 35, 0.2);
}

/* Forms */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    height: 44px;
    background: var(--bg-card-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.input-icon-right {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

.form-prefix {
    padding: 0 12px;
    height: 44px;
    display: flex;
    align-items: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: var(--gold-light);
    font-weight: 700;
}

.form-prefix + .form-input {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Modals */
.modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none !important;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    padding: 16px 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    pointer-events: none !important;
}

.modal-overlay.active {
    display: flex !important;
    pointer-events: auto !important;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 380px;
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: modalPop 0.2s ease-out;
    margin: auto;
}

@keyframes modalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

.modal-body {
    padding: 16px;
}

.modal-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

/* Toast Notification */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 360px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: #1f2230;
    color: #fff;
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: toastSlide 0.25s ease-out;
}

@keyframes toastSlide {
    from { transform: translateY(-16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.toast.toast-success {
    border-color: var(--color-green);
    background: #10291e;
    color: #a3ffdc;
}

.toast.toast-error {
    border-color: var(--color-red);
    background: #321419;
    color: #ffb3bd;
}

.toast.toast-info {
    border-color: var(--color-blue);
    background: #112340;
    color: #b8d6ff;
}

/* List Menu Items (Account & Settings) */
.menu-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 14px;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: var(--bg-card-light);
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.menu-arrow {
    color: var(--text-muted);
    font-size: 16px;
}

/* Legal & Disclaimer Banner */
.demo-disclaimer {
    background: rgba(245, 166, 35, 0.08);
    border: 1px dashed rgba(245, 166, 35, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 11px;
    color: var(--gold-light);
    line-height: 1.4;
    margin-top: 14px;
    text-align: center;
}

/* Quick Action 8-Grid (BDGJosh Icon Grid) */
.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.quick-action-item {
    background: linear-gradient(145deg, #181b26 0%, #12141d 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.quick-action-item:hover, .quick-action-item:active {
    transform: translateY(-2px);
    border-color: rgba(217, 36, 56, 0.4);
    box-shadow: 0 6px 16px rgba(217, 36, 56, 0.2);
}

.quick-action-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.quick-action-label {
    font-size: 11px;
    font-weight: 700;
    color: #e2e8f0;
    text-align: center;
}

/* App Download Banner (BDGJosh Top / Float Banner) */
.app-download-bar {
    background: linear-gradient(90deg, #1a0f1d 0%, #290d15 100%);
    border: 1px solid rgba(245, 166, 35, 0.3);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.app-download-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-download-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #d92438 0%, #f5a623 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(217, 36, 56, 0.5);
}

/* Daily Winning Ranking Podium */
.podium-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    padding: 16px 4px 6px 4px;
    margin-bottom: 12px;
}

.podium-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px 12px 8px 8px;
    position: relative;
    padding: 12px 6px 10px 6px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.podium-1 {
    height: 154px;
    background: linear-gradient(180deg, rgba(245, 166, 35, 0.25) 0%, #1f170d 100%);
    border: 1.5px solid #f5a623;
    order: 2;
}

.podium-2 {
    height: 136px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.2) 0%, #151822 100%);
    border: 1px solid #94a3b8;
    order: 1;
}

.podium-3 {
    height: 122px;
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.2) 0%, #1c1514 100%);
    border: 1px solid #cd7f32;
    order: 3;
}

.podium-crown {
    font-size: 20px;
    position: absolute;
    top: -14px;
    animation: crownFloat 2s ease-in-out infinite alternate;
}

@keyframes crownFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

.podium-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0d0f17;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 4px;
    border: 2px solid currentColor;
}

.podium-phone {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.podium-amount {
    font-size: 11px;
    font-weight: 800;
    color: var(--gold-light);
    font-family: monospace;
}

.podium-badge {
    position: absolute;
    bottom: -8px;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    color: #000;
}

/* Lucky Turntable Spin Wheel */
.turntable-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.wheel-container {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 10px auto;
}

.wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(245, 166, 35, 0.35), 0 0 0 6px #291206, 0 0 0 10px #f5a623;
    transition: transform 4.5s cubic-bezier(0.15, 0.9, 0.25, 1);
}

.wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 26px solid #ff2a44;
    z-index: 10;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}

.wheel-center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #f5a623 0%, #b26a05 100%);
    border: 3px solid #fff;
    color: #fff;
    font-weight: 900;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    z-index: 5;
    text-transform: uppercase;
}

.wheel-center-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

/* ========================================================
   BDGJosh Popups (Image 1: Login Welcome & Image 2: Deposit Bonus)
   ======================================================== */
.bdg-popup-card {
    background: #252528;
    border-radius: 18px;
    width: 94%;
    max-width: 390px;
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    animation: popupFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin: auto;
}

@keyframes popupFadeIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.bdg-popup-header-gold {
    background: linear-gradient(180deg, #e3a948 0%, #c48b2d 100%);
    padding: 14px 18px;
    text-align: center;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bdg-popup-body {
    padding: 16px 18px;
    color: #e5e7eb;
    font-size: 13px;
    line-height: 1.5;
}

.bdg-confirm-btn {
    width: 100%;
    background: linear-gradient(180deg, #dfa547 0%, #b87b1c 100%);
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    padding: 12px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(223, 165, 71, 0.4);
    transition: transform 0.15s ease;
    margin-top: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bdg-confirm-btn:active {
    transform: scale(0.97);
}

/* Tiered Deposit Bonus List (Image 2) */
.deposit-bonus-list {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.deposit-bonus-list::-webkit-scrollbar {
    width: 6px;
}
.deposit-bonus-list::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 4px;
}

.deposit-tier-card {
    background: #333438;
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.deposit-tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.deposit-tier-highlight {
    color: #f59e0b;
}

.deposit-tier-reward {
    color: #f59e0b;
    font-size: 13px;
    font-weight: 800;
}

.deposit-tier-desc {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 8px;
    line-height: 1.3;
}

.deposit-tier-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.deposit-progress-track {
    flex: 1;
    height: 22px;
    background: #242426;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deposit-progress-text {
    position: relative;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    color: #cbd5e1;
    font-family: monospace;
}

.deposit-tier-btn {
    background: transparent;
    border: 1px solid #d99a38;
    color: #f59e0b;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.deposit-tier-btn:hover {
    background: #d99a38;
    color: #fff;
}

.popup-floating-close-wrap {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.popup-floating-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease;
}

.popup-floating-close-btn:hover {
    transform: scale(1.1);
}

/* ========================================================
   Home Page Slider (Image 3: Cricket / ARBET Hero Banner)
   ======================================================== */
.home-slider-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    background: #0d0f14;
    aspect-ratio: 16 / 9;
}

.home-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.home-slider-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
}

.home-slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.home-slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.25s ease;
    cursor: pointer;
}

.home-slider-dot.active {
    width: 18px;
    border-radius: 4px;
    background: #f5a623;
}

/* ========================================================
   Marquee with Detail Button (Image 3)
   ======================================================== */
.marquee-row-bdg {
    background: #191b24;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.marquee-horn-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.marquee-scroll-area {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    font-size: 12px;
    color: #cbd5e1;
}

.marquee-detail-btn {
    background: linear-gradient(180deg, #dfa547 0%, #b87b1c 100%);
    border: none;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(223, 165, 71, 0.3);
}

/* ========================================================
   Member Balance Bar (Exact Image Matching)
   ======================================================== */
.member-balance-bar {
    background: linear-gradient(180deg, #ebd091 0%, #dbb263 100%);
    border-radius: 12px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #2b1f0f;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(255, 235, 175, 0.45);
}

.member-left-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #2b1f0f;
}

.member-user-icon {
    width: 17px;
    height: 17px;
    fill: #241708;
    flex-shrink: 0;
}

.member-name-balance {
    font-weight: 800;
    letter-spacing: -0.2px;
}

.member-refresh-btn {
    background: none;
    border: none;
    padding: 0;
    width: 16px;
    height: 16px;
    color: #241708;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.member-refresh-btn svg {
    width: 14px;
    height: 14px;
}

.member-refresh-btn.spinning {
    transform: rotate(360deg);
}

.member-right-pill {
    background: #25262c;
    border-radius: 6px;
    width: 32px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ebd091;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}

.member-right-pill svg {
    width: 13px;
    height: 13px;
    stroke: #e7c276;
}

/* ========================================================
   Category Showcase Grids (Exact Reference Image Matching)
   ======================================================== */
.showcase-top-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.showcase-card {
    background: linear-gradient(180deg, #ebd091 0%, #dbb263 100%);
    border-radius: 14px;
    padding: 8px 6px 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    position: relative;
    height: 122px;
    border: 1px solid rgba(255, 235, 175, 0.45);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.showcase-card:hover, .showcase-card:active {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.showcase-card.active-cat, .showcase-wide-item.active-cat, .showcase-horiz-card.active-cat {
    outline: 2px solid #ffd166;
    box-shadow: 0 0 14px rgba(255, 209, 102, 0.55);
}

.showcase-img-top {
    width: 88px;
    height: 78px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.28));
    transition: transform 0.2s ease;
    margin-bottom: 2px;
}

.showcase-card:hover .showcase-img-top {
    transform: scale(1.05);
}

.showcase-card-title {
    font-size: 14.5px;
    font-weight: 900;
    color: #3b2308;
    letter-spacing: -0.2px;
    margin-top: 2px;
}

/* Row 2: Wide Banner Split into 3 */
.showcase-wide-banner {
    background: linear-gradient(180deg, #ebd091 0%, #dbb263 100%);
    border-radius: 14px;
    padding: 10px 4px 8px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 235, 175, 0.45);
}

.showcase-wide-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
    padding: 0 4px;
    position: relative;
    transition: transform 0.15s ease;
}

.showcase-wide-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: rgba(139, 90, 20, 0.25);
}

.showcase-wide-item:hover {
    transform: translateY(-2px);
}

.showcase-img-wide {
    width: 82px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
    margin-bottom: 2px;
    transition: transform 0.2s ease;
}

.showcase-wide-item:hover .showcase-img-wide {
    transform: scale(1.05);
}

.showcase-wide-title {
    font-size: 13.5px;
    font-weight: 900;
    color: #3b2308;
    letter-spacing: -0.2px;
}

/* Row 3: 2 Horizontal Cards (Rummy, Fishing) */
.showcase-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.showcase-horiz-card {
    background: linear-gradient(180deg, #ebd091 0%, #dbb263 100%);
    border-radius: 14px;
    padding: 6px 14px 6px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    height: 80px;
    border: 1px solid rgba(255, 235, 175, 0.45);
    transition: transform 0.15s ease;
}

.showcase-horiz-card:hover {
    transform: translateY(-2px);
}

.showcase-img-horiz {
    width: 84px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
    transition: transform 0.2s ease;
}

.showcase-horiz-card:hover .showcase-img-horiz {
    transform: scale(1.05);
}

.showcase-horiz-title {
    font-size: 16px;
    font-weight: 900;
    color: #3b2308;
    letter-spacing: -0.3px;
    margin-right: 6px;
}

/* ========================================================
   BDG JOSH BLACK & GOLD SUITE (Reference Exact Match)
   1. Event Rewards Popup Modal (Image 1)
   2. BDG Login Screen (Image 2)
   3. BDG Register Screen (Image 3)
   4. BDG Profile & Account Page (Image 4)
   5. 5-Item Bottom Navigation with Raised 'Get â¹500'
   ======================================================== */

:root {
    --bdg-gold: #f5c767;
    --bdg-gold-light: #fce29d;
    --bdg-gold-dark: #c4913b;
    --bdg-gold-btn-grad: linear-gradient(180deg, #f0c377 0%, #c4913b 100%);
    --bdg-gold-btn-text: #54380b;
    --bdg-card-bg: #2b2d35;
    --bdg-card-secondary: #24262d;
    --bdg-input-bg: #23252c;
    --bdg-border-soft: rgba(255, 255, 255, 0.08);
}

body {
    font-family: var(--font-family);
    background-color: #1a1c22;
}

/* ========================================================
   1. EVENT REWARDS POPUP MODAL (Image 1)
   ======================================================== */
.event-rewards-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 99999;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.event-rewards-overlay.active {
    display: flex;
    animation: fadeInModal 0.22s ease forwards;
}

.event-rewards-box {
    width: 100%;
    max-width: var(--app-max-width, 440px);
    overflow: visible !important;
    background: linear-gradient(180deg, #363636 0%, #222222 100%);
    border-radius: 28px 28px 0 0;
    padding: 24px 22px 28px 22px;
    text-align: center;
    position: relative;
    box-shadow: 0 -12px 45px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(100%);
    animation: slideUpBottomSheet 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    margin: 0 auto;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpBottomSheet {
    from { transform: translateY(100%); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
}

/* 3D Floating Gift Box with Glow */
.event-rewards-gift-hero {
    position: relative;
    width: 150px;
    height: 150px;
    margin: -95px auto 8px auto;
}

.gift-floating-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 120, 160, 0.45) 0%, rgba(245, 199, 103, 0.25) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(14px);
    z-index: 1;
    pointer-events: none;
}

.gift-3d-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: giftBobbing 3.2s ease-in-out infinite;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.6));
}

@keyframes giftBobbing {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(1deg); }
}

/* Title with Laurel Wheat Wings */
.event-rewards-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.event-rewards-heading {
    font-size: 21px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.laurel-leaf {
    font-size: 20px;
    color: #e5b358;
    filter: drop-shadow(0 2px 4px rgba(229, 179, 88, 0.4));
    transform: scaleX(1);
}

.laurel-right {
    transform: scaleX(-1);
}

/* Description */
.event-rewards-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: #e4e6ed;
    font-weight: 500;
    margin: 0 0 24px 0;
    padding: 0 6px;
}

.event-highlight-text {
    color: #f5c767;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(245, 199, 103, 0.3);
}

/* Gold Gradient Action Button */
.event-login-submit-btn {
    width: 100%;
    background: linear-gradient(180deg, #e4b25a 0%, #caa049 50%, #b88628 100%) !important;
    color: #4c3309 !important;
    font-size: 15px;
    font-weight: 800;
    padding: 13.5px 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(181, 131, 42, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: block;
}

.event-login-submit-btn:active {
    transform: scale(0.97);
}

/* Secondary Dismiss Link */
.event-dismiss-link {
    display: inline-block;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 600;
    margin-top: 15px;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.92;
    transition: opacity 0.2s ease;
}

.event-dismiss-link:hover {
    opacity: 1;
}

.event-dismiss-link:hover {
    color: #ffffff;
}

/* ========================================================
   2. AUTH PAGES (Login & Register - Images 2 & 3)
   ======================================================== */
.bdg-auth-wrapper {
    min-height: 100vh;
    background: #1f2127;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

/* Header with BDG GAME and EN Selector */
.bdg-auth-topbar {
    height: 52px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #24262d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bdg-auth-back-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    padding: 4px;
}

.bdg-auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bdg-brand-ornament {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: -1px;
}

.ornament-bar {
    width: 22px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #e5b358, transparent);
}

.ornament-gem {
    color: #e5b358;
    font-size: 8px;
    line-height: 1;
}

.bdg-brand-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.8px;
    background: linear-gradient(180deg, #ffe7a3 0%, #e5b358 60%, #b88628 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bdg-auth-lang {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #d19a3b;
    cursor: pointer;
}

.lang-flag {
    font-size: 15px;
}

.lang-code {
    color: #caa049;
    font-size: 13px;
    font-weight: 800;
}

/* Body Content */
.bdg-auth-body {
    flex: 1;
    padding: 22px 18px 40px 18px;
}

.bdg-page-heading {
    font-size: 21px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.2px;
}

.bdg-sub-heading {
    font-size: 12px;
    color: #8c909e;
    margin: 0 0 2px 0;
}

.bdg-sub-heading-alert {
    font-size: 12px;
    color: #8c909e;
    margin: 0 0 18px 0;
}

/* Tabs Header */
.bdg-tabs-header {
    display: flex;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 22px;
}

.bdg-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 8px 10px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #8c909e;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.bdg-tab-btn.active {
    color: #f5c767;
}

.bdg-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1.5px;
    left: 20%;
    right: 20%;
    height: 2.5px;
    background: #f5c767;
    border-radius: 2px;
    box-shadow: 0 1px 6px rgba(245, 199, 103, 0.4);
}

.bdg-tabs-header.single-tab .bdg-tab-btn.active::after {
    left: 10%;
    right: 10%;
}

.tab-icon {
    font-size: 14px;
}

/* Input Fields & Sections */
.bdg-input-section {
    margin-bottom: 18px;
}

.bdg-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.label-icon {
    font-size: 15px;
    color: #caa049;
}

.bdg-phone-row {
    display: flex;
    gap: 8px;
}

.bdg-country-code-pill {
    background: #2b2d35;
    border-radius: 10px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.bdg-input-pill {
    background: #2b2d35;
    border-radius: 10px;
    padding: 3px 12px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bdg-input-pill.flex-1 {
    flex: 1;
}

.bdg-input-pill:focus-within {
    border-color: rgba(245, 199, 103, 0.4);
    box-shadow: 0 0 8px rgba(245, 199, 103, 0.15);
}

.bdg-field-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 9px 0;
}

.bdg-field-input::placeholder {
    color: #6a6e7c;
    font-size: 13px;
}

.bdg-input-pill.with-action {
    position: relative;
    padding-right: 36px;
}

.bdg-pwd-toggle {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: #8c909e;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color 0.2s ease;
}

.bdg-pwd-toggle.visible {
    color: #f5c767;
}

/* Options Row (Remember & Forgot) */
.bdg-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0 26px 0;
    font-size: 12.5px;
}

.bdg-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ea3b3;
    cursor: pointer;
    user-select: none;
}

.bdg-circle-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #caa049;
    cursor: pointer;
}

.bdg-forgot-link {
    color: #caa049;
    font-weight: 600;
    text-decoration: none;
    font-size: 12.5px;
}

.privacy-agreement-link {
    color: #e54b4b;
    text-decoration: none;
    font-weight: 600;
}

/* Solid Gold Pill Button */
.bdg-btn-gold {
    width: 100%;
    background: linear-gradient(180deg, #f0c377 0%, #caa049 55%, #b5832a 100%);
    color: #52370c;
    font-size: 15px;
    font-weight: 800;
    padding: 13px 18px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(181, 131, 42, 0.35);
    transition: transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bdg-btn-gold:active {
    transform: scale(0.98);
}

/* Outlined Gold Pill Button */
.bdg-btn-outline {
    width: 100%;
    background: transparent;
    color: #caa049;
    border: 1.5px solid #caa049;
    font-size: 14.5px;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
    box-sizing: border-box;
}

.bdg-btn-outline:active {
    background: rgba(202, 160, 73, 0.08);
}

/* ========================================================
   3. PROFILE & ACCOUNT SCREEN (Image 4)
   ======================================================== */
/* Deep warm black base for the profile screen */
body:has(.bdg-profile-container) {
    background-color: #050403 !important;
}
body:has(.bdg-profile-container) .app-container {
    background-color: #070604 !important;
}
/* Flat deep black here — the ambient art reads as glare behind the light cards */
body:has(.bdg-profile-container) .app-container::before {
    display: none;
}
.bdg-profile-container {
    padding-bottom: calc(var(--bottom-nav-height) + 24px);
    background: transparent;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-family);
    font-size: 12px;
    -webkit-font-smoothing: antialiased;
}

.bdg-profile-container.guest-preview {
    filter: blur(0px);
}

/* Champagne Profile Header — gold skin, bronze text */
.bdg-profile-header-card {
    background: linear-gradient(150deg, #e8cfa4 0%, #d8b27a 45%, #c39654 100%);
    padding: 24px 16px 54px 16px;
    border-radius: 0 0 24px 24px;
    border-bottom: 1.5px solid #d4a753;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.profile-header-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-avatar-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2.5px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(212, 167, 83, 0.6), 0 4px 12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    flex-shrink: 0;
    background: #ffffff;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info-wrap {
    flex: 1;
    min-width: 0;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.profile-username {
    font-size: 15px;
    font-weight: 700;
    color: #33260f;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
    font-family: var(--font-family);
}

.profile-vip-badge {
    background: linear-gradient(180deg, #35373f 0%, #23242b 100%);
    color: #ffd166;
    border: 1px solid rgba(212, 167, 83, 0.55);
    font-size: 10.5px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.vip-shield-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.profile-uid-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.profile-uid-tag {
    background: rgba(255, 255, 255, 0.55);
    color: #7a4f0a;
    font-size: 12px;
    font-weight: 600;
    padding: 2.5px 10px;
    border-radius: 20px;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(184, 150, 63, 0.55);
    font-family: var(--font-family);
}

.uid-copy-btn {
    background: transparent;
    border: none;
    color: #7a4f0a;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 1px;
    opacity: 0.95;
}

.profile-login-time {
    font-size: 12px;
    color: #5a4520;
    font-weight: 400;
    letter-spacing: normal;
    font-family: var(--font-family);
}

/* Luxury cream card — same skin as the home category tiles */
.bdg-card {
    background: linear-gradient(180deg, #f0dec0 0%, #dab98a 100%);
    border-radius: 16px;
    margin: 12px 14px;
    padding: 14px;
    border: 1.5px solid #d4a753;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45);
    color: #2f2718;
}

/* Total Balance Card overlapping the Golden Header */
.bdg-balance-card {
    margin: -32px 14px 12px 14px;
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.balance-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(184, 150, 63, 0.3);
}

.balance-label {
    font-size: 12px;
    color: #655636;
    font-weight: 400;
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-family);
}

.balance-num-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.balance-symbol {
    font-size: 19px;
    font-weight: 700;
    color: #2f2718;
    font-family: var(--font-family);
}

.balance-amount {
    font-size: 19.2px;
    font-weight: 700;
    color: #2f2718;
    letter-spacing: normal;
    font-family: var(--font-family);
}

.balance-refresh-btn {
    background: transparent;
    border: none;
    color: #655636;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    margin-left: 4px;
    transition: transform 0.4s ease;
}

.balance-refresh-btn.spinning {
    transform: rotate(360deg);
}

.btn-enter-wallet {
    background: linear-gradient(180deg, #3a3d46 0%, #23242b 100%);
    color: #ffd88a;
    border: 1px solid rgba(212, 167, 83, 0.6);
    font-size: 14.9px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease;
    white-space: nowrap;
    font-family: var(--font-family);
}

.btn-enter-wallet:active {
    transform: scale(0.96);
}

/* 4 Quick Actions — flat reference icons (no colored circle bg) */
.balance-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding-top: 14px;
    text-align: center;
}

.balance-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.action-icon-flat {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    background: none;
    box-shadow: none;
    border-radius: 0;
    transition: transform 0.15s ease;
}

.balance-action-item:active .action-icon-flat {
    transform: scale(0.94);
}

.bdg-ref-icon {
    width: 32px;
    height: 32px;
    display: block;
    /* Sprite art is recoloured to solid bronze (see account_icons.svg), so it
       reads on the cream cards without any shadow workaround. */
}

.action-label {
    font-size: 12px;
    font-weight: 500;
    color: #4a3d28;
    font-family: var(--font-family);
}

/* History 2x2 Grid */
.bdg-history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 14px;
}

.history-cell {
    background: linear-gradient(180deg, #f0dec0 0%, #dab98a 100%);
    border-radius: 14px;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border: 1.5px solid #d4a753;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease;
}

.history-cell:active {
    transform: scale(0.97);
}

.history-icon-flat {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.history-ref-icon {
    width: 40px;
    height: 40px;
}

.menu-ref-icon {
    width: 24px;
    height: 24px;
}

.service-ref-icon {
    width: 30px;
    height: 30px;
}

.history-text-col {
    display: flex;
    flex-direction: column;
}

.history-title {
    font-size: 14.9px;
    font-weight: 700;
    color: #2f2718;
    font-family: var(--font-family);
}

.history-sub {
    font-size: 12px;
    font-weight: 400;
    color: #655636;
    font-family: var(--font-family);
}

/* Menu List */
.bdg-menu-list {
    padding: 0;
}

.bdg-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(184, 150, 63, 0.26);
    transition: background-color 0.15s ease;
}

.bdg-menu-item:last-child {
    border-bottom: none;
}

.bdg-menu-item:active {
    background-color: rgba(212, 167, 83, 0.18);
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-gold-icon-box {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-label {
    font-size: 14.9px;
    font-weight: 600;
    color: #2f2718;
    font-family: var(--font-family);
}

.menu-item-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-extra-text {
    font-size: 12.5px;
    color: #655636;
    font-weight: 500;
}

.menu-notif-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(217, 36, 56, 0.45);
}

.menu-chevron {
    color: #b08948;
}

/* Service Center */
.bdg-service-card {
    padding: 16px 14px;
}

.service-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #2f2718;
    margin: 0 0 16px 0;
    font-family: var(--font-family);
}

.service-grid-3x2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 16px;
    column-gap: 8px;
    text-align: center;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.service-icon-wrap {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    transition: transform 0.15s ease;
}

.service-item:active .service-icon-wrap {
    transform: scale(0.92);
}

.service-name {
    font-size: 12px;
    font-weight: 500;
    color: #4a3d28;
    font-family: var(--font-family);
}

/* Outlined Log Out Button */
.bdg-logout-container {
    padding: 8px 14px 24px 14px;
}

.bdg-btn-logout {
    width: 100%;
    background: rgba(212, 167, 83, 0.07);
    border: 1.5px solid #d4a753;
    color: #e9c67c;
    border-radius: 30px;
    padding: 12px 16px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.15s ease;
}

.bdg-btn-logout:active {
    background-color: rgba(212, 167, 83, 0.18);
}

.logout-power-icon {
    color: #e9c67c;
}

/* ========================================================
   4. Bottom tabbar — bdg2.vip .tabbar__container
   ======================================================== */
.bdg-bottom-nav.tabbar__container,
.bdg-bottom-nav,
.bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: var(--app-max-width, 440px) !important;
    height: 62px !important;
    background: linear-gradient(180deg, #181510 0%, #0c0a07 100%) !important;
    border-top: 1px solid rgba(212, 167, 83, 0.45) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 230, 160, 0.15) !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: space-around !important;
    z-index: 1200 !important;
    padding: 0 !important;
    overflow: visible !important;
    font-family: 'Roboto', 'Inter', var(--font-family) !important;
}

.bdg-bottom-nav .nav-item,
.tabbar__container-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    text-decoration: none !important;
    color: #8c887f !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    padding: 0 0 6px 0 !important;
    flex: 1 !important;
    position: relative !important;
    height: 100% !important;
    transition: color 0.15s ease !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.bdg-bottom-nav .nav-item *,
.tabbar__container-item * {
    pointer-events: none;
}

/* Active tab top golden pill indicator */
.tabbar__container-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #f5c56d 0%, #d49f3e 100%);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 1px 6px rgba(245, 197, 109, 0.6);
}

.bdg-bottom-nav .nav-svg,
.bdg-bottom-nav .tab-svg {
    width: 23px !important;
    height: 23px !important;
    fill: currentColor !important;
    color: currentColor !important;
    margin-bottom: 3px !important;
    display: block !important;
}

.bdg-bottom-nav .nav-item.active,
.tabbar__container-item.active {
    color: #f5c56d !important;
}

.bdg-bottom-nav .nav-item.active .nav-svg,
.bdg-bottom-nav .nav-item.active .tab-svg {
    fill: currentColor !important;
    color: #f5c56d !important;
}

.nav-icon-wrap {
    position: relative;
    display: inline-block;
}

.nav-badge-dot,
.reddot {
    position: absolute;
    top: -1px;
    right: -2px;
    width: 7px;
    height: 7px;
    background: #fa5b5b;
    border-radius: 50%;
    border: 1.5px solid #181510;
}

/* Center raised turntable button */
.nav-center-promo {
    position: relative !important;
    flex: 1 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 0 0 6px 0 !important;
    overflow: visible !important;
    cursor: pointer !important;
}

.nav-wheel-disc {
    position: absolute;
    top: -38px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 76px !important;
    height: 76px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.nav-center-promo:active .nav-wheel-disc {
    transform: translateX(-50%) scale(0.92);
}

.bdg-bottom-nav .nav-wheel-disc svg.turntable-wheel-svg,
.nav-item .nav-wheel-disc svg.turntable-wheel-svg,
svg.turntable-wheel-svg {
    width: 100% !important;
    height: 100% !important;
    stroke: none !important;
    fill: initial !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 12px rgba(245, 197, 109, 0.45));
    transition: filter 0.25s ease, transform 0.2s ease;
}

.nav-center-promo:hover .turntable-wheel-svg,
.nav-center-promo.active .turntable-wheel-svg {
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 16px rgba(245, 197, 109, 0.7));
}

.turntable-text {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #f5c56d !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
    letter-spacing: -0.2px !important;
}

.wheel-outer-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: radial-gradient(circle, rgba(245, 199, 103, 0.5) 0%, rgba(217, 160, 48, 0.2) 60%, transparent 80%);
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
}

.wheel-disc {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ffdf79, #f5a623, #ffdf79, #e08b14, #ffdf79);
    padding: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slowWheelSpin 16s linear infinite;
}

@keyframes slowWheelSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.wheel-inner-hub {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #ff5e57 0%, #d63031 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffeaa7;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

.wheel-hub-icon {
    font-size: 15px;
    animation: counterSpin 16s linear infinite;
}

@keyframes counterSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.center-badge-text {
    font-size: 10.5px;
    font-weight: 900;
    color: #f5c767;
    margin-top: 1px;
    letter-spacing: -0.2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}





/* =============================================
   In-App Game Arena (reference-style container)
   ============================================= */
html:has(body.is-playing-game) {
    height: 100%;
    overflow: hidden;
}
body.is-playing-game {
    overflow: hidden;
    height: 100%;
    margin: 0;
    background: #0a0b10;
}
html:has(body.embed-game) {
    height: 100%;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
}
body.is-playing-game .app-container.is-game-play {
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--app-max-width, 440px);
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.85);
}
.game-arena {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    background: #0a0b10;
}
.game-arena-top {
    flex: 0 0 auto;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    background: linear-gradient(180deg, #1c1f2b 0%, #12141c 100%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 5;
}
.game-arena-back,
.game-arena-exit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}
.game-arena-back {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
}
.game-arena-exit {
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 16px;
    background: var(--primary);
}
.game-arena-meta {
    flex: 1;
    min-width: 0;
}
.game-arena-title {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: capitalize;
}
.game-arena-sub {
    font-size: 10px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-arena-bal {
    font-size: 11px;
    font-weight: 800;
    color: var(--gold-light);
    background: rgba(245,166,35,0.12);
    border: 1px solid rgba(245,166,35,0.35);
    border-radius: 14px;
    padding: 5px 10px;
    text-decoration: none;
    white-space: nowrap;
}
.game-arena-stage {
    flex: 1;
    position: relative;
    min-height: 0;
    background: #000;
}
.game-arena-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}
.game-arena-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0a0b10;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    transition: opacity .25s ease;
}
.game-arena-loading.is-hidden {
    opacity: 0;
    pointer-events: none;
}
.game-arena-spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.12);
    border-top-color: var(--primary);
    animation: arenaSpin .8s linear infinite;
}
@keyframes arenaSpin {
    to { transform: rotate(360deg); }
}

/* Embedded game pages (inside iframe) — stay inside arena, no breakout */
body.embed-game {
    background: #0d0e12;
    min-height: 100%;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
}
body.embed-game .app-container.is-embed {
    max-width: 100% !important;
    width: 100% !important;
    min-height: 100%;
    height: auto !important;
    overflow-y: visible !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
body.embed-game .page-content {
    padding: 6px 12px 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
body.embed-game .page-content.no-nav {
    padding-bottom: 14px !important;
}
body.embed-game .bottom-nav,
body.embed-game .app-header,
body.embed-game .event-rewards-overlay,
body.embed-game #event-rewards-modal {
    display: none !important;
}
body.embed-game .aviator-wrapper,
body.embed-game .roulette-wrap,
body.embed-game .ab-casino-wrap {
    max-width: 100%;
    padding-bottom: 8px;
}

/* All Games lobby  reference presence */
.all-games-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(135deg, #2a1520 0%, #151824 55%, #10131c 100%);
    padding: 16px;
}
.all-games-hero h2 {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    margin: 4px 0 2px;
}
.vendor-pill {
    flex: 0 0 auto;
    width: 86px;
    background: #1b1e2c;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 8px 6px;
    text-align: center;
    text-decoration: none;
    color: #fff;
}
.vendor-pill img {
    width: 54px;
    height: 28px;
    object-fit: contain;
    margin: 0 auto 4px;
    display: block;
}
.vendor-pill.active {
    border-color: rgba(217,36,56,0.7);
    box-shadow: 0 0 0 1px rgba(217,36,56,0.35);
}
.game-tile-ref {
    background: #1b1e2c;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease;
}
.game-tile-ref:active {
    transform: scale(0.98);
}
.game-tile-ref .thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #0f1118;
    overflow: hidden;
}
.game-tile-ref .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.game-tile-ref .thumb .vendor-tag {
    position: absolute;
    left: 6px;
    top: 6px;
    background: rgba(0,0,0,0.72);
    color: #ffd166;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.game-tile-ref .thumb .hot-tag {
    position: absolute;
    right: 6px;
    top: 6px;
    background: #e74c3c;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
}
.game-tile-ref .meta {
    padding: 8px;
}
.game-tile-ref .meta .name {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-tile-ref .meta .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3px;
}
.game-grid-ref {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
@media (max-width: 360px) {
    .game-grid-ref { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================================
   RESPONSIVE & SCROLLABLE SYSTEM OPTIMIZATIONS
   Ensures all cards, tabs, chips, carousels, and tables
   scroll smoothly on touch and mouse devices
   ======================================================== */

/* Horizontal scrollers: smooth touch & drag, no clipping */
.category-scroll,
.vendor-carousel,
.chip-grid,
.lottery-subfilter-row,
.vendor-pills-row,
.room-tabs,
.table-responsive,
.results-table-wrap,
[data-scroll="horizontal"] {
    display: flex;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important;
    touch-action: pan-x pan-y !important;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
    cursor: grab;
}

.category-scroll:active,
.vendor-carousel:active,
.chip-grid:active,
[data-scroll="horizontal"]:active {
    cursor: grabbing;
}

.category-scroll::-webkit-scrollbar,
.vendor-carousel::-webkit-scrollbar,
.chip-grid::-webkit-scrollbar,
.lottery-subfilter-row::-webkit-scrollbar,
.vendor-pills-row::-webkit-scrollbar,
.room-tabs::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.results-table-wrap::-webkit-scrollbar,
[data-scroll="horizontal"]::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Vertical scroll areas: smooth scroll & touch */
.deposit-bonus-list,
.results-table-container,
.history-table-wrap,
.live-stream-scroll,
.modal-content,
.bdg-popup-card {
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain;
}

/* Responsiveness across mobile screens (320px to 480px) */
@media (max-width: 380px) {
    :root {
        --header-height: 50px;
        --bottom-nav-height: 58px;
    }
    .page-content {
        padding: 8px;
        padding-bottom: calc(var(--bottom-nav-height) + 24px);
    }
    .showcase-card-title,
    .showcase-wide-title,
    .showcase-horiz-title {
        font-size: 11px !important;
    }
    .quick-action-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
    }
    .quick-action-label {
        font-size: 10px !important;
    }
    .lottery-rooms-grid {
        grid-template-columns: 1fr !important;
    }
    .podium-container {
        gap: 6px !important;
    }
    .podium-amount {
        font-size: 10.5px !important;
    }
}

/* Ensure images and media never cause horizontal page blowout */
img, svg, video, canvas {
    max-width: 100%;
}

/* Real 3D Coin Badge Styling */
.coin-icon {
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
    flex-shrink: 0;
}
.coin-icon-sm {
    width: 14px;
    height: 14px;
}
.coin-icon-md {
    width: 20px;
    height: 20px;
}
.coin-icon-lg {
    width: 24px;
    height: 24px;
}
.balance-with-coin {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 800;
}

/* ========================================================
   VICTORY GAME AUTHENTIC LUXURY GOLD THEME
   Matching User Reference Screenshot
   ======================================================== */
body {
    background-color: #060504 !important;
}

.app-container {
    background-color: #090705 !important;
    background-image: none !important;
    border-left: 1px solid rgba(212, 167, 83, 0.28) !important;
    border-right: 1px solid rgba(212, 167, 83, 0.28) !important;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.95), 0 0 25px rgba(212, 167, 83, 0.15) !important;
    /* ambient bg sits in ::before so it never tiles while scrolling */
}

/* Fixed ambient background — one cover image, no repeat-y tiling */
.app-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-max-width, 440px);
    height: 100vh;
    height: 100dvh;
    background-color: #090705;
    /* dark scrim over the art so bright highlights don't glare through content */
    background-image: linear-gradient(rgba(9, 7, 5, 0.74), rgba(9, 7, 5, 0.80)), url('../images/bg_victory.jpg');
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

/* Keep content above ambient bg, but NEVER override fixed chrome, modals, overlays, sheets or popups */
.app-container > *:not(.app-header):not(.bottom-nav):not(.bdg-bottom-nav):not(.bdg-deposit-bottom-bar):not(.modal-overlay):not(.bottom-sheet-overlay):not(.result-dialog-overlay):not(.wingo-lock-overlay):not(.account-sheet-overlay):not(.event-rewards-overlay):not(.victory-splash-overlay):not(.aviator-modal-overlay):not([class*="-overlay"]):not([class*="modal"]):not(#toast-container) {
    position: relative;
    z-index: 1;
}

/* Victory Game Header */
.victory-app-header {
    position: fixed !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: var(--app-max-width, 440px) !important;
    z-index: 1200 !important;
    background: linear-gradient(180deg, rgba(18, 14, 9, 0.98) 0%, rgba(10, 8, 5, 0.96) 100%) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1.5px solid rgba(212, 167, 83, 0.35) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7) !important;
    padding: 8px 12px !important;
    height: auto !important;
    min-height: var(--header-height) !important;
}

.victory-header-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.victory-header-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.7), 0 0 10px rgba(245, 197, 109, 0.35);
    border: 1.5px solid rgba(255, 230, 160, 0.45);
}

.victory-header-brand-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.victory-brand-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(180deg, #fff4cc 0%, #ffd066 35%, #d99a30 70%, #946110 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.6px;
    line-height: 1.1;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.8));
}

.victory-brand-tagline {
    font-size: 8.5px;
    color: #dfcdb5;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Stacked 2-Line Header Action Buttons (Matching BDG Reference Exactly) */
.victory-header-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.victory-header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 10px 3px 8px;
    width: 120px;
    height: 31px;
    border-radius: 10px;
    background: linear-gradient(180deg, #F6E3A2 0%, #EBD18B 50%, #DDBA6C 100%);
    border: 1px solid rgba(255, 245, 205, 0.65);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    color: #28231d;
    transition: transform 0.12s ease, filter 0.12s ease;
    box-sizing: border-box;
}

.victory-header-btn:hover, .victory-header-btn:active {
    transform: scale(0.98);
    filter: brightness(1.06);
}

.victory-header-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #28231d;
    flex-shrink: 0;
}

.victory-header-btn-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.15;
    text-align: center;
    flex: 1;
}

.victory-header-btn-text .victory-btn-line1 {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.1px;
    color: #28231d;
}

.victory-header-btn-text .victory-btn-line2 {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #201a14;
}

/* Sub-header Welcome Strip */
.victory-welcome-strip {
    background: linear-gradient(90deg, rgba(22, 17, 10, 0.9) 0%, rgba(35, 27, 16, 0.95) 50%, rgba(22, 17, 10, 0.9) 100%);
    border: 1px solid rgba(212, 167, 83, 0.3);
    border-radius: 20px;
    padding: 6px 14px;
    margin: 6px 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

/* Champagne Gold Marquee Announcement Bar */
.victory-marquee-row {
    background: linear-gradient(90deg, #fae7c8 0%, #eed2a2 100%);
    border: 1.5px solid #d4a753;
    border-radius: 24px;
    padding: 4px 8px 4px 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.victory-marquee-horn {
    font-size: 18px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.victory-marquee-text {
    color: #38250e;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.victory-detail-btn {
    background: linear-gradient(90deg, #e4b256 0%, #c78f2e 100%);
    color: #2b1a05;
    border: none;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 18px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}
.victory-detail-btn:active {
    transform: scale(0.96);
}

/* 3x3 Category Grid */
.victory-card-3grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.victory-card-2grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.victory-category-card {
    background: linear-gradient(180deg, #fffbf2 0%, #fae4be 100%);
    border: 1.5px solid #d4a753;
    border-radius: 16px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease, border-color 0.18s ease;
}
.victory-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(212, 167, 83, 0.5);
    border-color: #ffd875;
}
.victory-category-card:active {
    transform: scale(0.96);
}
.victory-category-card.active-cat {
    border-color: #f59e0b;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
}

.victory-card-stage {
    width: 100%;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    position: relative;
}

.victory-card-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}
.victory-category-card:hover .victory-card-img {
    transform: scale(1.08);
}

.victory-card-footer {
    width: 100%;
    height: 28px;
    background: linear-gradient(90deg, #1b1712 0%, #2b2218 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-radius: 0 0 14px 14px;
    border-top: 1px solid rgba(212, 167, 83, 0.3);
    justify-content: center;
}

.victory-card-title {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-align: center;
}

.victory-card-arrow {
    display: none !important;
}

/* Horizontal Widescreen Cards (Rummy, Fishing) */
.victory-card-horiz {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-radius: 16px;
    border: 1.5px solid #d4a753;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45);
    height: 70px;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease;
}
.victory-card-horiz:active {
    transform: scale(0.97);
}

.victory-card-rummy {
    background: linear-gradient(180deg, #fff7e6 0%, #fae0b2 100%);
}

.victory-card-fishing {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 50%, #00cec9 100%);
    border-color: #ffd166;
}

.victory-horiz-label {
    font-size: 14px;
    font-weight: 900;
    color: #1a1714;
    display: flex;
    align-items: center;
    gap: 4px;
}
.victory-card-fishing .victory-horiz-label {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Daily Rewards Strip */
.victory-daily-rewards-banner {
    background: linear-gradient(90deg, #14110b 0%, #291f11 50%, #14110b 100%);
    border: 1.5px solid #c9983e;
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.victory-rewards-btn {
    background: linear-gradient(90deg, #f3c46e 0%, #d99b33 100%);
    color: #2b1704;
    font-size: 11.5px;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    border: none;
    cursor: pointer;
}

/* Authentic Bottom Navigation & Center VIP Raised Button */
.bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1200 !important;
    background: linear-gradient(180deg, #18140e 0%, #0d0b08 100%) !important;
    border-top: 1.5px solid rgba(212, 167, 83, 0.45) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 230, 160, 0.15) !important;
}

/* Game arena / embed: chrome already custom — don't force page padding */
body.is-playing-game .page-content,
body.embed-game .page-content,
.app-container.is-game-play > .page-content {
    padding-top: 0 !important;
}

.nav-item {
    color: #a39583 !important;
}

.nav-item.active {
    color: #f5c56d !important;
}

.nav-item.active svg {
    stroke: #f5c56d !important;
}

.nav-item.active::after {
    background: #f5c56d !important;
    box-shadow: 0 2px 8px rgba(245, 197, 109, 0.6) !important;
}

.nav-center-vip {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: -12px;
}

.vip-glow {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 199, 103, 0.55) 0%, rgba(217, 160, 48, 0.2) 65%, transparent 80%);
    filter: blur(6px);
    pointer-events: none;
}

.vip-shield {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffea9f 0%, #d49b38 50%, #875c12 100%);
    border: 2px solid #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7), inset 0 2px 4px rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.vip-crown {
    font-size: 13px;
    line-height: 1;
    margin-bottom: -2px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

.vip-txt {
    font-size: 12px;
    font-weight: 900;
    color: #3b2405;
    letter-spacing: 0.5px;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.vip-pill-text {
    background: linear-gradient(90deg, #f3c46e 0%, #d99b33 100%);
    color: #2b1704;
    font-size: 9.5px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    margin-top: -6px;
    position: relative;
    z-index: 3;
    white-space: nowrap;
}

/* ===== bdg2.vip home section parity ===== */
.bdg-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 10px;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}
.bdg-section-bar {
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, #ffe89d 0%, #d49b38 100%);
    flex: 0 0 auto;
}
.bdg-games-list .lottery-subfilter-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.bdg-games-list .lottery-subfilter-row::-webkit-scrollbar { display: none; }
.bdg-games-list .lottery-subfilter {
    flex: 0 0 auto;
    background: #2a2a2a;
    color: #d4d4d4;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.bdg-games-list .lottery-subfilter.active {
    background: #3a3a3a;
    color: #fff;
}
.bdg-lottery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.bdg-lottery-tile {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    background: #181920;
    border: 1.5px solid rgba(212, 167, 83, 0.25);
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease, border-color 0.18s ease;
}
.bdg-lottery-tile:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 22px rgba(212, 167, 83, 0.35);
    border-color: #f0c56a;
}
.bdg-lottery-tile:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.bdg-lottery-thumb {
    aspect-ratio: 1 / 1;
    background: #0f1015;
    overflow: hidden;
    position: relative;
}
.bdg-lottery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}
.bdg-lottery-tile:hover .bdg-lottery-thumb img {
    transform: scale(1.08);
}
/* Game cards clean presentation without play button overlay */
.bdg-lottery-tile::after {
    display: none !important;
}
.lottery-rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
/* Lottery room tiles — same luxury card design as the cream/gold category cards */
.lottery-rooms-grid .bdg-lottery-tile {
    border-radius: 16px;
    border: 1.5px solid #d4a753;
    background: linear-gradient(180deg, #fffbf2 0%, #fae4be 100%);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}
.lottery-rooms-grid .bdg-lottery-tile:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 22px rgba(212, 167, 83, 0.4);
    border-color: #f0c56a;
}
.lottery-rooms-grid .bdg-lottery-thumb {
    aspect-ratio: 1 / 1.0;
    border-radius: 0;
    background: transparent;
    padding: 8px 8px 0 8px;
    box-sizing: border-box;
    overflow: hidden;
}
.lottery-rooms-grid .bdg-lottery-thumb img {
    border-radius: 10px;
    object-fit: cover;
    object-position: top center;
}
.lottery-rooms-grid .bdg-lottery-label {
    display: block !important;
    position: static;
    margin: 6px 8px 8px 8px;
    background: linear-gradient(180deg, #35373f 0%, #23242b 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    padding: 7px 4px;
    letter-spacing: 0.2px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bdg-lottery-label {
    background: linear-gradient(180deg, #f0c56a 0%, #c89332 100%);
    color: #1b1104;
    font-size: 11.5px;
    font-weight: 800;
    text-align: center;
    padding: 7px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}
.bdg-winners-block,
.bdg-earnings-block {
    margin-top: 8px;
}

/* ===== bdg2.vip luckyWinners + dailyProfitRank ===== */
.luckyWinners__container {
    margin: 14px 12.8px 10px;
    background: #333332;
    border-radius: 8px;
    padding: 12px 10px 6px;
    overflow: hidden;
}
.luckyWinners__title,
.luckyWinners__container > h1 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #f5f3f0;
    font-family: var(--font-family);
}
.luckyWinners__container-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 340px;
    overflow: hidden;
}
.luckyWinners__container-wrapper__item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 4px 0;
    animation: luckyWinnerFade 0.45s ease;
}
@keyframes luckyWinnerFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.luckyWinners__container-wrapper__item-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #242424;
}
.luckyWinners__container-wrapper__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.luckyWinners__container-wrapper__item-info {
    flex: 1;
    min-width: 0;
}
.luckyWinners__container-wrapper__item-info h1 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.luckyWinners__container-wrapper__item-winType {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.luckyWinners__container-wrapper__item-winType img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.luckyWinners__container-wrapper__item-winAmount {
    text-align: right;
    flex-shrink: 0;
    min-width: 96px;
}
.luckyWinners__container-wrapper__item-winAmount h1 {
    margin: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #d9ac4f;
}
.luckyWinners__container-wrapper__item-winAmount span {
    display: block;
    font-size: 10px;
    color: #a8a5a1;
    margin-top: 2px;
}

.dailyProfitRank {
    margin: 16px 12.8px 12px;
    padding-top: 8px;
}
.dailyProfitRank__title {
    font-size: 16px;
    font-weight: 700;
    color: #f5f3f0;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family);
}
.dailyProfitRank__title b {
    display: inline-block;
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: #d9ac4f;
}
.dailyProfitRank__content-topThree {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    min-height: 150px;
    margin-bottom: 12px;
    background: url('../images/rank/stage.png') center bottom / 100% auto no-repeat;
    padding-bottom: 18px;
    position: relative;
}
.dailyProfitRank__content-topThree__item {
    width: 31%;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.dailyProfitRank__content-topThree__item .rank-border {
    width: 64px;
    height: 64px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}
.dailyProfitRank__content-topThree__item .rank-border img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.rank-1 .rank-border { background-image: url('../images/rank/border1.png'); }
.rank-2 .rank-border { background-image: url('../images/rank/border2.png'); }
.rank-3 .rank-border { background-image: url('../images/rank/border3.png'); }
.dailyProfitRank__content-topThree__item .rank-crown,
.dailyProfitRank__content-topThree__item .rank-place {
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto;
}
.rank-1 .rank-crown { width: 46px; height: 44px; background-image: url('../images/rank/crown1.png'); margin-top: -8px; }
.rank-2 .rank-crown { width: 46px; height: 44px; background-image: url('../images/rank/crown2.png'); margin-top: -8px; }
.rank-3 .rank-crown { width: 46px; height: 44px; background-image: url('../images/rank/crown3.png'); margin-top: -8px; }
.rank-1 .rank-place { width: 72px; height: 17px; background-image: url('../images/rank/place1.png'); }
.rank-2 .rank-place { width: 72px; height: 17px; background-image: url('../images/rank/place2.png'); }
.rank-3 .rank-place { width: 72px; height: 17px; background-image: url('../images/rank/place3.png'); }
.dailyProfitRank__content-topThree__item > span {
    display: block;
    font-size: 12px;
    color: #f5f3f0;
    margin-top: 4px;
    font-family: var(--font-family);
}
.dailyProfitRank__content-topThree__item > span:last-child {
    color: #d9ac4f;
    font-weight: 700;
    font-size: 11.5px;
}
.dailyProfitRank__content-list {
    background: #333332;
    border-radius: 8px;
    padding: 4px 0;
}
.dailyProfitRank__content-list__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dailyProfitRank__content-list__item:last-child {
    border-bottom: none;
}
.dailyProfitRank__content-list__item .left-rank {
    width: 20px;
    color: #a8a5a1;
    font-size: 13px;
    font-weight: 500;
}
.dailyProfitRank__content-list__item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.dailyProfitRank__content-list__item .middle-name {
    flex: 1;
    color: #fff;
    font-size: 13px;
}
.dailyProfitRank__content-list__item .right-box {
    color: #d9ac4f;
    font-size: 12.5px;
    font-weight: 700;
}
.bdg-winners-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* Brand footer — shared shell element rendered by includes/footer.php on every
   normal page. It links back to the lobby and sits outside .page-content, so it
   clears the fixed tab bar on its own. */
.bdg-home-footer {
    display: block;
    text-align: center;
    padding: 28px 12px calc(var(--bottom-nav-height) + 26px);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.bdg-home-footer:active {
    opacity: 0.78;
    transform: scale(0.99);
}
.bdg-home-footer:hover .bdg-home-footer-name,
.bdg-home-footer:focus-visible .bdg-home-footer-name {
    text-shadow: 0 0 16px rgba(240, 197, 106, 0.5);
}
.bdg-home-footer:focus-visible {
    outline: 2px solid rgba(240, 197, 106, 0.6);
    outline-offset: 4px;
    border-radius: 12px;
}
.bdg-home-footer-tag {
    color: #f0c56a;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 14px;
}
.bdg-home-footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.bdg-home-footer-line {
    flex: 1;
    max-width: 72px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f0c56a, transparent);
}
.bdg-home-footer-name {
    color: #f0c56a;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
}

@media (prefers-reduced-motion: reduce) {
    .bdg-home-footer {
        transition: none;
    }
    .bdg-home-footer:active {
        transform: none;
    }
}

/* ===== Activity hub (bdg2.vip/#/activity) ===== */
body:has(.activity-page),
body:has(.activity-page) .app-container {
    background: #050403 !important;
}
body:has(.activity-page) .app-container::before {
    display: none;
}
.activity-page {
    background: #070604;
    margin: 0;
    padding: 0 0 calc(var(--bottom-nav-height) + 20px);
    min-height: calc(100vh - 10px);
    width: 100%;
    box-sizing: border-box;
}
/* Matches reference .activity-panel (~12.8px pad) */
.activity-panel {
    padding: 12.8px;
    box-sizing: border-box;
    width: 100%;
}
.activity-panel + .activity-panel,
.act-promo-list.activity-panel {
    padding-top: 0;
}
.act-top-brand {
    text-align: center;
    padding: 14px 12.8px 12px;
    /* Dark title band with gold hairline, same band language as the tiles */
    background: linear-gradient(180deg, #35373f 0%, #23242b 100%);
    border-bottom: 1.5px solid #d4a753;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}
.act-brand-logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(180deg, #ffe89d 0%, #d4a017 55%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-family);
}
.activity-banner.act-bonus-panel,
.act-bonus-panel {
    text-align: center;
    padding: 14px 12.8px 16px;
    margin: 12px 14px 0;
    background: linear-gradient(180deg, #f0dec0 0%, #dab98a 100%);
    border: 1.5px solid #d4a753;
    border-radius: 16px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45);
}
.act-bonus-cols {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-bottom: 12px;
}
.act-bonus-col {
    flex: 1;
    max-width: 160px;
    padding: 4px 8px;
}
.act-bonus-divider {
    width: 1px;
    background: rgba(122, 79, 10, 0.30);
    margin: 4px 0;
}
.act-bonus-label {
    font-size: 12px;
    font-weight: 400;
    color: #655636;
    margin-bottom: 4px;
    font-family: var(--font-family);
}
.act-bonus-value {
    font-size: 22px;
    font-weight: 700;
    color: #2f2718;
    font-family: var(--font-family);
}
.act-bonus-details-btn {
    display: inline-block;
    padding: 7px 22px;
    border-radius: 18px;
    border: 1px solid rgba(212, 167, 83, 0.6);
    color: #ffd88a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(180deg, #3a3d46 0%, #23242b 100%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    font-family: var(--font-family);
}

/* Reference .activity-panel-header.lg4 — PNG icon tiles */
.activity-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0;
    margin: 0;
}
.activity-panel-header .header-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 53.3px;
    text-decoration: none;
    color: inherit;
}
.activity-panel-header .header-item span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 400;
    color: #e6d3ae;
    text-align: center;
    line-height: 1.25;
    font-family: var(--font-family);
}
.act-badge-wrap {
    position: relative;
    width: 42.66px;
    height: 42.66px;
}
.activity-panel-header .bgcontainer {
    width: 42.66px;
    height: 42.66px;
    border-radius: 10.67px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 42.67px 42.67px;
    border: 1px solid rgba(212, 167, 83, 0.35);
    box-sizing: border-box;
}
.act-icon-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    border: 1px solid rgba(255, 245, 220, 0.5);
}

/* Reference .activity-panel-content feature cards */
.activity-panel-content {
    display: flex;
    justify-content: space-between;
    margin-top: 10.67px;
    gap: 10px;
}
.activity-panel-content .content-title {
    width: calc(50% - 5px);
    max-width: 182px;
    flex: 1;
    background: linear-gradient(180deg, #f0dec0 0%, #dab98a 100%);
    border: 1.5px solid #d4a753;
    border-radius: 12px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45);
    padding: 0 0 10.67px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    display: block;
}
.activity-panel-content .content-title img {
    width: 100%;
    height: auto;
    aspect-ratio: 342 / 200;
    object-fit: cover;
    display: block;
}
.activity-panel-content .content-para {
    font-size: 14.9px;
    font-weight: 700;
    color: #2f2718;
    padding: 8px 10.67px 0;
    font-family: var(--font-family);
}
.activity-panel-content .content-title p {
    font-size: 12px;
    font-weight: 400;
    color: #655636;
    padding: 2.67px 10.67px 0;
    line-height: 1.35;
    margin: 0;
    font-family: var(--font-family);
}
.act-promo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 8px;
}
.act-promo-card {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #f0dec0 0%, #dab98a 100%);
    border: 1.5px solid #d4a753;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45);
}
.act-promo-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    background: #2a2118;
}
.act-promo-label {
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
    color: #ffe8b0;
    background: linear-gradient(180deg, #35373f 0%, #23242b 100%);
}

/* ========================================================
   Start splash — bdg2.vip .start-page (10rem = app width)
   Always dark. The neon dice art, the gold wordmark and the
   letterbox band beside the 440px column all read far better on
   near-black than on the old gray/cream base.
   ======================================================== */
.victory-splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #05060a;
    display: flex;
    justify-content: center;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.start-page {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: var(--app-max-width);
    height: 100%;
    background:
        radial-gradient(130% 62% at 50% 6%, rgba(245, 166, 35, 0.16) 0%, rgba(245, 166, 35, 0) 62%),
        radial-gradient(100% 55% at 50% 100%, rgba(217, 36, 56, 0.15) 0%, rgba(217, 36, 56, 0) 68%),
        linear-gradient(180deg, #191c27 0%, #0d0e12 52%, #05060a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: min(44px, 10vw);
}

/* Vignette for depth, plus a gold hairline across the top edge */
.start-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 100% at 50% 50%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.58) 100%);
    pointer-events: none;
}

.start-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(245, 166, 35, 0) 0%, #f5a623 35%, #ffd166 50%, #f5a623 65%, rgba(245, 166, 35, 0) 100%);
    opacity: 0.75;
}

/* Keep the art above those two layers */
.start-page > * {
    position: relative;
    z-index: 1;
}

.victory-splash-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.start-page-dice {
    width: 9.01333em;
    height: 6.89333em;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    filter: drop-shadow(0 0.5em 1.5em rgba(0, 0, 0, 0.7));
    animation: splashRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both,
               splashFloat 3.4s ease-in-out 1.2s infinite;
}

.start-page-tag {
    font-weight: 700;
    font-size: 0.50667em;
    margin-top: 0.789em;
    padding: 0 0.263em;
    text-align: center;
    line-height: 1.3;
    background: linear-gradient(180deg, #fae59f 0%, #c49440 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fae59f;
    animation: splashFade 0.6s ease 0.3s both;
}

.start-page-logo {
    display: block;
    width: 7.2em;
    height: auto;
    margin-top: 2.13333em;
    object-fit: contain;
    filter: drop-shadow(0 2px 14px rgba(245, 166, 35, 0.35));
    animation: splashFade 0.6s ease 0.45s both;
}

/* Indeterminate gold progress rail - the splash only lives for ~2s */
.start-page-loader {
    width: 8.2em;
    height: 0.16em;
    margin-top: 1.5em;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    animation: splashFade 0.5s ease 0.6s both;
}

.start-page-loader-fill {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    transform-origin: left center;
    background: linear-gradient(90deg, #c49440 0%, #f5a623 45%, #ffd166 100%);
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.55);
    animation: splashProgress 1.45s cubic-bezier(0.45, 0.05, 0.35, 1) 0.45s both;
}

.start-page-note {
    margin-top: 0.62em;
    font-size: 0.3em;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    animation: splashFade 0.5s ease 0.75s both;
}

.start-page-note i {
    font-style: normal;
    opacity: 0;
    animation: splashDot 1.2s infinite;
}
.start-page-note i:nth-child(2) { animation-delay: 0.2s; }
.start-page-note i:nth-child(3) { animation-delay: 0.4s; }

@keyframes splashFade {
    from { opacity: 0; transform: translateY(0.3em); }
    to { opacity: 1; transform: none; }
}
@keyframes splashRise {
    from { opacity: 0; transform: translateY(0.9em) scale(0.94); }
    to { opacity: 1; transform: none; }
}
@keyframes splashFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.22em); }
}
@keyframes splashProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
@keyframes splashDot {
    0%, 60%, 100% { opacity: 0; }
    30% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .start-page-dice,
    .start-page-tag,
    .start-page-logo,
    .start-page-loader,
    .start-page-loader-fill,
    .start-page-note,
    .start-page-note i {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ========================================================
   Account Bottom Popup Sheet (Triggered on Account tab click)
   ======================================================== */
.account-sheet-overlay {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: none !important;
    align-items: flex-end !important;
    justify-content: center !important;
    z-index: 999999 !important;
    padding: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.account-sheet-overlay.active {
    display: flex !important;
    pointer-events: auto !important;
}

.account-sheet-card {
    width: 100%;
    max-width: var(--app-max-width, 440px);
    background: linear-gradient(180deg, #252835 0%, #151720 100%);
    border-radius: 22px 22px 0 0;
    border-top: 2px solid #f0c56a;
    padding: 16px 20px 28px 20px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.95);
    animation: slideUpSheet 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    margin: 0 auto;
    z-index: 1000000;
}

@keyframes slideUpSheet {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.account-sheet-handle {
    width: 44px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.22);
    margin: 0 auto 16px auto;
}

.account-sheet-header {
    text-align: center;
    margin-bottom: 20px;
}

.account-sheet-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 197, 106, 0.2) 0%, rgba(200, 147, 50, 0.05) 100%);
    border: 2px solid #f0c56a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    box-shadow: 0 4px 16px rgba(240, 197, 106, 0.25);
}

.account-sheet-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.account-sheet-subtitle {
    font-size: 12px;
    color: #9ea3b2;
    line-height: 1.5;
    padding: 0 10px;
    margin: 0;
}

.account-sheet-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-sheet-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 900;
    padding: 13px 20px;
    border-radius: 25px;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.account-sheet-btn:active {
    transform: scale(0.98);
}

.account-sheet-btn.btn-login {
    background: linear-gradient(90deg, #f7d070 0%, #f0a828 50%, #e8951a 100%);
    color: #3b2200;
    box-shadow: 0 4px 14px rgba(240, 168, 40, 0.35);
}

.account-sheet-btn.btn-register {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid #f0c56a;
    color: #f0c56a;
}

.account-sheet-cancel-btn {
    background: transparent;
    border: none;
    outline: none;
    color: #7d8190;
    font-size: 13px;
    font-weight: 600;
    padding: 8px;
    cursor: pointer;
    margin-top: 2px;
}

/* The gated-page sheet swaps its Cancel button for a home link */
a.account-sheet-cancel-btn {
    display: block;
    text-align: center;
    text-decoration: none;
}

/* ========================================================
   Guest lock panel — stands in for the page body when a gated
   page is opened without signing in (includes/guest_gate.php)
   ======================================================== */
body.guest-locked {
    overflow: hidden;
}

.guest-lock-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46vh;
}

.guest-lock-card {
    width: 100%;
    max-width: 340px;
    text-align: center;
    padding: 26px 20px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(240, 197, 106, 0.28);
    background: linear-gradient(180deg, #252835 0%, #15171f 100%);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}

.guest-lock-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin: 0 auto 14px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(240, 197, 106, 0.22) 0%, rgba(200, 147, 50, 0.05) 100%);
    border: 2px solid #f0c56a;
    box-shadow: 0 4px 16px rgba(240, 197, 106, 0.25);
}

.guest-lock-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.guest-lock-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.guest-lock-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guest-lock-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 900;
    padding: 13px 20px;
    border-radius: 25px;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.guest-lock-btn:active {
    transform: scale(0.98);
}

.guest-lock-btn.btn-login {
    background: linear-gradient(90deg, #f7d070 0%, #f0a828 50%, #e8951a 100%);
    color: #3b2200;
    box-shadow: 0 4px 14px rgba(240, 168, 40, 0.35);
}

.guest-lock-btn.btn-register {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid #f0c56a;
    color: #f0c56a;
}

@media (prefers-reduced-motion: reduce) {
    .guest-lock-btn,
    .account-sheet-btn {
        transition: none;
    }
    .guest-lock-btn:active,
    .account-sheet-btn:active {
        transform: none;
    }
}


