/* ==================================================================
   SHAIYA — TERRA NOVA
   "BattleWorld" presentation system · dark-fantasy MMORPG
   Loaded after css/style.css so it wins the cascade site-wide.
   ================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* ---------- Surfaces (obsidian / weathered stone) ---------- */
    --bw-void: #04050a;
    --bw-abyss: #07080e;
    --bw-stone: #0c0e15;
    --bw-panel: #101219;
    --bw-panel-hi: #161925;
    --bw-plate: #1b1f2c;

    /* ---------- Gold (the only true accent) ---------- */
    --bw-gold: #d4af6a;
    --bw-gold-hi: #f7e6bb;
    --bw-gold-lo: #9a7632;
    --bw-gold-deep: #5c4520;
    --bw-line: rgba(212, 175, 106, .20);
    --bw-line-mid: rgba(212, 175, 106, .40);
    --bw-line-hot: rgba(240, 210, 140, .78);

    /* ---------- Factions ---------- */
    --bw-blood: #8c1414;
    --bw-blood-hi: #e13a30;
    --bw-ice: #297ecd;
    --bw-ice-hi: #4aa3ff;

    /*
        The four values below were each below the WCAG 2.1 AA threshold for
        normal text against this page's near-black background, and each is used
        as a text colour:

          bw-muted     3.68:1   used in about 30 rules for secondary text
          bw-gold-lo   3.96:1   used in about 17 rules for labels and captions
          bw-blood-hi  4.37:1   error and warning text
          bw-ice       2.85:1   the informational accent

        Lightness was raised and hue and saturation held, so the palette reads
        the same way it did -- this is a legibility change, not a restyle:

          bw-muted     4.63:1
          bw-gold-lo   4.72:1
          bw-blood-hi  4.57:1
          bw-ice       4.68:1

        The near-black background tokens below this block (bw-void through
        bw-plate, bw-gold-deep) also fail 4.5:1 against the background, but
        they only ever paint backgrounds, borders and shadows. They are left
        alone deliberately: lightening them would change the design without
        improving anyone's ability to read anything.
    */

    /* ---------- Text ---------- */
    --bw-parchment: #c6bfae;
    --bw-text: #a9a396;
    --bw-muted: #7f7a6d;

    /* ---------- Fonts ---------- */
    --bw-display: 'Playfair Display', Georgia, serif;
    --bw-serif: 'Playfair Display', Georgia, serif;
    --bw-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;

    /* ---------- Geometry ---------- */
    --bw-notch: 18px;
    --bw-shell: 1560px;
    --bw-ease: cubic-bezier(.22, .61, .36, 1);

    /* ---------- Legacy token bridge ----------
       css/style.css still loads underneath and many pages carry inline
       styles built on its custom properties. Re-point those names at the
       BattleWorld values so a single palette governs the whole site. */
    --text-main: var(--bw-parchment);
    --text-gold: var(--bw-gold);
    --text-gold-hover: var(--bw-gold-hi);
    --text-aol: var(--bw-ice-hi);
    --text-uof: var(--bw-blood-hi);

    --bg-dark: var(--bw-void);
    --bg-panel: rgba(16, 18, 25, .74);
    --bg-panel-hover: rgba(27, 31, 44, .82);

    --border-gold: var(--bw-line-mid);
    --border-gold-glow: var(--bw-gold);
    --border-light: rgba(212, 175, 106, .12);
    --border-color: var(--bw-line);

    --primary-font: var(--bw-sans);
    --heading-font: var(--bw-display);

    /* The old radii were rounded-corner pills. The new language is
       cut-and-forged, so collapse them to near-nothing. */
    --radius-sm: 2px;
    --radius-md: 2px;
    --radius-lg: 2px;
}

/* ------------------------------------------------------------------
   RESET
   ------------------------------------------------------------------ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--bw-sans);
    font-size: 14px;
    line-height: 1.65;
    color: var(--bw-text);
    background-color: var(--bw-void);
    min-height: 100vh;
    overflow-x: hidden;
    /* The dragon sigil sits far behind everything, heavily dimmed. */
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -10%, rgba(140, 20, 20, .22), transparent 60%),
        url('../assets/background-1.webp');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover, 1920px auto;
    background-attachment: fixed, fixed;
    cursor: url('../assets/01.png'), auto;
}

/* Legacy css/style.css lays down a body::before scrim that is too weak for
   this palette — the dragon reads through it and competes with the text.
   Deepen it, and vignette harder toward the edges. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 65% at 50% 8%, rgba(4, 5, 10, .35), rgba(4, 5, 10, .88) 62%, rgba(2, 2, 4, .97) 100%),
        linear-gradient(180deg, rgba(4, 5, 10, .55), rgba(4, 5, 10, .88));
}

a,
button,
input,
select,
textarea,
[role="button"] {
    cursor: url('../assets/03.png'), pointer !important;
}

img {
    max-width: 100%;
   
}

a {
    color: var(--bw-gold);
    text-decoration: none;
    transition: color .25s var(--bw-ease), text-shadow .25s var(--bw-ease);
}

a:hover {
    color: var(--bw-gold-hi);
    text-shadow: 0 0 12px rgba(212, 175, 106, .45);
}

::selection {
    background: rgba(212, 175, 106, .28);
    color: var(--bw-gold-hi);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #05060a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--bw-gold-lo), var(--bw-gold-deep));
    border: 2px solid #05060a;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--bw-gold), var(--bw-gold-lo));
}

/* ------------------------------------------------------------------
   TYPE PRIMITIVES
   ------------------------------------------------------------------ */
.bw-display {
    font-family: var(--bw-display);
    letter-spacing: .06em;
}

/* Engraved gold: dark base with a hard specular highlight, the way
   metal catches light. Not a flat fill, not a glow-blob. */
.bw-gold-text {
    background: linear-gradient(180deg, #fbf0d2 0%, #e6c88b 34%, #c39c52 56%, #7d5f27 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--bw-gold);
}

.bw-eyebrow {
    font-family: var(--bw-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--bw-gold-lo);
}

/* ------------------------------------------------------------------
   ORNAMENT SYSTEM
   A gold hairline collar around a stone panel. The outer element
   paints the metal; the inner is clipped identically and paints the
   stone. The 1px difference is the visible bevel.
   ------------------------------------------------------------------ */
.bw-collar {
    background: linear-gradient(150deg,
            var(--bw-gold-hi) 0%, var(--bw-gold) 18%, var(--bw-gold-deep) 46%,
            var(--bw-gold) 74%, var(--bw-gold-hi) 100%);
    padding: 1px;
    clip-path: polygon(var(--bw-notch) 0, 100% 0,
            100% calc(100% - var(--bw-notch)), calc(100% - var(--bw-notch)) 100%,
            0 100%, 0 var(--bw-notch));
}

.bw-collar > .bw-skin {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 40%),
        linear-gradient(180deg, var(--bw-panel-hi), var(--bw-panel) 45%, var(--bw-abyss));
    clip-path: polygon(var(--bw-notch) 0, 100% 0,
            100% calc(100% - var(--bw-notch)), calc(100% - var(--bw-notch)) 100%,
            0 100%, 0 var(--bw-notch));
}

/* ------------------------------------------------------------------
   PANELS
   ------------------------------------------------------------------ */
.bw-panel {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 30%),
        linear-gradient(180deg, var(--bw-panel), var(--bw-abyss));
    border: 1px solid var(--bw-line);
    padding: 20px;
}

.bw-panel-inset {
    position: relative;
}

.bw-panel-inset::after {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(212, 175, 106, .10);
    pointer-events: none;
}

/* Panel heading with a small forged diamond. */
.bw-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--bw-line);
}

.bw-head::before {
    content: '';
    width: 6px;
    height: 6px;
    flex: none;
    background: var(--bw-gold);
    transform: rotate(45deg);
    box-shadow: 0 0 8px rgba(212, 175, 106, .8);
}

.bw-head h3,
.bw-head h2 {
    font-family: var(--bw-serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--bw-gold);
}

.bw-head .bw-head-sub {
    margin-left: auto;
    font-size: 10.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--bw-muted);
}

/* Section rule: a centred diamond between two tapering gold lines. */
.bw-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0;
}

.bw-rule::before,
.bw-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bw-line-mid), transparent);
}

.bw-rule i {
    width: 7px;
    height: 7px;
    flex: none;
    background: var(--bw-gold);
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(212, 175, 106, .7);
}

/* ------------------------------------------------------------------
   BUTTONS — forged plate, never a flat fill
   ------------------------------------------------------------------ */
.bw-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 210px;
    padding: 15px 30px;
    font-family: var(--bw-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--bw-gold);
    background: linear-gradient(180deg, var(--bw-plate), #0b0d14);
    border: 1px solid var(--bw-line-mid);
    overflow: hidden;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    transition: color .3s var(--bw-ease), border-color .3s var(--bw-ease),
        transform .3s var(--bw-ease), box-shadow .3s var(--bw-ease);
    text-align: center;
}

/* Specular sweep — a hard light bar that crosses on hover. */
.bw-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 240, 205, .22), transparent);
    transform: skewX(-22deg);
    transition: left .65s var(--bw-ease);
    z-index: 1;
}

.bw-btn > * {
    position: relative;
    z-index: 2;
}

.bw-btn:hover {
    color: #fff6e0;
    border-color: var(--bw-line-hot);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .75), 0 0 22px rgba(212, 175, 106, .22);
    text-shadow: 0 0 12px rgba(240, 210, 140, .7);
}

.bw-btn:hover::before {
    left: 130%;
}

.bw-btn i {
    font-size: 14px;
    color: var(--bw-gold);
}

.bw-btn-sm {
    min-width: 0;
    padding: 9px 18px;
    font-size: 11px;
    letter-spacing: .16em;
}

.bw-btn-wide {
    width: 100%;
}

/* Primary: molten crimson core, for the single most important action. */
.bw-btn-primary {
    color: #ffe9e2;
    background: linear-gradient(180deg, #a11d1d, #4d0a0a);
    border-color: rgba(224, 49, 39, .55);
    box-shadow: inset 0 1px 0 rgba(255, 190, 180, .18);
}

.bw-btn-primary i {
    color: #ffb3a8;
}

.bw-btn-primary:hover {
    border-color: var(--bw-blood-hi);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .8), 0 0 30px rgba(224, 49, 39, .45);
    text-shadow: 0 0 12px rgba(255, 150, 140, .8);
}

/* ------------------------------------------------------------------
   FORMS
   ------------------------------------------------------------------ */
.bw-field {
    margin-bottom: 16px;
}

.bw-field label {
    display: block;
    margin-bottom: 7px;
    font-family: var(--bw-serif);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--bw-gold-lo);
}

.bw-field input,
.bw-field select,
.bw-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--bw-sans);
    font-size: 14px;
    color: var(--bw-parchment);
    background: linear-gradient(180deg, #06070c, #0b0d14);
    border: 1px solid rgba(212, 175, 106, .16);
    outline: none;
    transition: border-color .25s var(--bw-ease), box-shadow .25s var(--bw-ease);
}

.bw-field input:focus,
.bw-field select:focus,
.bw-field textarea:focus {
    border-color: var(--bw-gold);
    box-shadow: 0 0 0 1px rgba(212, 175, 106, .18), inset 0 0 22px rgba(212, 175, 106, .07);
}

.bw-field input::placeholder,
.bw-field textarea::placeholder {
    color: #4e4a42;
}

.bw-field select {
    cursor: url('../assets/03.png'), pointer;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--bw-gold-lo) 50%),
        linear-gradient(135deg, var(--bw-gold-lo) 50%, transparent 50%);
    background-position: calc(100% - 18px) 51%, calc(100% - 13px) 51%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.bw-field select option {
    background: #0b0d14;
    color: var(--bw-parchment);
}

/* ------------------------------------------------------------------
   TABLES
   ------------------------------------------------------------------ */
.bw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.bw-table thead th {
    padding: 13px 14px;
    font-family: var(--bw-serif);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-align: left;
    color: var(--bw-gold);
    background: linear-gradient(180deg, rgba(212, 175, 106, .10), transparent);
    border-bottom: 1px solid var(--bw-line-mid);
    
}

.bw-table tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(212, 175, 106, .08);
    color: var(--bw-text);
}

.bw-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, .014);
}

.bw-table tbody tr:hover {
    background: rgba(212, 175, 106, .06);
}

.bw-table tbody tr:hover td {
    color: var(--bw-parchment);
}

/* ------------------------------------------------------------------
   PAGE SHELL
   ------------------------------------------------------------------ */
.bw-shell {
    width: 100%;
    max-width: var(--bw-shell);
    margin: 0 auto;
    padding: 0 22px;
}

.bw-page {
    padding: 34px 0 60px;
}

/* Page title block used on every inner page. */
.bw-page-title {
    text-align: center;
    margin-bottom: 28px;
}

.bw-page-title h1 {
    font-family: var(--bw-display);
    font-size: clamp(26px, 3.4vw, 42px);
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.bw-page-title p {
    color: var(--bw-muted);
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------------
   TOP BAR
   ------------------------------------------------------------------ */
.bw-topbar {
    position: relative;
    z-index: 60;
    background: linear-gradient(180deg, rgba(4, 5, 10, .96), rgba(4, 5, 10, .82));
    border-bottom: 1px solid var(--bw-line);
}

.bw-topbar-inner {
    max-width: var(--bw-shell);
    margin: 0 auto;
    padding: 0 22px;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.bw-topbar a {
    font-family: var(--bw-serif);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--bw-muted);
}

.bw-topbar a:hover {
    color: var(--bw-gold);
}

/* The topbar carries status only - the main nav owns navigation. */
.bw-topbar .bw-tag {
    color: var(--bw-gold-lo);
}

.bw-topbar-inner > .bw-tag {
    margin-right: auto;
}

.bw-topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bw-muted);
}

.bw-topbar-right b {
    color: var(--bw-gold);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.bw-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.bw-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #46d16b;
    box-shadow: 0 0 8px #46d16b;
    animation: bw-pulse 2s infinite;
}

@keyframes bw-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}

/* ------------------------------------------------------------------
   HERO / MASTHEAD
   The 3D character art is the hero — type sits on top of the world,
   it never replaces it.
   ------------------------------------------------------------------ */
.bw-hero {
    position: relative;
    overflow: hidden;
    background: #05060b;
    border-bottom: 1px solid var(--bw-line);
}

/* Slim masthead: identity + stats + CTAs, for every inner page. */
.bw-hero-slim {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 16px 0;
}

/* Full cinematic hero: homepage only. */
.bw-hero-full {
    min-height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 0 46px;
}

.bw-hero-art {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 70% 60% at 50% 45%, rgba(4, 5, 10, .22), rgba(4, 5, 10, .88) 78%),
        url('../assets/background-1.webp');
    background-size: cover;
    background-position: center 22%;
    filter: saturate(1.05) contrast(1.06);
}

/* Darkens the top and bottom so the type and the fold read cleanly. */
.bw-hero-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(4, 5, 10, .92) 0%, transparent 26%,
            transparent 60%, rgba(4, 5, 10, .97) 100%);
}

.bw-hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--bw-shell);
    width: 100%;
    margin: 0 auto;
    padding: 0 22px;
}

/* ---------------- Wordmark ---------------- */
.bw-wordmark {
    line-height: 1;
}

.bw-wordmark .bw-shaiya {
    font-family: var(--bw-display);
    font-size: clamp(46px, 8.5vw, 104px);
    font-weight: 900;
    letter-spacing: .12em;
    line-height: .92;
    margin-right: -.12em;
    filter: drop-shadow(0 6px 26px rgba(0, 0, 0, .95));
}

.bw-wordmark .bw-dragons {
    display: block;
    margin-top: 10px;
    font-family: var(--bw-serif);
    font-size: clamp(12px, 1.5vw, 19px);
    font-weight: 600;
    letter-spacing: .62em;
    text-transform: uppercase;
    color: var(--bw-gold);
    text-shadow: 0 0 18px rgba(212, 175, 106, .5), 0 2px 6px #000;
    margin-right: -.62em;
}

.bw-slogan {
    margin-top: 12px;
    font-family: var(--bw-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .48em;
    text-transform: uppercase;
    color: var(--bw-parchment);
    opacity: .78;
}

/* ---------------- Faction portals ---------------- */
.bw-orb {
    position: relative;
    width: 132px;
    height: 132px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    isolation: isolate;
}

/* The core: a molten sphere seen through a gate. */
.bw-orb::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: -1;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .55), transparent 42%),
        radial-gradient(circle at 50% 55%, var(--orb-core) 0%, var(--orb-mid) 45%, var(--orb-edge) 78%);
    box-shadow:
        0 0 34px var(--orb-glow),
        0 0 90px var(--orb-glow),
        inset 0 0 26px rgba(0, 0, 0, .75);
    animation: bw-orb-breathe 5s ease-in-out infinite;
}

@keyframes bw-orb-breathe {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.045);
        filter: brightness(1.18);
    }
}

/* Forged ring around the portal. */
.bw-orb::after {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1px solid var(--orb-ring);
    box-shadow: 0 0 18px var(--orb-glow), inset 0 0 14px rgba(0, 0, 0, .6);
}

.bw-orb-aol {
    --orb-core: #8fd0ff;
    --orb-mid: var(--bw-ice);
    --orb-edge: #04162b;
    --orb-glow: rgba(74, 163, 255, .55);
    --orb-ring: rgba(74, 163, 255, .6);
}

.bw-orb-uof {
    --orb-core: #ff8a5c;
    --orb-mid: var(--bw-blood);
    --orb-edge: #2a0404;
    --orb-glow: rgba(224, 49, 39, .55);
    --orb-ring: rgba(224, 49, 39, .6);
}

.bw-orb-label {
    position: relative;
    z-index: 2;
    font-family: var(--bw-display);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .14em;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .95);
}

.bw-orb-pct {
    position: relative;
    z-index: 2;
    display: block;
    font-family: var(--bw-serif);
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .95);
}

/* ---------------- Hero composition ---------------- */
.bw-hero-stage {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 6vw, 96px);
}

.bw-hero-cta {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 34px;
    flex-wrap: wrap;
}

/* ---------------- Stats readout ---------------- */
.bw-readout {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 38px;
    border-top: 1px solid var(--bw-line);
    border-bottom: 1px solid var(--bw-line);
    background: linear-gradient(180deg, rgba(4, 5, 10, .55), rgba(4, 5, 10, .2));
}

.bw-readout-item {
    flex: 1;
    max-width: 240px;
    padding: 15px 20px;
    text-align: center;
    border-left: 1px solid rgba(212, 175, 106, .10);
}

.bw-readout-item:first-child {
    border-left: 0;
}

.bw-readout-item dt {
    font-family: var(--bw-serif);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--bw-muted);
    margin-bottom: 5px;
}

.bw-readout-item dd {
    font-family: var(--bw-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--bw-gold);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 14px rgba(212, 175, 106, .35);
}

/* ------------------------------------------------------------------
   NAVIGATION — a banner of forged tabs
   ------------------------------------------------------------------ */
.bw-nav {
    position: relative;
    z-index: 50;
    background: linear-gradient(180deg, #0a0c13, #05060b);
    border-bottom: 1px solid var(--bw-line);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .7);
}

.bw-nav ul {
    max-width: var(--bw-shell);
    margin: 0 auto;
    padding: 0 22px;
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.bw-nav a {
    position: relative;
    display: block;
    padding: 16px 26px;
    font-family: var(--bw-serif);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--bw-text);
    transition: color .3s var(--bw-ease), background .3s var(--bw-ease);
}

.bw-nav a:hover {
    color: var(--bw-gold-hi);
    background: linear-gradient(180deg, rgba(212, 175, 106, .10), transparent);
    text-shadow: 0 0 14px rgba(212, 175, 106, .55);
}

/* Diamond marker that lights under the active tab. */
.bw-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 5px;
    height: 5px;
    background: var(--bw-muted);
    transform: translateX(-50%) rotate(45deg);
    transition: background .3s var(--bw-ease), box-shadow .3s var(--bw-ease);
}

.bw-nav a:hover::after {
    background: var(--bw-gold);
}

.bw-nav a.active {
    color: var(--bw-gold-hi);
    background: linear-gradient(180deg, rgba(212, 175, 106, .14), transparent);
    text-shadow: 0 0 16px rgba(212, 175, 106, .6);
}

.bw-nav a.active::after {
    background: var(--bw-gold);
    box-shadow: 0 0 10px var(--bw-gold);
}

/* ------------------------------------------------------------------
   THREE-COLUMN STAGE (reference layout: faction | feed | faction)
   ------------------------------------------------------------------ */
.bw-stage {
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr) 268px;
    gap: 18px;
    align-items: start;
    padding: 26px 0 0;
}

/* The centre column. min-width:0 stops long news content (URLs, wide
   images) from forcing the grid track wider than its share. */
.bw-col-main {
    min-width: 0;
}


.bw-col-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 18px;
}

/* ------------------------------------------------------------------
   NEWS FEED
   ------------------------------------------------------------------ */
.bw-news {
    padding: 0;
}

.bw-news-item {
    position: relative;
    display: block;
    padding: 18px 20px 18px 26px;
    border-bottom: 1px solid rgba(212, 175, 106, .10);
    transition: background .3s var(--bw-ease);
}

.bw-news-item:last-child {
    border-bottom: 0;
}

.bw-news-item:hover {
    background: linear-gradient(90deg, rgba(212, 175, 106, .07), transparent 65%);
}

/* Pinned brass tab on the leading edge. */
.bw-news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    background: linear-gradient(180deg, var(--bw-gold-hi), var(--bw-gold-deep));
    opacity: .5;
    transition: opacity .3s var(--bw-ease), box-shadow .3s var(--bw-ease);
}

.bw-news-item:hover::before {
    opacity: 1;
    box-shadow: 0 0 12px rgba(212, 175, 106, .7);
}

.bw-news-item h3 {
    font-family: var(--bw-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--bw-parchment);
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color .3s var(--bw-ease);
}

.bw-news-item:hover h3 {
    color: var(--bw-gold-hi);
}

.bw-news-item p {
    font-size: 13px;
    line-height: 1.66;
    color: var(--bw-text);
    margin-bottom: 10px;
}

.bw-news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--bw-muted);
}

.bw-news-meta .bw-date {
    color: var(--bw-gold-lo);
    font-weight: 600;
}

/* Pinned announcement gets a crimson edge instead of brass. */
.bw-news-item.is-pinned::before {
    background: linear-gradient(180deg, var(--bw-blood-hi), var(--bw-blood));
}

.bw-news-item.is-pinned .bw-tag {
    background: linear-gradient(180deg, #a11d1d, #4d0a0a);
    border-color: rgba(224, 49, 39, .5);
    color: #ffd9d2;
}

/* WYSIWYG output is raw editor HTML, so it needs its own type rules
   or it inherits browser defaults and blows the panel apart. */
.bw-news-copy {
    font-size: 13.5px;
    line-height: 1.72;
    color: var(--bw-text);
}

.bw-news-copy > *:first-child {
    margin-top: 0;
}

.bw-news-copy > *:last-child {
    margin-bottom: 0;
}

.bw-news-copy p {
    margin: 0 0 12px;
}

.bw-news-copy h1,
.bw-news-copy h2,
.bw-news-copy h3 {
    font-family: var(--bw-serif);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--bw-gold);
    margin: 18px 0 10px;
}

.bw-news-copy a {
    color: var(--bw-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bw-news-copy img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 14px 0;
    border: 1px solid var(--bw-line);
}

.bw-news-copy ul,
.bw-news-copy ol {
    margin: 0 0 12px 22px;
}

.bw-news-copy blockquote {
    margin: 12px 0;
    padding: 8px 16px;
    border-left: 2px solid var(--bw-gold-lo);
    color: var(--bw-muted);
    font-style: italic;
}

.bw-news-copy table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
}

.bw-news-copy table td,
.bw-news-copy table th {
    padding: 8px 10px;
    border: 1px solid var(--bw-line);
}


.bw-tag {
    display: inline-block;
    padding: 2px 9px;
    font-family: var(--bw-serif);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--bw-gold);
    background: rgba(212, 175, 106, .08);
    border: 1px solid var(--bw-line);
}

/* ------------------------------------------------------------------
   CLASS SHOWCASE — the three framed figures from the reference
   ------------------------------------------------------------------ */
.bw-classes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 26px 0 0;
}

.bw-class {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0b0d14, #05060b);
    border: 1px solid var(--bw-line);
    transition: border-color .4s var(--bw-ease), transform .4s var(--bw-ease), box-shadow .4s var(--bw-ease);
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.bw-class:hover {
    border-color: var(--bw-line-hot);
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .8), 0 0 34px rgba(212, 175, 106, .18);
}

.bw-class-art {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 20%, #1a1e2c, #05060b 72%);
}

.bw-class-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    /* The source renders ship on an opaque backdrop. Luminosity drops the
       hue so that backdrop sinks into the dark plate while the figure
       keeps its full tonal range. */
    mix-blend-mode: luminosity;
    filter: contrast(1.08) brightness(1.04);
    transition: transform .7s var(--bw-ease);
}

.bw-class:hover .bw-class-art img {
    transform: scale(1.06);
}

/* Fades the figure into the plate so it doesn't sit on a hard edge. */
.bw-class-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 42%, transparent 30%, rgba(5, 6, 11, .55) 88%),
        linear-gradient(180deg, transparent 42%, rgba(5, 6, 11, .55) 74%, #05060b 100%);
}

.bw-class-body {
    position: relative;
    padding: 18px 20px 20px;
    text-align: center;
    margin-top: -34px;
    z-index: 2;
}

.bw-class-body h3 {
    font-family: var(--bw-display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bw-gold-hi);
    margin-bottom: 4px;
    text-shadow: 0 2px 10px #000;
}

.bw-class-body .bw-class-sub {
    font-family: var(--bw-serif);
    font-size: 10.5px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--bw-muted);
}

/* The centre card is the "enter the realm" call to action. */
.bw-class-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    padding: 40px 28px;
    background:
        radial-gradient(ellipse at 50% 45%, rgba(212, 175, 106, .13), transparent 62%),
        linear-gradient(180deg, #0b0d14, #05060b);
}

.bw-class-cta h3 {
    font-family: var(--bw-display);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.25;
}

.bw-class-cta p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--bw-text);
    max-width: 340px;
}

/* ------------------------------------------------------------------
   SIDE LINK LISTS
   ------------------------------------------------------------------ */
.bw-links {
    list-style: none;
}

.bw-links li {
    border-bottom: 1px solid rgba(212, 175, 106, .08);
}

.bw-links li:last-child {
    border-bottom: 0;
}

.bw-links a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px 11px 22px;
    font-size: 13px;
    color: var(--bw-text);
    transition: color .25s var(--bw-ease), background .25s var(--bw-ease), padding-left .25s var(--bw-ease);
}

/* Small chevron that pushes out on hover. */
.bw-links a::before {
    content: '';
    position: absolute;
    left: 10px;
    width: 5px;
    height: 5px;
    border-right: 1px solid var(--bw-gold-lo);
    border-top: 1px solid var(--bw-gold-lo);
    transform: rotate(45deg);
    transition: border-color .25s var(--bw-ease);
}

.bw-links a:hover {
    color: var(--bw-gold-hi);
    background: linear-gradient(90deg, rgba(212, 175, 106, .09), transparent);
    padding-left: 26px;
    text-shadow: none;
}

.bw-links a:hover::before {
    border-color: var(--bw-gold-hi);
}

.bw-links .bw-links-ico {
    margin-left: auto;
    font-size: 11px;
    color: var(--bw-muted);
}

/* ------------------------------------------------------------------
   LOGIN BOX
   ------------------------------------------------------------------ */
.bw-login {
    padding: 18px;
}

.bw-login .bw-field {
    margin-bottom: 12px;
}

.bw-login .bw-field input {
    padding: 10px 12px;
    font-size: 13px;
}

.bw-alert {
    padding: 11px 14px;
    margin-bottom: 14px;
    font-size: 12.5px;
    border: 1px solid rgba(224, 49, 39, .45);
    background: rgba(140, 20, 20, .16);
    color: #ffc9c1;
    text-align: center;
}

.bw-alert-ok {
    border-color: rgba(70, 209, 107, .4);
    background: rgba(70, 209, 107, .10);
    color: #b6f0c6;
}

/* ------------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------------ */
.bw-footer {
    position: relative;
    margin-top: 46px;
    padding: 34px 0 26px;
    background: linear-gradient(180deg, #05060b, #020306);
    border-top: 1px solid var(--bw-line);
}

.bw-footer-inner {
    max-width: var(--bw-shell);
    margin: 0 auto;
    padding: 0 22px;
    text-align: center;
}

.bw-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-bottom: 18px;
}

.bw-footer-links a {
    font-family: var(--bw-serif);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--bw-muted);
}

.bw-footer-links a:hover {
    color: var(--bw-gold);
}

.bw-footer-copy {
    font-size: 11.5px;
    letter-spacing: .12em;
    color: #4a463f;
}

.bw-footer-copy b {
    color: var(--bw-gold-lo);
    font-weight: 600;
}

/* ------------------------------------------------------------------
   MODAL (admin editor + registration popup)
   ------------------------------------------------------------------ */
.bw-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 3, 6, .88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.bw-modal {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(180deg, var(--bw-panel-hi), var(--bw-abyss));
    border: 1px solid var(--bw-line-mid);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .9), 0 0 60px rgba(212, 175, 106, .12);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.bw-modal-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--bw-line);
}

.bw-modal-head h2 {
    font-family: var(--bw-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bw-gold);
}

.bw-modal-close {
    margin-left: auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 1px solid var(--bw-line);
    color: var(--bw-muted);
    font-size: 14px;
    transition: color .25s var(--bw-ease), border-color .25s var(--bw-ease);
}

.bw-modal-close:hover {
    color: var(--bw-blood-hi);
    border-color: rgba(224, 49, 39, .5);
}

.bw-modal-body {
    padding: 24px;
}

/* ==================================================================
   LEGACY REMAP — the pages that still speak the old class dialect
   (register, account, drops, rankings, bosses, donate, admin…) are
   restyled here rather than rewritten, so the whole site reads as one
   piece. Everything below reuses the tokens and motifs defined above.

   Grouped by the page that consumes it, in cascade order.
   ================================================================== */

/* ------------------------------------------------------------------
   1. PAGE FRAME
   The header/nav now render full-bleed (outside .main-wrapper), so
   the wrapper is purely the content measure.
   ------------------------------------------------------------------ */
.main-wrapper {
    width: 100%;
    max-width: var(--bw-shell);
    margin: 0 auto;
    padding: 26px 22px 0;
}

.content-area-box {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 26%),
        linear-gradient(180deg, var(--bw-panel), var(--bw-abyss));
    border: 1px solid var(--bw-line);
    margin: 0 0 60px;
    clip-path: polygon(var(--bw-notch) 0, 100% 0,
            100% calc(100% - var(--bw-notch)), calc(100% - var(--bw-notch)) 100%,
            0 100%, 0 var(--bw-notch));
}

/* Section header: heading left, optional trailing control right. */
.content-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 26px;
    border-bottom: 1px solid var(--bw-line);
    background: linear-gradient(180deg, rgba(212, 175, 106, .07), transparent);
}

.content-header h2 {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--bw-display);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bw-gold);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}

.content-header h2 i {
    color: var(--bw-gold-lo);
    font-size: 14px;
}

.content-header > span,
.content-header > a {
    margin-left: auto;
}

.content-body {
    padding: 26px;
}

/* ------------------------------------------------------------------
   2. FORMS
   ------------------------------------------------------------------ */
.generic-form {
    max-width: 520px;
    margin: 0 auto;
}

.generic-form .form-group {
    margin-bottom: 16px;
}

.generic-form label {
    display: block;
    margin-bottom: 7px;
    font-family: var(--bw-serif);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--bw-gold-lo);
}

.generic-form input[type="text"],
.generic-form input[type="password"],
.generic-form input[type="email"],
.generic-form select,
.generic-form textarea,
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--bw-sans);
    font-size: 14px;
    color: var(--bw-parchment);
    background: linear-gradient(180deg, #06070c, #0b0d14);
    border: 1px solid rgba(212, 175, 106, .16);
    outline: none;
    transition: border-color .25s var(--bw-ease), box-shadow .25s var(--bw-ease);
}

.generic-form input:focus,
.generic-form select:focus,
.generic-form textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--bw-gold);
    box-shadow: 0 0 0 1px rgba(212, 175, 106, .18), inset 0 0 22px rgba(212, 175, 106, .07);
}

.generic-form input::placeholder,
.form-group input::placeholder {
    color: #4e4a42;
}

.generic-form select,
.form-group select,
.editor-select,
.table-filter-select {
    cursor: url('../assets/03.png'), pointer;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--bw-gold-lo) 50%),
        linear-gradient(135deg, var(--bw-gold-lo) 50%, transparent 50%);
    background-position: calc(100% - 18px) 51%, calc(100% - 13px) 51%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.generic-form select option,
.form-group select option {
    background: #0b0d14;
    color: var(--bw-parchment);
}

.custom-checkbox {
    cursor: url('../assets/03.png'), pointer;
    width: 17px;
    height: 17px;
    accent-color: var(--bw-gold);
}

.switch input,
.filter-checkbox-label input {
    accent-color: var(--bw-gold);
    cursor: url('../assets/03.png'), pointer;
}

/* Turnstile needs a legible surface on the dark plate. */
.cf-turnstile {
    display: flex;
    justify-content: center;
    padding: 6px 0;
}

/* ------------------------------------------------------------------
   3. BUTTONS
   Every legacy button class collapses onto one silhouette.
   ------------------------------------------------------------------ */
.btn-submit,
.btn-login,
.btn-action,
.btn-search,
.btn-char-save,
.btn-small,
.btn-action-small,
.btn-delete,
.btn-edit,
.btn-kick,
.btn-reset-filters,
.btn-resurrect,
.btn-delete-char,
.btn-del-item,
.btn-roll,
.btn-donate,
.btn-donate-paypal,
.admin-back-btn,
.back-btn,
.back-link,
.dl-action,
.view-btn,
.search-btn,
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 26px;
    font-family: var(--bw-serif);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-align: center;
    color: var(--bw-gold);
    background: linear-gradient(180deg, var(--bw-plate), #0b0d14);
    border: 1px solid var(--bw-line-mid);
    cursor: url('../assets/03.png'), pointer;
    transition: color .3s var(--bw-ease), border-color .3s var(--bw-ease),
        transform .3s var(--bw-ease), box-shadow .3s var(--bw-ease),
        background .3s var(--bw-ease);
}

.btn-submit:hover,
.btn-login:hover,
.btn-action:hover,
.btn-search:hover,
.btn-char-save:hover,
.btn-small:hover,
.btn-action-small:hover,
.btn-delete:hover,
.btn-edit:hover,
.btn-kick:hover,
.btn-reset-filters:hover,
.btn-resurrect:hover,
.btn-delete-char:hover,
.btn-del-item:hover,
.btn-roll:hover,
.btn-donate:hover,
.btn-donate-paypal:hover,
.admin-back-btn:hover,
.back-btn:hover,
.back-link:hover,
.dl-action:hover,
.view-btn:hover,
.search-btn:hover,
.page-link:hover {
    color: var(--bw-gold-hi);
    border-color: var(--bw-line-hot);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .7), 0 0 22px rgba(212, 175, 106, .2);
    text-shadow: 0 0 12px rgba(240, 210, 140, .6);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 10px;
    letter-spacing: .14em;
}

.btn-action-small {
    padding: 7px 13px;
    font-size: 10px;
    letter-spacing: .12em;
}

/* Destructive actions read crimson, never gold. */
.btn-delete,
.btn-delete-char,
.btn-del-item,
.btn-kick {
    color: #ffb3a8;
    border-color: rgba(224, 49, 39, .4);
}

.btn-delete:hover,
.btn-delete-char:hover,
.btn-del-item:hover,
.btn-kick:hover {
    color: #fff;
    border-color: var(--bw-blood-hi);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .7), 0 0 24px rgba(224, 49, 39, .35);
    text-shadow: 0 0 12px rgba(255, 150, 140, .7);
}

.btn-donate-paypal,
.btn-roll {
    color: #ffe9e2;
    background: linear-gradient(180deg, #a11d1d, #4d0a0a);
    border-color: rgba(224, 49, 39, .55);
}

.btn-donate-paypal:hover,
.btn-roll:hover {
    border-color: var(--bw-blood-hi);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .8), 0 0 30px rgba(224, 49, 39, .4);
}

/* The primary form action is the one crimson call on the page. */
.btn-submit {
    width: 100%;
    color: #ffe9e2;
    background: linear-gradient(180deg, #a11d1d, #4d0a0a);
    border-color: rgba(224, 49, 39, .55);
    box-shadow: inset 0 1px 0 rgba(255, 190, 180, .18);
}

.btn-submit:hover {
    border-color: var(--bw-blood-hi);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .8), 0 0 30px rgba(224, 49, 39, .45);
    text-shadow: 0 0 12px rgba(255, 150, 140, .8);
}

.admin-back-btn,
.back-btn,
.back-link {
    padding: 8px 16px;
    font-size: 10px;
    letter-spacing: .14em;
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    text-decoration: none;
}

/* ------------------------------------------------------------------
   Section-header action group (trailing controls).
   ------------------------------------------------------------------ */
.content-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.content-header-period {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--bw-gold);
}

.content-header-period i { font-size: 11px; color: var(--bw-gold-lo); }

/* ------------------------------------------------------------------
   Cross-page CTA: a struck-metal crest button.

   Built as a physical plate rather than a banner: the hard bottom slab
   (box-shadow spread on the y-axis) is the extrusion, the inset top
   highlight is the struck edge, and the active state drives the plate
   down into that slab. Idle motion is a single slow breath on the
   crest only, so the button itself stays still until touched.
   ------------------------------------------------------------------ */
.guild-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 10px 16px 10px 12px;
    text-decoration: none;
    background: linear-gradient(180deg, #1c2130 0%, #10131c 48%, #07090e 100%);
    border: 1px solid rgba(212, 175, 106, .32);
    box-shadow:
        inset 0 1px 0 rgba(255, 236, 205, .16),
        inset 0 -2px 3px rgba(0, 0, 0, .75),
        0 5px 0 0 #04050a,
        0 11px 18px rgba(0, 0, 0, .55);
    transition: transform .2s var(--bw-ease), box-shadow .2s var(--bw-ease),
        border-color .2s var(--bw-ease), background .2s var(--bw-ease);
}

.guild-cta:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 106, .9);
    background: linear-gradient(180deg, #232939 0%, #141822 48%, #0a0d13 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 245, 224, .28),
        inset 0 -2px 3px rgba(0, 0, 0, .7),
        0 7px 0 0 #04050a,
        0 0 28px rgba(212, 175, 106, .22),
        0 16px 26px rgba(0, 0, 0, .6);
}

.guild-cta:active {
    transform: translateY(4px);
    box-shadow:
        inset 0 3px 7px rgba(0, 0, 0, .9),
        0 1px 0 0 #04050a,
        0 4px 9px rgba(0, 0, 0, .65);
}

.guild-cta:focus-visible {
    outline: 2px solid var(--bw-gold);
    outline-offset: 3px;
}

/* Faceted crest: a gold lozenge struck into the plate. */
.guild-cta-crest {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
}

.guild-cta-crest::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(160deg, #33291a 0%, #0d0b08 72%);
    border: 1px solid rgba(212, 175, 106, .5);
    transform: rotate(45deg);
    animation: guild-crest-breathe 4.5s var(--bw-ease) infinite;
    transition: transform .35s var(--bw-ease), border-color .35s var(--bw-ease);
}

.guild-cta-crest i {
    position: relative;
    font-size: 10px;
    color: var(--bw-gold);
}

.guild-cta:hover .guild-cta-crest::before {
    transform: rotate(135deg);
    border-color: rgba(212, 175, 106, .95);
}

.guild-cta-label {
    font-family: var(--bw-display);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--bw-parchment);
    text-shadow: 0 2px 8px rgba(0, 0, 0, .85);
    transition: color .2s var(--bw-ease);
}

.guild-cta:hover .guild-cta-label { color: #fff3d4; }

.guild-cta-arrow {
    font-size: 9px;
    color: var(--bw-gold-lo);
    transition: transform .22s var(--bw-ease), color .22s var(--bw-ease);
}

.guild-cta:hover .guild-cta-arrow {
    transform: translateX(4px);
    color: var(--bw-gold);
}

@keyframes guild-crest-breathe {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 106, 0), inset 0 0 5px rgba(212, 175, 106, .12);
    }

    50% {
        box-shadow: 0 0 12px 1px rgba(212, 175, 106, .3), inset 0 0 9px rgba(212, 175, 106, .3);
    }
}

/* Centred instance: when the CTA is the subject of the panel rather than a
   trailing header control, it is given room to read as the primary move. */
.content-cta-row {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.guild-cta--hero {
    gap: 16px;
    padding: 14px 26px 14px 20px;
    box-shadow:
        inset 0 1px 0 rgba(255, 236, 205, .18),
        inset 0 -2px 3px rgba(0, 0, 0, .75),
        0 6px 0 0 #04050a,
        0 14px 22px rgba(0, 0, 0, .58);
}

.guild-cta--hero:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 245, 224, .3),
        inset 0 -2px 3px rgba(0, 0, 0, .7),
        0 8px 0 0 #04050a,
        0 0 34px rgba(212, 175, 106, .26),
        0 20px 30px rgba(0, 0, 0, .62);
}

.guild-cta--hero:active {
    transform: translateY(5px);
    box-shadow:
        inset 0 3px 8px rgba(0, 0, 0, .9),
        0 1px 0 0 #04050a,
        0 5px 10px rgba(0, 0, 0, .65);
}

.guild-cta--hero .guild-cta-crest {
    width: 38px;
    height: 38px;
}

.guild-cta--hero .guild-cta-crest::before { inset: 2px; }
.guild-cta--hero .guild-cta-crest i { font-size: 13px; }

.guild-cta--hero .guild-cta-label {
    font-size: 14px;
    letter-spacing: .2em;
}

/* ------------------------------------------------------------------
   FILTER BAR (rankings.php)

   Both filters are small closed sets, so they are segmented pill sets
   rather than native selects: no OS-styled dropdown to fight the theme,
   every option is one click instead of open-then-choose, and the active
   state is legible at a glance instead of hidden inside a closed list.
   ------------------------------------------------------------------ */
.filter-bar {
    padding: 15px 20px 18px;
    margin-bottom: 22px;
    background: linear-gradient(180deg, rgba(212, 175, 106, .06), transparent);
    border: 1px solid var(--bw-line);
}

.filter-bar-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--bw-line);
    font-family: var(--bw-display);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--bw-gold);
}

.filter-bar-head i { color: var(--bw-gold-lo); font-size: 11px; }

.filter-bar-summary {
    margin-left: auto;
    font-family: var(--bw-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--bw-parchment);
    opacity: .75;
}

.filter-bar-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 0 30px;
}

.filter-group {
    flex: 1 1 320px;
    min-width: 0;
}

/* Hairline divider between the two groups, dropped once they stack. */
.filter-group + .filter-group {
    padding-left: 30px;
    border-left: 1px solid var(--bw-line);
}

.filter-group-label {
    display: block;
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--bw-gold-lo);
}

.pill-set {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    appearance: none;
    display: inline-flex;
    align-items: center;
    font-family: var(--bw-sans);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 8px 15px;
    cursor: pointer;
    text-decoration: none;
    color: var(--bw-parchment);
    background: linear-gradient(180deg, #12151f, #0a0c12);
    border: 1px solid rgba(212, 175, 106, .18);
    transition: color .18s var(--bw-ease), border-color .18s var(--bw-ease),
        background .18s var(--bw-ease), box-shadow .18s var(--bw-ease),
        transform .18s var(--bw-ease);
}

.pill:hover {
    color: #fff3d4;
    border-color: rgba(212, 175, 106, .55);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
}

.pill:focus-visible {
    outline: 2px solid var(--bw-gold);
    outline-offset: 2px;
}

/* Selected: the plate turns to struck gold, so state reads at a glance. */
.pill.is-on {
    color: #150f04;
    background: linear-gradient(180deg, #ecd199, #c9a45c);
    border-color: #ecd199;
    box-shadow: 0 0 18px rgba(212, 175, 106, .32), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.pill.is-on:hover {
    color: #150f04;
    background: linear-gradient(180deg, #f4dcae, #d4af6a);
    border-color: #f4dcae;
}

/* ------------------------------------------------------------------
   4. TABLES
   ------------------------------------------------------------------ */

/* Wrapper për scroll horizontal në tabelat e gjera.
   Përdoreni duke e mbështjellë tabelën me <div class="table-scroll-wrap">. */
.table-scroll-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.ranking-table,
.chars-table,
.char-table,
.dashboard-table,
.server-info-table,
.items-results-table,
.packages-table,
.results-table,
.users-table,
.char-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 600px;
}

.ranking-table th,
.chars-table th,
.char-table th,
.dashboard-table th,
.server-info-table th,
.items-results-table th,
.packages-table th,
.results-table th,
.users-table th,
.char-info-table th {
    /* AKTIVIZUAR: padding-u ishte i komentuar, prandaj header-at ishin të ngjitura */
    padding: 13px 14px;
    font-family: var(--bw-serif);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-align: left;
    color: var(--bw-gold);
    background: linear-gradient(180deg, rgba(212, 175, 106, .10), transparent);
    border-bottom: 1px solid var(--bw-line-mid);
    
    /* Sticky header për tabelat e gjata */
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: #0b0d14;
    background-image: linear-gradient(180deg, rgba(212, 175, 106, .14), rgba(11, 13, 20, .98));
}

.ranking-table td,
.chars-table td,
.char-table td,
.dashboard-table td,
.server-info-table td,
.items-results-table td,
.packages-table td,
.results-table td,
.users-table td,
.char-info-table td {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(212, 175, 106, .08);
    color: var(--bw-text);
}

.ranking-table tbody tr:hover,
.chars-table tbody tr:hover,
.char-table tbody tr:hover,
.dashboard-table tbody tr:hover,
.results-table tbody tr:hover,
.users-table tbody tr:hover,
.char-info-table tr:hover {
    background: rgba(212, 175, 106, .06);
}

.ranking-table tbody tr:hover td,
.results-table tbody tr:hover td,
.users-table tbody tr:hover td {
    color: var(--bw-parchment);
}

/* Rank medals on the leaderboards. */
.rank-1 {
    color: #f7e6bb;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(240, 210, 140, .7);
}

.rank-2 {
    color: #d5d8de;
    font-weight: 700;
}

.rank-3 {
    color: #d08a52;
    font-weight: 700;
}

.player-link,
.user-link {
    font-weight: 600;
    color: var(--bw-parchment);
}

.player-link:hover,
.user-link:hover {
    color: var(--bw-gold-hi);
}

.time-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-family: var(--bw-serif);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--bw-gold);
    background: rgba(212, 175, 106, .08);
    border: 1px solid var(--bw-line);
}

.no-data-msg,
.empty-state {
    padding: 44px 20px;
    text-align: center;
    color: var(--bw-muted);
}

.empty-state i {
    color: rgba(212, 175, 106, .3);
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--bw-gold);
    font-family: var(--bw-serif);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.db-error,
.debug-info {
    margin: 18px 0;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.7;
    color: #ffc9c1;
    background: rgba(224, 49, 39, .10);
    border: 1px solid rgba(224, 49, 39, .4);
    border-left-width: 3px;
}

.db-error strong,
.debug-info strong {
    color: #ffb3a8;
}

.debug-info {
    color: var(--bw-text);
    background: rgba(212, 175, 106, .07);
    border-color: var(--bw-line-mid);
}

.debug-info strong {
    color: var(--bw-gold);
}

/* ------------------------------------------------------------------
   5. ALERTS + STATUS PILLS
   ------------------------------------------------------------------ */
.alert {
    margin-bottom: 18px;
    padding: 13px 16px;
    font-size: 13.5px;
    line-height: 1.7;
    border: 1px solid var(--bw-line);
    border-left-width: 3px;
}

.alert-success {
    color: #b7f0c8;
    background: rgba(70, 209, 107, .10);
    border-color: rgba(70, 209, 107, .45);
}

.alert-error {
    color: #ffc9c1;
    background: rgba(224, 49, 39, .10);
    border-color: rgba(224, 49, 39, .45);
}

.status-alive,
.status-badge,
.online-badge,
.main-badge,
.char-status-badge,
.stat-badge,
.item-count,
.package-badge,
.enchant-badge,
.gem-badge,
.item-count-badge {
    display: inline-block;
    font-family: var(--bw-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.status-alive {
    color: #8fe6a6;
    text-shadow: 0 0 12px rgba(70, 209, 107, .5);
}

.status-dead,
.status-unknown {
    color: var(--bw-muted);
}

.status-unknown {
    font-size: 12px;
}

.online-badge {
    color: #8fe6a6;
    border: 1px solid rgba(70, 209, 107, .4);
    padding: 2px 9px;
}

.main-badge {
    color: #1a1206;
    background: var(--bw-gold);
    padding: 2px 10px;
    margin-left: 8px;
}

.status-active {
    color: #8fe6a6;
}

.status-deleted {
    color: var(--bw-muted);
    text-decoration: line-through;
}

.item-row-deleted td {
    opacity: .45;
}

/* ------------------------------------------------------------------
   6. PAGINATION
   ------------------------------------------------------------------ */
.pagination,
.pagination-container,
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.pagination-info {
    font-size: 12.5px;
    letter-spacing: .1em;
    color: var(--bw-muted);
}

.pagination-link,
.page-link {
    padding: 9px 14px;
    font-size: 11px;
}

.page-active {
    display: grid;
    place-items: center;
    min-width: 38px;
    padding: 9px 14px;
    font-family: var(--bw-serif);
    font-size: 11px;
    font-weight: 700;
    color: #1a1206;
    background: linear-gradient(180deg, var(--bw-gold-hi), var(--bw-gold-lo));
}

.page-ellipsis {
    color: var(--bw-muted);
    padding: 0 4px;
}

/* ------------------------------------------------------------------
   7. ACCOUNT HUB (account.php)
   Tiles of art; the caption rides on a gradient scrim.
   ------------------------------------------------------------------ */
.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.account-btn {
    position: relative;
    display: block;
    height: 190px;
    overflow: hidden;
    background: var(--bw-stone) center / cover no-repeat;
    border: 1px solid var(--bw-line);
    transition: border-color .35s var(--bw-ease), transform .35s var(--bw-ease),
        box-shadow .35s var(--bw-ease);
    clip-path: polygon(var(--bw-notch) 0, 100% 0,
            100% calc(100% - var(--bw-notch)), calc(100% - var(--bw-notch)) 100%,
            0 100%, 0 var(--bw-notch));
}

.account-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(4, 5, 10, .92) 100%);
}

.account-btn:hover {
    border-color: var(--bw-line-hot);
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .8), 0 0 30px rgba(212, 175, 106, .2);
}

.account-btn-overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    display: grid;
    place-items: center;
    height: 62px;
    text-align: center;
}

.account-btn-overlay span {
    font-family: var(--bw-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--bw-parchment);
}

.bg-characters {
    background-image: url('../assets/my_characters_bg.png');
}

.bg-vote {
    background-image: url('../assets/vote_for_us_bg.png');
}

.bg-password {
    background-image: url('../assets/change_password_bg.png');
}

.bg-logout {
    background-image: url('../assets/logout_bg.png');
}

.bg-admin {
    background-image: url('../assets/admin_panel_bg.png');
}

/* ------------------------------------------------------------------
   8. DOWNLOADS (download.php)
   ------------------------------------------------------------------ */
.download-links {
    display: grid;
    gap: 14px;
}

.dl-btn {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    text-align: left;
    background: linear-gradient(180deg, var(--bw-panel-hi), var(--bw-abyss));
    border: 1px solid var(--bw-line);
    transition: border-color .3s var(--bw-ease), box-shadow .3s var(--bw-ease);
}

.dl-btn:hover {
    border-color: var(--bw-line-hot);
    box-shadow: 0 0 24px rgba(212, 175, 106, .18);
}

.dl-icon {
    flex: none;
    font-size: 30px;
    color: var(--bw-gold);
}

.dl-text {
    flex-grow: 1;
}

.dl-text h3 {
    font-family: var(--bw-serif);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bw-gold-hi);
}

.dl-text p {
    font-size: 12.5px;
    color: var(--bw-muted);
}

.dl-action {
    flex: none;
    padding: 11px 22px;
    font-size: 11px;
}

/* ------------------------------------------------------------------
   9. INFO BLOCKS + LISTS (rules.php, download.php, info.php)
   ------------------------------------------------------------------ */
.info-block {
    padding: 24px 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 40%),
        linear-gradient(180deg, var(--bw-panel), var(--bw-abyss));
    border: 1px solid var(--bw-line);
    clip-path: polygon(var(--bw-notch) 0, 100% 0,
            100% calc(100% - var(--bw-notch)), calc(100% - var(--bw-notch)) 100%,
            0 100%, 0 var(--bw-notch));
}

.info-block h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 26px 0 12px;
    font-family: var(--bw-serif);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bw-gold);
}

.info-block h3:first-child {
    margin-top: 0;
}

.info-block h3 i {
    color: var(--bw-gold-lo);
}

.info-block ul,
.feature-list {
    list-style: none;
    line-height: 1.85;
    color: var(--bw-parchment);
}

.info-block li,
.feature-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.info-block li::before,
.feature-list li::before {
    content: ''; 
    position: static;
    flex: none;
    width: 6px;
    height: 6px;
    background: var(--bw-gold-lo);
    transform: rotate(45deg);
    /* E qendërzon vertikalisht me tekstin */
    align-self: center;
    /* Margjina majtas e zëvendëson padding-left */
    margin-left: 22px;
    margin-right: 1px;
}

.info-block strong {
    color: var(--bw-gold-hi);
    font-weight: 600;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(212, 175, 106, .10);
    font-size: 13.5px;
}

.info-list li:last-child {
    border-bottom: 0;
}

.info-list li .val {
    color: var(--bw-parchment);
    font-weight: 600;
    text-align: right;
}

/* ------------------------------------------------------------------
   10. TABS + FEATURE GRID (info.php)
   ------------------------------------------------------------------ */
.tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--bw-line);
}

.tab-btn {
    padding: 13px 24px;
    font-family: var(--bw-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--bw-muted);
    background: transparent;
    border: 1px solid transparent;
    border-bottom: 0;
    margin-bottom: -1px;
    cursor: url('../assets/03.png'), pointer;
    transition: color .3s var(--bw-ease), background .3s var(--bw-ease),
        border-color .3s var(--bw-ease);
}

.tab-btn:hover {
    color: var(--bw-gold);
}

.tab-btn.active {
    color: var(--bw-gold-hi);
    background: linear-gradient(180deg, rgba(212, 175, 106, .12), transparent);
    border-color: var(--bw-line);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.info-summary-grid,
.feature-grid,
.enchant-grid,
.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px; 
}

.summary-box,
.feature-card,
.method-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px 22px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 40%),
        linear-gradient(180deg, var(--bw-panel), var(--bw-abyss));
    border: 1px solid var(--bw-line);
    transition: border-color .3s var(--bw-ease), box-shadow .3s var(--bw-ease);
    clip-path: polygon(var(--bw-notch) 5, 100% 0,
            100% calc(100% - var(--bw-notch)), calc(100% - var(--bw-notch)) 100%,
            0 100%, 0 var(--bw-notch));
}

.summary-box:hover,
.feature-card:hover,
.method-card:hover {
    border-color: var(--bw-line-hot);
    box-shadow: 0 0 26px rgba(212, 175, 106, .16);
}

.summary-box .label {
    font-family: var(--bw-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--bw-gold-lo);
}

.summary-box .value {
    font-family: var(--bw-display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--bw-gold-hi);
}

.summary-box .sub-value {
    font-size: 12px;
    color: var(--bw-muted);
}

.feature-card {
    text-align: left;
}

.feature-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bw-line);
    font-family: var(--bw-serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--bw-gold);
}

.feature-card h3 i {
    color: var(--bw-gold-lo);
}

.feature-card li {
    font-size: 13px;
    color: var(--bw-text);
}

.method-card .highlight {
    color: var(--bw-gold-hi);
    font-weight: 600;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0 16px;
    font-family: var(--bw-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--bw-gold);
}

.section-title:first-child {
    margin-top: 0;
}

.section-title i {
    color: var(--bw-gold-lo);
}

/* ------------------------------------------------------------------
   11. FILTER BARS (rankings.php, drops.php)
   ------------------------------------------------------------------ */
.table-filter-select,
.table-filter-input,
.editor-input,
.char-input,
.search-input,
.search-field {
    padding: 10px 14px;
    font-family: var(--bw-sans);
    font-size: 13px;
    color: var(--bw-parchment);
    background: linear-gradient(180deg, #06070c, #0b0d14);
    border: 1px solid rgba(212, 175, 106, .16);
    outline: none;
}

.table-filter-select:focus,
.table-filter-input:focus,
.editor-input:focus,
.char-input:focus,
.search-input:focus,
.search-field:focus {
    border-color: var(--bw-gold);
}

.search-field option,
.editor-select option,
.table-filter-select option {
    background: #0b0d14;
    color: var(--bw-parchment);
}

.search-container,
.search-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.search-container input,
.search-input {
    flex: 1 1 auto;
    max-width: 460px;
}

.search-note,
.spawn-note,
.manual-info-banner {
    margin-bottom: 20px;
    padding: 13px 16px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--bw-text);
    background: rgba(212, 175, 106, .07);
    border: 1px solid var(--bw-line);
    border-left: 3px solid var(--bw-gold-lo);
}

.search-note i,
.spawn-note i,
.manual-info-banner i {
    color: var(--bw-gold);
}

.search-note strong,
.spawn-note strong,
.manual-info-banner strong {
    color: var(--bw-gold-hi);
}

.manual-info-banner a {
    color: var(--bw-gold);
    text-decoration: underline;
}

/* ------------------------------------------------------------------
   12. BOSSES (bosses.php)
   ------------------------------------------------------------------ */
.boss-table-container {
    position: relative;
}

.boss-name {
    font-weight: 700;
    color: var(--bw-gold-hi);
}

.boss-name-hover {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    padding-bottom: 2px;
    border-bottom: 1px dotted rgba(200, 160, 90, .5);
}

/* Drop tooltip revealed on boss-name hover.

   Single authority for geometry: bosses.php used to define this too, and the
   two disagreed, which left a stray translateY(-50%) pulling the panel over its
   own label. Placement is not baked in from the row index -- bosses.php sets
   data-placement at hover time from the space actually available, so the panel
   stays correct at any scroll position. z-index clears the nav (50). */
.drop-tooltip {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    z-index: 70;
    display: none;
    width: 330px;
    max-width: 78vw;
    padding: 14px 16px;
    background: linear-gradient(180deg, var(--bw-panel-hi), var(--bw-abyss));
    border: 1px solid var(--bw-line-mid);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .9);
}

/* Invisible strip across the gap so the pointer can travel into the panel. */
.drop-tooltip::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.drop-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 14px;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    background: var(--bw-panel-hi);
    border-top: 1px solid var(--bw-line-mid);
    border-left: 1px solid var(--bw-line-mid);
}

/* Flipped: not enough room below, so open upward. */
.drop-tooltip[data-placement='top'] {
    top: auto;
    bottom: calc(100% + 10px);
}

.drop-tooltip[data-placement='top']::before {
    top: auto;
    bottom: -6px;
    background: var(--bw-abyss);
    border: 0;
    border-right: 1px solid var(--bw-line-mid);
    border-bottom: 1px solid var(--bw-line-mid);
}

.drop-tooltip[data-placement='top']::after {
    top: auto;
    bottom: -10px;
}

.boss-name-hover:hover > .drop-tooltip {
    display: block;
}

.map-text,
.level-text,
.killer-text {
    color: var(--bw-text);
}

.respawn-col {
    text-align: center;
    
}

.drop-rate-val {
    color: var(--bw-gold);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* Drop tooltip rules live with .boss-name-hover above. */

.drop-tooltip h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bw-line);
    font-family: var(--bw-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bw-gold);
}

.drop-list-container {
    max-height: 240px;
    overflow-y: auto;
}

.drop-list-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.drop-list-container th {
    padding: 6px 8px;
    font-family: var(--bw-serif);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--bw-gold-lo);
    text-align: left;
}

.drop-list-container td {
    padding: 5px 8px;
    color: var(--bw-text);
}

/* ------------------------------------------------------------------
   13. DROPS (drops.php)
   ------------------------------------------------------------------ */
.search-tabs h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 26px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bw-line);
    font-family: var(--bw-serif);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bw-gold);
}

.search-tabs h3:first-child {
    margin-top: 0;
}

.ele-icon {
    color: var(--bw-gold);
}

/* ------------------------------------------------------------------
   14. DONATE (donate.php)
   ------------------------------------------------------------------ */
.donation-methods-container,
.case-wrapper {
    padding: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 30%),
        linear-gradient(180deg, var(--bw-panel), var(--bw-abyss));
    border: 1px solid var(--bw-line);
    clip-path: polygon(var(--bw-notch) 0, 100% 0,
            100% calc(100% - var(--bw-notch)), calc(100% - var(--bw-notch)) 100%,
            0 100%, 0 var(--bw-notch));
}

.donation-methods-title,
.items-title,
.chars-title {
    margin-bottom: 18px;
    font-family: var(--bw-serif);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--bw-gold);
}

.method-card h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 8px;
    font-family: var(--bw-serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bw-gold-hi);
}

.method-card p {
    font-size: 13px;
    color: var(--bw-text);
    line-height: 1.7;
}

.method-card p strong {
    color: var(--bw-gold);
}

.package-row {
    transition: background .25s var(--bw-ease);
}

.package-row:hover {
    background: rgba(212, 175, 106, .05);
}

.package-selection {
    text-align: center;
    width: 46px;
}

.points-val,
.amount-val {
    font-family: var(--bw-display);
    font-weight: 700;
    color: var(--bw-gold-hi);
    
}

.bonus-pct {
    color: #8fe6a6;
    font-weight: 700;
    text-align: center;
}

.package-badge {
    padding: 2px 9px;
    margin-left: 8px;
    color: #ffe9e2;
    background: linear-gradient(180deg, #a11d1d, #4d0a0a);
    border: 1px solid rgba(224, 49, 39, .55);
}

.badge-popular {
    padding: 2px 9px;
    margin-left: 8px;
    color: var(--bw-gold-hi);
    background: rgba(212, 175, 106, .12);
    border: 1px solid var(--bw-line-mid);
}

.bonus-items-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.item-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    font-size: 17px;
    background: linear-gradient(180deg, var(--bw-plate), #0b0d14);
    border: 1px solid var(--bw-line);
    cursor: url('../assets/03.png'), help;
}

.item-icon .item-count {
    position: absolute;
    right: -5px;
    bottom: -5px;
    min-width: 18px;
    padding: 1px 4px;
    font-size: 9px;
    color: #1a1206;
    background: var(--bw-gold);
    border-radius: 9px;
}

/* Item tooltip on hover. */
.item-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 60;
    display: none;
    width: 230px;
    padding: 12px 14px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--bw-panel-hi), var(--bw-abyss));
    border: 1px solid var(--bw-line-mid);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .9);
}

.item-icon:hover .item-tooltip {
    display: block;
}

.tooltip-title {
    display: block;
    font-family: var(--bw-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--bw-gold-hi);
}

.tooltip-desc {
    display: block;
    margin: 5px 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--bw-text);
}

.tooltip-qty {
    display: block;
    font-family: var(--bw-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bw-gold-lo);
}

.tooltip-header {
    font-family: var(--bw-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bw-gold);
}

.tooltip-icon {
    font-size: 20px;
    margin-bottom: 6px;
}

.btn-donate-paypal {
    display: flex;
    margin: 26px auto 0;
    min-width: 260px;
}

/* ------------------------------------------------------------------
   15. PLAYER PROFILE (player.php)
   ------------------------------------------------------------------ */
.profile-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 30%),
        linear-gradient(180deg, var(--bw-panel), var(--bw-abyss));
    border: 1px solid var(--bw-line);
    clip-path: polygon(var(--bw-notch) 0, 100% 0,
            100% calc(100% - var(--bw-notch)), calc(100% - var(--bw-notch)) 100%,
            0 100%, 0 var(--bw-notch));
}

.profile-header {
    text-align: center;
    padding-bottom: 22px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--bw-line);
}

.profile-header h2 {
    font-family: var(--bw-display);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: .08em;
    color: var(--bw-gold-hi);
    margin-bottom: 6px;
}

.sub-char-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(212, 175, 106, .10);
    transition: background .25s var(--bw-ease);
}

.sub-char-item:hover {
    background: rgba(212, 175, 106, .05);
}

.char-name {
    font-family: var(--bw-serif);
    font-weight: 700;
    color: var(--bw-parchment);
}

.char-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 12.5px;
    color: var(--bw-muted);
}

.online-status {
    color: #8fe6a6;
    font-weight: 600;
}

.offline-status {
    color: var(--bw-muted);
}

/* ------------------------------------------------------------------
   16. LUCKY CHEST (lucky_case.php)
   ------------------------------------------------------------------ */
.case-wrapper {
    text-align: center;
}

.roulette-container {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto 30px;
    padding: 26px 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(212, 175, 106, .06), transparent),
        linear-gradient(180deg, var(--bw-panel), var(--bw-abyss));
    border: 1px solid var(--bw-line);
}

.roulette-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, var(--bw-gold-hi), transparent);
    box-shadow: 0 0 18px rgba(240, 210, 140, .8);
    z-index: 3;
    pointer-events: none;
}

.roulette-track {
    display: flex;
    gap: 12px;
    padding: 0 10px;
    will-change: transform;
}

.roulette-track img {
    flex: none;
    width: 96px;
    height: 96px;
    object-fit: contain;
    padding: 8px;
    background: linear-gradient(180deg, var(--bw-plate), #0b0d14);
    border: 1px solid var(--bw-line);
}

#result-msg {
    min-height: 30px;
    margin-bottom: 18px;
    font-family: var(--bw-serif);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--bw-gold-hi);
}

.btn-roll {
    min-width: 240px;
}

/* ------------------------------------------------------------------
   17. ADMIN SHELL (admin.php)
   The control room gets a denser, colder plate than the public pages.
   ------------------------------------------------------------------ */
.admin-page .content-area-box {
    clip-path: none;
    overflow: hidden;
}

.admin-top-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 22px;
    background: linear-gradient(180deg, rgba(212, 175, 106, .08), transparent);
    border-bottom: 1px solid var(--bw-line);
}

.stats-left,
.stats-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.stat-badge {
    padding: 5px 12px;
    color: var(--bw-parchment);
    background: rgba(4, 5, 10, .7);
    border: 1px solid var(--bw-line);
}

.bg-green {
    color: #8fe6a6;
    border-color: rgba(70, 209, 107, .35);
}

.bg-blue {
    color: var(--bw-ice-hi);
    border-color: rgba(74, 163, 255, .35);
}

.stats-right {
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bw-muted);
}

.stats-right b {
    color: var(--bw-gold);
    font-weight: 700;
}

/* Admin sub-navigation. */
.admin-horizontal-nav {
    background: linear-gradient(180deg, var(--bw-stone), var(--bw-abyss));
    border-bottom: 1px solid var(--bw-line);
}

.admin-horizontal-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    max-width: var(--bw-shell);
    margin: 0 auto;
    padding: 0 22px;
}

.admin-horizontal-nav a {
    display: block;
    padding: 13px 18px;
    font-family: var(--bw-serif);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--bw-muted);
    border-bottom: 2px solid transparent;
    transition: color .25s var(--bw-ease), border-color .25s var(--bw-ease);
}

.admin-horizontal-nav a:hover {
    color: var(--bw-gold);
}

.admin-horizontal-nav a.active {
    color: var(--bw-gold-hi);
    border-bottom-color: var(--bw-gold);
    background: linear-gradient(180deg, rgba(212, 175, 106, .10), transparent);
}

.admin-has-dropdown {
    position: relative;
}

.admin-dropdown-menu {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 50;
    display: none;
    min-width: 230px;
    list-style: none;
    padding: 6px 0;
    background: linear-gradient(180deg, var(--bw-panel-hi), var(--bw-abyss));
    border: 1px solid var(--bw-line-mid);
    box-shadow: 0 20px 46px rgba(0, 0, 0, .9);
}

.admin-has-dropdown:hover .admin-dropdown-menu {
    display: block;
}

.admin-dropdown-menu a {
    padding: 10px 18px;
    border-bottom: 0;
    
}

.admin-dropdown-menu a:hover {
    background: rgba(212, 175, 106, .08);
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 16px 22px 0;
    border-bottom: 1px solid var(--bw-line);
}

.tab-link {
    padding: 10px 18px;
    font-family: var(--bw-serif);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--bw-muted);
    border-bottom: 2px solid transparent;
}

.tab-link.active {
    color: var(--bw-gold-hi);
    border-bottom-color: var(--bw-gold);
}

.admin-content-area {
    padding: 22px;
    max-width: 100%;
    overflow-x: hidden;
}

.admin-view-title {
    margin-bottom: 18px;
    font-family: var(--bw-display);
    font-size: 19px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bw-gold);
}

.admin-error {
    margin-bottom: 16px;
    padding: 12px 16px;
    color: #ffc9c1;
    background: rgba(224, 49, 39, .10);
    border: 1px solid rgba(224, 49, 39, .4);
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-family: var(--bw-serif);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--bw-gold);
    background: linear-gradient(180deg, var(--bw-plate), #0b0d14);
    border: 1px solid var(--bw-line-mid);
    cursor: url('../assets/03.png'), pointer;
    transition: color .25s var(--bw-ease), border-color .25s var(--bw-ease);
}

.admin-btn:hover {
    color: var(--bw-gold-hi);
    border-color: var(--bw-line-hot);
}

/* Admin panels: every card shares one stone plate. */
.owner-info,
.results-header,
.items-search-card,
.logs-filter-card,
.item-editor-card,
.char-edit-section,
.chars-top-filters,
.char-actions-bar,
.guild-overview-container,
.guilds-section {
    margin-bottom: 18px;
    padding: 16px 20px;
    background: linear-gradient(180deg, rgba(212, 175, 106, .05), transparent);
    border: 1px solid var(--bw-line);
}

.item-editor-title,
.char-edit-header,
.char-title-section h1 {
    margin-bottom: 14px;
    font-family: var(--bw-serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--bw-gold);
}

.char-title-section p {
    font-size: 12.5px;
    color: var(--bw-muted);
}

.owner-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.owner-info .label,
.editor-label,
.stat-label,
.search-label {
    font-family: var(--bw-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--bw-gold-lo);
}

.owner-info .value {
    font-weight: 600;
    color: var(--bw-parchment);
}

.owner-info .sub-value {
    font-size: 12px;
    color: var(--bw-muted);
}

.editor-grid,
.char-input-group,
.stat-input-group,
.date-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.stat-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(212, 175, 106, .08);
}

.stat-v-base,
.stat-v-bonus {
    font-weight: 700;
    color: var(--bw-gold-hi);
    font-variant-numeric: tabular-nums;
}

.stat-v-bonus {
    color: #8fe6a6;
}

.req-level,
.faction-badge,
.enchant-badge,
.gem-badge {
    display: inline-block;
    padding: 2px 9px;
    font-family: var(--bw-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bw-gold);
    background: rgba(212, 175, 106, .1);
    border: 1px solid var(--bw-line);
}

.uid-cell,
.item-id-cell,
.date-cell,
.time-relative {
    font-variant-numeric: tabular-nums;
    font-size: 12.5px;
    color: var(--bw-muted);
}

.item-name-cell {
    font-weight: 600;
    color: var(--bw-parchment);
}

.blacklist-scroll {
    max-height: 460px;
    overflow-y: auto;
}

.chars-table-container,
.users-table-container,
.inventory-table-container,
.styled-inventory-container,
.styled-inventory {
    overflow-x: auto;
}

.filter-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--bw-text);
    cursor: url('../assets/03.png'), pointer;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    gap: 8px;
}

.inventory-slot,
.inventory-item {
    aspect-ratio: 1;
    background: linear-gradient(180deg, var(--bw-plate), #0b0d14);
    border: 1px solid var(--bw-line);
}

.inventory-icon-btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--bw-gold);
    background: linear-gradient(180deg, var(--bw-plate), #0b0d14);
    border: 1px solid var(--bw-line);
    cursor: url('../assets/03.png'), pointer;
}

.slider {
    width: 100%;
    accent-color: var(--bw-gold);
    cursor: url('../assets/03.png'), pointer;
}

/* ------------------------------------------------------------------
   18. REMAINING NAMED PARTS
   Smaller components that only appear in one view each.
   ------------------------------------------------------------------ */
.admin-container {
    max-width: 100%;
}

.chars-page-header,
.char-edit-form,
.item-editor-card {
    display: block;
}

.char-tabs,
.admin-tabs {
    display: flex;
}

.char-tab {
    padding: 10px 18px;
    font-family: var(--bw-serif);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--bw-muted);
    border-bottom: 2px solid transparent;
}

.char-tab.active {
    color: var(--bw-gold-hi);
    border-bottom-color: var(--bw-gold);
}

.drop-header-box,
.item-match-row,
.char-edit-form {
    margin-bottom: 16px;
    padding: 14px 18px;
    background: linear-gradient(180deg, rgba(212, 175, 106, .05), transparent);
    border: 1px solid var(--bw-line);
}

.header-main {
    font-family: var(--bw-serif);
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--bw-parchment);
}

.item-name-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-stats-tooltip,
.map-tooltip {
    position: absolute;
    z-index: 60;
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--bw-text);
    background: linear-gradient(180deg, var(--bw-panel-hi), var(--bw-abyss));
    border: 1px solid var(--bw-line-mid);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .9);
}

.map-hover {
    position: relative;
    cursor: url('../assets/03.png'), help;
    text-decoration: underline dotted var(--bw-gold-lo);
    text-underline-offset: 3px;
}

.round {
    border-radius: 50%;
}

.badge-value {
    color: var(--bw-gold-hi);
    font-weight: 700;
}

.editor-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.sub-char-list {
    margin-top: 18px;
}

/* ------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------ */
@media (max-width: 1280px) {
    .bw-stage {
        grid-template-columns: 232px minmax(0, 1fr) 232px;
    }

    .bw-nav a {
        padding: 15px 17px;
        font-size: 10.5px;
        letter-spacing: .14em;
    }
}

@media (max-width: 1024px) {
    .bw-stage {
        grid-template-columns: minmax(0, 1fr);
    }

    .bw-col-side {
        position: static;
    }

    .bw-classes {
        grid-template-columns: 1fr 1fr;
    }

    .bw-hero-stage {
        flex-direction: column;
        gap: 22px;
    }

    .bw-orb {
        width: 104px;
        height: 104px;
    }

    /* Legacy pages share the shell's single-column collapse. */
    .admin-horizontal-nav ul {
        padding: 0 14px;
    }

    .drop-tooltip {
        width: 280px;
    }
}

@media (max-width: 720px) {

    .bw-shell {
        padding: 0 14px;
    }

    .main-wrapper {
        padding: 18px 14px 0;
    }

    .content-header {
        flex-wrap: wrap;
        padding: 15px 18px;
    }

    .content-body {
        padding: 18px;
    }

    .content-header > span,
    .content-header > a,
    .content-header-actions {
        margin-left: 0;
    }

    .content-header-actions {
        gap: 12px;
    }

    .account-btn {
        height: 150px;
    }

    .dl-btn {
        flex-wrap: wrap;
        gap: 12px;
    }

    .dl-action {
        width: 100%;
    }

    .info-list li {
        flex-direction: column;
        gap: 4px;
    }

    .info-list li .val {
        text-align: left;
    }

    .search-container {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        width: 100%;
        max-width: none;
    }

    .drop-tooltip {
        position: static;
        display: block;
        width: auto;
        margin-top: 8px;
        transform: none;
    }

    .item-tooltip {
        left: auto;
        right: 0;
        transform: none;
    }

    .roulette-track img {
        width: 74px;
        height: 74px;
    }

    .sub-char-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .bw-topbar-inner {
        padding: 0 14px;
        gap: 12px;
        overflow-x: auto;
    }

    .bw-topbar-right {
        gap: 12px;
        font-size: 10px;
    }

    .bw-nav ul {
        padding: 0 8px;
    }

    .bw-nav a {
        padding: 13px;
        font-size: 10px;
        letter-spacing: .08em;
    }

    .bw-hero-full {
        min-height: 380px;
        padding: 44px 0 34px;
    }

    .bw-readout {
        flex-wrap: wrap;
    }

    .bw-readout-item {
        flex: 1 1 50%;
        border-left: 0;
        border-top: 1px solid rgba(212, 175, 106, .10);
    }

    .bw-readout-item:first-child {
        border-top: 0;
    }

    .bw-classes {
        grid-template-columns: 1fr;
    }

    .bw-btn {
        min-width: 0;
        width: 100%;
    }

    .bw-hero-cta {
        flex-direction: column;
    }

    .content-body {
        padding: 16px;
    }

    /* Fshih sticky header në ekrane të vogla për të evituar mbivendosje me sticky topbar */
    .ranking-table th,
    .chars-table th,
    .char-table th,
    .dashboard-table th,
    .server-info-table th,
    .items-results-table th,
    .packages-table th,
    .results-table th,
    .users-table th,
    .char-info-table th {
        position: static;
    }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* ==================================================================
   MOBILE-FRIENDLY PËRMDORËSIM
   Rregullime për ekrane të vogla (< 768px) dhe shumë të vogla (< 400px)
   ================================================================== */

/* ------------------------------------------------------------------
   1. META DHE SCROLL
   ------------------------------------------------------------------ */
html {
    /* Parandalon zoom-in automatik në iOS kur fokusohet një input */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    /* Parandalon scroll horizontal në mobile */
    overflow-x: hidden;
    /* Font bazë më i lexueshëm në mobile */
    font-size: 14px;
    line-height: 1.7;
}

/* ------------------------------------------------------------------
   2. INPUT-ET DHE BUTONAT (touch-friendly)
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
    /* Të gjitha input-et, select-et dhe textarea-t duhet të kenë
       font-size >= 16px për të parandaluar zoom-in automatik në iOS */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    input[type="search"],
    select,
    textarea,
    .char-input,
    .editor-input,
    .table-filter-input,
    .table-filter-select,
    .search-input,
    .search-field {
        font-size: 16px !important;
        min-height: 44px; /* Minimum touch target (Apple guideline) */
        padding: 12px 14px !important;
    }

    /* Butonat duhet të kenë min-height për touch */
    .bw-btn,
    .btn-submit,
    .btn-login,
    .btn-action,
    .btn-search,
    .btn-small,
    .btn-delete,
    .btn-edit,
    .btn-kick,
    .admin-btn,
    .btn-reset-filters,
    .dl-action,
    .pill {
        min-height: 44px;
        padding: 12px 20px !important;
        font-size: 12px !important;
    }

    /* Butonat ikonë-shumë të vegjël duhen zmadhuar */
    .inventory-icon-btn {
        width: 44px;
        height: 44px;
    }
}

/* ------------------------------------------------------------------
   3. HEADER / TOPBAR / NAVIGIMI
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
    /* Topbar-i lejohet të bëhet scroll horizontal */
    .bw-topbar-inner {
        height: auto !important;
        min-height: 38px;
        padding: 8px 14px !important;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .bw-topbar-inner::-webkit-scrollbar {
        display: none;
    }

    .bw-topbar a {
        white-space: nowrap;
        font-size: 10px !important;
    }

    /* Navigimi kryesor: scroll horizontal me tabs */
    .bw-nav ul {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start !important;
        padding: 0 8px !important;
    }

    .bw-nav ul::-webkit-scrollbar {
        display: none;
    }

    .bw-nav a {
        padding: 14px 14px !important;
        font-size: 10px !important;
        letter-spacing: .08em !important;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Hero/Wordmark më kompakt */
    .bw-hero-full {
        min-height: 320px !important;
        padding: 32px 0 26px !important;
    }

    .bw-wordmark .bw-shaiya {
        font-size: clamp(36px, 12vw, 60px) !important;
    }

    .bw-wordmark .bw-dragons {
        font-size: 10px !important;
        letter-spacing: .4em !important;
        margin-right: -.4em;
    }

    .bw-slogan {
        font-size: 9px !important;
        letter-spacing: .3em !important;
    }

    /* Orb-et e fraksioneve më të vogla */
    .bw-orb {
        width: 80px !important;
        height: 80px !important;
    }

    .bw-orb-label {
        font-size: 12px !important;
    }

    .bw-orb-pct {
        font-size: 14px !important;
    }

    .bw-hero-stage {
        gap: 16px !important;
    }

    /* CTA-të stack vertikalisht dhe të plota */
    .bw-hero-cta {
        flex-direction: column;
        gap: 10px;
    }

    .bw-hero-cta .bw-btn {
        width: 100%;
    }

    /* Readout stats: 2 kolona */
    .bw-readout {
        flex-wrap: wrap;
    }

    .bw-readout-item {
        flex: 1 1 50% !important;
        max-width: none !important;
        border-left: 0;
        border-top: 1px solid rgba(212, 175, 106, .10);
        padding: 12px 14px !important;
    }

    .bw-readout-item:nth-child(odd) {
        border-left: 0;
    }

    .bw-readout-item:nth-child(even) {
        border-left: 1px solid rgba(212, 175, 106, .10) !important;
    }

    .bw-readout-item:nth-child(-n+2) {
        border-top: 0;
    }

    .bw-readout-item dd {
        font-size: 16px !important;
    }
}

/* ------------------------------------------------------------------
   4. LAYOUT KRYESOR (grid → stack)
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
    .bw-shell,
    .main-wrapper {
        padding: 0 12px !important;
    }

    /* Three-column stage → single column */
    .bw-stage {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 14px 0 0 !important;
    }

    /* Sidebar-i nuk mbetet sticky në mobile */
    .bw-col-side {
        position: static !important;
        gap: 14px;
    }

    /* Klasat: stack vertikalisht */
    .bw-classes {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 18px 0 0 !important;
    }

    .bw-class-art {
        height: 220px !important;
    }

    .bw-class-body h3 {
        font-size: 16px !important;
    }

    .bw-class-cta {
        padding: 28px 20px !important;
    }

    .bw-class-cta h3 {
        font-size: 19px !important;
    }

    /* Content header */
    .content-header {
        flex-wrap: wrap;
        padding: 14px 16px !important;
        gap: 10px;
    }

    .content-header h2 {
        font-size: 14px !important;
    }

    .content-header > span,
    .content-header > a,
    .content-header-actions {
        margin-left: 0 !important;
        width: 100%;
    }

    .content-body {
        padding: 14px !important;
    }

    /* Panels */
    .bw-collar {
        --bw-notch: 12px;
    }

    .bw-news-item {
        padding: 14px 14px 14px 20px !important;
    }

    .bw-news-item h3 {
        font-size: 14px !important;
    }

    .bw-news-copy {
        font-size: 13px !important;
    }
}

/* ------------------------------------------------------------------
   5. TABELAT MOBILE
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
    /* Tabelat: scroll horizontal i qetë */
    .table-scroll-wrap,
    .chars-table-container,
    .users-table-container,
    .inventory-table-container,
    .styled-inventory-container,
    .styled-inventory {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* Hije anash për të treguar scroll-in */
        background:
            linear-gradient(to right, rgba(212, 175, 106, .08), transparent 8px) 0 0 / 100% 100% no-repeat,
            linear-gradient(to left, rgba(212, 175, 106, .08), transparent 8px) 100% 0 / 100% 100% no-repeat;
    }

    /* Tabela më kompakte në mobile */
    .ranking-table th,
    .chars-table th,
    .users-table th,
    .char-info-table th {
        padding: 10px 8px !important;
        font-size: 9px !important;
        letter-spacing: .1em !important;
        /* Heq sticky në mobile sepse shkakton mbivendosje me topbar */
        position: static !important;
    }

    .ranking-table td,
    .chars-table td,
    .users-table td,
    .char-info-table td {
        padding: 10px 8px !important;
        font-size: 12px !important;
    }

    /* Min-width më i vogël për mobile */
    .ranking-table,
    .chars-table,
    .users-table,
    .char-info-table {
        min-width: 700px !important;
    }

    /* Server info table nuk ka nevojë për scroll */
    .server-info-table,
    .bw-table {
        min-width: 0 !important;
    }

    .server-info-table th,
    .server-info-table td {
        font-size: 11px !important;
        padding: 8px 6px !important;
    }
}

/* ------------------------------------------------------------------
   6. FORMAT / MODAL
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
    .bw-modal {
        max-width: 100% !important;
        max-height: 95vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        clip-path: none !important;
    }

    .bw-modal-overlay {
        padding: 0 !important;
    }

    .bw-modal-head {
        padding: 14px 16px !important;
    }

    .bw-modal-head h2 {
        font-size: 14px !important;
    }

    .bw-modal-body {
        padding: 16px !important;
    }

    #modal-editor-container {
        height: 260px !important;
    }

    /* Filtrat e tabelave në mobile */
    .filter-bar {
        padding: 12px 14px !important;
    }

    .filter-bar-groups {
        gap: 0 !important;
    }

    .filter-group {
        flex: 1 1 100% !important;
    }

    .filter-group + .filter-group {
        padding-left: 0 !important;
        padding-top: 14px !important;
        margin-top: 14px !important;
        border-left: 0 !important;
        border-top: 1px solid var(--bw-line) !important;
    }

    .pill {
        padding: 8px 12px !important;
        font-size: 11px !important;
    }
}

/* ------------------------------------------------------------------
   7. ADMIN PANEL MOBILE
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
    .admin-top-stats {
        padding: 12px 14px !important;
        gap: 10px !important;
    }

    .stats-left,
    .stats-right {
        gap: 8px !important;
        width: 100%;
    }

    .stat-badge {
        font-size: 10px !important;
        padding: 4px 10px !important;
    }

    .stats-right {
        font-size: 10px !important;
    }

    /* Nav admin horizontal scroll */
    .admin-horizontal-nav ul {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start !important;
        padding: 0 8px !important;
    }

    .admin-horizontal-nav ul::-webkit-scrollbar {
        display: none;
    }

    .admin-horizontal-nav a {
        padding: 12px 14px !important;
        font-size: 9.5px !important;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .admin-content-area {
        padding: 14px !important;
    }

    /* Dropdown menus në admin: bëhen inline në mobile */
    .admin-has-dropdown:hover .admin-dropdown-menu,
    .admin-has-dropdown .admin-dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        margin-top: 4px;
        border: 0;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
    }

    .admin-has-dropdown:focus-within .admin-dropdown-menu {
        display: block;
    }

    /* Dropdown items më të mëdha */
    .admin-dropdown-menu a {
        padding: 12px 16px !important;
        font-size: 11px !important;
    }
}

/* ------------------------------------------------------------------
   8. PROFILE / PLAYER / ACCOUNT
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
    .profile-container {
        padding: 16px !important;
    }

    .profile-header h2 {
        font-size: 19px !important;
    }

    .sub-char-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 12px 14px !important;
    }

    .char-details {
        gap: 10px !important;
        font-size: 11.5px !important;
    }

    /* Account grid */
    .account-grid {
        grid-template-columns: 1fr !important;
    }

    .account-btn {
        height: 100px !important;
    }

    .account-btn span {
        font-size: 13px !important;
    }
}

/* ------------------------------------------------------------------
   9. ORB / FACTION / ELEMENTE DEKORATIVE
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
    /* Fshih elementet dekorative që marrin hapësirë në mobile */
    .bw-slogan,
    .bw-rule {
        /* Mund t'i lini të dukshme nëse dëshironi */
    }

    /* Drop tooltip në bosses */
    .drop-tooltip {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        top: 50% !important;
        bottom: auto !important;
        width: auto !important;
        max-width: none !important;
        transform: translateY(-50%) !important;
        z-index: 9999 !important;
    }

    .drop-tooltip::before {
        display: none !important;
    }

    .drop-list-container {
        max-height: 60vh !important;
    }
}

/* ------------------------------------------------------------------
   10. EKRAN SHUMË I VOGËL (< 400px)
   ------------------------------------------------------------------ */
@media (max-width: 400px) {
    .bw-shell,
    .main-wrapper {
        padding: 0 8px !important;
    }

    .content-body {
        padding: 10px !important;
    }

    .bw-nav a {
        padding: 12px 10px !important;
        font-size: 9px !important;
        letter-spacing: .05em !important;
    }

    .admin-horizontal-nav a {
        padding: 10px 10px !important;
        font-size: 8.5px !important;
    }

    .bw-wordmark .bw-shaiya {
        font-size: 32px !important;
    }

    .bw-readout-item dd {
        font-size: 14px !important;
    }

    .bw-readout-item dt {
        font-size: 8px !important;
        letter-spacing: .18em !important;
    }

    .bw-btn {
        padding: 12px 16px !important;
        font-size: 11px !important;
        letter-spacing: .14em !important;
    }
}

/* ------------------------------------------------------------------
   11. ORIENTIM LANDSCAPE NË MOBILE (lartësi e vogël)
   ------------------------------------------------------------------ */
@media (max-height: 500px) and (orientation: landscape) {
    .bw-hero-full {
        min-height: 260px !important;
        padding: 20px 0 16px !important;
    }

    .bw-modal {
        max-height: 100vh !important;
    }
}

/* ------------------------------------------------------------------
   12. TOUCH DEVICE SPECIFIC
   ------------------------------------------------------------------ */
@media (hover: none) and (pointer: coarse) {
    /* Në pajisje touch, hiqni efektet hover që shkaktojnë "sticky" states */
    .bw-btn:hover,
    .account-btn:hover,
    .guild-cta:hover,
    .pill:hover,
    .dl-btn:hover {
        transform: none !important;
    }

    /* Zvogëlo animacionet për performancë */
    .bw-orb::before {
        animation-duration: 8s;
    }

    /* Rrit tap targets */
    .bw-links a {
        min-height: 48px;
        padding: 14px 14px 14px 22px !important;
    }

    .bw-footer-links a {
        padding: 8px 4px;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }
}

/* ==================================================================
   INTERACTIVE LED BORDER — REGISTER / CHARACTER BUTTONS
   Uses an animated CSS custom property for a real rotating border.
   Keeps the existing .bw-btn::before hover-sweep intact.
   ================================================================== */

/* Animate the angle itself (supported by modern Chromium browsers). */
@property --bw-led-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

a.bw-btn[href*="register.php"] {
    --bw-led-angle: 0deg;

    /* Two background layers: the button surface and the rotating border. */
    border: 1px solid transparent;
    background:
        linear-gradient(180deg, var(--bw-plate), #0b0d14) padding-box,
        conic-gradient(
            from var(--bw-led-angle),
            rgba(212, 175, 106, .30) 0deg,
            rgba(212, 175, 106, .30) 285deg,
            rgba(212, 175, 106, .55) 310deg,
            #d4af6a 330deg,
            #ffffff 342deg,
            #f7e6bb 350deg,
            rgba(212, 175, 106, .30) 360deg
        ) border-box;

    animation: bw-led-border-rotate 2.4s linear infinite;
    transition:
        color .3s var(--bw-ease),
        box-shadow .3s var(--bw-ease),
        transform .3s var(--bw-ease);
}

/* Do not let a legacy pseudo-element rule hide the animated border. */
a.bw-btn[href*="register.php"]::after {
    content: none;
}

/* Keep the original angled Shaiya button silhouette. */
a.bw-btn[href*="register.php"]:hover {
    border-color: transparent;
    color: var(--bw-gold-hi);
    box-shadow:
        0 0 8px rgba(212, 175, 106, .42),
        0 0 22px rgba(212, 175, 106, .22),
        0 10px 26px rgba(0, 0, 0, .65);
    transform: translateY(-2px);
    animation-duration: 1.1s;
}

/* Red LED palette for the primary action. */
a.bw-btn-primary[href*="register.php"] {
    background:
        linear-gradient(180deg, #a11d1d, #4d0a0a) padding-box,
        conic-gradient(
            from var(--bw-led-angle),
            rgba(224, 49, 39, .30) 0deg,
            rgba(224, 49, 39, .30) 285deg,
            rgba(224, 49, 39, .60) 310deg,
            #e03127 330deg,
            #ffffff 342deg,
            #ff7770 350deg,
            rgba(224, 49, 39, .30) 360deg
        ) border-box;
    color: #fff0ec;
}

a.bw-btn-primary[href*="register.php"]:hover {
    box-shadow:
        0 0 10px rgba(224, 49, 39, .50),
        0 0 24px rgba(224, 49, 39, .28),
        0 10px 26px rgba(0, 0, 0, .65);
    animation-duration: 1.1s;
}

@keyframes bw-led-border-rotate {
    from {
        --bw-led-angle: 0deg;
    }
    to {
        --bw-led-angle: 360deg;
    }
}

/* Respect users who have requested reduced motion. */
@media (prefers-reduced-motion: reduce) {
    a.bw-btn[href*="register.php"] {
        animation: none;
        --bw-led-angle: 0deg;
        border-color: var(--bw-gold);
    }

    a.bw-btn-primary[href*="register.php"] {
        border-color: var(--bw-blood-hi);
    }
}
