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

:root {
    --sc-bg: #050b14;
    --sc-card: rgba(10, 22, 38, 0.75);
    --sc-card-border: rgba(0, 240, 255, 0.2);
    --sc-cyan: #00f0ff;
    --sc-cyan-glow: rgba(0, 240, 255, 0.35);
    --sc-amber: #f59e0b;
    --sc-green: #10b981;
    --sc-red: #ef4444;
    --sc-blue: #3b82f6;
}

body {
    background-color: var(--sc-bg);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(245, 158, 11, 0.04) 0%, transparent 40%),
        linear-gradient(to right, rgba(0, 240, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
}

.font-sc-title {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.08em;
}

.font-sc-hud {
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.04em;
}

/* Glassmorphic Sci-Fi Card */
.sc-card {
    background: var(--sc-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--sc-card-border);
    position: relative;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sc-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 240, 255, 0.1);
}

/* Sci-fi Corner Brackets */
.sc-bracket::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--sc-cyan);
    border-left: 2px solid var(--sc-cyan);
}

.sc-bracket::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid var(--sc-cyan);
    border-right: 2px solid var(--sc-cyan);
}

/* Neon Glows */
.sc-glow-cyan {
    text-shadow: 0 0 12px var(--sc-cyan-glow);
}

.sc-glow-amber {
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.sc-glow-green {
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(5, 11, 20, 0.9);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--sc-cyan);
}

/* Scanline Overlay (Optional sci-fi subtle scan) */
.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 9999;
    opacity: 0.15;
}

/* Pulse Animation for Live Transactions */
@keyframes sc-new-pulse {
    0% { background-color: rgba(0, 240, 255, 0.35); transform: scale(0.98); border-color: rgba(0, 240, 255, 0.8); }
    50% { background-color: rgba(0, 240, 255, 0.15); border-color: rgba(0, 240, 255, 0.5); }
    100% { background-color: transparent; transform: scale(1); }
}

.sc-pulse-anim {
    animation: sc-new-pulse 1.8s ease-out forwards;
}

/* Card Entry Animation for Live Streaming */
@keyframes sc-card-stream-in {
    0% {
        opacity: 0;
        transform: translateY(-16px) scale(0.97);
        border-color: rgba(0, 240, 255, 0.9);
        box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sc-stream-in {
    animation: sc-card-stream-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* HUD Counter Flash */
@keyframes sc-hud-flash {
    0% {
        color: #00f0ff;
        text-shadow: 0 0 16px rgba(0, 240, 255, 0.9);
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.sc-hud-flash {
    animation: sc-hud-flash 0.8s ease-out;
}

/* Toast Container & Notification */
#toastContainer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    pointer-events: none;
}

.sc-toast {
    pointer-events: auto;
    background: rgba(5, 14, 28, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 240, 255, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: sc-toast-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.4s, transform 0.4s;
}

.sc-toast.sc-toast-out {
    opacity: 0;
    transform: translateX(40px);
}

@keyframes sc-toast-in {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
