:root {
    --bg: #f4f1e8;
    --bg-soft: #ebece4;
    --paper: rgba(255, 253, 247, .92);
    --paper-solid: #fffdf8;
    --ink: #26302a;
    --ink-soft: #4f5b53;
    --muted: #7e887f;
    --line: rgba(83, 99, 87, .18);
    --line-strong: rgba(117, 101, 63, .32);
    --gold: #aa8c53;
    --gold-dark: #7d673d;
    --gold-light: #d9c79e;
    --sage: #8da193;
    --sage-dark: #5f7667;
    --green: #42855a;
    --danger: #a94f4b;
    --warning: #a77824;
    --shadow-sm: 0 12px 34px rgba(50, 61, 53, .08);
    --shadow: 0 28px 80px rgba(50, 61, 53, .12);
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --serif: Georgia, "Times New Roman", serif;
    --sans: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 12%, rgba(213, 226, 214, .74), transparent 28rem),
        radial-gradient(circle at 95% 26%, rgba(231, 216, 181, .45), transparent 24rem),
        var(--bg);
    font: 15px/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .24;
    background-image:
        linear-gradient(rgba(96, 116, 101, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 116, 101, .04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, #000, transparent 76%);
    z-index: -2;
}
.page-aura {
    position: fixed;
    width: 46rem;
    height: 46rem;
    right: -25rem;
    top: 36rem;
    border: 1px solid rgba(170, 140, 83, .16);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}
.page-aura::before,
.page-aura::after {
    content: "";
    position: absolute;
    inset: 4rem;
    border: inherit;
    border-radius: inherit;
}
.page-aura::after { inset: 10rem; }

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.muted, .empty { color: var(--muted); }

/* Header */
.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 50;
    height: 94px;
    border-bottom: 1px solid rgba(255, 255, 255, .38);
    background: linear-gradient(to bottom, rgba(255, 253, 248, .72), rgba(255, 253, 248, .16));
    backdrop-filter: blur(14px);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: max-content; }
.brand-logo { width: auto; max-width: 190px; max-height: 58px; object-fit: contain; }
.brand-mark {
    position: relative;
    width: 42px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(125, 103, 61, .58);
    clip-path: polygon(50% 0, 92% 22%, 84% 78%, 50% 100%, 16% 78%, 8% 22%);
    background: rgba(255, 253, 247, .55);
}
.brand-mark::before,
.brand-mark::after,
.brand-mark i {
    content: "";
    display: block;
    position: absolute;
    width: 1px;
    height: 28px;
    background: var(--gold);
    transform-origin: 50% 100%;
}
.brand-mark::before { transform: rotate(34deg); }
.brand-mark::after { transform: rotate(-34deg); }
.brand-mark i { height: 34px; }
.brand-copy strong { display: block; font: 600 23px/1 var(--serif); letter-spacing: .055em; }
.brand-copy small { display: block; margin-top: 7px; color: var(--gold-dark); font-size: 8px; font-weight: 700; letter-spacing: .34em; }
.main-nav { display: flex; align-items: stretch; height: 100%; margin-left: auto; }
.main-nav a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: #465049;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 24px;
    width: 0;
    height: 1px;
    background: var(--gold-dark);
    transform: translateX(-50%);
    transition: width .2s ease;
}
.main-nav a:hover,
.main-nav a.active { color: var(--gold-dark); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 26px; }
.mobile-account-link { display: none !important; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.header-logout-form { margin: 0; }
.menu-toggle { display: none; }
.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 247, .54);
}
.language-switcher a {
    min-width: 30px;
    padding: 6px 7px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}
.language-switcher a:hover,
.language-switcher a.active { background: var(--ink); color: #fffdf8; }

/* Buttons */
.button {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .105em;
    text-transform: uppercase;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-gold {
    border-color: var(--gold-dark);
    background: var(--ink);
    color: #fffdf7;
    box-shadow: 0 10px 28px rgba(38, 48, 42, .18);
}
.button-gold:hover { background: var(--gold-dark); box-shadow: 0 14px 36px rgba(125, 103, 61, .24); }
.button-ghost { border-color: rgba(58, 72, 62, .28); background: rgba(255, 253, 247, .48); }
.button-ghost:hover { border-color: var(--gold-dark); background: rgba(255, 253, 247, .86); }
.button-large { min-height: 54px; padding: 0 31px; }
.text-link { color: var(--gold-dark); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.text-link:hover { color: var(--ink); }

/* Hero */
.hero {
    position: relative;
    min-height: 790px;
    overflow: hidden;
    background: #e8eee6;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(250,248,241,.98) 0%, rgba(250,248,241,.91) 31%, rgba(250,248,241,.32) 58%, rgba(250,248,241,.05) 100%),
        linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}
.hero-art {
    position: absolute;
    inset: 0;
    background: url('../images/hero.webp') center/cover no-repeat;
    transform: scale(1.01);
}
.hero-glow {
    position: absolute;
    z-index: 2;
    width: 44rem;
    height: 44rem;
    left: -24rem;
    top: 10rem;
    border: 1px solid rgba(170, 140, 83, .22);
    border-radius: 50%;
}
.hero-glow::before,
.hero-glow::after { content: ""; position: absolute; border: inherit; border-radius: inherit; inset: 5rem; }
.hero-glow::after { inset: 11rem; }
.hero-content {
    position: relative;
    z-index: 3;
    min-height: 790px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: 84px;
    padding-bottom: 84px;
}
.eyebrow {
    margin: 0 0 13px;
    color: var(--gold-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .27em;
    text-transform: uppercase;
}
.hero h1,
.page-hero h1 {
    margin: 0;
    max-width: 760px;
    font: 500 clamp(64px, 7vw, 110px)/.92 var(--serif);
    letter-spacing: -.045em;
}
.hero h1::after {
    content: "";
    width: 82px;
    height: 1px;
    display: block;
    margin-top: 30px;
    background: linear-gradient(90deg, var(--gold-dark), transparent);
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero-meta span {
    padding: 7px 12px;
    border: 1px solid rgba(125, 103, 61, .28);
    border-radius: 999px;
    background: rgba(255, 253, 247, .54);
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}
.hero-copy { max-width: 560px; margin: 25px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.hero-scroll {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 29px;
    width: 1px;
    height: 42px;
    background: rgba(70, 82, 73, .24);
}
.hero-scroll span { display: block; width: 3px; height: 10px; margin-left: -1px; background: var(--gold); animation: scroll-mark 1.8s ease-in-out infinite; }
@keyframes scroll-mark { 0%,100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(30px); opacity: 1; } }

/* Global panels and home */
.home-shell { position: relative; z-index: 4; margin-top: -52px; padding-bottom: 80px; }
.panel {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}
.panel-kicker {
    position: absolute;
    left: 22px;
    top: -10px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--gold-dark);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.panel-title {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
}
.panel-title h2 { margin: 0; font: 500 28px/1.1 var(--serif); }
.panel-title .eyebrow { margin-bottom: 7px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 76px 0 28px; }
.section-heading h2 { margin: 0; font: 500 clamp(34px, 4vw, 54px)/1 var(--serif); letter-spacing: -.035em; }
.centered-heading { justify-content: center; text-align: center; }
.server-panel { overflow: visible; }
.server-row {
    min-height: 112px;
    display: grid;
    grid-template-columns: minmax(230px, .72fr) minmax(360px, 1.28fr);
    align-items: center;
    gap: 32px;
    padding: 24px 30px;
}
.server-row + .server-row { border-top: 1px solid var(--line); }
.server-summary strong { display: block; font: 500 23px/1.15 var(--serif); }
.server-summary small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.status { display: inline-flex; align-items: center; margin-top: 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.status::before { content: ""; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #939b95; }
.status.online { color: var(--green); }
.status.online::before { background: var(--green); box-shadow: 0 0 0 4px rgba(66, 133, 90, .12); }
.status.offline { color: var(--danger); }
.status.offline::before { background: var(--danger); }
.status.maintenance { color: var(--warning); }
.status.maintenance::before { background: var(--warning); }
.status.unknown::before { background: #939b95; }
.server-maintenance-message { color: var(--warning) !important; }
dl { margin: 0; }
.server-row dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.server-row dl div { min-width: 0; padding: 4px 22px; border-left: 1px solid var(--line); }
.server-row dt, .account-details dt, .about-server-card dt, .castle-owner-card dt {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.server-row dd, .account-details dd, .about-server-card dd, .castle-owner-card dd { margin: 5px 0 0; overflow-wrap: anywhere; }
.editorial-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, .72fr); gap: 22px; align-items: start; }
.news-showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.news-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}
.news-card-featured { grid-row: span 2; }
.news-thumb { position: relative; min-height: 190px; display: block; overflow: hidden; background: linear-gradient(135deg, #cad8ce, #eee3ca); }
.news-card-featured .news-thumb { min-height: 300px; }
.news-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(28,37,31,.26), transparent 58%); }
.news-thumb img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .55s ease; }
.news-card:hover .news-thumb img { transform: scale(1.035); }
.news-thumb-fallback { position: absolute; inset: 18%; border: 1px solid rgba(125,103,61,.32); transform: rotate(45deg); }
.news-thumb-fallback::before,
.news-thumb-fallback::after { content: ""; position: absolute; inset: 20%; border: inherit; }
.news-thumb-fallback::after { inset: 38%; background: rgba(255,255,255,.35); }
.news-thumb img + .news-thumb-fallback { display: none; }
.news-card-copy { padding: 24px; }
.news-card-copy time,
.public-news-copy time { color: var(--gold-dark); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.news-card-copy h3 { margin: 8px 0 10px; font: 500 25px/1.18 var(--serif); }
.news-card-featured .news-card-copy h3 { font-size: 31px; }
.news-card-copy p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.news-read { display: inline-flex; gap: 9px; margin-top: 18px; color: var(--gold-dark); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.news-read span { transition: transform .18s ease; }
.news-read:hover span { transform: translateX(4px); }
.journey-card { padding: 34px; }
.journey-card h2 { margin: 0 0 27px; font: 500 38px/1 var(--serif); }
.journey-card ol { margin: 0 0 29px; padding: 0; list-style: none; }
.journey-card li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 17px 0; border-top: 1px solid var(--line); }
.journey-card li:last-child { border-bottom: 1px solid var(--line); }
.journey-card li > span { color: var(--gold); font: 500 21px/1 var(--serif); }
.journey-card strong, .journey-card small { display: block; }
.journey-card strong { font-size: 13px; }
.journey-card small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.journey-card .button { width: 100%; }
.features-section { margin-top: 80px; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature-card {
    position: relative;
    min-height: 170px;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 18px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,253,247,.66);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.feature-card::after { content: ""; position: absolute; width: 92px; height: 92px; right: -46px; bottom: -46px; border: 1px solid rgba(170,140,83,.18); transform: rotate(45deg); }
.feature-card:hover { transform: translateY(-4px); background: var(--paper-solid); box-shadow: var(--shadow-sm); }
.feature-card > span { color: var(--gold); font: 500 21px/1 var(--serif); }
.feature-card h3 { margin: 0 0 8px; font: 500 21px/1.15 var(--serif); }
.feature-card p { margin: 0; color: var(--muted); font-size: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 17px 24px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
td { font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .16s ease; }
tbody tr:hover { background: rgba(141, 161, 147, .07); }
.empty-state { min-height: 240px; display: grid; place-items: center; align-content: center; padding: 40px; text-align: center; }
.empty-state > span { color: var(--gold); font-size: 28px; }

/* Page headers */
.page-hero {
    position: relative;
    min-height: 370px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 150px 0 68px;
    background:
        linear-gradient(90deg, rgba(249,247,239,.98), rgba(249,247,239,.72) 48%, rgba(249,247,239,.15)),
        url('../images/hero.webp') 54% 34%/cover no-repeat;
}
.page-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, var(--bg)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 850px; font-size: clamp(48px, 6vw, 78px); }
.compact-page-hero { min-height: 390px; }
.compact-page-hero p:last-child { max-width: 660px; margin: 19px 0 0; color: var(--ink-soft); }
.page-content { padding: 58px 0 82px; }
.prose { padding: clamp(28px, 5vw, 58px); color: var(--ink-soft); }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--ink); font-family: var(--serif); font-weight: 500; line-height: 1.2; }
.prose h2 { margin: 0 0 20px; font-size: 34px; }
.prose h3 { margin-top: 30px; font-size: 25px; }
.prose p { margin: 0 0 18px; }
.prose a { color: var(--gold-dark); text-decoration: underline; text-decoration-color: rgba(125,103,61,.35); text-underline-offset: 3px; }
.prose blockquote { margin: 28px 0; padding: 18px 24px; border-left: 2px solid var(--gold); background: rgba(216,199,158,.13); }
.prose img { height: auto; border-radius: var(--radius-sm); }
.prose table { margin: 24px 0; border: 1px solid var(--line); }
.prose ul, .prose ol { padding-left: 22px; }
.cms-page, .news-page, .account-page { max-width: 1000px; }
.cms-page-prose { padding: clamp(32px, 6vw, 68px); }

/* News */
.public-news-list { display: grid; gap: 20px; }
.public-news-card { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); overflow: hidden; }
.public-news-cover { position: relative; min-height: 260px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #c8d6cb, #eadfc7); }
.public-news-cover::after { content: ""; position: absolute; inset: 14%; border: 1px solid rgba(125,103,61,.3); transform: rotate(45deg); }
.public-news-cover img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.public-news-card:hover .public-news-cover img { transform: scale(1.035); }
.public-news-cover span { position: relative; z-index: 2; color: rgba(77,91,80,.46); font: 500 22px var(--serif); letter-spacing: .2em; }
.public-news-copy { padding: 38px 42px; }
.public-news-copy h2 { margin: 8px 0 13px; font: 500 33px/1.15 var(--serif); }
.public-news-copy p { margin: 0; color: var(--ink-soft); }
.public-news-more { display: inline-flex; margin-top: 22px; color: var(--gold-dark); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.news-page-cover { margin: 0 0 22px; overflow: hidden; }
.news-page-cover img { width: 100%; max-height: 570px; display: block; object-fit: cover; }
.news-prose { padding: clamp(32px, 6vw, 68px); }
.public-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 11px; }

/* About and CMS pages */
.about-server-list { display: grid; gap: 14px; margin: 28px 0; }
.about-server-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(245,246,240,.75); }
.about-server-card h3 { margin: 0 0 16px; font-size: 26px; }
.about-server-card dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.about-server-card dl div { padding: 0 18px; border-left: 1px solid var(--line); }
.about-server-card dl div:first-child { padding-left: 0; border-left: 0; }

/* Authentication */
.auth-page {
    min-height: 850px;
    display: grid;
    place-items: center;
    padding: 150px 22px 80px;
    background:
        linear-gradient(90deg, rgba(244,241,232,.87), rgba(244,241,232,.55)),
        url('../images/hero.webp') center/cover no-repeat;
}
.auth-card { width: min(480px, 100%); padding: 42px; }
.auth-card h1 { margin: 0; font: 500 45px/1 var(--serif); }
.auth-card > .muted { margin: 14px 0 28px; }
.auth-card label { display: block; margin-bottom: 15px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.auth-card input:not([type="checkbox"]) {
    width: 100%;
    height: 50px;
    display: block;
    margin-top: 6px;
    padding: 0 15px;
    border: 1px solid rgba(77,94,81,.23);
    border-radius: 8px;
    outline: 0;
    background: rgba(255,255,255,.62);
    color: var(--ink);
    transition: border .18s ease, box-shadow .18s ease, background .18s ease;
}
.auth-card input:not([type="checkbox"]):focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(170,140,83,.1); }
.auth-card label small { display: block; margin-top: 6px; color: var(--muted); font-weight: 400; }
.auth-card .button { width: 100%; margin-top: 4px; }
.auth-checkbox { display: flex !important; align-items: center; gap: 9px; cursor: pointer; }
.auth-checkbox input { accent-color: var(--gold-dark); }
.auth-links { display: flex; justify-content: space-between; gap: 18px; margin-top: 19px; font-size: 11px; }
.auth-links a { color: var(--gold-dark); }
.auth-links-center { justify-content: center; }
.auth-info { margin: 4px 0 17px; padding: 12px 14px; border-left: 2px solid var(--gold); background: rgba(170,140,83,.08); color: var(--ink-soft); font-size: 11px; }
.auth-info-error { border-color: var(--danger); background: rgba(169,79,75,.07); color: var(--danger); }
.auth-message-card { text-align: center; }
.auth-message-card .button { margin-top: 18px; }
.auth-message-card form + form { margin-top: 10px; }

/* Account */
.account-card { padding: 36px; }
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.account-heading h2 { margin: 3px 0 0; font: 500 38px/1 var(--serif); }
.account-label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.account-status { padding: 7px 11px; border: 1px solid; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.account-status.verified { border-color: rgba(66,133,90,.35); background: rgba(66,133,90,.06); color: var(--green); }
.account-status.unverified { border-color: rgba(170,140,83,.42); color: var(--gold-dark); }
.account-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.account-details div { padding: 21px 0; border-bottom: 1px solid var(--line); }
.account-details div:nth-child(odd) { padding-right: 25px; }
.account-details div:nth-child(even) { padding-left: 25px; border-left: 1px solid var(--line); }
.account-note { margin-top: 24px; padding: 15px 17px; border-left: 2px solid var(--gold); background: rgba(170,140,83,.07); color: var(--ink-soft); }

/* Statistics */
.statistics-page { padding: 50px 0 82px; }
.statistics-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); }
.statistics-toolbar > div > span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.statistics-toolbar > div > strong { display: block; margin-top: 5px; font: 500 25px/1 var(--serif); }
.statistics-server-switcher,
.statistics-tabs { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: thin; }
.statistics-server-switcher a,
.statistics-tabs a { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,253,247,.68); color: var(--ink-soft); white-space: nowrap; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.statistics-server-switcher a:hover,
.statistics-server-switcher a.active,
.statistics-tabs a:hover,
.statistics-tabs a.active { border-color: var(--gold-dark); background: var(--ink); color: #fff; }
.statistics-tabs { margin-bottom: 18px; }
.statistics-table-card { overflow: hidden; }
.statistics-table-wrap { overflow-x: auto; }
.statistics-table { min-width: 920px; }
.statistics-table th { padding: 17px 18px; background: rgba(141,161,147,.055); }
.statistics-table td { padding: 17px 18px; vertical-align: middle; }
.statistics-rank { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink-soft); font: 500 14px var(--serif); }
.statistics-table tbody tr:nth-child(1) .statistics-rank { border-color: var(--gold); background: rgba(216,199,158,.14); color: var(--gold-dark); }
.statistics-character { display: flex; align-items: center; gap: 11px; min-width: 180px; }
.statistics-character > span { min-width: 0; }
.statistics-character-avatar { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 40px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--panel-soft); color: var(--gold-dark); font-weight: 800; }
.statistics-character-avatar > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.statistics-character strong, .statistics-character small { display: block; }
.statistics-character small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.statistics-value { color: var(--gold-dark); font-size: 15px; }
.statistics-value.danger { color: var(--danger); }
.statistics-online { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.statistics-online::before { content: ""; width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: #949c96; }
.statistics-online.online { color: var(--green); }
.statistics-online.online::before { background: var(--green); box-shadow: 0 0 0 4px rgba(66,133,90,.1); }
.statistics-hero-badge { display: inline-flex; align-items: center; min-height: 29px; padding: 0 11px; border: 1px solid var(--gold); border-radius: 999px; background: rgba(216,199,158,.15); color: var(--gold-dark); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.statistics-empty-state { min-height: 320px; display: grid; place-items: center; align-content: center; padding: 44px; text-align: center; }
.statistics-empty-state > span { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 16px; border: 1px solid var(--gold); transform: rotate(45deg); color: var(--gold-dark); font: 500 24px var(--serif); }
.statistics-empty-state > span i { transform: rotate(-45deg); font-style: normal; }
.statistics-empty-state h2 { margin: 0; font: 500 31px var(--serif); }
.statistics-empty-state p { max-width: 560px; margin: 10px 0 0; color: var(--muted); }
.statistics-error-state > span { border-color: var(--danger); color: var(--danger); }
.castle-owner-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(310px,1fr)); gap: 17px; }
.castle-owner-card { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px; }
.castle-owner-mark { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-dark); font-size: 25px; }
.castle-owner-card span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.castle-owner-card h2 { margin: 3px 0 8px; font: 500 30px var(--serif); }
.castle-owner-card > div > strong { color: var(--gold-dark); }
.castle-owner-card dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 18px; }
.castle-owner-card dl div { padding: 0 12px; border-left: 1px solid var(--line); }
.castle-owner-card dl div:first-child { padding-left: 0; border-left: 0; }

/* Footer */
.site-footer { position: relative; margin-top: 20px; border-top: 1px solid var(--line); background: rgba(229,232,223,.72); }
.footer-ornament { position: absolute; left: 50%; top: -18px; width: 36px; height: 36px; border: 1px solid var(--gold); background: var(--bg); transform: translateX(-50%) rotate(45deg); }
.footer-ornament span { position: absolute; inset: 11px; border: 1px solid var(--gold-dark); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .7fr; gap: 60px; padding: 72px 0 48px; }
.footer-brand { margin-bottom: 17px; }
.footer-intro p { max-width: 410px; margin: 0; color: var(--muted); }
.footer-grid h3 { margin: 0 0 16px; font: 500 17px var(--serif); }
.footer-section-links { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); grid-auto-columns: minmax(145px,1fr); column-gap: 26px; overflow-x: auto; scrollbar-width: thin; }
.footer-section-links a { display: block; margin: 6px 0; color: var(--ink-soft); white-space: nowrap; font-size: 12px; }
.footer-section-links a:hover { color: var(--gold-dark); }
.socials { display: flex; flex-wrap: wrap; gap: 7px; }
.socials a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,253,247,.44); color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.socials a:hover { border-color: var(--gold); color: var(--gold-dark); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }

/* Notices */
.news-preview-banner { position: relative; z-index: 100; display: flex; justify-content: center; gap: 15px; padding: 10px 18px; background: var(--ink); color: #fff; font-size: 11px; }
.public-flash-stack { position: relative; z-index: 40; margin-top: 110px; display: grid; gap: 8px; }
.public-flash { padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-solid); box-shadow: var(--shadow-sm); }
.public-flash p { margin: 0; }
.public-flash-success { border-left: 3px solid var(--green); }
.public-flash-warning { border-left: 3px solid var(--warning); }
.public-flash-error { border-left: 3px solid var(--danger); }

[dir="rtl"] .main-nav,
[dir="rtl"] .header-actions,
[dir="rtl"] .header-inner { flex-direction: row-reverse; }
[dir="rtl"] .main-nav { margin-left: 0; margin-right: auto; }

@media (max-width: 1160px) {
    .container { width: min(1320px, calc(100% - 42px)); }
    .main-nav a { padding-inline: 9px; font-size: 10px; }
    .header-actions .button-ghost { display: none; }
    .hero::before { background: linear-gradient(90deg, rgba(250,248,241,.98) 0%, rgba(250,248,241,.86) 42%, rgba(250,248,241,.14) 78%); }
    .editorial-grid { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .65fr); }
    .news-showcase { grid-template-columns: 1fr; }
    .news-card-featured { grid-row: auto; }
    .news-card { display: grid; grid-template-columns: 220px 1fr; }
    .news-card .news-thumb, .news-card-featured .news-thumb { min-height: 100%; }
    .features-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-grid { gap: 34px; }
}

@media (max-width: 900px) {
    .site-header { height: 76px; position: absolute; }
    .brand-copy strong { font-size: 20px; }
    .brand-mark { width: 36px; height: 43px; }
    .menu-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; margin-left: auto; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,253,247,.68); }
    .menu-toggle span { width: 18px; height: 1px; display: block; background: var(--ink); }
    .main-nav { position: absolute; left: 21px; right: 21px; top: 68px; height: auto; display: none; flex-direction: column; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,247,.97); box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .main-nav a { min-height: 45px; justify-content: center; }
    .main-nav a::after { bottom: 7px; }
    .mobile-account-link { display: flex !important; }
    .header-actions { display: none; }
    .hero, .hero-content { min-height: 700px; }
    .hero-art { background-position: 63% center; }
    .hero::before { background: linear-gradient(90deg, rgba(250,248,241,.98) 0%, rgba(250,248,241,.89) 52%, rgba(250,248,241,.18) 100%), linear-gradient(0deg, var(--bg), transparent 22%); }
    .hero-content { padding-top: 70px; }
    .server-row { grid-template-columns: 1fr; gap: 20px; }
    .server-row dl div:first-child { border-left: 0; padding-left: 0; }
    .editorial-grid { grid-template-columns: 1fr; }
    .journey-card { display: grid; grid-template-columns: 1fr 1.3fr; column-gap: 30px; }
    .journey-card .eyebrow, .journey-card h2, .journey-card .button { grid-column: 1; }
    .journey-card ol { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-intro { grid-column: 1 / -1; }
    .public-news-card { grid-template-columns: 250px 1fr; }
}

@media (max-width: 680px) {
    .container { width: min(100% - 28px, 1320px); }
    .hero, .hero-content { min-height: 680px; }
    .hero-art { background-position: 68% center; opacity: .78; }
    .hero::before { background: linear-gradient(90deg, rgba(250,248,241,.98) 0%, rgba(250,248,241,.9) 62%, rgba(250,248,241,.52) 100%), linear-gradient(0deg, var(--bg), transparent 22%); }
    .hero h1 { font-size: clamp(50px, 16vw, 76px); }
    .hero-actions { width: 100%; flex-direction: column; align-items: stretch; }
    .hero-actions .button { width: 100%; }
    .hero-scroll { display: none; }
    .home-shell { margin-top: -30px; }
    .server-row { padding: 28px 20px 22px; }
    .server-row dl { grid-template-columns: 1fr; }
    .server-row dl div { padding: 12px 0; border-left: 0; border-top: 1px solid var(--line); }
    .section-heading { margin-top: 58px; }
    .news-card { display: block; }
    .news-card .news-thumb, .news-card-featured .news-thumb { min-height: 210px; }
    .journey-card { display: block; padding: 28px; }
    .journey-card ol { margin-bottom: 28px; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: 140px; }
    .panel-title { min-height: 86px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
    .page-hero { min-height: 330px; padding-top: 125px; }
    .page-hero h1 { font-size: 50px; }
    .public-news-card { display: block; }
    .public-news-cover { min-height: 220px; }
    .public-news-copy { padding: 28px; }
    .public-news-copy h2 { font-size: 29px; }
    .auth-page { min-height: 760px; padding-top: 120px; }
    .auth-card { padding: 30px 24px; }
    .auth-card h1 { font-size: 39px; }
    .auth-links { align-items: center; flex-direction: column; }
    .account-heading { align-items: flex-start; flex-direction: column; }
    .account-details { grid-template-columns: 1fr; }
    .account-details div:nth-child(odd), .account-details div:nth-child(even) { padding: 17px 0; border-left: 0; }
    .statistics-toolbar { align-items: flex-start; flex-direction: column; }
    .statistics-server-switcher { width: 100%; }
    .statistics-server-switcher a { flex: 1; }
    .castle-owner-card { grid-template-columns: 1fr; }
    .castle-owner-card dl { grid-template-columns: 1fr; }
    .castle-owner-card dl div { padding: 11px 0; border-left: 0; border-top: 1px solid var(--line); }
    .about-server-card dl { grid-template-columns: 1fr; }
    .about-server-card dl div { padding: 11px 0; border-left: 0; border-top: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-intro { grid-column: auto; }
    .footer-bottom { flex-direction: column; }
    .footer-section-links { grid-auto-columns: minmax(130px, 1fr); }
}

@media (max-width: 420px) {
    .brand-copy strong { max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .hero-copy { font-size: 14px; }
    .news-card-copy { padding: 21px; }
    .feature-card { grid-template-columns: 35px 1fr; padding: 24px 20px; }
    .public-pagination { justify-content: space-between; gap: 8px; }
    .public-pagination .button { padding-inline: 13px; }
    .public-pagination span { font-size: 9px; text-align: center; }
}

/* ========================================================================== 
   Kaev Aurelia — premium light layout
   ========================================================================== */
:root {
    --bg: #f8f4ec;
    --bg-soft: #f2ece2;
    --paper: rgba(255, 253, 249, .92);
    --paper-solid: #fffdf9;
    --ink: #292b2a;
    --ink-soft: #55534f;
    --muted: #89847b;
    --line: rgba(155, 126, 76, .20);
    --line-strong: rgba(166, 128, 62, .38);
    --gold: #b58a43;
    --gold-dark: #8f672f;
    --gold-light: #e5d2aa;
    --green: #5d9a60;
    --danger: #a95c55;
    --warning: #b1843d;
    --shadow-sm: 0 14px 40px rgba(103, 79, 42, .08);
    --shadow: 0 30px 90px rgba(103, 79, 42, .13);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: Inter, "Segoe UI", Arial, sans-serif;
}

body.kaev-aurelia {
    color: var(--ink);
    background:
        radial-gradient(circle at 6% 12%, rgba(255,255,255,.9), transparent 30rem),
        radial-gradient(circle at 94% 70%, rgba(226,207,169,.18), transparent 32rem),
        var(--bg);
}

body.kaev-aurelia::before {
    opacity: .28;
    background-size: 84px 84px;
}

.kaev-aurelia .container { width: min(1420px, calc(100% - 72px)); }

/* Header */
.kaev-aurelia .site-header {
    height: 86px;
    border-bottom: 1px solid rgba(143, 103, 47, .14);
    background: rgba(255, 253, 249, .88);
    box-shadow: 0 8px 30px rgba(90, 67, 32, .035);
    backdrop-filter: blur(18px);
}
.kaev-aurelia .header-inner { gap: 24px; }
.kaev-aurelia .brand-logo-kaev { width: 136px; max-width: none; max-height: 72px; object-fit: contain; }
.kaev-aurelia .brand-logo-custom { width: auto; max-width: 190px; max-height: 60px; }
.kaev-aurelia .main-nav { gap: 3px; }
.kaev-aurelia .main-nav a {
    padding-inline: 16px;
    color: #383735;
    font-family: var(--serif);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .005em;
    text-transform: none;
}
.kaev-aurelia .main-nav a::after { bottom: 19px; background: var(--gold); }
.kaev-aurelia .header-actions { gap: 14px; }
.kaev-aurelia .header-text-action {
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    font-family: var(--serif);
    font-size: 14px;
}
.kaev-aurelia .header-text-action:hover { color: var(--gold-dark); }
.kaev-aurelia .header-main-action { min-width: 170px; }

/* Buttons */
.kaev-aurelia .button {
    min-height: 48px;
    padding-inline: 24px;
    border-radius: 10px;
    font-family: var(--serif);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: none;
}
.kaev-aurelia .button-gold {
    border-color: #aa7f3d;
    background: linear-gradient(135deg, #c39a58, #a87834);
    color: #fffdf8;
    box-shadow: 0 12px 28px rgba(157, 112, 47, .24);
}
.kaev-aurelia .button-gold:hover { background: linear-gradient(135deg, #b98e4d, #93652c); }
.kaev-aurelia .button-ghost {
    border-color: rgba(155, 117, 58, .34);
    background: rgba(255, 253, 249, .72);
}
.kaev-aurelia .button-large { min-width: 190px; min-height: 56px; }
.kaev-aurelia .button span { margin-left: 12px; }
.kaev-aurelia .button-play { font-size: 11px; }

/* Hero */
.kaev-aurelia .hero {
    min-height: 760px;
    background: #f4eee3;
}
.kaev-aurelia .hero-art {
    background-image: url('../images/hero.webp');
    background-position: center center;
    background-size: cover;
    transform: none;
}
.kaev-aurelia .hero::before {
    background:
        linear-gradient(90deg, rgba(255,253,249,.98) 0%, rgba(255,253,249,.94) 29%, rgba(255,253,249,.66) 45%, rgba(255,253,249,.12) 69%, rgba(255,253,249,0) 100%),
        linear-gradient(0deg, rgba(248,244,236,.88) 0%, rgba(248,244,236,0) 22%);
}
.kaev-aurelia .hero-light {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(circle at 25% 42%, rgba(255,255,255,.78), transparent 28rem),
        linear-gradient(180deg, rgba(255,255,255,.14), transparent 28%);
}
.kaev-aurelia .hero-content {
    min-height: 760px;
    padding-top: 118px;
    padding-bottom: 150px;
}
.kaev-aurelia .hero-copy-block { width: min(650px, 54vw); text-align: center; }
.kaev-aurelia .hero-sigil {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    color: var(--gold);
    font-size: 28px;
}
.kaev-aurelia .hero .eyebrow { margin-bottom: 16px; font-size: 10px; letter-spacing: .25em; }
.kaev-aurelia .hero h1 {
    max-width: none;
    font-size: clamp(64px, 6.2vw, 102px);
    line-height: .98;
    letter-spacing: -.04em;
}
.kaev-aurelia .hero h1::after { display: none; }
.kaev-aurelia .hero-divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 23px auto 0; color: var(--gold); }
.kaev-aurelia .hero-divider span { width: 95px; height: 1px; background: linear-gradient(90deg, transparent, rgba(165,124,60,.58)); }
.kaev-aurelia .hero-divider span:last-child { background: linear-gradient(90deg, rgba(165,124,60,.58), transparent); }
.kaev-aurelia .hero-divider i { font-style: normal; font-size: 12px; }
.kaev-aurelia .hero-meta { justify-content: center; margin-top: 22px; }
.kaev-aurelia .hero-meta span {
    border: 0;
    border-right: 1px solid rgba(151,115,59,.28);
    border-radius: 0;
    background: transparent;
    color: var(--gold-dark);
    font-family: var(--serif);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .035em;
    text-transform: none;
}
.kaev-aurelia .hero-meta span:last-child { border-right: 0; }
.kaev-aurelia .hero-copy { max-width: 545px; margin: 20px auto 0; color: #6a665e; font-family: var(--serif); font-size: 18px; line-height: 1.65; }
.kaev-aurelia .hero-actions { justify-content: center; margin-top: 28px; }

/* Main overlap cards */
.kaev-aurelia .home-shell { margin-top: -117px; padding-bottom: 96px; }
.kaev-aurelia .panel {
    border-color: rgba(165, 128, 69, .20);
    background: rgba(255, 253, 249, .93);
    box-shadow: 0 16px 48px rgba(101, 74, 33, .075);
}
.kaev-aurelia .hero-feature-grid { position: relative; z-index: 7; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kaev-aurelia .hero-feature-card {
    min-height: 126px;
    display: grid;
    grid-template-columns: 78px 1fr 18px;
    align-items: center;
    gap: 18px;
    padding: 24px 25px;
    border-radius: 14px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.kaev-aurelia .hero-feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.kaev-aurelia .hero-feature-card h2 { margin: 0 0 7px; font: 500 20px/1.2 var(--serif); }
.kaev-aurelia .hero-feature-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.kaev-aurelia .hero-feature-card > i { color: var(--gold-dark); font: normal 24px var(--serif); }
.kaev-aurelia .ornament-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 33px;
}
.kaev-aurelia .ornament-icon::before { filter: drop-shadow(0 4px 10px rgba(157,112,47,.15)); }
.kaev-aurelia .ornament-shield::before { content: "♜"; }
.kaev-aurelia .ornament-book::before { content: "▤"; }
.kaev-aurelia .ornament-sword::before { content: "⚔"; }

/* Server monitor */
.kaev-aurelia .server-panel { margin-top: 14px; overflow: hidden; border-radius: 14px; }
.kaev-aurelia .server-panel-label { display: none; }
.kaev-aurelia .server-row {
    min-height: 92px;
    display: flex;
    grid-template-columns: none;
    gap: 0;
    padding: 0 18px;
}
.kaev-aurelia .server-row > * { min-height: 58px; display: flex; align-items: center; }
.kaev-aurelia .server-status-cell { min-width: 260px; gap: 13px; padding-inline: 10px 28px; }
.kaev-aurelia .status-dot { width: 12px; height: 12px; flex: 0 0 auto; border-radius: 50%; background: #999; }
.kaev-aurelia .status-dot.online { background: var(--green); box-shadow: 0 0 0 5px rgba(93,154,96,.11); }
.kaev-aurelia .status-dot.offline { background: var(--danger); }
.kaev-aurelia .status-dot.maintenance { background: var(--warning); }
.kaev-aurelia .server-summary strong { font-size: 18px; }
.kaev-aurelia .server-summary small,
.kaev-aurelia .server-stat small { display: block; margin: 0 0 2px; color: #a39a8c; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.kaev-aurelia .server-summary .status { margin: 2px 0 0; font-size: 9px; }
.kaev-aurelia .server-summary .status::before { display: none; }
.kaev-aurelia .server-stat {
    min-width: 165px;
    flex: 1;
    gap: 12px;
    padding: 8px 24px;
    border-left: 1px solid rgba(161,128,75,.16);
}
.kaev-aurelia .server-stat-icon { color: var(--gold); font-size: 24px; }
.kaev-aurelia .server-stat strong { display: block; font: 500 17px/1.1 var(--serif); }
.kaev-aurelia .server-arrow { width: 62px; justify-content: center; border-left: 1px solid rgba(161,128,75,.16); color: var(--gold); font-size: 20px; }

/* Sections */
.kaev-aurelia .home-section { margin-top: 72px; }
.kaev-aurelia .section-heading-ornamented { align-items: center; justify-content: center; gap: 20px; margin: 0 0 30px; text-align: center; }
.kaev-aurelia .section-heading-ornamented > span { width: 86px; height: 1px; background: linear-gradient(90deg, transparent, rgba(162,124,62,.48)); }
.kaev-aurelia .section-heading-ornamented > span:last-child { background: linear-gradient(90deg, rgba(162,124,62,.48), transparent); }
.kaev-aurelia .section-heading-ornamented h2 { font-size: clamp(32px, 3vw, 46px); }
.kaev-aurelia .section-heading-ornamented .eyebrow { margin-bottom: 8px; }

.kaev-aurelia .news-showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kaev-aurelia .news-card {
    display: grid;
    grid-template-columns: 43% 1fr;
    min-height: 190px;
    overflow: hidden;
    border-radius: 14px;
}
.kaev-aurelia .news-card .news-thumb { min-height: 100%; }
.kaev-aurelia .news-card .news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kaev-aurelia .news-thumb-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(145deg,#efe7d8,#faf6ef); color: var(--gold); font-size: 34px; }
.kaev-aurelia .news-card-copy { padding: 22px 20px; }
.kaev-aurelia .news-card-copy time { color: var(--gold-dark); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.kaev-aurelia .news-card-copy h3 { margin: 8px 0; font: 500 19px/1.2 var(--serif); }
.kaev-aurelia .news-card-copy p { max-height: 3.2em; overflow: hidden; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.kaev-aurelia .news-read { display: inline-block; margin-top: 12px; color: var(--gold-dark); font-family: var(--serif); font-size: 13px; }
.kaev-aurelia .section-more { margin-top: 22px; text-align: center; }

.kaev-aurelia .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kaev-aurelia .feature-card {
    min-height: 134px;
    grid-template-columns: 62px 1fr;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border-radius: 12px;
}
.kaev-aurelia .feature-card::after { display: none; }
.kaev-aurelia .feature-icon { width: 54px; height: 54px; display: grid; place-items: center; color: var(--gold); font-size: 32px; }
.kaev-aurelia .feature-card h3 { margin-bottom: 6px; font-size: 19px; }
.kaev-aurelia .feature-card p { line-height: 1.55; }


/* Footer */
.kaev-aurelia .site-footer { margin-top: 30px; background: #f4eee4; }
.kaev-aurelia .footer-cta {
    top: -36px;
    min-height: 150px;
    display: grid;
    grid-template-columns: 84px 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 28px 34px;
    border-radius: 14px;
    background:
        linear-gradient(90deg, rgba(255,253,249,.96), rgba(250,243,232,.96)),
        var(--paper-solid);
}
.kaev-aurelia .footer-cta-mark { width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid rgba(164,125,62,.35); border-radius: 50%; color: var(--gold); font-size: 30px; }
.kaev-aurelia .footer-cta h2 { margin: 0; font: 500 31px/1.1 var(--serif); }
.kaev-aurelia .footer-cta p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); }
.kaev-aurelia .footer-cta-actions { display: flex; gap: 10px; }
.kaev-aurelia .footer-grid { grid-template-columns: 1.3fr 1fr .65fr 170px; padding-top: 38px; }
.kaev-aurelia .footer-decoration { min-height: 180px; display: grid; place-items: center; border: 1px solid rgba(169,130,66,.24); border-radius: 80px 80px 12px 12px; color: var(--gold); font-size: 32px; }
.kaev-aurelia .footer-brand-logo { width: 130px; }
.kaev-aurelia .footer-intro p { font-family: var(--serif); }

/* Inner pages inherit the same art direction */
.kaev-aurelia .page-hero {
    min-height: 390px;
    padding-top: 145px;
    background:
        linear-gradient(90deg, rgba(255,253,249,.98), rgba(255,253,249,.75) 52%, rgba(255,253,249,.18)),
        url('../images/hero.webp') center 34% / cover no-repeat;
}
.kaev-aurelia .compact-page-hero { min-height: 360px; }
.kaev-aurelia .auth-page {
    background:
        linear-gradient(90deg, rgba(255,253,249,.95), rgba(255,253,249,.72)),
        url('../images/hero.webp') center / cover no-repeat;
}
.kaev-aurelia .auth-card { border-radius: 16px; }

@media (max-width: 1180px) {
    .kaev-aurelia .container { width: min(1420px, calc(100% - 42px)); }
    .kaev-aurelia .main-nav a { padding-inline: 9px; font-size: 13px; }
    .kaev-aurelia .header-text-action { display: none; }
    .kaev-aurelia .hero-copy-block { width: min(620px, 58vw); }
    .kaev-aurelia .server-stat { min-width: 135px; padding-inline: 17px; }
    .kaev-aurelia .news-card { grid-template-columns: 38% 1fr; }
    .kaev-aurelia .footer-grid { grid-template-columns: 1.2fr 1fr .7fr; }
    .kaev-aurelia .footer-decoration { display: none; }
}

@media (max-width: 900px) {
    .kaev-aurelia .site-header { height: 76px; }
    .kaev-aurelia .brand-logo-kaev { width: 116px; }
    .kaev-aurelia .menu-toggle { margin-left: auto; }
    .kaev-aurelia .main-nav { top: 68px; }
    .kaev-aurelia .hero,
    .kaev-aurelia .hero-content { min-height: 720px; }
    .kaev-aurelia .hero-art { background-image: url('../images/hero-mobile.webp'); background-position: 72% center; }
    .kaev-aurelia .hero::before {
        background:
            linear-gradient(90deg, rgba(255,253,249,.97) 0%, rgba(255,253,249,.90) 48%, rgba(255,253,249,.38) 100%),
            linear-gradient(0deg, rgba(248,244,236,.92), transparent 26%);
    }
    .kaev-aurelia .hero-copy-block { width: min(590px, 72vw); }
    .kaev-aurelia .hero-feature-grid { grid-template-columns: 1fr; }
    .kaev-aurelia .home-shell { margin-top: -90px; }
    .kaev-aurelia .server-row { flex-wrap: wrap; padding: 16px; }
    .kaev-aurelia .server-status-cell { width: 100%; padding: 10px; }
    .kaev-aurelia .server-stat { min-width: 33.333%; border-top: 1px solid rgba(161,128,75,.16); }
    .kaev-aurelia .server-arrow { min-height: 68px; border-top: 1px solid rgba(161,128,75,.16); }
    .kaev-aurelia .news-showcase { grid-template-columns: 1fr; }
    .kaev-aurelia .news-card { grid-template-columns: 260px 1fr; }
    .kaev-aurelia .features-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .kaev-aurelia .footer-cta { grid-template-columns: 70px 1fr; }
    .kaev-aurelia .footer-cta-actions { grid-column: 1 / -1; justify-content: center; }
}

@media (max-width: 680px) {
    .kaev-aurelia .container { width: min(100% - 28px, 1420px); }
    .kaev-aurelia .brand-logo-kaev { width: 104px; }
    .kaev-aurelia .hero,
    .kaev-aurelia .hero-content { min-height: 735px; }
    .kaev-aurelia .hero-art { background-position: 68% center; opacity: .72; }
    .kaev-aurelia .hero::before {
        background:
            linear-gradient(90deg, rgba(255,253,249,.98), rgba(255,253,249,.87)),
            linear-gradient(0deg, rgba(248,244,236,.96), transparent 26%);
    }
    .kaev-aurelia .hero-content { align-items: center; padding-top: 105px; padding-bottom: 165px; }
    .kaev-aurelia .hero-copy-block { width: 100%; }
    .kaev-aurelia .hero h1 { font-size: clamp(50px, 15vw, 74px); }
    .kaev-aurelia .hero-copy { font-size: 16px; }
    .kaev-aurelia .hero-meta span { font-size: 11px; }
    .kaev-aurelia .home-shell { margin-top: -125px; }
    .kaev-aurelia .hero-feature-card { min-height: 112px; grid-template-columns: 58px 1fr 14px; padding: 20px; }
    .kaev-aurelia .ornament-icon { width: 54px; height: 54px; }
    .kaev-aurelia .server-stat { min-width: 50%; }
    .kaev-aurelia .server-arrow { width: 100%; min-height: 46px; border-left: 0; }
    .kaev-aurelia .section-heading-ornamented > span { width: 34px; }
    .kaev-aurelia .news-card { display: block; }
    .kaev-aurelia .news-card .news-thumb { min-height: 220px; }
    .kaev-aurelia .features-grid { grid-template-columns: 1fr; }
    .kaev-aurelia .footer-cta { top: -24px; grid-template-columns: 1fr; padding: 28px 22px; text-align: center; }
    .kaev-aurelia .footer-cta-mark { margin: auto; }
    .kaev-aurelia .footer-cta-actions { flex-direction: column; }
    .kaev-aurelia .footer-grid { padding-top: 20px; }
    .kaev-aurelia .page-hero { background-position: 68% center; }
}

/* Kaev Aurelia 1.0.1 refinements */
.kaev-aurelia .site-header {
    position: sticky;
    top: 0;
    inset: auto;
    z-index: 100;
    background: rgba(255, 253, 249, .96);
}

.kaev-aurelia .hero-content {
    padding-top: 58px;
}

.kaev-aurelia .hero-divider {
    margin-top: 24px;
}

.kaev-aurelia .hero-divider span {
    width: 190px;
    background: linear-gradient(90deg, transparent, rgba(165,124,60,.58), transparent);
}

.kaev-aurelia .public-flash-stack {
    margin-top: 24px;
}

.kaev-aurelia .page-hero {
    padding-top: 72px;
}

.kaev-aurelia .auth-page {
    padding-top: 80px;
}

.kaev-aurelia .news-thumb-fallback img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    opacity: .48;
}

.kaev-aurelia .empty-state > img {
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    object-fit: contain;
    opacity: .42;
}

.kaev-aurelia .footer-cta-mark img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    opacity: .72;
}

.kaev-aurelia .footer-decoration img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    opacity: .32;
}

@media (max-width: 900px) {
    .kaev-aurelia .site-header {
        position: sticky;
        top: 0;
    }

    .kaev-aurelia .main-nav {
        top: 76px;
    }

    .kaev-aurelia .hero-content {
        padding-top: 46px;
    }

    .kaev-aurelia .page-hero {
        padding-top: 58px;
    }

    .kaev-aurelia .auth-page {
        padding-top: 64px;
    }
}

@media (max-width: 680px) {
    .kaev-aurelia .hero-content {
        padding-top: 42px;
    }

    .kaev-aurelia .hero-divider span {
        width: 130px;
    }

    .kaev-aurelia .page-hero {
        padding-top: 48px;
    }

    .kaev-aurelia .auth-page {
        padding-top: 52px;
    }
}

.kaev-aurelia .news-thumb-fallback {
    position: absolute;
    inset: 0;
    border: 0;
    transform: none;
}

.kaev-aurelia .news-thumb-fallback::before,
.kaev-aurelia .news-thumb-fallback::after {
    display: none;
}

/* Kaev Aurelia 1.0.2: Livewire navigation and safe hero framing */
.kaev-aurelia .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    isolation: isolate;
}

.kaev-aurelia .hero-art {
    background-position: center top;
}

.kaev-aurelia .page-hero {
    background:
        linear-gradient(90deg, rgba(255,253,249,.98), rgba(255,253,249,.77) 52%, rgba(255,253,249,.18)),
        url('../images/hero.webp') center top / cover no-repeat;
}

.kaev-aurelia .auth-page {
    background:
        linear-gradient(90deg, rgba(255,253,249,.95), rgba(255,253,249,.72)),
        url('../images/hero.webp') center top / cover no-repeat;
}

#public-content,
.kaev-aurelia .site-footer {
    transition: opacity .16s ease, transform .16s ease;
}

html.public-is-navigating {
    cursor: progress;
}

html.public-is-navigating #public-content,
html.public-is-navigating .kaev-aurelia .site-footer {
    opacity: .42;
    transform: translateY(4px);
    pointer-events: none;
}

html.public-is-navigating .kaev-aurelia .site-header {
    box-shadow: 0 12px 34px rgba(90, 67, 32, .08);
}

#nprogress .bar {
    height: 2px !important;
    background: var(--gold) !important;
    box-shadow: 0 0 12px rgba(181, 138, 67, .45) !important;
}

#nprogress .peg {
    box-shadow: 0 0 10px var(--gold), 0 0 5px var(--gold) !important;
}

#nprogress .spinner {
    display: none !important;
}

@media (max-width: 900px) {
    .kaev-aurelia .hero-art {
        background-image: url('../images/hero-mobile.webp');
        background-position: 84% top;
    }

    .kaev-aurelia .page-hero,
    .kaev-aurelia .auth-page {
        background-image:
            linear-gradient(90deg, rgba(255,253,249,.97), rgba(255,253,249,.76)),
            url('../images/hero-mobile.webp');
        background-position: center top;
        background-size: cover;
    }
}

@media (max-width: 680px) {
    .kaev-aurelia .hero-art {
        background-position: 84% top;
    }

    .kaev-aurelia .page-hero,
    .kaev-aurelia .auth-page {
        background-position: center top;
    }
}

@media (prefers-reduced-motion: reduce) {
    #public-content,
    .kaev-aurelia .site-footer {
        transition: none;
    }

    html.public-is-navigating #public-content,
    html.public-is-navigating .kaev-aurelia .site-footer {
        transform: none;
    }
}

/* Safe rich content produced by the administration editor */
:where(.news-prose,.cms-page-prose) [data-color="gold"] { color: #966d2d; }
:where(.news-prose,.cms-page-prose) [data-color="amber"] { color: #b45309; }
:where(.news-prose,.cms-page-prose) [data-color="yellow"] { color: #a16207; }
:where(.news-prose,.cms-page-prose) [data-color="red"] { color: #b42318; }
:where(.news-prose,.cms-page-prose) [data-color="rose"] { color: #be123c; }
:where(.news-prose,.cms-page-prose) [data-color="coral"] { color: #c84f3d; }
:where(.news-prose,.cms-page-prose) [data-color="orange"] { color: #c2410c; }
:where(.news-prose,.cms-page-prose) [data-color="brown"] { color: #78350f; }
:where(.news-prose,.cms-page-prose) [data-color="lime"] { color: #4d7c0f; }
:where(.news-prose,.cms-page-prose) [data-color="green"] { color: #15803d; }
:where(.news-prose,.cms-page-prose) [data-color="emerald"] { color: #047857; }
:where(.news-prose,.cms-page-prose) [data-color="teal"] { color: #0f766e; }
:where(.news-prose,.cms-page-prose) [data-color="cyan"] { color: #0e7490; }
:where(.news-prose,.cms-page-prose) [data-color="sky"] { color: #0369a1; }
:where(.news-prose,.cms-page-prose) [data-color="blue"] { color: #1d4ed8; }
:where(.news-prose,.cms-page-prose) [data-color="indigo"] { color: #4338ca; }
:where(.news-prose,.cms-page-prose) [data-color="violet"] { color: #6d28d9; }
:where(.news-prose,.cms-page-prose) [data-color="purple"] { color: #7e22ce; }
:where(.news-prose,.cms-page-prose) [data-color="fuchsia"] { color: #a21caf; }
:where(.news-prose,.cms-page-prose) [data-color="pink"] { color: #be185d; }
:where(.news-prose,.cms-page-prose) [data-color="slate"] { color: #475569; }
:where(.news-prose,.cms-page-prose) [data-color="gray"] { color: #6b7280; }
:where(.news-prose,.cms-page-prose) [data-color="zinc"] { color: #52525b; }
:where(.news-prose,.cms-page-prose) [data-color="muted"] { color: #77736c; }
:where(.news-prose,.cms-page-prose) [data-highlight] {
    padding-inline: .12em;
    border-radius: .18em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
:where(.news-prose,.cms-page-prose) [data-highlight="yellow"] { background: #fff1a8; }
:where(.news-prose,.cms-page-prose) [data-highlight="amber"] { background: #fde68a; }
:where(.news-prose,.cms-page-prose) [data-highlight="orange"] { background: #fed7aa; }
:where(.news-prose,.cms-page-prose) [data-highlight="rose"] { background: #fecdd3; }
:where(.news-prose,.cms-page-prose) [data-highlight="red"] { background: #fecaca; }
:where(.news-prose,.cms-page-prose) [data-highlight="lime"] { background: #d9f99d; }
:where(.news-prose,.cms-page-prose) [data-highlight="green"] { background: #c7efd0; }
:where(.news-prose,.cms-page-prose) [data-highlight="teal"] { background: #b4eee3; }
:where(.news-prose,.cms-page-prose) [data-highlight="cyan"] { background: #c4edf3; }
:where(.news-prose,.cms-page-prose) [data-highlight="blue"] { background: #cfe1f9; }
:where(.news-prose,.cms-page-prose) [data-highlight="purple"] { background: #ead7f8; }
:where(.news-prose,.cms-page-prose) [data-highlight="gray"] { background: #e8e6e2; }
:where(.news-prose,.cms-page-prose) [data-text-size="small"] { font-size: .84em; }
:where(.news-prose,.cms-page-prose) [data-text-size="large"] { font-size: 1.25em; line-height: 1.5; }
:where(.news-prose,.cms-page-prose) [data-align="center"] { text-align: center; }
:where(.news-prose,.cms-page-prose) [data-align="right"] { text-align: right; }
:where(.news-prose,.cms-page-prose) [data-align="justify"] { text-align: justify; }
:where(.news-prose,.cms-page-prose) figure { max-width: 100%; }
:where(.news-prose,.cms-page-prose) figure img { display: block; width: 100%; max-width: 100%; height: auto; }
:where(.news-prose,.cms-page-prose) figure[data-size="narrow"] { width: 45%; }
:where(.news-prose,.cms-page-prose) figure[data-size="medium"] { width: 65%; }
:where(.news-prose,.cms-page-prose) figure[data-size="wide"] { width: 85%; }
:where(.news-prose,.cms-page-prose) figure[data-align="center"] { margin-right: auto; margin-left: auto; }
:where(.news-prose,.cms-page-prose) figure[data-align="right"] { margin-left: auto; }
:where(.news-prose,.cms-page-prose) table { display: block; overflow-x: auto; width: 100%; margin: 24px 0; border-collapse: collapse; }
:where(.news-prose,.cms-page-prose) th,
:where(.news-prose,.cms-page-prose) td { min-width: 120px; padding: 10px 13px; border: 1px solid var(--line); vertical-align: top; }
:where(.news-prose,.cms-page-prose) th { background: rgba(216,199,158,.18); color: var(--ink); }
:where(.news-prose,.cms-page-prose) code { padding: .12em .32em; border-radius: 3px; background: #eee9df; color: #8b4b31; }
:where(.news-prose,.cms-page-prose) pre { overflow-x: auto; padding: 18px; background: #24221f; color: #f5f1e9; white-space: pre-wrap; }
:where(.news-prose,.cms-page-prose) pre code { padding: 0; background: transparent; color: inherit; }
@media(max-width:780px){
    :where(.news-prose,.cms-page-prose) figure[data-size="narrow"] { width: 65%; }
    :where(.news-prose,.cms-page-prose) figure[data-size="medium"],
    :where(.news-prose,.cms-page-prose) figure[data-size="wide"] { width: 100%; }
}

/* Theme-only partial statistics navigation */
.statistics-page[data-statistics-page] {
    position: relative;
    min-height: 260px;
}

.statistics-partial-progress {
    position: absolute;
    z-index: 12;
    top: 58px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(177, 138, 75, .26);
    border-radius: 50%;
    background: rgba(255, 253, 247, .94);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-3px);
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
    backdrop-filter: blur(12px);
}

.statistics-partial-progress span {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(177, 138, 75, .28);
    border-top-color: var(--gold-dark);
    border-radius: 50%;
    animation: aurelia-statistics-spin .7s linear infinite;
}

.statistics-page[data-statistics-page] > :not(.statistics-partial-progress) {
    transition: opacity .16s ease, transform .16s ease;
}

.statistics-page[data-statistics-page].is-updating {
    cursor: progress;
}

.statistics-page[data-statistics-page].is-updating .statistics-partial-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.statistics-page[data-statistics-page].is-updating > :not(.statistics-partial-progress) {
    opacity: .48;
    transform: translateY(2px);
    pointer-events: none;
}

.statistics-page[data-statistics-page].is-refreshed > :not(.statistics-partial-progress) {
    animation: aurelia-statistics-enter .2s ease both;
}

.statistics-server-switcher a:focus-visible,
.statistics-tabs a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

@keyframes aurelia-statistics-spin {
    to { transform: rotate(360deg); }
}

@keyframes aurelia-statistics-enter {
    from { opacity: .72; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
    .statistics-partial-progress {
        position: fixed;
        top: 88px;
        right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .statistics-partial-progress,
    .statistics-page[data-statistics-page] > :not(.statistics-partial-progress) {
        transition: none;
    }

    .statistics-partial-progress span,
    .statistics-page[data-statistics-page].is-refreshed > :not(.statistics-partial-progress) {
        animation: none;
    }
}
