:root {
    --neon-blue: #00C9FF;
    --neon-green: #92FE9D;
    --hot-red: #ff4d4d;
    --cyber-black: #0a0a0c;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--cyber-black);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 201, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(146, 254, 157, 0.05) 0%, transparent 40%);
    color: #e0e0e0;
    overflow-x: hidden;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Fix Bootstrap Utilities for Dark Mode */
.text-muted {
    color: #a0a0a0 !important;
}

.text-dark {
    color: #fff !important; /* Invert text-dark on dark mode unless specified otherwise */
}

/* Allow bg-white to actually be white for image containers */
.bg-white {
    background-color: #ffffff !important;
}

/* Use this for "dark mode white" areas (cards/modals) if needed, 
   though glass-card handles most of it. */
.bg-dark-overlay {
    background-color: #1a1a1a !important;
}

.card {
    background-color: transparent;
    border: none;
}

/* Vendor Badges */
.badge-amazon {
    background-color: #FF9900;
    color: #232F3E;
    font-weight: 800;
}

.badge-ebay {
    background-color: #ffffff;
    color: #333;
    border: 2px solid #e53238; /* eBay Red border/accent */
    font-weight: 800;
}
.badge-ebay span:nth-child(1) { color: #e53238; }
.badge-ebay span:nth-child(2) { color: #0064d2; }
.badge-ebay span:nth-child(3) { color: #f5af02; }
.badge-ebay span:nth-child(4) { color: #86b817; }

.badge-bestbuy {
    background-color: #0046be;
    color: #fff;
    font-weight: 800;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent content spill */
}

/* Truncation Utilities */
.text-truncate-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.glass-card:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 201, 255, 0.2);
    transform: translateY(-5px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: white;
    font-weight: 800;
    letter-spacing: -0.5px;
}

a {
    color: var(--neon-blue);
    transition: color 0.2s;
    text-decoration: none;
}

a:hover {
    color: var(--neon-green);
    text-decoration: none;
}

/* Neon Animations */
@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 77, 77, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 77, 77, 0.6); }
    100% { box-shadow: 0 0 5px rgba(255, 77, 77, 0.2); }
}

@keyframes greenPulse {
    0% { box-shadow: 0 0 0 0 rgba(146, 254, 157, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(146, 254, 157, 0); }
    100% { box-shadow: 0 0 0 0 rgba(146, 254, 157, 0); }
}

.hot-pulse {
    animation: glowPulse 2s infinite;
}

.pulse-dot {
    animation: greenPulse 2s infinite;
}

/* Custom Buttons - Framed/Outline Style */
.btn-cyber {
    background: transparent;
    color: var(--neon-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--neon-blue);
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 201, 255, 0.1);
}

.btn-cyber:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 20px var(--neon-blue);
}

.btn-cyber-filled {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
    color: #000;
    border: none;
    font-weight: 800;
}

.btn-cyber-filled:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 15px var(--neon-green);
}

/* Navbar */
.navbar-cyber {
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, #00C9FF, #92FE9D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

/* Ticker Animation */
.ticker-wrap { 
    width: 100%; 
    overflow: hidden; 
    height: 32px; 
    background-color: #050507; 
    border-bottom: 1px solid #1a1a1a; 
    display: flex; 
    align-items: center;
    position: relative;
    z-index: 2000; /* Ensure it stays on top */
    color: #92FE9D; /* Force text color */
} 
.ticker { 
    display: flex; 
    white-space: nowrap; 
    animation: ticker 60s linear infinite; /* Slower */
    width: max-content; 
} 
.ticker:hover { animation-play-state: paused; } 
.ticker__item { 
    padding: 0 2rem; 
    font-size: 0.8rem; 
    color: #92FE9D; 
    font-family: 'Consolas', monospace; 
    font-weight: bold; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    text-decoration: none; 
} 
.ticker__item:hover { color: #00C9FF; }
@keyframes ticker { 
    0% { transform: translate3d(0, 0, 0); } 
    100% { transform: translate3d(-50%, 0, 0); } 
}

/* Spacing & Layout */
section, .section-spacer {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.shadow-inner {
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

/* Forms (Dark Mode) */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-blue);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(0, 201, 255, 0.25);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #050507;
    color: #888;
    padding: 3rem 0;
}
