/* 
LOCKED VERSION 
- UI & Core Logic Stable 
- DO NOT MODIFY 
- Date: 2026-01-07 
*/
:root {
    --gold: #d4af37;
    --gold-light: #f3d778;
    --gold-dark: #aa892c;
    --black-bg: #0f1f3a;
    --card-bg: #1f1f1f;
    --text-primary: #ffffff;
}

/* Profile Page Styles */
.profile-header-card {
    background-color: #1a233a;
    border-radius: 15px;
    color: white;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.online-payment-card {
    background-color: #1a233a;
    border-radius: 20px;
    min-height: 300px;
}

.btn-profile-action {
    background: linear-gradient(to bottom, #ffaa4d, #ff7e5f);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-withdraw {
    background: linear-gradient(to bottom, #8B5A5A, #5A3A3A);
}
.btn-recharge {
    background: linear-gradient(to bottom, #6C7A89, #4B5A69);
}
.btn-support {
    background: linear-gradient(to bottom, #00897B, #004D40);
}

.btn-profile-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

.action-card {
    border-radius: 15px;
    transition: transform 0.2s;
    min-height: 250px;
}

.action-card:hover {
    transform: translateY(-5px);
}

.action-card-withdraw {
    background: linear-gradient(to bottom, #8B5A5A, #5A3A3A);
}

.action-card-recharge {
    background: linear-gradient(to bottom, #6C7A89, #4B5A69);
}

.action-card-service {
    background: linear-gradient(to bottom, #00897B, #004D40);
}

.action-card-img-container {
    text-align: center;
    margin-top: 20px;
}

.action-card-img-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.menu-list {
    background-color: #21466d;
    border-radius: 15px;
    overflow: hidden;
}
.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.menu-item:last-child {
    border-bottom: none;
}
.menu-item .left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.menu-item:hover {
    background-color: #275278;
}
.menu-item i {
    color: var(--gold);
}

.menu-divider {
    height: 14px;
    background-color: #1b2940;
}


html, body {
    height: 100%;
}

body {
    background-color: var(--black-bg);
    color: var(--text-primary);
    font-family: 'Lato', 'Segoe UI', sans-serif;
    overflow: hidden;
}

/* VIP Page Styles */
.vip-banner {
    height: 250px;
    background-image: url('../images/vip_banner_placeholder.jpg');
    background-size: cover;
    background-position: center;
    background-color: #1a233a;
}

.vip-banner-overlay {
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
}

.vip-content {
    background-color: #f0f2f5;
    min-height: calc(100vh - 250px - 60px);
}

.vip-item {
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 5px solid transparent;
}

.vip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

.vip-badge {
    min-width: 120px;
    background: linear-gradient(to right, rgba(255,255,255,0.8), rgba(255,255,255,0));
    padding: 5px 10px;
    border-radius: 5px;
}

/* Utilities */
.text-gold { color: var(--gold) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-darker { background-color: #050505 !important; }
.layout-container { width: 100%; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.page-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.narrow-20 { width: calc(100% - 20px); margin: 0 auto; }
.page-title-divider {
    height: 1px;
    background-color: var(--gold);
    border-radius: 999px;
    margin: 0 0 16px;
}
.user-divider { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background-color: rgba(255,255,255,0.9); transform: translateX(-0.5px); }
.push-down-20 { margin-top: 20px; }
.push-down-25 { margin-top: 25px; }
.push-down-40 { margin-top: 40px; }
.push-down-60 { margin-top: 60px; }
.avatar-large { font-size: 5rem; }
.avatar-xl { font-size: 6rem; }
.id-text-lg { font-size: 1rem; }
.sink-5 { margin-top: 5px; }
.user-body-compact { position: relative; }
.user-stats2 .col-6 { padding-left: 28px; padding-right: 28px; }
.user-body-offset-25 { margin-top: 50px; }

/* User stats grid for symmetric layout */
.user-card-locked {
    width: 360px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.user-stats {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 320px;
    margin-top: 12px;
}
.user-stats .divider {
    width: 2px;
    height: auto;
    align-self: stretch;
    background: rgba(255,255,255,0.6);
}
.user-stats .stat {
    width: 140px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.user-stats .stat.left {
    align-items: flex-end;
    padding-right: 24px;
}
.user-stats .stat.right {
    align-items: flex-start;
    padding-left: 24px;
}
.user-stats .stat .label {
    font-size: 13px;
    color: #f5c542;
    line-height: 1;
    white-space: nowrap;
}
.user-stats .stat .value {
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}
.user-stats .stat-track {
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.btn-locked {
    width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    padding: 6px 12px;
}
.btn-action-red { 
    background-color: #ff4d4f; 
    color: #fff; 
    border-radius: 18px; 
    padding: 6px 18px; 
    border: none; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    white-space: nowrap; 
    min-width: 80px;
}
.btn-action-red i { margin-right: 6px; }
.btn-action-red:hover { background-color: #ff6b6b; color: #fff; }
.btn-action-red.btn-locked { 
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    color: #000;
    border: 1px solid var(--gold);
}
.btn-action-red.btn-locked i { color: #000; }
.btn-action-red.btn-locked:hover { 
    background: linear-gradient(180deg, #fff, var(--gold-light));
    color: #000;
}
.shift-right-5 { transform: translateX(6.3mm); will-change: transform; }
.sink-30 { transform: translateY(30px); will-change: transform; }
.shift-15 { margin-left: 15px; }

/* Dropdown hover styles */
.dropdown-item.hover-gold:hover {
    background-color: var(--gold);
    color: #000 !important;
}

.dropdown-item.hover-gold:focus {
    background-color: var(--gold);
    color: #000 !important;
}
/* Symmetric padding for columns around center divider */
.user-stats .col-6, .user-actions .col-6 { padding-left: 28px; padding-right: 28px; }
.action-btn { width: 140px; display: inline-block; box-sizing: border-box; }

@media (min-width: 992px) {
    .hero-left { width: calc(75% - 40px); margin-right: 10px; display: flex; }
    .hero-right { width: calc(25% + 30px); display: flex; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-left { width: calc(66.666% - 40px); margin-right: 10px; display: flex; }
    .hero-right { width: calc(33.333% + 30px); display: flex; }
}

/* Buttons */
.btn-gold {
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
    border: none;
    color: #000;
    font-weight: bold;
    transition: all 0.3s;
}
.btn-gold:hover {
    background: linear-gradient(180deg, #fff 0%, var(--gold-light) 100%);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}
.btn-outline-gold {
    border: 1px solid var(--gold);
    color: var(--gold);
}
.btn-outline-gold:hover {
    background-color: var(--gold);
    color: #000;
}

.btn-lang-gold {
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    color: #000;
    border: none;
    border-radius: 18px;
    padding: 6px 16px;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(212,175,55,0.45);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: lang-glow 2.2s infinite;
}
.btn-lang-gold i {
    color: #000;
}
@keyframes lang-glow {
    0% { box-shadow: 0 0 0 0 rgba(212,175,55,0.45); }
    70% { box-shadow: 0 0 0 10px rgba(212,175,55,0); }
    100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}

/* Navigation */
.nav-pills .nav-link {
    background-color: transparent;
    color: #888;
    border: 1px solid #333;
    border-radius: 50px;
    padding: 8px 20px;
    transition: all 0.3s;
}
.nav-pills .nav-link:hover {
    color: var(--gold);
    border-color: var(--gold);
}
.nav-pills .nav-link.active {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    color: #000;
    border: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.navbar-dark .navbar-nav .nav-link { 
    color: var(--gold);
}
.navbar-dark .navbar-nav .nav-link:hover { 
    color: var(--gold-light);
}
.navbar-dark .navbar-nav .nav-link.active { 
    color: var(--gold-light);
    font-weight: 700;
}

/* Game Card */
.game-card {
    background-color: var(--card-bg);
    border: 1px solid #333;
    transition: transform 0.3s, border-color 0.3s;
}
.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity 0.3s;
}
.game-card:hover .game-overlay {
    opacity: 1;
}

/* Marquee */
.marquee-content {
    animation: scroll 80s linear infinite;
    white-space: nowrap;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Announcement Bar */
.announcement-bar {
    background-color: #000;
    color: #fff;
    border-top: none;
    border-bottom: 1px solid #fff;
    height: 36px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.announcement-track {
    width: 100%;
    overflow: hidden;
}
.announcement-text {
    display: inline-block;
    padding-left: 100%;
}

/* Top Copyright Bar */
.top-copyright {
    text-align: center;
    color: #999;
    padding: 6px 0;
}

.copyright-text {
    color: #878484;
    font-size: 0.75rem;
}

/* Jackpot */
.text-shadow-gold {
    text-shadow: 0 0 10px var(--gold), 0 0 20px var(--gold-dark);
}
.bg-gold-gradient {
    background: radial-gradient(circle, var(--gold-dark) 0%, transparent 70%);
}

/* Top Bar */
.top-bar {
    background-color: #121e36;
    height: 20px;
    border-bottom: 1px solid #222;
}
.top-bar .container { height: 100%; }
.hover-gold:hover {
    color: var(--gold) !important;
}

/* Header inner layout */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* --- New Styles for Image Scaling --- */

/* Navbar Brand Image */
.navbar-brand img {
    height: auto; 
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

/* Banner / Carousel Images */
.banner-container {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #000;
    overflow: hidden;
}

.banner-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* User Panel Styles */
.user-panel {
    background-color: #0e1829;
    border-left: none;
    height: auto !important;
}
.bg-userpanel { background-color: #0e1829 !important; }

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .banner-container {
        height: auto;
    }
    .user-panel {
        min-height: 300px;
        border-left: none;
        border-top: 1px solid #333;
    }
}

/* Lottery Grid Section */
.lottery-card {
    background-color: #0f1c30;
    border: 1px solid #0f1c30;
    transition: all 0.3s ease;
    height: 220px;
    cursor: pointer;
}

.lottery-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.lottery-info {
    background: linear-gradient(90deg, #0f1c30 0%, #204060 100%);
    color: #ffffff;
}

.lottery-image {
    width: 110px;
    background-color: #000;
    flex-shrink: 0;
}

.lottery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Carousel fill parent height */
#mainCarousel,
#mainCarousel .carousel-inner,
#mainCarousel .carousel-item {
    height: 100%;
}

.home-hero {
    display: block;
    height: auto;
    overflow: hidden;
}
.hero-banner,
.hero-user {
    height: auto;
}
.hero-banner {
    width: 100%;
    margin-right: 0;
}
.hero-user {
    display: none;
}

.home-user-strip {
    background-color: #0f1c30;
    border-radius: 10px;
    border: 1px solid #1f334f;
}
.home-user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d4af37;
}
/* Header Buttons */
.btn-login-custom {
    background-color: #ffffff;
    color: #000000;
    border-radius: 8px;
    padding: 8px 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-login-custom:hover {
    background-color: #f0f0f0;
    color: #000000;
    transform: translateY(-2px);
}

.btn-register-custom {
    background-color: #ff6600;
    color: #ffffff;
    border-radius: 8px;
    padding: 8px 25px;
    font-weight: bold;
    text-decoration: none;
    margin-left: 10px;
    position: relative;
    overflow: hidden;
    animation: pulse-glow 2s infinite;
}

 .btn-register-custom:hover {
     background-color: #ff8533;
     color: #ffffff;
 }
 
 @keyframes pulse-glow {
     0% {
         box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.4);
     }
     70% {
         box-shadow: 0 0 0 10px rgba(255, 102, 0, 0);
     }
     100% {
         box-shadow: 0 0 0 0 rgba(255, 102, 0, 0);
     }
 }

/* Withdraw Page */
 .withdraw-header {
     height: 60px;
     background: linear-gradient(90deg, #0a0f1f 0%, #12264a 100%);
     border-bottom: 1px solid #1f3a66;
     color: #fff;
 }
 .withdraw-title {
     font-weight: 700;
     letter-spacing: 2px;
 }
 .withdraw-container {
     background-color: #f2f2f2;
     min-height: 500px;
 }
 .withdraw-card {
     width: calc(100% - 60px);
     margin: 0 30px;
     background-color: #ffffff;
     border-radius: 8px;
     border: 1px solid #e0e0e0;
 }
 .withdraw-input {
     background-color: #ffffff;
     border: 1px solid #e0e0e0;
     height: 42px;
 }
 .withdraw-input:focus {
     border-color: #ff6b6b;
     box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
 }
 .btn-save-withdraw {
     background-color: #ff4d4f;
     color: #fff;
     height: 42px;
     border-radius: 6px;
 }
 .btn-save-withdraw:disabled {
     opacity: 0.6;
 }
 
 /* Winners List */
 .winners-section {
     background-color: #14324d;
     border: 1px solid #14324d;
 }
 .winners-header {
     background: linear-gradient(90deg, #0f1c30 0%, #204060 100%);
     border-bottom: 1px solid rgba(255,255,255,0.1);
 }
 .winners-list {
     height: 280px;
     overflow: hidden;
     position: relative;
 }
 #winners-stream {
     transition: transform 0.6s ease;
 }
 .winner-item {
     background-color: #1a3f5f;
     border-bottom: 1px solid rgba(255,255,255,0.1);
     height: 56px;
 }
.winner-item:last-child {
    border-bottom: none;
}

.hall-card {
    background-color: #0f1c30;
    border: 1px solid #1f334f;
    border-radius: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
}
.hall-icon {
    width: 100%;
    position: relative;
    overflow: hidden;
}
.hall-icon::before {
    content: "";
    display: block;
    padding-top: 133.3333%;
}
.hall-icon img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hall-card-info {
    padding: 8px 6px 10px;
}
.hall-card:hover {
    border-color: var(--gold);
    /* transform: translateY(-5px); */
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.4); */
}
.hall-card:hover .hall-icon {
    /* transform: scale(1.08); */
    /* box-shadow: 0 0 12px rgba(212, 175, 55, 0.35); */
}
.bet-btn {
    background-color: #24364f;
    color: #dbe6f2;
    border: 1px solid #334a68;
    border-radius: 10px;
    padding: 14px;
}
.bet-btn.active {
    background-color: #14324d;
    border-color: var(--gold);
    color: #fff;
}
.bet-label { font-weight: 600; }
.bet-odds { font-size: 0.85rem; color: #9bb3c9; margin-top: 4px; }
.dice-icon { font-size: 28px; color: #ddd; margin: 0 6px; }

/* Custom Dice Styles - 3D Rounded Block */
.k3-dice {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    box-shadow: 
        inset 1px 1px 0 rgba(255,255,255,1),
        inset -1px -1px 2px rgba(0,0,0,0.1),
        0 2px 3px rgba(0,0,0,0.2);
    margin: 0 3px;
    vertical-align: middle;
    border: 1px solid #dcdcdc;
}

.k3-dice .pip {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #444, #000);
    box-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

/* Red pips for specific dice */
/* Face 1: Big red dot in center */
.k3-dice.face-1 .pip {
    background: radial-gradient(circle at 30% 30%, #ff6b6d, #ff4d4f);
    width: 8px;
    height: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 3px rgba(255, 77, 79, 0.4);
}

/* Face 4: All pips red */
.k3-dice.face-4 .pip {
    background: radial-gradient(circle at 30% 30%, #ff6b6d, #ff4d4f);
}

/* Pip Positions */
/* Face 2 */
.k3-dice.face-2 .pip:nth-child(1) { top: 3px; left: 3px; }
.k3-dice.face-2 .pip:nth-child(2) { bottom: 3px; right: 3px; }

/* Face 3 */
.k3-dice.face-3 .pip:nth-child(1) { top: 3px; left: 3px; }
.k3-dice.face-3 .pip:nth-child(2) { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.k3-dice.face-3 .pip:nth-child(3) { bottom: 3px; right: 3px; }

/* Face 4 */
.k3-dice.face-4 .pip:nth-child(1) { top: 2px; left: 2px; }
.k3-dice.face-4 .pip:nth-child(2) { top: 2px; right: 2px; }
.k3-dice.face-4 .pip:nth-child(3) { bottom: 2px; left: 2px; }
.k3-dice.face-4 .pip:nth-child(4) { bottom: 2px; right: 2px; }

/* Face 5 */
.k3-dice.face-5 .pip:nth-child(1) { top: 2px; left: 2px; }
.k3-dice.face-5 .pip:nth-child(2) { top: 2px; right: 2px; }
.k3-dice.face-5 .pip:nth-child(3) { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.k3-dice.face-5 .pip:nth-child(4) { bottom: 2px; left: 2px; }
.k3-dice.face-5 .pip:nth-child(5) { bottom: 2px; right: 2px; }

/* Face 6 */
.k3-dice.face-6 .pip:nth-child(1) { top: 2px; left: 2px; }
.k3-dice.face-6 .pip:nth-child(2) { top: 2px; right: 2px; }
.k3-dice.face-6 .pip:nth-child(3) { top: 50%; left: 2px; transform: translateY(-50%); }
.k3-dice.face-6 .pip:nth-child(4) { top: 50%; right: 2px; transform: translateY(-50%); }
.k3-dice.face-6 .pip:nth-child(5) { bottom: 2px; left: 2px; }
.k3-dice.face-6 .pip:nth-child(6) { bottom: 2px; right: 2px; }

.stake-input { width: 160px; }
.sink-40 { transform: translateY(40px); will-change: transform; }
.sink-50 { transform: translateY(50px); will-change: transform; }
.sink-200 { transform: translateY(200px); will-change: transform; }
.chip {
    width: 40px;
    height: 40px;
    background: radial-gradient(#d4af37, #b8860b);
    border: 2px dashed #fff;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    position: relative;
    cursor: grab;
    user-select: none;
    transition: transform 0.2s;
}
.chip:active {
    cursor: grabbing;
    transform: scale(1.1);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.modal-content-custom {
    background-color: white;
    padding: 20px 30px;
    border-radius: 4px;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    color: #333;
    font-family: sans-serif;
}
.modal-body-custom {
    margin-bottom: 20px;
}
.confirm-row {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}
.confirm-row .label {
    color: #666;
    font-weight: normal;
    display: inline-block;
    width: 80px;
}
.confirm-row .value {
    color: #333;
    font-weight: 500;
}
.modal-footer-custom {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}
.btn-custom {
    flex: 1;
    padding: 8px 0;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-cancel-custom {
    background-color: #f5f5f5;
    color: #333;
}
.btn-cancel-custom:hover {
    background-color: #e0e0e0;
}
.btn-submit-custom {
    background-color: #0d8496;
    color: white;
}
.btn-submit-custom:hover {
    background-color: #0b7282;
}
.chip-blue { background-color: #2d6cdf; color: #fff; }
.chip-blue:hover { background-color: #3b7ded; }
.chip-sm {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
}
.input-sm {
    width: 120px;
    height: 30px;
    font-size: 0.85rem;
    padding: 2px 8px;
}
.site-footer .text-light,
.site-footer small,
.site-footer a.text-light,
.site-footer i.text-light {
    color: #999a9b !important;
}

#meteor-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.meteor {
    position: absolute;
    width: 2px;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    opacity: 0;
    transform-origin: top left;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
    animation: meteor-fall 6s linear forwards;
}

@keyframes meteor-fall {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(45deg);
    }
    10% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-1200px, 800px) rotate(45deg);
    }
}

/* Mode Selection Buttons */
.btn-mode {
    background-color: #1a2a40;
    color: #9bb3c9;
    border: 1px solid #334a68;
}

.status-won { color: #00ff00 !important; }
.status-lost { color: #ff4d4d !important; }
.status-pending { color: #ffaa00 !important; }    border-radius: 20px;
    padding: 6px 16px;
    transition: all 0.2s;
}
.btn-mode:hover {
    background-color: #2b3b55;
    color: #fff;
}
.btn-mode.active {
    background-color: #1890ff;
    border-color: #1890ff;
    color: #fff;
    box-shadow: 0 0 8px rgba(24, 144, 255, 0.4);
}

/* Success Toast */
.success-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 25px 50px;
    border-radius: 10px;
    z-index: 10000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
.success-icon {
    width: 50px;
    height: 50px;
    border: 2px solid #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #4CAF50;
    font-size: 24px;
}

@media (max-width: 576px) {
    .banner-container {
        height: 220px;
    }
    .banner-container img {
        object-fit: cover;
    }
    .user-panel {
        min-height: auto;
        height: auto !important;
        padding: 12px;
    }
    .shift-right-5,
    .sink-30,
    .sink-40,
    .sink-50,
    .sink-200 {
        transform: none !important;
    }
    .winners-list {
        height: 200px;
    }
    .lottery-card {
        height: 160px;
    }
    .avatar-xl {
        font-size: 4rem;
    }
    .id-text-lg {
        font-size: 0.9rem;
    }
    #hall-grid > .col {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
    #hall-grid .hall-card .text-white {
        font-size: 0.8rem;
    }
    #hall-grid .hall-card .text-light.small {
        font-size: 0.72rem;
    }
    .hall-tabs .hall-tab {
        padding: 4px 10px;
        font-size: 12px;
        white-space: nowrap;
    }
    #result-balls {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 4px !important;
        max-width: 400px;
        margin: 0 auto;
    }
    #result-balls .lucky-ball {
        margin: 2px 4px;
    }
}

@media (max-width: 768px) {
    .d-flex.overflow-auto {
        flex-wrap: wrap !important;
        overflow: visible !important;
    }
    .d-flex:has(.btn-sub-category) {
        flex-wrap: wrap !important;
    }
    .nav-category {
        padding: 4px 8px !important;
        font-size: 0.85rem !important;
        margin-bottom: 6px !important;
        white-space: nowrap;
    }
    .btn-sub-category {
        padding: 2px 8px !important;
        font-size: 0.85rem !important;
        margin-bottom: 6px !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        max-height: 40px !important;
    }
    .navbar-nav {
        gap: 4px !important;
    }
    .navbar-nav .nav-link {
        padding: 4px 8px !important;
        font-size: clamp(10px, 2.8vw, 12px) !important;
        line-height: 1 !important;
    }
    .navbar-nav .nav-link i {
        margin-right: 0 !important;
        font-size: 14px !important;
    }
}

@media (max-width: 420px) {
    .navbar-brand img {
        max-height: 34px !important;
    }
    .navbar-nav .nav-link {
        padding: 3px 6px !important;
        font-size: clamp(9px, 3.2vw, 11px) !important;
    }
    .navbar-nav .nav-link i {
        font-size: 12px !important;
    }
}

@media (max-width: 360px) {
    .navbar-brand img {
        max-height: 32px !important;
    }
    .navbar-nav .nav-link {
        padding: 2px 6px !important;
        font-size: clamp(8px, 3.4vw, 10px) !important;
    }
    .navbar-nav .nav-link i {
        display: none !important;
    }
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: #133b5c;
    border-top: 2px solid #d4af37;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1100;
}

.navbar.sticky-top {
    z-index: 1100;
}
.mobile-bottom-nav .item {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.mobile-bottom-nav .item i {
    font-size: 16px;
    color: #d4af37;
}
main {
    padding-bottom: 64px;
}

/* Home layout adjustments */
.home-lottery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.home-grid-item {
    width: 100%;
}

/* Home mobile layout adjustments */
@media (max-width: 576px) {
    .hero-right {
        display: none !important;
    }
    .hero-user { 
        display: none !important; 
    }
    .home-hero { 
        height: auto; 
    }
    .hero-banner { 
        margin-right: 0; 
    }
    .home-actions {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .home-user-strip {
        flex-direction: row;
        align-items: center;
        gap: 4px;
        flex-wrap: nowrap;
    }
    .home-user-strip .home-user-avatar img {
        width: 32px;
        height: 32px;
    }
    .home-user-strip .text-white.small,
    .home-user-strip .text-warning.small {
        font-size: 12px;
    }
    .home-user-strip .btn {
        padding: 4px 10px;
        font-size: 12px;
        white-space: nowrap;
    }
    .home-action-btn {
        background: linear-gradient(180deg, var(--gold-light), var(--gold));
        color: #000;
        border: 1px solid var(--gold);
        border-radius: 10px;
        padding: 10px 6px;
        font-size: 12px;
        text-align: center;
        font-weight: 700;
        box-shadow: 0 0 10px rgba(212,175,55,0.4);
        animation: gold-pulse 2.2s infinite;
        text-decoration: none;
    }
    .home-action-btn:active { transform: scale(0.98); }
    @keyframes gold-pulse {
        0% { box-shadow: 0 0 0 0 rgba(212,175,55,0.55); }
        70% { box-shadow: 0 0 0 10px rgba(212,175,55,0); }
        100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
    }
    .home-lottery-grid {
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .site-footer { 
        display: none !important; 
    }
}

@media (max-width: 576px) {
    .game-navbar .play-group-btn #current-play-name,
    .game-navbar .play-group-btn .mx-1 {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .history-panel {
        max-width: 100%;
        margin: 10px auto;
        border-radius: 8px;
    }
    .history-row.header,
    .history-row {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    .history-row .history-issue,
    .history-row .history-time,
    .history-row .history-numbers {
        font-size: 0.75rem;
    }
    .history-row .dice-mini,
    .history-row .mini-dice {
        transform: scale(0.8);
        transform-origin: center;
    }
    .game-footer {
        padding: 3px 4px;
    }
    .game-footer .footer-content {
        max-width: 100%;
        gap: 4px;
    }
    .game-footer .btn-clear,
    .game-footer .btn-confirm {
        width: 44px !important;
        min-width: 44px !important;
        height: 24px !important;
        min-height: 24px !important;
        font-size: 0.7rem !important;
        border-radius: 4px;
    }
    .game-footer .bet-info-combined,
    .game-footer .bet-info-count {
        font-size: 0.78rem;
    }
    .game-footer .input-group-stack {
        gap: 4px;
    }
    .game-footer .input-amount {
        height: 26px;
        font-size: 0.8rem;
        padding: 2px 6px;
    }
    .game-footer .quick-amounts {
        gap: 3px;
    }
    .game-footer .quick-amounts .quick-btn {
        padding: 0 2px;
        font-size: 0.65rem;
        min-width: 26px;
    }
    body.lang-vi .game-footer .quick-amounts .quick-btn[data-translate="action_all_in"] {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 0.6rem;
        line-height: 1.1;
    }
}
