/* ================================================
   UNFAIR — Premium Dark Red Theme
   ================================================ */

/* ----- Loading Screen ----- */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #09090b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: loaderFadeIn 0.4s ease-out;
}

@keyframes loaderFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    animation: logoBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 24px rgba(248, 113, 113, 0.35));
}

@keyframes logoBounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-16px) scale(1.04);
    }
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 2.5px solid rgba(248, 113, 113, 0.12);
    border-top-color: #f87171;
    border-radius: 50%;
    animation: spinRotate 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spinRotate {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(161, 161, 170, 0.6);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #09090b;
    --bg-secondary: #18181b;
    --bg-tertiary: #27272a;
    --bg-card: rgba(24, 24, 27, 0.6);
    --bg-glass: rgba(24, 24, 27, 0.45);
    --border: rgba(63, 63, 70, 0.5);
    --border-light: rgba(113, 113, 122, 0.3);

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --accent: #f87171;
    --accent-dark: #dc2626;
    --accent-light: #fca5a5;
    --accent-glow: rgba(248, 113, 113, 0.25);

    --green: #22c55e;
    --green-glow: rgba(34, 197, 94, 0.25);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* ----- Background Effects ----- */
.bg-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(248, 113, 113, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(248, 113, 113, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}

/* ----- Navbar ----- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: all var(--transition-base);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    padding: 8px 0;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo-img {
    height: 48px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    flex-direction: column;
    gap: 14px;
    z-index: 999;
    transform: translateY(-10px);
    opacity: 0;
    transition: all var(--transition-base);
}

.mobile-menu.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.mobile-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.mobile-link:hover {
    color: var(--text-primary);
}

.mobile-actions {
    display: flex;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(248, 113, 113, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.btn-lg {
    padding: 11px 22px;
    font-size: 0.88rem;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

/* ----- Section Layout ----- */
.section-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    padding: 5px 12px;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.15);
    border-radius: 100px;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ----- Hero ----- */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 90px 20px 60px;
    max-width: 1080px;
    margin: 0 auto;
    gap: 48px;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 22px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green-glow);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        box-shadow: 0 0 8px var(--green-glow);
    }

    50% {
        box-shadow: 0 0 16px var(--green-glow), 0 0 32px var(--green-glow);
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 50%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 460px;
    margin-bottom: 26px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.stat {
    text-align: left;
}

.stat-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-divider {
    width: 1px;
    height: 34px;
    background: var(--border);
}

/* Hero Visual */
.hero-visual {
    flex: 0 0 320px;
    position: relative;
}

.hero-card-stack {
    position: relative;
    height: 290px;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: cardFloat 6s ease-in-out infinite;
    width: 250px;
}

.card-1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 95px;
    left: 40px;
    animation-delay: -2s;
}

.card-3 {
    top: 190px;
    left: 10px;
    animation-delay: -4s;
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.fc-icon {
    font-size: 1.5rem;
}

.fc-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.fc-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ----- Features ----- */
.features {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: var(--accent);
    background: rgba(248, 113, 113, 0.04);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 113, 113, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ----- Games ----- */
.games {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

/* Game Cards V2 — Clean Minimal Style */
.games-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.game-card-v2 {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(24px);
}

.game-card-v2.visible {
    opacity: 1;
    transform: translateY(0);
}

.game-card-v2:hover {
    border-color: var(--card-accent, var(--accent));
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 30px color-mix(in srgb, var(--card-accent, var(--accent)) 20%, transparent);
}

.game-banner {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.game-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card-v2:hover .game-banner img {
    transform: scale(1.08);
}

.game-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--bg-secondary) 0%, rgba(9, 9, 11, 0.3) 50%, transparent 100%);
    pointer-events: none;
}

.game-banner .game-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    margin-bottom: 0;
    backdrop-filter: blur(8px);
    background: rgba(34, 197, 94, 0.15);
}

.game-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 100px;
}

.game-badge.ud {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.game-card-body {
    padding: 18px 22px 22px;
}

.game-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.game-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.55;
}

.game-tags {
    display: none;
}

.game-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.game-price-v2 {
    min-width: 0;
}

.price-label {
    display: block;
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
}

.price-value-v2 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.price-value-v2 span {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ----- Pricing ----- */
.pricing {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 36px;
}

.toggle-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-label.active {
    color: var(--text-primary);
}

.save-badge {
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
    padding: 2px 8px;
    border-radius: 100px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    transition: transform var(--transition-base);
    box-shadow: 0 0 8px var(--accent-glow);
}

.toggle-switch.active .toggle-knob {
    transform: translateX(20px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: start;
}

.pricing-card {
    padding: 28px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.pricing-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--accent);
    background: rgba(248, 113, 113, 0.05);
    box-shadow: var(--shadow-glow);
    transform: scale(1.04);
}

.pricing-card.featured.visible {
    transform: scale(1.04);
}

.pricing-card.featured:hover {
    transform: scale(1.04) translateY(-4px);
}

.featured-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 14px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: 18px;
}

.pricing-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pricing-header p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 22px;
}

.price-currency {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.price-value {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
}

.price-period {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-features {
    margin-bottom: 22px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 6px 0;
}

.pricing-features li svg {
    flex-shrink: 0;
}

.pricing-features li svg path {
    stroke: var(--accent);
}

/* ----- Status ----- */
.status {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.status-grid {
    display: grid;
    gap: 10px;
    max-width: 620px;
    margin: 0 auto;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(10px);
}

.status-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.status-item:hover {
    border-color: var(--border-light);
    background: rgba(39, 39, 42, 0.4);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.green {
    background: var(--green);
    box-shadow: 0 0 8px var(--green-glow);
    animation: dotPulse 2s ease-in-out infinite;
}

.status-info {
    flex: 1;
}

.status-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-state {
    font-size: 0.72rem;
    color: var(--green);
    font-weight: 500;
}

.status-updated {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ----- FAQ ----- */
.faq {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.faq-list {
    max-width: 620px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    background: var(--bg-card);
    opacity: 0;
    transform: translateY(10px);
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-item:hover {
    border-color: var(--border-light);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

.faq-chevron {
    color: var(--text-muted);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 20px 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ----- CTA Section ----- */
.cta-section {
    position: relative;
    z-index: 1;
    padding: 60px 0 80px;
}

.cta-card {
    position: relative;
    text-align: center;
    padding: 60px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.cta-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.cta-card h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    position: relative;
}

.cta-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 26px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ----- Footer ----- */
.footer {
    position: relative;
    z-index: 1;
    padding: 60px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.6;
    max-width: 260px;
}

.footer-links h4 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.footer-links a {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ----- Animations on Scroll (AOS) ----- */
[data-aos] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 80px 20px 50px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        flex: none;
    }

    .hero-card-stack {
        display: flex;
        flex-direction: column;
        gap: 12px;
        height: auto;
    }

    .floating-card {
        position: static;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured.visible {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .games-grid-v2 {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ================================================
   AUTH PAGES — Login & Register
   ================================================ */

.auth-page {
    min-height: 100vh;
}

.auth-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 880px;
    min-height: 560px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Auth Brand Panel */
.auth-brand {
    position: relative;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.06) 0%, rgba(220, 38, 38, 0.04) 100%);
    border-right: 1px solid var(--border);
    overflow: hidden;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
}

.auth-brand .nav-logo {
    margin-bottom: 32px;
}

.auth-brand-title {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    line-height: 1.2;
}

.auth-brand-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}

.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.auth-brand-glow {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

/* Auth Form Panel */
.auth-form-panel {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 340px;
}

.auth-form-header {
    margin-bottom: 26px;
}

.auth-form-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.auth-form-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Form Controls */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-link {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    transition: color var(--transition-fast);
}

.form-link:hover {
    color: var(--accent-light);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.input-wrapper input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    outline: none;
    transition: all var(--transition-fast);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-wrapper input:focus~.input-icon,
.input-wrapper input:focus+.input-icon {
    color: var(--accent);
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    transition: color var(--transition-fast);
}

.toggle-password:hover {
    color: var(--text-primary);
}

/* Checkbox */
.form-checkbox {
    flex-direction: row;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.checkbox-label input:checked+.checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-label input:checked+.checkmark::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translateY(-1px);
}

/* Password Strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.strength-bar {
    flex: 1;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width var(--transition-base), background var(--transition-base);
}

.strength-text {
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* Auth Submit */
.auth-submit {
    margin-top: 6px;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Discord Button */
.discord-btn {
    gap: 8px;
}

.discord-btn:hover {
    background: rgba(88, 101, 242, 0.1);
    border-color: #5865F2;
    color: #5865F2;
}

/* Auth Footer */
.auth-footer-text {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (max-width: 768px) {
    .auth-container {
        min-height: auto;
    }

    .auth-form-panel {
        padding: 28px 20px;
    }
}

/* ================================================
   ASTEROIDS EASTER EGG (MINIGAME)
   ================================================ */
.game-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9998;
    pointer-events: none;
    /* Let clicks pass through when not playing */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.game-canvas.active {
    pointer-events: auto;
    opacity: 1;
    background: rgba(9, 9, 11, 0.85);
    /* Darken bg when playing */
    backdrop-filter: blur(4px);
}

.game-ui {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
}

.game-ui.active {
    opacity: 1;
}

.top-panels {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.score-panel,
.weapon-panel {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.score-panel {
    text-align: right;
}

.weapon-panel {
    text-align: left;
}

.score-title {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.score-value {
    font-family: var(--font-mono);
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.weapon-value {
    font-family: var(--font-mono);
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.weapon-progress {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin-top: 4px;
    letter-spacing: 1px;
}

.controls-hint {
    align-self: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 100px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bottom-panels {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.hotbar {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.hotbar-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hotbar-slot.active {
    background: rgba(248, 113, 113, 0.2);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.2);
}

.hotbar-slot.locked {
    opacity: 0.3;
    pointer-events: none;
}

.slot-key {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 2px;
}

.slot-name {
    font-family: var(--font-mono);
    color: #fff;
    font-size: 0.55rem;
    text-align: center;
}

.shields-panel {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    text-align: right;
    min-width: 150px;
}

.shield-icons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 5px;
    min-height: 24px;
}

.shield-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #60a5fa;
    /* blue shield */
    box-shadow: 0 0 8px #60a5fa;
    transition: all 0.3s ease;
}

.shield-icon.broken {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.shield-timer {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.game-over-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    /* using logic to flex it later */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.game-over-screen.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.game-over-screen h2 {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--accent);
    margin-bottom: 20px;
    font-family: var(--font-mono);
    text-shadow: 0 0 30px rgba(248, 113, 113, 0.5);
    letter-spacing: 4px;
}

.game-over-screen p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.game-over-actions {
    display: flex;
    gap: 20px;
}