/* =====================================================
   ECHELON — Faithful recreation of playechelon.net
   Enhanced with additional polish and dark mode fixes
   ===================================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

/* ── Variables ── */
:root {
    /* Brand */
    --ec-accent:         #fb923c;
    --ec-accent-strong:  #ea580c;
    --ec-accent-light:   #fed7aa;

    /* Blue palette */
    --ec-blue:           #0ea5e9;
    --ec-blue-dark:      #0369a1;
    --ec-blue-darker:    #053a5c;
    --ec-navy:           #0c4a6e;

    /* Gold (shop) */
    --ec-gold:           #eab308;
    --ec-gold-light:     #fde047;
    --ec-gold-dark:      #a16207;

    /* Green */
    --ec-green:          #10b981;
    --ec-green-light:    #34d399;

    /* Neutrals */
    --ec-white:          #ffffff;
    --ec-off-white:      #f8fafc;
    --ec-slate-50:       #f8fafc;
    --ec-slate-100:      #f1f5f9;
    --ec-slate-200:      #e2e8f0;
    --ec-slate-300:      #cbd5e1;
    --ec-slate-400:      #94a3b8;
    --ec-slate-500:      #64748b;
    --ec-slate-600:      #475569;
    --ec-slate-700:      #334155;
    --ec-slate-800:      #1e293b;
    --ec-slate-900:      #0f172a;

    /* Fonts */
    --ec-font-body:    'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
    --ec-font-heading: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;

    /* Shadows */
    --ec-shadow-sm:  0 2px 10px rgba(15,70,120,0.08);
    --ec-shadow-md:  0 8px 20px rgba(15,70,100,0.09);
    --ec-shadow-lg:  0 18px 48px rgba(15,55,95,0.18);
    --ec-shadow-xl:  0 28px 60px rgba(15,55,95,0.22);

    /* Easing */
    --ec-ease-bounce: cubic-bezier(0.34, 1.18, 0.64, 1);
    --ec-ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--ec-font-body);
    font-size: 0.9375rem;
    color: var(--ec-slate-900);
    background: var(--ec-off-white);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--ec-blue-dark); text-decoration: none; transition: color .18s; }
a:hover { color: var(--ec-blue); }
img { max-width: 100%; height: auto; }

h1,h2,h3,h4,h5,h6 {
    font-family: var(--ec-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ec-slate-900);
    margin: 0 0 0.75rem;
}

/* ══════════════════════════════════════════════
   NAVIGATION — Frosted glass, faithful to site
══════════════════════════════════════════════ */
.ec-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px) saturate(1.1);
    -webkit-backdrop-filter: blur(12px) saturate(1.1);
    border-bottom: 1px solid rgba(15,23,42,0.07);
    box-shadow: 0 1px 0 rgba(15,23,42,0.06), var(--ec-shadow-sm);
    padding: 0;
}

.ec-navbar-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 60px;
}

/* Brand */
.ec-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ec-navbar-brand img {
    height: 28px;
    width: auto;
}

/* Center nav */
.ec-navbar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.ec-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ec-slate-600);
    transition: color .18s, background .18s;
    position: relative;
    white-space: nowrap;
}

.ec-nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 0.75rem; right: 0.75rem;
    height: 2px;
    background: var(--ec-blue);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform .2s var(--ec-ease-bounce);
    transform-origin: left;
}

.ec-nav-link:hover,
.ec-nav-link.active {
    color: var(--ec-blue-darker);
    background: rgba(14,165,233,0.06);
}

.ec-nav-link:hover::after,
.ec-nav-link.active::after {
    transform: scaleX(1);
}

/* Shop nav link — gold */
.ec-nav-link--shop {
    background: linear-gradient(135deg, #fde047 0%, #eab308 50%, #ca8a04 100%);
    color: #78350f !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(234,179,8,0.25), inset 0 1px 0 rgba(255,255,255,0.4);
    border: 1px solid rgba(161,98,7,0.2);
}
.ec-nav-link--shop:hover {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 50%, #eab308 100%);
    box-shadow: 0 4px 14px rgba(234,179,8,0.35), inset 0 1px 0 rgba(255,255,255,0.5);
    color: #78350f !important;
    transform: translateY(-1px);
}
.ec-nav-link--shop::after { display: none; }

/* Servers dropdown */
.ec-nav-dropdown {
    position: relative;
}
.ec-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: white;
    border: 1px solid var(--ec-slate-200);
    border-radius: 14px;
    box-shadow: var(--ec-shadow-lg);
    min-width: 200px;
    padding: 0.4rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s, transform .2s var(--ec-ease-bounce);
    z-index: 200;
}
.ec-nav-dropdown:hover .ec-nav-dropdown-menu,
.ec-nav-dropdown:focus-within .ec-nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.ec-nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ec-slate-700);
    transition: background .15s, color .15s;
}
.ec-nav-dropdown-item:hover {
    background: var(--ec-slate-50);
    color: var(--ec-blue-dark);
}
.ec-nav-dropdown-item img {
    width: 24px; height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

/* Right actions */
.ec-navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ec-btn-login {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--ec-slate-900);
    color: white;
    transition: background .18s, box-shadow .18s, transform .18s;
}
.ec-btn-login:hover {
    background: var(--ec-slate-700);
    color: white;
    box-shadow: var(--ec-shadow-md);
    transform: translateY(-1px);
}

.ec-btn-register {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16,185,129,0.25);
    transition: all .18s;
}
.ec-btn-register:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 4px 14px rgba(16,185,129,0.35);
    transform: translateY(-1px);
    color: white;
}

/* User menu */
.ec-user-menu {
    position: relative;
}
.ec-user-avatar {
    width: 34px; height: 34px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--ec-slate-200);
    overflow: hidden;
    transition: border-color .2s;
}
.ec-user-avatar:hover { border-color: var(--ec-blue); }

/* Mobile hamburger */
.ec-navbar-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ec-slate-600);
    padding: 0.4rem;
    border-radius: 8px;
    transition: background .15s;
}
.ec-navbar-mobile-toggle:hover { background: var(--ec-slate-100); }

/* ══════════════════════════════════════════════
   HERO — Full bleed with responsive bg
══════════════════════════════════════════════ */
.ec-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    min-height: 420px;
    max-height: 780px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.ec-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Cinema letterbox fade */
.ec-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15,23,42,0.08) 0%,
        rgba(15,23,42,0.0) 30%,
        rgba(248,250,252,0.0) 65%,
        rgba(248,250,252,0.85) 85%,
        rgba(248,250,252,1) 100%
    );
}

.ec-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1rem 2.5rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.ec-hero-wordmark {
    height: 56px;
    width: auto;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 2px 12px rgba(255,255,255,0.5));
}

.ec-hero-tagline {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

/* Server IP block */
.ec-hero-ip-block {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(15,23,42,0.12);
    border-radius: 12px;
    padding: 0.6rem 1.1rem;
    backdrop-filter: blur(8px);
    box-shadow: var(--ec-shadow-md);
    cursor: pointer;
    transition: box-shadow .2s, transform .2s;
}
.ec-hero-ip-block:hover {
    box-shadow: var(--ec-shadow-lg);
    transform: translateY(-2px);
}
.ec-hero-ip-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--ec-green);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
    flex-shrink: 0;
    animation: ipPulse 2s ease-in-out infinite;
}
@keyframes ipPulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
    50%      { box-shadow: 0 0 0 6px rgba(16,185,129,0.1); }
}
.ec-hero-ip-text {
    font-family: var(--ec-font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ec-slate-900);
    letter-spacing: 0.03em;
}
.ec-hero-ip-version {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ec-slate-400);
    background: var(--ec-slate-100);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
}
.ec-hero-ip-copy {
    color: var(--ec-slate-400);
    font-size: 0.85rem;
    transition: color .15s;
}
.ec-hero-ip-block:hover .ec-hero-ip-copy { color: var(--ec-blue); }

/* ══════════════════════════════════════════════
   PROJECTS SLIDER
══════════════════════════════════════════════ */
.ec-projects-section {
    background: var(--ec-off-white);
    padding: 2.5rem 0;
    overflow: hidden;
}

.ec-projects-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ec-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
}

.ec-projects-slider-wrap {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3rem;
}

.ec-projects-slider {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0.5rem 0 1rem;
    scroll-snap-type: x mandatory;
}
.ec-projects-slider::-webkit-scrollbar { display: none; }

.ec-project-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    background: white;
    border: 1px solid var(--ec-slate-200);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    transition: box-shadow .25s var(--ec-ease-bounce), transform .25s var(--ec-ease-bounce), border-color .2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.ec-project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: border-color .2s;
}
.ec-project-card:hover {
    box-shadow: var(--ec-shadow-lg);
    transform: translateY(-4px);
    border-color: var(--ec-slate-300);
}
.ec-project-card:hover::before {
    border-color: rgba(14,165,233,0.25);
}
.ec-project-logo {
    height: 64px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    margin: 0 auto 0.75rem;
    display: block;
}
.ec-project-mode {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ec-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}
.ec-project-mode img {
    width: 16px; height: 16px;
    object-fit: contain;
}
.ec-project-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ec-slate-800);
    margin-bottom: 0.2rem;
    font-family: var(--ec-font-heading);
}
.ec-project-desc {
    font-size: 0.78rem;
    color: var(--ec-slate-500);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.ec-project-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ec-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    transition: gap .15s;
}
.ec-project-card:hover .ec-project-link { gap: 0.4rem; color: var(--ec-blue-dark); }

/* Slider nav */
.ec-slider-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--ec-slate-200);
    box-shadow: var(--ec-shadow-sm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--ec-slate-600);
    font-size: 0.85rem;
    transition: box-shadow .18s, color .18s;
    z-index: 2;
}
.ec-slider-btn:hover { box-shadow: var(--ec-shadow-md); color: var(--ec-blue); }
.ec-slider-btn--prev { left: 0; }
.ec-slider-btn--next { right: 0; }

/* ══════════════════════════════════════════════
   DISCORD CTA
══════════════════════════════════════════════ */
.ec-discord-section {
    background: white;
    border-top: 1px solid var(--ec-slate-100);
    border-bottom: 1px solid var(--ec-slate-100);
    padding: 4rem 0;
}
.ec-discord-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2.5rem;
}
.ec-discord-mascot {
    width: 120px;
    height: auto;
    flex-shrink: 0;
}
.ec-discord-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ec-slate-900);
    margin-bottom: 0.5rem;
    font-family: var(--ec-font-heading);
}
.ec-discord-sub {
    font-size: 0.9rem;
    color: var(--ec-slate-500);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.ec-btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    background: #5865f2;
    color: white;
    box-shadow: 0 4px 14px rgba(88,101,242,0.3);
    transition: all .2s;
}
.ec-btn-discord:hover {
    background: #4752c4;
    box-shadow: 0 6px 20px rgba(88,101,242,0.4);
    transform: translateY(-2px);
    color: white;
}

/* ══════════════════════════════════════════════
   GENERIC SECTIONS
══════════════════════════════════════════════ */
.ec-section { padding: 4rem 0; }
.ec-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.ec-section-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ec-accent);
    margin-bottom: 0.5rem;
}
.ec-section-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--ec-slate-900);
    margin-bottom: 0.6rem;
    font-family: var(--ec-font-heading);
}
.ec-section-title::after { display: none; } /* override old style */
.ec-section-sub {
    font-size: 0.92rem;
    color: var(--ec-slate-500);
    line-height: 1.7;
    max-width: 560px;
}

/* ══════════════════════════════════════════════
   CARDS — Clean white cards like the site
══════════════════════════════════════════════ */
.ec-card {
    background: white;
    border: 1px solid var(--ec-slate-200);
    border-radius: 16px;
    padding: 1.5rem;
    transition: box-shadow .2s, transform .2s;
}
.ec-card:hover {
    box-shadow: var(--ec-shadow-md);
    transform: translateY(-2px);
}
.ec-card-title {
    font-family: var(--ec-font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ec-slate-800);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ec-card-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--ec-slate-100);
    display: flex; align-items: center; justify-content: center;
    color: var(--ec-blue);
    font-size: 1rem;
}
.ec-card-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ec-slate-100);
}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn-ec {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.4rem;
    border-radius: 9px;
    font-family: var(--ec-font-body);
    font-weight: 700;
    font-size: 0.875rem;
    transition: all .2s var(--ec-ease-bounce);
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.btn-ec-primary {
    background: linear-gradient(135deg, var(--ec-blue) 0%, var(--ec-blue-dark) 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(14,165,233,0.25);
}
.btn-ec-primary:hover {
    box-shadow: 0 6px 20px rgba(14,165,233,0.35);
    transform: translateY(-2px);
    color: white;
}
.btn-ec-outline {
    background: white;
    color: var(--ec-slate-700);
    border: 1.5px solid var(--ec-slate-200);
    box-shadow: var(--ec-shadow-sm);
}
.btn-ec-outline:hover {
    border-color: var(--ec-slate-300);
    box-shadow: var(--ec-shadow-md);
    transform: translateY(-1px);
    color: var(--ec-slate-900);
}
.btn-ec-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 3px 10px rgba(239,68,68,0.2);
}
.btn-ec-danger:hover {
    box-shadow: 0 5px 16px rgba(239,68,68,0.3);
    transform: translateY(-1px);
    color: white;
}
.btn-ec-gold {
    background: linear-gradient(135deg, var(--ec-gold-light), var(--ec-gold), var(--ec-gold-dark));
    color: #78350f;
    box-shadow: 0 3px 12px rgba(234,179,8,0.25);
    font-weight: 800;
}
.btn-ec-gold:hover {
    box-shadow: 0 5px 18px rgba(234,179,8,0.35);
    transform: translateY(-2px);
    color: #78350f;
}

/* ══════════════════════════════════════════════
   SHOP
══════════════════════════════════════════════ */
.ec-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}
.ec-shop-item {
    background: white;
    border: 1px solid var(--ec-slate-200);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .2s var(--ec-ease-bounce), transform .2s var(--ec-ease-bounce);
}
.ec-shop-item:hover {
    box-shadow: var(--ec-shadow-lg);
    transform: translateY(-3px);
}
.ec-shop-item-img {
    width: 100%; aspect-ratio: 1;
    object-fit: cover;
    background: var(--ec-slate-100);
    display: flex; align-items: center; justify-content: center;
}
.ec-shop-item-body { padding: 1rem; }
.ec-shop-item-name { font-weight: 700; font-size: 0.92rem; color: var(--ec-slate-900); margin-bottom: 0.25rem; }
.ec-shop-item-desc { font-size: 0.8rem; color: var(--ec-slate-500); margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ec-shop-item-price { font-family: var(--ec-font-heading); font-size: 1.05rem; font-weight: 800; color: var(--ec-slate-900); }
.ec-shop-badge { position: absolute; top: 0.5rem; right: 0.5rem; background: var(--ec-gold); color: #78350f; font-size: 0.7rem; font-weight: 800; padding: 0.2rem 0.55rem; border-radius: 20px; }

/* ══════════════════════════════════════════════
   VOTE
══════════════════════════════════════════════ */
.ec-vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.ec-vote-site {
    background: white;
    border: 1.5px solid var(--ec-slate-200);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    transition: all .2s var(--ec-ease-bounce);
    text-decoration: none;
    color: inherit;
}
.ec-vote-site:hover {
    border-color: var(--ec-blue);
    box-shadow: var(--ec-shadow-md);
    transform: translateX(4px);
    color: inherit;
}
.ec-vote-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--ec-slate-100); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--ec-blue); flex-shrink: 0; }
.ec-vote-name { font-weight: 700; font-size: 0.9rem; color: var(--ec-slate-800); }
.ec-vote-reward { font-size: 0.78rem; color: var(--ec-slate-500); margin-top: 0.15rem; }

/* ══════════════════════════════════════════════
   FORMS & INPUTS
══════════════════════════════════════════════ */
.ec-label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--ec-slate-600); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.ec-input {
    width: 100%;
    background: white;
    border: 1.5px solid var(--ec-slate-200);
    border-radius: 9px;
    color: var(--ec-slate-900);
    padding: 0.6rem 0.9rem;
    font-family: var(--ec-font-body);
    font-size: 0.9rem;
    transition: border-color .18s, box-shadow .18s;
    outline: none;
}
.ec-input:focus { border-color: var(--ec-blue); box-shadow: 0 0 0 3px rgba(14,165,233,0.12); }

/* Bootstrap overrides */
.form-control, .form-select {
    font-family: var(--ec-font-body) !important;
    border-color: var(--ec-slate-200) !important;
    border-radius: 9px !important;
    font-size: 0.9rem !important;
    color: var(--ec-slate-900) !important;
}
.form-control:focus, .form-select:focus {
    border-color: var(--ec-blue) !important;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.12) !important;
}

/* ══════════════════════════════════════════════
   ALERTS
══════════════════════════════════════════════ */
.alert { border-radius: 10px; font-size: 0.875rem; font-weight: 500; }
.alert-success { background: #ecfdf5 !important; border-color: #a7f3d0 !important; color: #065f46 !important; }
.alert-danger   { background: #fff1f2 !important; border-color: #fecdd3 !important; color: #9f1239 !important; }
.alert-warning  { background: #fffbeb !important; border-color: #fde68a !important; color: #92400e !important; }
.alert-info     { background: #f0f9ff !important; border-color: #bae6fd !important; color: #0c4a6e !important; }

/* ══════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════ */
.ec-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.22rem 0.6rem; border-radius: 20px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.ec-badge-blue  { background: #e0f2fe; color: #0369a1; }
.ec-badge-green { background: #dcfce7; color: #15803d; }
.ec-badge-red   { background: #fff1f2; color: #be123c; }
.ec-badge-gold  { background: #fffbeb; color: #a16207; }
.ec-badge-slate { background: var(--ec-slate-100); color: var(--ec-slate-600); }

/* ══════════════════════════════════════════════
   TABLES
══════════════════════════════════════════════ */
.ec-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.ec-table th { background: var(--ec-slate-50); color: var(--ec-slate-500); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.7rem 1rem; border-bottom: 1.5px solid var(--ec-slate-200); text-align: left; }
.ec-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--ec-slate-100); color: var(--ec-slate-700); vertical-align: middle; }
.ec-table tr:hover td { background: var(--ec-slate-50); }
.table { font-family: var(--ec-font-body) !important; }

/* ══════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════ */
.pagination .page-link { border-radius: 8px !important; margin: 0 2px; font-family: var(--ec-font-body); font-weight: 600; font-size: 0.85rem; border-color: var(--ec-slate-200) !important; color: var(--ec-slate-600) !important; }
.pagination .page-link:hover { background: var(--ec-slate-100) !important; color: var(--ec-slate-900) !important; }
.pagination .page-item.active .page-link { background: var(--ec-blue-dark) !important; border-color: var(--ec-blue-dark) !important; color: white !important; }

/* ══════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════ */
.modal-content { border-radius: 16px !important; border: 1px solid var(--ec-slate-200) !important; box-shadow: var(--ec-shadow-xl) !important; }
.modal-header { border-bottom-color: var(--ec-slate-100) !important; }
.modal-footer { border-top-color: var(--ec-slate-100) !important; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.ec-footer {
    background: var(--ec-slate-900);
    color: var(--ec-slate-400);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}
.ec-footer-logo { height: 28px; margin-bottom: 0.75rem; }
.ec-footer-desc { font-size: 0.85rem; color: var(--ec-slate-500); max-width: 260px; line-height: 1.7; }
.ec-footer-heading { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ec-slate-300); margin-bottom: 1rem; }
.ec-footer-links { list-style: none; padding: 0; margin: 0; }
.ec-footer-links li { margin-bottom: 0.5rem; }
.ec-footer-links a { color: var(--ec-slate-500); font-size: 0.85rem; transition: color .15s; }
.ec-footer-links a:hover { color: white; }
.ec-footer-divider { border-color: rgba(255,255,255,0.07); margin: 2rem 0 1.5rem; }
.ec-footer-copy { font-size: 0.8rem; color: var(--ec-slate-600); text-align: center; }

.ec-social-links { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.ec-social-link { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: var(--ec-slate-400); font-size: 0.95rem; transition: all .18s; }
.ec-social-link:hover { background: rgba(255,255,255,0.1); color: white; }

/* ══════════════════════════════════════════════
   ONLINE INDICATOR
══════════════════════════════════════════════ */
.ec-online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ec-green); box-shadow: 0 0 0 3px rgba(16,185,129,0.2); animation: onlinePulse 2s ease-in-out infinite; }
@keyframes onlinePulse { 0%,100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.2); } 50% { box-shadow: 0 0 0 6px rgba(16,185,129,0.08); } }

/* ══════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════ */
.ec-stats { background: white; border-bottom: 1px solid var(--ec-slate-100); padding: 1rem 0; }
.ec-stat-item { text-align: center; padding: 0.5rem 1.5rem; }
.ec-stat-value { font-family: var(--ec-font-heading); font-size: 1.6rem; font-weight: 800; color: var(--ec-slate-900); line-height: 1; }
.ec-stat-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ec-slate-400); margin-top: 0.2rem; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 860px) {
    .ec-navbar-center { display: none; }
    .ec-navbar-mobile-toggle { display: flex; }
    .ec-hero { aspect-ratio: 4/3; max-height: 480px; }
    .ec-hero-wordmark { height: 40px; }
    .ec-discord-card { grid-template-columns: 1fr; text-align: center; }
    .ec-discord-mascot { width: 80px; margin: 0 auto; }
    .ec-projects-slider-wrap { padding: 0 1.5rem; }
    .ec-slider-btn { display: none; }
}

@media (max-width: 640px) {
    .ec-navbar-inner { padding: 0 1rem; }
    .ec-hero-ip-version { display: none; }
    .ec-shop-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

/* ══════════════════════════════════════════════
   HERO CTAs
══════════════════════════════════════════════ */
.ec-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: .95rem;
    background: white;
    color: var(--ec-slate-900);
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    transition: all .2s var(--ec-ease-bounce);
    text-decoration: none;
}
.ec-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.25);
    color: var(--ec-slate-900);
}
.ec-cta-discord {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: .95rem;
    background: #5865f2;
    color: white;
    box-shadow: 0 4px 20px rgba(88,101,242,.4);
    transition: all .2s var(--ec-ease-bounce);
    text-decoration: none;
}
.ec-cta-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(88,101,242,.5);
    color: white;
}

/* ══════════════════════════════════════════════
   STATS BAR (new)
══════════════════════════════════════════════ */
.ec-statsbar {
    background: var(--ec-slate-900);
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: .85rem 0;
}
.ec-statsbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.ec-statsbar-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .4rem 1.5rem;
}
.ec-statsbar-value {
    font-family: var(--ec-font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: white;
}
.ec-statsbar-label {
    font-size: .72rem;
    font-weight: 700;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.ec-statsbar-sep {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,.1);
}

/* ══════════════════════════════════════════════
   DISCORD BIG CTA
══════════════════════════════════════════════ */
.ec-discord-big {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
    padding: 5rem 1.5rem;
    position: relative;
    overflow: hidden;
}
.ec-discord-big::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(88,101,242,.3) 0%, transparent 70%);
    pointer-events: none;
}
.ec-discord-big-inner {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 3rem;
    position: relative;
}
.ec-discord-big-mascot {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 16px 40px rgba(0,0,0,.4));
    animation: mascotFloat 4s ease-in-out infinite;
}
@keyframes mascotFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
@media (max-width: 640px) {
    .ec-discord-big-inner { grid-template-columns: 1fr; text-align: center; }
    .ec-discord-big-mascot { width: 90px; margin: 0 auto; }
    .ec-statsbar-sep { display: none; }
    .ec-statsbar-item { padding: .3rem .75rem; }
}

/* ══════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════ */
.text-accent    { color: var(--ec-accent) !important; }
.text-blue      { color: var(--ec-blue) !important; }
.text-muted-ec  { color: var(--ec-slate-500) !important; }
.bg-ec-card     { background: white !important; }
.border-ec      { border-color: var(--ec-slate-200) !important; }
.font-heading   { font-family: var(--ec-font-heading) !important; }
