/* ============================================
   QuantumHub — Complete Stylesheet
   Dark quantum purple theme with glassmorphism
   ============================================ */

/* --- CSS Variables --- */
:root {
    --quantum: #8C40F2;
    --quantum-light: #A855F7;
    --quantum-dark: #6D28D9;
    --quantum-glow: rgba(140, 64, 242, 0.4);
    --bg-primary: #050507;
    --bg-secondary: #0A0A0F;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #F1F1F3;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --border: rgba(255, 255, 255, 0.06);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
    --primary: #8C40F2;
    --surface-2: rgba(255, 255, 255, 0.08);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--quantum-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--quantum); }

img { max-width: 100%; display: block; }

code, pre {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* --- Utility Classes --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-quantum { color: var(--quantum-light); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-top: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Glassmorphism Card --- */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
}

.glass:hover {
    background: var(--bg-card-hover);
    border-color: rgba(140, 64, 242, 0.2);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(140, 64, 242, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(140, 64, 242, 0.1);
}

.card-glow {
    position: relative;
    overflow: hidden;
}

.card-glow::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: linear-gradient(135deg, rgba(140,64,242,0.2), transparent, rgba(140,64,242,0.1));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.animations-enabled .card-glow:hover::before { opacity: 1; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--quantum), var(--quantum-dark));
    color: #fff;
    box-shadow: 0 4px 16px var(--quantum-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--quantum-glow);
    color: #fff;
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: rgba(140, 64, 242, 0.3);
    color: #fff;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.btn-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    background: rgba(16, 185, 129, 0.25);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* --- Form Elements --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Remember Me checkbox */
.remember-me-group {
    margin-bottom: 24px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    user-select: none;
}
.checkbox-label input[type="checkbox"] {
    display: none;
}
.checkbox-label .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}
.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}
.checkbox-label:hover .checkmark {
    border-color: var(--primary);
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.input-field:focus {
    border-color: var(--quantum);
    box-shadow: 0 0 0 3px rgba(140, 64, 242, 0.15);
}

.input-field::placeholder {
    color: var(--text-muted);
}

textarea.input-field {
    min-height: 120px;
    resize: vertical;
}

select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239CA3AF' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .input-field {
    padding-left: 44px;
}

.input-icon-wrap .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary { background: rgba(140, 64, 242, 0.15); color: var(--quantum-light); }
.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-muted { background: rgba(107, 114, 128, 0.15); color: var(--text-muted); }

/* --- Section Headings --- */
.section { padding: 80px 0; }

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--quantum-light), #C084FC, var(--quantum));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.navbar-brand:hover { color: var(--quantum-light); }

.navbar-brand .brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--quantum), var(--quantum-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--quantum);
    border-radius: 1px;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    position: relative;
}

.nav-user:hover { border-color: rgba(140, 64, 242, 0.3); }

.nav-user .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--quantum), var(--quantum-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 100;
}

.user-dropdown.show { display: block; }

.user-dropdown a,
.user-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    text-align: left;
    font-family: inherit;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.user-dropdown .divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* Hamburger for mobile */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* --- Mobile Nav --- */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 7, 0.95);
    backdrop-filter: blur(16px);
    z-index: 999;
    padding-top: 100px;
}

.mobile-nav.show { display: flex; flex-direction: column; align-items: center; gap: 24px; }

.mobile-nav a {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 500;
}

.mobile-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    background: var(--bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 12px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--quantum-light);
    border-color: rgba(140, 64, 242, 0.3);
}

.footer h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero.hero-sm {
    min-height: unset;
    padding: 140px 0 48px;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}

.hero-orb-1 {
    width: 500px; height: 500px;
    background: var(--quantum);
    top: -100px; right: -100px;
}

.hero-orb-2 {
    width: 400px; height: 400px;
    background: #6366F1;
    bottom: -100px; left: -100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(140, 64, 242, 0.1);
    border: 1px solid rgba(140, 64, 242, 0.2);
    color: var(--quantum-light);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats counter row */
.stats-row {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-top: 64px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--quantum-light);
}

.stat-item .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Game Cards & Feature Cards --- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.game-card {
    padding: 24px;
    text-align: center;
}

.game-card .game-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--quantum), var(--quantum-dark));
    color: #fff;
}

.game-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.game-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px;
}

.feature-card .feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(140, 64, 242, 0.1);
    color: var(--quantum-light);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- CTA Section --- */
.cta-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.cta-box {
    padding: 64px 48px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(140,64,242,0.1), rgba(99,102,241,0.05));
    border: 1px solid rgba(140, 64, 242, 0.15);
    position: relative;
    overflow: hidden;
}

.cta-box h2 { font-size: 2.25rem; font-weight: 800; margin-bottom: 12px; }
.cta-box p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 32px; }

/* --- FAQ Accordion --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover { border-color: rgba(140, 64, 242, 0.15); }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.faq-question .chevron {
    transition: transform 0.3s;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.faq-item.open .faq-question .chevron {
    transform: rotate(180deg);
    color: var(--quantum-light);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- Docs Page --- */
.docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 48px;
    padding: 120px 0 80px;
    min-height: 100vh;
}

.docs-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.docs-sidebar h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
    margin-top: 24px;
}

.docs-sidebar h3:first-child { margin-top: 0; }

.docs-sidebar a {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-radius: 6px;
    border-left: 2px solid transparent;
    margin-bottom: 2px;
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--quantum);
}

.docs-content h1 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.docs-content h2 { font-size: 1.5rem; font-weight: 700; margin: 32px 0 12px; color: var(--quantum-light); }
.docs-content h3 { font-size: 1.15rem; font-weight: 600; margin: 24px 0 8px; }
.docs-content p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; }

.docs-content pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    overflow-x: auto;
    margin-bottom: 20px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.docs-content code {
    background: rgba(140, 64, 242, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--quantum-light);
}

.docs-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.docs-content ul, .docs-content ol {
    color: var(--text-secondary);
    padding-left: 24px;
    margin-bottom: 16px;
}

.docs-content li { margin-bottom: 8px; }

/* --- Tickets --- */
.tickets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tickets-header .section-title {
    margin-bottom: 4px;
}

.tickets-header .section-subtitle {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.6;
}

.ticket-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ticket-card {
    padding: 24px 28px;
    transition: var(--transition);
    border-left: 3px solid transparent;
    border-radius: var(--radius);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-left: 3px solid transparent;
}

.ticket-card:hover {
    border-left-color: var(--quantum);
    transform: translateX(4px);
    background: rgba(140, 64, 242, 0.03);
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ticket-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.ticket-id {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
}

.ticket-card-badges {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.ticket-card-meta {
    display: flex;
    gap: 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    margin-top: 4px;
}

/* Ticket Replies (in modals) */
.ticket-replies {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 8px;
}

.ticket-reply {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--border);
}

.ticket-reply.user-reply {
    background: rgba(255, 255, 255, 0.02);
    border-left-color: var(--text-muted);
}

.ticket-reply.staff-reply {
    background: rgba(140, 64, 242, 0.06);
    border-left-color: var(--quantum);
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.reply-body {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.ticket-reply-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.ticket-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ticket-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* --- Auth Forms --- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
}

.auth-card h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-card .subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.auth-card .form-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Dashboard --- */
.dashboard {
    padding: 100px 0 60px;
    min-height: 100vh;
}

.dashboard-header {
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
}

.dashboard-header p {
    color: var(--text-secondary);
}

.dashboard-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.dashboard-tabs button {
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-family: inherit;
    transition: var(--transition);
}

.dashboard-tabs button:hover { color: var(--text-primary); }

.dashboard-tabs button.active {
    color: var(--quantum-light);
    border-bottom-color: var(--quantum);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 20px;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
}

/* Download Section */
.download-box {
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
}

.download-box h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.download-box p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; }

.download-info {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.download-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Tables --- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.data-table td {
    padding: 12px 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* --- Admin Layout --- */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    padding-top: 72px;
}

.admin-sidebar {
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    background: var(--bg-secondary);
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
}

.admin-sidebar h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 8px 12px;
    margin-top: 20px;
}

.admin-sidebar h3:first-child { margin-top: 0; }

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-radius: 8px;
    margin-bottom: 2px;
}

.admin-sidebar a:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.admin-sidebar a.active {
    background: rgba(140, 64, 242, 0.1);
    color: var(--quantum-light);
}

.admin-sidebar .nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.admin-content {
    padding: 32px;
    max-width: 1100px;
}

.admin-content h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.pagination button {
    padding: 8px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.pagination button:hover { border-color: rgba(140, 64, 242, 0.3); color: var(--text-primary); }
.pagination button.active { background: var(--quantum); border-color: var(--quantum); color: #fff; }
.pagination button:disabled { opacity: 0.3; cursor: not-allowed; }

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.show { display: flex; }

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.modal h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* --- Alerts / Toast --- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); color: var(--success); }
.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: var(--danger); }
.alert-warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.2); color: var(--warning); }

.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    min-width: 280px;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-success { background: #065F46; color: #A7F3D0; border: 1px solid #10B981; }
.toast-error { background: #7F1D1D; color: #FCA5A5; border: 1px solid #EF4444; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- Particle Canvas --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.7;
}

.page-content {
    position: relative;
    z-index: 1;
}

/* --- Contact Info Cards --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.contact-info-card .info-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(140, 64, 242, 0.1);
    color: var(--quantum-light);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-card h4 { font-size: 0.95rem; font-weight: 600; }
.contact-info-card p { color: var(--text-secondary); font-size: 0.85rem; }

/* --- Loading Spinner --- */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--quantum);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

/* --- Scroll Animations --- */
.animations-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animations-enabled .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

body:not(.animations-enabled) .reveal {
    opacity: 1;
    transform: none;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(140, 64, 242, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(140, 64, 242, 0.5); }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: relative;
        top: 0;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 12px;
    }
    .admin-sidebar h3 { display: none; }
    .admin-sidebar a { padding: 8px 12px; font-size: 0.8rem; }
    .docs-layout { grid-template-columns: 1fr; }
    .docs-sidebar { position: relative; top: 0; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 1.75rem; }
    .section { padding: 60px 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .contact-grid { grid-template-columns: 1fr; }
    .stats-row { gap: 24px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .cta-box { padding: 40px 24px; }
    .cta-box h2 { font-size: 1.75rem; }
    .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .container { padding: 0 16px; }
    .auth-card { padding: 24px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ── Coin / Currency Styles ── */
.coin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(140, 64, 242, 0.12);
    border: 1px solid rgba(140, 64, 242, 0.25);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--quantum);
    white-space: nowrap;
}

.coin-balance-card {
    border: 1px solid rgba(140, 64, 242, 0.3);
    background: rgba(140, 64, 242, 0.06);
}

.coin-balance-card .stat-value {
    font-size: 1.8rem;
}

.coin-action-form .form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .coin-action-form {
        flex-direction: column;
    }
    .coin-action-form .form-group {
        min-width: 100% !important;
    }
}

/* ── Role Badges ── */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--role-color, var(--quantum));
    background: color-mix(in srgb, var(--role-color, var(--quantum)) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--role-color, var(--quantum)) 30%, transparent);
    white-space: nowrap;
}

/* Permission checkbox labels */
.perm-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
}

.perm-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--quantum);
    cursor: pointer;
}

/* ── Partners Page ── */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    transition: var(--transition);
    max-width: 260px;
    margin: 0 auto;
    width: 100%;
}

.partner-card:hover {
    transform: translateY(-4px);
    border-color: var(--quantum-glow);
    box-shadow: 0 8px 32px rgba(140, 64, 242, 0.15);
}

.partner-logo {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    max-width: 64px;
    max-height: 64px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
    display: block;
    padding: 4px;
}

.partner-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--quantum-dark), var(--quantum-light));
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    width: 64px;
    height: 64px;
}

.partner-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.partner-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.partner-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 640px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .partner-card {
        padding: 16px 12px;
    }
    .partner-logo, .partner-logo img, .partner-logo-placeholder {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        max-width: 48px;
        max-height: 48px;
    }
}

/* ── Status Page ── */
.status-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-card {
    padding: 18px 20px;
    transition: var(--transition);
}

.status-card:hover {
    border-color: var(--quantum-glow);
}

.status-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.status-card-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.status-online, .status-undetected {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.status-offline, .status-detected {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.status-updating {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.status-maintenance {
    background: rgba(249, 115, 22, 0.15);
    color: #F97316;
}

.status-coming-soon {
    background: rgba(148, 163, 184, 0.15);
    color: #94A3B8;
}

.status-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.status-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 0.78rem;
}

.status-filter.active {
    background: var(--quantum-primary);
    color: #fff;
    border-color: var(--quantum-primary);
}

@media (max-width: 640px) {
    .status-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ===========================================
   FORUMS — Advanced Design
   =========================================== */

/* Forum Search & Controls */
.forums-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.forums-search {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.forums-search input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.forums-search input:focus {
    outline: none;
    border-color: var(--quantum);
    box-shadow: 0 0 0 3px rgba(140, 64, 242, 0.15);
}

.forums-search::before {
    content: '🔍';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.forums-stats-bar {
    display: flex;
    gap: 20px;
    padding: 16px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    backdrop-filter: blur(12px);
}

.forums-stats-bar .forum-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.forums-stats-bar .forum-stat-item strong {
    color: var(--quantum-light);
    font-size: 1rem;
}

/* Category Grid */
.forums-categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.forum-category-card {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.forum-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    border-radius: 3px 0 0 3px;
    transition: all 0.3s ease;
    background: var(--cat-color, #8B5CF6);
}

/* Fallback colors when --cat-color isn't set */
.forum-category-card:nth-child(1)::before { background: var(--cat-color, #8B5CF6); }
.forum-category-card:nth-child(2)::before { background: var(--cat-color, #F59E0B); }
.forum-category-card:nth-child(3)::before { background: var(--cat-color, #10B981); }
.forum-category-card:nth-child(4)::before { background: var(--cat-color, #3B82F6); }
.forum-category-card:nth-child(5)::before { background: var(--cat-color, #EF4444); }
.forum-category-card:nth-child(n+6)::before { background: var(--cat-color, #8B5CF6); }

.forum-category-card:hover {
    border-color: rgba(140, 64, 242, 0.25);
    transform: translateX(4px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    background: rgba(140, 64, 242, 0.04);
}

.forum-category-card:hover::before {
    width: 5px;
}

.forum-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.forum-category-card:nth-child(1) .forum-cat-icon { background: rgba(139, 92, 246, 0.12); }
.forum-category-card:nth-child(2) .forum-cat-icon { background: rgba(245, 158, 11, 0.12); }
.forum-category-card:nth-child(3) .forum-cat-icon { background: rgba(16, 185, 129, 0.12); }
.forum-category-card:nth-child(4) .forum-cat-icon { background: rgba(59, 130, 246, 0.12); }
.forum-category-card:nth-child(5) .forum-cat-icon { background: rgba(239, 68, 68, 0.12); }
.forum-category-card:nth-child(n+6) .forum-cat-icon { background: rgba(139, 92, 246, 0.12); }

.forum-cat-info {
    flex: 1;
    min-width: 0;
}

.forum-cat-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text-primary);
}

.forum-cat-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-cat-stats {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.forum-cat-stats div {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 6px 14px;
    text-align: center;
    min-width: 64px;
}

.forum-cat-stats strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--quantum-light);
    line-height: 1.2;
}

.forum-cat-stats span {
    font-size: 0.65rem;
    opacity: 0.45;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Breadcrumb */
.forum-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.forum-breadcrumb a {
    color: var(--quantum-light);
    text-decoration: none;
}

.forum-breadcrumb a:hover {
    text-decoration: underline;
}

/* Thread List Header */
.forum-thread-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Thread List Items */
.forum-threads-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.forum-thread-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    background: var(--glass-bg);
    position: relative;
    overflow: hidden;
}

.forum-thread-item::after {
    content: '→';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    opacity: 0;
    font-size: 1.1rem;
    color: var(--quantum-light);
    transition: all 0.25s ease;
}

.forum-thread-item:hover {
    border-color: rgba(140, 64, 242, 0.3);
    transform: translateX(4px);
    background: rgba(140, 64, 242, 0.04);
    box-shadow: 0 4px 20px rgba(140, 64, 242, 0.08);
    padding-right: 40px;
}

.forum-thread-item:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.forum-thread-item.pinned {
    border-left: 3px solid var(--quantum);
    background: rgba(140, 64, 242, 0.04);
    box-shadow: inset 0 0 30px rgba(140, 64, 242, 0.03);
}

.forum-thread-main {
    flex: 1;
    min-width: 0;
}

.forum-thread-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.forum-thread-title-row h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-thread-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    opacity: 0.6;
    flex-wrap: wrap;
}

.forum-thread-stats {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.forum-stat {
    text-align: center;
    min-width: 50px;
}

.forum-stat-num {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.forum-stat-label {
    display: block;
    font-size: 0.7rem;
    opacity: 0.5;
    text-transform: uppercase;
}

/* Forum Badges */
.forum-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.forum-badge-pin {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.forum-badge-lock {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

/* Thread View */
.forum-thread-post {
    padding: 24px;
    margin-bottom: 8px;
}

.forum-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.forum-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
}

.forum-post-date {
    font-size: 0.8rem;
    opacity: 0.5;
}

.forum-thread-title-main {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.3;
}

.forum-post-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.forum-post-body {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.forum-post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

/* Vote Buttons */
.forum-vote-group {
    display: flex;
    gap: 8px;
}

.forum-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.forum-vote-btn:hover {
    border-color: var(--primary);
    background: rgba(140, 64, 242, 0.1);
}

.forum-vote-btn.active {
    background: rgba(140, 64, 242, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

.forum-thread-info-row {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    opacity: 0.6;
}

.forum-mod-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Replies */
.forum-reply {
    padding: 20px;
    margin-bottom: 8px;
}

/* Pagination */
.forum-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* ===========================================
   SETTINGS PAGE (Admin)
   =========================================== */

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.settings-toggle-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.settings-toggle-row:last-child {
    margin-bottom: 0;
}

.settings-toggle-row label {
    font-weight: 600;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.settings-toggle-row small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.switch input:checked + .slider {
    background: var(--quantum);
    border-color: var(--quantum);
    box-shadow: 0 0 12px rgba(140, 64, 242, 0.3);
}

.switch input:checked + .slider:before {
    transform: translateX(22px);
}

.code-textarea {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border);
}

/* ============================================
   Announcement Banner (type-based) — Full-width
   ============================================ */
.announcement-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 56px 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 48px;
    z-index: 10001;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: banner-slideDown 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    background: linear-gradient(90deg, #4F46E5, #7C3AED, #6366F1);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-sizing: border-box;
}

@keyframes banner-slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.announcement-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    animation: banner-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes banner-shimmer {
    0%   { transform: translateX(-33%); }
    100% { transform: translateX(33%); }
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: center;
    animation: banner-pulse 2.5s ease-in-out infinite;
}

@keyframes banner-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.85; }
}

.announcement-icon {
    font-size: 1.3rem;
    animation: banner-iconBounce 2s ease-in-out infinite;
}

@keyframes banner-iconBounce {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.15); }
}

.announcement-close {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.2s;
    line-height: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.1);
}

/* Banner types */
.announcement-info {
    background: linear-gradient(90deg, #4F46E5, #7C3AED, #6366F1);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.announcement-warning {
    background: linear-gradient(90deg, #D97706, #F59E0B, #FBBF24);
    color: #000;
    text-shadow: none;
}

.announcement-maintenance {
    background: linear-gradient(90deg, #4B5563, #6B7280, #9CA3AF);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.announcement-success {
    background: linear-gradient(90deg, #047857, #059669, #10B981);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.announcement-error {
    background: linear-gradient(90deg, #B91C1C, #DC2626, #EF4444);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

body.has-announcement .navbar {
    top: 48px;
}

body.has-announcement .page-content:first-of-type {
    padding-top: 48px;
}

.announcement-banner + .navbar {
    top: 48px;
}

/* Responsive forums */
@media (max-width: 768px) {
    .forum-category-card {
        grid-template-columns: 44px 1fr;
        gap: 14px;
        padding: 16px 18px;
    }
    .forum-cat-stats {
        display: none;
    }
    .forum-cat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .forum-cat-info h3 {
        font-size: 0.95rem;
    }

    .forum-thread-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .forum-thread-stats {
        width: 100%;
        justify-content: space-around;
    }

    .forum-post-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .forum-post-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .forum-thread-title-main {
        font-size: 1.2rem;
    }
}

/* ============================================
   Animations (only when .animations-enabled)
   ============================================ */

/* Fade-in-up on page load */
.animations-enabled .page-content {
    animation: qh-fadeInUp 0.6s ease-out;
}

.animations-enabled .card,
.animations-enabled .glass {
    animation: qh-fadeInUp 0.5s ease-out both;
}

.animations-enabled .card:nth-child(2),
.animations-enabled .glass:nth-child(2) { animation-delay: 0.08s; }
.animations-enabled .card:nth-child(3),
.animations-enabled .glass:nth-child(3) { animation-delay: 0.16s; }
.animations-enabled .card:nth-child(4),
.animations-enabled .glass:nth-child(4) { animation-delay: 0.24s; }

@keyframes qh-fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hover glow pulse */
.animations-enabled .btn-primary:hover {
    animation: qh-glowPulse 1.5s ease-in-out infinite;
}

@keyframes qh-glowPulse {
    0%, 100% { box-shadow: 0 4px 16px var(--quantum-glow); }
    50%      { box-shadow: 0 4px 32px rgba(140, 64, 242, 0.6); }
}

/* Navbar brand icon spin on hover */
.animations-enabled .brand-icon {
    transition: transform 0.5s ease;
}

.animations-enabled .brand-icon:hover {
    transform: rotate(360deg);
}

/* Float subtle effect on hero sections */
.animations-enabled .hero h1,
.animations-enabled .auth-card h1 {
    animation: qh-float 4s ease-in-out infinite;
}

@keyframes qh-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* Gradient text shimmer */
.animations-enabled .gradient-text {
    background-size: 200% auto;
    animation: qh-shimmer 3s ease infinite;
}

@keyframes qh-shimmer {
    0%, 100% { background-position: 0% center; }
    50%      { background-position: 100% center; }
}

/* Card hover lift */
.animations-enabled .card:hover,
.animations-enabled .glass:hover {
    transform: translateY(-4px) scale(1.005);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

/* Toast slide-in */
.animations-enabled .toast {
    animation: qh-slideInRight 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes qh-slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ============================================
   Seasonal Themes
   ============================================ */

/* --- Christmas Theme --- */
.theme-christmas {
    --quantum: #C41E3A;
    --quantum-light: #E74C5E;
    --quantum-dark: #8B0000;
    --quantum-glow: rgba(196, 30, 58, 0.4);
    --bg-primary: #0A0F05;
    --bg-secondary: #0F1A08;
    --success: #228B22;
}

.theme-christmas .navbar-brand .brand-icon::after {
    content: '🎄';
    position: absolute;
    font-size: 0.6rem;
    top: -4px;
    right: -6px;
}

.theme-christmas .navbar-brand .brand-icon {
    position: relative;
}

.theme-christmas .btn-primary {
    background: linear-gradient(135deg, #C41E3A, #228B22);
}

.theme-christmas .gradient-text {
    background: linear-gradient(90deg, #C41E3A, #228B22, #FFD700) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.theme-christmas .glass {
    border-color: rgba(196, 30, 58, 0.15);
}

.theme-christmas .glass:hover {
    border-color: rgba(34, 139, 34, 0.3);
}

/* Christmas snowfall */
.theme-christmas::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background-image:
        radial-gradient(2px 2px at 20% 10%, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 40% 30%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 80% 40%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 10% 50%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 50% 60%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 70% 70%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 90% 80%, rgba(255,255,255,0.5), transparent);
    background-size: 100% 100%;
    animation: qh-snowfall 8s linear infinite;
}

@keyframes qh-snowfall {
    0%   { background-position: 0 -100vh; }
    100% { background-position: 0 100vh; }
}

/* --- Halloween Theme --- */
.theme-halloween {
    --quantum: #FF6B00;
    --quantum-light: #FF8C33;
    --quantum-dark: #CC5500;
    --quantum-glow: rgba(255, 107, 0, 0.4);
    --bg-primary: #0A0508;
    --bg-secondary: #120A10;
}

.theme-halloween .navbar-brand .brand-icon::after {
    content: '🎃';
    position: absolute;
    font-size: 0.6rem;
    top: -4px;
    right: -6px;
}

.theme-halloween .navbar-brand .brand-icon {
    position: relative;
}

.theme-halloween .btn-primary {
    background: linear-gradient(135deg, #FF6B00, #8B008B);
}

.theme-halloween .gradient-text {
    background: linear-gradient(90deg, #FF6B00, #8B008B, #FF6B00) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.theme-halloween .glass {
    border-color: rgba(255, 107, 0, 0.12);
}

.theme-halloween .glass:hover {
    border-color: rgba(139, 0, 139, 0.3);
    box-shadow: 0 0 24px rgba(255, 107, 0, 0.15);
}

/* Halloween fog */
.theme-halloween::before {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 120px;
    pointer-events: none;
    z-index: 9998;
    background: linear-gradient(to top, rgba(139, 0, 139, 0.08), transparent);
    animation: qh-fog 12s ease-in-out infinite alternate;
}

@keyframes qh-fog {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Valentine's Theme --- */
.theme-valentines {
    --quantum: #E91E63;
    --quantum-light: #FF4081;
    --quantum-dark: #AD1457;
    --quantum-glow: rgba(233, 30, 99, 0.4);
    --bg-primary: #080508;
    --bg-secondary: #100810;
}

.theme-valentines .btn-primary {
    background: linear-gradient(135deg, #E91E63, #FF4081);
}

.theme-valentines .gradient-text {
    background: linear-gradient(90deg, #E91E63, #FF80AB, #E91E63) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.theme-valentines .glass {
    border-color: rgba(233, 30, 99, 0.12);
}

.theme-valentines .glass:hover {
    border-color: rgba(255, 64, 129, 0.3);
}

/* Floating hearts */
.theme-valentines::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background-image:
        radial-gradient(3px 3px at 15% 20%, rgba(255, 64, 129, 0.6), transparent),
        radial-gradient(2px 2px at 35% 50%, rgba(233, 30, 99, 0.5), transparent),
        radial-gradient(3px 3px at 55% 30%, rgba(255, 128, 171, 0.4), transparent),
        radial-gradient(2px 2px at 75% 60%, rgba(233, 30, 99, 0.6), transparent),
        radial-gradient(3px 3px at 90% 15%, rgba(255, 64, 129, 0.3), transparent);
    background-size: 100% 100%;
    animation: qh-hearts 10s ease-in-out infinite alternate;
}

@keyframes qh-hearts {
    0%   { opacity: 0.4; transform: translateY(0); }
    100% { opacity: 0.8; transform: translateY(-20px); }
}

/* =============================================
   HOME PAGE — Scroll Animations & Visuals
   ============================================= */

/* --- Floating Shapes (JS-created on <body>) --- */
.qh-shape {
    border: 1.5px solid rgba(140, 64, 242, 0.25);
    animation: qh-shapeDrift linear infinite;
}
.qh-shape--circle { border-radius: 50%; }
.qh-shape--diamond { border-color: rgba(99,102,241,0.25); }
.qh-shape--ring {
    border-radius: 50%;
    border-width: 2px;
    border-style: dashed;
    border-color: rgba(99,102,241,0.2);
}
.qh-shape--triangle {
    border: none;
    width: 0 !important; height: 0 !important;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid rgba(140,64,242,0.18);
}
.qh-shape--cross {
    border: none;
    position: relative;
}
.qh-shape--cross::before,
.qh-shape--cross::after {
    content: '';
    position: absolute;
    background: rgba(140,64,242,0.25);
    border-radius: 1px;
}
.qh-shape--cross::before {
    width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%);
}
.qh-shape--cross::after {
    width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%);
}

@keyframes qh-shapeDrift {
    0%   { transform: translateY(105vh) rotate(0deg);  opacity: 0; }
    5%   { opacity: 0.7; }
    95%  { opacity: 0.7; }
    100% { transform: translateY(-105vh) rotate(360deg); opacity: 0; }
}

/* --- Hero Entrance Animations --- */
.hero .gradient-text {
    position: relative;
    display: inline-block;
    animation: qh-textPulse 4s ease-in-out infinite;
}

@keyframes qh-textPulse {
    0%, 100% { filter: brightness(1) hue-rotate(0deg); text-shadow: 0 0 0 transparent; }
    25%  { filter: brightness(1.2) hue-rotate(8deg); text-shadow: 0 0 30px rgba(140,64,242,0.3); }
    50%  { filter: brightness(1) hue-rotate(0deg); text-shadow: 0 0 0 transparent; }
    75%  { filter: brightness(1.15) hue-rotate(-6deg); text-shadow: 0 0 20px rgba(99,102,241,0.25); }
}

/* Hero orbs — breathing float */
.hero-orb-1 { animation: qh-orbFloat1 8s ease-in-out infinite; }
.hero-orb-2 { animation: qh-orbFloat2 10s ease-in-out infinite; }

@keyframes qh-orbFloat1 {
    0%, 100% { transform: translate(0,0) scale(1); opacity: 0.3; }
    33%  { transform: translate(50px,-40px) scale(1.15); opacity: 0.45; }
    66%  { transform: translate(-30px,30px) scale(0.9); opacity: 0.25; }
}
@keyframes qh-orbFloat2 {
    0%, 100% { transform: translate(0,0) scale(1); opacity: 0.3; }
    33%  { transform: translate(-40px,35px) scale(1.1); opacity: 0.4; }
    66%  { transform: translate(45px,-20px) scale(0.88); opacity: 0.2; }
}

/* --- Stat Counter Glow --- */
.stat-item .number.qh-counting {
    text-shadow: 0 0 25px rgba(140,64,242,0.7), 0 0 50px rgba(140,64,242,0.4), 0 0 80px rgba(99,102,241,0.2);
    color: #fff;
}

/* --- Section Title Glow In --- */
.section-title {
    transition: text-shadow 0.8s ease;
}
.section-title.qh-title-glow .gradient-text {
    text-shadow: 0 0 40px rgba(140,64,242,0.4), 0 0 80px rgba(140,64,242,0.15);
}

/* --- Card Hover Effects --- */
.game-card,
.feature-card {
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    will-change: transform;
}

.game-card:hover .game-icon,
.feature-card:hover .feature-icon {
    animation: qh-iconBounce 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes qh-iconBounce {
    0%   { transform: scale(1) rotate(0); }
    40%  { transform: scale(1.35) rotate(-10deg); }
    70%  { transform: scale(0.95) rotate(3deg); }
    100% { transform: scale(1) rotate(0); }
}

/* --- CTA Spinning Border (JS-created) --- */
@keyframes qh-spin {
    to { transform: rotate(360deg); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .qh-spotlight { display: none !important; }
    .qh-scanline { display: none !important; }
    .qh-orb-layer { opacity: 0.5; }
    .qh-shape-layer { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
    .qh-orb-layer,
    .qh-shape-layer,
    .qh-spotlight,
    .qh-scanline,
    .qh-grid-overlay { display: none !important; }
    .hero-orb-1, .hero-orb-2 { animation: none !important; }
    .hero .gradient-text { animation: none !important; }
}

/* When animations are disabled via admin setting */
body:not(.animations-enabled) .qh-orb-layer,
body:not(.animations-enabled) .qh-shape-layer,
body:not(.animations-enabled) .qh-spotlight,
body:not(.animations-enabled) .qh-scanline,
body:not(.animations-enabled) .qh-grid-overlay { display: none !important; }
body:not(.animations-enabled) .hero-orb-1,
body:not(.animations-enabled) .hero-orb-2 { animation: none !important; }
body:not(.animations-enabled) .hero .gradient-text { animation: none !important; }

/* --- New Year Theme --- */
.theme-newyear {
    --quantum: #FFD700;
    --quantum-light: #FFC107;
    --quantum-dark: #B8860B;
    --quantum-glow: rgba(255, 215, 0, 0.4);
    --bg-primary: #050510;
    --bg-secondary: #0A0A1A;
}

.theme-newyear .btn-primary {
    background: linear-gradient(135deg, #FFD700, #B8860B);
    color: #000;
}

.theme-newyear .btn-primary:hover {
    color: #000;
}

.theme-newyear .gradient-text {
    background: linear-gradient(90deg, #FFD700, #FFFFFF, #FFD700) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.theme-newyear .glass {
    border-color: rgba(255, 215, 0, 0.1);
}

.theme-newyear .glass:hover {
    border-color: rgba(255, 215, 0, 0.25);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

/* Gold sparkle */
.theme-newyear::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background-image:
        radial-gradient(1px 1px at 10% 15%, rgba(255,215,0,0.8), transparent),
        radial-gradient(1px 1px at 30% 45%, rgba(255,215,0,0.6), transparent),
        radial-gradient(2px 2px at 50% 25%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 70% 55%, rgba(255,215,0,0.5), transparent),
        radial-gradient(2px 2px at 85% 35%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 95% 75%, rgba(255,215,0,0.7), transparent);
    background-size: 200% 200%;
    animation: qh-sparkle 6s ease-in-out infinite;
}

@keyframes qh-sparkle {
    0%, 100% { background-position: 0% 0%; opacity: 0.3; }
    50%      { background-position: 100% 100%; opacity: 0.8; }
}

/* --- Summer Theme --- */
.theme-summer {
    --quantum: #0EA5E9;
    --quantum-light: #38BDF8;
    --quantum-dark: #0369A1;
    --quantum-glow: rgba(14, 165, 233, 0.4);
    --bg-primary: #030810;
    --bg-secondary: #061018;
}

.theme-summer .btn-primary {
    background: linear-gradient(135deg, #0EA5E9, #06B6D4);
}

.theme-summer .gradient-text {
    background: linear-gradient(90deg, #0EA5E9, #06B6D4, #F59E0B) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.theme-summer .glass {
    border-color: rgba(14, 165, 233, 0.12);
}

.theme-summer .glass:hover {
    border-color: rgba(6, 182, 212, 0.3);
}

/* --- St. Patrick's Theme --- */
.theme-stpatricks {
    --quantum: #10B981;
    --quantum-light: #34D399;
    --quantum-dark: #059669;
    --quantum-glow: rgba(16, 185, 129, 0.4);
    --bg-primary: #030A06;
    --bg-secondary: #06140C;
}

.theme-stpatricks .btn-primary {
    background: linear-gradient(135deg, #10B981, #059669);
}

.theme-stpatricks .gradient-text {
    background: linear-gradient(90deg, #10B981, #FFD700, #10B981) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.theme-stpatricks .glass {
    border-color: rgba(16, 185, 129, 0.12);
}

.theme-stpatricks .glass:hover {
    border-color: rgba(52, 211, 153, 0.3);
}

/* --- 4th of July Theme --- */
.theme-4thofjuly {
    --quantum: #3B82F6;
    --quantum-light: #60A5FA;
    --quantum-dark: #1D4ED8;
    --quantum-glow: rgba(59, 130, 246, 0.4);
    --bg-primary: #050510;
    --bg-secondary: #0A0A1A;
}

.theme-4thofjuly .btn-primary {
    background: linear-gradient(135deg, #EF4444, #3B82F6);
}

.theme-4thofjuly .gradient-text {
    background: linear-gradient(90deg, #EF4444, #FFFFFF, #3B82F6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.theme-4thofjuly .glass {
    border-color: rgba(59, 130, 246, 0.12);
}

.theme-4thofjuly .glass:hover {
    border-color: rgba(239, 68, 68, 0.3);
}

/* -- Theme particle canvas override -- */
.theme-christmas #particle-canvas { filter: hue-rotate(-80deg) saturate(1.5); }
.theme-halloween #particle-canvas { filter: hue-rotate(30deg) saturate(2); }
.theme-valentines #particle-canvas { filter: hue-rotate(-20deg) saturate(1.5); }
.theme-newyear #particle-canvas { filter: hue-rotate(50deg) brightness(1.3) saturate(0.8); }
.theme-summer #particle-canvas { filter: hue-rotate(160deg) saturate(1.3); }
.theme-stpatricks #particle-canvas { filter: hue-rotate(100deg) saturate(1.5); }
.theme-4thofjuly #particle-canvas { filter: hue-rotate(160deg) saturate(1.2); }

/* ═══════════════════════════════════════════════
   COIN SHOP STYLES
   ═══════════════════════════════════════════════ */

/* Shop Page Header */
.shop-page {
    padding: 40px 0 60px;
    min-height: 100vh;
}

.shop-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.shop-header .section-title {
    margin-bottom: 8px;
}

.shop-header .section-subtitle {
    opacity: 0.7;
    max-width: 500px;
}

.shop-balance-display {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 16px 28px;
    text-align: center;
    min-width: 160px;
}

.shop-balance-label {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-bottom: 4px;
}

.shop-balance-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--quantum);
}

/* Shop Filters */
.shop-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.shop-filter-group {
    flex: 1;
    min-width: 180px;
}

.shop-filter-group .input-field {
    width: 100%;
}

/* Shop Grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Shop Card */
.shop-card {
    cursor: pointer;
    transition: all var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.shop-card:hover {
    transform: translateY(-4px);
    border-color: var(--quantum);
    box-shadow: 0 8px 32px rgba(140, 64, 242, 0.15);
}

.shop-card-owned {
    border-color: rgba(16, 185, 129, 0.3);
}

.shop-card-owned:hover {
    border-color: var(--success);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15);
}

.shop-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

.shop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.shop-card:hover .shop-card-image img {
    transform: scale(1.05);
}

.shop-card-icon {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--bg-secondary), rgba(140, 64, 242, 0.08));
    border-bottom: 1px solid var(--glass-border);
}

.shop-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shop-card-category {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.badge-sm {
    font-size: 0.7rem !important;
    padding: 2px 8px !important;
}

.shop-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.shop-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.shop-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
}

.shop-card-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--warning);
}

.shop-card-stats {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Shop Detail Modal */
.shop-detail-modal {
    max-width: 600px;
}

.shop-detail-image {
    width: 100%;
    max-height: 280px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    background: var(--bg-secondary);
}

.shop-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-detail-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.shop-detail-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.shop-detail-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.shop-detail-price {
    text-align: center;
    padding: 16px;
    margin-bottom: 16px;
}

.shop-detail-price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--warning);
}

.shop-detail-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   SHOP RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {
    .shop-header {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-balance-display {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .shop-balance-label {
        margin-bottom: 0;
    }

    .shop-balance-amount {
        font-size: 1.4rem;
    }

    .shop-filters {
        flex-direction: column;
    }

    .shop-filter-group {
        min-width: 100%;
    }

    .shop-grid {
        grid-template-columns: 1fr;
    }

    .shop-card-icon {
        height: 100px;
        font-size: 2.5rem;
    }

    .shop-card-image {
        height: 140px;
    }

    .shop-detail-modal {
        max-width: 100%;
        margin: 16px;
    }

    .shop-detail-price-amount {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .shop-card-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}