/* =========================================================
   Erios Online — pw-classic theme
   ========================================================= */

:root {
    --bg: #070f0c;
    --bg-2: #0a1411;
    --surface: #0e1916;
    --surface-2: #13211d;
    --surface-3: #1a2b26;
    --line: rgba(205, 225, 214, 0.08);
    --line-2: rgba(205, 225, 214, 0.15);
    --text: #cfd9d3;
    --muted: #82948b;
    --heading: #f2f4f1;
    --gold: #e5a425;
    --gold-2: #f3bd4f;
    --gold-soft: rgba(229, 164, 37, 0.12);
    --emerald: #1d8a5a;
    --emerald-2: #25a86c;
    --emerald-soft: rgba(37, 168, 108, 0.12);
    --cyan: #0bd6df;
    --danger: #e0565b;
    --discord: #5865f2;
    --radius: 10px;
    --radius-sm: 6px;
    --header-h: 72px;
    --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);

    /* aliases consumed by erios-legacy.css */
    --content: var(--surface-2);
    --content2: var(--surface);
    --h1: var(--gold);
    --primary2: var(--line-2);
    --online: var(--emerald-2);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body.erios {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

body.erios #app { display: flex; flex-direction: column; min-height: 100vh; }
body.erios main { flex: 1 0 auto; }

body.erios h1, body.erios h2, body.erios h3, body.erios h4, body.erios h5, body.erios h6 {
    font-family: var(--font-display);
    color: var(--heading);
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.15;
}

body.erios a { color: var(--gold); transition: color .2s var(--ease); }
body.erios a:hover { color: var(--gold-2); text-decoration: none; }
body.erios p { margin-bottom: .75rem; }
body.erios hr { border-color: var(--line); }
body.erios small, body.erios .small { color: inherit; }
body.erios .text-muted { color: var(--muted) !important; }
body.erios .text-white { color: var(--heading) !important; }
body.erios ::selection { background: var(--gold); color: #111; }
body.erios code { color: var(--gold-2); }

body.erios ::-webkit-scrollbar { width: 10px; height: 10px; }
body.erios ::-webkit-scrollbar-track { background: var(--bg); }
body.erios ::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid var(--bg); }
body.erios ::-webkit-scrollbar-thumb:hover { background: #2b433b; }

.e-container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }

body.e-modal-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.e-btn,
body.erios .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1;
    padding: .8rem 1.4rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
    cursor: pointer;
    white-space: nowrap;
}

.e-btn {
    background: var(--gold);
    color: #16110a !important;
}
.e-btn:hover { background: var(--gold-2); transform: translateY(-1px); box-shadow: 0 8px 24px -10px rgba(229, 164, 37, .6); }
.e-btn:active { transform: translateY(0); }
.e-btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.e-btn-lg { padding: 1rem 1.9rem; font-size: 1.1rem; }
.e-btn-ghost {
    background: rgba(255, 255, 255, .04);
    border-color: var(--line-2);
    color: var(--heading) !important;
}
.e-btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); box-shadow: none; }
.e-btn-discord { background: var(--discord); color: #fff !important; }
.e-btn-discord:hover { background: #6d78f5; box-shadow: 0 8px 24px -10px rgba(88, 101, 242, .7); }

body.erios .btn-primary,
body.erios .btn-success,
body.erios .btn-warning {
    background: var(--gold);
    border-color: var(--gold);
    color: #16110a;
}
body.erios .btn-primary:hover, body.erios .btn-primary:focus,
body.erios .btn-success:hover, body.erios .btn-warning:hover {
    background: var(--gold-2);
    border-color: var(--gold-2);
    color: #16110a;
    box-shadow: none;
}
body.erios .btn-secondary,
body.erios .btn-dark,
body.erios .btn-info,
body.erios .btn-light {
    background: var(--surface-3);
    border-color: var(--line-2);
    color: var(--heading);
}
body.erios .btn-secondary:hover, body.erios .btn-dark:hover, body.erios .btn-info:hover, body.erios .btn-light:hover {
    background: #22382f;
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
}
body.erios .btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
body.erios .btn-danger:hover { background: #ea6b70; border-color: #ea6b70; }

body.erios .btn-outline-dark,
body.erios .btn-outline-primary,
body.erios .btn-outline-secondary,
body.erios .btn-outline-light {
    background: transparent;
    border-color: var(--line-2);
    color: var(--text);
}
body.erios .btn-outline-dark:hover,
body.erios .btn-outline-primary:hover,
body.erios .btn-outline-secondary:hover,
body.erios .btn-outline-light:hover {
    background: var(--surface-2);
    border-color: rgba(229, 164, 37, .45);
    color: var(--heading);
}
body.erios .btn-outline-dark.active,
body.erios .btn-outline-primary.active,
body.erios .btn-outline-secondary.active,
body.erios .btn-outline-dark:not(:disabled):not(.disabled).active,
body.erios .btn-outline-dark:not(:disabled):not(.disabled):active,
body.erios .btn-outline-primary:not(:disabled):not(.disabled).active,
body.erios .btn-outline-secondary:not(:disabled):not(.disabled).active {
    box-shadow: none;
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--gold-2);
}
body.erios .btn-link { background: none; color: var(--gold); text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 600; font-size: .9rem; }
body.erios .btn-link:hover { color: var(--gold-2); }
body.erios .btn-sm { padding: .5rem .85rem; font-size: .85rem; }
body.erios .btn:focus, body.erios .btn.focus { box-shadow: 0 0 0 3px rgba(229, 164, 37, .25); }

/* ---------- Header ---------- */
.e-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1030;
    height: var(--header-h);
    transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
    border-bottom: 1px solid transparent;
}
body.is-inner .e-header,
.e-header.is-scrolled {
    background: rgba(7, 15, 12, .88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}
body.is-home .e-header:not(.is-scrolled) {
    background: linear-gradient(180deg, rgba(4, 9, 7, .75), rgba(4, 9, 7, 0));
}

.e-header-inner {
    width: min(1280px, 100% - 2.5rem);
    height: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.e-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    flex-shrink: 0;
}
.e-brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .5));
}
.e-brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--heading);
}

.e-nav { flex: 1; display: flex !important; align-items: center; justify-content: space-between; }
.e-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.e-nav-side { gap: .75rem !important; }

.e-nav-main > li > a,
.e-nav-side > li > a:not(.e-btn) {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    height: var(--header-h);
    padding: 0 .9rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: rgba(236, 241, 238, .78);
    position: relative;
}
.e-nav-main > li > a::after {
    content: "";
    position: absolute;
    left: .9rem;
    right: .9rem;
    bottom: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}
.e-nav-main > li > a:hover,
.e-nav-side > li > a:not(.e-btn):hover,
.e-nav-main > li > a.is-active { color: #fff; }
.e-nav-main > li > a:hover::after,
.e-nav-main > li > a.is-active::after { transform: scaleX(1); }
.e-nav .dropdown-toggle::after { border-top-color: currentColor; opacity: .6; margin-left: .15rem; }

.e-icon-link { position: relative; font-size: 1rem; padding: 0 .5rem !important; }
.e-dot-count {
    position: absolute;
    top: 18px;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--gold);
    color: #16110a;
    font-family: var(--font-body);
    font-size: .65rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    letter-spacing: 0;
}
.e-user { gap: .6rem !important; text-transform: none !important; letter-spacing: .02em !important; }
.e-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: var(--gold-soft);
    border: 1px solid rgba(229, 164, 37, .4);
    color: var(--gold-2);
    font-size: .95rem;
}
.e-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem 1rem;
    font-size: .8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.e-balance strong { color: var(--gold-2); font-size: .95rem; letter-spacing: 0; }
.e-balance + .e-balance { padding-top: 0; }

.e-burger {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .03);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.e-burger span { width: 18px; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.e-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.e-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.e-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dropdowns */
body.erios .dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    padding: .4rem;
    min-width: 12rem;
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .7);
    margin-top: 0;
    transform-origin: top center;
}
body.erios .dropdown-menu-right { transform-origin: top right; }
body.erios .dropdown-menu.show { animation: eDrop .28s var(--ease) both; }
body.erios .dropdown-menu.show > * { animation: eDropItem .32s var(--ease) both; }
body.erios .dropdown-menu.show > :nth-child(2) { animation-delay: .04s; }
body.erios .dropdown-menu.show > :nth-child(3) { animation-delay: .08s; }
body.erios .dropdown-menu.show > :nth-child(4) { animation-delay: .12s; }
body.erios .dropdown-menu.show > :nth-child(5) { animation-delay: .16s; }
body.erios .dropdown-menu.show > :nth-child(n+6) { animation-delay: .2s; }
body.erios .dropdown-item {
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: .55rem .8rem;
    font-size: .9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .55rem;
}
body.erios .dropdown-item:hover, body.erios .dropdown-item:focus { background: var(--surface-2); color: #fff; }
body.erios .dropdown-item.active, body.erios .dropdown-item:active { background: var(--gold-soft); color: var(--gold-2); }
body.erios .dropdown-divider { border-top-color: var(--line); margin: .35rem 0; }

@media (max-width: 991.98px) {
    .e-burger { display: inline-flex; }
    .e-header-inner { gap: 1rem; }
    .e-nav {
        display: none !important;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(7, 15, 12, .98);
        border-bottom: 1px solid var(--line);
        padding: .75rem 1.25rem 1.25rem;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .e-nav.show, .e-nav.collapsing { display: flex !important; }
    .e-nav.collapsing { height: auto !important; transition: none; }
    .e-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .e-nav-side { border-top: 1px solid var(--line); margin-top: .5rem !important; padding-top: .75rem !important; gap: .5rem !important; }
    .e-nav-main > li > a, .e-nav-side > li > a:not(.e-btn) { height: 48px; padding: 0 .25rem; width: 100%; }
    .e-nav-main > li > a::after { left: 0; right: auto; width: 24px; bottom: 10px; }
    .e-nav .dropdown-menu { position: static !important; transform: none !important; box-shadow: none; background: var(--surface); }
    .e-nav-side .e-btn { width: 100%; }
    .e-dot-count { top: 8px; right: auto; left: 22px; }
}

/* ---------- Hero ---------- */
.e-hero {
    position: relative;
    min-height: min(88vh, 820px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    isolation: isolate;
}
.e-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    animation: eZoom 22s var(--ease) both;
}
.e-hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 70% 55% at 50% 42%, rgba(7, 15, 12, 0) 0%, rgba(7, 15, 12, .55) 100%),
        linear-gradient(180deg, rgba(7, 15, 12, .35) 0%, rgba(7, 15, 12, .15) 40%, rgba(7, 15, 12, .92) 88%, var(--bg) 100%);
}
.e-hero-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: calc(var(--header-h) + 2rem) 1.25rem 3rem;
    text-align: center;
}
.e-hero-logo {
    width: clamp(120px, 16vw, 180px);
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .65));
    animation: eRise .9s var(--ease) .1s both;
}
.e-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    justify-content: center;
    animation: eRise .9s var(--ease) .3s both;
}

.e-status {
    border-top: 1px solid var(--line);
    background: rgba(7, 15, 12, .72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: eFade 1s var(--ease) .5s both;
}
.e-status-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(6, 1fr);
}
.e-stat {
    padding: 1.1rem 1.25rem;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.e-stat:first-child { border-left: 0; padding-left: 0; }
.e-stat small {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
}
.e-stat strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--heading);
    letter-spacing: .03em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.e-stat-online { flex-direction: row; align-items: center; gap: .9rem; }
.e-stat-online strong { color: var(--emerald-2); }
.e-stat-online > div { display: flex; flex-direction: column; gap: .2rem; }

.e-pulse {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--emerald-2);
    flex-shrink: 0;
    display: inline-block;
}
.e-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: ePulse 2s ease-out infinite;
}
.e-pulse-sm { width: 7px; height: 7px; }

@media (max-width: 991.98px) {
    .e-status-grid { grid-template-columns: repeat(3, 1fr); }
    .e-stat { border-top: 1px solid var(--line); }
    .e-stat:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
    .e-stat-online { grid-column: 1 / -1; border-top: 0; }
    .e-stat:nth-child(2) { border-left: 0; padding-left: 0; }
    .e-stat:nth-child(2), .e-stat:nth-child(5) { border-left: 0; padding-left: 0; }
    .e-stat:nth-child(3), .e-stat:nth-child(4), .e-stat:nth-child(6), .e-stat:nth-child(7) { border-left: 1px solid var(--line); padding-left: 1.25rem; }
}
@media (max-width: 575.98px) {
    .e-hero { min-height: 92vh; }
    .e-stat { padding: .85rem .9rem; }
    .e-stat strong { font-size: 1.1rem; }
    .e-stat:nth-child(3), .e-stat:nth-child(4), .e-stat:nth-child(6), .e-stat:nth-child(7) { padding-left: .9rem; }
}

/* ---------- Home sections ---------- */
.e-section { padding: 4.5rem 0; }
.e-section-alt { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.e-section + .e-section-alt { border-top: 1px solid var(--line); }
.e-section + .e-section:not(.e-section-alt) { padding-top: 0; }
.e-section-alt + .e-section { padding-top: 4.5rem; }

.e-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.e-section-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .06em;
    position: relative;
    padding-left: 1rem;
}
.e-section-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    bottom: .18em;
    width: 3px;
    border-radius: 2px;
    background: var(--gold);
}

.e-more {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}
.e-more i { font-size: .7rem; transition: transform .25s var(--ease); }
.e-more:hover i, .e-news-card:hover .e-more i { transform: translateX(4px); }

.e-grid-2-1 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.e-stack { display: flex; flex-direction: column; gap: 1.5rem; }
.e-stack > .e-panel { margin-bottom: 0; }
@media (max-width: 991.98px) { .e-grid-2-1 { grid-template-columns: 1fr; } }

/* News */
.e-news-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
}
body.erios .e-news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--text) !important;
    transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
body.erios .e-news-card:hover { border-color: rgba(229, 164, 37, .35); transform: translateY(-3px); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .8); }
.e-news-card.is-featured { grid-row: 1 / span 2; }
.e-news-media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
body.erios .e-news-card:not(.is-featured) { flex-direction: row; }
body.erios .e-news-card:not(.is-featured) .e-news-media { aspect-ratio: auto; width: 42%; flex-shrink: 0; }
.e-news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
body.erios .e-news-card:hover .e-news-media img { transform: scale(1.05); }
.e-news-body { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.e-news-body time { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.e-news-body h3 { font-size: 1.35rem; margin: 0; color: var(--heading); }
.e-news-card.is-featured .e-news-body h3 { font-size: 1.75rem; }
.e-news-body p { font-size: .9rem; color: var(--muted); margin: 0; flex: 1; }
.e-news-body .e-more { margin-top: .4rem; }
@media (max-width: 991.98px) {
    .e-news-grid { grid-template-columns: 1fr; grid-template-rows: none; }
    .e-news-card.is-featured { grid-row: auto; }
}
@media (max-width: 575.98px) {
    .e-news-card:not(.is-featured) { flex-direction: column; }
    .e-news-card:not(.is-featured) .e-news-media { width: 100%; aspect-ratio: 16 / 9; }
}

/* Community band */
.e-join {
    position: relative;
    padding: 4rem 0;
    background:
        linear-gradient(90deg, rgba(7, 15, 12, .96) 0%, rgba(7, 15, 12, .8) 55%, rgba(7, 15, 12, .6) 100%),
        url("../images/hero-banner.jpg") center 35% / cover no-repeat;
    border-top: 1px solid var(--line);
}
.e-join-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.e-join h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .35rem; }
.e-join p { color: var(--muted); margin: 0; }
.e-join-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Panels (widgets) ---------- */
.e-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.e-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
}
.e-panel-head h3 {
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.e-panel-body { padding: 1.1rem 1.25rem; }
.e-panel-foot { padding: 1rem 1.25rem; border-top: 1px solid var(--line); }

.e-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--emerald-2);
    background: var(--emerald-soft);
    padding: .3rem .6rem;
    border-radius: 999px;
}

.e-rows { list-style: none; margin: 0; padding: .35rem 0; }
.e-rows > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 1.25rem;
    font-size: .9rem;
    transition: background-color .2s var(--ease);
}
.e-rows > li + li { border-top: 1px solid var(--line); }
.e-rows > li:hover { background: rgba(255, 255, 255, .02); }
.e-row-label { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); min-width: 0; }
.e-row-label i { color: var(--gold); width: 16px; text-align: center; }
.e-row-label img { object-fit: contain; }
.e-row-value { color: var(--heading); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.e-rows-scroll { max-height: 260px; overflow-y: auto; border-top: 1px solid var(--line); }
.e-discord-embed { border-top: 1px solid var(--line); padding: .75rem; }
.e-discord-embed iframe { display: block; width: 100%; height: 500px; border: 0; border-radius: var(--radius-sm); background: #2b2d31; }
.e-discord-stats { display: flex; }
.e-discord-stats > div { flex: 1; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .15rem; }
.e-discord-stats > div + div { border-left: 1px solid var(--line); }
.e-discord-stats strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--heading); line-height: 1; }
.e-discord-stats small { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.e-empty { color: var(--muted); font-size: .88rem; padding: 1rem 1.25rem !important; }

.e-feed { list-style: none; margin: 0; padding: .35rem 0; }
.e-feed > li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .9rem;
    padding: .8rem 1.25rem;
}
.e-feed > li + li { border-top: 1px solid var(--line); }
.e-feed-mark { width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.e-feed-body { display: flex; flex-direction: column; min-width: 0; }
.e-feed-body strong { color: var(--heading); font-weight: 600; font-size: .92rem; }
.e-feed-body span { color: var(--muted); font-size: .82rem; }
.e-feed time { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.e-tabs { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; border: 0; }
.e-tabs a {
    display: inline-block;
    padding: .45rem .95rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted) !important;
}
.e-tabs a:hover { color: var(--heading) !important; }
.e-tabs a.active { background: var(--gold-soft); color: var(--gold-2) !important; }
.e-panel-head-tabs { padding: .65rem .9rem; }

.e-rank-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.e-rank-table th {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    padding: .8rem 1.25rem;
    border-bottom: 1px solid var(--line);
}
.e-rank-table td { padding: .7rem 1.25rem; border-bottom: 1px solid var(--line); color: var(--text); }
.e-rank-table tbody tr:last-child td { border-bottom: 0; }
.e-rank-table tbody tr { transition: background-color .2s var(--ease); }
.e-rank-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
body.erios .e-rank-table a { color: var(--heading); font-weight: 600; }
body.erios .e-rank-table a:hover { color: var(--gold-2); }
.e-rank-pos { width: 64px; }
.e-num { font-variant-numeric: tabular-nums; color: var(--heading); font-weight: 600; }
.e-rank-badge {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--muted);
    background: var(--surface-2);
}
.e-rank-1 { background: var(--gold); color: #16110a; }
.e-rank-2 { background: #b9c3c8; color: #16110a; }
.e-rank-3 { background: #b67a45; color: #16110a; }

.e-jobs { display: flex; flex-direction: column; gap: 1rem; }
.e-job-top { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .4rem; }
.e-bar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.e-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--emerald-2);
    transition: width 1.2s var(--ease);
}
.e-bar-trader > span, .e-bar > .e-bar-trader { background: var(--gold); }
.e-bar > .e-bar-hunter { background: var(--cyan); }
.e-bar > .e-bar-thief { background: var(--danger); }

/* ---------- Inner page banner ---------- */
.e-page-banner {
    position: relative;
    padding: calc(var(--header-h) + 3.25rem) 0 2.75rem;
    background:
        linear-gradient(180deg, rgba(7, 15, 12, .7) 0%, rgba(7, 15, 12, .88) 70%, var(--bg) 100%),
        url("../images/hero-banner.jpg") center 30% / cover no-repeat;
    border-bottom: 1px solid var(--line);
}
.e-page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: .35rem 0 0;
    text-transform: uppercase;
    letter-spacing: .06em;
    animation: eRise .6s var(--ease) both;
}
.e-crumbs {
    display: flex;
    gap: .5rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    animation: eFade .6s var(--ease) both;
}
body.erios .e-crumbs a { color: var(--muted); }
body.erios .e-crumbs a:hover { color: var(--gold); }
.e-crumbs span:last-child { color: var(--gold); }

.e-page { padding: 2.75rem 0 4.5rem; animation: eFade .5s var(--ease) .1s both; }
.e-page .container { max-width: 100%; padding-left: 0; padding-right: 0; }
.e-page .main-content { padding-left: 15px; padding-right: 15px; }

.e-page .col-md-12 > h1:first-child,
.e-page .container > h1:first-child,
.e-page .row > h1.col-md-12 {
    font-size: 1.6rem;
    text-align: left !important;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 1.5rem !important;
}
/* these pages repeat the banner title */
body.page-ranking .e-page .col-md-12 > h1:first-child,
body.page-rules .e-page .col-md-12 > h1:first-child,
body.page-archive .e-page .col-md-12 > h1:first-child,
body.page-worldmap .e-page .col-md-12 > h1:first-child,
body.page-notifications .e-page .col-md-12 > h1:first-child,
body.page-player .e-page .col-md-12 > h1:first-child,
body.page-account-dashboard .e-page .col-md-12 > h1:first-child,
body.page-account-settings .e-page .col-md-12 > h1:first-child,
body.page-account-characterlist .e-page .col-md-12 > h1:first-child { display: none; }
.e-page article h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

body.is-auth .e-page .row.justify-content-center > [class*="col-"] { max-width: 640px; flex: 0 0 100%; }

/* ---------- Bootstrap: cards ---------- */
body.erios .card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    box-shadow: none;
}
body.erios .card.bg-transparent { background: var(--surface-2) !important; }
body.erios .card-header {
    background: transparent;
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem;
    color: var(--heading);
}
body.erios .card-header:first-child { border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
body.erios .card-header p,
body.erios .card-header h1,
body.erios .card-header h2,
body.erios .card-header h3,
body.erios .card-header h4,
body.erios .card-header h5 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--heading);
}
body.erios .card-header img { width: 22px; height: 22px; object-fit: contain; opacity: .9; }
body.erios .card-header img[src*="images/icons/"] { display: none; }
body.erios .card-body > h6.small { font-family: var(--font-body); font-size: .85rem; color: var(--muted); letter-spacing: 0; }
body.erios .card-body { padding: 1.35rem 1.25rem; }
body.erios .card-footer { background: transparent; border-top: 1px solid var(--line); }
body.erios .card-title { font-size: 1.3rem; color: var(--heading); }
body.erios .col-md-12 > .card + .card,
body.erios .container > .card + .card { margin-top: 1.5rem; }
body.erios .col-md-12 > .card.mb-3 + .card,
body.erios .container > .card.mb-3 + .card { margin-top: 0; }

/* ---------- Tables ---------- */
body.erios .table {
    color: var(--text);
    margin-bottom: 0;
    background: transparent;
}
body.erios .table th,
body.erios .table td {
    border-color: var(--line) !important;
    vertical-align: middle;
    padding: .8rem 1rem;
}
body.erios .table thead th {
    border-bottom: 1px solid var(--line-2) !important;
    border-top: 0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--bg-2);
}
body.erios .table-bordered { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; border-collapse: separate; border-spacing: 0; }
body.erios .table-bordered td, body.erios .table-bordered th { border-width: 0 0 1px 0 !important; }
body.erios .table-bordered tr:last-child td { border-bottom: 0 !important; }
body.erios .table-striped tbody tr:nth-of-type(odd) { background: rgba(255, 255, 255, .018); }
body.erios .table-hover tbody tr { transition: background-color .15s var(--ease); }
body.erios .table-hover tbody tr:hover { background: rgba(229, 164, 37, .05); color: var(--heading); }
body.erios .table a { color: var(--heading); font-weight: 600; }
body.erios .table a:hover { color: var(--gold-2); }
body.erios .table-dark, body.erios .thead-dark th { background: var(--bg-2) !important; color: var(--muted) !important; }
body.erios .table-responsive { border-radius: var(--radius); }

/* DataTables */
body.erios .dataTables_wrapper { color: var(--muted); font-size: .88rem; }
body.erios .dataTables_wrapper .dataTables_filter input,
body.erios .dataTables_wrapper .dataTables_length select {
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    color: var(--heading);
    border-radius: var(--radius-sm);
    padding: .4rem .7rem;
    margin-left: .5rem;
}
body.erios .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--text) !important;
    border: 1px solid var(--line) !important;
    background: var(--surface-2) !important;
    border-radius: var(--radius-sm);
    margin: 0 2px;
}
body.erios .dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: var(--surface-3) !important; color: #fff !important; }
body.erios .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body.erios .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #16110a !important;
}
body.erios .dt-buttons .btn,
body.erios .dt-buttons .dt-button,
body.erios button.dt-button {
    background: var(--surface-2) !important;
    border: 1px solid var(--line-2) !important;
    color: var(--text) !important;
    font-size: .85rem;
    padding: .55rem .9rem;
    border-radius: var(--radius-sm) !important;
}
body.erios .dt-buttons .btn:hover,
body.erios .dt-buttons .dt-button:hover { background: var(--surface-3) !important; color: #fff !important; }
body.erios .dt-button-collection,
body.erios div.dt-button-collection { background: var(--surface) !important; border: 1px solid var(--line-2) !important; border-radius: var(--radius); }
body.erios .dt-button-collection .dt-button.active,
body.erios .dt-button-collection .dropdown-item.active { background: var(--gold-soft) !important; color: var(--gold-2) !important; }
body.erios table.dataTable thead th, body.erios table.dataTable thead td { border-bottom: 1px solid var(--line-2); }
body.erios table.dataTable.no-footer { border-bottom: 1px solid var(--line); }
body.erios .dataTables_wrapper .dataTables_processing { background: var(--surface); color: var(--heading); border: 1px solid var(--line); }

/* ---------- Forms ---------- */
body.erios label, body.erios .col-form-label { color: var(--text); font-size: .88rem; font-weight: 600; }
body.erios .form-control,
body.erios .custom-select,
body.erios select.form-control,
body.erios textarea.form-control {
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    color: var(--heading);
    height: auto;
    padding: .7rem .9rem;
    font-size: .92rem;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
body.erios .form-control::placeholder { color: #5f7169; }
body.erios .form-control:focus,
body.erios .custom-select:focus {
    background: var(--bg);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(229, 164, 37, .15);
    color: #fff;
}
body.erios .form-control:disabled, body.erios .form-control[readonly] { background: var(--surface-2); color: var(--muted); }
body.erios .form-control.is-invalid { border-color: var(--danger); }
body.erios .invalid-feedback { color: #ff8c8f; }
body.erios .form-group { margin-bottom: 1.15rem; }
body.erios .form-text { color: var(--muted); }
body.erios .input-group-text { background: var(--surface-2); border-color: var(--line-2); color: var(--muted); }
body.erios .form-check-input { accent-color: var(--gold); }
body.erios .custom-control-input:checked ~ .custom-control-label::before { background: var(--gold); border-color: var(--gold); }

body.erios .select2-container--default .select2-selection--single,
body.erios .select2-container--default .select2-selection--multiple {
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    min-height: 44px;
}
body.erios .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--heading); line-height: 42px; }
body.erios .select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
body.erios .select2-dropdown { background: var(--surface); border-color: var(--line-2); color: var(--text); }
body.erios .select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--gold); color: #16110a; }
body.erios .select2-container--default .select2-search--dropdown .select2-search__field { background: var(--bg-2); border-color: var(--line-2); color: var(--heading); }

/* ---------- Alerts, badges, misc ---------- */
body.erios .alert {
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    background: var(--surface-2);
    color: var(--text);
    padding: .9rem 1.1rem;
}
body.erios .alert-success { background: rgba(37, 168, 108, .1); border-color: rgba(37, 168, 108, .35); color: #9ee3c1; }
body.erios .alert-danger { background: rgba(224, 86, 91, .1); border-color: rgba(224, 86, 91, .35); color: #ffb3b5; }
body.erios .alert-warning { background: var(--gold-soft); border-color: rgba(229, 164, 37, .35); color: var(--gold-2); }
body.erios .alert-info { background: rgba(11, 214, 223, .08); border-color: rgba(11, 214, 223, .3); color: #9eeef2; }
body.erios .alert .close { color: inherit; text-shadow: none; opacity: .7; }

body.erios .badge {
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: 999px;
    padding: .35em .7em;
}
body.erios .badge-primary, body.erios .badge-warning { background: var(--gold); color: #16110a; }
body.erios .badge-success { background: var(--emerald); color: #fff; }
body.erios .badge-danger { background: var(--danger); }
body.erios .badge-secondary, body.erios .badge-dark, body.erios .badge-light, body.erios .badge-info { background: var(--surface-3); color: var(--heading); }

body.erios .progress { background: var(--surface-3); border-radius: 6px; height: 8px; }
body.erios .progress-bar { background: var(--emerald-2); }
body.erios .bg-trader { background-color: var(--gold) !important; }
body.erios .bg-hunter { background-color: var(--cyan) !important; }
body.erios .bg-thief { background-color: var(--danger) !important; }

body.erios .pagination { gap: .3rem; flex-wrap: wrap; }
body.erios .page-link {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: var(--radius-sm) !important;
    min-width: 38px;
    text-align: center;
}
body.erios .page-link:hover { background: var(--surface-2); color: #fff; border-color: var(--line-2); }
body.erios .page-item.active .page-link { background: var(--gold); border-color: var(--gold); color: #16110a; }
body.erios .page-item.disabled .page-link { background: var(--bg-2); color: #4f6059; border-color: var(--line); }

/* Nav tabs / pills (character, webmall, settings) */
body.erios .nav-tabs { border-bottom: 1px solid var(--line); gap: .25rem; }
body.erios .nav-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--muted);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .6rem .9rem;
    background: transparent;
}
body.erios .nav-tabs .nav-link:hover { color: var(--heading); }
body.erios .nav-tabs .nav-link.active,
body.erios .nav-tabs .nav-item.show .nav-link { color: var(--gold-2); border-bottom-color: var(--gold); background: transparent; }
body.erios .nav-pills .nav-link { color: var(--muted); border-radius: var(--radius-sm); font-weight: 600; }
body.erios .nav-pills .nav-link:hover { color: var(--heading); background: var(--surface-2); }
body.erios .nav-pills .nav-link.active, body.erios .nav-pills .show > .nav-link { background: var(--gold-soft); color: var(--gold-2); }

/* List groups (account menu, news archive) */
body.erios .list-group { border-radius: var(--radius); }
body.erios .list-group-item {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
    padding: .8rem 1.1rem;
}
body.erios .list-group-item-action { transition: background-color .2s var(--ease), color .2s var(--ease), padding .2s var(--ease); }
body.erios .list-group-item-action:hover, body.erios .list-group-item-action:focus { background: var(--surface-2); color: var(--heading); }
body.erios .list-group-item.active {
    background: var(--surface-2);
    border-color: var(--line);
    color: var(--gold-2);
    box-shadow: inset 3px 0 0 var(--gold);
    z-index: 2;
}
body.erios .list-group-item h5 { font-size: 1.2rem; }
body.erios .list-group-item small { color: var(--muted); }

/* Account sidebar */
body.erios .sidebar > h1 {
    font-size: .78rem;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 1.5rem 0 .6rem;
}
body.erios .sidebar > h1:first-child { margin-top: 0; }
body.erios .sidebar .card .list-group li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .6rem 1rem;
    border-bottom: 1px solid var(--line);
    font-size: .88rem;
}
body.erios .sidebar .card .list-group li:last-child { border-bottom: 0; }
body.erios .sidebar .card .list-group li .float-right { color: var(--heading); font-weight: 600; }
body.erios .sidebar .card .list-group li i { color: var(--gold); margin-right: .35rem; }

/* Modals */
body.erios .modal-backdrop.show { opacity: .75; }
body.erios .modal-content {
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    color: var(--text);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}
body.erios .modal-header, body.erios .modal-footer { border-color: var(--line); }
body.erios .modal-title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; }
body.erios .close { color: var(--heading); text-shadow: none; opacity: .6; }
body.erios .close:hover { color: #fff; opacity: 1; }

/* ---------- Page-specific ---------- */
body.erios .dashboard-link { color: var(--text) !important; }
body.erios .dashboard-link img { transition: transform .35s var(--ease); max-height: 110px; }
body.erios .dashboard-link:hover img { transform: translateY(-4px) scale(1.03); }
body.erios .dashboard-link p { margin: 0; color: var(--text) !important; }

body.erios .download-card {
    padding: 1.5rem;
    border: 1px solid var(--line) !important;
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}
body.erios .download-card:hover { border-color: rgba(229, 164, 37, .35) !important; transform: translateY(-3px); }
body.erios .file-size { color: var(--muted); font-size: .85rem; }
body.erios .file-size span { color: var(--heading); font-weight: 600; }

body.erios .donation-method {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}
body.erios .donation-method:hover { border-color: rgba(229, 164, 37, .35); transform: translateY(-3px); }

body.erios .character-panel,
body.erios .border-radius-even { border-radius: var(--radius); border-color: var(--line-2); }
body.erios .character-information { border-color: var(--line) !important; }
body.erios .character-information td:first-child { color: var(--muted); }
body.erios .character-information td:last-child { color: var(--heading); font-weight: 600; }
body.erios .character-list { color: var(--text); }

body.erios .ranking .btn-toolbar { gap: .1rem; margin-bottom: 1rem; }
body.erios .ranking .btn-group.p-2 { padding: .25rem !important; }

body.erios .posts-container { max-width: 860px; padding-top: 0 !important; }
body.erios .posts-container h3 {
    font-size: .8rem;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--muted);
    text-transform: uppercase;
    padding-left: 0 !important;
    margin: 1.75rem 0 .75rem;
}
body.erios article .news-image { border-radius: var(--radius) !important; max-height: 460px; object-fit: cover; width: 100%; }
body.erios article .lead { font-size: 1rem; font-weight: 400; color: var(--text); }
body.erios article > p:first-of-type { color: var(--muted); font-size: .85rem; }

body.erios .g-recaptcha { transform-origin: center; }

/* ---------- Security code (custom captcha) ---------- */
.e-captcha-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.e-captcha-img {
    position: relative;
    flex-shrink: 0;
    padding: 0;
    line-height: 0;
    background: var(--surface);
    border: 1px solid rgba(229, 164, 37, .45);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4), 0 0 0 0 var(--gold-soft);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.e-captcha-img img { display: block; width: 160px; height: 52px; }
.e-captcha-img:hover,
.e-captcha-img:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); outline: none; }
.e-captcha-reload {
    position: absolute;
    top: 3px;
    right: 4px;
    font-size: .8rem;
    line-height: 1;
    color: var(--gold-2);
    opacity: 0;
    transition: opacity .2s var(--ease);
}
.e-captcha-img:hover .e-captcha-reload,
.e-captcha-img:focus-visible .e-captcha-reload { opacity: .9; }
.e-captcha-input {
    flex: 1 1 120px;
    min-width: 0;
    text-transform: uppercase;
    letter-spacing: .3em;
    font-weight: 600;
}
.e-captcha-input::placeholder { text-transform: none; letter-spacing: normal; font-weight: 400; }

.e-security-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem;
}
.e-security-row + .e-security-row { border-top: 1px solid var(--line); }
.e-security-row h5 { font-size: 1.15rem; margin: 0 0 .3rem; text-transform: uppercase; letter-spacing: .06em; }
.e-security-row p { margin: 0; color: var(--muted); font-size: .88rem; max-width: 640px; }
.e-security-row p strong { color: var(--heading); }
.e-security-row form { margin: 0; flex-shrink: 0; }
@media (max-width: 767.98px) { .e-security-row { flex-direction: column; align-items: flex-start; } }

.e-auth-note { color: var(--muted); font-size: .88rem; margin-bottom: 1.25rem; }
.e-auth-links { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; font-size: .88rem; }

/* ---------- Discord popup ---------- */
.e-modal {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(3, 7, 5, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
}
.e-modal.is-open { opacity: 1; visibility: visible; }
.e-modal-card {
    position: relative;
    width: min(420px, 100%);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(88, 101, 242, .18) 0%, rgba(88, 101, 242, 0) 60%),
        var(--surface);
    border: 1px solid var(--line-2);
    border-radius: 14px;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
    transform: translateY(16px) scale(.97);
    transition: transform .4s var(--ease);
}
.e-modal.is-open .e-modal-card { transform: none; }
.e-modal-close {
    position: absolute;
    top: .9rem;
    right: .9rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: transparent;
    color: var(--muted);
    display: grid;
    place-items: center;
    transition: color .2s, background-color .2s;
}
.e-modal-close:hover { color: #fff; background: var(--surface-2); }
.e-modal-art { position: relative; width: 84px; height: 84px; margin: 0 auto 1.25rem; }
.e-modal-art img { width: 100%; height: 100%; object-fit: contain; }
.e-modal-discord {
    position: absolute;
    right: -10px;
    bottom: -4px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--discord);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    border: 3px solid var(--surface);
}
.e-modal-card h2 { font-size: 1.9rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .4rem; }
.e-modal-card p { color: var(--muted); margin: 0 0 .75rem; font-size: .92rem; }
.e-modal-online { display: inline-flex; align-items: center; gap: .5rem; color: var(--emerald-2) !important; font-weight: 600; font-size: .85rem !important; }
.e-modal-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.25rem; }
.e-modal-actions .e-btn { width: 100%; }

/* ---------- Footer ---------- */
.e-footer {
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    padding: 3.5rem 0 0;
    font-size: .9rem;
}
.e-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}
.e-footer-brand { display: flex; flex-direction: column; gap: 1.25rem; }
.e-footer .e-brand-logo { width: 48px; height: 48px; }
.e-social { display: flex; gap: .5rem; }
body.erios .e-social a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-2);
    display: grid;
    place-items: center;
    color: var(--text);
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
body.erios .e-social a:hover { background: var(--gold); border-color: var(--gold); color: #16110a; }
.e-footer-col { display: flex; flex-direction: column; gap: .6rem; }
.e-footer-col h4 {
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 .4rem;
}
body.erios .e-footer-col > a { color: var(--text); width: fit-content; }
body.erios .e-footer-col > a:hover { color: var(--gold-2); }
.e-partners { display: flex; flex-wrap: wrap; gap: .6rem; }
body.erios .e-partners a {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 .75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .02);
    color: var(--text);
    font-size: .82rem;
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
body.erios .e-partners a:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .05); }
.e-partners img { max-height: 22px; max-width: 110px; object-fit: contain; filter: grayscale(1) brightness(1.4); opacity: .75; transition: filter .2s, opacity .2s; }
body.erios .e-partners a:hover img { filter: none; opacity: 1; }
.e-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.25rem 0 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .8rem;
}
@media (max-width: 991.98px) { .e-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .e-footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.e-news-grid [data-reveal]:nth-child(2) { transition-delay: .08s; }
.e-news-grid [data-reveal]:nth-child(3) { transition-delay: .16s; }
.e-grid-2-1 > [data-reveal]:nth-child(2) { transition-delay: .1s; }

@keyframes eRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes eFade { from { opacity: 0; } to { opacity: 1; } }
/* Uses `translate`, not `transform`: Popper positions dropdowns via inline transform, which the animation must not override. */
@keyframes eDrop { from { opacity: 0; translate: 0 -12px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes eDropItem { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
@keyframes eZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes ePulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.8); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------- RTL ---------- */
body.erios[dir="rtl"] .e-section-head h2 { padding-left: 0; padding-right: 1rem; }
body.erios[dir="rtl"] .e-section-head h2::before { left: auto; right: 0; }
body.erios[dir="rtl"] .e-stat { border-left: 0; border-right: 1px solid var(--line); }
body.erios[dir="rtl"] .e-stat:first-child { border-right: 0; padding-right: 0; }
body.erios[dir="rtl"] .list-group-item.active { box-shadow: inset -3px 0 0 var(--gold); }
