/* =========================================================
   Iconic IL — Professional Dark Design System
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Assistant:wght@300;400;500;600;700;800&display=swap');

* {
    font-family: 'Assistant', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #050505;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 15% 70%, rgba(29, 78, 216, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    color: #e2e8f0;
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}





/* Top ambient glow - subtle blue wash */
body::after {
    content: '';
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Ambient Glows (refined) ===== */
.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: rgba(37, 99, 235, .12);
    top: -80px;
    right: 8%;
    animation: float1 20s ease-in-out infinite alternate;
}

.glow-2 {
    width: 350px;
    height: 350px;
    background: rgba(37, 99, 235, .08);
    bottom: -80px;
    left: 2%;
    animation: float2 22s ease-in-out infinite alternate;
}

@keyframes float1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-30px, 30px) scale(1.05);
    }
}

@keyframes float2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -30px) scale(1.05);
    }
}

main,
nav {
    position: relative;
    z-index: 10;
}

/* ===== Navbar (Clean Professional) ===== */
.site-nav {
    background: rgba(5, 5, 5, 0.25);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    color: #71717a;
    transition: color .25s ease;
    font-size: 0.9rem;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: #3b82f6;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 100%;
    height: 2px;
    background: #3b82f6;
    border-radius: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width .25s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== Mobile Navigation Side Drawer (Slide in from Right) ===== */
@media (max-width: 767px) {
    nav.mobile-menu-open,
    nav:has(#mobile-menu.open) {
        z-index: 9999 !important;
    }

    #mobile-menu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 300px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        background: #09090b !important;
        color: #ffffff !important;
        border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-top: none !important;
        z-index: 10000 !important;
        transform: translateX(100%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        box-shadow: -15px 0 35px rgba(0, 0, 0, 0.9) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        padding: 2rem 1.5rem !important;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease !important;
    }

    #mobile-menu.open {
        transform: translateX(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    #mobile-menu .nav-link {
        color: #f4f4f5 !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        padding: 0.5rem 0 !important;
    }

    #mobile-menu .nav-link.active {
        color: #60a5fa !important;
    }

    #mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        z-index: 9998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }

    #mobile-menu-backdrop.open {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ===== Buttons ===== */
.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    transition: all .2s ease;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: #3b82f6;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .12);
    transition: all .2s ease;
    color: #a1a1aa;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, .25);
    color: #ffffff;
    background: rgba(255, 255, 255, .04);
    transform: translateY(-1px);
}

/* ===== Glass Cards ===== */
.card,
.glass-card,
.status-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.card:hover,
.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.card-icon {
    background: rgba(37, 99, 235, .08);
    border: 1px solid rgba(37, 99, 235, .2);
}

/* ===== Shop Tabs ===== */
.shop-tab {
    color: #71717a;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.shop-tab.active {
    background: rgba(37, 99, 235, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* ===== Category Badge ===== */
.category-badge {
    background: #2563eb;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .3rem .75rem;
    border-radius: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ===== Server Status Indicators ===== */
.status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, .6);
    position: relative;
    display: inline-block;
}

.status::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(16, 185, 129, .4);
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    75%,
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    padding: .3rem .8rem;
    border-radius: 6px;
    font-size: .85rem;
}

.status-pill.online {
    background: rgba(16, 185, 129, .1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, .2);
}

.status-pill.offline {
    background: rgba(239, 68, 68, .1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, .2);
}

/* ===== Progress Bar ===== */
.progress-bar-bg {
    background: rgba(255, 255, 255, 0.04);
    height: 10px;
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.progress-bar-fill {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    height: 100%;
    width: 0%;
    border-radius: 6px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}



/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

.reveal-delay-6 {
    transition-delay: 0.6s;
}

/* Scale variant */
.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Legacy support */
.fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp .6s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.d1 {
    animation-delay: .1s;
}

.d2 {
    animation-delay: .2s;
}

.d3 {
    animation-delay: .3s;
}

.d4 {
    animation-delay: .4s;
}

.d5 {
    animation-delay: .5s;
}

/* ===== Page Header ===== */
.page-header {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

/* ===== Modals ===== */
.modal-panel {
    background: #111113;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

/* ===== Floating Dock Footer ===== */
.site-footer {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.65rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.site-footer:hover {
    border-color: rgba(59, 130, 246, 0.15);
}

.footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-icon img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    transition: transform 0.3s ease;
}

.footer-icon:hover {
    transform: translateY(-6px) scale(1.1);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
    z-index: 10;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
}

.hero-vi-style {
    background: transparent;
}

.hero-bg-anim {
    background: radial-gradient(circle at 50% 50%, rgba(29, 78, 216, 0.2) 0%, transparent 50%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
    animation: pulse-slow 8s infinite alternate;
}

.vi-gradient-text {
    background: linear-gradient(180deg, #ffffff 0%, #60a5fa 30%, #1d4ed8 70%, #1e3a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.5));
}

.btn-vi {
    background: #2563eb;
    color: white;
    border: none;
    transition: all .2s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    text-decoration: none;
    cursor: pointer;
    border-radius: 8px;
}

.btn-vi:hover {
    background: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(9, 9, 11, 0.3) 0%,
            rgba(9, 9, 11, 0.6) 40%,
            rgba(9, 9, 11, 0.95) 80%,
            #09090b 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.4;
    filter: saturate(0.7);
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* ===== Section Divider ===== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    width: 20px;
    height: 2px;
    background: #3b82f6;
    border-radius: 2px;
}

/* ===== Feature Cards (Home) ===== */
.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2563eb, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-3px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

/* ===== Stats Bar ===== */
.stats-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: #52525b;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
}

/* ===== Rules Cards ===== */
.rule-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.3s ease;
}

.rule-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
}

.rule-card h2 {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rule-card h2::before {
    content: '';
    width: 3px;
    height: 16px;
    background: #2563eb;
    border-radius: 2px;
    flex-shrink: 0;
}

.rule-card p {
    color: #71717a;
    font-size: 0.875rem;
    line-height: 1.7;
}

/* ===== Utilities & Grid ===== */
.max-w-6xl,
.max-w-4xl {
    max-width: 100% !important;
    padding-left: 3rem;
    padding-right: 3rem;
}

@media (max-width: 768px) {

    .max-w-6xl,
    .max-w-4xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .site-footer {
        bottom: 16px;
        padding: 0.5rem 1rem;
        gap: 0.8rem;
    }

    .footer-icon,
    .footer-icon img {
        width: 34px;
        height: 34px;
    }

    .stats-bar {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }
}

/* ===== Shop Product Grid ===== */
#products-grid .card,
#products-grid .glass-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#products-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

#modal .modal-panel {
    max-width: 960px;
}

#modal .modal-panel img#modalImage {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #09090b;
}

/* Modal Animations */
.modal-overlay {
    animation: fadeIn 0.4s ease-out forwards;
}

.modal-overlay.closing {
    animation: fadeOut 0.3s ease-in forwards;
}

.modal-panel-anim {
    animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-panel-anim.closing {
    animation: modalSlideDown 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        backdrop-filter: blur(8px);
    }

    to {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalSlideDown {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #09090b;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== Selection ===== */
::selection {
    background: rgba(37, 99, 235, 0.3);
    color: #fff;
}

/* ===== Text Utilities ===== */
.text-gradient {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Link Reset ===== */
a {
    text-decoration: none;
}

/* ===== Zero-flash Auth Header ===== */
html.user-is-logged-in a[href="/auth/discord"],
html.user-is-logged-in a[href^="/auth/discord?"],
html.user-is-logged-in .discord-login-btn {
    display: none !important;
}

/* ===== Hero Sequential Cinematic Entrance Animation ===== */
.hero-word-animated {
    display: inline-block;
    opacity: 0;
    transform: translateY(24px) scale(0.95);
    filter: blur(10px);
    -webkit-filter: blur(10px);
    animation: heroWordSequence 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-word-welcome {
    animation-delay: 0.2s;
    margin-right: 0.2em;
}

.hero-word-to {
    animation-delay: 0.5s;
    margin-right: 0.2em;
}

.hero-word-iconic {
    animation-delay: 0.8s;
}

.hero-reveal-rest {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
    -webkit-filter: blur(6px);
    animation: heroWordSequence 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.1s;
}

#cart-float-btn {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
    -webkit-filter: blur(6px);
    animation: heroWordSequence 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.1s;
}

/* If intro animation already played in this session, show hero content immediately with zero delay */
html.intro-already-played .hero-word-animated,
html.intro-already-played .hero-reveal-rest,
html.intro-already-played #cart-float-btn {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    animation: none !important;
    transition: none !important;
}

@keyframes heroWordSequence {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
        filter: blur(12px);
        -webkit-filter: blur(12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: none;
        -webkit-filter: none;
    }
}

/* ===== Dashboard Specific Styles ===== */
.dashboard-tab-btn.active {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa !important;
    border-bottom: 2px solid #3b82f6;
}

.punishment-filter-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.job-select-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}