/* ==========================================================================
   MAPAGRO — theme "darkwave" — Bonta / Mercenaire / Brâkmar (PvP identity)
   Palette rouge / noir
   ========================================================================== */

:root {
    --bg: #0c0708;
    --bg-2: #150a0b;
    --panel: #1c0f11;
    --panel-2: #241315;
    --bonta: #f2e6d8;
    --bonta-glow: rgba(242, 230, 216, 0.25);
    --brakmar: #e8203a;
    --brakmar-2: #ff4d5e;
    --brakmar-glow: rgba(232, 32, 58, 0.55);
    --merc: #9aa0a6;
    --merc-glow: rgba(154, 160, 166, 0.35);
    --ink: #f4efe9;
    --ink-dim: #b3a6a2;

    --bs-font-sans-serif: 'Barlow', sans-serif;
    --bs-body-bg: var(--bg);
    --bs-body-bg-rgb: 12, 7, 8;
    --bs-body-color: var(--ink);
    --bs-primary: #e8203a;
    --bs-primary-rgb: 232, 32, 58;
    --bs-primary-color-contrast: #f4efe9 !important;
    --bs-link-color: var(--brakmar-2);
    --bs-link-hover-color: #ff8390;
    --bs-border-radius: 10px;
    --bs-border-radius-lg: 14px;
    --bs-border-radius-sm: 7px;
    --bs-border-radius-xl: 20px;
    --bs-border-radius-pill: 999px;

    --r-sm: 7px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 20px;

    --border-soft: rgba(255, 255, 255, 0.08);
    --border-soft-2: rgba(255, 255, 255, 0.06);
    --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand, .btn-play {
    font-family: 'Bebas Neue', 'Barlow', sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}

a {
    text-decoration: none;
}

/* --- Ambient embers --- */
.glow {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
}

.glow-bonta {
    width: 40vw;
    height: 40vw;
    max-width: 560px;
    max-height: 560px;
    top: -16%;
    left: -10%;
    background: #4a2226;
    opacity: 0.35;
    animation: float-a 26s ease-in-out infinite;
}

.glow-brakmar {
    width: 54vw;
    height: 54vw;
    max-width: 760px;
    max-height: 760px;
    bottom: -20%;
    right: -16%;
    background: var(--brakmar);
    opacity: 0.22;
    animation: float-b 28s ease-in-out infinite;
}

.glow-merc {
    width: 30vw;
    height: 30vw;
    max-width: 380px;
    max-height: 380px;
    top: 42%;
    left: 50%;
    background: var(--brakmar);
    opacity: 0.1;
    animation: float-c 20s ease-in-out infinite;
}

@keyframes float-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4%, 6%); } }
@keyframes float-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-5%, -5%); } }
@keyframes float-c { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -8%); } }

@media (prefers-reduced-motion: reduce) {
    .glow, .status-online .dot { animation: none; }
}

/* --- Buttons --- */
.btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 8px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--brakmar), var(--brakmar-2));
    border: none;
    color: var(--ink);
    box-shadow: 0 10px 24px -10px var(--brakmar-glow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -8px var(--brakmar-glow);
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 38px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    background: linear-gradient(90deg, var(--brakmar), var(--brakmar-2));
    border-radius: 10px;
    box-shadow: 0 14px 32px -10px var(--brakmar-glow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-play:hover,
.btn-play:focus {
    color: var(--ink);
    transform: translateY(-3px);
    box-shadow: 0 20px 38px -10px var(--brakmar-glow);
}

.btn-play-sm {
    padding: 11px 24px;
    font-size: 1.05rem;
    border-radius: 8px;
}

/* --- Content panels (forum / shop / profile...) --- */
.content {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.content h1 {
    margin-bottom: 2rem;
}

.content .card {
    background-color: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.content .card:hover {
    border-color: rgba(232, 32, 58, 0.25);
}

.content .card-body {
    padding: 1.75rem;
}

.content .card-header,
.content .card-footer {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border-soft);
    padding: 1.1rem 1.75rem;
}

.content .list-group-item {
    background-color: var(--panel);
    border-color: var(--border-soft-2);
    color: var(--ink);
    padding: 0.9rem 1.25rem;
    transition: background 0.15s ease;
}

.content .list-group-item-action:hover,
.content .list-group-item-action:focus {
    background-color: rgba(232, 32, 58, 0.08);
    color: var(--ink);
}

/* --- Forms --- */
.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
    color: var(--ink);
    border-radius: var(--r-md);
    padding: 0.65rem 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(232, 32, 58, 0.5);
    box-shadow: 0 0 0 3px rgba(232, 32, 58, 0.15);
    color: var(--ink);
}

.form-control::placeholder {
    color: var(--ink-dim);
    opacity: 0.6;
}

.form-control:disabled,
.form-select:disabled {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--ink-dim);
}

.form-label {
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
}

.form-check-input:checked {
    background-color: var(--brakmar);
    border-color: var(--brakmar);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(232, 32, 58, 0.15);
}

.input-group-text {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    color: var(--ink-dim);
}

.invalid-feedback {
    color: var(--brakmar-2);
}

.is-invalid {
    border-color: var(--brakmar-2) !important;
}

/* --- Alerts --- */
.alert {
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    background: var(--panel);
    color: var(--ink);
    padding: 1rem 1.25rem;
}

.alert-success { border-color: rgba(56, 224, 125, 0.3); }
.alert-danger { border-color: rgba(232, 32, 58, 0.35); }
.alert-warning { border-color: rgba(255, 210, 63, 0.3); }
.alert-info { border-color: rgba(154, 160, 166, 0.35); }

/* --- Tables --- */
.table {
    color: var(--ink);
    --bs-table-bg: transparent;
    --bs-table-color: var(--ink);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-hover-bg: rgba(232, 32, 58, 0.06);
    --bs-table-border-color: var(--border-soft-2);
}

.table > thead {
    border-bottom: 2px solid var(--border-soft);
}

.table > thead th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: var(--ink-dim);
}

/* --- Badges --- */
.badge {
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: var(--r-sm);
    padding: 0.4em 0.7em;
}

/* --- Pagination --- */
.page-link {
    background-color: var(--panel);
    border: 1px solid var(--border-soft);
    color: var(--ink-dim);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.page-link:hover {
    background-color: rgba(232, 32, 58, 0.1);
    border-color: rgba(232, 32, 58, 0.3);
    color: var(--ink);
}

.page-item.active .page-link {
    background-color: var(--brakmar);
    border-color: var(--brakmar);
    color: var(--ink);
}

.page-item.disabled .page-link {
    background-color: var(--panel);
    border-color: var(--border-soft-2);
    color: rgba(179, 166, 162, 0.4);
}

/* --- Tabs / pills --- */
.nav-tabs {
    border-bottom-color: var(--border-soft);
}

.nav-tabs .nav-link {
    color: var(--ink-dim);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-weight: 600;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--ink);
    border-color: rgba(232, 32, 58, 0.3);
}

.nav-tabs .nav-link.active {
    color: var(--brakmar-2);
    background: transparent;
    border-color: var(--brakmar-2);
}

.nav-pills .nav-link {
    color: var(--ink-dim);
    border-radius: var(--r-md);
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-pills .nav-link.active {
    background: var(--brakmar);
    color: var(--ink);
}

/* --- Breadcrumb --- */
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--ink-dim);
}

.breadcrumb-item a {
    color: var(--ink-dim);
}

.breadcrumb-item a:hover {
    color: var(--brakmar-2);
}

.breadcrumb-item.active {
    color: var(--ink);
}

/* --- Modals --- */
.modal-content {
    background-color: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    color: var(--ink);
}

.modal-header,
.modal-footer {
    border-color: var(--border-soft);
}

/* --- Misc interactive polish --- */
a {
    transition: color 0.15s ease;
}

.btn-close {
    filter: invert(1) brightness(1.6);
}

::selection {
    background: rgba(232, 32, 58, 0.35);
    color: var(--ink);
}

/* --- Navbar --- */
.navbar {
    max-width: 1320px;
    margin: 18px auto 0;
    padding: 10px 20px !important;
    background: rgba(21, 10, 11, 0.75) !important;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(232, 32, 58, 0.2);
    border-radius: 12px;
}

.navbar > .container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.navbar-brand {
    font-size: 1.6rem;
    letter-spacing: 0.06em;
    color: var(--brakmar-2) !important;
    text-shadow: 0 0 18px rgba(232, 32, 58, 0.45);
}

.navbar .nav-item {
    margin-right: 0.15rem;
    margin-left: 0.15rem;
}

.navbar .navbar-nav.ml-auto {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.navbar .nav-item .nav-link {
    font-weight: 600;
    color: var(--ink-dim);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 0.86rem;
    white-space: nowrap;
    border-radius: 8px;
    padding: 8px 10px !important;
    transition: color 0.15s ease, background 0.15s ease;
}

.navbar-brand {
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 34px;
    width: auto;
}

.navbar .navbar-nav.ml-auto .btn {
    white-space: nowrap;
    font-size: 0.86rem;
    padding: 8px 16px;
}

.navbar .nav-item .nav-link:hover,
.navbar .nav-item .nav-link.active,
.navbar .dropdown-toggle::after {
    color: var(--ink);
    background: rgba(232, 32, 58, 0.12);
}

.navbar .dropdown-menu {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.navbar .dropdown-item {
    color: var(--ink-dim);
    font-weight: 600;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 10px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(232, 32, 58, 0.3);
}

.navbar-collapse {
    flex-basis: 100%;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .navbar .navbar-nav {
        width: 100%;
    }

    .navbar .nav-item {
        margin: 2px 0;
    }

    .navbar .nav-item .nav-link {
        padding: 10px 12px !important;
    }

    .navbar .navbar-nav.ml-auto {
        margin-top: 10px;
        gap: 8px;
    }

    .navbar .navbar-nav.ml-auto .btn {
        width: 100%;
        margin: 0 !important;
    }

    .navbar .dropdown-menu {
        border: none;
        background: rgba(255, 255, 255, 0.03);
        padding-left: 10px;
        box-shadow: none;
    }
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item.active {
    background: rgba(232, 32, 58, 0.14);
    color: var(--brakmar-2);
}

.navbar .btn-outline-light,
.navbar .btn-secondary {
    border-radius: 8px;
    font-weight: 600;
}

.navbar .btn-secondary {
    background: linear-gradient(90deg, var(--brakmar), var(--brakmar-2));
    border: none;
    color: var(--ink) !important;
}

/* --- Status pill --- */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.status-pill .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-online .dot {
    background: #38e07d;
    box-shadow: 0 0 10px 3px rgba(56, 224, 125, 0.65);
    animation: pulse 1.8s ease-in-out infinite;
}

.status-offline .dot {
    background: var(--brakmar);
    box-shadow: 0 0 10px 3px var(--brakmar-glow);
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* --- Hero split (home) --- */
.hero-split {
    max-width: 1320px;
    margin: 0 auto;
    padding: 56px 24px 40px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brakmar-2);
    background: rgba(232, 32, 58, 0.1);
    border: 1px solid rgba(232, 32, 58, 0.3);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.hero-left h1 {
    font-size: 3.6rem;
    line-height: 1.02;
    color: var(--ink);
}

.hero-left h1 .accent {
    color: var(--brakmar-2);
    text-shadow: 0 0 26px var(--brakmar-glow);
}

.hero-left p.lead {
    font-size: 1.1rem;
    max-width: 48ch;
    margin: 22px 0 30px;
    color: var(--ink-dim);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.btn-fill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 34px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.03em;
    color: var(--ink);
    background: linear-gradient(135deg, var(--brakmar), var(--brakmar-2));
    border: none;
    border-radius: var(--r-md);
    box-shadow: 0 14px 30px -12px var(--brakmar-glow);
    transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), filter 0.15s var(--ease);
}

.btn-fill:hover,
.btn-fill:focus {
    color: var(--ink);
    transform: translateY(-3px);
    filter: brightness(1.08);
    box-shadow: 0 20px 36px -10px var(--brakmar-glow);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}

.btn-ghost:hover,
.btn-ghost:focus {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-ghost-sm {
    padding: 7px 14px;
    font-size: 0.78rem;
}

.faction-strip {
    display: flex;
    gap: 10px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ink-dim);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip .sw {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.chip-bonta .sw { background: var(--bonta); }
.chip-merc .sw { background: var(--merc); }
.chip-brakmar .sw { background: var(--brakmar-2); }

.chip:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Stats panel --- */
.stats-panel {
    background: linear-gradient(165deg, var(--panel-2, #241315), var(--panel));
    border: 1px solid var(--border-soft);
    border-radius: var(--r-xl);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.stats-panel::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -30%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: var(--brakmar);
    opacity: 0.16;
    filter: blur(80px);
}

.stats-panel h3 {
    font-size: 1.2rem;
    color: var(--ink);
    position: relative;
    margin-bottom: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
    position: relative;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row .label {
    font-size: 0.88rem;
    color: var(--ink-dim);
    font-weight: 600;
}

.stat-row .value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--ink);
}

.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--r-sm);
    background: rgba(56, 224, 125, 0.12);
    color: #5fe6a0;
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-live .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38e07d;
    box-shadow: 0 0 8px 2px rgba(56, 224, 125, 0.6);
}

.badge-live.badge-offline {
    background: rgba(232, 32, 58, 0.12);
    color: var(--brakmar-2);
}

.badge-live.badge-offline .dot {
    background: var(--brakmar);
    box-shadow: 0 0 8px 2px var(--brakmar-glow);
}

/* --- Content split (home) --- */
.content-split {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 24px 90px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-head h2 {
    font-size: 1.8rem;
    text-align: left;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-row {
    display: flex;
    gap: 18px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    align-items: center;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.news-row:hover {
    border-color: rgba(232, 32, 58, 0.3);
    background: var(--panel-2, #241315);
    transform: translateY(-2px);
}

.news-row .thumb {
    width: 88px;
    height: 88px;
    border-radius: var(--r-md);
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--panel-2, #241315), #2e1618);
}

.news-row .body {
    flex: 1;
    min-width: 0;
}

.news-row h3 {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.news-row h3 a {
    color: var(--ink);
}

.news-row h3 a:hover {
    color: var(--brakmar-2);
}

.news-row .date {
    font-size: 0.8rem;
    color: var(--ink-dim);
}

.sidebar-card {
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-card h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 16px;
    color: var(--ink);
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.steps li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--ink-dim);
}

.steps .num {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(232, 32, 58, 0.15);
    color: var(--brakmar-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}

.sidebar-card .social-links {
    display: flex;
    gap: 8px;
}

/* --- Social links --- */
.social-links {
    padding-left: 0;
    margin-bottom: 0;
}

.social-links a {
    color: var(--ink-dim);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-links a:hover {
    color: var(--brakmar-2);
    border-color: rgba(232, 32, 58, 0.4);
    transform: translateY(-3px);
}

.social-links a i {
    font-size: 1.2rem !important;
}

/* --- Top header (inner pages) --- */
.top-header {
    position: relative;
    padding-bottom: 2rem;
    z-index: 1;
}

.top-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 2.5rem 0 0.5rem;
}

.top-header-inner .h5 {
    color: var(--ink);
    font-weight: 600;
}

.top-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
/* --- Posts index (news grid) --- */
.post-preview.card {
    display: flex;
    flex-direction: column;
}

.post-preview .card-body {
    padding: 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-preview .card-title {
    font-size: 1.05rem;
    line-height: 1.3;
}

.post-preview .card-title a {
    color: var(--ink);
}

.post-preview .card-title a:hover {
    color: var(--brakmar-2);
}

.post-preview .card-text {
    font-size: 0.85rem;
    flex: 1;
}

.post-preview .card-footer {
    font-size: 0.78rem;
    padding: 0.75rem 1.1rem;
    background: rgba(255, 255, 255, 0.02);
}

.post-preview .card-img-top {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

@media (max-width: 576px) {
    .post-preview .card-body {
        padding: 0.85rem;
    }

    .post-preview .card-title {
        font-size: 0.95rem;
    }

    .post-preview .card-text {
        font-size: 0.8rem;
    }

    .post-preview .btn {
        font-size: 0.78rem;
        padding: 0.4rem 0.8rem;
    }
}

/* --- CMS page content (instructions / download) --- */
.highlight {
    color: var(--brakmar-2);
    font-weight: 700;
}

.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 32px 0;
}

.instruction-step {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-soft);
    border-left: 3px solid var(--brakmar);
    border-radius: var(--r-md);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.instruction-step:hover {
    background: rgba(232, 32, 58, 0.06);
    border-left-color: var(--brakmar-2);
    transform: translateX(4px);
}

.instruction-step .step-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(232, 32, 58, 0.12);
    color: var(--brakmar-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.instruction-step .step-content {
    font-size: 1.02rem;
    color: var(--ink);
    line-height: 1.6;
}

.instruction-step .step-content a {
    color: var(--brakmar-2);
    font-weight: 700;
}

.instruction-step .step-content a:hover {
    text-decoration: underline;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 28px 0;
    text-align: left;
}

.download-grid-single {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.download-card {
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 26px 22px;
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: rgba(232, 32, 58, 0.3);
    box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.5);
}

.download-card h4 {
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: 4px;
}

.download-card .download-sub {
    font-size: 0.85rem;
    color: var(--ink-dim);
    margin-bottom: 18px;
}

.download-card p {
    font-size: 0.9rem;
}

.download-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--brakmar), var(--brakmar-2));
    color: var(--ink);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 0.92rem;
    border-radius: var(--r-md);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.download-link:hover {
    color: var(--ink);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.download-link i {
    font-size: 1.2rem;
}

@media (max-width: 900px) {
    .download-grid {
        grid-template-columns: 1fr;
    }

    .instruction-step {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 12px;
    }
}

/* --- Auth split screen (login / register) --- */
.auth-back {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 20;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-soft);
    color: var(--ink);
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.auth-back:hover,
.auth-back:focus {
    color: var(--ink);
    background: rgba(232, 32, 58, 0.16);
    border-color: rgba(232, 32, 58, 0.35);
    transform: translateX(-3px);
}

.auth-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-side {
    background: linear-gradient(165deg, var(--panel-2), var(--bg));
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-side::before {
    content: "";
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--brakmar);
    opacity: 0.18;
    filter: blur(100px);
}

.auth-brand {
    margin-bottom: 34px;
    display: block;
    position: relative;
}

.auth-brand img {
    height: 48px;
    width: auto;
}

.auth-side h2 {
    font-size: 2.3rem;
    color: var(--ink);
    margin-bottom: 18px;
    position: relative;
}

.auth-side p {
    font-size: 1rem;
    max-width: 38ch;
    margin-bottom: 30px;
    position: relative;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--ink);
    font-size: 0.95rem;
}

.feature-list .check {
    width: 26px;
    height: 26px;
    border-radius: var(--r-sm);
    background: rgba(56, 224, 125, 0.14);
    color: #5fe6a0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.auth-form {
    width: 100%;
    max-width: 400px;
}

.auth-form h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.auth-form .sub {
    font-size: 0.92rem;
    margin-bottom: 28px;
}

.auth-form .field {
    margin-bottom: 18px;
}

.auth-form .field label {
    display: block;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-dim);
    margin-bottom: 8px;
}

.auth-form .field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
    font-size: 0.88rem;
}

.auth-form .field-row a {
    color: var(--brakmar-2);
    font-weight: 600;
}

.auth-form .field-row a:hover {
    text-decoration: underline;
}

.auth-form .btn-fill {
    width: 100%;
    margin-top: 8px;
}

.auth-switch {
    text-align: center;
    margin-top: 22px;
    font-size: 0.9rem;
    color: var(--ink-dim);
}

.auth-switch a {
    color: var(--brakmar-2);
    font-weight: 700;
}

.auth-switch a:hover {
    text-decoration: underline;
}

@media (max-width: 960px) {
    .auth-wrap {
        grid-template-columns: 1fr;
    }

    .auth-side {
        padding: 40px 30px;
        min-height: 320px;
    }

    .auth-form-side {
        padding: 40px 24px;
    }
}

/* --- Footer --- */
.footer {
    background: var(--bg-2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 50px 0 26px;
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 340px;
}

.footer-col h4 {
    font-size: 1.2rem;
    color: var(--ink);
    margin: 0 0 14px;
}

.footer-logo {
    height: 44px;
    width: auto;
    margin-bottom: 14px;
}

.footer-col p {
    color: var(--ink-dim);
    font-size: 0.92rem;
}

.footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-list a {
    color: var(--ink-dim);
    font-weight: 600;
    font-size: 0.92rem;
}

.footer-links-list a:hover {
    color: var(--brakmar-2);
}

.footer-bottom {
    max-width: 1180px;
    margin: 34px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.85rem;
    color: #6b5b5c;
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .hero-split {
        grid-template-columns: 1fr;
    }

    .content-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .navbar {
        margin-top: 14px;
        padding: 10px 16px !important;
    }

    .hero-split {
        padding: 40px 20px 24px;
    }

    .hero-left h1 {
        font-size: 2.4rem;
    }

    .hero-left p.lead {
        font-size: 1rem;
        margin: 18px 0 26px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-actions .btn-fill,
    .hero-actions .btn-ghost {
        width: 100%;
    }

    .faction-strip {
        justify-content: center;
    }

    .stats-panel {
        padding: 24px;
    }

    .content-split {
        padding: 10px 20px 60px;
    }

    .news-row {
        padding: 12px;
        gap: 12px;
    }

    .news-row .thumb {
        width: 64px;
        height: 64px;
    }

    .top-header-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .footer-inner {
        flex-direction: column;
        gap: 26px;
        text-align: left;
    }

    .footer-brand {
        max-width: none;
    }
}

@media (max-width: 420px) {
    .hero-left h1 {
        font-size: 2rem;
    }
}
