/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0a0a0a;
    overflow-x: hidden;
}

/* Touch-friendly interaction */
button, 
.btn, 
.country-btn, 
.whatsapp-btn, 
.quick-btn, 
.qr-btn, 
.btn-promo, 
.contact-method,
.game-category,
.slot-provider,
.promo-card {
    -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    min-height: 44px; /* Apple's recommended minimum touch target */
    position: relative;
}

/* Prevent zoom on input focus on iOS */
input, 
select, 
textarea {
    font-size: 16px;
    border-radius: 8px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.95) 0%, rgba(10, 10, 20, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 2px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header.scrolled {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.98) 0%, rgba(10, 10, 20, 1) 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    border-bottom: 2px solid rgba(255, 215, 0, 0.8);
}

.navbar {
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 70px;
    position: relative;
}

.nav-logo .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    width: 200px;
    height: 50px;
}

.nav-logo .logo-container:hover {
    transform: none;
}

.logo-image {
    height: 200px;
    width: auto;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    left: 0;
}

.logo-image:hover {
    box-shadow: none;
    transform: translateY(-50%);
}



.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.nav-link:hover {
    color: #FFD700;
    text-shadow: 0 1px 8px rgba(255, 215, 0, 0.6);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-selector select {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 46, 0.95) 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 215, 0, 0.8);
    padding: 12px 40px 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    appearance: none;
    background-image: 
        linear-gradient(45deg, transparent 50%, #FFD700 50%),
        linear-gradient(135deg, #FFD700 50%, transparent 50%);
    background-position: 
        calc(100% - 25px) calc(1em + 2px),
        calc(100% - 20px) calc(1em + 2px);
    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
}

.language-selector select option {
    background: #ffffff;
    color: #000000;
    padding: 12px 16px;
    font-weight: 600;
    border: none;
    text-shadow: none;
}

.language-selector select option:hover {
    background: #f0f0f0;
    color: #000000;
    text-shadow: none;
}

.language-selector select option:checked {
    background: #e0e0e0;
    color: #000000;
    font-weight: 700;
    text-shadow: none;
}

.language-selector select:hover {
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
    color: #FFD700;
}

.language-selector select:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

.btn-login,
.btn-register {
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    font-size: 14px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.btn-login {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 46, 0.95) 100%);
    color: #FFD700;
    border: 2px solid #FFD700;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: 800;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    background: linear-gradient(145deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(255, 215, 0, 0.4),
        0 0 20px rgba(255, 215, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.btn-register {
    background: linear-gradient(145deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: 2px solid transparent;
    box-shadow: 
        0 4px 15px rgba(255, 165, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-register:hover::before {
    left: 100%;
}

.btn-register:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(255, 215, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #FFD700;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Country Selection */
.country-selection {
    text-align: center;
    margin-bottom: 80px;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 46, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 60px 40px;
    border: 2px solid #FFD700;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 215, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.country-selection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 165, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.country-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 3px 15px rgba(255, 215, 0, 0.8),
        0 1px 3px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 1;
}

.country-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.country-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: 20px;
    padding: 25px 35px;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 280px;
    position: relative;
    overflow: hidden;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.9),
        0 1px 3px rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.country-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.6s ease;
}

.country-btn:hover::before {
    left: 100%;
}

.country-btn:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #FFD700;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.1) 100%);
    box-shadow: 
        0 20px 40px rgba(255, 215, 0, 0.4),
        0 0 20px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.country-btn.singapore {
    background: linear-gradient(145deg, rgba(220, 38, 38, 0.15) 0%, rgba(185, 28, 28, 0.1) 100%);
    border-color: rgba(220, 38, 38, 0.6);
}

.country-btn.singapore:hover {
    border-color: #dc2626;
    background: linear-gradient(145deg, rgba(220, 38, 38, 0.25) 0%, rgba(185, 28, 28, 0.15) 100%);
    box-shadow: 
        0 20px 40px rgba(220, 38, 38, 0.4),
        0 0 20px rgba(220, 38, 38, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.country-btn.malaysia {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-color: rgba(59, 130, 246, 0.6);
}

.country-btn.malaysia:hover {
    border-color: #3b82f6;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.15) 100%);
    box-shadow: 
        0 20px 40px rgba(59, 130, 246, 0.4),
        0 0 20px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.flag-image-large {
    width: 50px;
    height: 35px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.country-btn i {
    font-size: 1.5rem;
    color: #FFD700;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.whatsapp-support {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(145deg, #25D366 0%, #128C7E 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 18px 35px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 260px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 8px 25px rgba(37, 211, 102, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-align: center;
    animation: aggressive-bop 1s ease-in-out infinite;
    position: relative;
    overflow: visible;
}

/* Aggressive bopping animation */
@keyframes aggressive-bop {
    0%, 100% {
        transform: scale(1) translateY(0);
        box-shadow: 
            0 8px 25px rgba(37, 211, 102, 0.3),
            0 0 20px rgba(37, 211, 102, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    25% {
        transform: scale(1.15) translateY(-3px);
        box-shadow: 
            0 12px 40px rgba(37, 211, 102, 0.5),
            0 0 50px rgba(37, 211, 102, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(0.95) translateY(2px);
        box-shadow: 
            0 6px 20px rgba(37, 211, 102, 0.3),
            0 0 15px rgba(37, 211, 102, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    75% {
        transform: scale(1.1) translateY(-2px);
        box-shadow: 
            0 10px 35px rgba(37, 211, 102, 0.5),
            0 0 45px rgba(37, 211, 102, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.whatsapp-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(37, 211, 102, 0.6),
        0 0 50px rgba(37, 211, 102, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    animation-play-state: paused;
}

.whatsapp-btn:hover i {
    animation-play-state: paused;
    transform: scale(1.3) rotate(10deg);
}

.whatsapp-btn i {
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: whatsapp-blink 1s ease-in-out infinite;
}

/* WhatsApp icon aggressive blinking animation */
@keyframes whatsapp-blink {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.4) rotate(-10deg);
    }
    50% {
        opacity: 1;
        transform: scale(0.8) rotate(5deg);
    }
    75% {
        opacity: 0.9;
        transform: scale(1.3) rotate(-5deg);
    }
}

.flag-image-small {
    width: 28px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

/* Better centering for WhatsApp button text */
.whatsapp-btn span {
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

/* CITIBET Logo Section */
.citibet-logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0;
    padding: 20px;
}

.citibet-logo-image {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
}

.citibet-logo-image:hover {
    transform: scale(1.05) translateY(-5px);
    filter: drop-shadow(0 10px 20px rgba(255, 0, 0, 0.3));
}

/* Horse Account Button Styles */
.whatsapp-btn.horse-account {
    background: linear-gradient(145deg, #28a745 0%, #218838 100%);
    flex-direction: column;
    gap: 8px;
    padding: 20px 30px;
    min-width: 280px;
    position: relative;
    overflow: hidden;
}

.whatsapp-btn.horse-account .citibet-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ff0000;
    text-shadow: 
        2px 2px 0 #fff,
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
        0 0 10px rgba(255, 0, 0, 0.5);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.whatsapp-btn.horse-account .button-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.whatsapp-btn.horse-account .chinese-text {
    font-weight: 700;
    font-size: 1.2rem;
}

.whatsapp-btn.horse-account .dash {
    color: rgba(255, 255, 255, 0.7);
}

.whatsapp-btn.horse-account:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(40, 167, 69, 0.4),
        0 0 20px rgba(40, 167, 69, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Add green circle indicator */
.whatsapp-btn.horse-account::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #00ff00;
    border-radius: 50%;
    top: 15px;
    right: 15px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px rgba(0, 255, 0, 0.8); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 0, 1); }
    100% { box-shadow: 0 0 10px rgba(0, 255, 0, 0.8); }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        #0a0a0a 0%, 
        #1a1a2e 25%, 
        #16213e 50%, 
        #1a1a2e 75%, 
        #0a0a0a 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
    z-index: -1;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Gaming particles animation */
.floating-elements::before {
    content: '♠ ♥ ♦ ♣ 🎰 🎲 💎 ⭐';
    position: absolute;
    font-size: 20px;
    color: rgba(255, 215, 0, 0.1);
    animation: floatingParticles 20s linear infinite;
    white-space: nowrap;
    letter-spacing: 100px;
    top: 20%;
}

.floating-elements::after {
    content: '💰 🃏 🎯 🏆 ⚡ 🔥 💫 ✨';
    position: absolute;
    font-size: 24px;
    color: rgba(255, 165, 0, 0.08);
    animation: floatingParticles 25s linear infinite reverse;
    white-space: nowrap;
    letter-spacing: 120px;
    top: 60%;
}

@keyframes floatingParticles {
    0% { transform: translateX(-100vw) rotate(0deg); }
    100% { transform: translateX(100vw) rotate(360deg); }
}

/* Enhanced Animations */
.animate-in {
    animation: bounceIn 0.8s ease-out forwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Glowing pulse animation for buttons */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 165, 0, 0.4); }
}

.btn-primary:hover {
    animation: glow 2s ease-in-out infinite;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

.floating-card {
    position: absolute;
    width: 60px;
    height: 80px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border-radius: 8px;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: -2s;
}

.card-2 {
    top: 60%;
    right: 15%;
    animation-delay: -4s;
}

.card-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: -1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 120px 0 60px;
}

.hero-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.6);
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.3));
}

.highlight {
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF6B35);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 215, 0, 0.1);
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    font-size: 14px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
    text-decoration: none;
}

.btn-large {
    padding: 18px 35px;
    font-size: 18px;
}

.btn-primary {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #FFD700;
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.trust-indicators {
    display: flex;
    gap: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.trust-item i {
    color: #FFD700;
    font-size: 18px;
}

/* Gaming Showcase */
.gaming-showcase {
    position: relative;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.game-preview {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-preview:hover {
    transform: translateY(-10px);
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
}

.game-preview i {
    font-size: 2.5rem;
    color: #FFD700;
    margin-bottom: 15px;
    display: block;
}

.game-preview span {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

/* Game Categories */
.game-categories {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 
        0 3px 15px rgba(255, 215, 0, 0.8),
        0 1px 5px rgba(0, 0, 0, 0.9),
        0 0 25px rgba(255, 215, 0, 0.4);
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.game-category {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.game-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.game-category:hover::before {
    left: 100%;
}

.game-category:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: #FFD700;
    background: linear-gradient(145deg, 
        rgba(255, 215, 0, 0.15) 0%, 
        rgba(255, 165, 0, 0.1) 100%);
    box-shadow: 
        0 25px 50px rgba(255, 215, 0, 0.3),
        0 0 30px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.category-header {
    margin-bottom: 20px;
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2.5rem;
    color: #fff;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.category-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(-45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.game-category:hover .category-icon {
    transform: rotate(10deg) scale(1.1);
}

.game-category:hover .category-icon::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(-45deg); }
    100% { transform: translateX(100%) rotate(-45deg); }
}

.sports-bg { background: linear-gradient(45deg, #00C851, #007E33); }
.casino-bg { background: linear-gradient(45deg, #FF6B35, #FF3D00); }
.slots-bg { background: linear-gradient(45deg, #8E24AA, #5E35B1); }
.fishing-bg { background: linear-gradient(45deg, #00BCD4, #0097A7); }
.esports-bg { background: linear-gradient(45deg, #E91E63, #AD1457); }
.fastgames-bg { background: linear-gradient(45deg, #FF9800, #F57C00); }
.cockfight-bg { background: linear-gradient(45deg, #FF5722, #D84315); }
.horse-bg { background: linear-gradient(45deg, #795548, #5D4037); }

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.game-category p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.category-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.category-features span {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.category-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.category-btn:hover::before {
    width: 300px;
    height: 300px;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

/* Slots Showcase */
.slots-showcase {
    padding: 100px 0;
    background: linear-gradient(135deg, #16213e 0%, #0f0f23 100%);
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.slot-provider {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.slot-provider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.slot-provider:hover::before {
    left: 100%;
}

.slot-provider:hover {
    transform: translateY(-10px);
    border-color: #FFD700;
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

.provider-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: #000;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.slot-provider h4 {
    color: #FFD700;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.slot-provider p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.slot-games {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.slot-games span {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.slots-cta {
    text-align: center;
}

/* Quick Access */
.quick-access {
    padding: 60px 0;
    background: #000;
}

.quick-actions h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 800;
    text-shadow: 
        0 2px 8px rgba(255, 215, 0, 0.6),
        0 1px 3px rgba(0, 0, 0, 0.8);
}

.quick-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 25px 20px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-decoration: none;
}

.quick-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-5px);
    border-color: #FFD700;
}

.quick-btn i {
    font-size: 2rem;
    color: #FFD700;
}

.quick-btn span {
    font-weight: 500;
    font-size: 14px;
}

/* Promotions */
.promotions {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.promo-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.main-promo {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}



.promo-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #FF6B35, #FF3D00);
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.promo-icon {
    position: absolute;
    top: 15px;
    right: 70px;
    font-size: 32px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
    opacity: 0.8;
    z-index: 1;
}

.promo-card:hover {
    transform: translateY(-10px);
    border-color: #FFD700;
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

.promo-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    padding-right: 20px;
    white-space: normal;
    overflow: visible;
    text-overflow: none;
    line-height: 1.3;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.promo-amount {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.promo-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-promo {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #0a0a0a;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
    transform: translateX(10px);
}

.method-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
    flex-shrink: 0;
}

.method-icon.whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: #fff;
}

.method-info h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.method-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
    margin: 0;
}

.method-status {
    color: #FFD700;
    font-size: 12px;
    font-weight: 500;
}

.download-app {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-app h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.download-app p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    justify-content: center;
}

.app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.app-btn i {
    font-size: 1.2rem;
}

/* QR Code Section */
.qr-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    position: relative;
    overflow: hidden;
}

.qr-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.qr-card {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.qr-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-card:hover::before {
    opacity: 1;
}

.qr-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.2);
}

.qr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.qr-flag {
    width: 40px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.qr-header h3 {
    color: #FFD700;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.qr-code-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.qr-code {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
}

.qr-description {
    color: #cccccc;
    font-size: 14px;
    margin: 20px 0 30px 0;
    line-height: 1.5;
}

.qr-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.qr-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
}

.qr-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.qr-btn:hover i {
    transform: translateX(3px);
}

/* Mobile responsiveness for QR section */
@media (max-width: 768px) {
    .qr-section {
        padding: 60px 0;
    }
    
    .qr-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
        padding: 0 20px;
    }
    
    .qr-card {
        padding: 30px 20px;
    }
    
    .qr-header h3 {
        font-size: 20px;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
    }
    
    .qr-btn {
        min-width: 180px;
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* Footer */
.footer {
    background: #000;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    padding: 60px 0 30px;
}

.footer-content {
    margin-bottom: 40px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-image {
    height: 50px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-section h4 {
    color: #FFD700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-section a:hover {
    color: #FFD700;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.footer-certificates {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.cert-item i {
    color: #FFD700;
    font-size: 16px;
}

.footer-legal {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.6;
}



/* Mobile Navigation */
.nav-menu.active {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding-top: 50px;
    z-index: 999;
}

/* Desktop styles - hide hamburger menu and mobile buttons */
@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important;
    }
    
    .mobile-menu-buttons {
        display: none !important;
    }
}

/* Tablet optimization (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-container {
        padding: 0 25px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 15px;
    }
    
    .btn-login,
    .btn-register {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .language-selector select {
        padding: 10px 35px 10px 14px;
        font-size: 13px;
    }
    

}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Enhanced Mobile Optimization */
@media (max-width: 768px) {
    /* Base container adjustments */
    .container {
        padding: 0 20px;
        max-width: 100%;
    }
    
    /* Completely redesigned mobile header */
    .header {
        padding: 30px 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: linear-gradient(145deg, rgba(0, 0, 0, 0.98) 0%, rgba(10, 10, 20, 0.99) 100%);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(255, 215, 0, 0.4);
    }
    
    .nav-container {
        padding: 0 15px;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto;
        gap: 12px;
        align-items: center;
        max-width: none;
        min-height: auto;
    }
    
    /* Logo positioning - left column */
    .nav-logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        margin-left: 0;
    }
    
    .nav-logo .logo-container {
        gap: 8px;
        width: auto;
        height: 60px;
        justify-content: flex-start;
    }
    
    /* Hide action buttons on mobile */
    .nav-buttons {
        display: none;
    }
    
    /* Language selector - bottom row, centered */
    .language-selector {
        grid-column: 1 / 4;
        grid-row: 2;
        justify-self: center;
        width: 100%;
        max-width: 200px;
    }
    
    .language-selector select {
        width: 100%;
        padding: 8px 30px 8px 12px;
        font-size: 13px;
        border-radius: 20px;
        background-size: 6px 6px, 6px 6px;
        background-position: 
            calc(100% - 18px) calc(1em + 1px),
            calc(100% - 15px) calc(1em + 1px);
        border: 1px solid rgba(255, 215, 0, 0.6);
        background-color: rgba(0, 0, 0, 0.8);
    }
    
    /* Modern Mobile hamburger */
    .hamburger {
        display: flex !important;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 48px;
        height: 48px;
        cursor: pointer;
        border-radius: 12px;
        background: linear-gradient(145deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.1) 100%);
        border: 2px solid rgba(255, 215, 0, 0.3);
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        position: relative;
        overflow: hidden;
        padding: 0;
    }
    
    .hamburger::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
        transition: left 0.6s ease;
    }
    
    .hamburger:hover::before {
        left: 100%;
    }
    
    .hamburger:hover {
        transform: scale(1.05);
        border-color: #FFD700;
        background: linear-gradient(145deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 165, 0, 0.15) 100%);
        box-shadow: 
            0 6px 16px rgba(255, 215, 0, 0.4),
            0 0 20px rgba(255, 215, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    .hamburger__line {
        width: 24px;
        height: 3px;
        background: linear-gradient(45deg, #FFD700, #FFA500);
        border-radius: 2px;
        margin: 3px 0;
        transition: all 0.3s ease-out;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        position: relative;
        z-index: 1;
    }
    
    /* Perfect X animation */
    .hamburger.active .hamburger__line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background: linear-gradient(45deg, #FF6B35, #FF3D00);
    }
    
    .hamburger.active .hamburger__line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .hamburger__line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background: linear-gradient(45deg, #FF6B35, #FF3D00);
    }
    
    .hamburger.active {
        background: linear-gradient(145deg, rgba(255, 107, 53, 0.2) 0%, rgba(255, 61, 0, 0.15) 100%);
        border-color: #FF6B35;
        box-shadow: 
            0 6px 16px rgba(255, 107, 53, 0.4),
            0 0 20px rgba(255, 107, 53, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    /* Hide desktop nav menu */
    .nav-menu {
        display: none;
    }
    
    /* Mobile navigation active state */
    .nav-menu.active {
        display: flex !important;
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        height: calc(100vh - 90px);
        background: linear-gradient(145deg, rgba(0, 0, 0, 0.98) 0%, rgba(10, 10, 20, 0.99) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 30px 20px;
        z-index: 999;
        gap: 25px;
        overflow-y: auto;
    }
    
    .nav-menu.active .nav-link {
        font-size: 18px;
        padding: 15px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 215, 0, 0.2);
        transition: all 0.3s ease;
        color: #ffffff;
        text-decoration: none;
    }
    
    .nav-menu.active .nav-link:hover {
        background: rgba(255, 215, 0, 0.1);
        border-radius: 10px;
        color: #FFD700;
    }
    
    /* Mobile menu buttons - only visible when nav menu is active */
    .mobile-menu-buttons {
        display: none;
    }
    
    .nav-menu.active .mobile-menu-buttons {
        display: flex !important;
    }
    
    /* Optimized action buttons */
    .btn-login,
    .btn-register {
        padding: 8px 15px;
        font-size: 12px;
        min-width: 65px;
        border-radius: 20px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }
    
    .btn-login {
        background: transparent;
        border: 1px solid rgba(255, 215, 0, 0.6);
        color: #FFD700;
    }
    
    .btn-register {
        background: linear-gradient(45deg, #FFD700, #FFA500);
        color: #000;
        border: none;
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    }
    
    /* Logo adjustments */
    .logo-image {
        height: 100px;
        position: relative;
        transform: none;
        left: 0;
        top: 0;
    }
    

    
    .nav-logo .logo-container {
        gap: 6px;
    }
    
    /* Hero section mobile optimization */
    .hero {
        padding-top: 120px;
        min-height: auto;
    }
    
    .hero-content {
        padding: 30px 0;
    }
    
    .country-selection {
        padding: 40px 20px;
        margin: 20px 0;
    }
    
    .country-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .country-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }
    
    .country-btn {
        width: 100%;
        max-width: 320px;
        min-height: 80px;
        padding: 20px;
        border-radius: 15px;
        font-size: 18px;
    }
    
    .flag-image-large {
        width: 60px;
        height: auto;
    }
    
    /* WhatsApp support mobile */
    .whatsapp-support {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 30px;
    }
    
    .whatsapp-btn {
        width: 100%;
        max-width: 320px;
        min-height: 60px;
        padding: 15px 25px;
        font-size: 16px;
        justify-content: center;
        gap: 10px;
    }
    
    .whatsapp-btn span {
        flex: 1;
        text-align: center;
    }
    
    .flag-image-small {
        width: 30px;
        height: auto;
    }
    
    /* Main hero content */
    .hero-main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        margin-top: 30px;
    }
    
    .hero-title {
        font-size: clamp(28px, 8vw, 36px);
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 25px;
    }
    
    .hero-features {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .feature-badge {
        padding: 8px 15px;
        font-size: 12px;
        border-radius: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 15px 25px;
        font-size: 16px;
        justify-content: center;
    }
    
    .trust-indicators {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .trust-item {
        font-size: 13px;
        text-align: center;
    }
    
    /* Gaming showcase mobile */
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-preview {
        padding: 25px 20px;
        text-align: center;
    }
    
    .game-preview i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    /* Game categories mobile */
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-category {
        padding: 25px 20px;
        text-align: center;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin: 0 auto 15px;
    }
    
    .category-header h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .category-features {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .category-features span {
        padding: 4px 10px;
        font-size: 11px;
        border-radius: 12px;
    }
    
    .category-btn {
        padding: 12px 25px;
        font-size: 14px;
        border-radius: 20px;
    }
    
    /* Slots showcase mobile */
    .slots-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .slot-provider {
        padding: 25px 20px;
        text-align: center;
    }
    
    .provider-logo {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin: 0 auto 15px;
    }
    
    .slot-provider h4 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .slot-provider p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .slot-games span {
        padding: 4px 10px;
        font-size: 10px;
        border-radius: 12px;
    }
    
    /* Promotions mobile */
    .promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .promo-card {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .promo-content h3 {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 15px;
        padding-right: 10px;
    }
    
    .promo-amount {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .promo-content p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    
    .btn-promo {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 20px;
    }
    
    /* Contact section mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-methods {
        gap: 15px;
    }
    
    .contact-method {
        padding: 20px;
        border-radius: 12px;
    }
    
    .method-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .method-info h4 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .method-info p {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .method-status {
        font-size: 11px;
    }
    
    .download-app {
        text-align: center;
        padding: 30px 20px;
    }
    
    .app-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .app-btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 14px;
    }
    
    /* QR section mobile */
    .qr-section {
        padding: 60px 0;
    }
    
    .qr-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
        padding: 0 10px;
    }
    
    .qr-card {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .qr-header h3 {
        font-size: 18px;
    }
    
    .qr-code {
        width: 140px;
        height: 140px;
    }
    
    .qr-description {
        font-size: 13px;
        margin: 15px 0 25px 0;
    }
    
    .qr-btn {
        width: 100%;
        min-width: auto;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 25px;
    }
    
    /* Footer mobile */
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .footer-section h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-section li {
        margin-bottom: 8px;
    }
    
    .footer-section a {
        font-size: 13px;
    }
    
    .footer-certificates {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .footer-logo-image {
        height: 35px;
    }
    
    .footer-legal {
        font-size: 11px;
        line-height: 1.4;
        text-align: center;
    }
    
    /* Quick access mobile */
    .quick-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .quick-btn {
        padding: 20px 15px;
        min-width: auto;
        border-radius: 12px;
    }
    
    .quick-btn i {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .quick-btn span {
        font-size: 12px;
    }
    

    
    /* Section spacing mobile */
    .game-categories,
    .slots-showcase,
    .promotions,
    .contact,
    .qr-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 30px;
        text-align: center;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    /* Ultra-compact container */
    .container {
        padding: 0 15px;
    }
    
    /* Ultra-compact header */
    .header {
        padding: 10px 0;
    }
    
    .nav-container {
        padding: 0 12px;
        gap: 8px;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
    }
    
    /* Center logo on very small screens */
    .nav-logo {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
    }
    
    /* Show hamburger menu on very small screens */
    .hamburger {
        display: flex !important;
        grid-column: 3;
        grid-row: 1;
        width: 44px;
        height: 44px;
        padding: 0;
    }
    
    .hamburger__line {
        width: 20px;
        height: 2.5px;
        margin: 2.5px 0;
    }
    
    .hamburger.active .hamburger__line:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    
    .hamburger.active .hamburger__line:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }
    
    /* Hide action buttons on very small screens */
    .nav-buttons {
        display: none;
    }
    
    /* Compact language selector */
    .language-selector {
        grid-column: 1 / 4;
        grid-row: 2;
        margin-top: 5px;
        max-width: 150px;
        justify-self: center;
    }
    
    .language-selector select {
        padding: 6px 25px 6px 10px;
        font-size: 12px;
        border-radius: 15px;
    }
    
    /* Mobile menu overlay */
    .nav-menu.active {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(145deg, rgba(0, 0, 0, 0.98) 0%, rgba(10, 10, 20, 0.99) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 30px 20px;
        z-index: 999;
        gap: 25px;
        overflow-y: auto;
    }
    
    .nav-menu.active .nav-link {
        font-size: 18px;
        padding: 15px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 215, 0, 0.2);
        transition: all 0.3s ease;
    }
    
    .nav-menu.active .nav-link:hover {
        background: rgba(255, 215, 0, 0.1);
        border-radius: 10px;
    }
    
    /* Add login/register buttons to mobile menu */
    .nav-menu.active::after {
        content: '';
        display: flex;
        gap: 15px;
        margin-top: 20px;
    }
    
    /* Compact buttons for ultra-small screens */
    .btn-login,
    .btn-register {
        padding: 6px 12px;
        font-size: 11px;
        min-width: 55px;
        border-radius: 15px;
    }
    
    .logo-image {
        height: 35px;
    }
    

    
    /* Hero ultra-compact */
    .hero {
        padding-top: 120px;
    }
    
    .hero-content {
        padding: 30px 0;
    }
    
    .country-selection {
        padding: 30px 15px;
        margin: 15px 0;
        border-radius: 20px;
    }
    
    .country-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .country-btn {
        max-width: 300px;
        min-height: 70px;
        padding: 15px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    .flag-image-large {
        width: 50px;
    }
    
    .whatsapp-btn {
        max-width: 260px;
        min-height: 55px;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .flag-image-small {
        width: 25px;
    }
    
    /* CITIBET Logo mobile */
    .citibet-logo-section {
        margin: 20px 0;
        padding: 15px;
    }
    
    .citibet-logo-image {
        height: 45px;
    }
    
    /* Hero main content ultra-compact */
    .hero-title {
        font-size: clamp(24px, 7vw, 32px);
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .hero-features {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .feature-badge {
        padding: 6px 12px;
        font-size: 11px;
        border-radius: 18px;
    }
    
    .hero-buttons {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .btn-primary,
    .btn-secondary {
        max-width: 260px;
        padding: 12px 20px;
        font-size: 15px;
        border-radius: 25px;
    }
    
    .trust-item {
        font-size: 12px;
    }
    
    /* Game sections ultra-compact */
    .game-preview {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .game-preview i {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .game-category {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        margin: 0 auto 12px;
    }
    
    .category-header h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .category-features span {
        padding: 3px 8px;
        font-size: 10px;
        border-radius: 10px;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 18px;
    }
    
    /* Slots ultra-compact */
    .slot-provider {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .provider-logo {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        margin: 0 auto 12px;
    }
    
    .slot-provider h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .slot-provider p {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .slot-games span {
        padding: 3px 8px;
        font-size: 9px;
        border-radius: 10px;
    }
    
    /* Promotions ultra-compact */
    .promo-card {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .promo-content h3 {
        font-size: 18px;
        margin-bottom: 12px;
        padding-right: 5px;
    }
    
    .promo-amount {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .promo-content p {
        font-size: 13px;
        margin-bottom: 18px;
    }
    
    .btn-promo {
        padding: 10px 15px;
        font-size: 13px;
        border-radius: 18px;
    }
    
    /* Contact ultra-compact */
    .contact-method {
        padding: 15px;
        border-radius: 10px;
    }
    
    .method-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .method-info h4 {
        font-size: 15px;
        margin-bottom: 4px;
    }
    
    .method-info p {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .method-status {
        font-size: 10px;
    }
    
    .download-app {
        padding: 25px 15px;
    }
    
    .app-btn {
        padding: 12px 15px;
        font-size: 13px;
        border-radius: 12px;
    }
    
    /* QR ultra-compact */
    .qr-card {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .qr-header h3 {
        font-size: 16px;
    }
    
    .qr-flag {
        width: 35px;
    }
    
    .qr-code {
        width: 120px;
        height: 120px;
    }
    
    .qr-description {
        font-size: 12px;
        margin: 12px 0 20px 0;
    }
    
    .qr-btn {
        padding: 10px 15px;
        font-size: 13px;
        border-radius: 20px;
    }
    
    /* Footer ultra-compact */
    .footer {
        padding: 50px 0 25px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-section h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .footer-section li {
        margin-bottom: 6px;
    }
    
    .footer-section a {
        font-size: 12px;
    }
    
    .footer-legal {
        font-size: 10px;
        padding: 0 10px;
    }
    
    /* Quick access ultra-compact */
    .quick-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .quick-btn {
        padding: 15px 10px;
        border-radius: 10px;
    }
    
    .quick-btn i {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }
    
    .quick-btn span {
        font-size: 11px;
    }
    

    
    /* Section spacing ultra-compact */
    .game-categories,
    .slots-showcase,
    .promotions,
    .contact,
    .qr-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .section-subtitle {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    /* Language selector ultra-compact */
    .language-selector select {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 15px;
    }
}

/* Language-specific styling for consistent layout */
[data-translate] {
    transition: all 0.3s ease;
}

/* Prevent layout shifts during translation */
.lang-zh .section-title,
.lang-my .section-title {
    line-height: 1.3;
    word-break: keep-all;
}

.lang-zh .section-subtitle,
.lang-my .section-subtitle {
    line-height: 1.4;
}

/* Button text consistency */
.lang-zh .category-btn,
.lang-my .category-btn,
.lang-zh .btn-promo,
.lang-my .btn-promo {
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Navigation text consistency */
.lang-zh .nav-link,
.lang-my .nav-link {
    min-width: 60px;
    text-align: center;
}

/* Footer text consistency */
.lang-zh .footer-section h4,
.lang-my .footer-section h4 {
    min-height: 24px;
    line-height: 1.2;
}

/* Game category text consistency */
.lang-zh .game-category h3,
.lang-my .game-category h3 {
    min-height: 30px;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

/* Promotion card text consistency */
.lang-zh .promo-content h3,
.lang-my .promo-content h3 {
    min-height: auto;
    line-height: 1.3;
    display: block;
    white-space: normal;
    overflow: visible;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* Contact method text consistency */
.lang-zh .method-info h4,
.lang-my .method-info h4 {
    min-height: 24px;
    line-height: 1.2;
}

/* Quick access text consistency */
.lang-zh .quick-btn span,
.lang-my .quick-btn span {
    min-height: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* Ensure Chinese text renders properly */
.lang-zh {
    font-family: 'Poppins', 'Microsoft YaHei', '微软雅黑', sans-serif;
}

/* Ensure Malay text renders properly */
.lang-my {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

/* Prevent text overflow in smaller elements */
.lang-zh .trust-item span,
.lang-my .trust-item span,
.lang-zh .feature-badge span,
.lang-my .feature-badge span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Mobile responsiveness for different languages */
@media (max-width: 768px) {
    .lang-zh .country-title,
    .lang-my .country-title {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .lang-zh .hero-title,
    .lang-my .hero-title {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .lang-zh .promo-content h3,
    .lang-my .promo-content h3 {
        font-size: 16px;
        min-height: auto;
        white-space: normal;
        overflow: visible;
        word-wrap: break-word;
        line-height: 1.3;
    }
} 

/* Mobile Language Selector - Always Visible */
.mobile-language-selector {
    display: none;
}

.mobile-language-selector select {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 46, 0.95) 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 215, 0, 0.8);
    padding: 8px 25px 8px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    appearance: none;
    background-image: 
        linear-gradient(45deg, transparent 50%, #FFD700 50%),
        linear-gradient(135deg, #FFD700 50%, transparent 50%);
    background-position: 
        calc(100% - 12px) calc(50%),
        calc(100% - 8px) calc(50%);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.mobile-language-selector select:hover {
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.mobile-language-selector select:focus {
    outline: none;
    border-color: #FFD700;
}

/* Mobile Media Query Override */
@media (max-width: 768px) {
    /* Show mobile language selector */
    .mobile-language-selector {
        display: block \!important;
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        margin-left: 15px;
    }
    
    /* Override the existing grid layout for nav-container */
    .nav-container {
        grid-template-columns: auto 1fr auto \!important;
    }
    
    /* Keep logo centered */
    .nav-logo {
        grid-column: 2 \!important;
        grid-row: 1 \!important;
        justify-self: center \!important;
    }
    
    /* Keep hamburger on the right */
    .hamburger {
        grid-column: 3 \!important;
        grid-row: 1 \!important;
        justify-self: end \!important;
    }
    
    /* Hide all desktop language selectors */
    .language-selector,
    .nav-container > .language-selector {
        display: none \!important;
    }
}

/* Additional mobile logo fix */
@media (max-width: 768px) {
    .navbar {
        height: 100px \!important;
        padding: 10px 0;
    }
    
    .nav-logo {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .nav-logo .logo-container {
        margin: 0;
        padding: 0;
    }
    
    .hamburger {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Fix mobile language selector positioning */
@media (max-width: 768px) {
    .mobile-language-selector {
        display: block !important;
        position: absolute;
        right: 70px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 100;
    }
    
    .mobile-language-selector select {
        background: rgba(0, 0, 0, 0.9);
        border: 2px solid #FFD700;
        color: #FFD700;
        padding: 8px 25px 8px 10px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        min-width: 70px;
    }
    
    /* Hide desktop language selector */
    .nav-buttons .language-selector,
    .language-selector {
        display: none \!important;
    }
}
