/* ==========================================================================
   FSALUDOCLUB GAMING DESIGN SYSTEM — CORE LUXURY THEME
   Pixel-accurate Gaming UI for Mobile & Desktop
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Brand Core Palette */
    --ludo-navy-950: #040817;
    --ludo-navy-900: #081026;
    --ludo-navy-850: #0a1430;
    --ludo-navy-800: #0d1b3e;
    --ludo-navy-700: #132554;
    --ludo-navy-600: #1b3573;
    
    /* Neon & Gaming Accents */
    --ludo-cyan: #00d2ff;
    --ludo-cyan-rgb: 0, 210, 255;
    --ludo-cyan-glow: rgba(0, 210, 255, 0.45);
    
    --ludo-purple: #9333ea;
    --ludo-purple-dark: #3b114d;
    --ludo-purple-border: #a855f7;
    
    --ludo-gold: #ffb703;
    --ludo-gold-bright: #ffd700;
    --ludo-gold-dark: #d49b00;
    --ludo-gold-border: #f59e0b;
    
    --ludo-green: #00ff87;
    --ludo-green-dark: #15803d;
    --ludo-red: #ef4444;

    /* Light Theme Defaults */
    --ludo-bg: #f1f5f9;
    --ludo-surface: #ffffff;
    --ludo-surface-alt: #f8fafc;
    --ludo-border: #e2e8f0;
    --ludo-text: #0f172a;
    --ludo-text-muted: #64748b;
    --ludo-card-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);

    /* Safe Area & Layout */
    --ludo-header-height: 64px;
    --ludo-bottom-nav-height: 66px;
    --ludo-app-max-width: 412px;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --ludo-bg: #030712;
    --ludo-surface: #0a1224;
    --ludo-surface-alt: #0e1933;
    --ludo-border: #1e293b;
    --ludo-text: #f8fafc;
    --ludo-text-muted: #94a3b8;
    --ludo-card-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Global Typography & Resets */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--ludo-navy-950);
    color: var(--ludo-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ==========================================================================
   DESKTOP DUAL VIEWPORT WRAPPER
   (Mimics Reference: Mobile App on left/center, Branding Showcase on right)
   ========================================================================== */
.ludo-desktop-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    background: radial-gradient(circle at 50% 15%, #0e1a38 0%, #050811 85%);
}

/* Main App Container: Responsive across Mobile, Tablet, and Desktop */
.ludo-mobile-frame {
    width: 100%;
    max-width: 480px;
    min-width: 0;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--ludo-bg);
    position: relative;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.9), 0 0 25px rgba(212, 175, 55, 0.08);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    box-sizing: border-box;
    transition: max-width 0.2s ease;
}

@media (min-width: 768px) {
    .ludo-mobile-frame {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .ludo-desktop-wrapper {
        justify-content: center;
    }
    .ludo-mobile-frame {
        max-width: 960px;
        margin: 0 auto;
        border-left: 1px solid rgba(212, 175, 55, 0.25);
        border-right: 1px solid rgba(212, 175, 55, 0.25);
    }
    .ludo-desktop-showcase {
        display: none !important;
    }
}

@media (min-width: 1400px) {
    .ludo-mobile-frame {
        max-width: 1040px;
    }
}

/* Desktop Showcase - Hidden in player layout so application expands responsively */
.ludo-desktop-showcase {
    display: none !important;
}

.ludo-showcase-logo {
    max-width: 380px;
    animation: floatLogo 4s ease-in-out infinite;
    filter: drop-shadow(0 15px 30px rgba(255, 215, 0, 0.3));
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.ludo-showcase-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    margin-top: 30px;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.ludo-showcase-subtitle {
    color: #94a3b8;
    font-size: 1.05rem;
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   TOP PLAYER HEADER
   ========================================================================== */
.ludo-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: var(--ludo-header-height);
    background: linear-gradient(180deg, #070d1f 0%, #0b1530 100%);
    border-bottom: 1.5px solid rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 1030;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
    width: 100%;
    box-sizing: border-box;
}

/* Hamburger Trigger */
.ludo-hamburger-btn {
    width: 38px;
    height: 38px;
    background: #0a142c;
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.ludo-hamburger-btn span {
    display: block;
    width: 18px;
    height: 2.5px;
    background: linear-gradient(90deg, #ffd700, #00d2ff);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.ludo-hamburger-btn:hover,
.ludo-hamburger-btn:active {
    background: #122247;
    border-color: #ffd700;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

/* Logo In Header */
.ludo-header-logo {
    height: 44px;
    max-width: 112px;
    object-fit: contain;
    cursor: pointer;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.35));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.ludo-header-logo:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.55));
}

/* Balance Cards Group */
.ludo-header-balances {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Coins Pill Card */
.ludo-balance-card {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px 3px 5px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ludo-balance-card:hover {
    transform: translateY(-2px);
}

.ludo-balance-coins {
    background: linear-gradient(135deg, #0e2a5c 0%, #0a1c3e 100%);
    border: 1px solid #1d4ed8;
}

.ludo-balance-referral {
    background: linear-gradient(135deg, #431b5c 0%, #2b113d 100%);
    border: 1px solid #7e22ce;
}

.ludo-balance-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.ludo-balance-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 28px;
}

.ludo-balance-amount {
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
}

.ludo-balance-label {
    font-size: 8.5px;
    font-weight: 600;
    text-transform: capitalize;
}

.ludo-balance-coins .ludo-balance-label {
    color: #93c5fd;
}

.ludo-balance-referral .ludo-balance-label {
    color: #d8b4fe;
}

/* ==========================================================================
   PAGE CONTENT CONTAINER & SAFE AREAS
   ========================================================================== */
.ludo-page-content {
    flex: 1;
    padding: 10px 10px calc(var(--ludo-bottom-nav-height) + 16px) 10px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Announcement Alert Banner (Yellow / Cream) */
.ludo-announcement {
    background-color: #fef9c3;
    border: 1px solid #fde047;
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 11.5px;
    line-height: 1.45;
    color: #713f12;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    overflow-wrap: anywhere;
    word-break: break-word;
    box-sizing: border-box;
    width: 100%;
}

[data-theme="dark"] .ludo-announcement {
    background-color: #272007;
    border-color: #ca8a04;
    color: #fef08a;
}

/* ==========================================================================
   GAMING BANNERS & ACCENT BORDERS
   ========================================================================== */
.ludo-gold-banner {
    position: relative;
    width: 100%;
    margin-bottom: 14px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 183, 3, 0.2);
    display: block;
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box;
    animation: goldBannerPulse 4.5s ease-in-out infinite;
}

.ludo-gold-banner:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 25px rgba(255, 183, 3, 0.45);
}

.ludo-gold-banner:active {
    transform: scale(0.98);
}

.ludo-gold-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* 2-Column Game Grid */
.ludo-game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
    width: 100%;
    box-sizing: border-box;
}

.ludo-game-card {
    position: relative;
    border-radius: 18px;
    padding: 2.5px;
    overflow: hidden;
    background: #091224;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
    min-width: 0;
    max-width: 100%;
    transform: translateZ(0);
    isolation: isolate;
    aspect-ratio: 4 / 3;
}

/* 1. Outer Blooming Glow Layer (Tracks the shining beam with soft blur) */
.ludo-border-beam-glow {
    position: absolute;
    top: -80%;
    left: -80%;
    width: 260%;
    height: 260%;
    z-index: 1;
    pointer-events: none;
    filter: blur(14px);
    opacity: 1;
    will-change: transform;
    animation: borderBeamSpin 3.4s linear infinite;
}

/* 2. Sharp High-Intensity Shining Border Beam Layer */
.ludo-border-beam {
    position: absolute;
    top: -80%;
    left: -80%;
    width: 260%;
    height: 260%;
    z-index: 2;
    pointer-events: none;
    will-change: transform;
    animation: borderBeamSpin 3.4s linear infinite;
}

/* Cyan / Blue / Magenta / Purple colors for Ludo Card (Matches Reference Screenshot) */
.ludo-card-ludo {
    background: linear-gradient(135deg, rgba(121, 40, 202, 0.45), rgba(0, 210, 255, 0.45));
}

.ludo-card-ludo .ludo-border-beam-glow,
.ludo-card-ludo .ludo-border-beam {
    background: conic-gradient(
        from 0deg,
        rgba(0, 210, 255, 0) 0deg,
        rgba(0, 210, 255, 0) 130deg,
        rgba(121, 40, 202, 0.4) 180deg,
        #7928ca 230deg,
        #c026d3 260deg,
        #ec4899 285deg,
        #0066ff 315deg,
        #00f0ff 342deg,
        #ffffff 355deg,
        rgba(0, 210, 255, 0) 360deg
    );
}

/* Rich Gold / Flame / Amber colors for Support Card */
.ludo-card-support {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.45), rgba(255, 215, 0, 0.45));
}

.ludo-card-support .ludo-border-beam-glow,
.ludo-card-support .ludo-border-beam {
    background: conic-gradient(
        from 0deg,
        rgba(255, 215, 0, 0) 0deg,
        rgba(255, 215, 0, 0) 130deg,
        rgba(180, 83, 9, 0.4) 180deg,
        #b45309 230deg,
        #ea580c 260deg,
        #f59e0b 290deg,
        #ffd700 335deg,
        #fffbeb 355deg,
        rgba(255, 215, 0, 0) 360deg
    );
    animation-delay: -1.7s;
}

@keyframes borderBeamSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 3. Card Body Masks the Inside leaving only 2.5px shining border */
.ludo-card-body {
    position: relative;
    z-index: 3;
    border-radius: 15.5px;
    background: #091224;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Light Beam Shimmer Sweep across Card Body */
.ludo-card-body::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -80%;
    width: 50%;
    height: 220%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.22) 50%,
        rgba(255, 255, 255, 0.03) 75%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    pointer-events: none;
    z-index: 4;
}

.ludo-card-ludo {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(0, 210, 255, 0.22);
    animation: ludoCardFloat1 4.2s ease-in-out infinite;
}

.ludo-card-ludo .ludo-card-body::after {
    animation: ludoCardShimmer 5.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.ludo-card-support {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 215, 0, 0.22);
    animation: ludoCardFloat2 4.8s ease-in-out infinite 0.7s;
}

.ludo-card-support .ludo-card-body::after {
    animation: ludoCardShimmer 5.2s cubic-bezier(0.4, 0, 0.2, 1) infinite 2.6s;
}

.ludo-game-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.ludo-card-ludo:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 28px rgba(0, 210, 255, 0.55);
}

.ludo-card-support:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 28px rgba(255, 215, 0, 0.5);
}

.ludo-game-card:active {
    transform: scale(0.96) !important;
    transition: transform 0.08s ease;
}

.ludo-card-body img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.ludo-game-card:hover .ludo-card-body img {
    transform: scale(1.02);
}

/* Live Badge Pill */
.ludo-badge-live {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(4, 18, 48, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--ludo-cyan);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 2.5px 7px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.45);
    letter-spacing: 0.6px;
    z-index: 6;
    animation: badgeBlinkCyan 2.6s ease-in-out infinite;
}

.ludo-badge-live.ludo-badge-gold {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.45);
    animation: badgeBlinkGold 2.6s ease-in-out infinite 0.7s;
}

.ludo-badge-live .live-dot {
    position: relative;
    width: 6.5px;
    height: 6.5px;
    background-color: var(--ludo-green);
    border-radius: 50%;
    box-shadow: 0 0 6px #00ff87;
    display: inline-block;
}

.ludo-badge-live .live-dot::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 1.5px solid var(--ludo-green);
    animation: radarPing 1.6s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes radarPing {
    0% { transform: scale(0.8); opacity: 0.9; }
    100% { transform: scale(2.4); opacity: 0; }
}

@keyframes badgeBlinkCyan {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 210, 255, 0.35); border-color: rgba(0, 210, 255, 0.7); }
    50% { box-shadow: 0 0 14px rgba(0, 210, 255, 0.75); border-color: #00d2ff; }
}

@keyframes badgeBlinkGold {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.35); border-color: rgba(255, 215, 0, 0.7); }
    50% { box-shadow: 0 0 14px rgba(255, 215, 0, 0.75); border-color: #ffd700; }
}

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

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

@keyframes ludoCardShimmer {
    0% { left: -90%; opacity: 0; }
    15% { opacity: 1; }
    35% { left: 160%; opacity: 0; }
    100% { left: 160%; opacity: 0; }
}

@keyframes goldBannerPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 183, 3, 0.2); }
    50% { box-shadow: 0 6px 22px rgba(255, 183, 3, 0.45); }
}

@keyframes featureBannerFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

@keyframes phoneShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

@keyframes moonTilt {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(18deg) scale(1.15); }
}

/* Horizontal Feature Banner */
.ludo-feature-banner {
    position: relative;
    width: 100%;
    margin-bottom: 14px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 12px rgba(0, 210, 255, 0.15);
    display: block;
    box-sizing: border-box;
    transition: all 0.25s ease;
    animation: featureBannerFloat 5.6s ease-in-out infinite;
}

.ludo-feature-banner::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -80%;
    width: 40%;
    height: 220%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 30%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.05) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    pointer-events: none;
    z-index: 2;
    animation: ludoCardShimmer 6s cubic-bezier(0.4, 0, 0.2, 1) infinite 1.2s;
}

.ludo-feature-banner:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 210, 255, 0.35);
}

.ludo-feature-banner:active {
    transform: scale(0.98);
}

.ludo-feature-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Quick Action Cards (Install App & Dark Mode) */
.ludo-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
    width: 100%;
    box-sizing: border-box;
}

.ludo-quick-card {
    background: var(--ludo-surface);
    border: 1px solid var(--ludo-border);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: var(--ludo-card-shadow);
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--ludo-text);
    min-width: 0;
}

.ludo-quick-card:hover {
    transform: translateY(-3px);
    border-color: var(--ludo-cyan);
    box-shadow: 0 6px 18px rgba(0, 210, 255, 0.25);
}

.ludo-quick-card:active {
    transform: scale(0.96);
}

.ludo-quick-card:hover .fa-mobile-screen-button {
    animation: phoneShake 0.5s ease-in-out infinite;
}

.ludo-quick-card:hover .fa-moon {
    animation: moonTilt 0.6s ease-in-out infinite alternate;
}

.ludo-quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--ludo-surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--ludo-cyan);
}

.ludo-quick-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
}

.ludo-quick-sub {
    font-size: 11px;
    color: var(--ludo-text-muted);
}

@media (prefers-reduced-motion: reduce) {
    .ludo-game-card,
    .ludo-card-ludo,
    .ludo-card-support,
    .ludo-border-beam,
    .ludo-border-beam-glow,
    .ludo-card-body::after,
    .ludo-feature-banner,
    .ludo-gold-banner,
    .ludo-feature-banner::after,
    .ludo-badge-live,
    .ludo-badge-live .live-dot::before,
    .ludo-quick-card:hover .fa-mobile-screen-button,
    .ludo-quick-card:hover .fa-moon {
        animation: none !important;
        transform: none !important;
    }
}

/* ==========================================================================
   BATTLE TOURNAMENT COMPONENTS (Screenshot #5)
   ========================================================================== */

/* Create Battle Card */
.ludo-create-battle-card {
    background: linear-gradient(145deg, #0f1c3a 0%, #081024 100%);
    border: 1.5px solid rgba(255, 183, 3, 0.4);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.ludo-create-battle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ludo-create-battle-title {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ludo-rules-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #e2e8f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ludo-rules-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.ludo-battle-input-group {
    display: flex;
    align-items: center;
    background: #060c1d;
    border: 1.5px solid #1e3a8a;
    border-radius: 12px;
    padding: 4px 6px 4px 12px;
    gap: 8px;
}

.ludo-battle-input-group:focus-within {
    border-color: var(--ludo-gold);
    box-shadow: 0 0 12px rgba(255, 183, 3, 0.35);
}

.ludo-battle-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

.ludo-battle-input::placeholder {
    color: #64748b;
}

.ludo-btn-set {
    background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
    border: none;
    color: #1e1b4b;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ludo-btn-set:hover {
    transform: scale(1.03);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

/* ==========================================================================
   PIXEL-MATCH OPEN BATTLES CARDS (FSALUDOCLUB GAMING HUD)
   ========================================================================== */
.ludo-battle-card {
    position: relative;
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
    min-height: 84px;
}

/* 1. CREATOR'S OWN OPEN BATTLE (RED CARD - SCREENSHOT #1) */
.ludo-battle-card.battle-card--own-open,
.ludo-battle-card.battle-card-creator {
    background: 
        radial-gradient(circle at 8% 50%, rgba(255, 20, 60, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 92% 50%, rgba(255, 20, 60, 0.22) 0%, transparent 45%),
        linear-gradient(135deg, #180306 0%, #0a0103 50%, #150205 100%);
    border: 1.5px solid #ff1744;
    box-shadow: 0 0 14px rgba(255, 23, 68, 0.38), inset 0 0 18px rgba(255, 0, 50, 0.12);
}

.ludo-battle-card.battle-card--own-open:hover,
.ludo-battle-card.battle-card-creator:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(255, 23, 68, 0.6), inset 0 0 22px rgba(255, 0, 50, 0.22);
    border-color: #ff3366;
}

/* 2. CREATOR'S OWN BATTLE - OPPONENT HAS JOINED (RED CARD - SCREENSHOT #2) */
.ludo-battle-card.battle-card--own-requested,
.ludo-battle-card.battle-card-requested {
    background: 
        radial-gradient(circle at 8% 50%, rgba(255, 20, 60, 0.32) 0%, transparent 45%),
        radial-gradient(circle at 92% 50%, rgba(255, 20, 60, 0.28) 0%, transparent 45%),
        linear-gradient(135deg, #1c0307 0%, #0a0103 50%, #1c0307 100%);
    border: 1.5px solid #ff1744;
    box-shadow: 0 0 16px rgba(255, 23, 68, 0.48), inset 0 0 20px rgba(255, 0, 50, 0.18);
}

.ludo-battle-card.battle-card--own-requested:hover,
.ludo-battle-card.battle-card-requested:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(255, 23, 68, 0.7), inset 0 0 24px rgba(255, 0, 50, 0.28);
}

/* Shard particles for red cards */
.ludo-red-shards {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.75;
}

/* 3. OTHER PLAYERS' OPEN BATTLES (BLUE CARD - SCREENSHOTS #1 & #2) */
.ludo-battle-card.battle-card--opponent-open,
.ludo-battle-card.battle-card-open {
    background: 
        radial-gradient(circle at 90% 50%, rgba(0, 150, 255, 0.22) 0%, transparent 55%),
        linear-gradient(135deg, #050a18 0%, #02040a 50%, #040916 100%);
    border: 1.5px solid #0099ff;
    box-shadow: 0 0 14px rgba(0, 153, 255, 0.38), inset 0 0 18px rgba(0, 150, 255, 0.1);
}

.ludo-battle-card.battle-card--opponent-open:hover,
.ludo-battle-card.battle-card-open:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(0, 153, 255, 0.6), inset 0 0 22px rgba(0, 150, 255, 0.18);
    border-color: #00c8ff;
}

/* Curved Futuristic HUD Swoop Line on Blue Card */
.ludo-card-swoop {
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 4. OCCUPIED CARD */
.ludo-battle-card.battle-card-occupied {
    background: linear-gradient(135deg, #0b1122 0%, #060913 100%);
    border: 1.5px solid rgba(148, 163, 184, 0.3);
    opacity: 0.9;
}

/* CARD CONTENT LAYOUT */
.ludo-battle-left {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ludo-battle-trophy-wrapper {
    width: 44px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ludo-battle-trophy {
    width: 42px;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 2px 7px rgba(255, 180, 0, 0.6));
}

.ludo-battle-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

/* TOP ROW: Live Badge + Player Name */
.ludo-battle-user-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ludo-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #0d1e2e;
    border: 1px solid #00d2ff;
    border-radius: 12px;
    padding: 1.5px 8px;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    flex-shrink: 0;
}

.ludo-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00f7ff;
    box-shadow: 0 0 6px #00f7ff;
}

.ludo-battle-username {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.ludo-battle-uid-tag {
    font-size: 9px;
    color: #64748b;
}

/* BOTTOM ROW: Entry Fee + Vertical Divider + Winning Prize */
.ludo-battle-pricing {
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.ludo-price-col {
    display: flex;
    flex-direction: column;
}

.ludo-price-label {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #dca338; /* Gold/Amber label */
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1px;
}

.ludo-price-fee {
    font-size: 15px;
    font-weight: 900;
    color: #ffffff; /* White entry amount */
    line-height: 1.1;
    letter-spacing: 0.2px;
}

.ludo-price-win {
    font-size: 15px;
    font-weight: 900;
    color: #00ff66; /* Bright Neon Green winning prize */
    line-height: 1.1;
    letter-spacing: 0.2px;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.45);
}

.ludo-price-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.18);
    margin: 0 12px;
    flex-shrink: 0;
}

/* RIGHT SECTION: Circular Buttons */
.ludo-battle-actions,
.battle-card__actions {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Base Circular Button */
.ludo-btn-circle,
.battle-action-btn,
.ludo-btn-play {
    border-radius: 50%;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
    border: none;
    outline: none;
    padding: 0;
    box-sizing: border-box;
}

/* RED CIRCULAR DELETE BUTTON (Screenshot #1) */
.ludo-btn-delete,
.battle-action--delete {
    width: 58px;
    height: 58px;
    border: 2px solid #ff1744;
    background: radial-gradient(circle at 50% 50%, #3a030b 0%, #150004 65%, #47040e 100%);
    box-shadow: 0 0 0 2.5px rgba(255, 23, 68, 0.4), 0 0 16px rgba(255, 23, 68, 0.8), inset 0 0 12px rgba(255, 23, 68, 0.6);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.8px;
}

.ludo-btn-delete:hover,
.battle-action--delete:hover {
    transform: scale(1.08);
    box-shadow: 0 0 0 3px rgba(255, 23, 68, 0.6), 0 0 24px rgba(255, 23, 68, 1), inset 0 0 14px rgba(255, 23, 68, 0.8);
    color: #ffffff;
}

/* BLUE CIRCULAR START BUTTON (Screenshot #2) */
.ludo-btn-start,
.battle-action--start {
    width: 48px;
    height: 48px;
    border: 2px solid #00c8ff;
    background: radial-gradient(circle at 50% 50%, #03204d 0%, #010a18 65%, #053b87 100%);
    box-shadow: 0 0 0 2px rgba(0, 200, 255, 0.4), 0 0 14px rgba(0, 200, 255, 0.85), inset 0 0 10px rgba(0, 200, 255, 0.6);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: 0.6px;
}

.ludo-btn-start:hover,
.battle-action--start:hover {
    transform: scale(1.08);
    box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.6), 0 0 22px rgba(0, 200, 255, 1), inset 0 0 12px rgba(0, 200, 255, 0.8);
    color: #ffffff;
}

/* RED CIRCULAR CANCEL BUTTON (Screenshot #2) */
.ludo-btn-cancel-round,
.battle-action--cancel {
    width: 48px;
    height: 48px;
    border: 2px solid #ff1744;
    background: radial-gradient(circle at 50% 50%, #3a030b 0%, #150004 65%, #47040e 100%);
    box-shadow: 0 0 0 2px rgba(255, 23, 68, 0.4), 0 0 14px rgba(255, 23, 68, 0.8), inset 0 0 10px rgba(255, 23, 68, 0.6);
    color: #ffffff;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.ludo-btn-cancel-round:hover,
.battle-action--cancel:hover {
    transform: scale(1.08);
    box-shadow: 0 0 0 3px rgba(255, 23, 68, 0.6), 0 0 22px rgba(255, 23, 68, 1), inset 0 0 12px rgba(255, 23, 68, 0.8);
    color: #ffffff;
}

/* BLUE CIRCULAR PLAY BUTTON (Screenshots #1 & #2) */
.ludo-btn-play,
.battle-action--play {
    width: 58px;
    height: 58px;
    border: 2px solid #00c8ff;
    background: radial-gradient(circle at 50% 50%, #03204d 0%, #010a18 65%, #053b87 100%);
    box-shadow: 0 0 0 2.5px rgba(0, 200, 255, 0.4), 0 0 18px rgba(0, 200, 255, 0.9), inset 0 0 12px rgba(0, 200, 255, 0.6);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
}

.ludo-btn-play:hover,
.battle-action--play:hover {
    transform: scale(1.08);
    box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.6), 0 0 26px rgba(0, 200, 255, 1), inset 0 0 14px rgba(0, 200, 255, 0.8);
    color: #ffffff;
}

/* Mobile responsive adjustments */
@media (max-width: 390px) {
    .ludo-battle-card {
        padding: 9px 10px;
    }
    .ludo-battle-left {
        gap: 8px;
    }
    .ludo-battle-trophy {
        width: 36px;
        height: 40px;
    }
    .ludo-battle-username {
        font-size: 12px;
        max-width: 105px;
    }
    .ludo-price-title {
        font-size: 8px;
    }
    .ludo-price-fee,
    .ludo-price-win {
        font-size: 13.5px;
    }
    .ludo-price-divider {
        margin: 0 8px;
        height: 18px;
    }
    .ludo-btn-delete,
    .battle-action--delete,
    .ludo-btn-play,
    .battle-action--play {
        width: 52px;
        height: 52px;
    }
    .ludo-btn-start,
    .battle-action--start,
    .ludo-btn-cancel-round,
    .battle-action--cancel {
        width: 44px;
        height: 44px;
        font-size: 8.5px;
    }
}

/* ==========================================================================
   BATTLE CARDS RIGHT-SLIDE ENTRANCE ANIMATION (Requirement #1)
   ========================================================================== */
@keyframes ludoSlideInRight {
    0% {
        opacity: 0;
        transform: translate3d(50px, 0, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.ludo-slide-in-right {
    animation: ludoSlideInRight 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--card-stagger, 0) * 65ms);
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    .ludo-slide-in-right {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        will-change: auto !important;
    }
}

/* Prevent horizontal overflow scrollbar or page shifts during right-slide */
#open-battles-section,
#running-battles-section,
#open-battles-list,
#running-battles-list {
    overflow-x: hidden;
}

/* ==========================================================================
   RUNNING BATTLE CARD (Requirement #5)
   ========================================================================== */
.ludo-running-card {
    background: linear-gradient(135deg, #180c2e 0%, #110722 100%);
    border: 1.5px solid rgba(168, 85, 247, 0.45);
    border-radius: 18px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ludo-running-card.running-card-mine {
    border-color: #22c55e !important;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.25), 0 6px 18px rgba(0, 0, 0, 0.45);
}

.ludo-running-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ludo-running-pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #00ff87;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #00ff87;
    animation: ludoPulseGreen 1.5s infinite;
}

@keyframes ludoPulseGreen {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.ludo-running-label {
    font-size: 11px;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ludo-running-players-badge {
    background: linear-gradient(135deg, #3b0764 0%, #2e1065 100%);
    border: 1px solid #9333ea;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 280px;
}

.ludo-running-players-badge .ludo-vs-text {
    color: #eab308;
    font-weight: 900;
    font-size: 10px;
    padding: 0 2px;
}

.ludo-running-matchup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ludo-matchup-box {
    flex: 1;
    background: rgba(10, 8, 26, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 14px;
    padding: 8px 10px;
    text-align: center;
}

.ludo-matchup-vs-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ludo-matchup-vs {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.5));
}

.ludo-running-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.ludo-running-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    color: #94a3b8;
}

.ludo-running-elapsed {
    color: #a78bfa;
    font-size: 10px;
}

.ludo-running-arena-btn {
    background: linear-gradient(135deg, #00d2ff, #0088ff);
    color: #050c1e !important;
    font-weight: 800;
    font-size: 11px;
    border-radius: 20px;
    padding: 4px 14px;
    border: none;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.35);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ludo-running-arena-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(0, 210, 255, 0.6);
    color: #000 !important;
}

/* ==========================================================================
   REFER & EARN SCREEN (Screenshot #2)
   ========================================================================== */
.ludo-refer-container {
    background: radial-gradient(circle at 50% 10%, #1e113a 0%, #070919 100%);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 16px;
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.ludo-refer-chest-banner {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 12px;
}

.ludo-refer-reward-card {
    background: linear-gradient(145deg, #241445 0%, #160a30 100%);
    border: 1.5px solid #a855f7;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
}

.ludo-reward-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #fef08a;
    margin-bottom: 4px;
}

.ludo-reward-headline {
    font-size: 20px;
    font-weight: 900;
    color: #ffd700;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.ludo-reward-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ludo-reward-row {
    background: rgba(147, 51, 234, 0.25);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
}

/* Unique Referral Code Box */
.ludo-code-box {
    background: linear-gradient(135deg, #a21caf 0%, #7e22ce 100%);
    border: 2px dashed #00d2ff;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}

.ludo-code-box-title {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.ludo-code-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 12px;
    padding: 6px 6px 6px 14px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.ludo-code-text {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: 3px;
    font-family: monospace;
}

.ludo-btn-copy {
    background: linear-gradient(135deg, #00d2ff 0%, #0284c7 100%);
    border: none;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.ludo-btn-copy:hover {
    box-shadow: 0 0 12px var(--ludo-cyan-glow);
}

/* Giant Shiny Invite Friends Button */
.ludo-btn-invite {
    width: 100%;
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
    border: 2px solid #86efac;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    padding: 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    transition: all 0.2s ease;
}

.ludo-btn-invite:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.6);
    color: #ffffff;
}

/* ==========================================================================
   SUPPORT CENTER SCREEN (Screenshot #4)
   ========================================================================== */
.ludo-support-header {
    text-align: center;
    margin: 14px 0 20px 0;
}

.ludo-support-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--ludo-text);
    margin-bottom: 4px;
}

.ludo-support-title span {
    color: var(--ludo-cyan);
}

.ludo-support-subtitle {
    font-size: 12px;
    color: var(--ludo-text-muted);
}

.ludo-support-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.ludo-support-item {
    background: var(--ludo-surface);
    border: 1.5px solid rgba(0, 210, 255, 0.35);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--ludo-text);
    box-shadow: var(--ludo-card-shadow);
    transition: all 0.2s ease;
}

.ludo-support-item:hover {
    border-color: var(--ludo-cyan);
    transform: translateY(-2px);
    color: var(--ludo-text);
    box-shadow: 0 8px 20px var(--ludo-cyan-glow);
}

.ludo-support-avatar {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.ludo-support-item-info {
    flex: 1;
}

.ludo-support-item-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 2px;
}

.ludo-support-item-sub {
    font-size: 11.5px;
    color: var(--ludo-text-muted);
}

.ludo-support-verified-tag {
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--ludo-cyan);
    margin-top: 20px;
    text-transform: uppercase;
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR (5 Items)
   ========================================================================== */
.ludo-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--ludo-bottom-nav-height, 66px);
    background: linear-gradient(180deg, #091226 0%, #050a16 100%);
    border-top: 1.5px solid rgba(0, 210, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1025;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.7);
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-sizing: border-box;
    transition: max-width 0.2s ease;
}

@media (min-width: 768px) {
    .ludo-bottom-nav {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .ludo-bottom-nav {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 100%;
        max-width: 960px;
    }
}

@media (min-width: 1400px) {
    .ludo-bottom-nav {
        max-width: 1040px;
    }
}

.ludo-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    flex: 1;
    height: 100%;
    min-width: 0;
    cursor: pointer;
    user-select: none;
    padding-bottom: 3px;
    transition: color 0.25s ease;
}

/* Glowing Curly Cradle Arc beneath Active Circle */
.ludo-nav-curly-arc {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    width: 80px;
    height: 22px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 102;
}

.ludo-nav-item.active .ludo-nav-curly-arc {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.ludo-nav-curly-arc svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 210, 255, 0.8));
}

/* Circle Wrapper for Icon */
.ludo-nav-circle {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 110;
}

.ludo-nav-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(0.65);
    opacity: 0.75;
    transition: all 0.25s ease;
}

.ludo-nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #64748b;
    white-space: nowrap;
    transition: all 0.25s ease;
    margin-top: 2px;
    z-index: 110;
}

/* ==========================================================================
   ACTIVE STATE: SIZE BADI HO + ELEVATED GLOWING CIRCLE + CURLY WINGS
   ========================================================================== */
.ludo-nav-item.active {
    color: #ffffff;
}

/* Active Floating Circle: Diameter 52px (Size Badi Ho!) */
.ludo-nav-item.active .ludo-nav-circle {
    position: absolute;
    top: -22px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #00f0ff 0%, #0066ff 60%, #003db8 100%);
    border: 3.5px solid #060b18;
    box-shadow: 0 8px 24px rgba(0, 210, 255, 0.7), 0 0 16px rgba(0, 102, 255, 0.5);
    transform: scale(1.05);
}

/* Curly Wings (Inverted curved notch flares) */
.ludo-nav-item.active::before,
.ludo-nav-item.active::after {
    content: '';
    position: absolute;
    top: -1.5px;
    width: 16px;
    height: 16px;
    background: transparent;
    pointer-events: none;
    z-index: 108;
    animation: ludoWingPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ludo-nav-item.active::before {
    left: calc(50% - 26px - 16px);
    border-top-right-radius: 16px;
    box-shadow: 4px -4px 0 2px #060b18;
}

.ludo-nav-item.active::after {
    right: calc(50% - 26px - 16px);
    border-top-left-radius: 16px;
    box-shadow: -4px -4px 0 2px #060b18;
}

@keyframes ludoWingPop {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: scale(1); }
}

/* Active Icon: Enlarged (26px), Crisp Pure White, Drop Shadow */
.ludo-nav-item.active .ludo-nav-icon {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
    opacity: 1;
    transform: scale(1.1);
}

/* Active Label: Cyan Highlight, Shifted Down, Glowing Text */
.ludo-nav-item.active .ludo-nav-label {
    color: var(--ludo-cyan, #00d2ff);
    font-weight: 800;
    transform: translateY(16px);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
}

/* Subtle pulsing neon ring around active circle */
.ludo-nav-item.active .ludo-nav-circle::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 210, 255, 0.5);
    animation: ludoNavPulseRing 2s infinite ease-out;
    pointer-events: none;
}

@keyframes ludoNavPulseRing {
    0% { transform: scale(0.95); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(0.95); opacity: 0.9; }
}

/* ==========================================================================
   NAVIGATION DRAWER (HAMBURGER SLIDEOUT - Screenshot #3)
   ========================================================================== */
.ludo-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ludo-drawer-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.ludo-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -320px;
    width: 290px;
    background: #f1f5f9;
    border-right: 1.5px solid rgba(0, 210, 255, 0.3);
    z-index: 1050;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 12px;
}

[data-theme="dark"] .ludo-drawer {
    background: #091024;
}

.ludo-drawer.open {
    left: 0;
}

/* Top Card with Corner Brackets */
.ludo-drawer-brand-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 14px;
    position: relative;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .ludo-drawer-brand-card {
    background: #0e1936;
}

.ludo-drawer-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #713f12;
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.2s ease;
}

.ludo-drawer-close-btn:hover {
    transform: scale(1.1);
}

.ludo-corner-bracket {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid #ca8a04;
    pointer-events: none;
}

.ludo-corner-bracket.corner-top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.ludo-corner-bracket.corner-bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.ludo-drawer-brand-logo {
    height: 82px;
    max-width: 210px;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(212, 175, 55, 0.45));
}

/* Pill Menu Items List */
.ludo-drawer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ludo-drawer-pill-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #1e293b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

[data-theme="dark"] .ludo-drawer-pill-item {
    background: #0e1936;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.05);
}

.ludo-drawer-pill-item:hover,
.ludo-drawer-pill-item.active {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #00d2ff;
}

.ludo-drawer-pill-icon {
    width: 24px;
    text-align: center;
}

.ludo-drawer-pill-text {
    font-size: 13.5px;
    font-weight: 700;
}

.ludo-drawer-pill-arrow {
    color: #16a34a;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

/* ==========================================================================
   MODALS, SKELETONS & EMPTY STATES
   ========================================================================== */
/* Authoritative Modal Stacking & Dimming Rules */
.modal-backdrop {
    z-index: 1050 !important;
    background-color: #000000 !important;
}

.modal-backdrop.show {
    opacity: 0.74 !important;
}

.modal {
    z-index: 1055 !important;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Modal Dialog Frame & Stacking Rules */
.modal-backdrop {
    z-index: 1050 !important;
    background-color: #000000 !important;
}

.modal-backdrop.show {
    opacity: 0.65 !important;
}

.modal {
    z-index: 1060 !important;
}

body.modal-open {
    overflow: hidden !important;
    touch-action: none;
}

.modal-dialog {
    margin: 1rem auto !important;
    width: min(520px, calc(100vw - 24px)) !important;
    max-width: 520px !important;
}

.modal.show .modal-dialog {
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
}

/* Premium Fsaludoclub Modal Container */
.ludo-modal-dialog {
    background: linear-gradient(165deg, #091530 0%, #030814 100%) !important;
    border: 1.5px solid #00d2ff !important;
    border-radius: 18px !important;
    color: #ffffff !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 210, 255, 0.28) !important;
    overflow: hidden;
    opacity: 1 !important;
    filter: none !important;
    position: relative;
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
}

/* Modal Header */
.ludo-modal-header {
    background: #060e22 !important;
    border-bottom: 1px solid rgba(0, 210, 255, 0.22) !important;
    padding: 14px 20px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
}

.ludo-modal-title {
    font-size: clamp(16px, 3.8vw, 20px);
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
}

.ludo-modal-close {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    padding: 7px;
    opacity: 0.85;
    transition: all 0.2s ease;
}

.ludo-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.22);
    opacity: 1;
    transform: rotate(90deg);
}

/* Modal Body */
.ludo-modal-body {
    padding: 18px 20px !important;
    color: #e2e8f0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ludo-modal-intro {
    color: #cbd5e1;
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 14px;
}

/* Inset Information Panels */
.ludo-modal-inset-panel {
    background: linear-gradient(135deg, rgba(8, 20, 48, 0.85) 0%, rgba(4, 11, 28, 0.95) 100%);
    border: 1px solid rgba(0, 180, 255, 0.28);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.ludo-modal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 13.5px;
}

.ludo-modal-label {
    color: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ludo-modal-val-fee {
    color: #ffd700;
    font-weight: 700;
    font-size: 15px;
}

.ludo-modal-val-win {
    color: #00ff66;
    font-weight: 800;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.35);
}

/* Balance Card (Sufficient) */
.ludo-modal-balance-card {
    background: linear-gradient(135deg, rgba(5, 14, 34, 0.85) 0%, rgba(2, 7, 18, 0.95) 100%);
    border: 1px solid rgba(0, 210, 255, 0.22);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.ludo-modal-val-cur {
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
}

.ludo-modal-val-after {
    color: #00d2ff;
    font-weight: 800;
    font-size: 15px;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.3);
}

.ludo-modal-val-shortfall {
    color: #ef4444;
    font-weight: 800;
    font-size: 14px;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

/* Balance Card (Insufficient Warning - Premium Dark Burgundy) */
.ludo-modal-insufficient-card {
    background: linear-gradient(135deg, #2a080e 0%, #170407 100%) !important;
    border: 1.5px solid rgba(239, 68, 68, 0.65) !important;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.25) !important;
}

.ludo-modal-warn-icon {
    flex-shrink: 0;
    padding-top: 2px;
}

.ludo-modal-warn-title {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}

.ludo-modal-warn-text {
    color: #fca5a5 !important;
    font-size: 13px;
    line-height: 1.5;
}

.ludo-modal-warn-text strong {
    color: #ffffff !important;
    font-weight: 700;
}

/* Room Code Note Panel */
.ludo-modal-room-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 210, 255, 0.06);
    border: 1px solid rgba(0, 210, 255, 0.15);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 6px;
    color: #94a3b8;
    font-size: 11.5px;
    line-height: 1.45;
}

/* Modal Footer */
.ludo-modal-footer {
    background: #040b1a !important;
    border-top: 1px solid rgba(0, 210, 255, 0.18) !important;
    padding: 14px 20px !important;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.ludo-modal-footer-insufficient,
.ludo-modal-footer-sufficient {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.ludo-modal-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Modal Cancel Button */
.ludo-modal-btn-cancel {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 9px 22px !important;
    border-radius: 30px !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ludo-modal-btn-cancel:hover,
.ludo-modal-btn-cancel:focus {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* Modal Add Points Button */
.ludo-modal-btn-add-points {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: none !important;
    color: #0f172a !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    padding: 9px 24px !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap !important;
}

.ludo-modal-btn-add-points:hover,
.ludo-modal-btn-add-points:focus {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #020617 !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.65) !important;
    transform: translateY(-1px);
}

.ludo-modal-btn-add-points:active {
    transform: translateY(0);
}

/* Modal Accept & Play Button */
.ludo-modal-btn-accept {
    background: linear-gradient(135deg, #00d2ff 0%, #0099ff 100%) !important;
    border: none !important;
    color: #030a1c !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    padding: 9px 24px !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 16px rgba(0, 210, 255, 0.4) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

.ludo-modal-btn-accept:hover,
.ludo-modal-btn-accept:focus {
    background: linear-gradient(135deg, #1ae4ff 0%, #0ea5e9 100%) !important;
    color: #010612 !important;
    box-shadow: 0 0 22px rgba(0, 210, 255, 0.7) !important;
    transform: translateY(-1px);
}

.ludo-modal-btn-accept:active {
    transform: translateY(0);
}

.ludo-modal-btn-accept:disabled {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

@media (max-width: 480px) {
    .modal-dialog {
        width: calc(100vw - 20px) !important;
        margin: 0.75rem auto !important;
    }
    .ludo-modal-header {
        padding: 12px 14px !important;
    }
    .ludo-modal-body {
        padding: 14px 14px !important;
    }
    .ludo-modal-footer {
        padding: 12px 14px !important;
    }
    .ludo-modal-footer-insufficient {
        flex-direction: column-reverse;
        gap: 8px;
    }
    .ludo-modal-footer-insufficient .ludo-modal-btn-cancel,
    .ludo-modal-footer-insufficient .ludo-modal-actions-right,
    .ludo-modal-footer-insufficient .ludo-modal-btn-add-points {
        width: 100% !important;
        text-align: center;
        justify-content: center;
    }
    .ludo-modal-footer-sufficient {
        flex-direction: column-reverse;
        gap: 8px;
    }
    .ludo-modal-footer-sufficient .ludo-modal-btn-cancel,
    .ludo-modal-footer-sufficient .ludo-join-battle-form,
    .ludo-modal-footer-sufficient .ludo-modal-btn-accept {
        width: 100% !important;
        text-align: center;
        justify-content: center;
    }
}

.ludo-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--ludo-text-muted);
}

.ludo-empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    opacity: 0.6;
}

/* Skeleton Loading Animation */
.ludo-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 200% 100%;
    animation: ludoShimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes ludoShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Toast Notification (Top-Center just below header) */
.ludo-toast {
    position: fixed;
    top: calc(var(--ludo-header-height, 64px) + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #0f172a;
    border: 1px solid var(--ludo-cyan);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 20px var(--ludo-cyan-glow);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: min(440px, calc(100vw - 24px));
    box-sizing: border-box;
    pointer-events: auto;
}

.ludo-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Unified Top-Center Player Toast Notifications */
.ludo-player-toast-container {
    position: fixed !important;
    top: calc(var(--ludo-header-height, 64px) + 12px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(440px, calc(100vw - 24px)) !important;
    max-width: 94vw !important;
    z-index: 99999 !important;
    pointer-events: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

.ludo-player-toast {
    pointer-events: auto !important;
    width: 100% !important;
    margin-bottom: 8px !important;
    box-sizing: border-box !important;
    animation: playerToastSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes playerToastSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-16px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   CHOOSE AMOUNT TO ADD (WALLET DEPOSIT) COMPONENT
   ========================================================================== */
.ludo-amount-card {
    background: #081026;
    border: 1.5px solid #1e3a8a;
    border-radius: 20px;
    padding: 22px 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.ludo-amount-title {
    text-align: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
}

.ludo-amount-input-box {
    background: #0b1a45;
    border: 1.5px solid #1d4ed8;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.ludo-rupee-circle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: #eab308;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.4);
}

.ludo-amount-input-meta {
    flex: 1;
}

.ludo-amount-label {
    font-size: 10px;
    font-weight: 700;
    color: #60a5fa;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.ludo-amount-input-field {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    width: 100%;
    padding: 0;
}

.ludo-amount-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 20px;
}

.ludo-amount-pill {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    border: 1px solid #60a5fa;
    border-radius: 12px;
    padding: 10px 2px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.15s ease-in-out;
    user-select: none;
    white-space: nowrap;
}

.ludo-amount-pill:hover,
.ludo-amount-pill:active {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

.ludo-amount-pill.active {
    background: linear-gradient(180deg, #facc15 0%, #eab308 100%) !important;
    color: #0f172a !important;
    border-color: #fef08a !important;
    box-shadow: 0 0 14px rgba(234, 179, 8, 0.65) !important;
    font-weight: 900 !important;
}

.ludo-step-btn {
    font-size: 13px;
    font-weight: 800;
    border-radius: 10px;
    padding: 6px 12px;
    line-height: 1;
    transition: all 0.15s ease;
    user-select: none;
    border: none;
    cursor: pointer;
}

.ludo-step-btn-minus {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.ludo-step-btn-minus:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.ludo-step-btn-plus {
    background: linear-gradient(180deg, #facc15 0%, #eab308 100%);
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.35);
}

.ludo-step-btn-plus:hover {
    background: linear-gradient(180deg, #fde047 0%, #facc15 100%);
    transform: scale(1.04);
}

.ludo-btn-gold-next {
    width: 100%;
    background: linear-gradient(180deg, #facc15 0%, #eab308 100%);
    border: none;
    border-radius: 14px;
    padding: 14px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.ludo-btn-gold-next:hover {
    background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.6);
    transform: translateY(-1px);
}

/* ==========================================================================
   HISTORY TAB & CARD COMPONENT (SCREENSHOT #2 REFERENCE)
   ========================================================================== */
.ludo-history-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 10px 0 20px;
}

.ludo-history-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d2ff, transparent);
}

.ludo-history-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

[data-theme="light"] .ludo-history-title {
    color: #0f172a;
}

.ludo-history-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
}

.ludo-history-tab-btn {
    flex: 1;
    min-width: 0;
    padding: 9px 4px;
    border-radius: 25px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ludo-history-tab-btn.active {
    background: linear-gradient(135deg, #d946ef 0%, #a855f7 100%);
    color: #ffffff;
    border-color: #f0abfc;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.45);
}

.ludo-history-card {
    background: #081026;
    border: 2px solid #a855f7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
    margin-bottom: 16px;
}

.ludo-history-card-status {
    padding: 7px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
}

.ludo-history-card-status.status-failed {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.ludo-history-card-status.status-success {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.ludo-history-card-body {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ludo-history-info-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ludo-history-info-row {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.ludo-history-info-row .label {
    color: #94a3b8;
    margin-right: 4px;
}

.ludo-history-expiry-text {
    font-size: 12px;
    color: #00d2ff;
    font-weight: 500;
    margin-top: 4px;
    line-height: 1.3;
}

.ludo-history-badge {
    background: #ffffff;
    border-radius: 20px;
    padding: 5px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 14px;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ludo-history-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    font-size: 11.5px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   NAVY GAMING CARDS & TOURNAMENT BRACKETS
   ========================================================================== */
.bg-navy-card,
.card.bg-navy-card {
    --bs-card-bg: #09132b;
    --bs-card-color: #ffffff;
    background: linear-gradient(145deg, #0d1b3e 0%, #060e22 100%) !important;
    border: 1.5px solid rgba(0, 210, 255, 0.25) !important;
    border-radius: 16px !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bg-navy-card:hover,
.card.bg-navy-card:hover {
    border-color: rgba(0, 210, 255, 0.5) !important;
    box-shadow: 0 6px 24px rgba(0, 210, 255, 0.15) !important;
}

.bg-navy-card h1,
.bg-navy-card h2,
.bg-navy-card h3,
.bg-navy-card h4,
.bg-navy-card h5,
.bg-navy-card h6 {
    color: #ffffff !important;
}

.bg-navy-card p,
.bg-navy-card .text-white-50 {
    color: rgba(226, 232, 240, 0.8) !important;
}

/* ==========================================================================
   LUDO TOURNAMENT PAGINATION STYLES
   ========================================================================== */
.ludo-pagination-wrapper svg,
.pagination svg {
    width: 1.1rem !important;
    height: 1.1rem !important;
    max-width: 1.1rem !important;
    max-height: 1.1rem !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.ludo-pagination-wrapper .pagination,
.pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
    list-style: none !important;
}

.ludo-pagination-wrapper .page-item .page-link,
.pagination .page-link {
    background-color: #09132b !important;
    border: 1px solid #1e3a8a !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 7px 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    transition: all 0.2s ease !important;
}

.ludo-pagination-wrapper .page-item .page-link:hover,
.pagination .page-link:hover {
    background-color: #1e3a8a !important;
    color: #ffffff !important;
    border-color: #00d2ff !important;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.3) !important;
}

.ludo-pagination-wrapper .page-item.active .page-link,
.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border-color: #00d2ff !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px var(--ludo-cyan-glow) !important;
}

.ludo-pagination-wrapper .page-item.disabled .page-link,
.pagination .page-item.disabled .page-link {
    background-color: rgba(9, 19, 43, 0.5) !important;
    border-color: rgba(30, 58, 138, 0.3) !important;
    color: #475569 !important;
    cursor: not-allowed !important;
}

.ludo-pagination-wrapper .text-muted,
.ludo-pagination-wrapper p {
    color: #94a3b8 !important;
}

.ludo-pagination-wrapper .fw-semibold {
    color: #00d2ff !important;
}

/* ==========================================================================
   INFINITE SCROLL & BATTLE LOAD MORE STATUS
   ========================================================================== */
.ludo-infinite-status {
    min-height: 38px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.ludo-loader-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(14, 42, 92, 0.45);
    border: 1px solid rgba(0, 210, 255, 0.25);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ludo-loader-end {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(14, 42, 92, 0.25);
    border: 1px dashed rgba(255, 215, 0, 0.3);
    color: #94a3b8;
    font-size: 11px;
}

.ludo-loader-error {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.ludo-loader-fallback button,
.ludo-load-more-btn {
    transition: all 0.2s ease;
}

.ludo-load-more-btn:hover {
    background: rgba(0, 210, 255, 0.15) !important;
    border-color: var(--ludo-cyan) !important;
    color: var(--ludo-cyan) !important;
    box-shadow: 0 0 10px var(--ludo-cyan-glow);
}

/* ==========================================================================
   MALIK LUDO SPECIFIC ENHANCEMENTS (MATCHING SCREENSHOTS #1 TO #5)
   ========================================================================== */

/* Creator Open Battle Card (Screenshot #2 Red Glow) */
.ludo-battle-card.battle-card-creator {
    background: linear-gradient(135deg, #180812 0%, #10050d 100%);
    border: 1.5px solid rgba(239, 68, 68, 0.55);
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.25);
}

.ludo-battle-card.battle-card-creator:hover {
    border-color: #ef4444;
    box-shadow: 0 6px 22px rgba(239, 68, 68, 0.45);
}



/* ==========================================================================
   MATCH ARENA (SCREENSHOT #4 & #5)
   ========================================================================== */
.ludo-arena-card {
    background: linear-gradient(145deg, #0b1530 0%, #060b1d 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.ludo-arena-versus-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
}

.ludo-arena-player-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.ludo-arena-avatar-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
    margin-bottom: 8px;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.4);
}

.ludo-arena-avatar-wrapper.is-self {
    background: linear-gradient(135deg, #00d2ff 0%, #3b82f6 100%);
    box-shadow: 0 0 18px rgba(0, 210, 255, 0.5);
}

.ludo-arena-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #070e22;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}

.ludo-arena-avatar.is-empty {
    background: #0d162d;
    border: 1.5px dashed #475569;
}

.ludo-arena-you-badge {
    position: absolute;
    bottom: -4px;
    background: #00d2ff;
    color: #040817;
    font-size: 8.5px;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.ludo-arena-player-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    max-width: 110px;
}

.ludo-arena-center-col {
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ludo-arena-vs-badge {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(circle, #7e22ce 0%, #3b0764 100%);
    border: 2px solid #c084fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 900;
    color: #ffd700;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.6);
    animation: vsPulse 2s infinite ease-in-out;
}

@keyframes vsPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 16px rgba(168, 85, 247, 0.6); }
    50% { transform: scale(1.06); box-shadow: 0 0 24px rgba(168, 85, 247, 0.9); }
}

.ludo-timer-badge {
    background: rgba(14, 42, 92, 0.8);
    border: 1px solid #1d4ed8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #67e8f9;
}

.ludo-room-code-box {
    background: #040817;
    border: 2px dashed rgba(255, 215, 0, 0.45);
    border-radius: 16px;
    padding: 14px;
}

.ludo-room-code-digits {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 5px;
    color: #ffd700;
    font-family: monospace;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.ludo-action-alert-card {
    background: linear-gradient(135deg, #1b1633 0%, #120e24 100%);
    border: 1.5px solid rgba(255, 183, 3, 0.4);
    border-radius: 16px;
}

/* Cancellation Reasons Options (Screenshot #5) */
.ludo-cancel-reason-option {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: rgba(14, 25, 51, 0.65);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}

.ludo-cancel-reason-option:hover,
.ludo-cancel-reason-option:focus-within {
    border-color: #00d2ff;
    background: rgba(0, 210, 255, 0.12);
    color: #ffffff;
}

.ludo-cancel-reason-option input[type="radio"]:checked + span {
    color: #00d2ff;
    font-weight: 700;
}

/* UPI QR Container (Wallet) */
.ludo-qr-image-wrapper {
    background: #ffffff;
    border: 3px solid rgba(212, 175, 55, 0.8);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
}

/* ==========================================================================
   BATTLE REQUEST SOUND & VISUAL NOTIFICATION
   ========================================================================== */

/* Sound Toggle Button in Header */
.ludo-sound-toggle-btn {
    background: rgba(14, 42, 92, 0.65);
    border: 1px solid rgba(0, 210, 255, 0.35);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.ludo-sound-toggle-btn:hover {
    background: rgba(0, 210, 255, 0.18);
    border-color: #00d2ff;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.45);
    transform: translateY(-1px);
}

.ludo-sound-toggle-btn.is-muted {
    border-color: rgba(148, 163, 184, 0.3);
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.5);
    box-shadow: none;
}

.ludo-sound-toggle-btn.is-muted:hover {
    border-color: rgba(148, 163, 184, 0.5);
    color: #ffffff;
}

/* Floating Real-Time Battle Request Toast (Top-Center just below header) */
.ludo-request-toast {
    position: fixed;
    top: calc(var(--ludo-header-height, 64px) + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: min(440px, calc(100vw - 24px));
    max-width: 94vw;
    z-index: 99999;
    box-sizing: border-box;
    animation: ludoToastSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ludoToastSlideDown {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-24px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.ludo-request-toast-inner {
    background: linear-gradient(160deg, #09173a 0%, #030814 100%);
    border: 1.5px solid #00d2ff;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 210, 255, 0.35);
    padding: 14px 16px;
    color: #ffffff;
}

.ludo-request-toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
    padding-bottom: 8px;
}

.ludo-request-toast-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.ludo-request-toast-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #cbd5e1;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}

.ludo-request-toast-close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: scale(1.1);
}

.ludo-request-toast-msg {
    font-size: 13.5px;
    color: #e2e8f0;
    margin-bottom: 10px;
    line-height: 1.45;
}

.ludo-request-toast-details {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.ludo-toast-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ludo-toast-uid {
    background: rgba(0, 210, 255, 0.15);
    border: 1px solid rgba(0, 210, 255, 0.35);
    color: #00d2ff;
}

.ludo-toast-entry {
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.35);
    color: #ffd700;
}

.ludo-toast-status {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ff5252;
}

.ludo-toast-btn-action {
    width: 100%;
    background: linear-gradient(135deg, #00d2ff 0%, #0099ff 100%) !important;
    border: none !important;
    color: #030a1c !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    padding: 8px 16px !important;
    border-radius: 24px !important;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4) !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
}

.ludo-toast-btn-action:hover {
    background: linear-gradient(135deg, #1ae4ff 0%, #0ea5e9 100%) !important;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.65) !important;
    transform: translateY(-1px);
}

/* Card Pulse Highlight Animation */
.battle-card--highlighted {
    animation: battleCardGlowPulse 1.2s ease-in-out 3;
}

@keyframes battleCardGlowPulse {
    0%, 100% {
        box-shadow: 0 0 16px rgba(255, 23, 68, 0.5), inset 0 0 20px rgba(255, 0, 50, 0.2);
    }
    50% {
        box-shadow: 0 0 35px rgba(0, 210, 255, 0.9), inset 0 0 25px rgba(0, 210, 255, 0.4);
        border-color: #00d2ff !important;
    }
}

