/* ===================================================================
   Project-Eclipse - World of Warcraft themed stylesheet
   Warm gold-and-parchment medieval aesthetic: dark portal background,
   Cinzel/Marcellus (WoW-style) type, gem dividers, corner ornaments, spark motes.
   =================================================================== */

/* World of Warcraft style faces: Cinzel (epic Roman caps, title/logo feel) for
   headings, Marcellus (a close Friz Quadrata stand-in) for body text. */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Marcellus&display=swap');

:root {
    --ink:        #0a0a12;
    --gold:       #c8a84b;
    --gold-soft:  #f5e6b8;
    --gold-line:  #c8a84b;
    --gold-deep:  #5a3e10;
    --parch:      #e8d5a0;
    --parch-dim:  #c2ae80;
    --parch-ink:  #2c2113;
    --text:       #e8d5a0;
    --muted:      #9b8a5c;
    --good:       #60c080;
    --bad:        #d8635a;
    --radius:     4px;
    --shadow:     0 10px 30px rgba(0,0,0,.6);
    --font-head:  'Cinzel', 'Trajan Pro', 'Georgia', serif;
    --font-body:  'Marcellus', 'Georgia', 'Times New Roman', serif;
}

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

body {
    background-color: var(--ink);
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(80,40,10,0.35) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    min-height: 100vh;
}

/* vignette overlay */
.bg-veil {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background: radial-gradient(120% 120% at 50% 0%, transparent 58%, rgba(0,0,0,.6) 100%);
}

/* floating spark motes (ambient) */
.sparks { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.spark {
    position: absolute; width: 2px; height: 2px; border-radius: 50%;
    background: var(--gold); opacity: 0;
    animation: float-up var(--dur, 8s) var(--delay, 0s) ease-in infinite;
}
@keyframes float-up {
    0%   { opacity: 0; transform: translateY(0) scale(1); }
    10%  { opacity: .7; }
    90%  { opacity: .3; }
    100% { opacity: 0; transform: translateY(-118vh) scale(.3); }
}

.wrap { width: min(1160px, 92%); margin: 0 auto; position: relative; z-index: 1; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-soft); }

h1, h2, h3 { font-family: var(--font-head); letter-spacing: .04em; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono  { font-family: 'Consolas', monospace; font-size: .9em; color: var(--gold-soft); }
code { font-family: 'Consolas', monospace; color: var(--gold-soft); background: rgba(0,0,0,.4); padding: .05rem .35rem; border-radius: 3px; }

/* ---------- Shared gold-trim panel treatment ---------- */
.status-panel, .cta-panel, .info-card, .form-card, .news-card, .auth-card,
.stat-card, .step-card, .mirror-card, .error-card, .data-table {
    background: linear-gradient(180deg, rgba(20,16,30,.9), rgba(10,9,16,.94));
    border: 1px solid var(--gold-deep);
    border-radius: var(--radius);
    box-shadow:
        0 0 0 1px rgba(200,168,75,.1),
        inset 0 0 60px rgba(0,0,0,.55),
        var(--shadow);
}

/* gilded corner brackets on the major panels (index.html motif) */
.status-panel, .cta-panel, .info-card, .form-card, .auth-card, .error-card { position: relative; }
.status-panel::before, .cta-panel::before, .info-card::before, .form-card::before, .auth-card::before, .error-card::before,
.status-panel::after, .cta-panel::after, .info-card::after, .form-card::after, .auth-card::after, .error-card::after {
    content: ''; position: absolute; width: 14px; height: 14px;
    border-color: var(--gold); border-style: solid; opacity: .6; pointer-events: none;
}
.status-panel::before, .cta-panel::before, .info-card::before, .form-card::before, .auth-card::before, .error-card::before {
    top: 6px; left: 6px; border-width: 2px 0 0 2px;
}
.status-panel::after, .cta-panel::after, .info-card::after, .form-card::after, .auth-card::after, .error-card::after {
    top: 6px; right: 6px; border-width: 2px 2px 0 0;
}

/* ---------- Header / nav ---------- */
.site-header {
    background: linear-gradient(180deg, rgba(18,20,28,.97), rgba(8,9,13,.92));
    border-bottom: 2px solid var(--gold-deep);
    box-shadow: 0 2px 0 #000, 0 6px 18px rgba(0,0,0,.6);
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(5px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-size: 1.4rem; }
.brand-mark { color: var(--gold); text-shadow: 0 0 16px rgba(255,212,94,.6); font-size: 1.55rem; }
.brand-text { color: var(--gold); font-weight: 700; text-shadow: 0 2px 3px #000; text-transform: uppercase; letter-spacing: .07em; }
.main-nav { display: flex; align-items: center; gap: 1.05rem; }
.main-nav a { color: var(--parch); font-weight: 600; font-size: .92rem; text-transform: uppercase; letter-spacing: .05em; text-shadow: 0 1px 2px #000; }
.main-nav a:hover { color: var(--gold); }
.main-nav .discord { color: #8ea1ff; }
.main-nav .admin-link { color: var(--gold); }
.inline-logout { display: inline; margin: 0; }
.link-button { background: none; border: none; color: var(--muted); cursor: pointer; font: inherit; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.link-button:hover { color: var(--gold); }

/* ---------- Buttons (WoW bronze/gold) ---------- */
.btn {
    display: inline-block; padding: .7rem 1.5rem; border-radius: 4px; font-weight: 700;
    cursor: pointer; font-size: .92rem; text-align: center; text-transform: uppercase; letter-spacing: .08em;
    border: 1px solid var(--gold-line); text-shadow: 0 1px 2px #000;
    transition: transform .08s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
    background: linear-gradient(180deg, #6a571f 0%, #463711 55%, #2a2009 100%);
    color: var(--gold);
    box-shadow: inset 0 1px 0 rgba(255,224,150,.3), inset 0 -3px 7px rgba(0,0,0,.55), 0 3px 10px rgba(0,0,0,.5);
}
.btn-gold:hover { color: #fff3d2; border-color: var(--gold); box-shadow: inset 0 1px 0 rgba(255,224,150,.45), 0 0 16px rgba(255,212,94,.4); }
.btn-ghost { background: linear-gradient(180deg, rgba(40,44,60,.9), rgba(18,20,28,.95)); color: var(--parch); border-color: var(--gold-deep); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { display: block; width: 100%; }
.btn-nav {
    background: linear-gradient(180deg, #6a571f, #2a2009); color: var(--gold) !important;
    padding: .45rem 1rem; border-radius: 4px; border: 1px solid var(--gold-line);
    box-shadow: inset 0 1px 0 rgba(255,224,150,.3); text-shadow: 0 1px 2px #000;
}
.btn-nav:hover { border-color: var(--gold); box-shadow: 0 0 14px rgba(255,212,94,.4); }
.btn-sm {
    display: inline-block; padding: .32rem .7rem; border-radius: 4px; font-size: .8rem; font-weight: 700;
    background: linear-gradient(180deg, #2a2d3c, #171922); border: 1px solid var(--gold-deep); color: var(--parch);
    cursor: pointer; text-transform: uppercase; letter-spacing: .04em;
}
.btn-sm:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger { color: #ffb3ad; border-color: #6c2f2f; }
.btn-danger:hover { background: #3a1a1a; color: #ff7a6e; border-color: var(--bad); }

.site-main { padding: 2rem 0 3rem; min-height: 60vh; }

/* ---------- Flash ---------- */
.flash { padding: .8rem 1.1rem; border-radius: 4px; margin-bottom: 1rem; border: 1px solid; font-weight: 600; box-shadow: var(--shadow); }
.flash-success { background: rgba(91,209,106,.1); border-color: var(--good); color: #c6f5cd; }
.flash-error   { background: rgba(224,86,75,.12); border-color: var(--bad); color: #ffc1bb; }

/* ---------- Ornamental section titles ---------- */
.section-title {
    font-size: 1.5rem; color: var(--gold); margin: 0 0 1.1rem; text-transform: uppercase; letter-spacing: .06em;
    text-shadow: 0 2px 4px #000; padding-bottom: .55rem; position: relative;
    border-bottom: 1px solid transparent;
    background: linear-gradient(90deg, transparent, var(--gold-deep), transparent) bottom / 100% 1px no-repeat;
}
.section-title.ornate { text-align: center; }
.section-title.ornate::after {
    content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px;
    transform: translateX(-50%) rotate(45deg); background: var(--gold); box-shadow: 0 0 10px rgba(255,212,94,.7);
    border: 1px solid #000;
}

/* ---------- Hero ---------- */
.hero {
    border: 1px solid var(--gold-deep); border-radius: 6px; padding: 2.1rem 2rem; margin-bottom: 2rem; text-align: center;
    background:
        radial-gradient(620px 280px at 50% -12%, rgba(200,168,75,.18), transparent 70%),
        radial-gradient(560px 360px at 50% 122%, rgba(80,40,10,.28), transparent 70%),
        linear-gradient(180deg, rgba(18,15,28,.9), rgba(8,8,14,.95));
    box-shadow: 0 0 0 1px rgba(200,168,75,.12), inset 0 0 70px rgba(0,0,0,.6), var(--shadow);
    position: relative;
}
/* four gilded corner brackets for the home/download hero */
.frame-corner { position: absolute; width: 16px; height: 16px; border-color: var(--gold); border-style: solid; opacity: .6; pointer-events: none; }
.frame-corner.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.frame-corner.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.frame-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.frame-corner.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.hero-emblem { width: 46px; height: 46px; margin: 0 auto .55rem; filter: drop-shadow(0 0 8px rgba(200,168,75,.45)); }
.hero-emblem svg { display: block; width: 100%; height: 100%; }
.gem-rule { display: flex; align-items: center; justify-content: center; gap: .5rem; max-width: 300px; margin: 0 auto .7rem; }
.gem-rule .rule { flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); }
.gem-rule .gem { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 6px rgba(200,168,75,.6); }
.gem-rule .gem.bright { background: var(--gold-soft); box-shadow: 0 0 9px var(--gold-soft); }
.hero-eyebrow { margin: 0 0 .15rem; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); opacity: .85; }
.hero-title { font-size: 2.5rem; margin: .1rem 0 .4rem; color: var(--gold-soft); letter-spacing: .04em;
    text-shadow: 0 2px 4px #000, 0 0 30px rgba(200,168,75,.35); }
.hero-tagline { font-size: 1.02rem; color: var(--parch-dim); font-style: italic; margin: 0 auto 1.35rem; max-width: 540px; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Home grid ---------- */
.home-grid { display: grid; grid-template-columns: 1fr 330px; gap: 1.8rem; align-items: start; }

/* ---------- News cards (quest-log feel) ---------- */
.news-card { padding: 1.3rem 1.45rem; margin-bottom: 1.1rem; }
.news-card-title { margin: 0 0 .3rem; font-size: 1.3rem; }
.news-card-title a { color: var(--gold-soft); text-shadow: 0 1px 2px #000; }
.news-card-title a:hover { color: var(--gold); }
.news-meta { color: var(--muted); font-size: .85rem; margin: 0 0 .7rem; }
.news-excerpt { margin: 0 0 .7rem; }
.read-more { font-weight: 700; color: var(--gold-soft); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; }
.read-more:hover { color: var(--gold); }
.view-all { display: inline-block; margin-top: .4rem; font-weight: 700; color: var(--gold-soft); }

/* ---------- Sidebar / panels ---------- */
.sidebar { display: flex; flex-direction: column; gap: 1.2rem; }
.status-panel, .cta-panel, .info-card, .form-card { padding: 1.2rem 1.3rem; }
.panel-title {
    margin: 0 0 .9rem; font-size: 1.05rem; color: var(--gold); text-transform: uppercase; letter-spacing: .06em;
    text-shadow: 0 1px 2px #000; padding-bottom: .5rem;
    background: linear-gradient(90deg, var(--gold-deep), transparent) bottom / 100% 1px no-repeat;
}
.status-row { display: flex; justify-content: space-between; align-items: center; padding: .4rem 0; border-bottom: 1px dashed rgba(138,106,44,.35); }
.status-row:last-child { border-bottom: none; }
.status-label { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; }
.status-value { font-weight: 700; color: var(--parch); }
.status-panel .mono { white-space: nowrap; }
.status-badge { padding: .15rem .65rem; border-radius: 3px; font-size: .78rem; font-weight: 700; border: 1px solid; text-transform: uppercase; letter-spacing: .05em; }
.status-badge.is-online { color: #c6f5cd; border-color: var(--good); background: rgba(91,209,106,.12); box-shadow: 0 0 10px rgba(91,209,106,.25); }
.status-badge.is-offline { color: #ffc1bb; border-color: var(--bad); background: rgba(224,86,75,.12); }
.steps { margin: 0 0 1rem; padding-left: 1.2rem; }
.steps li { margin-bottom: .35rem; }

/* ---------- Auth ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 1.5rem 0; }
.auth-card { width: min(450px, 100%); padding: 2.1rem; }
.auth-title { margin: 0 0 .2rem; color: var(--gold); font-size: 1.7rem; text-transform: uppercase; letter-spacing: .05em; text-shadow: 0 2px 3px #000; }
.auth-sub { color: var(--muted); margin: 0 0 1.4rem; }
.auth-alt { margin-top: 1.2rem; text-align: center; color: var(--muted); }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 1.05rem; }
.field-label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .85rem; color: var(--parch); text-transform: uppercase; letter-spacing: .04em; }
.field-hint { display: block; color: var(--muted); font-size: .8rem; margin-top: .3rem; }
input[type=text], input[type=email], input[type=password], textarea, select {
    width: 100%; padding: .65rem .8rem; border-radius: 4px; background: #0b0d14;
    border: 1px solid var(--gold-deep); color: var(--text); font: inherit;
    box-shadow: inset 0 2px 6px rgba(0,0,0,.5);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: inset 0 2px 6px rgba(0,0,0,.5), 0 0 0 3px rgba(255,212,94,.15); }
textarea { resize: vertical; }
.form-card { padding: 1.5rem; }
.form-card.wide { max-width: 840px; }
.field-row { display: flex; gap: 1rem; }
.field-row .field { flex: 1; }
.form-actions { display: flex; gap: .8rem; margin-top: .5rem; }

/* ---------- Tables ---------- */
.data-table { width: 100%; border-collapse: collapse; overflow: hidden; }
.data-table th, .data-table td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid rgba(138,106,44,.3); vertical-align: top; }
.data-table th { background: linear-gradient(180deg, #2a2410, #1a160a); color: var(--gold); font-family: var(--font-head); font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: none; }
.row-actions { display: flex; gap: .4rem; }
.inline { display: inline; margin: 0; }

/* ---------- Tags (item-quality flavoured) ---------- */
.tag { display: inline-block; padding: .12rem .55rem; border-radius: 3px; font-size: .76rem; font-weight: 700; background: #20212e; border: 1px solid var(--gold-deep); color: var(--gold-soft); margin: 0 .2rem .2rem 0; text-transform: uppercase; letter-spacing: .03em; }
.tag-good { color: #c6f5cd; border-color: var(--good); }
.tag-muted { color: var(--muted); border-color: #3a3a44; }

/* ---------- Admin ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.admin-nav { display: flex; gap: .5rem; margin: 0 0 1.5rem; flex-wrap: wrap; padding-bottom: .6rem;
    background: linear-gradient(90deg, var(--gold-deep), transparent) bottom / 100% 1px no-repeat; }
.admin-nav a { padding: .42rem .95rem; border-radius: 4px; color: var(--parch); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; }
.admin-nav a:hover, .admin-nav a.is-active { background: linear-gradient(180deg, #2a2410, #171206); color: var(--gold); border: 1px solid var(--gold-deep); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { padding: 1.4rem; text-align: center; }
.stat-number { display: block; font-size: 2.3rem; font-family: var(--font-head); color: var(--gold); text-shadow: 0 0 18px rgba(255,212,94,.35); }
.stat-label { color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; }
.quick-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0; }
.kv dt { color: var(--muted); text-transform: uppercase; font-size: .82rem; letter-spacing: .03em; }
.kv dd { margin: 0; font-weight: 700; color: var(--parch); }
.search-bar { display: flex; gap: .6rem; margin-bottom: 1.2rem; }
.search-bar input { max-width: 320px; }
.role-checks { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-bottom: .5rem; }
.check { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; }
.perm-set { border: 1px solid var(--gold-deep); border-radius: 4px; padding: .8rem; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .5rem; background: rgba(0,0,0,.25); }
.perm-set legend { color: var(--gold); padding: 0 .4rem; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; }

/* ---------- Article full (parchment quest text) ---------- */
.article-full { max-width: 820px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 1rem; color: var(--gold-soft); }
.article-title { font-size: 2.2rem; color: var(--gold); margin: 0 0 .3rem; text-transform: uppercase; letter-spacing: .04em; text-shadow: 0 2px 3px #000; }
.article-body {
    margin-top: 1.2rem; font-size: 1.05rem; line-height: 1.75;
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(0,0,0,.05), transparent 70%),
        linear-gradient(180deg, #ecdcb5, #ddc999);
    color: var(--parch-ink);
    border: 1px solid var(--gold-deep); border-radius: 5px; padding: 1.6rem 1.8rem;
    box-shadow: inset 0 0 0 2px rgba(120,90,40,.25), inset 0 0 40px rgba(120,90,40,.18), var(--shadow);
}

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 1.5rem; }
.page-link { padding: .4rem .85rem; border: 1px solid var(--gold-deep); border-radius: 4px; color: var(--parch); font-weight: 700; }
.page-link.is-active, .page-link:hover { background: linear-gradient(180deg, #2a2410, #171206); color: var(--gold); border-color: var(--gold); }

/* ---------- Download page ---------- */
.download-layout { display: grid; grid-template-columns: 1fr 330px; gap: 1.8rem; align-items: start; }
.download-main h2 { margin-top: 1.8rem; }
.download-main h2:first-child { margin-top: 0; }
.connect-steps { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .9rem; }
.step-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.3rem; }
.step-num {
    flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center;
    font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--gold);
    background: linear-gradient(180deg, #2a2410, #120e06); border: 1px solid var(--gold-line); border-radius: 50%;
    box-shadow: inset 0 1px 0 rgba(255,224,150,.25), 0 0 12px rgba(255,212,94,.25); text-shadow: 0 1px 2px #000;
}
.step-body h3 { margin: .15rem 0 .35rem; color: var(--gold-soft); font-size: 1.1rem; }
.step-body p { margin: 0; }
.realmlist-box {
    display: flex; align-items: center; gap: .6rem; margin-top: .7rem; padding: .55rem .7rem;
    background: #0b0d14; border: 1px solid var(--gold-deep); border-radius: 4px; box-shadow: inset 0 2px 6px rgba(0,0,0,.5);
}
.realmlist-box code { flex: 1; background: none; color: var(--gold-soft); font-size: .95rem; }
.btn-copy {
    flex: 0 0 auto; padding: .35rem .8rem; border-radius: 4px; cursor: pointer; font-weight: 700; font-size: .78rem;
    text-transform: uppercase; letter-spacing: .05em; color: var(--gold);
    background: linear-gradient(180deg, #6a571f, #2a2009); border: 1px solid var(--gold-line); text-shadow: 0 1px 2px #000;
}
.btn-copy:hover { border-color: var(--gold); box-shadow: 0 0 12px rgba(255,212,94,.4); }
.btn-copy.is-copied { color: #c6f5cd; border-color: var(--good); }
.mirror-list { display: flex; flex-direction: column; gap: .7rem; margin-bottom: .5rem; }
.mirror-card { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.2rem; color: var(--parch); }
.mirror-card:hover { border-color: var(--gold); color: var(--gold); box-shadow: inset 0 0 0 2px #0a0c11, 0 0 16px rgba(255,212,94,.2); }
.mirror-icon { font-size: 1.3rem; color: var(--gold); }
.mirror-text { display: flex; flex-direction: column; flex: 1; }
.mirror-label { font-weight: 700; font-family: var(--font-head); letter-spacing: .03em; }
.mirror-note { color: var(--muted); font-size: .82rem; }
.mirror-size { color: var(--gold-soft); font-weight: 700; font-size: .9rem; white-space: nowrap; }

/* ---------- Analytics chart ---------- */
.chart { display: flex; align-items: flex-end; gap: .5rem; height: 150px; padding-top: .5rem; }
.chart-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; flex: 1; gap: .3rem; }
.chart-bar { width: 100%; max-width: 34px; background: linear-gradient(180deg, var(--gold), var(--gold-deep)); border: 1px solid var(--gold-line); border-bottom: none; border-radius: 3px 3px 0 0; box-shadow: 0 0 10px rgba(255,212,94,.25); }
.chart-col:hover .chart-bar { background: linear-gradient(180deg, #fff0c8, var(--gold)); }
.chart-x { font-size: .7rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 2px solid var(--gold-deep); margin-top: 2rem; padding: 1.6rem 0; background: linear-gradient(180deg, rgba(8,9,13,.5), rgba(8,9,13,.9)); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.footer-links a { color: var(--gold-soft); }

/* ---------- Error pages ---------- */
.error-page { display: flex; min-height: 70vh; align-items: center; justify-content: center; }
.error-card { text-align: center; padding: 3rem; }
.error-code { font-family: var(--font-head); font-size: 4rem; color: var(--gold); text-shadow: 0 0 26px rgba(255,212,94,.4); }
.error-heading { color: var(--gold-soft); margin: .3rem 0 .6rem; text-transform: uppercase; letter-spacing: .05em; }
.error-message { color: var(--muted); margin-bottom: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
    .home-grid, .panel-grid, .download-layout { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.2rem; }
    .main-nav { gap: .6rem; font-size: .8rem; flex-wrap: wrap; }
    .header-inner { height: auto; padding: .7rem 0; flex-wrap: wrap; gap: .5rem; }
}
