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

body {
    background-color: #02040a;
    color: #e2e8f0;
    overflow-x: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* 100% ROCK-SOLID HARDWARE ACCELERATION (Zero Shaking / Zero Text Jitter) */
.tabular-nums {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* Ambient Cyber Grid Background with Luxury Violet & Cyan Glows */
.ambient-aurora {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(139, 92, 246, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(0, 255, 157, 0.09) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
        linear-gradient(rgba(26, 38, 74, 0.28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 38, 74, 0.28) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 32px 32px, 32px 32px;
    transform: translateZ(0);
}

/* CINEMATIC HOLLYWOOD HACKER BOOT SPLASH */
#bootSplashScreen {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: #020308;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
    overflow: hidden;
}
#bootSplashScreen.fade-out {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
}
#bootMatrixCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.45;
    pointer-events: none;
}

/* Cyber Terminal HUD Window */
.terminal-hud-window {
    background: rgba(6, 10, 24, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(0, 240, 255, 0.5);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 240, 255, 0.3);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.terminal-header-bar {
    background: rgba(12, 20, 48, 0.95);
    border-bottom: 1px solid rgba(0, 240, 255, 0.25);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Stable Solid Glowing Card with Dual Violet-Cyan Glow */
.neon-card-border {
    border: 1.5px solid rgba(0, 240, 255, 0.55);
    border-radius: 22px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 240, 255, 0.2), 0 0 50px rgba(139, 92, 246, 0.12);
    position: relative;
    background: linear-gradient(180deg, rgba(8, 14, 32, 0.98) 0%, rgba(4, 7, 16, 0.99) 100%);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    transform: translateZ(0);
}

/* Corner Tech Accents */
.corner-bracket {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: #00f0ff;
    pointer-events: none;
    filter: drop-shadow(0 0 5px #00f0ff);
}
.corner-top-left { top: 8px; left: 8px; border-top: 2px solid; border-left: 2px solid; }
.corner-top-right { top: 8px; right: 8px; border-top: 2px solid; border-right: 2px solid; }
.corner-bottom-left { bottom: 8px; left: 8px; border-bottom: 2px solid; border-left: 2px solid; }
.corner-bottom-right { bottom: 8px; right: 8px; border-bottom: 2px solid; border-right: 2px solid; }

/* Luxury Action Launch Button */
.btn-matrix-hack {
    background: linear-gradient(135deg, #00f0ff 0%, #6366f1 45%, #a855f7 80%, #00ff88 100%);
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    letter-spacing: 0.08em;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.55), 0 0 25px rgba(168, 85, 247, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform: translateZ(0);
}
.btn-matrix-hack:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 14px 45px rgba(0, 240, 255, 0.8), 0 0 35px rgba(168, 85, 247, 0.5);
}

/* Floating Telegram Button */
.tg-pulse-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 95;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00f0ff 0%, #0088cc 60%, #7c3aed 100%);
    color: white;
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.35);
    transition: transform 0.2s ease;
    transform: translateZ(0);
}
.tg-pulse-button:hover {
    transform: scale(1.1);
}

/* Glow Text Utilities */
.glow-cyan { text-shadow: 0 0 16px rgba(0, 240, 255, 0.9), 0 0 30px rgba(0, 240, 255, 0.4); }
.glow-green { text-shadow: 0 0 16px rgba(0, 255, 136, 0.9), 0 0 30px rgba(0, 255, 136, 0.4); }
.glow-gold { text-shadow: 0 0 16px rgba(255, 215, 0, 0.9), 0 0 30px rgba(255, 215, 0, 0.4); }
.glow-pink { text-shadow: 0 0 16px rgba(255, 0, 127, 0.9), 0 0 30px rgba(255, 0, 127, 0.4); }
.glow-violet { text-shadow: 0 0 16px rgba(168, 85, 247, 0.9), 0 0 30px rgba(168, 85, 247, 0.4); }

/* Prediction Blur Gate */
.prediction-blurred {
    filter: blur(14px);
    user-select: none;
    pointer-events: none;
}
.prediction-unlocked {
    filter: blur(0px) !important;
    user-select: auto;
    pointer-events: auto;
}

/* 3D Ball */
.ball-3d {
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
    transition: transform 0.2s ease;
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.ball-3d:hover {
    transform: scale(1.15);
}

.gradient-violet { background: linear-gradient(135deg, #ff007f 50%, #a855f7 50%); }
.gradient-green-violet { background: linear-gradient(135deg, #00ff88 50%, #a855f7 50%); }

.logo-ring {
    border: 2px solid #00f0ff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

/* Equalizer Bar Animation */
.eq-bar {
    width: 3px;
    background: #00f0ff;
    border-radius: 9999px;
    animation: eqPulse 1.2s ease-in-out infinite alternate;
}
@keyframes eqPulse {
    0% { height: 4px; }
    100% { height: 14px; }
}

/* Blinking Cursor */
.blink-cursor {
    display: inline-block;
    width: 7px;
    height: 14px;
    background-color: #00ff88;
    animation: blink 0.8s infinite;
    vertical-align: middle;
    margin-left: 2px;
}
@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Quantum Radar Pulse inside Hacking Loader */
.quantum-radar {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(0, 240, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.quantum-radar::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, transparent 60%, rgba(0, 240, 255, 0.8) 100%);
    border-radius: 50%;
    animation: radarRotate 1.2s linear infinite;
}
@keyframes radarRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ANIMATED JACKPOT TROPHY BADGE (PREMIUM GOLD SHIMMER) */
.jackpot-badge-animated {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.18) 0%, rgba(255, 140, 0, 0.28) 100%);
    border: 1.2px solid rgba(255, 215, 0, 0.85);
    color: #ffd700;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.5), inset 0 0 8px rgba(255, 215, 0, 0.25);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3.5px 8.5px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
    animation: jackpotGlowPulse 2s ease-in-out infinite alternate;
}

.jackpot-badge-animated::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: rotate(25deg);
    animation: jackpotShimmer 2.5s infinite;
}

.jackpot-trophy-icon {
    display: inline-block;
    filter: drop-shadow(0 0 6px #ffd700);
    animation: trophyBounce 1.8s ease-in-out infinite;
}

@keyframes jackpotGlowPulse {
    0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.35), inset 0 0 6px rgba(255, 215, 0, 0.15); border-color: rgba(255, 215, 0, 0.7); }
    100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), inset 0 0 12px rgba(255, 215, 0, 0.4); border-color: rgba(255, 235, 100, 1); }
}

@keyframes jackpotShimmer {
    0% { left: -70%; }
    40% { left: 140%; }
    100% { left: 140%; }
}

@keyframes trophyBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-1.5px) scale(1.15); }
}

/* HIGH-TECH AI SIGNAL STATUS BADGES */
.win-badge-emerald {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(16, 185, 129, 0.25) 100%);
    border: 1.2px solid rgba(0, 255, 136, 0.7);
    color: #00ff88;
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.4), inset 0 0 6px rgba(0, 255, 136, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3.5px 8.5px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
    letter-spacing: 0.5px;
}

.loss-badge-ruby {
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.12) 0%, rgba(225, 29, 72, 0.22) 100%);
    border: 1.2px solid rgba(255, 0, 127, 0.6);
    color: #ff2d87;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.35), inset 0 0 5px rgba(255, 0, 127, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3.5px 8.5px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(255, 0, 127, 0.5);
    letter-spacing: 0.5px;
}

/* Toast Container */
#toastContainer {
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 110;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 85vw;
}
.toast-item {
    background: rgba(8, 14, 34, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 240, 255, 0.5);
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 11.5px;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.25);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
}
.toast-item.show {
    transform: translateY(0);
    opacity: 1;
}

/* ======================================================== */
/* 📱 PIXEL-PERFECT MOBILE RESPONSIVE HISTORY TABLE */
/* ======================================================== */
.history-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fixed-history-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

/* Clear dedicated column distribution */
.col-period { width: 33%; text-align: left; }
.col-ball   { width: 15%; text-align: center; }
.col-size   { width: 15%; text-align: center; }
.col-color  { width: 12%; text-align: center; }
.col-signal { width: 25%; text-align: center; }

.fixed-history-table th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    .fixed-history-table {
        font-size: 11px;
    }
    .neon-card-border {
        border-radius: 14px;
    }
    .tg-pulse-button {
        bottom: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        box-shadow: 0 4px 14px rgba(0, 240, 255, 0.45);
    }
    .tg-pulse-button svg {
        width: 18px;
        height: 18px;
    }
    .jackpot-badge-animated {
        padding: 2px 4px !important;
        font-size: 8.5px !important;
        letter-spacing: -0.3px !important;
        gap: 2px !important;
        white-space: nowrap !important;
    }
    .win-badge-emerald, .loss-badge-ruby {
        padding: 2px 5px !important;
        font-size: 8.5px !important;
        letter-spacing: -0.2px !important;
        white-space: nowrap !important;
    }
    .ball-3d {
        width: 22px !important;
        height: 22px !important;
    }
}


