/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #00ff9d;
    --primary-green-dark: #00cc7a;
    --primary-green-light: #6affc9;
    --cyber-blue: #00ccff;
    --cyber-purple: #9d4edd;
    --warning-amber: #ffaa00;
    --warning-amber-dark: #cc8800;
    --danger-red: #ff3366;
    --danger-red-dark: #cc2952;
    --info-blue: #3366ff;
    --info-blue-dark: #2952cc;
    
    --bg-dark: #0a0a0f;
    --bg-card: rgba(16, 18, 27, 0.9);
    --bg-card-hover: rgba(22, 25, 37, 0.95);
    --border-color: rgba(0, 255, 157, 0.1);
    --border-hover: rgba(0, 255, 157, 0.3);
    --border-glow: rgba(0, 255, 157, 0.15);
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --text-muted: #6a6a8a;
    
    --shadow-color: rgba(0, 255, 157, 0.1);
    --shadow-intensity: 0.25rem;
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Effects */
.background-gradients {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-green), transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--cyber-blue), transparent 70%);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--cyber-purple), transparent 70%);
    top: 50%;
    left: 80%;
    animation-delay: -10s;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.03;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-container {
    position: relative;
    width: 60px;
    height: 60px;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    z-index: 2;
    position: relative;
    border: 1px solid rgba(0, 255, 157, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
    background: rgba(10, 10, 15, 0.8);
    padding: 8px;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, var(--primary-green), transparent 70%);
    filter: blur(10px);
    opacity: 0.5;
    z-index: 1;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-green), var(--cyber-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.brand-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 0.25rem;
}

.header-right {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.btn:hover::before {
    left: 100%;
}

.discord-btn {
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: white;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.website-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: var(--bg-dark);
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3);
}

.website-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 157, 0.4);
}

/* Dashboard Header */
.dashboard-header {
    margin-bottom: 3rem;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--primary-green), var(--cyber-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.status-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(10, 12, 18, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(0, 255, 157, 0.1);
    max-width: fit-content;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.legend-divider {
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.5;
    margin: 0 0.5rem;
}

/* Status Dots */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

/* Status Dot Colors with Glow */
.status-dot.undetected {
    background-color: var(--primary-green);
    box-shadow: 0 0 8px var(--primary-green), 0 0 12px rgba(0, 255, 157, 0.3);
    animation: pulse-green 2s infinite;
}

.status-dot.updating {
    background-color: var(--warning-amber);
    box-shadow: 0 0 8px var(--warning-amber), 0 0 12px rgba(255, 170, 0, 0.3);
}

.status-dot.detected {
    background-color: var(--danger-red);
    box-shadow: 0 0 8px var(--danger-red), 0 0 12px rgba(255, 51, 102, 0.3);
}

.status-dot.maintenance {
    background-color: var(--info-blue);
    box-shadow: 0 0 8px var(--info-blue), 0 0 12px rgba(51, 102, 255, 0.3);
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 8px var(--primary-green), 0 0 12px rgba(0, 255, 157, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 12px var(--primary-green), 0 0 20px rgba(0, 255, 157, 0.5);
        transform: scale(1.1);
    }
}

/* Status Sections */
.status-sections {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.status-section {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
}

.status-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.status-section:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0, 255, 157, 0.15);
    transform: translateY(-4px);
}

.status-section:hover::before {
    opacity: 1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    width: 6px;
    height: 24px;
    background: linear-gradient(to bottom, var(--primary-green), var(--cyber-blue));
    border-radius: 3px;
}

.section-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
    position: relative;
}

.pulse-indicator.active {
    background-color: var(--primary-green);
}

.pulse-indicator.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-green);
    animation: pulse 2s infinite;
    opacity: 0.5;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

/* Product Cards */
.products-grid {
    padding: 2rem;
}

.product-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem;
    background: rgba(10, 12, 18, 0.6);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all var(--transition-normal);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.product-card:last-child {
    margin-bottom: 0;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 157, 0.05), transparent);
    transition: left 0.7s ease;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    background: rgba(15, 18, 25, 0.8);
    border-color: rgba(0, 255, 157, 0.15);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 600px;
}

.product-status {
    margin-left: 1.5rem;
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    min-width: 140px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.status-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.status-pill:hover::before {
    opacity: 1;
}

/* Status Pill Colors */
.status-pill.undetected {
    background: rgba(0, 255, 157, 0.1);
    color: var(--primary-green);
    border: 1px solid rgba(0, 255, 157, 0.2);
}

.status-pill.undetected .status-dot {
    background-color: var(--primary-green);
    box-shadow: 0 0 8px var(--primary-green), 0 0 12px rgba(0, 255, 157, 0.3);
    animation: pulse-green 2s infinite;
}

.status-pill.updating {
    background: rgba(255, 170, 0, 0.1);
    color: var(--warning-amber);
    border: 1px solid rgba(255, 170, 0, 0.2);
}

.status-pill.updating .status-dot {
    background-color: var(--warning-amber);
    box-shadow: 0 0 8px var(--warning-amber), 0 0 12px rgba(255, 170, 0, 0.3);
}

.status-pill.detected {
    background: rgba(255, 51, 102, 0.1);
    color: var(--danger-red);
    border: 1px solid rgba(255, 51, 102, 0.2);
}

.status-pill.detected .status-dot {
    background-color: var(--danger-red);
    box-shadow: 0 0 8px var(--danger-red), 0 0 12px rgba(255, 51, 102, 0.3);
}

.status-pill.maintenance {
    background: rgba(51, 102, 255, 0.1);
    color: var(--info-blue);
    border: 1px solid rgba(51, 102, 255, 0.2);
}

.status-pill.maintenance .status-dot {
    background-color: var(--info-blue);
    box-shadow: 0 0 8px var(--info-blue), 0 0 12px rgba(51, 102, 255, 0.3);
}

/* Status Pill Dots */
.status-pill .status-dot {
    width: 8px;
    height: 8px;
}

/* Dashboard Footer */
.dashboard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.last-updated, .api-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.last-updated i, .api-note i {
    color: var(--primary-green);
    font-size: 1rem;
}

.api-note code {
    background: rgba(0, 255, 157, 0.1);
    color: var(--primary-green);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(0, 255, 157, 0.2);
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.disclaimer {
    color: var(--text-muted);
    font-size: 0.8rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .header-right {
        width: 100%;
        justify-content: flex-start;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .section-header, .dashboard-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .status-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        max-width: 100%;
    }
    
    .legend-divider {
        display: none;
    }
    
    .product-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .product-status {
        margin-left: 0;
        align-self: stretch;
    }
    
    .status-pill {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .section-header, .products-grid {
        padding: 1.25rem 1.5rem;
    }
    
    .dashboard-footer {
        padding: 1.25rem 1.5rem;
    }
    
    .status-legend {
        padding: 0.75rem 1rem;
    }
    
    .product-card {
        padding: 1.25rem;
    }
}

/* Focus States for Accessibility */
.btn:focus,
.status-pill:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background-color: rgba(0, 255, 157, 0.3);
    color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 12, 18, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 157, 0.2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 157, 0.3);
}