:root {
    /* Color Palette - Dark Theme (Default) */
    --bg-primary: #0a0b10;
    --bg-secondary: #141620;
    --bg-tertiary: #1c1f2e;
    --accent-primary: #00ff88;
    /* Neon Green */
    --accent-secondary: #9d00ff;
    /* Neon Purple */
    --accent-tertiary: #00d2ff;
    /* Neon Blue */
    --discord-color: #5865f2;
    --text-primary: #ffffff;
    --text-secondary: #b0b3c1;
    --text-muted: #6b7280;
    --card-bg: #1a1c26;
    --card-hover: #232634;
    --shadow-neon: 0 0 15px rgba(0, 255, 136, 0.3);
    --border-color: #2e3245;

    /* Functional Colors */
    --danger: #ff4757;
    --warning: #ffa502;
    --success: #2ed573;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-theme {
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8fafc;
    --accent-primary: #00b894;
    --accent-secondary: #6c5ce7;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --card-bg: #ffffff;
    --card-hover: #f1f5f9;
    --shadow-neon: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
.logo span {
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    /* Disable text selection for anti-scraping */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ================================================
   TOP INFORMATION NAV BAR
================================================ */
.top-nav-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    z-index: 1100;
    position: sticky;
    top: 0;
}

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

.top-nav-brand {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.top-nav-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.top-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.top-nav-links a:hover {
    color: var(--accent-primary);
}

/* ================================================
   MAIN NAVIGATION
================================================ */
header {
    position: sticky;
    top: 35px;
    /* below top-nav-bar */
    z-index: 1000;
    background: rgba(10, 11, 16, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

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

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

.logo img {
    height: 40px;
    filter: drop-shadow(0 0 5px var(--accent-primary));
}

.logo span {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-search-wrapper {
    flex: 1;
    max-width: 600px;
}

.search-bar {
    position: relative;
    width: 100%;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.nav-actions button {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.nav-actions button:hover {
    background: var(--card-hover);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

/* ================================================
   FILTER BAR
================================================ */
.filter-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

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

.platform-filters {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.filter-btn.active {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.filter-btn-hot {
    background: rgba(255, 71, 87, 0.1);
    color: var(--danger);
    border-color: rgba(255, 71, 87, 0.3);
}

.filter-btn-hot:hover,
.filter-btn-hot.active {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(245, 87, 108, 0.4);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sort-options select {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
}

/* ================================================
   HERO SECTION
================================================ */
.hero {
    max-width: 1400px;
    margin: 3rem auto 1.5rem;
    padding: 0 2rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.browse-deals-btn {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.2);
}

.browse-deals-btn:hover {
    background: var(--accent-primary);
    color: #000;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 255, 136, 0.4);
}

.join-community-btn {
    background: #5865f2;
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
    animation: btn-pulse 2s infinite;
}

.join-community-btn:hover {
    transform: translateY(-4px);
    background: #4752c4;
    box-shadow: 0 12px 32px rgba(88, 101, 242, 0.6);
}

@keyframes btn-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(88, 101, 242, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(88, 101, 242, 0);
    }
}



/* ================================================
   ADS
================================================ */
.ad-container {
    max-width: 1400px;
    margin: 1.5rem auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
}

.ad-placeholder {
    background: var(--bg-tertiary);
    border: 1px dashed var(--text-muted);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
}

.leaderboard .ad-placeholder {
    width: 728px;
    height: 90px;
}

@media (max-width: 768px) {
    .ad-container {
        width: 100%;
        padding: 0 1rem;
        margin: 1rem 0;
        display: flex;
        justify-content: center;
    }

    .ad-placeholder {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        min-height: 80px;
        font-size: 0.7rem;
    }
}

.sidebar-ad .ad-placeholder {
    width: 300px;
    height: 250px;
}

.native-ad {
    grid-column: 1 / -1;
    height: 120px;
    margin: 1rem 0;
}

.native-ad .ad-placeholder {
    width: 100%;
    height: 100%;
}

/* ================================================
   DEALS GRID
================================================ */
.deals-section {
    max-width: 1400px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.deal-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: fadeIn 0.5s ease backwards;
}

.deal-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 255, 136, 0.1);
}

.deal-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.deal-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--danger);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.deal-badge.hot {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
}

.deal-badge.limited {
    background: var(--warning);
    color: #000;
}

.deal-badge.new {
    background: var(--accent-primary);
    color: #000;
}

/* stylized circular source initials badge */
.card-source-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    z-index: 5;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    transition: transform 0.2s;
    user-select: none;
}

.card-source-badge:hover {
    transform: scale(1.15);
}

.card-source-badge.gamerpower {
    background: rgba(255, 204, 0, 0.4);
    border-color: #ffcc00;
    color: #ffcc00;
}

.card-source-badge.openloot {
    background: rgba(0, 210, 255, 0.4);
    border-color: #00d2ff;
    color: #00d2ff;
}

.card-source-badge.pluto {
    background: rgba(157, 0, 255, 0.4);
    border-color: #9d00ff;
    color: #9d00ff;
}

/* Refined card layout */
.deal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.deal-header .deal-title {
    margin-bottom: 0;
    flex: 1;
}

.deal-header .platform-icons {
    margin-bottom: 0;
    padding-top: 0.2rem;
}

.deal-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.platform-icons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.platform-icons i {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.deal-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto;
    min-height: 2.8rem;
    max-height: 4.5rem;
}

.deal-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.price-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.free-tag {
    color: var(--accent-primary);
    font-weight: 800;
    font-size: 1.1rem;
}

/* ================================================
   LIVE COUNTDOWN TIMER
================================================ */
.expiry-timer {
    font-size: 0.8rem;
    color: var(--warning);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.countdown-live {
    font-variant-numeric: tabular-nums;
    min-width: 70px;
    display: inline-block;
}

.countdown-urgent {
    color: var(--danger);
    animation: pulse-urgent 1s ease-in-out infinite;
}

@keyframes pulse-urgent {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.get-offer-btn {
    margin-top: 1.25rem;
    width: 100%;
    padding: 0.85rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
}

.deal-card:hover .get-offer-btn {
    background: var(--accent-primary);
    color: #000;
}

/* ================================================
   LOADING SENTINEL
================================================ */
.scroll-sentinel {
    height: 50px;
    width: 100%;
    margin-top: 2rem;
}

/* ================================================
   FOOTER
================================================ */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ================================================
   FLOATING DISCORD BUTTON (FAB)
================================================ */
.discord-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--discord-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(88, 101, 242, 0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    animation: bounceIn 0.8s 1s ease both;
}

.discord-fab:hover {
    transform: scale(1.15) translateY(-4px);
    box-shadow: 0 12px 30px rgba(88, 101, 242, 0.7);
}

.discord-fab-tooltip {
    position: absolute;
    right: 72px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
    transition: all 0.2s ease;
}

.discord-fab:hover .discord-fab-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }

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

    80% {
        transform: scale(0.93);
    }

    100% {
        transform: scale(1);
    }
}

/* ================================================
   DISCORD MODAL
================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
}

.modal-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 460px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-discord-icon {
    font-size: 3.5rem;
    color: var(--discord-color);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 16px rgba(88, 101, 242, 0.6));
}

.discord-modal-box h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg, var(--discord-color), #7289da);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.discord-modal-box p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.discord-modal-box p strong {
    color: var(--accent-primary);
}

.modal-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--bg-tertiary);
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

.modal-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.modal-stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.modal-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-discord-join {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--discord-color);
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
    margin-bottom: 1rem;
}

.btn-discord-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.6);
    background: #4752c4;
}

.modal-note {
    font-size: 0.72rem !important;
    color: var(--text-muted) !important;
    margin-top: 0.5rem;
    margin-bottom: 0 !important;
}

/* ================================================
   PUSH NOTIFICATION TOAST
================================================ */
.push-toast {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    z-index: 8500;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    max-width: 340px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s ease;
    border-left: 4px solid var(--accent-primary);
}

.push-toast.hidden {
    display: none;
}

.push-toast-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.push-toast-content {
    flex: 1;
}

.push-toast-content strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.push-toast-content p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}

.push-toast-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.85rem;
    flex-wrap: wrap;
}

.push-btn-allow,
.push-btn-deny {
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.push-btn-allow {
    background: var(--accent-primary);
    color: #000;
}

.push-btn-allow:hover {
    opacity: 0.85;
}

.push-btn-deny {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.push-btn-deny:hover {
    color: var(--text-primary);
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 1024px) {
    .nav-search-wrapper {
        order: 3;
        max-width: 100%;
    }

    .nav-container {
        flex-direction: column;
        padding: 1rem;
    }

    header {
        top: 30px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }

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

    .filter-container {
        justify-content: center;
    }

    .top-nav-container {
        justify-content: center;
    }

    .top-nav-brand {
        display: none;
    }

    .top-nav-links {
        gap: 0.9rem;
        justify-content: center;
    }

    .push-toast {
        right: 1rem;
        left: 1rem;
        max-width: none;
        bottom: 5rem;
    }

    .discord-fab {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    header {
        top: auto;
        position: sticky;
    }

    .top-nav-bar {
        position: sticky;
    }
}

/* ================================================
   ANIMATIONS
================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Error & no-results */
.error,
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ================================================
   SR-ONLY (Screen-Reader / Crawler Only)
   Visually hidden but readable by crawlers & assistive tech.
   Uses the gold-standard clip technique — not display:none (which
   hides from crawlers too) and not visibility:hidden (same issue).
================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    border: 0;
}

/* ================================================
   404 ERROR PAGE STYLES
================================================ */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    overflow: hidden;
    background: #050508;
}

.error-container {
    text-align: center;
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--accent-primary);
    margin: 0;
    position: relative;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

/* Glitch Effect */
.error-code::before,
.error-code::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050508;
    clip: rect(0, 0, 0, 0);
}

.error-code::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.error-code::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(20px, 9999px, 15px, 0);
    }

    20% {
        clip: rect(45px, 9999px, 80px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    60% {
        clip: rect(65px, 9999px, 5px, 0);
    }

    80% {
        clip: rect(35px, 9999px, 90px, 0);
    }

    100% {
        clip: rect(50px, 9999px, 20px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(70px, 9999px, 85px, 0);
    }

    20% {
        clip: rect(5px, 9999px, 40px, 0);
    }

    40% {
        clip: rect(95px, 9999px, 15px, 0);
    }

    60% {
        clip: rect(25px, 9999px, 60px, 0);
    }

    80% {
        clip: rect(80px, 9999px, 10px, 0);
    }

    100% {
        clip: rect(40px, 9999px, 75px, 0);
    }
}

.game-over-text {
    margin: 1.5rem 0;
}

.ghost-icon {
    font-size: 3rem;
    color: #ff00c1;
    margin-bottom: 1rem;
    animation: bounce 2s infinite ease-in-out;
}

.game-over-text h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: 5px;
}

.game-over-text p {
    font-size: 1.25rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin: 0.5rem 0 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.error-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.error-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

@media (max-width: 600px) {
    .error-code {
        font-size: 6rem;
    }

    .game-over-text h2 {
        font-size: 2.25rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Retro Grid Background */
.retro-grid {
    position: fixed;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%) perspective(500px) rotateX(60deg);
    width: 200vw;
    height: 100vh;
    background:
        linear-gradient(90deg, rgba(0, 255, 136, 0.1) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 255, 136, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

/* ================================================
   HOT / TRENDING FILTER BUTTON
================================================ */
.filter-btn-hot {
    background: linear-gradient(135deg, #ff4500, #ff8c00) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 20px !important;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    padding: 0.5rem 1.25rem !important;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.filter-btn-hot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.2s;
}

.filter-btn-hot:hover::after {
    opacity: 1;
}

.filter-btn-hot.active {
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.6) !important;
}

.filter-btn-hot i {
    color: #ffe066;
    font-size: 0.85rem;
    text-shadow: none;
}

/* ================================================
   HONEYPOT TRAP INPUT
================================================ */
.hp-trap {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ================================================
   PUSH TOAST CLOSE BUTTON
================================================ */
.push-toast-close {
    position: absolute;
    top: 5px;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 2px;
    transition: color 0.2s;
}

.push-toast-close:hover {
    color: var(--accent-primary);
}

/* ================================================
   SKELETON SCREENS — shimmer animation
================================================ */
@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

.skeleton-base {
    background: linear-gradient(90deg,
            var(--bg-tertiary) 25%,
            var(--card-hover) 50%,
            var(--bg-tertiary) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.6s infinite linear;
    border-radius: 8px;
}

/* Grid card skeletons (8 per first load) */
.skeleton-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.skeleton-card .sk-image {
    height: 180px;
    background: linear-gradient(90deg,
            var(--bg-tertiary) 25%,
            var(--card-hover) 50%,
            var(--bg-tertiary) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.6s infinite linear;
}

.skeleton-card .sk-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-card .sk-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg,
            var(--bg-tertiary) 25%,
            var(--card-hover) 50%,
            var(--bg-tertiary) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.6s infinite linear;
}

.skeleton-card .sk-line.w-full {
    width: 100%;
}

.skeleton-card .sk-line.w-3q {
    width: 75%;
}

.skeleton-card .sk-line.w-half {
    width: 50%;
}

.skeleton-card .sk-btn {
    margin-top: 0.5rem;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(90deg,
            var(--bg-tertiary) 25%,
            var(--card-hover) 50%,
            var(--bg-tertiary) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.6s infinite linear;
}

/* Detail-page skeleton */
.skeleton-detail {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skeleton-banner {
    height: 400px;
    border-radius: 16px;
    background: linear-gradient(90deg,
            var(--bg-tertiary) 25%,
            var(--card-hover) 50%,
            var(--bg-tertiary) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.6s infinite linear;
}

.skeleton-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
}

.skeleton-line {
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(90deg,
            var(--bg-tertiary) 25%,
            var(--card-hover) 50%,
            var(--bg-tertiary) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.6s infinite linear;
}

.skeleton-line.short {
    width: 40%;
}

.skeleton-line.medium {
    width: 65%;
}

.skeleton-line.long {
    width: 90%;
}

.skeleton-btn {
    height: 52px;
    border-radius: 12px;
    margin-top: 1rem;
    background: linear-gradient(90deg,
            var(--bg-tertiary) 25%,
            var(--card-hover) 50%,
            var(--bg-tertiary) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.6s infinite linear;
}

@media (max-width: 768px) {
    .skeleton-detail {
        grid-template-columns: 1fr;
    }

    .skeleton-banner {
        height: 220px;
    }
}

/* ================================================
   SHARE BUTTON & MINI MENU
================================================ */
.share-wrapper {
    position: relative;
}

.share-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.5rem;
    min-width: 190px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    z-index: 5000;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    animation: slideDown 0.2s ease;
}

.share-menu.open {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

.share-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.share-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: 9px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    width: 100%;
    text-align: left;
}

.share-menu-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.share-menu-item i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
}

/* Platform brand colours on hover */
.share-menu-item:hover #share-twitter i,
#share-twitter:hover i {
    color: #000;
}

#share-whatsapp:hover i {
    color: #25d366;
}

#share-telegram:hover i {
    color: #2ca5e0;
}

#share-reddit:hover i {
    color: #ff4500;
}

#share-copy:hover i {
    color: var(--accent-primary);
}

/* ================================================
   REDESIGNED DISCORD LANDING MODAL
================================================ */
.discord-modal-box {
    background: #0e0f1a;
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 24px;
    padding: 0;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animated coloured orbs in the background */
.discord-modal-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.discord-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.25;
    animation: orbFloat 8s ease-in-out infinite alternate;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: #5865f2;
    top: -80px;
    left: -80px;
    animation-delay: 0s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: #00ff88;
    bottom: -60px;
    right: -60px;
    animation-delay: -3s;
}

.orb-3 {
    width: 180px;
    height: 180px;
    background: #9d00ff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, -20px) scale(1.08);
    }
}

/* Content wrapper (sits above orbs) */
.discord-modal-box>*:not(.discord-modal-bg) {
    position: relative;
    z-index: 1;
}

/* Padding wrapper for all real content */
.discord-modal-box .modal-close {
    display: none;
    /* Hide old ones if any */
}

#discord-modal-close.modal-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10001;
    /* Above modal box */
    background: #ff4757;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(255, 71, 87, 0.6), 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#discord-modal-close.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: #ff6b81;
}

@media (max-width: 600px) {
    #discord-modal-close.modal-close {
        top: 1rem;
        right: 1rem;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .discord-headline {
        font-size: 1.6rem;
        margin: 0.5rem 1rem 0;
    }

    .discord-subline,
    .discord-benefits,
    .discord-social-proof {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .btn-discord-join {
        width: calc(100% - 2rem);
        margin: 1.5rem 1rem 0;
        padding: 1rem;
    }
}

/* Glowing icon */
.modal-discord-icon {
    padding-top: 3.5rem;
    font-size: 4rem;
    color: #5865f2;
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.discord-icon-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.6) 0%, transparent 70%);
    animation: iconPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes iconPulse {

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

    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

/* Headline */
.discord-headline {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin: 0.5rem 1.5rem 0;
    font-family: 'Outfit', sans-serif;
}

.discord-headline span {
    background: linear-gradient(90deg, #5865f2, #00d2ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.discord-subline {
    color: #9ca3af;
    margin: 0.6rem 1.5rem 0;
    font-size: 0.95rem;
}

.discord-subline strong {
    color: var(--accent-primary);
}

/* Benefit pills */
.discord-benefits {
    list-style: none;
    margin: 1.5rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    text-align: left;
}

.benefit-pill {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    animation: fadeIn 0.5s ease backwards;
}

.benefit-pill:nth-child(1) {
    animation-delay: 0.1s;
}

.benefit-pill:nth-child(2) {
    animation-delay: 0.2s;
}

.benefit-pill:nth-child(3) {
    animation-delay: 0.3s;
}

.benefit-pill:nth-child(4) {
    animation-delay: 0.4s;
}

.benefit-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(88, 101, 242, 0.2);
    border: 1px solid rgba(88, 101, 242, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5865f2;
    font-size: 1rem;
}

.benefit-pill strong {
    display: block;
    font-size: 0.88rem;
    color: #fff;
    margin-bottom: 0.1rem;
}

.benefit-pill span {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Pulsing CTA button */
.btn-discord-join {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #5865f2;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 24px rgba(88, 101, 242, 0.5);
    margin: 1.5rem 1.5rem 0;
    position: relative;
    overflow: visible;
    width: calc(100% - 3rem);
}

.btn-discord-join:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(88, 101, 242, 0.7);
    background: #4752c4;
    color: #fff;
}

/* Expanding pulse ring */
.btn-pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    border: 2px solid #5865f2;
    animation: pulseRing 2s ease-out infinite;
    pointer-events: none;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.12);
        opacity: 0;
    }
}

/* Social proof */
.discord-social-proof {
    color: #6b7280;
    font-size: 0.82rem;
    margin: 0.85rem 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.discord-social-proof i {
    color: #2ed573;
}

.discord-social-proof strong {
    color: #d1fae5;
}

.modal-note {
    font-size: 0.7rem !important;
    color: #374151 !important;
    margin: 0.75rem 1.5rem 2rem !important;
}