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

:root {
    /* Core Colors - Star Atlas Inspired */
    --bg-void: #000000;
    --bg-deep: #050510;
    --bg-space: #0a0a1a;
    --bg-nebula: #0d1025;

    /* Accent Colors - Vibrant Cyber */
    --accent-cyan: #00f0ff;
    --accent-cyan-dim: #0693e3;
    --accent-purple: #a855f7;
    --accent-purple-dim: #7c3aed;
    --accent-magenta: #ec4899;
    --accent-gold: #fbbf24;
    --accent-green: #10b981;
    --accent-red: #ef4444;

    /* Glow Colors */
    --glow-cyan: rgba(0, 240, 255, 0.6);
    --glow-purple: rgba(168, 85, 247, 0.5);
    --glow-soft: rgba(0, 240, 255, 0.15);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b4c6ef;
    --text-muted: #64748b;
    --text-dim: #475569;

    /* Glass Effects */
    --glass-bg: rgba(10, 15, 30, 0.7);
    --glass-border: rgba(0, 240, 255, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.05);

    /* Shadows */
    --shadow-glow: 0 0 60px rgba(0, 240, 255, 0.3);
    --shadow-deep: 0 25px 80px rgba(0, 0, 0, 0.9);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.6);

    /* Timing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    background: var(--bg-void);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   ANIMATED STARFIELD BACKGROUND
   ============================================ */
#starfield-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    pointer-events: none;
}

/* Nebula gradient overlay */
.nebula-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 30%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 50% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 100% 100% at 50% 50%, var(--bg-deep) 0%, var(--bg-void) 100%);
    z-index: -9;
    pointer-events: none;
}

/* Animated grid overlay */
.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: gridPulse 8s ease-in-out infinite;
    z-index: -8;
    pointer-events: none;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

/* Floating orbs for depth */
.orbital-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -7;
}

.orbital-glow::before,
.orbital-glow::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 20s ease-in-out infinite;
}

.orbital-glow::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15), transparent 70%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.orbital-glow::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12), transparent 70%);
    bottom: -150px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.02); }
}

/* Mouse spotlight effect container */
#mouse-spotlight {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08), transparent 70%);
    pointer-events: none;
    z-index: -6;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

body:hover #mouse-spotlight {
    opacity: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem 1rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Glass card effect */
.hero-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-deep), var(--shadow-glow);
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(0, 240, 255, 0.05) 100%);
    border-radius: inherit;
    pointer-events: none;
}

.hero-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-magenta));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-card:hover::after {
    opacity: 0.3;
}

.hero-card:hover {
    transform: translateY(-10px) perspective(1000px) rotateX(2deg);
    box-shadow: var(--shadow-deep), 0 0 80px rgba(0, 240, 255, 0.4);
}

/* Logo with glow */
.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
}

.logo-image {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    border: 2px solid var(--accent-cyan);
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.5),
        0 0 40px rgba(0, 240, 255, 0.3);
    transition: transform 0.4s var(--ease-out-back);
}

.logo-image:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Hero tag/badge */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    margin-bottom: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 100px;
}

/* Hero title with animated gradient */
.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    background: linear-gradient(
        135deg,
        var(--accent-cyan) 0%,
        var(--accent-purple) 50%,
        var(--accent-magenta) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Hero subtitle */
.hero-subtitle {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

/* Section title */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-title::before,
.section-title::after {
    content: '';
    height: 1px;
    width: 100px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

/* ============================================
   MODULE CARDS DECK
   ============================================ */
.deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Premium module card */
.module-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Animated gradient border on hover */
.module-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-magenta), var(--accent-cyan));
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderRotate 6s linear infinite;
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Shimmer effect */
.module-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.8s ease;
}

.module-card:hover::before {
    opacity: 1;
}

.module-card:hover::after {
    left: 100%;
}

.module-card:hover {
    transform: translateY(-12px) perspective(1000px) rotateX(5deg) rotateY(-2deg);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(0, 240, 255, 0.3);
    border-color: transparent;
}

/* Card glow effect */
.module-card .card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 240, 255, 0.15),
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.module-card:hover .card-glow {
    opacity: 1;
}

/* Module header */
.module-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.module-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.module-card h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.module-card:hover h2 {
    color: var(--accent-cyan);
}

.module-card p {
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Module metadata tags */
.module-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.module-meta span,
.module-meta::before {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   BUTTONS
   ============================================ */
.launch-btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    color: var(--bg-void);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    border-radius: 100px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    box-shadow:
        0 4px 20px rgba(0, 240, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.launch-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-magenta));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.launch-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.launch-btn:hover::before {
    opacity: 1;
}

.launch-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 30px rgba(168, 85, 247, 0.5),
        0 0 60px rgba(0, 240, 255, 0.3);
}

.launch-btn:active::after {
    width: 300px;
    height: 300px;
}

.launch-btn span {
    position: relative;
    z-index: 1;
}

/* Help button */
.help-btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 0.85rem 1.5rem;
    margin-top: 0.75rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: var(--accent-cyan);
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.help-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   INTEL STRIP (BOTTOM CARDS)
   ============================================ */
.intel-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.intel-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.intel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.intel-card:hover::before {
    opacity: 1;
}

.intel-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 240, 255, 0.3);
}

.intel-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.intel-card p {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    text-align: center;
    padding: 3rem 2rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 0.2em;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

/* ============================================
   JSON MANAGER BUTTON
   ============================================ */
.json-manager-btn {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(0, 240, 255, 0.2));
    color: var(--text-primary);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    backdrop-filter: blur(10px);
}

.json-manager-btn.top-right {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}

.json-manager-btn:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(0, 240, 255, 0.4));
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
    transform: translateY(-3px);
}

/* ============================================
   MODALS - Premium Glass Design
   ============================================ */
.help-modal,
.json-manager-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.help-modal-content,
.json-manager-content {
    background: linear-gradient(135deg, rgba(10, 10, 30, 0.95), rgba(20, 20, 50, 0.95));
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 3rem;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow:
        0 0 100px rgba(0, 240, 255, 0.2),
        var(--shadow-deep);
    animation: modalSlideIn 0.4s var(--ease-out-back);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.help-modal-content h2,
.json-manager-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.help-modal-close,
.json-manager-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.help-modal-close:hover,
.json-manager-close:hover {
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.1);
    transform: rotate(90deg);
}

.help-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.help-section:last-child {
    border-bottom: none;
}

.help-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.help-section-content {
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.help-section-content ul li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
}

.help-section-content ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
    font-size: 1.5rem;
}

/* ============================================
   JSON MANAGER SPECIFIC STYLES
   ============================================ */
.json-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.json-manager-body {
    padding: 0;
}

.json-manager-description {
    font-family: 'Exo 2', sans-serif;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.json-file-list h3,
.json-upload-section h3,
.json-reset-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.file-card {
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s var(--ease-out-expo);
}

.file-card:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

.file-card.custom-file {
    border-color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.05);
}

.file-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.file-description {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.custom-badge {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-magenta));
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-top: 0.75rem;
}

.download-btn,
.reset-file-btn,
.upload-btn,
.reset-btn {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.download-btn {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-dim));
    color: var(--bg-void);
}

.download-btn:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

.upload-btn {
    background: linear-gradient(135deg, var(--accent-green), #059669);
    color: white;
}

.upload-btn:hover {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.reset-btn {
    background: linear-gradient(135deg, var(--accent-red), #dc2626);
    color: white;
}

.reset-btn:hover {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.json-upload-section,
.json-reset-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.upload-instructions {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.upload-instructions h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.upload-instructions ul {
    list-style: none;
    padding: 0;
}

.upload-instructions ul li {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
}

.upload-instructions ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

.tip-box {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    color: var(--accent-gold);
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-magenta));
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
.loading-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-card {
        padding: 3rem 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .deck {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 1rem;
        padding-top: 4rem;
    }

    .hero-card {
        padding: 1.25rem 1.5rem;
        border-radius: 20px;
    }

    .logo-image {
        width: 60px;
        height: 60px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .main-content {
        padding: 0.5rem 1rem 3rem;
    }

    .deck {
        gap: 1.5rem;
    }

    .module-card {
        padding: 2rem 1.5rem;
    }

    .module-card h2 {
        font-size: 1.4rem;
    }

    .json-manager-btn.top-right {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.65rem;
    }

    .help-modal-content,
    .json-manager-content {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
        letter-spacing: 0.05em;
    }

    .deck {
        grid-template-columns: 1fr;
    }

    .intel-strip {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .grid-overlay {
        animation: none;
        opacity: 0.3;
    }

    .orbital-glow::before,
    .orbital-glow::after {
        animation: none;
    }
}
