/* ========================================
   WEAREPIRATES - Premium Gaming Platform
   Dark/Light Mode + Enhanced Design
   ======================================== */

/* ===== DARK THEME (default) ===== */
:root {
    --bg: #08080d;
    --bg-secondary: #0e0e16;
    --bg-card: #111119;
    --bg-card-hover: #18182a;
    --bg-header: rgba(8, 8, 13, 0.88);
    --bg-glass: rgba(17, 17, 25, 0.6);
    --text: #eaeaef;
    --text-dim: #8b8b9e;
    --text-muted: #55556b;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --accent-dim: rgba(99, 102, 241, 0.12);
    --accent2: #a855f7;
    --accent3: #06b6d4;
    --green: #22c55e;
    --orange: #f97316;
    --red: #ef4444;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.14);
    --radius: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.65);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --grid-color: rgba(255, 255, 255, 0.02);
    --scrollbar-bg: #08080d;
    --scrollbar-thumb: rgba(255, 255, 255, 0.1);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --bg: #f4f4f8;
    --bg-secondary: #eaeaef;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f5;
    --bg-header: rgba(244, 244, 248, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --text: #1a1a2e;
    --text-dim: #5a5a72;
    --text-muted: #8888a0;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --accent-dim: rgba(99, 102, 241, 0.08);
    --accent2: #a855f7;
    --accent3: #0891b2;
    --green: #16a34a;
    --orange: #ea580c;
    --red: #dc2626;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.1);
    --grid-color: rgba(0, 0, 0, 0.03);
    --scrollbar-bg: #f4f4f8;
    --scrollbar-thumb: rgba(0, 0, 0, 0.12);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.4s ease, color 0.4s ease;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -2;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    animation: float 15s ease-in-out infinite;
}

.bg-glow-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    opacity: 0.07;
    top: -200px;
    left: -100px;
}

.bg-glow-2 {
    width: 400px;
    height: 400px;
    background: var(--accent2);
    opacity: 0.05;
    bottom: -150px;
    right: -100px;
    animation-delay: -7s;
}

.bg-glow-3 {
    width: 350px;
    height: 350px;
    background: var(--accent3);
    opacity: 0.04;
    top: 50%;
    left: 50%;
    animation-delay: -3s;
}

[data-theme="light"] .bg-glow {
    opacity: 0.03 !important;
}

[data-theme="light"] .bg-grid {
    opacity: 0.7;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(30px, 30px);
    }

    50% {
        transform: translate(-20px, 60px);
    }

    75% {
        transform: translate(40px, -20px);
    }
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-header);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    transition: background 0.4s ease;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--accent);
    font-size: 1.3rem;
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: var(--accent-dim);
}

.nav-link.active {
    color: var(--accent);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.search-input {
    background: var(--accent-dim);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.6rem 0.75rem 0.6rem 2.2rem;
    color: var(--text);
    font-size: 0.85rem;
    width: 220px;
    outline: none;
    transition: var(--transition);
    font-family: var(--font);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    border-color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 0 0 3px var(--accent-glow);
    width: 280px;
}

/* ===== ICON BUTTON & THEME TOGGLE ===== */
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--accent-dim);
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.icon-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.icon-btn i {
    transition: transform 0.3s ease;
}

#lang-text {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-dim);
    transition: var(--transition);
}

.icon-btn:hover #lang-text {
    color: white;
}

.icon-btn:hover i {
    transform: rotate(20deg);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.3rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-family: var(--font);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-ghost {
    background: var(--accent-dim);
    color: var(--text-dim);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg-card-hover);
    color: var(--text);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    border-radius: 14px;
}

/* ===== HERO ===== */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    min-height: 70vh;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: var(--accent-dim);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.5rem;
    animation: pulse-badge 3s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        box-shadow: 0 0 0 0 transparent;
    }

    50% {
        box-shadow: 0 0 24px var(--accent-glow);
    }
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2.5px;
    margin-bottom: 1.2rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite;
    background-size: 200% auto;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card-stack {
    position: relative;
    width: 320px;
    height: 400px;
    perspective: 800px;
}

.hero-float-card {
    position: absolute;
    width: 220px;
    height: 300px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    animation: card-float 6s ease-in-out infinite;
}

.card-1 {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    top: 0;
    left: 0;
    z-index: 3;
}

.card-2 {
    background: linear-gradient(135deg, #0f0f1a, #1a0a2e);
    top: 30px;
    left: 50px;
    z-index: 2;
    opacity: 0.7;
    animation-delay: -2s;
}

.card-3 {
    background: linear-gradient(135deg, #0a0f1a, #0a1a2e);
    top: 60px;
    left: 100px;
    z-index: 1;
    opacity: 0.4;
    animation-delay: -4s;
}

[data-theme="light"] .card-1 {
    background: linear-gradient(135deg, #e8e8f0, #d8d8f0);
}

[data-theme="light"] .card-2 {
    background: linear-gradient(135deg, #e0e0ee, #d0d0ee);
}

[data-theme="light"] .card-3 {
    background: linear-gradient(135deg, #d8d8e8, #c8cce8);
}

@keyframes card-float {

    0%,
    100% {
        transform: translateY(0) rotateY(0deg);
    }

    50% {
        transform: translateY(-15px) rotateY(5deg);
    }
}

/* ===== CATEGORIES ===== */
.categories {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-title i {
    color: var(--orange);
}

.category-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pill {
    padding: 0.5rem 1.1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pill.active {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.pill-android.active {
    background: linear-gradient(135deg, #3DDC84, #2ebf6d) !important;
    box-shadow: 0 4px 16px rgba(61, 220, 132, 0.3) !important;
}

.nav-link.active.nav-android {
    color: #3DDC84 !important;
}

/* ===== GAME GRID ===== */
.games-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

/* Loader */
.loader-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem 0;
    color: var(--text-dim);
}

.loader {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== GAME CARD ===== */
.game-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.game-card:hover .game-image {
    transform: scale(1.1);
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 133%;
    /* 3:4 */
    overflow: hidden;
    background: var(--bg-secondary);
}

.game-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-overlay .btn {
    font-size: 0.8rem;
    padding: 0.5rem 1.2rem;
}

.game-info {
    padding: 0.8rem 0.9rem;
}

.game-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.game-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.game-meta .tag {
    background: var(--accent-dim);
    color: var(--accent);
    padding: 0.18rem 0.55rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Multi-source & Online badges */
.multi-source-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--green), #15803d);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    z-index: 2;
}

.online-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, var(--accent3), #0e7490);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.online-tag {
    background: rgba(6, 182, 212, 0.15) !important;
    color: var(--accent3) !important;
}

/* Load More */
.load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

/* ===== FEATURES ===== */
.features {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
    color: var(--accent);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ===== CONTACT / DISCORD SECTION ===== */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.contact-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.contact-title i {
    color: var(--accent);
}

/* Discord Cards Container */
.discord-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.5rem;
}

.discord-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.discord-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5865F2, var(--accent2), var(--accent3));
}

.discord-card:hover {
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 0 8px 40px rgba(88, 101, 242, 0.1);
}

.discord-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.discord-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--border);
    object-fit: cover;
    transition: var(--transition);
}

.discord-card:hover .discord-avatar {
    border-color: #5865F2;
    box-shadow: 0 0 24px rgba(88, 101, 242, 0.3);
}

.discord-status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    background: #747f8d;
    /* offline by default */
}

.discord-status-dot.online {
    background: #3ba55d;
}

.discord-status-dot.idle {
    background: #faa61a;
}

.discord-status-dot.dnd {
    background: #ed4245;
}

.discord-info {
    flex: 1;
    min-width: 0;
}

.discord-username {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.discord-tag {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.discord-status-text {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discord-status-text i {
    color: var(--accent);
}

/* Activity */
.discord-activity {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.discord-activity-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.discord-activity-type {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.15rem;
}

.discord-activity-name {
    font-size: 0.8rem;
    font-weight: 600;
}

.discord-activity-details {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.discord-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font);
}

.discord-btn-primary {
    background: #5865F2;
    color: white;
}

.discord-btn-primary:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.discord-btn-ghost {
    background: var(--accent-dim);
    color: var(--text-dim);
    border: 1px solid var(--border);
}

.discord-btn-ghost:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

/* Spotify Card inside contact */
.spotify-card {
    margin-top: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.spotify-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #1db954;
}

.spotify-album-art {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.spotify-info {
    flex: 1;
    min-width: 0;
}

.spotify-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1db954;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.spotify-song {
    font-size: 0.9rem;
    font-weight: 700;
}

.spotify-artist {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 0 2rem;
    margin-top: 2rem;
    transition: border-color 0.4s ease;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== PAGE TRANSITIONS ===== */
body {
    animation: page-in 0.4s ease-out;
}

body.page-out {
    animation: page-out 0.3s ease-in forwards;
}

@keyframes page-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes page-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SCRAPE STATUS ===== */
#scrape-status {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.8rem 1.2rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    z-index: 200;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    max-width: 320px;
    animation: fadeInUp 0.3s ease-out;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        padding: 3rem 2rem;
        min-height: auto;
        text-align: center;
    }

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

    .hero-desc {
        margin: 0 auto 2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-inner {
        gap: 1rem;
    }

    .nav {
        display: none;
    }

    .search-input {
        width: 150px;
    }

    .search-input:focus {
        width: 180px;
    }

    .hero-title {
        font-size: 2.4rem;
        letter-spacing: -1px;
    }

    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .discord-card {
        flex-direction: column;
        text-align: center;
    }

    .discord-actions {
        justify-content: center;
    }

    .spotify-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

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

    .categories,
    .games-section,
    .features,
    .contact-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }

    .auth-buttons {
        display: none;
    }

    .discord-card {
        padding: 1.5rem;
    }

    .discord-cards {
        grid-template-columns: 1fr;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ===== Daily Splash Loader ===== */
.splash-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 2rem;
    animation: pulse 2s infinite ease-in-out;
}

.splash-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Campaign Modal ===== */
.campaign-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease-out;
}

.campaign-content {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    animation: scaleIn 0.3s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
}

.campaign-icon {
    font-size: 3.5rem;
    color: #fbbf24;
    margin-bottom: 1.5rem;
}

.campaign-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.campaign-content p {
    color: var(--text-dim) !important;
    font-size: 1.1rem !important;
    margin-bottom: 2.5rem !important;
    line-height: 1.6 !important;
}

.campaign-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== Coming Soon Cards ===== */
.game-card.coming-soon {
    opacity: 0.7;
    filter: grayscale(0.5);
    background: rgba(26, 26, 26, 0.5);
}

.game-card.coming-soon:hover {
    transform: none;
    cursor: default;
}

.game-card.coming-soon .game-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}

.game-card.coming-soon .btn.disabled {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: default;
    pointer-events: none;
}