:root {
    --bg-dark: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --gold: #FFD700;
    --gold-gradient: linear-gradient(45deg, #FFD700, #FDB931);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --whatsapp-green: #25D366;
    --telegram-blue: #0088cc;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

a, button {
    touch-action: manipulation;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.1), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 136, 204, 0.1), transparent 40%);
}

/* Glass Navigation */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.gold-text {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.cta-button {
    padding: 10px 24px;
    background: var(--gold-gradient);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Banner Slider */
.banner-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.banner-slider-section.hidden {
    display: none;
}

.banner-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.banner-slide {
    min-width: 100%;
    flex-shrink: 0;
    aspect-ratio: 1920 / 400;
    max-height: 280px;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.banner-dot:hover,
.banner-dot.active {
    background: var(--gold);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.banner-arrow:hover {
    background: rgba(255, 215, 0, 0.3);
    color: var(--gold);
    border-color: var(--gold);
}

.banner-prev {
    left: 12px;
}

.banner-next {
    right: 12px;
}

@media (max-width: 768px) {
    .banner-slider-section {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .banner-slider-track {
        width: 100%;
        touch-action: pan-y;
    }

    .banner-slide {
        width: 100%;
        min-width: 100%;
        flex: 0 0 100%;
        aspect-ratio: 16 / 9;
        max-height: 220px;
        box-sizing: border-box;
    }

    .banner-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .banner-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        min-width: 44px;
        min-height: 44px;
    }

    .banner-prev { left: 8px; }
    .banner-next { right: 8px; }

    .banner-dots {
        bottom: 10px;
    }

    .banner-dot {
        width: 8px;
        height: 8px;
        min-width: 8px;
        min-height: 8px;
    }
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5% 5%;
    min-height: 90vh;
    position: relative;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.badge {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.btn-whatsapp {
    background: var(--whatsapp-green);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-telegram {
    background: var(--telegram-blue);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.btn-telegram:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    position: relative;
}

.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.card-glass {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    padding: 1.5rem;
    border-radius: 20px;
    width: 220px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: float 6s ease-in-out infinite;
    box-sizing: border-box;
}

.card-glass:nth-child(1) { animation-delay: 0s; }
.card-glass:nth-child(2) { animation-delay: 0.5s; }
.card-glass:nth-child(3) { animation-delay: 1s; }
.card-glass:nth-child(4) { animation-delay: 1.5s; }

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
}

.icon-box i {
    font-size: 1.5rem;
    color: var(--gold);
}

.card-glass h3 {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.card-glass p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Features */
.features {
    padding: 5% 5%;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: var(--glass-border);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

/* Recent Members Ticker */
.members-ticker-section {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 0;
    overflow: hidden;
}

.members-ticker-label {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.members-ticker-wrap {
    overflow: hidden;
    width: 100%;
}

.members-ticker {
    display: flex;
    width: max-content;
    animation: tickerScroll 30s linear infinite;
}

.members-ticker span {
    padding-right: 4rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Footer */
footer {
    padding: 2rem 5%;
    text-align: center;
    color: var(--text-secondary);
    border-top: var(--glass-border);
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--gold);
}

.developer-credit {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

.developer-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.developer-link:hover {
    color: var(--gold);
}

.developer-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    border: 2px solid rgba(255, 215, 0, 0.4);
    background: #1a1a1a;
}

.developer-link .fab.fa-youtube {
    color: #ff0000;
}

/* Keyframes */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero {
        text-align: center;
        flex-direction: column-reverse;
        /* Visuals on top for mobile */
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .stats-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-glass {
        width: 100%;
        max-width: 280px;
    }

    footer {
        flex-direction: column;
    }
}

/* Registration Button */
.register-btn {
    background: linear-gradient(45deg, #ff4757, #ff6b81);
    color: white;
    border: none;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

.btn-register-hero {
    background: #ff4757;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.btn-register-hero:hover {
    background: #ff2e43;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.5);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

/* Prediction Card */
.prediction-card {
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--gold);
    border-radius: 20px;
    padding: 2rem;
    width: 350px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.prediction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.card-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.live-status {
    color: #ff4757;
    font-size: 0.8rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0.5;
    }
}

.period-display {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 10px;
}

.timer-display {
    margin-bottom: 2rem;
}

.time-box {
    font-size: 3rem;
    font-weight: 700;
    font-family: monospace;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.timer-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.result-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.result-value.waiting {
    color: #a0a0a0;
    font-size: 1.5rem;
}

.result-value.big {
    color: #FFD700;
    text-shadow: 0 0 10px #FFD700;
}

.result-value.small {
    color: #0088cc;
    text-shadow: 0 0 10px #0088cc;
}

.result-value.red {
    color: #ff4757;
    text-shadow: 0 0 10px #ff4757;
}

.result-value.green {
    color: #2ed573;
    text-shadow: 0 0 10px #2ed573;
}

.result-value.violet {
    color: violet;
    text-shadow: 0 0 10px violet;
}

.server-status {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #666;
}

.green-text {
    color: #2ed573;
}

/* PC/Large Screen Optimization */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Tablet Optimization (768px - 1024px) */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.2rem;
    }

    .hero {
        padding: 10% 5%;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .action-buttons {
        justify-content: center;
    }

    .card-glass.secondary {
        margin-left: 2rem;
    }
}

/* Mobile Optimization (< 768px) */
/* Nav Updates */
.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-btn {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    display: block;
    /* Always visible as per request */
}

/* Sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    display: none;
    backdrop-filter: blur(5px);
}

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: #111;
    z-index: 999;
    transition: left 0.3s ease;
    border-right: 1px solid var(--gold);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-sidebar {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.sidebar-menu li a.active,
.sidebar-menu li a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
}

/* Register Required Popup */
.register-popup-overlay {
    z-index: 1001;
}

.register-popup {
    background: #111;
    width: 90%;
    max-width: 420px;
    border-radius: 20px;
    border: 1px solid var(--gold);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.2);
    padding: 2rem;
    text-align: center;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.register-popup-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.register-popup-icon i {
    font-size: 2rem;
    color: var(--gold);
}

.register-popup h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.register-popup p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.register-popup-note {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}

.register-popup-fee {
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 1rem;
    padding: 10px 14px;
    background: rgba(255, 215, 0, 0.08);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.register-popup-fee i {
    font-size: 1rem;
    flex-shrink: 0;
}

.register-popup-whatsapp {
    font-size: 0.95rem;
    color: #25D366;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.register-popup-whatsapp i {
    font-size: 1.2rem;
}

.register-popup-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 1rem;
}

.btn-register-popup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--gold-gradient);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-register-popup:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.btn-whatsapp-popup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-whatsapp-popup:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.close-register-popup {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.close-register-popup:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Prediction Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.prediction-popup {
    background: #111;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    border: 1px solid var(--gold);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.2);
    overflow: hidden;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-header {
    padding: 1rem 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-header h3 {
    margin: 0;
    color: var(--gold);
}

    .close-popup {
        background: none;
        border: none;
        color: #fff;
        font-size: 1.2rem;
        cursor: pointer;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.mode-selector {
    display: flex;
    gap: 10px;
    padding: 1.5rem;
    justify-content: center;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.mode-btn.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    font-weight: bold;
}

.monitor-screen {
    background: #000;
    margin: 0 1.5rem;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #333;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.7rem;
    color: #ff4757;
    font-weight: bold;
    animation: blink 1s infinite;
}

.timer-display-large {
    font-size: 3.5rem;
    font-family: monospace;
    font-weight: 700;
    color: #fff;
    margin: 1rem 0;
}

.waiting-message {
    color: #666;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

/* Ludo Dice - 3D Spinning Animation */
.ludo-dice-container {
    perspective: 350px;
    -webkit-perspective: 350px;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.ludo-dice {
    width: 60px;
    height: 60px;
    position: relative;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    animation: diceRoll 2.5s linear infinite;
}

@keyframes diceRoll {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    25% { transform: rotateX(90deg) rotateY(180deg) rotateZ(0deg); }
    50% { transform: rotateX(180deg) rotateY(270deg) rotateZ(90deg); }
    75% { transform: rotateX(270deg) rotateY(360deg) rotateZ(180deg); }
    100% { transform: rotateX(360deg) rotateY(450deg) rotateZ(270deg); }
}

.dice-face {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    backface-visibility: visible;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
}

.dice-face span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.face-front {
    background: linear-gradient(145deg, #FFD700, #daa520);
    color: #1a1a1a;
    transform: translateZ(30px);
}

.face-back {
    background: linear-gradient(145deg, #0088cc, #006699);
    color: #fff;
    transform: rotateY(180deg) translateZ(30px);
}

.face-right {
    background: linear-gradient(145deg, #eee, #bbb);
    color: #333;
    transform: rotateY(90deg) translateZ(30px);
}

.face-left {
    background: linear-gradient(145deg, #ddd, #999);
    color: #333;
    transform: rotateY(-90deg) translateZ(30px);
}

.face-top {
    background: linear-gradient(145deg, #fff, #ddd);
    color: #333;
    transform: rotateX(-90deg) translateZ(30px);
}

.face-bottom {
    background: linear-gradient(145deg, #ccc, #888);
    color: #333;
    transform: rotateX(90deg) translateZ(30px);
}

.final-result {
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 0 0 20px currentColor;
    animation: scaleResult 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.final-result.big {
    color: #FFD700;
}

.final-result.small {
    color: #0088cc;
}

@keyframes scaleResult {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.hidden {
    display: none;
}

.server-info {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: #666;
}

/* Media Queries Update */
@media (width <=768px) {
    .sidebar {
        width: 80%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        flex-direction: column-reverse;
        /* Visuals on top for mobile */
        padding-top: 2rem;
    }

    .hero-visual {
        margin-bottom: 2rem;
    }

    .card-glass.secondary {
        margin-left: 0;
        margin-top: -1rem;
    }

    .glass-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-buttons {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .cta-button {
        font-size: 0.9rem;
        padding: 12px 20px;
        min-height: 44px;
    }

    .sidebar {
        width: 65%;
        /* Slightly wider for better mobile exp */
    }
}

footer {
    flex-direction: column;
    gap: 2rem;
}

.prediction-card {
    width: 100%;
    max-width: 340px;
}

/* ========== MOBILE FRIENDLY (Android & iPhone) ========== */
@media (max-width: 768px) {
    body {
        -webkit-tap-highlight-color: transparent;
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    }

    .glass-nav {
        padding: 1rem 4%;
        padding-top: max(1rem, env(safe-area-inset-top));
    }

    .hero {
        padding: 2rem 4%;
        min-height: auto;
        gap: 1.5rem;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .btn {
        padding: 16px 24px;
        min-height: 48px;
        justify-content: center;
        font-size: 1rem;
    }

    .stats-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .card-glass {
        width: 100%;
        max-width: 100%;
        min-height: 150px;
        height: auto;
        padding: 1.25rem;
    }

    .features {
        padding: 2rem 4%;
    }

    .features h2 {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .members-ticker-section {
        padding: 0.6rem 2%;
    }

    .members-ticker span {
        font-size: 0.8rem;
    }

    footer {
        padding: 1.5rem 4%;
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }

    .modal-overlay {
        padding: 1rem;
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .prediction-popup,
    .register-popup {
        width: 95%;
        max-width: 100%;
        margin: auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .register-popup-buttons {
        flex-direction: column;
    }

    .btn-register-popup,
    .btn-whatsapp-popup {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        padding: 14px 20px;
    }

    .close-register-popup {
        min-height: 48px;
        padding: 12px 28px;
    }

    .mode-btn {
        padding: 12px 20px;
        min-height: 44px;
    }

    .ludo-dice-container {
        min-height: 70px;
    }

    .ludo-dice {
        width: 50px;
        height: 50px;
    }

    .dice-face {
        width: 50px;
        height: 50px;
        font-size: 0.5rem;
    }

    .face-front, .face-back, .face-right, .face-left, .face-top, .face-bottom {
        transform-origin: 50% 50%;
    }

    .face-front { transform: translateZ(25px); }
    .face-back { transform: rotateY(180deg) translateZ(25px); }
    .face-right { transform: rotateY(90deg) translateZ(25px); }
    .face-left { transform: rotateY(-90deg) translateZ(25px); }
    .face-top { transform: rotateX(-90deg) translateZ(25px); }
    .face-bottom { transform: rotateX(90deg) translateZ(25px); }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    .hero {
        padding: 1.5rem 3%;
    }

    .glass-nav {
        padding: 0.75rem 3%;
    }

    .logo {
        font-size: 1.25rem;
    }

    .menu-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close-sidebar {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-menu li a {
        min-height: 48px;
        padding: 1rem 1.25rem;
    }

    .prediction-popup,
    .register-popup {
        width: 98%;
    }

    .timer-display-large {
        font-size: 2.5rem;
    }

    .final-result {
        font-size: 2.25rem;
    }

    .monitor-screen {
        padding: 1.5rem;
    }

    .prediction-popup .mode-selector {
        padding: 1rem;
        flex-wrap: wrap;
    }
}