/* =========================================================================
   ZenithZone Roleplay - Next-Gen Gaming Portal Stylesheet (v3.2)
   ========================================================================= */

:root {
    --bg-base: #060913;
    --bg-surface: rgba(13, 19, 36, 0.72);
    --bg-surface-elevated: rgba(20, 29, 56, 0.88);
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-hover: rgba(24, 35, 68, 0.92);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(56, 189, 248, 0.35);
    --border-purple: rgba(168, 85, 247, 0.35);

    --accent-blue: #38bdf8;
    --accent-cyan: #06b6d4;
    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --discord-brand: #5865F2;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --radius-xl: 20px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(6, 9, 19, 0.92) 0%, rgba(6, 9, 19, 1) 100%);
    background-size: 32px 32px, 100% 100%;
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    position: relative;
}

/* Background Ambient Lighting */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.32;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(99, 102, 241, 0.08) 70%);
    top: -120px;
    left: -80px;
}

.glow-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.32) 0%, rgba(6, 182, 212, 0.06) 70%);
    bottom: -100px;
    right: -80px;
}

/* Portal Wrapper */
.portal-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =========================================================================
   Top Portal Header
   ========================================================================= */
.portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: var(--bg-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-subtle);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #0284c7, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-titles h1 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.accent-text {
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.74rem;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.live-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: pulseDot 1.6s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* 1-Click F8 Connect Button */
.btn-connect-f8 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-connect-f8:hover {
    border-color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

.connect-label {
    font-weight: 800;
    color: var(--accent-blue);
}

.btn-connect-f8 code {
    font-family: var(--font-mono);
    color: #e2e8f0;
    font-size: 0.76rem;
}

.copy-icon {
    color: var(--text-muted);
    font-size: 0.78rem;
    transition: color 0.2s;
}

.btn-connect-f8:hover .copy-icon {
    color: #fff;
}

.btn-header-discord {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #5865F2, #4752c4);
    border: 1px solid rgba(129, 140, 248, 0.4);
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
}

.btn-header-discord:hover {
    background: linear-gradient(135deg, #6c78ff, #5865F2);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.5);
}

/* =========================================================================
   Compact Hero Banner & Key Stats Strip
   ========================================================================= */
.portal-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(20, 29, 56, 0.75) 0%, rgba(13, 19, 36, 0.9) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-subtle);
    border-top: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-xl);
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.portal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.7), transparent);
}

.hero-content {
    flex: 1;
    max-width: 620px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Stats Bar */
.hero-stats-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-box {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    min-width: 100px;
    text-align: center;
    transition: all 0.25s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

.stat-box-val {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
}

.stat-box-lbl {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

.stat-box.highlight-stat {
    border-color: rgba(168, 85, 247, 0.35);
    background: rgba(168, 85, 247, 0.08);
}

.stat-box.highlight-stat .stat-box-val {
    color: #c084fc;
}

/* =========================================================================
   Segmented Portal Navigation Tabs (The Zero-Scroll Centerpiece)
   ========================================================================= */
.portal-nav-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: rgba(13, 19, 36, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.portal-nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    position: relative;
}

.nav-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-tab.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(99, 102, 241, 0.25) 100%);
    border: 1px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.2);
}

.tab-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.nav-tab.active .tab-badge {
    background: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

/* =========================================================================
   Tab Panes (Animated Switching)
   ========================================================================= */
.portal-content {
    min-height: 440px;
}

.tab-pane {
    display: none;
    animation: paneFadeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-pane.active {
    display: block;
}

@keyframes paneFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================================
   TAB 1: Overview & Alpha
   ========================================================================= */
.overview-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.portal-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 24px 26px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stage-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    text-transform: uppercase;
}

.sync-time-tag {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Phase Hero Box (Replaces the broken donut circle) */
.phase-hero-box {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phase-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.phase-titles {
    flex: 1;
}

.phase-pre-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-blue);
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.phase-titles h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.25;
}

.phase-percentage-badge {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.25));
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: var(--radius-md);
    padding: 6px 14px;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.15);
}

.percent-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
}

.percent-sub {
    font-size: 0.62rem;
    text-transform: uppercase;
    color: var(--accent-blue);
    font-weight: 800;
    letter-spacing: 0.06em;
}

/* Glowing Progress Bar */
.phase-bar-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.phase-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0284c7, #38bdf8, #818cf8);
    border-radius: 6px;
    position: relative;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.phase-bar-glow {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: rgba(255, 255, 255, 0.8);
    filter: blur(4px);
    border-radius: 50%;
}

.phase-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 4-Phase Stepper */
.phase-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 18px;
}

.step-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    position: relative;
}

.step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

.step-col.completed .step-dot {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.5);
    color: #34d399;
}

.step-col.current .step-dot {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.6);
    color: var(--accent-blue);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.step-title {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--text-primary);
}

.step-lbl {
    font-size: 0.62rem;
    color: var(--text-muted);
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 8px;
    margin-bottom: 16px;
}

.step-line.completed {
    background: #10b981;
}

.step-line.active {
    background: linear-gradient(90deg, #10b981, var(--accent-blue));
}

.features-bullet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.feat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Alpha Card */
.alpha-card {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.6) 0%, rgba(15, 23, 42, 0.85) 100%);
    border-color: var(--border-purple);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 30px rgba(168, 85, 247, 0.1);
}

.alpha-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.alpha-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #c084fc;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    text-transform: uppercase;
}

.slot-limit-tag {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.alpha-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.alpha-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.alpha-desc code {
    background: rgba(88, 101, 242, 0.2);
    border: 1px solid rgba(88, 101, 242, 0.4);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    color: #c7d2fe;
    font-size: 0.8rem;
}

.slot-meter-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slot-meter-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
}

.slot-meter-labels .lbl {
    color: var(--text-secondary);
    font-weight: 700;
}

.slot-meter-labels .val {
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.slot-meter-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.slot-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #38bdf8);
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slot-meter-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.status-ok {
    color: #34d399;
    font-weight: 700;
}

.alpha-actions {
    display: flex;
    gap: 10px;
}

.btn-primary-glow {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    background: linear-gradient(135deg, #5865F2, #4752c4);
    border: 1px solid rgba(129, 140, 248, 0.4);
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary-glow:hover {
    background: linear-gradient(135deg, #6c78ff, #5865F2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.5);
}

.btn-secondary-flat {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-secondary-flat:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* =========================================================================
   TAB 2: Systeme & Module
   ========================================================================= */
.modules-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.filter-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(99, 102, 241, 0.35));
    border-color: rgba(56, 189, 248, 0.5);
    color: #fff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 260px;
}

.search-box i {
    position: absolute;
    left: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.8rem;
    outline: none;
    transition: all 0.2s;
}

.search-box input:focus {
    border-color: var(--accent-blue);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.modules-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.module-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.module-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.module-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.module-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.module-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 1px solid;
    flex-shrink: 0;
}

.module-info h3 {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.module-info p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 3px;
    line-height: 1.45;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-transform: uppercase;
}

.badge-emerald {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.badge-blue {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--accent-blue);
}

.badge-purple {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #c084fc;
}

.module-bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.progress-meta strong {
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.progress-track {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   TAB 3: Live-Changelog
   ========================================================================= */
.changelog-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 22px 26px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.changelog-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.changelog-panel-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
}

.panel-sub {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.panel-counter-badge {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.changelog-scrollable {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 540px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.3) rgba(255, 255, 255, 0.02);
}

.changelog-scrollable::-webkit-scrollbar {
    width: 6px;
}

.changelog-scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.changelog-scrollable::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 4px;
}

.changelog-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.5);
}

.changelog-item {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.2s ease;
}

.changelog-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(56, 189, 248, 0.25);
}

.changelog-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.changelog-version {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.changelog-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.changelog-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.changelog-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* =========================================================================
   TAB 4: Roadmap & Meilensteine
   ========================================================================= */
.roadmap-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 22px 26px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.roadmap-panel-header {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.roadmap-panel-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.roadmap-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
}

.roadmap-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.road-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.roadmap-card.done .road-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.roadmap-card.in-progress .road-icon {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.road-body {
    flex: 1;
}

.road-badge {
    display: inline-block;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 7px;
    border-radius: 10px;
    margin-bottom: 4px;
}

.in-progress-badge {
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
}

.planned-badge {
    color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.3);
}

.road-body h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.road-body p {
    font-size: 0.76rem;
    color: var(--text-secondary);
    margin-top: 3px;
    line-height: 1.45;
}

/* =========================================================================
   Modal Dialog (Alpha Application & Whitelist Check)
   ========================================================================= */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: #0f172a;
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    padding: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(168, 85, 247, 0.15);
    position: relative;
    transform: translateY(16px) scale(0.97);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-box {
    transform: translateY(0) scale(1);
}

.btn-close-modal {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-modal:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.modal-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #5865F2;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.35);
    margin-bottom: 8px;
}

.modal-header-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
}

.modal-header-content p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
    margin-bottom: 14px;
}

.modal-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.step-idx {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--discord-brand);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-txt {
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.step-txt strong {
    color: var(--text-primary);
}

.step-txt code {
    background: rgba(88, 101, 242, 0.2);
    padding: 1px 5px;
    border-radius: 3px;
    color: #a5b4fc;
}

.step-link {
    display: block;
    margin-top: 3px;
    color: var(--accent-blue);
    font-weight: 700;
    text-decoration: none;
}

.checker-container {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 16px;
}

.checker-container h4 {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.checker-input-row {
    display: flex;
    gap: 8px;
}

.checker-input-row input {
    flex: 1;
    padding: 8px 12px;
    background: #020617;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.78rem;
    outline: none;
}

.checker-input-row input:focus {
    border-color: var(--accent-purple);
}

.btn-checker {
    padding: 8px 14px;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.checker-result {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    line-height: 1.4;
}

.checker-alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.checker-alert-warn {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.checker-alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.btn-full {
    width: 100%;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--accent-blue);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-notification.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Footer */
.portal-footer {
    text-align: center;
    font-size: 0.74rem;
    color: var(--text-muted);
    padding-top: 10px;
}

/* Utility Colors */
.text-blue { color: var(--accent-blue); }
.text-purple { color: var(--accent-purple); }
.text-emerald { color: #34d399; }
.text-amber { color: var(--accent-amber); }

/* =========================================================================
   Responsive Breakpoints
   ========================================================================= */
@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
    .portal-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-stats-bar {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .portal-wrapper {
        padding: 12px 10px 30px;
        gap: 14px;
    }
    .portal-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
    }
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .btn-connect-f8 {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .portal-hero {
        padding: 18px 20px;
    }
    .hero-headline {
        font-size: 1.35rem;
    }
    .hero-stats-bar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .stat-box {
        min-width: unset;
        padding: 8px 10px;
    }
    .stat-box-val {
        font-size: 1.2rem;
    }
    .portal-nav-tabs {
        padding: 4px;
        gap: 4px;
    }
    .nav-tab {
        padding: 9px 12px;
        font-size: 0.76rem;
    }
    .nav-tab span {
        display: inline;
    }
    .modules-grid-container,
    .roadmap-grid {
        grid-template-columns: 1fr;
    }
    .alpha-actions {
        flex-direction: column;
    }
    .phase-top-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .phase-percentage-badge {
        align-self: flex-start;
    }
}
