:root {
    --bg-deep: #05050b;
    --bg-surface: #0a0a16;
    --glass-bg: rgba(10, 10, 24, 0.45);
    --glass-bg-strong: rgba(14, 14, 32, 0.82);
    --glass-border: rgba(0, 200, 255, 0.08);
    --glass-border-strong: rgba(0, 200, 255, 0.18);
    --neon-blue: #00c8ff;
    --neon-blue-deep: #0078d4;
    --neon-glow: 0 0 20px rgba(0, 200, 255, 0.25), 0 0 40px rgba(0, 200, 255, 0.08);
    --neon-glow-strong: 0 0 30px rgba(0, 200, 255, 0.45), 0 0 60px rgba(0, 200, 255, 0.15);
    --text-primary: #e2e2ec;
    --text-secondary: #a4a4b8;
    --text-muted: #6c6c84;
    --accent-green: #00eba4;
    --accent-red: #ff3366;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --font-mono: 'SF Mono', 'Cascadia Code', 'JetBrains Mono', 'Consolas', monospace;
    --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --inset-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.7);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: auto; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-sans); background: var(--bg-deep); color: var(--text-primary);
    min-height: 100vh; line-height: 1.5; overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 200, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 120, 212, 0.04) 0%, transparent 40%);
    background-attachment: fixed;
}

/* NAVBAR STRUCTURE */
.navbar {
    position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px; height: 64px; background: var(--glass-bg-strong); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border-strong);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.navbar-left { display: flex; align-items: center; gap: 20px; }
.navbar-brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.navbar-brand svg { width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgba(0,200,255,0.4)); }
.navbar-brand .brand-text { font-weight: 800; font-size: 1.3rem; letter-spacing: 0.05em; color: #fff; text-shadow: 0 0 10px rgba(0,200,255,0.3); }

.drawer-toggle {
    background: none; border: none; display: flex; flex-direction: column; justify-content: space-between;
    width: 22px; height: 16px; cursor: pointer; outline: none;
}
.drawer-toggle .bar { width: 100%; height: 2px; background-color: var(--neon-blue); border-radius: 2px; transition: 0.2s; filter: drop-shadow(0 0 4px var(--neon-blue)); }

/* SIDEBAR NAVIGATION DRAWER MODULE */
.sidebar-drawer-overlay { position: fixed; inset: 0; background: rgba(2,2,5,0.6); backdrop-filter: blur(4px); z-index: 140; display: none; opacity: 0; transition: opacity 0.25s ease; }
.sidebar-drawer-overlay.open { display: block; opacity: 1; }
.sidebar-drawer {
    position: fixed; top: 0; left: -280px; width: 280px; height: 100vh; background: var(--glass-bg-strong);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border-right: 1px solid var(--glass-border-strong);
    z-index: 150; padding: 32px 24px; display: flex; flex-direction: column; gap: 24px;
    box-shadow: 20px 0 40px rgba(0,0,0,0.5); transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}
.sidebar-drawer.open { left: 0; }
.drawer-close { align-self: flex-end; background: none; border: none; color: var(--text-muted); font-size: 1.8rem; cursor: pointer; line-height: 1; }
.drawer-close:hover { color: var(--neon-blue); }
.drawer-header { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--neon-blue); font-weight: 700; border-bottom: 1px solid rgba(0,200,255,0.1); padding-bottom: 8px; flex-shrink: 0; }
.drawer-menu { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.drawer-item { padding: 12px 16px; border-radius: var(--radius-sm); color: var(--text-secondary); font-weight: 600; cursor: pointer; transition: 0.15s; }
.drawer-item:hover { color: #fff; background: rgba(0,200,255,0.05); }
.drawer-item.active { color: #fff; background: linear-gradient(90deg, rgba(0,120,212,0.3) 0%, rgba(0,200,255,0.1) 100%); }

.app-page { display: none; }
.app-page.active { display: block; animation: pageFadeIn 0.2s ease-out; }
@keyframes pageFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.main-container { max-width: 1240px; margin: 0 auto; padding: 40px 24px; min-height: calc(100vh - 64px); }
.view { display: none; }
.view.active { display: block; }

.edition-hero h1 { font-size: 2.8rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.glow-text { color: #fff; text-shadow: 0 0 12px rgba(0, 200, 255, 0.75), 0 0 32px rgba(0, 200, 255, 0.4); position: relative; }
.edition-hero .subtitle { font-size: 1.1rem; color: var(--text-secondary); }

.edition-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 840px; margin: 48px auto 0 auto; }

.edition-card {
    background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl); padding: 44px 32px; cursor: pointer; text-align: center; box-shadow: var(--card-shadow); transition: 0.15s;
}
.edition-card:hover { border-color: var(--glass-border-strong); box-shadow: var(--neon-glow); background: rgba(0, 200, 255, 0.02); }

.icon-wrap { width: 64px; height: 64px; margin: 0 auto 20px; background-repeat: no-repeat; background-position: center; background-size: contain; filter: drop-shadow(0 0 10px rgba(0,200,255,0.3)); }
.img-container-java { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2300c8ff" stroke-width="1.5"><path stroke-linecap="round" d="M6 18c0 2 3 3 6 3s6-1 6-3M3 11c0 2.5 4 4 9 4s9-1.5 9-4M4 6c0 2 3.5 3 8 3s8-1 8-3"/><path d="M21 6v12c0 2.5-4 4-9 4s-9-1.5-9-4V6c0-2.5 4-4 9-4s9 1.5 9 4Z"/></svg>'); }
.img-container-bedrock { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2300c8ff" stroke-width="1.5"><path stroke-linejoin="round" d="M12 2L2 7l10 5 10-5-10-5Z"/><path stroke-linejoin="round" d="M2 17l10 5 10-5M2 12l10 5 10-5"/></svg>'); }
.panel-header-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.img-container-tools {
    width: 22px;
    height: 22px;
    margin: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2300c8ff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="4" width="10" height="6" rx="1" /><path d="M10 10 L10 18" /><rect x="8" y="16" width="4" height="2" rx="0.5" /></svg>');
    filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.7)) drop-shadow(0 0 12px rgba(0, 200, 255, 0.3));
}
.edition-card h2 { font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.edition-card .edition-desc { font-size: 0.9rem; color: var(--text-secondary); }

.config-layout { display: grid; grid-template-columns: 1fr 390px; gap: 32px; align-items: start; }
.config-left h2 { font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.section-label { font-size: 0.8rem; color: var(--neon-blue); text-transform: uppercase; letter-spacing: 0.1rem; font-weight: 700; margin-bottom: 12px; }
.tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.tier-card {
    background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 24px; cursor: pointer; box-shadow: var(--card-shadow); transition: 0.1s;
}
.tier-card:hover { border-color: rgba(0, 200, 255, 0.3); box-shadow: var(--neon-glow); }
.tier-card.selected { border-color: var(--neon-blue); box-shadow: var(--neon-glow-strong); background: rgba(0, 200, 255, 0.05); }
.tier-name { font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: 2px; }
.tier-players { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 12px; }
.tier-spec { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 12px; }
.tier-price { font-weight: 800; font-size: 1.4rem; color: var(--neon-blue); }
.tier-price span { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }

.config-right {
    position: sticky; top: 96px; background: var(--glass-bg-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-strong); border-radius: var(--radius-xl); padding: 30px 24px; box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 20px;
}
.config-right h3 { font-size: 1.2rem; font-weight: 700; color: #fff; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; }
.toggle-label { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.toggle-price { font-size: 0.8rem; color: var(--text-secondary); font-family: var(--font-mono); }

.toggle-switch { position: relative; width: 48px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: #121226; border-radius: 30px; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.1); transition: 0.15s; }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: var(--text-secondary); border-radius: 50%; transition: 0.15s; }
.toggle-switch input:checked + .toggle-slider { background: rgba(0, 200, 255, 0.2); border-color: var(--neon-blue); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); background: var(--neon-blue); box-shadow: 0 0 8px var(--neon-blue); }
.toggle-switch input:disabled + .toggle-slider { opacity: 0.4; cursor: not-allowed; }

/* FORM ELEMENTS */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }

.form-input {
    padding: 12px 16px; border-radius: var(--radius-sm); background: #040409; border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff; font-size: 0.95rem; outline: none; box-shadow: var(--inset-shadow); font-family: var(--font-sans); transition: border-color 0.15s, box-shadow 0.15s;
    appearance: auto;
}
.form-input:focus { border-color: var(--neon-blue); }
.form-input.error { border-color: var(--accent-red); box-shadow: 0 0 10px rgba(255, 51, 102, 0.15), var(--inset-shadow); }
.form-input.valid { border-color: var(--accent-green); }

/* Fix for select dropdown arrow */
select.form-input {
    appearance: auto;
    -webkit-appearance: auto;
    background: #040409;
    cursor: pointer;
}
select.form-input option {
    background: #0a0a16;
    color: #fff;
}

.summary-box { background: rgba(0, 0, 0, 0.4); border-radius: var(--radius-md); padding: 20px; border: 1px solid var(--glass-border); }
.summary-row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-secondary); padding: 6px 0; }
.summary-row.total { font-weight: 700; font-size: 1.2rem; color: #fff; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 10px; padding-top: 14px; }
.total-amount { color: var(--neon-blue); font-family: var(--font-mono); text-shadow: 0 0 10px rgba(0, 200, 255, 0.4); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: var(--radius-md); font-weight: 700;
    font-size: 0.95rem; letter-spacing: 0.02em; cursor: pointer; border: none; font-family: var(--font-sans); transition: 0.15s;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none !important; background: var(--glass-bg) !important; color: var(--text-muted) !important; }
.btn-primary { background: linear-gradient(135deg, #0078d4, #00c8ff); color: #fff; box-shadow: 0 4px 20px rgba(0, 200, 255, 0.25); width: 100%; }
.btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, #0084ea, #26d4ff); box-shadow: 0 6px 24px rgba(0, 200, 255, 0.4); }
.btn-outline { background: transparent; border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; }
.btn-outline:hover { border-color: var(--neon-blue); box-shadow: var(--neon-glow); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.mb-3 { margin-bottom: 16px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.pt-2 { padding-top: 12px; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.font-mono { font-family: var(--font-mono); }
.uppercase { text-transform: uppercase; }
.hidden { display: none !important; }

/* ===== FAQ SECTION ===== */
.faq-section {
    max-width: 840px;
    margin: 60px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border-strong);
}

.faq-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 28px;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.2);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.1);
}

.faq-question {
    list-style: none;
    padding: 18px 24px;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.15s;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: "▸";
    font-size: 1.2rem;
    color: var(--neon-blue);
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(90deg);
}

.faq-question:hover {
    color: #fff;
}

.faq-answer {
    padding: 0 24px 20px 24px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-answer p {
    margin-bottom: 10px;
}
.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ===== ABOUT PAGE STYLES ===== */
.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.about-hero {
    text-align: center;
    margin-bottom: 48px;
}

.about-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
    box-shadow: var(--card-shadow);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.about-card:hover {
    border-color: var(--glass-border-strong);
    box-shadow: var(--neon-glow);
}

.about-card.text-center h2 {
    text-align: center;
}

.about-card.text-center p {
    text-align: center;
}

.about-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.15);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
    text-align: justify;
}

.about-card p:last-child {
    margin-bottom: 0;
}

.about-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0;
    margin-top: 8px;
}

.about-features-grid .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all 0.25s ease;
    cursor: default;
}

.about-features-grid .feature-item:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.15), inset 0 0 30px rgba(0, 200, 255, 0.03);
    background: rgba(0, 200, 255, 0.04);
    transform: translateY(-2px);
}

.about-features .feature-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-features li strong {
    color: #fff;
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
}

.about-features li p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: justify;
}

.about-discord-btn {
    margin-top: 16px;
    display: inline-block;
    text-decoration: none;
    max-width: 300px;
}

/* ===== ALLOCATION BREAKDOWN STYLES ===== */
.allocation-breakdown {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
}

.allocation-breakdown span:last-child {
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .config-layout { grid-template-columns: 1fr; }
    .config-right { position: static; }
}

@media (max-width: 720px) {
    .navbar { padding: 0 16px; }
    .navbar-left { gap: 10px; }
    .navbar-brand { gap: 6px; }
    .navbar-brand svg { width: 28px; height: 28px; }
    .navbar-brand .brand-text { font-size: 1.1rem; }

    .sidebar-drawer { padding: 16px 20px; justify-content: flex-start; gap: 16px; }
    .drawer-close { font-size: 1.5rem; margin-bottom: -10px; }
    .drawer-menu { gap: 4px; }
    .drawer-item { padding: 10px 14px; font-size: 0.9rem; }

    .edition-cards { grid-template-columns: 1fr; max-width: 440px; margin-top: 36px; }
    .edition-hero h1 { font-size: 2.2rem; }
    .tier-grid { grid-template-columns: 1fr; }

    .faq-section { margin-top: 40px; }
    .faq-heading { font-size: 1.4rem; }

    .about-container { padding: 10px; }
    .about-hero h1 { font-size: 2rem; }
    .about-card { padding: 24px 20px; }
    .about-card h2 { font-size: 1.2rem; }
    .about-features { grid-template-columns: 1fr; }
    .about-features-grid .feature-item { padding: 12px 16px; }
    .about-features .feature-icon { font-size: 1.4rem; }
}