:root {
    /* Colors */
    --bg-primary: #0f131a;
    --bg-secondary: #1a1f29;
    --bg-card: #202632;
    --accent-blue: #2aa9e0;
    --accent-red: #e02a4b;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;

    /* Layout */
    --header-height: 70px;
    --container-width: 1400px;

    /* Effects */
    --glass-bg: rgba(15, 19, 26, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: oklch(0.869 0.02 252.937);
    /* Updated to match nav color */
    --accent-blue: #2aa9e0;

    --header-height: 64px;
    /* Exact match */
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: transparent;
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(15, 19, 26, 0.85);
    /* Dark semi-transparent */
    backdrop-filter: blur(12px);
    /* Glassmorphism */
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo Styles */
.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.5px;
}

.text-red {
    color: #e02a4b;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Search Trigger (Icon Only) */
.search-trigger {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-trigger:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Nav Button (Genre) */
.nav-link.genre-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

/* Portal Button (Random Game) */
.portal-btn {
    position: relative;
    overflow: hidden;
    color: #fff !important;
    background: conic-gradient(from 180deg at 50% 50%, #FF0055 0deg, #00FF99 120deg, #00CCFF 240deg, #FF0055 360deg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 153, 0.3);
}

.portal-btn::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-secondary);
    border-radius: 50%;
    z-index: 1;
}

.portal-btn i {
    position: relative;
    z-index: 2;
    font-size: 1rem;
    background: linear-gradient(135deg, #fff, #ddd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Main Content */
main {
    padding-top: var(--header-height);
}

/* Hero Section */
.hero-section {
    height: 600px;
    margin-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-slider,
.slide {
    height: 100%;
    width: 100%;
}

.slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide-content {
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

.badge {
    background: var(--accent-blue);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.slide-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(42, 169, 224, 0.4);
}

.btn-primary:hover {
    background: #2390be;
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Quick Links */
.quick-links {
    /* transform: translateY(-50%); */
    /* Removed because hero section is missing */
    position: relative;
    z-index: 10;
    margin-top: 20px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.quick-link {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

.quick-link i {
    font-size: 1.5rem;
}

.quick-link:hover {
    transform: translateY(-5px);
    background: var(--bg-secondary);
    border-color: var(--accent-blue);
}

.quick-link.discord {
    color: #5865F2;
}

.quick-link.reddit {
    color: #FF4500;
}

.quick-link.donate {
    color: #FF0055;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

.alt-bg {
    background: var(--bg-secondary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--accent-blue);
}

.view-all {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.view-all:hover {
    color: var(--accent-blue);
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0;
    /* Tailwind space-x-0 but relies on padding */
    margin-left: 20px;
}

/* Dropdown Navigation */
.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    color: #cbd5e1;
    /* Lighter text for better contrast on dark */
    font-size: 0.95rem;
    /* Slightly larger */
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-arrow {
    font-size: 0.7em;
    opacity: 0.6;
    transition: transform 0.2s;
}

.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Standard Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #1e293b;
    /* Dark Slate to match AnkerGames dark theme */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: #94a3b8;
    border-radius: 6px;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(42, 169, 224, 0.1);
    /* Blue tint highlight */
    color: var(--accent-blue);
    padding-left: 20px;
}

/* Mega Menu */
.mega-menu {
    position: fixed;
    /* Fixed relative to screen for full width center or specific placement */
    top: var(--header-height);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 1000px;
    /* Wide menu */
    max-width: 95vw;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    /* Keep centered */
}

.mega-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-menu-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mega-menu-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 Columns */
    gap: 30px;
}

.mega-column h4 {
    color: var(--accent-blue);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mega-column h4::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.mega-column ul li {
    margin-bottom: 8px;
}

.mega-column ul li a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color 0.2s;
    display: block;
}

.mega-column ul li a:hover {
    color: white;
    transform: translateX(5px);
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.game-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-blue);
}

.card-image {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

/* Hover overlay effect */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.game-card:hover .card-overlay {
    opacity: 1;
}

.download-btn {
    width: 50px;
    height: 50px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transform: scale(0);
    transition: var(--transition);
}

.game-card:hover .download-btn {
    transform: scale(1);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.game-card:hover .card-image img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.card-badge.hot {
    background: var(--accent-red);
}

.card-content {
    padding: 15px;
}

.game-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.meta-item i {
    margin-right: 5px;
}

/* Footer */
.site-footer {
    background: #0b0e13;
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    margin-bottom: 20px;
    max-height: 40px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.social-icons a:hover {
    background: var(--accent-blue);
    color: white;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.link-column h4 {
    margin-bottom: 20px;
    color: white;
}

.link-column a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.link-column a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.utils-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

/* Mobile Sidebar & Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: var(--bg-secondary);
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.close-sidebar {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
}

.mobile-nav a i {
    width: 20px;
    color: var(--accent-blue);
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 19, 26, 0.98);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 100%;
    max-width: 800px;
    padding: 0 40px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 15px;
}

.search-box i {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-right: 25px;
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    outline: none;
    width: 100%;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.close-search {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-search:hover {
    color: white;
    transform: rotate(90deg);
}

.search-hints {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    align-items: center;
    color: var(--text-muted);
}

.search-hints a {
    color: var(--text-secondary);
    font-weight: 600;
}

.search-hints a:hover {
    color: var(--accent-blue);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .search-bar {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 500px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .mobile-menu-btn {
        display: block;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .slide-title {
        font-size: 2.5rem;
    }
}

/* Animations */

/* Game Detail Page */
.game-hero {
    display: flex;
    gap: 40px;
    margin-top: calc(var(--header-height) + 40px);
    margin-bottom: 60px;
}

.game-poster-wrapper {
    flex: 0 0 350px;
}

.game-poster-lg {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.game-info-col {
    flex: 1;
}

.game-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.badge-pill {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-trailer {
    margin-left: auto;
    background: #e02a4b;
    color: white;
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.game-detail-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #2aa9e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.stars {
    color: #ffd700;
}

.game-version-badge {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 25px;
}

.game-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.game-meta-grid {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid var(--glass-border);
}

.meta-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-row:last-child {
    border-bottom: none;
}

.meta-row strong {
    color: var(--text-primary);
}

.meta-row span {
    color: var(--accent-blue);
}

.game-actions {
    display: flex;
    gap: 20px;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.2rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.gallery-grid img {
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Requirements */
.requirements-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.req-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.req-box.recommended {
    border-color: var(--accent-blue);
    background: linear-gradient(to bottom right, var(--bg-card), rgba(42, 169, 224, 0.1));
}

.req-box h3 {
    margin-bottom: 20px;
    color: var(--accent-blue);
    font-size: 1.4rem;
}

.req-box ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.req-box ul li strong {
    min-width: 120px;
    color: var(--text-muted);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-secondary);
    padding: 0;
    width: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    animation: fadeInUp 0.3s ease-out;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--accent-blue);
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    color: white;
    font-size: 1.2rem;
    margin: 0;
}

.close-modal {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-body {
    padding: 30px;
}

.download-links {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dl-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    transition: 0.2s;
    border: 1px solid transparent;
}

.dl-link:hover {
    background: var(--bg-card);
    border-color: var(--accent-blue);
    transform: translateX(5px);
}

.alert-box {
    background: rgba(224, 42, 75, 0.1);
    border: 1px solid rgba(224, 42, 75, 0.3);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: #ff6b6b;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Treasure Box Download Page */
.download-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(11, 14, 19, 0.8) 100%);
}

.treasure-box {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    width: 600px;
    max-width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

.box-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.box-header h1 {
    font-size: 1.5rem;
    margin-top: 15px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.box-content {
    padding: 30px;
}

/* Progress Bar Treasure Style */
.progress-section {
    margin-bottom: 20px;
}

.progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #06b6d4, #d946ef);
    /* Cyan to Magenta */
    border-radius: 10px;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(217, 70, 239, 0.5);
}

.progress-status {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #94a3b8;
    font-family: monospace;
}

/* Pirate Text */
.pirate-text {
    text-align: center;
    color: #fca5a5;
    /* Light red/pink */
    font-style: italic;
    margin-bottom: 25px;
    animation: pulse 2s infinite;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-download-main {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    padding: 18px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.btn-download-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.btn-copy-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-copy-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.spin-anim {
    animation: spin 3s linear infinite;
    font-size: 3rem;
    color: #06b6d4;
    margin-bottom: 10px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}