/* MOONWEEL — LUNAR OVERDRIVE THEME */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,400;0,600;0,700;0,900;1,700&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');
@import url('mobile1.css');

:root {
    --bg-void: #020205;
    --bg-panel: #07070f;
    --bg-card: rgba(8, 8, 18, 0.92);
    --bg-card-border: rgba(184, 255, 0, 0.14);
    --accent-lime: #b8ff00;
    --accent-violet: #8b5cf6;
    --accent-magenta: #ff2d95;
    --accent-cyan: #00f5ff;
    --accent-blue: #4facfe;
    --accent-purple: #8b5cf6;
    --accent-gold: #ffd000;
    --accent-pink: #ff2d95;
    --text-main: #f4f4ff;
    --text-muted: #8b93a8;
    --radius-lg: 4px;
    --radius-md: 3px;
    --clip: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    --clip-sm: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, button, input, select, textarea {
    font-family: 'IBM Plex Mono', monospace;
}

h1, h2, h3, h4, .logo-text, .hero-title, .section-title, .vip-name, .portal-title {
    font-family: 'Chakra Petch', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body {
    background: var(--bg-void);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* FX layers */
.mw-scanlines {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.16) 2px,
        rgba(0, 0, 0, 0.16) 4px
    );
    opacity: 0.35;
}

.mw-vignette {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9997;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
}

.mw-noise {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9996;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mw-grid-floor {
    pointer-events: none;
    position: fixed;
    bottom: -20%;
    left: -50%;
    width: 200%;
    height: 60%;
    z-index: -2;
    background:
        linear-gradient(transparent 0%, var(--bg-void) 85%),
        repeating-linear-gradient(90deg, rgba(139, 92, 246, 0.08) 0 1px, transparent 1px 48px),
        repeating-linear-gradient(0deg, rgba(184, 255, 0, 0.06) 0 1px, transparent 1px 48px);
    transform: perspective(500px) rotateX(72deg);
    animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
    from { background-position: 0 0, 0 0, 0 0; }
    to { background-position: 0 0, 0 48px, 48px 0; }
}

.mw-sound-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    width: 46px;
    height: 46px;
    clip-path: var(--clip-sm);
    border: 1px solid rgba(184, 255, 0, 0.35);
    background: rgba(8, 8, 18, 0.95);
    color: var(--accent-lime);
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.mw-sound-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 0 24px rgba(184, 255, 0, 0.35);
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -3;
    opacity: 0.18;
    pointer-events: none;
    animation: orbFloat 12s ease-in-out infinite alternate;
}

.glow-1 { top: -80px; left: -80px; width: 420px; height: 420px; background: var(--accent-violet); }
.glow-2 { top: 35%; right: -120px; width: 480px; height: 480px; background: var(--accent-magenta); animation-delay: -4s; }
.glow-3 { bottom: -80px; left: 25%; width: 400px; height: 400px; background: var(--accent-lime); animation-delay: -8s; }

@keyframes orbFloat {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(20px, -30px) scale(1.08); }
}

/* NAV */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 110;
    background: rgba(2, 2, 5, 0.88);
    border-bottom: 1px solid rgba(184, 255, 0, 0.12);
    padding: 12px 0;
    backdrop-filter: blur(8px);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-lime), var(--accent-magenta), transparent);
    animation: navPulse 3s ease-in-out infinite;
}

@keyframes navPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    font-size: 24px;
    color: var(--accent-lime);
    filter: drop-shadow(0 0 8px var(--accent-lime));
    animation: moonPulse 2s ease-in-out infinite;
}

@keyframes moonPulse {
    0%, 100% { filter: drop-shadow(0 0 6px var(--accent-lime)); }
    50% { filter: drop-shadow(0 0 16px var(--accent-lime)); }
}

.logo-text {
    font-weight: 900;
    font-size: 20px;
}

.badge-season {
    font-size: 10px;
    background: var(--accent-lime);
    color: #000;
    font-weight: 900;
    padding: 2px 7px;
    clip-path: var(--clip-sm);
    margin-left: 6px;
    vertical-align: middle;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    flex: 1;
    justify-content: flex-end;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    clip-path: var(--clip-sm);
    border: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-lime);
    border-color: rgba(184, 255, 0, 0.35);
    background: rgba(184, 255, 0, 0.06);
    transform: translateY(-1px);
}

.discord-btn {
    background: rgba(88, 101, 242, 0.12) !important;
    color: #7289ff !important;
    border-color: rgba(88, 101, 242, 0.35) !important;
}

.discord-btn:hover {
    background: #5865F2 !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
}

.nav-profile-slot { flex-shrink: 0; position: relative; z-index: 150; }
.nav-profile-slot:empty { display: none; }

.nav-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 5px 12px 5px 5px;
    clip-path: var(--clip-sm);
    border: 1px solid rgba(184, 255, 0, 0.3);
    background: rgba(8, 8, 18, 0.95);
    color: var(--text-main);
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
}

.nav-profile-btn:hover, .nav-profile-btn[aria-expanded="true"] {
    border-color: var(--accent-lime);
    box-shadow: 0 0 16px rgba(184, 255, 0, 0.2);
}

.nav-profile-avatar {
    width: 32px;
    height: 32px;
    clip-path: var(--clip-sm);
    image-rendering: pixelated;
    border: 1px solid var(--accent-lime);
}

.nav-profile-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-profile-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.nav-rank-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    color: var(--rank-color, var(--accent-gold));
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-profile-caret { font-size: 9px; transition: transform 0.2s; }
.nav-profile-btn[aria-expanded="true"] .nav-profile-caret { transform: rotate(180deg); }

.nav-profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    padding: 6px;
    clip-path: var(--clip);
    border: 1px solid rgba(184, 255, 0, 0.2);
    background: rgba(4, 4, 10, 0.98);
    z-index: 260;
}

.nav-profile-menu[hidden] { display: none !important; }

.nav-profile-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-main);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.nav-profile-item:hover { background: rgba(184, 255, 0, 0.08); color: var(--accent-lime); }
.nav-profile-logout { color: var(--accent-magenta); }

/* HERO */
.hero-section {
    padding: 160px 20px 80px;
    text-align: center;
    max-width: 960px;
    margin: 0 auto;
}

.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(184, 255, 0, 0.35);
    color: var(--accent-lime);
    padding: 8px 16px;
    clip-path: var(--clip-sm);
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 20px;
    animation: badgeFlicker 4s step-end infinite;
}

@keyframes badgeFlicker {
    0%, 95%, 100% { opacity: 1; }
    96% { opacity: 0.7; }
    97% { opacity: 1; }
    98% { opacity: 0.5; }
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-lime);
    box-shadow: 0 0 10px var(--accent-lime);
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
    font-size: clamp(42px, 8vw, 76px);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 16px;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
    animation: titleGlitch 8s infinite;
}

@keyframes titleGlitch {
    0%, 92%, 100% { transform: none; }
    93% { transform: skewX(-2deg) translateX(-2px); color: var(--accent-lime); }
    94% { transform: skewX(2deg) translateX(2px); color: var(--accent-magenta); }
    95% { transform: none; }
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-lime), var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradShift 4s linear infinite;
}

@keyframes gradShift {
    to { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 640px;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* BUTTONS */
.btn {
    padding: 14px 24px;
    clip-path: var(--clip-sm);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.4s;
}

.btn:hover::after { transform: translateX(120%); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-lime) 0%, #7acc00 100%);
    color: #000;
    border-color: var(--accent-lime);
    box-shadow: 0 0 24px rgba(184, 255, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 36px rgba(184, 255, 0, 0.45);
}

.copy-badge {
    background: rgba(0, 0, 0, 0.35);
    padding: 3px 8px;
    font-size: 10px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover { border-color: var(--accent-lime); color: var(--accent-lime); }

/* SECTIONS */
.vip-section, .features-section {
    max-width: 1200px;
    margin: 60px auto 80px;
    padding: 0 20px;
}

.section-header { text-align: center; margin-bottom: 40px; }

.section-tag {
    color: var(--accent-lime);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.2em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    margin: 10px 0;
}

.section-desc { color: var(--text-muted); font-size: 14px; }

.vip-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.vip-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    clip-path: var(--clip);
    padding: 32px 24px;
    position: relative;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.vip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-lime), var(--accent-violet));
    opacity: 0;
    transition: opacity 0.25s;
}

.vip-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(184, 255, 0, 0.4);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.15), inset 0 0 30px rgba(184, 255, 0, 0.03);
}

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

.vip-card.featured {
    border-color: rgba(184, 255, 0, 0.45);
    box-shadow: 0 0 30px rgba(184, 255, 0, 0.12);
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    clip-path: var(--clip-sm);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-muted);
}

.card-badge.highlight {
    background: var(--accent-lime);
    color: #000;
    border-color: var(--accent-lime);
}

.card-badge.sponsor-badge {
    background: var(--accent-magenta);
    color: #fff;
    border-color: var(--accent-magenta);
}

.card-icon { font-size: 32px; color: var(--accent-lime); margin-bottom: 16px; }
.vip-name { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.vip-price { font-size: 36px; font-weight: 900; margin-bottom: 20px; }
.vip-price .period { font-size: 12px; color: var(--text-muted); font-weight: 600; }

.vip-features { list-style: none; margin-bottom: 24px; flex-grow: 1; }
.vip-features li {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.vip-features li i { color: var(--accent-lime); }

.btn-buy {
    width: 100%;
    padding: 13px;
    clip-path: var(--clip-sm);
    border: 1px solid rgba(184, 255, 0, 0.3);
    background: rgba(184, 255, 0, 0.06);
    color: var(--accent-lime);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-buy:hover {
    background: var(--accent-lime);
    color: #000;
    box-shadow: 0 0 24px rgba(184, 255, 0, 0.4);
}

.featured-btn { background: var(--accent-lime); color: #000; border-color: var(--accent-lime); }
.sponsor-btn { background: var(--accent-magenta); color: #fff; border-color: var(--accent-magenta); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    clip-path: var(--clip);
    padding: 28px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.12);
}

.feature-icon { font-size: 28px; color: var(--accent-violet); margin-bottom: 12px; }
.feature-box h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.feature-box p { color: var(--text-muted); font-size: 13px; line-height: 1.55; }

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-content {
    background: var(--bg-panel);
    border: 1px solid rgba(184, 255, 0, 0.2);
    clip-path: var(--clip);
    padding: 32px;
    max-width: 460px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-header { text-align: center; margin-bottom: 20px; }
.modal-icon { font-size: 36px; color: var(--accent-lime); margin-bottom: 8px; }

.input-group { margin: 16px 0; text-align: left; }
.input-group label { display: block; font-size: 11px; font-weight: 700; margin-bottom: 6px; color: var(--text-muted); text-transform: uppercase; }
.input-group input {
    width: 100%;
    padding: 12px;
    clip-path: var(--clip-sm);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(184, 255, 0, 0.2);
    color: var(--text-main);
    font-family: inherit;
}

.btn-block { width: 100%; justify-content: center; }

.footer {
    border-top: 1px solid rgba(184, 255, 0, 0.1);
    padding: 28px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

.discount-banner {
    background: linear-gradient(90deg, #ff0844, var(--accent-magenta), var(--accent-violet));
    color: #fff;
    text-align: center;
    padding: 9px 14px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    position: relative;
    z-index: 101;
    animation: bannerSlide 6s linear infinite;
    background-size: 200% 100%;
}

@keyframes bannerSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.old-price { text-decoration: line-through; color: #ff6b8a; opacity: 0.7; font-size: 0.85em; margin-right: 6px; }
.discount-tag { background: var(--accent-magenta) !important; color: #fff !important; border: none !important; }

.mini-discount-tag {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--accent-magenta);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    padding: 3px 7px;
    clip-path: var(--clip-sm);
}

/* Mobile layout: see mobile1.css */
