/* Hide sy-whatshelp chat widget */
#sy-whatshelp,
#menu-whatshelp,
.sywh-services,
.menu-sywh-services,
.sywh-open-services,
.menu-sywh-open-services {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

:root {
    --bg-body: #0a0e27;
    --bg-card: #111638;
    --bg-card-hover: #1a1f4a;
    --bg-section-alt: #0d1230;
    --bg-input: #1a1f4a;
    --bg-nav: #0d1230;
    --bg-bottom-nav: #111638;
    --primary: #f5a623;
    --primary-hover: #e6951a;
    --primary-rgb: 245, 166, 35;
    --secondary: #4a90d9;
    --accent: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --success: #2ecc71;
    --text-primary: #ffffff;
    --text-secondary: #8892b0;
    --text-muted: #5a6380;
    --border-color: #1e2456;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 70px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Header */
.top-header {
    background: var(--bg-nav);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.top-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

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

.top-header .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.top-header .logo img {
    height: 32px;
}

.top-header .logo .trust-badge {
    font-size: 11px;
    color: var(--success);
    background: rgba(39, 174, 96, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.top-header .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.top-header .btn-join {
    background: var(--primary);
    color: #000;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}

.top-header .btn-login {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.top-header .btn-login:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.desktop-nav a {
    padding: 8px 14px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--primary);
    background: rgba(245, 166, 35, 0.1);
}

/* Balance Badge */
.balance-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(39, 174, 96, 0.2);
    color: var(--success);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.balance-badge i {
    font-size: 12px;
}

/* Utility Classes */
.d-none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

.d-inline-flex {
    display: inline-flex !important;
}

@media (min-width: 576px) {
    .d-sm-inline-flex {
        display: inline-flex !important;
    }
}

@media (min-width: 768px) {
    .d-md-flex {
        display: flex !important;
    }
    
    .d-md-inline-flex {
        display: inline-flex !important;
    }
    
    .d-md-none {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .d-lg-flex {
        display: flex !important;
    }
    
    .d-lg-none {
        display: none !important;
    }
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.1), rgba(245, 166, 35, 0.05));
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.welcome-banner i {
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 15px;
    background: var(--bg-card);
}

.hero-section .carousel-item {
    height: 220px;
}

.hero-section .carousel-inner {
    border-radius: var(--radius);
    overflow: hidden;
}

.hero-section .hero-slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
}

.hero-section .hero-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
}

.hero-section .hero-content h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.hero-section .hero-content p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hero-section .hero-content .btn {
    background: var(--primary);
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Section Info Bar */
.section-info-bar {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 15px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-info-bar i {
    color: var(--primary);
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 15px;
    scrollbar-width: none;
}

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

.category-tab {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: auto;
    padding: 10px 16px;
    background: var(--bg-card);
    border-radius: 20px;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.category-tab:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.category-tab.active {
    background: var(--primary);
    color: #000;
}

.category-tab i {
    font-size: 14px;
}

.category-tab.hot {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
}

.category-tab.hot:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    color: #fff;
}

/* Card Styles */
.app-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 15px;
}

.app-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.app-card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.app-card-header .badge {
    background: var(--primary);
    color: #000;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

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

.game-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.trending-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trending-grid .game-item {
    flex: 1 1 calc(25% - 10px);
    min-width: 75px;
    max-width: calc(25% - 10px);
}

@media (max-width: 576px) {
    .trending-grid .game-item {
        flex: 1 1 calc(33.33% - 10px);
        max-width: calc(33.33% - 10px);
    }
}

@media (min-width: 768px) {
    .trending-grid .game-item {
        flex: 1 1 calc(20% - 10px);
        max-width: calc(20% - 10px);
    }
}

.game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
    background: var(--bg-body);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.game-item:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.game-item .game-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000;
}

.game-item span {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    color: var(--text-secondary);
}

/* Bonus Card */
.bonus-card {
    background: linear-gradient(135deg, #1a237e, #283593);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.bonus-card .badge-label {
    display: inline-block;
    background: rgba(245, 166, 35, 0.2);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.bonus-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.bonus-card p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.bonus-card .btn-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.bonus-card .btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.bonus-card .btn-primary {
    background: var(--primary);
    color: #000;
}

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

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 15px 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
}

.stat-card:nth-child(1)::before {
    background: var(--danger);
}

.stat-card:nth-child(2)::before {
    background: var(--accent);
}

.stat-card:nth-child(3)::before {
    background: var(--primary);
}

.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 18px;
}

.stat-card:nth-child(1) .stat-icon {
    background: rgba(231, 76, 60, 0.2);
    color: var(--danger);
}

.stat-card:nth-child(2) .stat-icon {
    background: rgba(39, 174, 96, 0.2);
    color: var(--accent);
}

.stat-card:nth-child(3) .stat-icon {
    background: rgba(245, 166, 35, 0.2);
    color: var(--primary);
}

.stat-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.stat-card span {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Favourites Section */
.favourites-banner {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.favourites-banner img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.favourites-banner .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.8), rgba(231, 76, 60, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.favourites-banner .overlay h4 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.favourites-banner .overlay p {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
}

/* Winners Section */
.winners-section {
    margin-bottom: 15px;
}

.winners-section .section-header {
    background: var(--primary);
    color: #000;
    padding: 10px 15px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.winners-section .section-header h4 {
    font-size: 14px;
    font-weight: 600;
}

.winners-section .section-header a {
    color: #000;
    font-size: 12px;
}

.winner-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

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

.winner-item .winner-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
}

.winner-item .winner-info {
    flex: 1;
}

.winner-item .winner-info h5 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.winner-item .winner-info p {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 0;
}

.winner-item .winner-amount {
    font-weight: 700;
    color: var(--accent);
    font-size: 14px;
}

/* Rates Table */
.rates-table {
    width: 100%;
    border-collapse: collapse;
}

.rates-table th {
    background: var(--bg-body);
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.rates-table td {
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

.rates-table tr:last-child td {
    border-bottom: none;
}

.rates-table .win-amount {
    color: var(--accent);
    font-weight: 600;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 15px;
    text-align: center;
}

.feature-card i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
}

.feature-card h5 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
}

.feature-card p {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 0;
}

/* Referral Banner */
.referral-banner {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.referral-banner .referral-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}

.referral-banner .referral-info h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.referral-banner .referral-info p {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 0;
}

.referral-banner .btn {
    background: var(--primary);
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Payment Methods */
.payment-methods {
    margin-bottom: 15px;
}

.payment-methods h4 {
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

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

.payment-item {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

.payment-item img {
    max-height: 30px;
    max-width: 80px;
    object-fit: contain;
}

/* Help Section */
.help-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
}

.help-section i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
}

.help-section h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.help-section p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.help-section .btn {
    background: var(--primary);
    color: #000;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* About Section */
.about-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 15px;
}

.about-section h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}

.about-section p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.about-section .links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-section .links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.about-section .links a i {
    color: var(--primary);
}

/* App Download Section */
.app-download-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.app-download-section .app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
    color: #000;
}

.app-download-section h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.app-download-section p {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.app-download-section .links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.app-download-section .links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
}

.app-download-section .links a i {
    color: var(--primary);
}

.app-download-section .btn {
    background: var(--primary);
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* CTA Section */
.cta-section {
    background: var(--primary);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
}

.cta-section h4 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.cta-section p {
    font-size: 12px;
    color: rgba(0,0,0,0.7);
    margin-bottom: 15px;
}

.cta-section .btn {
    background: #000;
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--bg-nav);
    padding: 30px 0 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.footer .footer-links a {
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition);
}

.footer .footer-links a:hover {
    color: var(--primary);
}

.footer .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.footer .social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer .social-links a:hover {
    background: var(--primary);
    color: #000;
}

.footer .footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.footer .footer-logo img {
    height: 28px;
}

.footer .footer-logo span {
    font-size: 16px;
    font-weight: 700;
}

.footer p {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.footer a {
    color: var(--text-secondary);
    font-size: 11px;
}

/* Bottom Navigation - Mobile Only */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-bottom-nav);
    border-top: 1px solid var(--border-color);
    display: none;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 5px 12px;
    color: var(--text-secondary);
    font-size: 10px;
    text-decoration: none;
    transition: var(--transition);
}

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

.bottom-nav .nav-item i {
    font-size: 18px;
}

.bottom-nav .nav-item.play-btn {
    background: var(--primary);
    color: #000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

.bottom-nav .nav-item.play-btn i {
    font-size: 22px;
}

/* Breadcrumb */
.breadcrumb-section {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.1), rgba(245, 166, 35, 0.05));
    padding: 20px 0;
    margin-bottom: 20px;
}

.breadcrumb-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.breadcrumb-section .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-section .breadcrumb-item a {
    color: var(--text-secondary);
    font-size: 13px;
}

.breadcrumb-section .breadcrumb-item.active {
    color: var(--primary);
    font-size: 13px;
}

/* Form Styles */
.form-control {
    line-height: 2.2 !important;
    background-color: var(--bg-input) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

.form--control {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    width: 100%;
    font-size: 15px;
    transition: var(--transition);
    min-height: 48px;
}

.form--control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}

.form-group {
    margin-bottom: 16px;
}

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

.input-group {
    display: flex;
    align-items: stretch;
    margin-bottom: 8px;
}

.input-group .input-group-text {
    background: var(--bg-input);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    min-width: 55px;
    font-size: 16px;
    font-weight: 600;
}

.input-group .form--control,
.input-group .form-control {
    border-radius: 0;
    flex: 1;
    min-width: 0;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 12px;
    font-size: 16px;
}

.input-group .input-group-text + .input-group-text,
.input-group .input-group-text:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border-left: 0;
    cursor: pointer;
}

.input-group .form--control + .input-group-text,
.input-group .form-control + .input-group-text {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border-left: 0;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn--base {
    background: var(--primary);
    color: #000;
}

.btn--base:hover {
    background: var(--primary-hover);
    color: #000;
}

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

.btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn--capsule {
    border-radius: 20px;
}

.btn--block {
    width: 100%;
}

/* Account Wrapper */
.account-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 15px;
}

.account-wrapper .title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.3;
}

/* Dashboard Cards */
.balance-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-radius: var(--radius);
    padding: 20px;
    color: #000;
    text-align: center;
}

.balance-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 5px;
}

.dashboard-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
}

.dashboard-card span {
    font-size: 12px;
    color: var(--text-secondary);
}

.dashboard-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 5px;
}

.dashboard-card .icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: var(--primary);
}

/* Alert Styles */
.alert {
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: var(--danger);
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.3);
    color: var(--warning);
}

/* Responsive */

/* Desktop */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .bottom-nav {
        display: none;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .bottom-nav {
        display: none;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .bottom-nav {
        display: flex !important;
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .game-grid.three-col {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .game-item {
        padding: 12px 8px;
    }
    
    .game-item .game-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .stats-section {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .account-wrapper {
        padding: 15px 12px;
    }
    
    .account-wrapper .title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .form--control {
        padding: 11px 12px;
        font-size: 16px;
    }
    
    .input-group .input-group-text {
        padding: 0 10px;
        min-width: 42px;
        font-size: 15px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .form-check-label {
        font-size: 13px;
    }
    
    .form-check-input {
        width: 18px;
        height: 18px;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 10px;
    }
    
    .d-flex.justify-content-between .text-end {
        text-align: left !important;
    }
    
    .top-header .logo .trust-badge {
        display: none;
    }
    
    .hero-section .carousel-item {
        height: 180px;
    }
    
    .hero-section .hero-content h2 {
        font-size: 16px;
    }
    
    .bonus-card h3 {
        font-size: 18px;
    }
    
    .stat-card h4 {
        font-size: 16px;
    }
    
    .desktop-nav {
        display: none !important;
    }
    
    .category-tabs {
        gap: 8px;
    }
    
    .category-tab {
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .game-item {
        padding: 10px 6px;
    }
    
    .game-item .game-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    
    .stats-section {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .stat-card {
        padding: 12px 8px;
    }
    
    .stat-card h4 {
        font-size: 15px;
    }
    
    .payment-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 380px) {
    .account-wrapper {
        padding: 12px 10px;
    }
    
    .account-wrapper .title {
        font-size: 15px;
    }
    
    .input-group {
        flex-wrap: nowrap;
    }
    
    .btn {
        padding: 11px 16px;
        font-size: 14px;
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.5);
}

@media (max-width: 767px) {
    .back-to-top {
        bottom: 85px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.preloader-container {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Modal */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 15px;
    flex-wrap: nowrap;
}

.modal-footer .btn-over,
.modal-footer .btn-selcet {
    white-space: nowrap;
    padding: 6px 16px;
    font-size: 12px;
    border-radius: 8px;
    margin: 0;
}

/* Table */
.table {
    color: var(--text-primary);
}

.table th {
    background: var(--bg-body);
    border-color: var(--border-color);
}

.table td {
    border-color: var(--border-color);
}

/* Game Modal Styles */
.modal-fullscreen {
    max-width: 100%;
    margin: 0;
}

.modal-fullscreen .modal-content {
    background: var(--bg-body);
    min-height: 100vh;
    border-radius: 0;
}

.modal-fullscreen .modal-header {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 15px;
}

.modal-fullscreen .modal-title {
    font-size: 16px;
    font-weight: 600;
}

.modal-fullscreen .modal-body {
    padding: 15px;
    overflow-y: auto;
}

.modal-fullscreen .btn-close {
    filter: invert(1);
}

/* Game Table Styles */
.table-responsive--md {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.kalyan-game .name {
    font-weight: 500;
}

.custom--table {
    width: 100%;
    border-collapse: collapse;
}

.custom--table th,
.custom--table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.custom--table th {
    background: var(--bg-body);
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.custom--table td {
    font-size: 14px;
}

/* Slide panel for game forms */
.slide {
    overflow-y: auto;
    padding: 15px;
}

/* Bid form styles */
.bid-form .form-group {
    margin-bottom: 12px;
}

.bid-form input[type="number"],
.bid-form input[type="text"] {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    width: 100%;
}

.bid-form .btn-submit {
    background: var(--primary);
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    width: 100%;
}

@media (max-width: 767px) {
    .modal-fullscreen .modal-body {
        padding: 10px;
    }
    
    .custom--table th,
    .custom--table td {
        padding: 10px 8px;
        font-size: 13px;
    }
}

/* Pagination */
.pagination .page-link {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

/* Verification Code */
.verification-code {
    position: relative;
}

.verification-code .boxes {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.verification-code .boxes span,
.verification-code .boxes .code-box {
    width: 48px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

.verification-code .boxes span.filled,
.verification-code .boxes .code-box.filled {
    border-color: var(--primary);
    background: rgba(245, 166, 35, 0.1);
}

.verification-code input:focus + .boxes span,
.verification-code input:focus + .boxes .code-box {
    border-color: var(--primary);
}

@media (max-width: 380px) {
    .verification-code .boxes span,
    .verification-code .boxes .code-box {
        width: 42px;
        height: 50px;
        font-size: 20px;
    }
}

/* Auth Page Fixes */
.account-form .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-form .form-check-input {
    margin-top: 0;
}

/* Prevent zoom on input focus for iOS */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* ============================================
   GAME MODAL BODY STYLES (matching basic template)
   ============================================ */

/* Total badge (btn-histoy) */
.btn-histoy {
    background-image: linear-gradient(to right, #f5a623 0%, #f0c040 51%, #f5a623 100%);
    margin: 2px;
    padding: 10px 10px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: #000;
    border-radius: 10px;
    display: block;
    font-weight: 600;
    font-size: 14px;
}

.btn-histoy:hover {
    background-position: right center;
    color: #000;
    text-decoration: none;
}

/* Custom Radio - Time Slot Buttons */
.custom-radio {
    position: relative;
    padding-left: 0;
    display: block;
    margin: 0;
}

.custom-radio input[type=radio] {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    cursor: pointer;
}

.custom-radio input {
    display: none;
}

.radio-btn {
    display: block;
    text-align: center;
    margin: 0;
    position: relative;
    background: linear-gradient(to right, #f5a623 0%, #f0c040 51%, #f5a623 100%);
    border-radius: 10px;
    color: #000;
    padding: 8px 4px;
    box-sizing: border-box;
    overflow: hidden;
}

.radio-btn > i {
    color: #fff;
    background-color: var(--accent);
    font-size: 20px;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) scale(3);
    border-radius: 50px;
    padding: 3px;
    transition: 0.2s;
    pointer-events: none;
    opacity: 0;
}

.custom-radio input:checked + .radio-btn {
    border: 1px solid var(--primary);
    background: linear-gradient(to right, #27ae60 0%, #93F9B9 51%, #27ae60 100%);
}

.custom-radio input:disabled + .radio-btn {
    border: 1px solid var(--danger);
    background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(231, 76, 60, 1) 0%, rgba(245, 147, 147, 1) 100%);
    color: #fff;
    opacity: 0.8;
}

.custom-radio input:checked + .radio-btn > i {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Bazar Content */
.bazar_content {
    text-align: center;
    padding: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bazar_content h5 {
    font-size: 12px;
    margin: 0px;
    font-weight: bold;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.bazar_content span {
    font-size: 11px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Card footer in modal */
.btn-selcet {
    background-image: linear-gradient(to right, #f5a623 0%, #f0c040 51%, #f5a623 100%);
    margin: 5px;
    padding: 10px 24px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: #000;
    border-radius: 10px;
    display: inline-block;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.btn-selcet:hover {
    background-position: right center;
    color: #000;
    text-decoration: none;
}

/* Close button (btn-over) */
.btn-over {
    background-image: linear-gradient(to right, #FF512F 0%, #DD2476 51%, #FF512F 100%);
    margin: 5px;
    padding: 10px 24px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: #fff;
    border-radius: 10px;
    display: inline-block;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.btn-over:hover {
    background-position: right center;
    color: #fff;
    text-decoration: none;
}

/* Selected button */
.btn-selected {
    background-image: linear-gradient(to right, #FF512F 0%, #DD2476 51%, #FF512F 100%);
    margin: 10px;
    padding: 5px 45px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: #fff;
    box-shadow: 0 0 20px #eee;
    border-radius: 10px;
    display: inline-block;
}

.btn-selected:hover {
    background-position: right center;
    color: #fff;
    text-decoration: none;
}

/* Card footer in modal */
.card-footer {
    background: var(--bg-nav) !important;
    border-top: 1px solid var(--border-color) !important;
}

/* Timeslot grid - 2 column layout */
.form-group {
    overflow: hidden;
}

.timeslot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    overflow: hidden;
    width: 100%;
}

.timeslot-grid .custom-radio {
    width: 100%;
    min-width: 0;
}

.timeslot-grid .radio-btn {
    width: 100%;
    padding: 8px 4px;
    box-sizing: border-box;
    min-width: 0;
}

/* Play Now button inside time slot */
.custom-btn.btn-7 {
    border: 1px solid var(--danger);
    background: var(--danger);
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Play Time Over / Today Off button */
.button.button-5 {
    background: rgba(231, 76, 60, 0.2);
    color: var(--danger);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    display: inline-block;
    border: 1px solid rgba(231, 76, 60, 0.4);
    white-space: nowrap;
}

@media screen and (min-width: 768px) {
    .timeslot-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Game form input-group-text inside modal */
.modal-body .input-group-text {
    background-color: var(--bg-input) !important;
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 16px;
    min-width: 55px;
    justify-content: center;
}

/* Game form point input */
.modal-body .form-control.point {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 16px;
    padding: 10px 12px;
}

.modal-body .form-control.point:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}

/* Game form slide container */
.slide {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
}

/* Submit button inside game form */
.modal-body #betSubmit .btn-submit,
.modal-body .bet-submit-btn,
.modal-body #submit {
    background: var(--primary) !important;
    color: #000 !important;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    width: 100%;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hide scrollbar in game modal */
.slide::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Mobile Header Inline */
.mobile-header {
    align-items: center;
    gap: 16px;
}

.mobile-header .balance-badge {
    background: rgba(255, 193, 7, 0.15);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    margin-right: 4px;
}

.mobile-nav-link {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    border-color: var(--primary);
    color: var(--primary);
}

.mobile-nav-link.text-danger {
    border-color: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.mobile-nav-link.text-danger:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
}
