:root {
    --gold-soft: #d8ba78;
    --gold-bright: #f0d69a;
    --glass: rgba(13, 13, 17, .74);
    --glass-solid: #101014;
    --portal-width: min(1460px, calc(100vw - 72px));
}

body {
    background:
        radial-gradient(circle at 12% 12%, rgba(121, 20, 22, .10), transparent 28rem),
        radial-gradient(circle at 88% 40%, rgba(98, 76, 45, .07), transparent 32rem),
        #070709;
}

.site-header {
    width: calc(100% - 32px);
    max-width: 1560px;
    top: 16px;
    left: 50%;
    right: auto;
    height: 68px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(7,7,9,.66);
    box-shadow: 0 24px 70px rgba(0,0,0,.24);
    backdrop-filter: blur(22px) saturate(135%);
    transform: translateX(-50%);
}

.site-header.scrolled {
    top: 10px;
    background: rgba(7,7,9,.9);
    border-color: rgba(255,255,255,.12);
}

.main-nav { gap: clamp(13px, 1.7vw, 27px); }
.main-nav a { font-size: 9px; letter-spacing: .13em; }
.main-nav a.active::after { left: 0; right: 0; bottom: -25px; height: 1px; background: linear-gradient(90deg, transparent, var(--red-bright), transparent); }
.brand { min-width: 150px; }
.brand img { width: 38px; height: 38px; }
.brand span { letter-spacing: .18em; }

.premium-language {
    position: relative;
    min-width: 54px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.025);
}
.premium-language select {
    width: 100%;
    height: 38px;
    appearance: none;
    padding: 0 20px 0 13px;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    cursor: pointer;
}
.premium-language::after { position: absolute; content: "⌄"; right: 9px; top: 9px; color: #736f76; pointer-events: none; }
.premium-language option { background: #101014; }

.hero {
    min-height: 900px;
    height: 100svh;
}
.hero-image::after {
    position: absolute;
    content: "";
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255,255,255,.035), transparent 23%),
        repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(255,255,255,.025) 25%);
}
.hero-content { width: var(--portal-width); }
.hero-content > * { max-width: 680px; }
.hero h1 { max-width: 780px; font-size: clamp(64px, 6.5vw, 108px); line-height: .88; letter-spacing: -.055em; }
.hero-copy { max-width: 600px; }
.hero-facts { padding-top: 23px; border-top: 1px solid rgba(255,255,255,.10); }
.hero-facts strong { color: var(--gold-bright); }
.live-strip { width: var(--portal-width); margin-top: -50px; position: relative; z-index: 5; border: 1px solid rgba(255,255,255,.09); background: rgba(10,10,13,.88); box-shadow: 0 32px 80px rgba(0,0,0,.36); backdrop-filter: blur(20px); }

.home-portal { width: var(--portal-width); margin: 0 auto; padding: 150px 0 70px; }
.home-portal-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 8vw; align-items: end; margin-bottom: 54px; }
.home-portal-head h2 { max-width: 870px; font-size: clamp(52px, 5.4vw, 88px); line-height: .94; letter-spacing: -.045em; }
.home-portal-head > p { max-width: 520px; margin: 0 0 8px; color: #9a969c; font-size: 15px; line-height: 1.8; }
.portal-mosaic { display: grid; grid-template-columns: 1.4fr .85fr .85fr; grid-template-rows: 310px 310px; gap: 14px; }
.portal-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    min-height: 280px;
    border: 1px solid rgba(255,255,255,.10);
    background: #111;
    isolation: isolate;
}
.portal-tile:first-child { grid-row: 1 / 3; }
.portal-tile:nth-child(4) { grid-column: 2 / 4; }
.portal-tile::before, .portal-tile::after { position: absolute; content: ""; inset: 0; z-index: -1; }
.portal-tile::before { background: var(--tile-image) center/cover; filter: saturate(.78) contrast(1.04); transform: scale(1.02); transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .7s ease; }
.portal-tile::after { background: linear-gradient(0deg, rgba(6,6,8,.98) 0%, rgba(6,6,8,.30) 66%, rgba(6,6,8,.12)), linear-gradient(90deg, rgba(6,6,8,.32), transparent); }
.portal-tile:hover::before { transform: scale(1.075); filter: saturate(1.02) contrast(1.06); }
.portal-tile-copy { width: 100%; padding: 34px; }
.portal-tile small { color: var(--gold-soft); font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.portal-tile h3 { max-width: 560px; margin: 7px 0 8px; font: 400 clamp(29px, 2.6vw, 45px)/1 Georgia, serif; letter-spacing: -.03em; }
.portal-tile p { max-width: 500px; margin: 0; color: #aaa6ad; font-size: 12px; line-height: 1.6; }
.portal-tile b { position: absolute; right: 25px; top: 25px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.18); background: rgba(7,7,9,.4); color: white; font-size: 15px; transition: background .3s, border-color .3s, transform .3s; }
.portal-tile:hover b { border-color: var(--red-bright); background: var(--red); transform: rotate(4deg); }

.home-class-stage {
    width: var(--portal-width);
    min-height: 760px;
    margin: 90px auto 140px;
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    background:
        radial-gradient(circle at 72% 40%, rgba(188,41,34,.16), transparent 27rem),
        linear-gradient(125deg, #0d0d11, #08080a);
}
.home-class-copy { align-self: center; padding: clamp(40px, 6vw, 92px); position: relative; z-index: 3; }
.home-class-copy h2 { margin: 16px 0 24px; font-size: clamp(52px, 5.4vw, 84px); line-height: .92; }
.home-class-copy > p { max-width: 500px; color: #9d999f; line-height: 1.8; }
.home-class-art { position: relative; min-height: 760px; overflow: hidden; }
.home-class-art::after { position: absolute; content: ""; inset: 0; background: linear-gradient(90deg, #0d0d11 0, transparent 28%), linear-gradient(0deg, #09090b 0, transparent 35%); pointer-events: none; }
.home-class-art img { position: absolute; bottom: 0; height: 88%; width: auto; max-width: none; filter: drop-shadow(0 35px 35px rgba(0,0,0,.7)) saturate(.92); transition: transform .5s ease, filter .5s ease; }
.home-class-art img:nth-child(1) { left: 2%; z-index: 1; transform: translateY(5%) scale(.93); }
.home-class-art img:nth-child(2) { left: 26%; z-index: 3; }
.home-class-art img:nth-child(3) { left: 49%; z-index: 4; transform: translateY(2%) scale(1.02); }
.home-class-art img:nth-child(4) { left: 71%; z-index: 2; transform: translateY(7%) scale(.9); }
.home-class-stage:hover .home-class-art img { filter: drop-shadow(0 38px 42px rgba(0,0,0,.76)) saturate(1.06); }

.ranking-section { width: var(--portal-width); }
.ranking-panel { background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.ranking-list > ul { grid-template-columns: 1fr auto; }
.ranking-list > ul::before { display: none; }
.ranking-list > ul li { display: grid; grid-template-columns: minmax(120px,1fr) auto auto; gap: 18px; align-items: center; }

/* Multi-page portal */
.portal-page { background: #08080a; }
.portal-main { min-height: 100vh; }
.portal-hero {
    position: relative;
    min-height: 690px;
    display: grid;
    align-items: end;
    overflow: hidden;
    padding: 150px max(36px, calc((100vw - 1460px)/2)) 76px;
    border-bottom: 1px solid rgba(255,255,255,.09);
    isolation: isolate;
}
.portal-hero::before, .portal-hero::after { position: absolute; content: ""; inset: 0; z-index: -2; }
.portal-hero::before { background: var(--portal-hero) center/cover; animation: hero-breathe 18s ease-in-out infinite alternate; }
.portal-hero::after { z-index: -1; background: linear-gradient(90deg, rgba(6,6,8,.98), rgba(6,6,8,.65) 44%, rgba(6,6,8,.18)), linear-gradient(0deg, #08080a 0, transparent 45%, rgba(5,5,7,.28)); }
.portal-hero-inner { width: min(980px, 90vw); }
.portal-hero h1 { max-width: 920px; margin: 15px 0 24px; font: 400 clamp(64px, 7vw, 112px)/.9 Georgia, serif; letter-spacing: -.055em; }
.portal-hero p.portal-lead { max-width: 670px; color: #b6b1b7; font-size: clamp(16px,1.35vw,20px); line-height: 1.75; }
.portal-hero-meta { position: absolute; right: max(36px, calc((100vw - 1460px)/2)); bottom: 78px; display: flex; gap: 9px; }
.portal-hero-meta span { min-width: 150px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.12); background: rgba(6,6,8,.44); backdrop-filter: blur(12px); }
.portal-hero-meta strong { display: block; color: white; font: 400 30px Georgia, serif; }
.portal-hero-meta small { color: #8d8990; font-size: 8px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }

.portal-content { width: var(--portal-width); margin: 0 auto; padding: 100px 0 150px; }
.portal-toolbar {
    position: sticky;
    top: 94px;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(260px,1fr) auto auto auto;
    gap: 10px;
    margin-bottom: 34px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(10,10,13,.86);
    box-shadow: 0 22px 65px rgba(0,0,0,.35);
    backdrop-filter: blur(20px);
}
.portal-search { display: flex; align-items: center; min-height: 54px; gap: 12px; padding: 0 18px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); }
.portal-search span { color: var(--gold-soft); font-size: 18px; }
.portal-search input { width: 100%; border: 0; outline: 0; background: transparent; color: white; font-size: 13px; }
.portal-filters { display: flex; gap: 6px; }
.portal-filter, .portal-select select {
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.025);
    color: #8f8b92;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
    cursor: pointer;
}
.portal-filter.active, .portal-filter:hover { border-color: rgba(213,48,42,.7); background: rgba(179,36,31,.18); color: white; }
.portal-select select { min-width: 210px; appearance: none; text-transform: none; }
.portal-select option { background: #111116; }

.lore-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.lore-card {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    background: #101014;
    cursor: pointer;
    isolation: isolate;
}
.lore-card:nth-child(8n+1), .lore-card:nth-child(8n+6) { grid-column: span 2; }
.lore-card::before, .lore-card::after { position: absolute; content: ""; inset: 0; z-index: -1; }
.lore-card::before { background: var(--lore-image) center/cover; filter: saturate(.78); transform: scale(1.015); transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .6s; }
.lore-card::after { background: linear-gradient(0deg, rgba(5,5,7,.99), rgba(5,5,7,.18) 76%), linear-gradient(90deg, rgba(5,5,7,.4), transparent); }
.lore-card:hover::before { transform: scale(1.075); filter: saturate(1.08); }
.lore-card-copy { padding: 32px; }
.lore-card small { display: inline-flex; margin-bottom: 9px; padding: 7px 9px; border: 1px solid rgba(216,186,120,.28); background: rgba(6,6,8,.35); color: var(--gold-soft); font-size: 8px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.lore-card h2 { margin: 0 0 10px; font: 400 clamp(27px,2.2vw,39px)/1 Georgia,serif; }
.lore-card p { max-width: 700px; margin: 0; color: #a5a1a7; font-size: 12px; line-height: 1.65; }
.lore-card > b { position: absolute; top: 24px; right: 24px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.18); background: rgba(7,7,9,.35); }

.portal-dialog {
    width: min(1080px, calc(100vw - 32px));
    max-height: 88vh;
    padding: 0;
    overflow: auto;
    border: 1px solid rgba(255,255,255,.14);
    background: #0d0d11;
    color: white;
    box-shadow: 0 45px 140px rgba(0,0,0,.82);
}
.portal-dialog::backdrop { background: rgba(3,3,5,.82); backdrop-filter: blur(12px); }
.portal-dialog-visual { min-height: 370px; background: var(--dialog-image) center/cover; position: relative; }
.portal-dialog-visual::after { position:absolute; content:""; inset:0; background:linear-gradient(0deg,#0d0d11,transparent 66%); }
.portal-dialog-body { padding: 0 clamp(26px,6vw,74px) 70px; }
.portal-dialog-body h2 { margin: -36px 0 30px; position: relative; font-size: clamp(44px,6vw,80px); }
.portal-dialog-body h3 { margin: 34px 0 12px; color: var(--gold-soft); font: 400 28px Georgia,serif; }
.portal-dialog-body p { color: #aaa6ad; line-height: 1.8; }
.portal-dialog .modal-close { position: fixed; right: max(24px, calc((100vw - 1080px)/2 + 20px)); top: 8vh; z-index: 3; }

.premium-craft-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.premium-craft-card {
    position: relative;
    min-height: 430px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    background: linear-gradient(145deg, rgba(255,255,255,.035), transparent 55%), #0d0d11;
    transition: border-color .35s, transform .35s, box-shadow .35s;
}
.premium-craft-card:hover { transform: translateY(-5px); border-color: rgba(216,186,120,.36); box-shadow: 0 28px 70px rgba(0,0,0,.32); }
.craft-output { display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.craft-output-visual { width: 88px; height: 88px; display:grid; place-items:center; border:1px solid rgba(216,186,120,.2); background:radial-gradient(circle,rgba(216,186,120,.12),transparent 68%); }
.craft-output-visual img { max-width: 58px; max-height: 58px; image-rendering: auto; }
.craft-output small { color: var(--gold-soft); font-size:8px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.craft-output h2 { margin:6px 0 0; font:400 27px/1.05 Georgia,serif; }
.craft-material-label { margin: 24px 0 13px; color:#76727a; font-size:8px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.craft-materials { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.craft-materials li { display:grid; grid-template-columns:32px 1fr auto; gap:10px; align-items:center; min-height:40px; color:#aaa6ad; font-size:11px; }
.craft-materials img { width:30px; height:30px; object-fit:contain; }
.craft-materials strong { color:white; }
.craft-facts { position:absolute; left:28px; right:28px; bottom:25px; display:flex; gap:8px; flex-wrap:wrap; padding-top:17px; border-top:1px solid rgba(255,255,255,.08); }
.craft-facts span { color:#77737a; font-size:8px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.craft-facts b { margin-left:4px; color:#e4dfd9; }
.portal-load-more { display:flex; min-width:230px; min-height:56px; align-items:center; justify-content:center; margin:42px auto 0; border:1px solid rgba(216,186,120,.35); background:transparent; color:white; font-size:9px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; cursor:pointer; }
.portal-load-more:hover { background:rgba(216,186,120,.08); }
.portal-results { display:grid; align-content:center; min-width:112px; padding:0 18px; border-left:1px solid rgba(255,255,255,.08); }
.portal-results strong { font:400 24px Georgia,serif; }
.portal-results span { color:#77737a; font-size:8px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }

.classes-hero { --portal-hero: linear-gradient(90deg,#08080a 0%,transparent 56%), radial-gradient(circle at 72% 42%,rgba(198,48,42,.2),transparent 25rem); min-height:760px; }
.classes-hero .portal-hero-inner { position:relative; z-index:2; width:min(650px,50vw); }
.classes-hero h1 { font-size:clamp(58px,5.6vw,88px); }
.classes-constellation { position:absolute; inset:80px 0 0 45%; pointer-events:none; }
.classes-constellation img { position:absolute; bottom:-8%; height:82%; width:auto; max-width:none; filter:drop-shadow(0 35px 35px rgba(0,0,0,.75)) saturate(.9); }
.classes-constellation img:nth-child(1){left:-6%;transform:scale(.9);}
.classes-constellation img:nth-child(2){left:18%;z-index:2;}
.classes-constellation img:nth-child(3){left:42%;z-index:3;transform:scale(1.04);}
.classes-constellation img:nth-child(4){left:66%;transform:scale(.9);}
.class-directory { display:grid; gap:18px; }
.class-profile {
    position:relative;
    min-height:680px;
    display:grid;
    grid-template-columns:1fr 1fr;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.09);
    background:radial-gradient(circle at 25% 45%,color-mix(in srgb,var(--class-accent) 15%,transparent),transparent 28rem),#0d0d11;
}
.class-profile:nth-child(even) .class-profile-art { order:2; }
.class-profile-art { position:relative; overflow:hidden; }
.class-profile-art::after { position:absolute; content:""; inset:0; background:linear-gradient(90deg,transparent 60%,#0d0d11),linear-gradient(0deg,#0d0d11,transparent 40%); }
.class-profile:nth-child(even) .class-profile-art::after { background:linear-gradient(-90deg,transparent 60%,#0d0d11),linear-gradient(0deg,#0d0d11,transparent 40%); }
.class-profile-art img { position:absolute; left:50%; bottom:-5%; height:96%; width:auto; max-width:none; transform:translateX(-50%); filter:drop-shadow(0 35px 42px rgba(0,0,0,.72)) saturate(.98); }
.class-profile-copy { align-self:center; padding:clamp(38px,6vw,92px); position:relative; z-index:2; }
.class-profile-copy small { color:var(--class-accent); font-size:9px; font-weight:900; letter-spacing:.16em; text-transform:uppercase; }
.class-profile-copy h2 { margin:9px 0 22px; font-size:clamp(58px,6vw,92px); line-height:.9; }
.class-profile-copy > p { max-width:540px; color:#a9a5ab; line-height:1.8; }
.doctrines { display:grid; grid-template-columns:repeat(2,1fr); gap:9px; margin-top:34px; }
.doctrine { padding:20px; border:1px solid rgba(255,255,255,.09); background:rgba(255,255,255,.025); }
.doctrine strong { display:block; margin-bottom:7px; color:white; font:400 20px Georgia,serif; }
.doctrine span { color:#77737b; font-size:10px; line-height:1.55; }

.editorial-page .portal-hero { --portal-hero: url("hero-2026.webp"); }
.editorial-flow { width:var(--portal-width); margin:0 auto; padding:130px 0; display:grid; gap:22px; }
.editorial-chapter { min-height:620px; display:grid; grid-template-columns:1.08fr .92fr; border:1px solid rgba(255,255,255,.09); background:#0d0d11; overflow:hidden; }
.editorial-chapter:nth-child(even) .editorial-visual { order:2; }
.editorial-visual { min-height:620px; background:var(--chapter-image) center/cover; position:relative; filter:saturate(.83); }
.editorial-visual::after { position:absolute; content:""; inset:0; background:linear-gradient(90deg,transparent 60%,#0d0d11); }
.editorial-chapter:nth-child(even) .editorial-visual::after { background:linear-gradient(-90deg,transparent 60%,#0d0d11); }
.editorial-copy { align-self:center; padding:clamp(42px,6vw,95px); }
.editorial-copy h2 { margin:13px 0 24px; font-size:clamp(50px,5vw,78px); line-height:.94; }
.editorial-copy p { color:#aaa6ad; line-height:1.85; }

@media (max-width: 1180px) {
    .site-header { width: calc(100% - 20px); }
    .main-nav { gap: 13px; }
    .main-nav a { font-size: 8px; }
    .header-cta { padding: 0 14px; }
    .portal-mosaic { grid-template-columns: 1.2fr 1fr; grid-template-rows: repeat(3,280px); }
    .portal-tile:first-child { grid-row:1/3; }
    .portal-tile:nth-child(4) { grid-column:1/3; }
    .home-class-stage { grid-template-columns:1fr; }
    .home-class-art { min-height:620px; }
    .lore-grid { grid-template-columns:repeat(2,1fr); }
    .lore-card:nth-child(8n+1),.lore-card:nth-child(8n+6){grid-column:span 1;}
    .premium-craft-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 900px) {
    :root { --portal-width: min(100% - 32px, 1460px); }
    .site-header { top:8px; }
    .home-portal-head { grid-template-columns:1fr; gap:24px; }
    .portal-hero { min-height:620px; padding:130px 24px 60px; }
    .portal-hero-inner { width:100%; }
    .portal-hero-meta { position:static; margin-top:34px; }
    .portal-toolbar { top:86px; grid-template-columns:1fr; }
    .portal-filters { overflow:auto; }
    .portal-filter { white-space:nowrap; }
    .classes-constellation { inset:110px -35% 0 34%; opacity:.72; }
    .classes-hero .portal-hero-inner { width:min(570px,62vw); }
    .class-profile { grid-template-columns:1fr; }
    .class-profile-art,.class-profile:nth-child(even) .class-profile-art { order:0; min-height:520px; }
    .class-profile-copy { order:1; }
    .editorial-chapter { grid-template-columns:1fr; }
    .editorial-visual,.editorial-chapter:nth-child(even) .editorial-visual{order:0;min-height:420px;}
}

@media (max-width: 640px) {
    :root { --portal-width: calc(100% - 24px); }
    .site-header { width:calc(100% - 12px); height:62px; padding:0 12px; }
    .hero { min-height:760px; }
    .hero h1 { font-size:clamp(49px,15vw,68px); }
    .live-strip { margin-top:-26px; }
    .home-portal { padding-top:100px; }
    .home-portal-head h2 { font-size:48px; }
    .portal-mosaic { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; }
    .portal-tile,.portal-tile:first-child,.portal-tile:nth-child(4){flex:0 0 87vw;min-height:520px;scroll-snap-align:center;}
    .home-class-stage { margin-top:60px; }
    .home-class-art { min-height:480px; }
    .home-class-art img { height:78%; }
    .home-class-art img:nth-child(1){left:-16%}.home-class-art img:nth-child(2){left:11%}.home-class-art img:nth-child(3){left:38%}.home-class-art img:nth-child(4){left:66%}
    .portal-hero h1 { font-size:clamp(50px,15vw,72px); }
    .portal-hero-meta { display:grid; grid-template-columns:repeat(2,1fr); }
    .portal-hero-meta span { min-width:0; }
    .portal-content { padding-top:70px; }
    .lore-grid,.premium-craft-grid { grid-template-columns:1fr; }
    .lore-card { min-height:470px; }
    .portal-toolbar { position:relative; top:0; }
    .portal-select select { width:100%; }
    .portal-results { border:0; padding:9px 4px; }
    .classes-constellation { inset:170px -85% 0 30%; }
    .classes-hero .portal-hero-inner { width:100%; }
    .classes-constellation img { height:64%; }
    .class-profile-art { min-height:460px; }
    .doctrines { grid-template-columns:1fr; }
    .editorial-flow { padding:80px 0; }
    .editorial-chapter { min-height:0; }
}

@media (prefers-reduced-motion: reduce) {
    .portal-hero::before,.lore-card::before,.portal-tile::before { animation:none!important; transition:none!important; }
}

/* Hero composition: centered title, framed by the original Metin2 characters. */
@media (min-width: 901px) {
    .home-page .hero {
        align-items: flex-start;
    }
    .home-page .hero-vignette {
        background:
            radial-gradient(ellipse at 50% 30%, rgba(4,4,6,.74), rgba(4,4,6,.23) 34%, transparent 58%),
            linear-gradient(90deg, rgba(4,4,6,.88), rgba(4,4,6,.18) 36%, rgba(4,4,6,.16) 66%, rgba(4,4,6,.55)),
            linear-gradient(0deg, #070708 0%, rgba(7,7,8,.03) 34%, rgba(7,7,8,.28) 100%);
    }
    .home-page .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 0;
        padding-top: clamp(150px, 17vh, 190px);
        text-align: center;
    }
    .home-page .hero-content > * {
        max-width: 820px;
        margin-left: auto;
        margin-right: auto;
    }
    .home-page .hero .eyebrow {
        justify-content: center;
    }
    .home-page .hero h1 {
        max-width: 990px;
        font-size: clamp(68px, 6.6vw, 106px);
        text-shadow: 0 5px 34px rgba(0,0,0,.82);
    }
    .home-page .hero-copy {
        max-width: 690px;
        margin-top: 22px;
        color: #d3cecf;
        text-shadow: 0 2px 18px rgba(0,0,0,.95);
    }
    .home-page .hero-actions,
    .home-page .hero-facts {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .home-page .hero {
        min-height: 880px;
        align-items: flex-start;
        padding-bottom: 0;
    }
    .home-page .hero-content {
        display: block;
        margin-top: 0;
        padding-top: 132px;
        text-align: left;
    }
    .home-page .hero-content > * {
        margin-left: 0;
        margin-right: 0;
    }
    .home-page .hero .eyebrow,
    .home-page .hero-actions,
    .home-page .hero-facts {
        justify-content: flex-start;
    }
}

/* 2026 rounded premium system */
:root {
    --radius-s: 14px;
    --radius-m: 22px;
    --radius-l: 32px;
    --radius-xl: 44px;
}

html, body { max-width: 100%; overflow-x: clip; }

.site-header {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    border-radius: var(--radius-m);
    transform: none;
}
.site-header.scrolled { transform: none; }
.brand { min-width: 132px; }
.header-actions { min-width: 0; gap: 8px; }
.language-picker summary,
.premium-language,
.text-action,
.header-cta,
.download-pill,
.menu-toggle { border-radius: var(--radius-s); }
.download-pill {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid rgba(240,214,154,.34);
    background: linear-gradient(135deg, rgba(240,214,154,.16), rgba(190,142,64,.06));
    color: #fff5dd;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
    box-shadow: inset 0 1px rgba(255,255,255,.08);
}
.download-pill span {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 8px;
    background: var(--gold-soft);
    color: #15100a;
    font-size: 15px;
}
.download-pill:hover { border-color: var(--gold-bright); color: white; transform: translateY(-1px); }
.login-pill {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-s);
    background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018));
    box-shadow: inset 0 1px rgba(255,255,255,.055), 0 12px 34px rgba(0,0,0,.16);
    color: #e8e4e1;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: border-color .25s ease, background .25s ease, color .25s ease, transform .25s ease;
}
.login-pill span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 8px;
    color: var(--gold-bright);
    font-size: 13px;
}
.login-pill:hover {
    border-color: rgba(240,214,154,.5);
    background: linear-gradient(145deg, rgba(240,214,154,.12), rgba(255,255,255,.025));
    color: white;
    transform: translateY(-1px);
}
.account-pill {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    border: 1px solid rgba(240,214,154,.28);
    border-radius: var(--radius-s);
    background:
        linear-gradient(145deg, rgba(240,214,154,.09), rgba(255,255,255,.018));
    box-shadow:
        inset 0 1px rgba(255,255,255,.07),
        0 12px 34px rgba(0,0,0,.18);
    color: #f3ead7;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: border-color .25s ease, background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.account-pill span {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(240,214,154,.22);
    border-radius: 8px;
    background: rgba(216,186,120,.08);
    color: var(--gold-bright);
    font-size: 8px;
    box-shadow: inset 0 1px rgba(255,255,255,.06);
}
.account-pill:hover {
    border-color: rgba(240,214,154,.62);
    background:
        linear-gradient(145deg, rgba(240,214,154,.16), rgba(255,255,255,.025));
    box-shadow:
        inset 0 1px rgba(255,255,255,.09),
        0 16px 38px rgba(0,0,0,.24);
    color: white;
    transform: translateY(-1px);
}
.nav-mobile-only { display: none; }

.hero {
    width: calc(100% - 20px);
    margin: 10px auto 0;
    min-height: calc(100svh - 10px);
    border-radius: var(--radius-xl);
    box-shadow: 0 34px 120px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.06);
}
.hero::after { border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
.button { border-radius: var(--radius-s); overflow: hidden; }
.button::before { border-radius: 10px; }
.button-download {
    border-color: rgba(240,214,154,.42);
    background: linear-gradient(135deg, #ead095, #a97d37);
    color: #171008;
    box-shadow: 0 18px 50px rgba(190,142,64,.18);
}
.button-download:hover { color: #171008; transform: translateY(-3px); box-shadow: 0 23px 65px rgba(190,142,64,.28); }
.download-mark { font-size: 20px; line-height: 1; }
.hero-text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 8px;
    color: #c6c0c3;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.hero-text-link b { color: var(--red-bright); font-size: 16px; }
.hero-text-link:hover { color: white; }

.live-strip,
.portal-tile,
.home-class-stage,
.ranking-panel,
.portal-hero,
.class-profile,
.doctrine,
.editorial-chapter,
.login-dialog,
.legacy-content input,
.legacy-content textarea,
.legacy-content select,
.legacy-content table,
.legacy-content .alert {
    position: relative;
    margin: 0 0 18px;
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    background: rgba(12,14,18,.88);
    color: #d6d2d0;
    font-size: 13px;
    line-height: 1.55;
    box-shadow: inset 0 1px rgba(255,255,255,.035), 0 18px 50px rgba(0,0,0,.2);
}
.legacy-content .alert-info {
    border-color: rgba(111,177,227,.23);
    background: linear-gradient(100deg,rgba(56,126,179,.11),rgba(12,14,18,.9) 45%);
    color: #bfd9ed;
}
.legacy-content .alert-success {
    border-color: rgba(75,215,137,.22);
    background: linear-gradient(100deg,rgba(45,147,93,.1),rgba(12,14,18,.9) 45%);
    color: #b9e3ca;
}
.legacy-content .alert-danger {
    border-color: rgba(233,76,64,.24);
    background: linear-gradient(100deg,rgba(177,44,38,.11),rgba(12,14,18,.9) 45%);
    color: #e8b8b4;
}
.alert.alert-dismissible {
    padding-right: 18px;
}
.alert.alert-dismissible > button.close {
    display: none !important;
}
.live-strip { overflow: hidden; }
.portal-tile,
.home-class-stage,
.class-profile,
.editorial-chapter { border-radius: var(--radius-l); }
.portal-hero {
    width: calc(100% - 20px);
    margin: 10px auto 0;
    border-radius: var(--radius-xl);
    box-shadow: 0 34px 120px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.06);
}
.portal-tile b,
.lore-card > b,
.modal-close { border-radius: 13px; }
.portal-dialog { border-radius: var(--radius-l); }
.premium-craft-card { border-radius: var(--radius-m); }
.editorial-flow { gap: 28px; }
.editorial-chapter { box-shadow: 0 28px 80px rgba(0,0,0,.26); }
.class-profile { box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.final-cta {
    width: calc(100% - 20px);
    margin: 10px auto;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius-xl);
}
.interior-shell { padding-top: 130px; }

/* Dedicated download and ranking destinations */
.destination-page { background: #070709; }
.destination-shell { width: var(--portal-width); margin: 0 auto; padding: 132px 0 120px; }
.destination-hero {
    position: relative;
    min-height: 540px;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(330px,.72fr);
    gap: clamp(36px,7vw,110px);
    align-items: center;
    overflow: hidden;
    padding: clamp(38px,6vw,88px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 78% 38%, rgba(204,49,42,.23), transparent 25rem),
        linear-gradient(135deg, rgba(255,255,255,.045), transparent 45%),
        #0c0c10;
    box-shadow: 0 38px 120px rgba(0,0,0,.38);
}
.destination-hero::after {
    position: absolute;
    content: "";
    width: 520px;
    aspect-ratio: 1;
    right: -120px;
    top: -180px;
    border: 1px solid rgba(240,214,154,.09);
    border-radius: 50%;
    box-shadow: 0 0 0 80px rgba(240,214,154,.02), 0 0 0 160px rgba(240,214,154,.018);
}
.destination-copy { position: relative; z-index: 2; }
.destination-hero .reveal { opacity: 1; transform: none; }
.destination-copy h1 {
    max-width: 780px;
    margin: 12px 0 24px;
    font: 400 clamp(58px,7vw,106px)/.88 Georgia,serif;
    letter-spacing: -.055em;
}
.destination-copy > p:not(.eyebrow) { max-width: 650px; color: #aaa6ad; font-size: clamp(16px,1.3vw,19px); line-height: 1.75; }
.download-card {
    position: relative;
    z-index: 2;
    padding: 30px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-l);
    background: rgba(8,8,11,.62);
    box-shadow: 0 30px 90px rgba(0,0,0,.3);
    backdrop-filter: blur(20px);
}
.download-card-mark {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin-bottom: 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--gold-bright), #a87936);
    color: #171008;
    font-size: 32px;
    box-shadow: 0 18px 48px rgba(216,186,120,.18);
}
.download-card h2 { margin: 0 0 8px; font: 400 31px Georgia,serif; }
.download-card p { margin: 0 0 24px; color: #8e8990; font-size: 12px; line-height: 1.65; }
.download-card .button { width: 100%; }
.download-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 14px; }
.download-meta span { padding: 14px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; color: #77727a; font-size: 8px; text-align: center; text-transform: uppercase; letter-spacing: .1em; }
.destination-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 28px; }
.destination-info {
    min-height: 220px;
    padding: 32px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--radius-m);
    background: linear-gradient(145deg, rgba(255,255,255,.035), transparent), #0c0c10;
}
.destination-info i { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: rgba(216,186,120,.1); color: var(--gold-soft); font-style: normal; font-size: 18px; }
.destination-info h3 { margin: 22px 0 10px; font: 400 26px Georgia,serif; }
.destination-info p { margin: 0; color: #8f8a91; font-size: 13px; line-height: 1.65; }

.ranking-destination { margin-top: 28px; }
.ranking-destination .ranking-grid { align-items: start; }
.ranking-destination .ranking-panel { overflow: hidden; box-shadow: 0 28px 90px rgba(0,0,0,.26); }
.ranking-destination .ranking-list { min-height: 0; }
.ranking-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 10px 14px;
    border: 1px solid rgba(74,227,140,.18);
    border-radius: 999px;
    background: rgba(74,227,140,.06);
    color: #7eeaaa;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ranking-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ae38c; box-shadow: 0 0 14px #4ae38c; }
.ranking-hero { grid-template-columns: 1fr; min-height: 620px; }
.ranking-hero .destination-copy { width: min(760px,58%); }
.ranking-characters { inset: 55px -2% 0 51%; opacity: .86; }
.ranking-characters img { height: 86%; }
.rank-clean { padding: 12px 22px 22px; }
.rank-row {
    min-height: 66px;
    display: grid;
    grid-template-columns: 54px minmax(120px,1fr) minmax(105px,auto) 52px;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.rank-row:last-child { border-bottom: 0; }
.rank-position { color: #6e6970; font: 400 17px Georgia,serif; }
.rank-row > strong { color: #eee9e4; font-size: 12px; letter-spacing: .02em; }
.rank-empire { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; color: #77727a; }
.rank-empire img { width: 22px; height: 14px; object-fit: cover; border-radius: 3px; }
.rank-empire small { font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rank-level { min-width: 42px; display: grid; place-items: center; padding: 9px 7px; border-radius: 11px; background: rgba(216,186,120,.09); color: var(--gold-bright); font: 400 16px Georgia,serif; }
.ranking-panel > header > small { color: #706b72; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 1380px) {
    .site-header { left: 10px; right: 10px; width: auto; display: flex; }
    .brand { order: 1; }
    .header-actions { order: 2; margin-left: auto; }
    .menu-toggle { display: block; order: 3; flex: 0 0 42px; }
    .main-nav {
        position: fixed;
        top: 88px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: calc(100svh - 104px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px;
        overflow: auto;
        border: 1px solid rgba(255,255,255,.1);
        border-radius: var(--radius-m);
        background: rgba(8,8,11,.98);
        box-shadow: 0 35px 100px rgba(0,0,0,.68);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: .25s ease;
    }
    .main-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .main-nav a { padding: 16px 15px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 10px; }
    .main-nav a.active::after { display: none; }
    .main-nav .nav-mobile-only { display: block; color: var(--gold-bright); }
    .header-actions { justify-self: end; }
}

@media (max-width: 760px) {
    .site-header { left: 6px; right: 6px; width: auto; padding: 0 10px; }
    .brand { min-width: auto; }
    .brand span { display: none; }
    .text-action, .header-cta { display: none; }
    .download-pill { padding: 0 12px; }
    .download-pill span { width: 21px; height: 21px; }
    .hero, .portal-hero, .final-cta { width: calc(100% - 12px); border-radius: 28px; }
    .hero { margin-top: 6px; }
    .portal-hero { margin-top: 6px; padding-left: 22px; padding-right: 22px; }
    .live-strip { border-radius: 18px; }
    .destination-shell { width: calc(100% - 20px); padding-top: 94px; }
    .destination-hero { grid-template-columns: 1fr; padding: 30px 22px; border-radius: 28px; }
    .destination-copy h1 { font-size: clamp(52px,17vw,76px); }
    .destination-grid, .download-meta { grid-template-columns: 1fr; }
    .ranking-destination .ranking-grid { grid-template-columns: 1fr; }
    .ranking-hero .destination-copy { width: 100%; padding-bottom: 260px; }
    .ranking-characters { inset: auto -60% -4% 2%; height: 330px; }
    .rank-row { grid-template-columns: 42px minmax(90px,1fr) 42px; gap: 8px; }
    .rank-empire small { display: none; }
    .rank-empire { display: none; }
}

/* Lupus2 Citadel — homepage 2026 */
.game-home {
    --citadel-red: #b72521;
    --citadel-red-hot: #ec3f34;
    --citadel-gold: #d5ad62;
    --citadel-gold-light: #f3d99f;
    --citadel-ink: #08080b;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 35%, rgba(159,25,24,.09), transparent 32rem),
        radial-gradient(circle at 82% 65%, rgba(192,154,80,.06), transparent 35rem),
        #07070a;
}
.game-home::before {
    position: fixed;
    content: "";
    inset: 0;
    z-index: 20;
    pointer-events: none;
    opacity: .16;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}
.home-page .site-header {
    border-color: rgba(226,194,128,.16);
    background: linear-gradient(105deg, rgba(8,8,11,.88), rgba(14,12,13,.67));
    box-shadow: 0 28px 90px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.035);
}
.home-page .site-header::before {
    position: absolute;
    content: "";
    left: 24px;
    right: 24px;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(214,174,96,.5), rgba(176,32,29,.55), transparent);
}
.home-page .main-nav {
    padding: 5px 7px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 999px;
    background: rgba(255,255,255,.025);
    box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.home-page .main-nav a {
    padding: 11px 14px;
    border-radius: 999px;
    color: #bab5b8;
}
.home-page .main-nav a:hover { color: white; background: rgba(255,255,255,.055); }
.home-page .main-nav a.active {
    color: #151009;
    background: linear-gradient(135deg, #f1d89c, #b88940);
    box-shadow: 0 6px 22px rgba(205,163,80,.2), inset 0 1px rgba(255,255,255,.5);
}
.modal .modal-backdrop { z-index: 0; opacity: 1; }
.modal .login-dialog { z-index: 2; }

.citadel-hero {
    position: relative;
    width: calc(100% - 16px);
    min-height: 880px;
    height: 100svh;
    margin: 8px auto 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 38px;
    background: #09090c;
    isolation: isolate;
    box-shadow: 0 60px 150px rgba(0,0,0,.55);
}
.citadel-hero::before,
.citadel-hero::after {
    position: absolute;
    content: "";
    pointer-events: none;
}
.citadel-hero::before {
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(5,5,8,.48), transparent 25%, transparent 75%, rgba(5,5,8,.5)),
        linear-gradient(0deg, #08080b 0, rgba(8,8,11,.05) 45%, rgba(5,5,7,.34) 100%),
        radial-gradient(ellipse at 50% 47%, rgba(7,7,9,.04) 0, rgba(7,7,9,.22) 45%, rgba(5,5,7,.64) 100%);
}
.citadel-hero::after {
    left: 7%;
    right: 7%;
    bottom: 35px;
    z-index: 5;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(227,192,122,.18), rgba(227,192,122,.42), rgba(227,192,122,.18), transparent);
}
.citadel-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("hero-2026.webp") center 43% / cover no-repeat;
    filter: saturate(.9) contrast(1.08) brightness(.72);
    transform: scale(1.035);
    animation: citadel-breathe 16s ease-in-out infinite alternate;
}
.citadel-backdrop::after {
    position: absolute;
    content: "";
    inset: 0;
    background:
        radial-gradient(circle at 50% 37%, rgba(221,237,255,.12), transparent 17rem),
        linear-gradient(115deg, rgba(154,20,24,.13), transparent 34%, transparent 66%, rgba(61,86,148,.14));
    mix-blend-mode: screen;
}
.citadel-aura {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 43%;
    width: min(42vw, 610px);
    aspect-ratio: 1;
    transform: translate(-50%,-50%);
    border: 1px solid rgba(229,201,142,.08);
    border-radius: 50%;
    box-shadow: inset 0 0 80px rgba(218,180,105,.035), 0 0 90px rgba(201,159,78,.035);
    pointer-events: none;
    animation: aura-drift 12s linear infinite;
}
.citadel-aura::before,
.citadel-aura::after,
.citadel-aura i {
    position: absolute;
    content: "";
    border: 1px solid rgba(230,198,133,.09);
    border-radius: 50%;
}
.citadel-aura::before { inset: 7%; border-style: dashed; }
.citadel-aura::after { inset: 20%; border-color: rgba(202,43,36,.12); }
.citadel-aura i:nth-child(1) { width: 8px; height: 8px; left: 9%; top: 28%; border: 0; background: var(--citadel-gold); box-shadow: 0 0 22px var(--citadel-gold); }
.citadel-aura i:nth-child(2) { width: 5px; height: 5px; right: 12%; bottom: 25%; border: 0; background: var(--citadel-red-hot); box-shadow: 0 0 20px var(--citadel-red-hot); }
.citadel-aura i:nth-child(3) { inset: 32%; border-style: dotted; }
.citadel-content {
    position: relative;
    z-index: 6;
    width: min(780px, 82vw);
    margin: 0 auto;
    padding-top: clamp(155px, 18vh, 205px);
    text-align: center;
}
.citadel-overline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 8px;
    color: #d7c9ad;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .24em;
    text-transform: uppercase;
    text-shadow: 0 2px 16px #000;
}
.citadel-overline span {
    width: 42px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--citadel-gold));
}
.citadel-overline span:last-child { transform: scaleX(-1); }
.citadel-brand {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    margin-left: .09em;
    color: transparent;
    font: 800 clamp(96px,10.8vw,182px)/.78 Georgia, "Times New Roman", serif;
    letter-spacing: -.075em;
    background: linear-gradient(180deg, #fff7df 0%, #e3c17d 35%, #a67633 68%, #5e3615 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 5px 0 rgba(36,16,5,.9)) drop-shadow(0 16px 24px rgba(0,0,0,.8));
}
.citadel-brand::after {
    position: absolute;
    content: "";
    left: 6%;
    right: 3%;
    bottom: -18px;
    height: 22px;
    opacity: .78;
    background: radial-gradient(ellipse, rgba(220,174,84,.48), transparent 68%);
    filter: blur(10px);
}
.citadel-brand em {
    margin-left: .045em;
    color: transparent;
    font-size: .71em;
    font-style: normal;
    background: linear-gradient(180deg, #ffb070, #d4422f 47%, #6c100e);
    -webkit-background-clip: text;
    background-clip: text;
}
.citadel-content h1 {
    max-width: 650px;
    margin: 27px auto 12px;
    color: #fffaf3;
    font: 400 clamp(31px,3vw,49px)/1.02 Georgia, serif;
    letter-spacing: -.04em;
    text-shadow: 0 5px 28px rgba(0,0,0,.95);
}
.citadel-copy {
    max-width: 620px;
    margin: 0 auto;
    color: rgba(235,230,224,.72);
    font-size: clamp(12px,1vw,14px);
    line-height: 1.7;
    text-shadow: 0 2px 16px #000;
}
.citadel-pulse {
    width: max-content;
    max-width: 100%;
    min-height: 54px;
    display: flex;
    align-items: stretch;
    margin: 23px auto 18px;
    overflow: hidden;
    border: 1px solid rgba(232,204,145,.22);
    border-radius: 18px;
    background: linear-gradient(115deg, rgba(10,10,13,.72), rgba(22,17,15,.58));
    box-shadow: 0 18px 55px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.06);
    backdrop-filter: blur(14px);
}
.pulse-status,
.pulse-value { display: flex; align-items: center; padding: 0 19px; }
.pulse-status { gap: 7px; border-right: 1px solid rgba(255,255,255,.09); }
.pulse-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4de08b;
    box-shadow: 0 0 15px #4de08b;
    animation: signal-pulse 1.8s ease-out infinite;
}
.pulse-status span,
.pulse-value span { color: #888187; font-size: 8px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.pulse-status strong { color: #73e6a0; font-size: 9px; letter-spacing: .11em; }
.pulse-value { gap: 9px; }
.pulse-value strong { color: var(--citadel-gold-light); font: 400 21px Georgia,serif; }
.citadel-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.citadel-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0 22px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    color: #f7f3ed;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}
.citadel-button b { font-size: 15px; font-weight: 500; }
.citadel-button:hover { color: white; transform: translateY(-3px); }
.citadel-button-primary {
    min-width: 190px;
    border-color: rgba(255,116,88,.42);
    background: linear-gradient(135deg, #ca3029, #8f1715);
    box-shadow: 0 16px 38px rgba(151,25,22,.32), inset 0 1px rgba(255,255,255,.19);
}
.citadel-button-primary:hover { border-color: #f27461; box-shadow: 0 20px 48px rgba(189,38,31,.42); }
.citadel-button-download {
    background: rgba(8,8,11,.7);
    box-shadow: inset 0 1px rgba(255,255,255,.04);
    backdrop-filter: blur(10px);
}
.citadel-button-download:hover { border-color: rgba(230,200,139,.48); background: rgba(38,31,24,.78); }
.citadel-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 6px;
    color: #d4c8b4;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.citadel-link b { color: var(--citadel-gold-light); font-size: 14px; }
.citadel-link:hover { color: white; }
.citadel-facts {
    position: absolute;
    z-index: 6;
    left: 5%;
    bottom: 57px;
    display: flex;
    gap: 9px;
}
.citadel-facts div {
    min-width: 112px;
    padding: 13px 15px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(8,8,11,.48);
    box-shadow: inset 0 1px rgba(255,255,255,.035);
    backdrop-filter: blur(13px);
}
.citadel-facts strong { display: block; color: var(--citadel-gold-light); font: 400 24px Georgia,serif; }
.citadel-facts span { display: block; margin-top: 2px; color: #918b8e; font-size: 7px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.citadel-scroll {
    position: absolute;
    z-index: 6;
    right: 5%;
    bottom: 61px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #7f7a7e;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .2em;
}
.citadel-scroll span { width: 45px; height: 1px; background: linear-gradient(90deg, transparent, var(--citadel-gold)); }

.realm-signal {
    position: relative;
    z-index: 8;
    width: min(1360px, calc(100% - 64px));
    min-height: 112px;
    display: grid;
    grid-template-columns: 1.15fr repeat(4,.7fr) .75fr;
    align-items: stretch;
    margin: -27px auto 0;
    overflow: hidden;
    border: 1px solid rgba(225,193,128,.18);
    border-radius: 25px;
    background: rgba(11,11,15,.92);
    box-shadow: 0 35px 100px rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.05);
    backdrop-filter: blur(22px);
}
.realm-signal::before {
    position: absolute;
    content: "";
    left: 8%;
    right: 8%;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--citadel-gold), var(--citadel-red), transparent);
}
.realm-signal-intro,
.realm-stat,
.realm-signal > a { display: flex; align-items: center; justify-content: center; }
.realm-signal-intro { justify-content: flex-start; gap: 14px; padding: 0 28px; }
.signal-orb {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(76,226,142,.18);
    border-radius: 50%;
    background: rgba(76,226,142,.055);
    box-shadow: inset 0 0 18px rgba(76,226,142,.05);
}
.signal-orb i { width: 8px; height: 8px; border-radius: 50%; background: #4cde8d; box-shadow: 0 0 18px #4cde8d; animation: signal-pulse 1.8s ease-out infinite; }
.realm-signal-intro small,
.realm-signal-intro strong { display: block; }
.realm-signal-intro small { color: #7d777c; font-size: 7px; font-weight: 900; letter-spacing: .16em; }
.realm-signal-intro strong { margin-top: 4px; color: #ede8e1; font-size: 10px; letter-spacing: .1em; }
.realm-stat {
    flex-direction: column;
    border-left: 1px solid rgba(255,255,255,.07);
}
.realm-stat strong { color: #f3eee7; font: 400 29px Georgia,serif; }
.realm-stat span { margin-top: 5px; color: #79747a; font-size: 7px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.realm-signal > a {
    gap: 13px;
    border-left: 1px solid rgba(255,255,255,.07);
    color: var(--citadel-gold-light);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: background .25s ease, color .25s ease;
}
.realm-signal > a b { font-size: 14px; }
.realm-signal > a:hover { color: white; background: rgba(183,37,33,.14); }

.realm-hub,
.realm-command {
    width: min(1460px, calc(100% - 72px));
    margin: 0 auto;
}
.realm-hub { padding: 155px 0 130px; }
.realm-hub-heading {
    display: grid;
    grid-template-columns: minmax(0,1.4fr) minmax(320px,.6fr);
    gap: 34px 8vw;
    align-items: end;
    margin-bottom: 52px;
}
.realm-hub-heading .eyebrow { grid-column: 1 / -1; margin: 0 0 -15px; }
.realm-hub-heading h2,
.realm-command-heading h2 {
    max-width: 900px;
    margin: 0;
    font: 400 clamp(55px,5.5vw,90px)/.91 Georgia,serif;
    letter-spacing: -.055em;
}
.realm-hub-heading > p:last-child { margin: 0 0 8px; color: #969198; font-size: 14px; line-height: 1.8; }
.realm-gateway {
    display: grid;
    grid-template-columns: 1.25fr .75fr .75fr;
    grid-template-rows: 330px 330px;
    gap: 14px;
    perspective: 1200px;
}
.gateway-card {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 32px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 27px;
    background: #0d0d11;
    box-shadow: 0 24px 70px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.04);
    isolation: isolate;
    transform-style: preserve-3d;
    transition: transform .25s ease, border-color .3s ease, box-shadow .3s ease;
}
.gateway-card::before,
.gateway-card::after {
    position: absolute;
    content: "";
    inset: 0;
    z-index: -2;
}
.gateway-card::before {
    background: var(--gateway-image) center/cover;
    filter: saturate(.72) contrast(1.08);
    transform: scale(1.025);
    transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .6s ease;
}
.gateway-card::after {
    z-index: -1;
    background:
        linear-gradient(0deg, rgba(5,5,8,.98) 0, rgba(5,5,8,.44) 60%, rgba(5,5,8,.08)),
        linear-gradient(105deg, rgba(139,24,22,.2), transparent 45%);
}
.gateway-card:hover { border-color: rgba(223,185,111,.35); box-shadow: 0 35px 90px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.08); }
.gateway-card:hover::before { transform: scale(1.09); filter: saturate(1) contrast(1.07); }
.gateway-card-world { grid-row: 1 / 3; }
.gateway-card-wide { grid-column: 2 / 4; }
.gateway-type {
    position: absolute;
    left: 25px;
    top: 24px;
    padding: 8px 11px;
    border: 1px solid rgba(235,203,137,.25);
    border-radius: 999px;
    background: rgba(7,7,10,.46);
    color: #e0c78f;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    backdrop-filter: blur(9px);
}
.gateway-card > b {
    position: absolute;
    right: 24px;
    top: 24px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    background: rgba(8,8,11,.48);
    color: white;
    font-size: 15px;
    font-weight: 400;
    backdrop-filter: blur(10px);
    transition: background .3s ease, transform .3s ease;
}
.gateway-card:hover > b { background: var(--citadel-red); transform: rotate(5deg); }
.gateway-card h3 { max-width: 610px; margin: 0 0 9px; color: white; font: 400 clamp(30px,2.5vw,44px)/.98 Georgia,serif; letter-spacing: -.035em; }
.gateway-card p { max-width: 560px; margin: 0; color: #aaa5ab; font-size: 12px; line-height: 1.62; }

.class-citadel {
    position: relative;
    width: min(1540px, calc(100% - 32px));
    min-height: 790px;
    display: grid;
    grid-template-columns: .68fr 1.32fr;
    margin: 10px auto 145px;
    overflow: hidden;
    border: 1px solid rgba(226,194,128,.16);
    border-radius: 42px;
    background:
        radial-gradient(circle at 69% 42%, rgba(177,37,32,.2), transparent 29rem),
        radial-gradient(circle at 75% 57%, rgba(215,176,101,.08), transparent 21rem),
        linear-gradient(125deg, #111014, #08080b 67%);
    box-shadow: 0 55px 150px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.04);
    isolation: isolate;
}
.class-citadel::before {
    position: absolute;
    content: "LUPUS2";
    left: 36%;
    top: 12%;
    z-index: -1;
    color: rgba(255,255,255,.018);
    font: 900 clamp(120px,15vw,250px)/1 Georgia,serif;
    letter-spacing: -.08em;
    white-space: nowrap;
}
.class-citadel-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(90deg, transparent, #000 48%, #000);
}
.class-citadel-copy {
    position: relative;
    z-index: 7;
    align-self: center;
    padding: clamp(45px,6vw,95px);
}
.class-citadel-copy h2 {
    margin: 18px 0 23px;
    font: 400 clamp(58px,5.5vw,88px)/.9 Georgia,serif;
    letter-spacing: -.055em;
}
.class-citadel-copy > p { max-width: 520px; margin: 0 0 17px; color: #a19ca2; font-size: 14px; line-height: 1.78; }
.class-roster { position: relative; min-height: 790px; }
.class-roster::before {
    position: absolute;
    content: "";
    left: 2%;
    right: 1%;
    bottom: 3%;
    height: 30%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(188,43,36,.28), rgba(202,163,83,.08) 40%, transparent 70%);
    filter: blur(22px);
}
.class-roster figure { position: absolute; inset: 0; margin: 0; pointer-events: none; }
.class-roster img {
    position: absolute;
    bottom: -2%;
    width: auto;
    max-width: none;
    height: 88%;
    filter: saturate(.9) drop-shadow(0 38px 40px rgba(0,0,0,.75));
    transform-origin: bottom center;
    transition: filter .5s ease, transform .5s ease;
}
.class-roster figure:nth-child(1) img { left: -1%; z-index: 1; transform: scale(.91) translateY(4%); }
.class-roster figure:nth-child(2) img { left: 23%; z-index: 3; transform: scale(1.01); }
.class-roster figure:nth-child(3) img { left: 48%; z-index: 4; transform: scale(1.04); }
.class-roster figure:nth-child(4) img { left: 71%; z-index: 2; transform: scale(.9) translateY(5%); }
.class-citadel:hover .class-roster img { filter: saturate(1.07) drop-shadow(0 42px 45px rgba(0,0,0,.8)); }
.class-roster figcaption {
    position: absolute;
    z-index: 7;
    bottom: 27px;
    padding: 10px 13px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(8,8,11,.65);
    color: #e2d7c5;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
    backdrop-filter: blur(9px);
}
.class-roster figure:nth-child(1) figcaption { left: 8%; }
.class-roster figure:nth-child(2) figcaption { left: 32%; }
.class-roster figure:nth-child(3) figcaption { left: 57%; }
.class-roster figure:nth-child(4) figcaption { left: 81%; }

.realm-command { padding: 0 0 150px; }
.realm-command-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 44px;
}
.realm-command-heading .eyebrow { margin-bottom: 19px; }
.realm-command-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr 1fr;
    gap: 14px;
}
.realm-overview,
.command-ranking {
    min-height: 520px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
    box-shadow: 0 28px 90px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.035);
}
.realm-overview {
    position: relative;
    padding: clamp(34px,4vw,58px);
    background:
        linear-gradient(0deg, rgba(7,7,10,.98), rgba(7,7,10,.45)),
        url("../presentation/guides/section17.jpg") center/cover;
}
.realm-overview::after {
    position: absolute;
    content: "";
    left: 0;
    top: 12%;
    bottom: 12%;
    width: 2px;
    background: linear-gradient(transparent, var(--citadel-red-hot), var(--citadel-gold), transparent);
}
.realm-overview > small { color: var(--citadel-gold); font-size: 8px; font-weight: 900; letter-spacing: .18em; }
.realm-overview h3 { max-width: 480px; margin: 19px 0 17px; font: 400 clamp(35px,3vw,49px)/.98 Georgia,serif; letter-spacing: -.035em; }
.realm-overview > p { max-width: 500px; margin: 0; color: #a9a4aa; font-size: 13px; line-height: 1.7; }
.overview-facts {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
    margin: 31px 0 22px;
}
.overview-facts span {
    min-width: 0;
    padding: 15px 12px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    background: rgba(8,8,11,.48);
    color: #7f7a80;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}
.overview-facts strong { display: block; margin-bottom: 5px; color: var(--citadel-gold-light); font: 400 23px Georgia,serif; }
.command-ranking { background: linear-gradient(155deg, rgba(30,26,26,.94), rgba(10,10,13,.97)); }
.command-ranking header { min-height: 102px; padding: 0 28px; border-bottom-color: rgba(255,255,255,.08); }
.command-ranking .ranking-list {
    min-height: 414px;
    padding: 9px 25px 22px;
}
.command-ranking .ranking-list > ul { min-height: 70px; }
.command-rank-row {
    grid-template-columns: 46px minmax(100px,1fr) minmax(82px,auto) 48px;
    min-height: 72px;
    gap: 11px;
}
.command-rank-row .rank-position {
    color: rgba(224,189,120,.55);
    font-size: 14px;
}
.command-rank-row > strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.command-rank-row .rank-level {
    border: 1px solid rgba(224,189,120,.12);
    background: linear-gradient(145deg, rgba(224,189,120,.12), rgba(224,189,120,.035));
}
.ranking-empty {
    min-height: 365px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 45px 28px;
    text-align: center;
}
.ranking-empty > span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 21px;
    border: 1px solid rgba(224,189,120,.2);
    border-radius: 18px;
    background: radial-gradient(circle at 35% 25%, rgba(224,189,120,.18), rgba(224,189,120,.035));
    box-shadow: 0 18px 55px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.06);
    color: var(--citadel-gold-light);
    font: 400 25px Georgia,serif;
    transform: rotate(45deg);
}
.ranking-empty > span::first-letter { transform: rotate(-45deg); }
.ranking-empty > strong {
    color: #eee9e4;
    font: 400 24px/1.05 Georgia,serif;
    letter-spacing: -.02em;
}
.ranking-empty > p {
    max-width: 270px;
    margin: 12px 0 0;
    color: #858087;
    font-size: 11px;
    line-height: 1.65;
}
.ranking-empty-large {
    min-height: 390px;
}

.ascension-cta {
    position: relative;
    width: calc(100% - 16px);
    min-height: 660px;
    display: grid;
    place-items: center;
    margin: 0 auto 8px;
    overflow: hidden;
    padding: 80px 25px;
    border: 1px solid rgba(224,189,120,.15);
    border-radius: 42px;
    background:
        linear-gradient(0deg, rgba(7,7,10,.96), rgba(7,7,10,.32), rgba(7,7,10,.8)),
        url("../presentation/guides/section10.jpg") center 45%/cover;
    text-align: center;
    isolation: isolate;
}
.ascension-cta::before {
    position: absolute;
    content: "";
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 50% 45%, rgba(171,37,31,.24), transparent 26rem);
}
.ascension-glow {
    position: absolute;
    width: 470px;
    aspect-ratio: 1;
    border: 1px solid rgba(224,190,125,.12);
    border-radius: 50%;
    box-shadow: inset 0 0 80px rgba(207,167,86,.05), 0 0 90px rgba(207,167,86,.06);
    animation: aura-drift 18s linear infinite reverse;
}
.ascension-glow::before,
.ascension-glow::after { position: absolute; content: ""; border: 1px dashed rgba(224,190,125,.11); border-radius: 50%; }
.ascension-glow::before { inset: 10%; }
.ascension-glow::after { inset: 24%; border-color: rgba(205,48,40,.17); }
.ascension-cta > div:last-child { position: relative; z-index: 3; }
.ascension-cta img { width: min(260px,60vw); height: auto; margin: 0 auto 24px; filter: drop-shadow(0 13px 24px rgba(0,0,0,.85)); }
.ascension-cta h2 { max-width: 850px; margin: 18px auto 16px; font: 400 clamp(55px,6vw,93px)/.9 Georgia,serif; letter-spacing: -.055em; }
.ascension-cta > div > p:not(.citadel-overline) { max-width: 560px; margin: 0 auto 28px; color: #a39ea4; font-size: 14px; line-height: 1.75; }

@keyframes citadel-breathe {
    0% { transform: scale(1.035); filter: saturate(.86) contrast(1.08) brightness(.69); }
    100% { transform: scale(1.085); filter: saturate(.98) contrast(1.1) brightness(.76); }
}
@keyframes aura-drift { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes signal-pulse {
    0%,100% { box-shadow: 0 0 8px rgba(76,222,141,.65); }
    50% { box-shadow: 0 0 24px rgba(76,222,141,1); }
}

@media (max-width: 1180px) {
    .citadel-content { padding-top: 165px; }
    .citadel-facts { left: 3%; }
    .citadel-scroll { right: 3%; }
    .realm-signal { grid-template-columns: 1fr repeat(4,.65fr); }
    .realm-signal > a { display: none; }
    .realm-command-grid { grid-template-columns: 1fr 1fr; }
    .realm-overview { grid-column: 1 / -1; min-height: 440px; }
    .class-citadel { grid-template-columns: .8fr 1.2fr; }
    .class-citadel-copy { padding: 55px 35px; }
}

@media (max-width: 900px) {
    .citadel-hero { min-height: 850px; }
    .citadel-backdrop { background-position: 50% center; }
    .citadel-content { width: min(680px, calc(100% - 42px)); padding-top: 170px; }
    .citadel-brand { font-size: clamp(82px,18vw,142px); }
    .citadel-facts { left: 50%; bottom: 42px; transform: translateX(-50%); }
    .citadel-scroll { display: none; }
    .realm-signal {
        grid-template-columns: repeat(4,1fr);
        width: calc(100% - 32px);
        min-height: 96px;
    }
    .realm-signal-intro { display: none; }
    .realm-hub, .realm-command { width: calc(100% - 32px); }
    .realm-hub { padding: 120px 0 100px; }
    .realm-hub-heading { grid-template-columns: 1fr; gap: 24px; }
    .realm-hub-heading .eyebrow { margin-bottom: 0; }
    .realm-gateway { grid-template-columns: 1fr 1fr; grid-template-rows: 450px 310px 310px; }
    .gateway-card-world { grid-column: 1 / -1; grid-row: auto; }
    .gateway-card-wide { grid-column: 1 / -1; }
    .class-citadel { grid-template-columns: 1fr; min-height: 1040px; }
    .class-citadel-copy { max-width: 670px; align-self: start; padding: 70px 45px 0; }
    .class-roster { position: absolute; left: 0; right: 0; bottom: 0; height: 690px; min-height: 0; }
    .class-roster img { height: 83%; }
    .realm-command-heading { align-items: center; }
}

@media (max-width: 620px) {
    .home-page .site-header::before { left: 12px; right: 12px; }
    .home-page .main-nav {
        top: 88px;
        border-radius: 22px;
        padding: 12px;
        background: rgba(8,8,11,.98);
    }
    .home-page .main-nav a { border-radius: 13px; }
    .home-page .main-nav .nav-mobile-action {
        width: 100%;
        padding: 16px 15px;
        border: 0;
        border-bottom: 1px solid rgba(255,255,255,.06);
        border-radius: 13px;
        background: transparent;
        color: #bab5b8;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .13em;
        text-align: left;
        text-transform: uppercase;
    }
    .home-page .main-nav .nav-mobile-register {
        margin-top: 7px;
        border: 1px solid rgba(223,70,55,.36);
        background: linear-gradient(135deg, rgba(189,43,37,.3), rgba(115,19,18,.25));
        color: white;
    }
    .citadel-hero {
        width: calc(100% - 10px);
        min-height: 790px;
        height: 100svh;
        max-height: 900px;
        margin-top: 5px;
        border-radius: 29px;
    }
    .citadel-backdrop {
        background-position: 50% center;
        filter: saturate(.82) contrast(1.08) brightness(.55);
    }
    .citadel-hero::before {
        background:
            linear-gradient(0deg, #08080b 0, rgba(8,8,11,.18) 49%, rgba(5,5,7,.45) 100%),
            radial-gradient(ellipse at 50% 43%, rgba(7,7,9,.1), rgba(5,5,7,.7) 84%);
    }
    .citadel-content { width: calc(100% - 28px); padding-top: 145px; }
    .citadel-overline { gap: 8px; font-size: 7px; letter-spacing: .16em; }
    .citadel-overline span { width: 22px; }
    .citadel-brand { margin-top: 10px; font-size: clamp(70px,21vw,100px); }
    .citadel-content h1 { margin-top: 28px; font-size: clamp(31px,10vw,42px); }
    .citadel-copy { max-width: 390px; font-size: 11px; line-height: 1.62; }
    .citadel-pulse { margin-top: 18px; min-height: 48px; border-radius: 15px; }
    .pulse-status, .pulse-value { padding: 0 12px; }
    .pulse-value strong { font-size: 18px; }
    .citadel-actions { gap: 8px; }
    .citadel-button { min-height: 50px; padding: 0 16px; border-radius: 14px; }
    .citadel-button-primary { min-width: 174px; }
    .citadel-content .citadel-link { width: 100%; justify-content: center; padding: 8px 0; }
    .citadel-facts { width: calc(100% - 30px); bottom: 24px; gap: 5px; }
    .citadel-facts div { min-width: 0; flex: 1; padding: 10px 8px; border-radius: 12px; text-align: center; }
    .citadel-facts strong { font-size: 20px; }
    .citadel-facts span { font-size: 6px; }
    .citadel-aura { width: 90vw; top: 40%; }
    .realm-signal {
        width: calc(100% - 20px);
        min-height: 84px;
        margin-top: -10px;
        border-radius: 19px;
    }
    .realm-stat strong { font-size: 22px; }
    .realm-stat span { padding: 0 4px; font-size: 6px; text-align: center; }
    .realm-hub, .realm-command { width: calc(100% - 20px); }
    .realm-hub { padding: 98px 0 86px; }
    .realm-hub-heading { margin-bottom: 34px; }
    .realm-hub-heading h2, .realm-command-heading h2 { font-size: clamp(45px,14vw,62px); }
    .realm-hub-heading > p:last-child { font-size: 12px; line-height: 1.65; }
    .realm-gateway { display: flex; flex-direction: column; }
    .gateway-card { min-height: 340px; padding: 26px; border-radius: 23px; }
    .gateway-card-world { min-height: 480px; }
    .gateway-card h3 { padding-right: 10px; font-size: 35px; }
    .gateway-card p { font-size: 11px; }
    .class-citadel {
        width: calc(100% - 10px);
        min-height: 880px;
        margin-bottom: 105px;
        border-radius: 30px;
    }
    .class-citadel-copy { padding: 54px 26px 0; }
    .class-citadel-copy h2 { font-size: clamp(47px,14vw,66px); }
    .class-citadel-copy > p { font-size: 12px; line-height: 1.65; }
    .class-roster { left: 0; right: 0; height: 560px; }
    .class-roster img { height: 79%; }
    .class-roster figure:nth-child(1) img { left: -7%; transform: scale(.73) translateY(4%); }
    .class-roster figure:nth-child(2) img { left: 17%; transform: scale(.8); }
    .class-roster figure:nth-child(3) img { left: 40%; transform: scale(.82); }
    .class-roster figure:nth-child(4) img { left: auto; right: -5%; transform: scale(.62) translateY(5%); }
    .class-roster figcaption { display: none; }
    .realm-command { padding-bottom: 105px; }
    .realm-command-heading { display: block; margin-bottom: 30px; }
    .realm-command-heading > .citadel-button { margin-top: 24px; }
    .realm-command-grid { grid-template-columns: 1fr; }
    .realm-overview { grid-column: auto; min-height: 490px; padding: 33px 27px; }
    .overview-facts { gap: 5px; }
    .overview-facts span { padding: 12px 7px; font-size: 6px; }
    .overview-facts strong { font-size: 20px; }
    .command-ranking { min-height: 460px; }
    .command-ranking header { padding: 0 20px; }
    .command-ranking .ranking-list { min-height: 0; padding: 3px 18px 18px; }
    .command-ranking .ranking-empty { min-height: 285px; }
    .command-rank-row { grid-template-columns: 42px minmax(90px,1fr) 42px; }
    .command-rank-row .rank-empire { display: none; }
    .ascension-cta {
        width: calc(100% - 10px);
        min-height: 610px;
        border-radius: 30px;
    }
    .ascension-glow { width: 88vw; }
    .ascension-cta h2 { font-size: clamp(48px,15vw,68px); }
}

@media (prefers-reduced-motion: reduce) {
    .citadel-backdrop, .citadel-aura, .ascension-glow, .signal-orb i, .pulse-status i { animation: none; }
}

/* Header and language refinement */
.site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
}
.site-header > .brand { display: none; }
.site-header > .main-nav { grid-column: 1; }
.site-header > .header-actions { grid-column: 2; }

.citadel-brand {
    display: block;
    margin: 18px auto 0;
    color: inherit;
    font: inherit;
    letter-spacing: normal;
    background: none;
    filter: none;
}
.citadel-brand img {
    width: clamp(360px, 38vw, 610px);
    height: auto;
    margin: 0 auto;
    filter:
        drop-shadow(0 5px 0 rgba(38,17,5,.82))
        drop-shadow(0 18px 28px rgba(0,0,0,.88))
        drop-shadow(0 0 22px rgba(208,158,67,.16));
}
.citadel-brand::after {
    left: 10%;
    right: 10%;
    bottom: -20px;
}

.citadel-action-dock {
    width: min(680px, 100%);
    display: grid;
    grid-template-columns: 1.15fr .8fr 1fr;
    gap: 6px;
    margin: 0 auto;
    padding: 7px;
    border: 1px solid rgba(232,204,145,.2);
    border-radius: 23px;
    background: linear-gradient(115deg, rgba(8,8,11,.84), rgba(24,19,17,.72));
    box-shadow: 0 22px 58px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.055);
    backdrop-filter: blur(18px);
}
.citadel-action-dock .citadel-button {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 0 17px;
    border-radius: 16px;
    white-space: nowrap;
}
.citadel-button-secondary {
    border-color: transparent;
    background: rgba(255,255,255,.035);
    color: #d7cdbc;
}
.citadel-button-secondary:hover {
    border-color: rgba(230,200,139,.28);
    background: rgba(216,186,120,.08);
}

.premium-language.language-control {
    position: relative;
    min-width: 58px;
    border: 0;
    border-radius: 16px;
    background: transparent;
}
.premium-language.language-control::after { display: none; }
.language-control-trigger {
    width: 58px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    outline: 0;
    background: rgba(255,255,255,.025);
    color: #f2eee8;
    cursor: pointer;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    box-shadow: inset 0 1px rgba(255,255,255,.035);
    transition: border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.language-control-trigger:hover,
.language-control.open .language-control-trigger {
    border-color: rgba(235,202,137,.4);
    background: rgba(216,186,120,.08);
}
.language-control-arrow {
    width: 6px;
    height: 6px;
    display: block;
    margin-top: -3px;
    border-right: 1px solid #7e787d;
    border-bottom: 1px solid #7e787d;
    transform: rotate(45deg);
    transition: transform .22s ease, margin .22s ease, border-color .22s ease;
}
.language-control.open .language-control-arrow {
    margin-top: 3px;
    border-color: var(--gold-bright);
    transform: rotate(225deg);
}
.language-control-menu {
    position: absolute;
    z-index: 100;
    top: calc(100% + 9px);
    right: 0;
    min-width: 132px;
    padding: 7px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 17px;
    background: rgba(10,10,13,.98);
    box-shadow: 0 24px 65px rgba(0,0,0,.62), inset 0 1px rgba(255,255,255,.04);
    backdrop-filter: blur(18px);
}
.language-control-menu[hidden] { display: none; }
.language-control-menu button {
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #a9a4a9;
    cursor: pointer;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-align: left;
    transition: background .18s ease, color .18s ease;
}
.language-control-menu button:hover { background: rgba(255,255,255,.06); color: white; }
.language-control-menu button.selected {
    background: linear-gradient(135deg, rgba(221,187,119,.22), rgba(172,126,50,.09));
    color: var(--gold-bright);
}

.page-login {
    background:
        radial-gradient(circle at 15% 25%, rgba(143,27,24,.11), transparent 35rem),
        #070709;
}
.page-login .interior-shell {
    width: min(calc(100% - 32px), 1500px);
    padding-top: 104px;
    padding-bottom: 44px;
}
.page-login .interior-heading { display: none; }
.page-login .legacy-content { width: 100%; }
.auth-stage {
    min-height: calc(100svh - 150px);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(440px, .92fr);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 34px;
    background: #0b0b0e;
    box-shadow: 0 35px 120px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.045);
}
.auth-showcase {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(5,5,8,.1), rgba(5,5,8,.2) 52%, rgba(5,5,8,.9)),
        linear-gradient(0deg, rgba(5,5,8,.82), transparent 55%),
        url("../presentation/guides/section10.jpg") 45% center/cover;
}
.auth-showcase::before {
    position: absolute;
    content: "";
    inset: 0;
    background:
        radial-gradient(circle at 42% 38%, rgba(218,178,99,.14), transparent 25rem),
        linear-gradient(120deg, transparent 40%, rgba(177,34,29,.1));
}
.auth-showcase-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 78%, #0b0b0e);
}
.auth-showcase-content {
    position: absolute;
    z-index: 1;
    left: clamp(36px,5vw,82px);
    right: clamp(36px,5vw,82px);
    bottom: clamp(38px,6vw,78px);
}
.auth-showcase-content > img {
    width: min(420px,72%);
    height: auto;
    filter: drop-shadow(0 18px 25px rgba(0,0,0,.45));
}
.auth-showcase-content > p {
    max-width: 520px;
    margin: 15px 0 27px;
    color: #d8d2cf;
    font: 400 clamp(24px,2.5vw,40px)/1.02 Georgia,serif;
    letter-spacing: -.035em;
}
.auth-trust {
    display: flex;
    align-items: center;
    gap: 19px;
    color: #b7b0b0;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.auth-trust span { display: inline-flex; align-items: center; gap: 8px; }
.auth-trust i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ae38c;
    box-shadow: 0 0 15px rgba(74,227,140,.8);
}
.auth-trust b { color: var(--gold-bright); font-weight: 900; }
.auth-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(42px,5.2vw,84px);
    background:
        radial-gradient(circle at 100% 0, rgba(182,38,32,.1), transparent 22rem),
        linear-gradient(145deg, rgba(255,255,255,.025), transparent 45%);
}
.auth-panel::before {
    position: absolute;
    content: "";
    top: 11%;
    bottom: 11%;
    left: 0;
    width: 1px;
    background: linear-gradient(transparent, rgba(224,189,120,.35), rgba(205,43,36,.32), transparent);
}
.auth-panel-heading .eyebrow { margin-bottom: 20px; }
.auth-panel-heading h2 {
    max-width: 570px;
    margin: 0;
    color: #f0ece8;
    font: 400 clamp(43px,4.3vw,69px)/.96 Georgia,serif;
    letter-spacing: -.05em;
}
.auth-panel-heading > p:last-child {
    max-width: 530px;
    margin: 21px 0 0;
    color: #918c92;
    font-size: 12px;
    line-height: 1.75;
}
.auth-form {
    width: 100%;
    max-width: none !important;
    display: grid;
    gap: 15px;
    margin-top: 37px;
}
.auth-form label > span {
    display: block;
    margin: 0 0 8px 3px;
    color: #8d888d;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.auth-form input[type=text],
.auth-form input[type=password] {
    width: 100%;
    max-width: none;
    height: 56px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    outline: 0;
    background: rgba(255,255,255,.035);
    box-shadow: inset 0 1px rgba(255,255,255,.025);
    color: white;
    font-size: 13px;
    transition: border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.auth-form input[type=text]:focus,
.auth-form input[type=password]:focus {
    border-color: rgba(224,189,120,.52);
    background: rgba(255,255,255,.055);
    box-shadow: 0 0 0 4px rgba(224,189,120,.07);
}
.auth-form button[type=submit] {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 7px;
    padding: 0 20px 0 23px;
    border: 1px solid rgba(238,74,61,.88);
    border-radius: 16px;
    background: linear-gradient(135deg, #d82f2a, #941b18);
    box-shadow: 0 18px 48px rgba(184,35,30,.22), inset 0 1px rgba(255,255,255,.14);
    color: white;
    cursor: pointer;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.auth-form button[type=submit] b {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(0,0,0,.16);
}
.auth-form button[type=submit]:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(184,35,30,.32), inset 0 1px rgba(255,255,255,.15);
}
.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    font-size: 10px;
}
.auth-links a { color: #a29ca1; }
.auth-links a:first-child { color: var(--gold-bright); }
.auth-links a:hover { color: white; }
.auth-discord {
    min-height: 48px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
    padding: 0 15px;
    border: 1px solid rgba(88,101,242,.24);
    border-radius: 15px;
    background: rgba(88,101,242,.055);
    color: #c9c9d5 !important;
    font-size: 10px;
}
.auth-discord span {
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(88,101,242,.16);
    color: #aeb5ff;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .12em;
}
.auth-discord b { color: #aeb5ff; }
.auth-alert {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding: 12px;
    border: 1px solid rgba(238,74,61,.28);
    border-radius: 14px;
    background: rgba(176,33,29,.09);
}
.auth-alert > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(238,74,61,.13);
    color: #ff8b80;
    font-weight: 900;
}
.auth-alert p { margin: 0; color: #d8b1ae; font-size: 11px; line-height: 1.5; }

@media (max-width: 1380px) {
    .site-header > .main-nav { grid-column: auto; }
    .site-header > .header-actions { grid-column: auto; }
    .auth-stage { grid-template-columns: minmax(0,1fr) minmax(410px,.86fr); }
    .auth-panel { padding: 48px; }
}

@media (max-width: 960px) {
    .auth-stage { grid-template-columns: 1fr; }
    .auth-showcase { min-height: 380px; }
    .auth-showcase-shade { background: linear-gradient(0deg, #0b0b0e, transparent 55%); }
    .auth-showcase-content { bottom: 35px; }
    .auth-showcase-content > img { width: min(330px,62%); }
    .auth-showcase-content > p { max-width: 470px; font-size: 28px; }
    .auth-panel::before { top: 0; right: 10%; bottom: auto; left: 10%; width: auto; height: 1px; }
}

@media (max-width: 620px) {
    .login-pill { display: none; }
    .page-login .interior-shell { width: calc(100% - 20px); padding-top: 88px; }
    .auth-stage { border-radius: 24px; }
    .auth-showcase { min-height: 285px; }
    .auth-showcase-content { left: 25px; right: 25px; bottom: 24px; }
    .auth-showcase-content > img { width: min(260px,72%); }
    .auth-showcase-content > p { margin: 9px 0 16px; font-size: 22px; }
    .auth-trust { display: grid; gap: 7px; }
    .auth-panel { padding: 38px 22px 32px; }
    .auth-panel-heading h2 { font-size: 43px; }
    .auth-links { flex-direction: column; gap: 10px; }
    .citadel-brand { margin-top: 17px; }
    .citadel-brand img { width: min(330px, 84vw); }
    .language-control-trigger { width: 52px; height: 42px; border-radius: 14px; }
    .language-control-menu { right: -4px; border-radius: 15px; }
    .citadel-action-dock {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        padding: 6px;
        border-radius: 20px;
    }
    .citadel-action-dock .citadel-button { min-height: 52px; padding: 0 11px; font-size: 7px; }
    .citadel-action-dock .citadel-button-secondary { grid-column: 1 / -1; }
}

/* Authenticated donations */
.main-nav .donate-nav {
    color: #f0d69a;
}
.main-nav .donate-nav::before {
    content: "";
    width: 5px;
    height: 5px;
    display: inline-block;
    margin-right: 7px;
    border-radius: 50%;
    background: #d93831;
    box-shadow: 0 0 14px rgba(217,56,49,.75);
    vertical-align: 1px;
}
.page-donate {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 20%, rgba(135,27,24,.14), transparent 34rem),
        radial-gradient(circle at 84% 40%, rgba(178,138,67,.08), transparent 36rem),
        #070709;
}
.page-donate .interior-shell {
    width: min(calc(100% - 32px), 1500px);
    padding: 104px 0 58px;
}
.page-donate .interior-heading { display: none; }
.page-donate .legacy-content { width: 100%; }
.donation-stage {
    position: relative;
    min-height: calc(100svh - 162px);
    overflow: hidden;
    padding: clamp(28px,4vw,58px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 34px;
    background:
        linear-gradient(120deg, rgba(255,255,255,.035), transparent 35%),
        rgba(10,10,13,.96);
    box-shadow: 0 38px 130px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.045);
}
.donation-stage::before {
    position: absolute;
    content: "";
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(7,7,9,.95), rgba(7,7,9,.36) 46%, rgba(7,7,9,.9)),
        linear-gradient(0deg, #09090c 0, transparent 56%),
        url("../presentation/guides/section7.jpg") 50% 22%/cover no-repeat;
    opacity: .28;
    filter: saturate(.65);
}
.donation-stage::after {
    position: absolute;
    content: "";
    width: 520px;
    height: 520px;
    top: -280px;
    right: -130px;
    border: 1px solid rgba(240,214,154,.11);
    border-radius: 50%;
    box-shadow: 0 0 0 90px rgba(240,214,154,.018), 0 0 0 180px rgba(240,214,154,.012);
    pointer-events: none;
}
.donation-hero,
.donation-notice,
.donation-test,
.donation-grid {
    position: relative;
    z-index: 1;
}
.donation-hero {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 48px;
    align-items: center;
    padding: 12px 8px clamp(34px,4vw,58px);
}
.donation-hero-copy { max-width: 770px; }
.donation-hero-copy .eyebrow {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 18px;
    color: var(--gold-soft);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .22em;
}
.donation-hero-copy .eyebrow span {
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, #c8322c, var(--gold-soft));
}
.donation-hero-copy h2 {
    max-width: 720px;
    margin: 0;
    color: #f2efeb;
    font: 400 clamp(43px,5vw,76px)/.95 Georgia,serif;
    letter-spacing: -.052em;
}
.donation-hero-copy > p:not(.eyebrow) {
    max-width: 660px;
    margin: 22px 0 25px;
    color: #a8a3a5;
    font-size: 13px;
    line-height: 1.8;
}
.donation-account {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    color: #a8a3a5;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.donation-account i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ae38c;
    box-shadow: 0 0 14px rgba(74,227,140,.75);
}
.donation-account b { color: white; }
.donation-emblem {
    width: clamp(180px,19vw,270px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 1px solid rgba(240,214,154,.12);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216,186,120,.1), rgba(6,6,8,.42) 67%);
    box-shadow: inset 0 0 70px rgba(216,186,120,.035), 0 28px 80px rgba(0,0,0,.35);
}
.donation-emblem img {
    width: 72%;
    height: auto;
    filter: drop-shadow(0 17px 24px rgba(0,0,0,.6));
}
.donation-emblem span {
    color: #8f8884;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .24em;
}
.donation-notice,
.donation-test {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 8px 14px;
    padding: 13px 16px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
    backdrop-filter: blur(14px);
}
.donation-notice p,
.donation-test span { margin: 0; color: #c7c1c0; font-size: 11px; line-height: 1.55; }
.donation-notice span { color: var(--gold-bright); }
.donation-notice-success { border-color: rgba(74,227,140,.25); background: rgba(74,227,140,.065); }
.donation-notice-success span { color: #4ae38c; }
.donation-notice-danger { border-color: rgba(238,74,61,.3); background: rgba(176,33,29,.09); }
.donation-notice-danger span { color: #ff7e73; }
.donation-test {
    border-color: rgba(240,214,154,.18);
    background: rgba(216,186,120,.055);
}
.donation-test strong {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 8px;
    background: rgba(216,186,120,.13);
    color: var(--gold-bright);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .15em;
}
.donation-grid {
    display: grid;
    grid-template-columns: minmax(0,1.25fr) minmax(330px,.75fr);
    gap: 18px;
    margin: 22px 8px 0;
}
.donation-packages,
.donation-assurance {
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 24px;
    background: rgba(11,11,14,.72);
    box-shadow: 0 25px 75px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.025);
    backdrop-filter: blur(20px);
}
.donation-packages { padding: clamp(22px,3vw,38px); }
.donation-packages > header { margin-bottom: 21px; }
.donation-packages > header span {
    color: #d5b872;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .2em;
}
.donation-packages > header h3 {
    margin: 7px 0 0;
    color: #eeeae7;
    font: 400 clamp(28px,3vw,42px)/1 Georgia,serif;
}
.donation-package {
    display: grid;
    grid-template-columns: minmax(190px,.72fr) minmax(150px,.48fr) minmax(220px,1fr);
    align-items: center;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(240,214,154,.16);
    border-radius: 19px;
    background:
        linear-gradient(115deg, rgba(216,186,120,.09), transparent 42%),
        rgba(255,255,255,.025);
}
.donation-md { display: flex; align-items: baseline; gap: 9px; }
.donation-md strong {
    color: #f1d89b;
    font: 400 clamp(44px,4vw,64px)/.9 Georgia,serif;
    letter-spacing: -.05em;
}
.donation-md span {
    color: #d4b66f;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}
.donation-price { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.08); }
.donation-price small {
    display: block;
    margin-bottom: 5px;
    color: #777277;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .17em;
}
.donation-price strong { color: white; font-size: 14px; }
.donation-package form { margin: 0; }
.donation-package button {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 17px 0 21px;
    border: 1px solid #e3c36f;
    border-radius: 15px;
    background: linear-gradient(135deg, #f1d58f, #c99d46);
    box-shadow: 0 15px 35px rgba(181,131,45,.16), inset 0 1px rgba(255,255,255,.45);
    color: #17130d;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.donation-package button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 20px 42px rgba(181,131,45,.25), inset 0 1px rgba(255,255,255,.5);
}
.donation-package button span {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.donation-package button b {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(16,13,9,.12);
}
.donation-empty {
    padding: 30px;
    border: 1px dashed rgba(255,255,255,.11);
    border-radius: 17px;
    color: #938e91;
}
.donation-assurance {
    display: flex;
    flex-direction: column;
    padding: clamp(22px,3vw,34px);
}
.donation-flow { display: flex; align-items: center; justify-content: space-between; }
.donation-flow span {
    max-width: 82px;
    color: #a9a3a4;
    font-size: 8px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
}
.donation-flow span b {
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    margin: 0 auto 8px;
    border: 1px solid rgba(240,214,154,.2);
    border-radius: 11px;
    background: rgba(216,186,120,.07);
    color: var(--gold-bright);
    font: 400 15px/1 Georgia,serif;
}
.donation-flow > i {
    flex: 1;
    height: 1px;
    margin: -20px 4px 0;
    background: linear-gradient(90deg, rgba(216,186,120,.2), rgba(255,255,255,.06));
}
.donation-assurance ul {
    display: grid;
    gap: 12px;
    margin: 30px 0;
    padding: 23px 0;
    border-top: 1px solid rgba(255,255,255,.07);
    border-bottom: 1px solid rgba(255,255,255,.07);
    list-style: none;
}
.donation-assurance li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa5a7;
    font-size: 10px;
}
.donation-assurance li i {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: rgba(74,227,140,.08);
    color: #65df99;
    font-size: 9px;
    font-style: normal;
}
.donation-assurance > a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 12px;
    align-items: center;
    margin-top: auto;
    padding: 16px;
    border: 1px solid rgba(88,101,242,.14);
    border-radius: 14px;
    background: rgba(88,101,242,.055);
    color: #c9c9d5;
}
.donation-assurance > a small { color: #777583; font-size: 8px; }
.donation-assurance > a span { font-size: 10px; font-weight: 800; }
.donation-assurance > a b {
    grid-column: 2;
    grid-row: 1 / 3;
    color: #aeb5ff;
}

@media (max-width: 1050px) {
    .donation-grid { grid-template-columns: 1fr; }
    .donation-package { grid-template-columns: minmax(170px,.7fr) minmax(140px,.45fr) minmax(210px,.85fr); }
}

@media (max-width: 760px) {
    .page-donate .interior-shell { width: calc(100% - 20px); padding-top: 88px; }
    .donation-stage { min-height: auto; padding: 24px 14px; border-radius: 24px; }
    .donation-hero { grid-template-columns: 1fr; gap: 26px; padding: 8px 5px 30px; }
    .donation-emblem { display: none; }
    .donation-hero-copy h2 { font-size: clamp(38px,12vw,57px); }
    .donation-hero-copy > p:not(.eyebrow) { font-size: 12px; }
    .donation-test { align-items: flex-start; flex-direction: column; }
    .donation-grid { margin: 16px 5px 0; }
    .donation-package { grid-template-columns: 1fr 1fr; }
    .donation-package form { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .donation-package { grid-template-columns: 1fr; padding: 20px; }
    .donation-package form { grid-column: auto; }
    .donation-price { padding: 13px 0 0; border-top: 1px solid rgba(255,255,255,.08); border-left: 0; }
    .donation-flow span { max-width: 69px; font-size: 7px; }
}

/* PayPal identity, account balance and donation administration */
.admin-pill {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid rgba(93,156,219,.3);
    border-radius: var(--radius-s);
    background: linear-gradient(145deg, rgba(40,59,130,.24), rgba(70,155,219,.06));
    box-shadow: inset 0 1px rgba(255,255,255,.06), 0 12px 32px rgba(0,0,0,.18);
    color: #dceaff;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
    transition: .22s ease;
}
.admin-pill span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(70,155,219,.14);
    color: #8cc7ff;
}
.admin-pill:hover {
    border-color: rgba(93,156,219,.62);
    background: linear-gradient(145deg, rgba(40,59,130,.36), rgba(70,155,219,.1));
    color: white;
    transform: translateY(-1px);
}
.donation-account-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}
.donation-balance {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border: 1px solid rgba(70,155,219,.22);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(40,59,130,.18), rgba(70,155,219,.05));
    box-shadow: inset 0 1px rgba(255,255,255,.04);
}
.donation-balance small {
    color: #8d9aaa;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.donation-balance strong {
    color: #eaf4ff;
    font: 400 18px/1 Georgia,serif;
}
.donation-balance span {
    color: #72b6f2;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em;
}
.donation-emblem {
    width: clamp(240px,20vw,315px);
    aspect-ratio: 1.7;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 28px;
    background:
        radial-gradient(circle at 75% 20%, rgba(70,155,219,.15), transparent 45%),
        linear-gradient(145deg, #fff, #eaf1f8);
    box-shadow:
        0 30px 75px rgba(0,0,0,.38),
        0 0 65px rgba(70,155,219,.09),
        inset 0 1px white;
}
.donation-emblem img {
    width: 82%;
    max-height: 72px;
    object-fit: contain;
    filter: none;
}
.donation-emblem span {
    color: #526273;
    font-size: 7px;
    letter-spacing: .2em;
}
.donation-packages > header .donation-provider-logo {
    width: 112px;
    height: auto;
    display: block;
    margin-bottom: 12px;
}
.donation-package + .donation-package { margin-top: 14px; }
.donation-package button > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.donation-package button > span img {
    width: 58px;
    height: 19px;
    object-fit: contain;
}

.admin-page-donate {
    background:
        radial-gradient(circle at 14% 22%, rgba(40,59,130,.12), transparent 34rem),
        radial-gradient(circle at 88% 35%, rgba(70,155,219,.07), transparent 36rem),
        #070709;
}
.admin-page-donate .interior-shell {
    width: min(calc(100% - 32px),1500px);
    padding-top: 104px;
    padding-bottom: 58px;
}
.admin-page-donate .interior-heading { display: none; }
.admin-page-donate .legacy-content { width: 100%; }
.admin-donation-shell {
    position: relative;
    overflow: hidden;
    padding: clamp(28px,4vw,58px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 34px;
    background:
        radial-gradient(circle at 90% 0, rgba(70,155,219,.1), transparent 30rem),
        linear-gradient(120deg, rgba(255,255,255,.035), transparent 38%),
        rgba(10,10,13,.97);
    box-shadow: 0 38px 130px rgba(0,0,0,.46), inset 0 1px rgba(255,255,255,.045);
}
.admin-donation-shell::after {
    position: absolute;
    content: "";
    width: 500px;
    height: 500px;
    top: -330px;
    right: -150px;
    border: 1px solid rgba(70,155,219,.1);
    border-radius: 50%;
    box-shadow: 0 0 0 85px rgba(70,155,219,.018), 0 0 0 170px rgba(70,155,219,.012);
    pointer-events: none;
}
.admin-donation-heading {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 42px;
    align-items: center;
    padding: 4px 4px clamp(34px,4vw,54px);
}
.admin-donation-heading > div:first-child { max-width: 800px; }
.admin-donation-heading .eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 17px;
    color: #75b7ef;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .2em;
}
.admin-donation-heading .eyebrow span {
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, #283b82, #469bdb);
}
.admin-donation-heading h2 {
    margin: 0;
    color: #f1efed;
    font: 400 clamp(42px,4.5vw,70px)/.96 Georgia,serif;
    letter-spacing: -.05em;
}
.admin-donation-heading > div:first-child > p:last-child {
    max-width: 670px;
    margin: 20px 0 0;
    color: #9d999d;
    font-size: 12px;
    line-height: 1.75;
}
.admin-paypal-brand {
    width: clamp(220px,19vw,295px);
    min-height: 142px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 13px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 25px;
    background: linear-gradient(145deg,#fff,#e9f1f8);
    box-shadow: 0 26px 70px rgba(0,0,0,.34);
}
.admin-paypal-brand img { width: 78%; height: auto; }
.admin-paypal-brand span {
    color: #536678;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .19em;
}
.admin-donation-console {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
}
.admin-package-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
}
.admin-package-alert span {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-weight: 900;
}
.admin-package-alert p { margin: 0; color: #c9c5c6; font-size: 11px; }
.admin-package-alert-success { border-color: rgba(74,227,140,.23); background: rgba(74,227,140,.055); }
.admin-package-alert-success span { background: rgba(74,227,140,.1); color: #5ce694; }
.admin-package-alert-danger { border-color: rgba(238,74,61,.28); background: rgba(176,33,29,.08); }
.admin-package-alert-danger span { background: rgba(238,74,61,.1); color: #ff8176; }
.admin-donation-summary {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
}
.admin-donation-summary > div {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 17px;
    background: rgba(255,255,255,.025);
}
.admin-donation-summary small {
    color: #77747a;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .15em;
}
.admin-donation-summary strong {
    color: #e8f3ff;
    font: 400 23px/1 Georgia,serif;
}
.admin-package-section {
    padding: clamp(22px,3vw,38px);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 24px;
    background: rgba(11,11,14,.7);
    box-shadow: 0 24px 75px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.025);
    backdrop-filter: blur(18px);
}
.admin-package-section > header { margin-bottom: 22px; }
.admin-package-section > header span {
    color: #70b3ed;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .18em;
}
.admin-package-section > header h3 {
    margin: 7px 0 0;
    color: #eeeae8;
    font: 400 clamp(28px,3vw,42px)/1 Georgia,serif;
}
.admin-package-section > header p {
    max-width: 700px;
    margin: 12px 0 0;
    color: #8f8b90;
    font-size: 11px;
    line-height: 1.65;
}
.admin-package-list { display: grid; gap: 11px; }
.legacy-content .admin-package-editor {
    max-width: none;
    display: grid;
    grid-template-columns: 74px minmax(130px,.72fr) minmax(180px,1fr) minmax(170px,.9fr) minmax(210px,.9fr);
    gap: 12px;
    align-items: end;
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(70,155,219,.14);
    border-radius: 18px;
    background: linear-gradient(115deg, rgba(40,59,130,.11), rgba(255,255,255,.02));
}
.admin-package-index {
    min-height: 52px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    border: 1px solid rgba(70,155,219,.16);
    border-radius: 13px;
    background: rgba(70,155,219,.055);
}
.admin-package-index small { color: #66717e; font-size: 6px; font-weight: 900; letter-spacing: .13em; }
.admin-package-index b { color: #88c8ff; font: 400 19px/1 Georgia,serif; }
.admin-package-editor label { display: grid; gap: 7px; margin: 0; }
.admin-package-editor label > span {
    color: #878289;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.legacy-content .admin-package-editor input[type=number],
.legacy-content .admin-package-editor select {
    width: 100%;
    max-width: none;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 13px;
    background: #0c0c10;
    color: #efedeb;
    font-size: 12px;
}
.legacy-content .admin-package-editor input:focus,
.legacy-content .admin-package-editor select:focus {
    border-color: rgba(70,155,219,.58);
    box-shadow: 0 0 0 3px rgba(70,155,219,.1);
}
.admin-package-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.legacy-content .admin-package-save {
    flex: 1;
    min-height: 52px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 0 11px 0 17px;
    border: 1px solid #61ace8;
    border-radius: 13px;
    background: linear-gradient(135deg,#469bdb,#283b82);
    box-shadow: 0 13px 30px rgba(40,59,130,.24), inset 0 1px rgba(255,255,255,.2);
    color: white;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.admin-package-save b {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
}
.legacy-content .admin-package-delete {
    flex: 0 0 52px;
    min-height: 52px;
    padding: 0;
    border: 1px solid rgba(238,74,61,.3);
    border-radius: 13px;
    background: rgba(176,33,29,.08);
    color: #ff8176;
    font-size: 20px;
}
.legacy-content .admin-package-delete:hover { background: rgba(176,33,29,.18); border-color: rgba(238,74,61,.55); }
.admin-package-create { border-color: rgba(70,155,219,.14); }
.admin-package-editor-new { border-style: dashed !important; }
.admin-packages-empty {
    padding: 33px;
    border: 1px dashed rgba(255,255,255,.1);
    border-radius: 17px;
    text-align: center;
}
.admin-packages-empty span { display: block; margin-bottom: 8px; color: #75b9f2; font-size: 26px; }
.admin-packages-empty strong { color: #e8e5e3; font: 400 20px/1.2 Georgia,serif; }
.admin-packages-empty p { margin: 8px 0 0; color: #858086; font-size: 10px; }

@media (max-width: 1120px) {
    .legacy-content .admin-package-editor {
        grid-template-columns: 64px repeat(3,minmax(130px,1fr));
    }
    .admin-package-actions { grid-column: 2 / -1; }
}

@media (max-width: 760px) {
    .admin-page-donate .interior-shell { width: calc(100% - 20px); padding-top: 88px; }
    .admin-donation-shell { padding: 24px 14px; border-radius: 24px; }
    .admin-donation-heading { grid-template-columns: 1fr; padding: 5px 5px 30px; }
    .admin-paypal-brand { width: 100%; min-height: 110px; }
    .admin-paypal-brand img { width: min(210px,65%); }
    .admin-donation-summary { grid-template-columns: 1fr; }
    .legacy-content .admin-package-editor { grid-template-columns: 1fr; }
    .admin-package-actions { grid-column: auto; }
    .admin-package-index { min-height: 44px; grid-auto-flow: column; justify-content: start; padding: 0 14px; }
    .donation-balance { width: 100%; justify-content: flex-start; }
}

.site-language-picker {
    position: relative;
    flex: 0 0 54px;
    width: 54px;
    height: 44px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-s);
    background: linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.015));
    box-shadow: inset 0 1px rgba(255,255,255,.045);
}
.site-language-picker select {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    appearance: none;
    padding: 0 18px 0 11px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #eee9e5;
    cursor: pointer;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
}

/* Premium administration workspace */
.page-admin {
    min-width: 0;
    background:
        radial-gradient(circle at 78% -10%,rgba(45,99,142,.14),transparent 34%),
        radial-gradient(circle at 24% 105%,rgba(147,36,28,.1),transparent 32%),
        #08090b;
}
.page-admin .noise {
    display: none !important;
    opacity: 0 !important;
    background-image: none !important;
    mix-blend-mode: normal;
}
.page-admin > .site-header,
.page-admin > .site-footer { display: none; }
.page-admin .interior-shell {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}
.page-admin .interior-heading { display: none; }
.page-admin .legacy-content {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.admin-workspace {
    --admin-line: rgba(255,255,255,.085);
    --admin-soft: rgba(255,255,255,.035);
    --admin-blue: #79baf1;
    --admin-gold: #e8c879;
    --admin-red: #e9493d;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 292px minmax(0,1fr);
    min-height: 100vh;
    color: #e9e7e5;
}
.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 26px 18px 18px;
    overflow: auto;
    border-right: 1px solid var(--admin-line);
    background:
        linear-gradient(180deg,rgba(14,17,21,.98),rgba(8,10,13,.985)),
        url('hero-2026.webp') center/cover;
    box-shadow: 26px 0 65px rgba(0,0,0,.16);
}
.admin-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 40% 0,rgba(83,146,198,.09),transparent 30%),
        linear-gradient(90deg,transparent,rgba(255,255,255,.015));
}
.admin-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 66px;
    padding: 10px 12px;
    margin-bottom: 24px;
    border: 1px solid rgba(232,200,121,.15);
    border-radius: 18px;
    background: linear-gradient(135deg,rgba(232,200,121,.065),rgba(255,255,255,.015));
    color: #f3f0ed;
    text-decoration: none;
}
.admin-brand:hover { color: white; border-color: rgba(232,200,121,.28); text-decoration: none; }
.admin-brand img {
    width: 46px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0,0,0,.42));
}
.admin-brand span { display: grid; gap: 5px; min-width: 0; }
.admin-brand b {
    font-size: 10px;
    letter-spacing: .16em;
}
.admin-brand small {
    color: #777b82;
    font-size: 8px;
    letter-spacing: .08em;
}
.admin-navigation {
    position: relative;
    display: grid;
    gap: 21px;
    padding: 0 4px 20px;
}
.admin-nav-group { display: grid; gap: 4px; }
.admin-nav-group > span {
    padding: 0 11px 7px;
    color: #555b64;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.admin-nav-group a {
    min-height: 42px;
    display: grid;
    grid-template-columns: 28px 1fr 14px;
    align-items: center;
    gap: 9px;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #8f9298;
    text-decoration: none;
    transition: .2s ease;
}
.admin-nav-group a i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 9px;
    background: rgba(255,255,255,.025);
    color: #6c727a;
    font-style: normal;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .05em;
}
.admin-nav-group a b {
    overflow: hidden;
    font-size: 9px;
    letter-spacing: .035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-nav-group a em {
    color: #4a4e54;
    font-style: normal;
    font-size: 16px;
}
.admin-nav-group a:hover {
    border-color: rgba(255,255,255,.075);
    background: rgba(255,255,255,.035);
    color: #d8d7d5;
    text-decoration: none;
}
.admin-nav-group a.active {
    border-color: rgba(232,200,121,.23);
    background:
        linear-gradient(90deg,rgba(232,200,121,.115),rgba(232,200,121,.02));
    color: #f2e9d4;
    box-shadow: inset 3px 0 #d9b961;
}
.admin-nav-group a.active i {
    border-color: rgba(232,200,121,.23);
    background: rgba(232,200,121,.105);
    color: #f0d68f;
}
.admin-nav-group a.active em { color: #d8ba67; }
.admin-sidebar-account {
    position: relative;
    margin-top: auto;
    padding: 13px;
    border: 1px solid var(--admin-line);
    border-radius: 15px;
    background: rgba(255,255,255,.025);
}
.admin-sidebar-account > div {
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-sidebar-account > div > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(135deg,#ecd58d,#9f742d);
    color: #17130c;
    font-size: 9px;
    font-weight: 950;
}
.admin-sidebar-account p { display: grid; gap: 3px; margin: 0; min-width: 0; }
.admin-sidebar-account p b {
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
}
.admin-sidebar-account p small { color: #686c73; font-size: 7px; }
.admin-sidebar-account > a {
    display: block;
    padding-top: 11px;
    margin-top: 11px;
    border-top: 1px solid var(--admin-line);
    color: #d86b64;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
}
.admin-stage {
    min-width: 0;
    padding: 28px clamp(24px,3vw,58px) 64px;
}
.admin-stage-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    max-width: 1540px;
    padding: 9px 2px 25px;
    margin: 0 auto;
    border-bottom: 1px solid var(--admin-line);
}
.admin-stage-header > div:first-child > p {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 9px;
    color: #cbb36f;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .18em;
}
.admin-stage-header > div:first-child > p span {
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg,#d3b45f,transparent);
}
.admin-stage-header h2 {
    margin: 0;
    color: #f2efeb;
    font: 400 clamp(29px,3vw,46px)/1.03 Georgia,serif;
    letter-spacing: -.035em;
}
.admin-stage-header > div:first-child > small {
    display: block;
    margin-top: 9px;
    color: #747880;
    font-size: 9px;
}
.admin-stage-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-stage-actions a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border: 1px solid var(--admin-line);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
    color: #b5b4b3;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .06em;
    text-decoration: none;
}
.admin-stage-actions a:hover { border-color: rgba(232,200,121,.25); color: #f0d991; text-decoration: none; }
.admin-content-panel {
    max-width: 1540px;
    min-height: 400px;
    padding-top: 28px;
    margin: 0 auto;
}
.admin-welcome-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 30px;
    min-height: 238px;
    padding: clamp(28px,4vw,56px);
    border: 1px solid rgba(255,255,255,.095);
    border-radius: 28px;
    background:
        linear-gradient(90deg,rgba(10,12,15,.95) 0%,rgba(10,12,15,.82) 52%,rgba(10,12,15,.6)),
        url('hero-2026.webp') center 27%/cover;
    box-shadow: 0 35px 90px rgba(0,0,0,.23),inset 0 1px rgba(255,255,255,.035);
}
.admin-welcome-card::after {
    content: "";
    position: absolute;
    width: 330px;
    aspect-ratio: 1;
    right: -80px;
    top: -150px;
    border: 1px solid rgba(232,200,121,.12);
    border-radius: 50%;
    box-shadow: 0 0 0 44px rgba(232,200,121,.025),0 0 0 88px rgba(232,200,121,.015);
}
.admin-welcome-card > div:first-child { position: relative; z-index: 1; max-width: 790px; }
.admin-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: #d5bd76;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .2em;
}
.admin-kicker span { width: 28px; height: 1px; background: #c8aa56; }
.admin-welcome-card h3 {
    max-width: 730px;
    margin: 0;
    color: #f5f2ef;
    font: 400 clamp(30px,3.6vw,55px)/.99 Georgia,serif;
    letter-spacing: -.045em;
}
.admin-welcome-card > div:first-child > p:last-child {
    max-width: 680px;
    margin: 18px 0 0;
    color: #999a9e;
    font-size: 11px;
    line-height: 1.8;
}
.admin-health-orb {
    position: relative;
    z-index: 2;
    width: 145px;
    aspect-ratio: 1;
    display: grid;
    place-content: center;
    justify-items: center;
    border: 1px solid rgba(94,227,146,.18);
    border-radius: 50%;
    background: radial-gradient(circle,rgba(45,115,78,.18),rgba(5,9,8,.45) 68%);
    box-shadow: inset 0 0 55px rgba(81,211,132,.055),0 20px 55px rgba(0,0,0,.25);
}
.admin-health-orb i {
    width: 8px;
    height: 8px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: #54e18f;
    box-shadow: 0 0 20px #54e18f;
}
.admin-health-orb strong { color: #82eca9; font-size: 10px; letter-spacing: .16em; }
.admin-health-orb span { margin-top: 5px; color: #587363; font-size: 7px; }
.admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
    margin-top: 14px;
}
.admin-metric-grid article,
.admin-transaction-summary > div {
    min-height: 122px;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 22px;
    border: 1px solid var(--admin-line);
    border-radius: 18px;
    background: linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
    box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.admin-metric-grid article > span,
.admin-transaction-summary > div > span {
    color: #686d75;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .16em;
}
.admin-metric-grid article strong,
.admin-transaction-summary > div strong {
    color: #ede9e4;
    font: 400 28px/1 Georgia,serif;
}
.admin-metric-grid article small,
.admin-transaction-summary > div small { color: #666a71; font-size: 8px; }
.admin-metric-grid .metric-warn strong { color: #e4c36d; font-size: 20px; }
.admin-metric-grid .metric-live strong { color: #63dc94; font-size: 20px; }
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0,1.7fr) minmax(290px,.7fr);
    gap: 14px;
    margin-top: 14px;
}
.admin-dashboard-section,
.admin-personal-tools,
.admin-table-card,
.admin-form-card,
.admin-tool-card {
    padding: clamp(20px,2.5vw,32px);
    border: 1px solid var(--admin-line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 0,rgba(69,132,182,.035),transparent 28%),
        rgba(13,15,18,.84);
    box-shadow: inset 0 1px rgba(255,255,255,.025),0 24px 65px rgba(0,0,0,.13);
}
.admin-dashboard-section > header,
.admin-personal-tools > header,
.admin-table-card > header,
.admin-form-card > header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--admin-line);
}
.admin-dashboard-section header span,
.admin-personal-tools header span,
.admin-table-card header span,
.admin-form-card header > span {
    color: #bca45f;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .17em;
}
.admin-dashboard-section header h3,
.admin-personal-tools header h3,
.admin-table-card header h3,
.admin-form-card header h3 {
    margin: 5px 0 0;
    color: #eeebe7;
    font: 400 23px/1.1 Georgia,serif;
}
.admin-table-card > header > small { max-width: 420px; color: #696d73; font-size: 8px; text-align: right; }
.admin-quick-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.admin-quick-grid a,
.admin-personal-tools > a {
    display: grid;
    grid-template-columns: 39px 1fr 16px;
    align-items: center;
    gap: 12px;
    min-height: 75px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 14px;
    background: rgba(255,255,255,.018);
    color: #bbb;
    text-decoration: none;
    transition: .2s ease;
}
.admin-quick-grid a:hover,
.admin-personal-tools > a:hover {
    transform: translateY(-1px);
    border-color: rgba(232,200,121,.22);
    background: rgba(232,200,121,.035);
    text-decoration: none;
}
.admin-quick-grid a i,
.admin-personal-tools > a i {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(121,186,241,.14);
    border-radius: 12px;
    background: rgba(121,186,241,.055);
    color: #88bde7;
    font-style: normal;
    font-size: 8px;
    font-weight: 900;
}
.admin-quick-grid a span,
.admin-personal-tools > a span { display: grid; gap: 5px; min-width: 0; }
.admin-quick-grid a b,
.admin-personal-tools > a b { color: #d9d7d4; font-size: 9px; }
.admin-quick-grid a small,
.admin-personal-tools > a small { color: #676b72; font-size: 7px; line-height: 1.45; }
.admin-quick-grid a em,
.admin-personal-tools > a em { color: #716b5a; font-style: normal; }
.admin-personal-tools { display: grid; align-content: start; gap: 8px; }
.admin-personal-tools > header { display: block; }
.admin-personal-tools .tool-warning i { border-color: rgba(233,73,61,.18); background: rgba(233,73,61,.05); color: #e87970; }
.admin-personal-tools .tool-ready i { border-color: rgba(84,225,143,.17); background: rgba(84,225,143,.05); color: #6cdf9a; }
.admin-security-note,
.admin-mail-explainer {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 16px;
    margin-top: 6px;
    border: 1px solid rgba(84,225,143,.11);
    border-radius: 14px;
    background: rgba(84,225,143,.028);
}
.admin-security-note > span,
.admin-mail-explainer > span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: rgba(84,225,143,.09);
    color: #5cdb8f;
    font-size: 10px;
}
.admin-security-note p,
.admin-mail-explainer p { display: grid; gap: 5px; margin: 0; }
.admin-security-note b,
.admin-mail-explainer b { color: #cfd2cf; font-size: 8px; }
.admin-security-note small,
.admin-mail-explainer small { color: #657068; font-size: 7px; line-height: 1.5; }
.admin-inline-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 10px 14px;
    margin-bottom: 14px;
    border: 1px solid var(--admin-line);
    border-radius: 14px;
}
.admin-inline-alert > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 900;
}
.admin-inline-alert p { margin: 0; color: #b9babd; font-size: 9px; line-height: 1.5; }
.admin-inline-alert-success { border-color: rgba(84,225,143,.18); background: rgba(84,225,143,.035); }
.admin-inline-alert-success > span { background: rgba(84,225,143,.1); color: #65df98; }
.admin-inline-alert-danger { border-color: rgba(233,73,61,.22); background: rgba(233,73,61,.045); }
.admin-inline-alert-danger > span { background: rgba(233,73,61,.1); color: #f07970; }
.admin-inline-alert-info { border-color: rgba(121,186,241,.18); background: rgba(121,186,241,.035); }
.admin-inline-alert-info > span { background: rgba(121,186,241,.1); color: #8cc8f8; }
.admin-tool-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin-bottom: 14px;
}
.admin-tool-card { padding: 21px; }
.admin-tool-card > header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0;
    margin: 0;
    border: 0;
}
.admin-tool-card > header > i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(121,186,241,.16);
    border-radius: 12px;
    background: rgba(121,186,241,.055);
    color: #8bc2ee;
    font-style: normal;
    font-size: 8px;
    font-weight: 900;
}
.admin-tool-card header div { display: grid; gap: 4px; }
.admin-tool-card header span {
    color: #676c74;
    font-size: 6px;
    font-weight: 900;
    letter-spacing: .14em;
}
.admin-tool-card header h3 {
    margin: 0;
    color: #e6e3df;
    font: 400 18px/1 Georgia,serif;
}
.admin-tool-card > p { min-height: 31px; margin: 14px 0; color: #6e7177; font-size: 8px; line-height: 1.6; }
.admin-inline-form { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.admin-workspace .form-control {
    min-height: 42px;
    height: auto;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,.095);
    border-radius: 11px;
    background: rgba(3,5,7,.62);
    color: #e1dfdc;
    font-size: 9px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.18);
}
.admin-workspace .form-control:focus {
    border-color: rgba(121,186,241,.45);
    background: rgba(5,8,11,.82);
    color: white;
    box-shadow: 0 0 0 3px rgba(121,186,241,.07);
}
.admin-workspace select.form-control option { background: #111318; color: #e5e3e0; }
.admin-workspace textarea.form-control { min-height: 100px; resize: vertical; }
.admin-workspace .btn {
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid rgba(232,200,121,.25);
    border-radius: 11px;
    background: linear-gradient(135deg,#e8cc80,#ad8136);
    color: #17120a;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: .07em;
    text-transform: uppercase;
    box-shadow: inset 0 1px rgba(255,255,255,.22),0 10px 25px rgba(0,0,0,.13);
}
.admin-workspace .btn:hover { border-color: #ecd68f; background: linear-gradient(135deg,#f1d98f,#bd9142); color: #17120a; }
.admin-workspace .btn-danger {
    border-color: rgba(233,73,61,.35);
    background: linear-gradient(135deg,#db4c42,#8f251f);
    color: #fff;
}
.admin-workspace .btn-secondary,
.admin-workspace .btn-info,
.admin-workspace .btn-warning,
.admin-workspace .btn-success {
    border-color: rgba(121,186,241,.2);
    background: rgba(121,186,241,.09);
    color: #a8d3f7;
}
.admin-workspace .btn[disabled] { opacity: .35; cursor: not-allowed; }
.admin-table-card { padding: 0; overflow: hidden; }
.admin-table-card > header { padding: 24px 26px 19px; margin: 0; }
.admin-table-scroll { width: 100%; overflow-x: auto; }
.admin-workspace table.table {
    width: 100%;
    margin: 0;
    border: 0;
    color: #bfc0c1;
    background: transparent;
    font-size: 9px;
}
.admin-workspace table.table thead th,
.admin-workspace table.table .thead-inverse th {
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid var(--admin-line);
    background: rgba(255,255,255,.025);
    color: #777c84;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
    white-space: nowrap;
}
.admin-workspace table.table tbody td,
.admin-workspace table.table tbody th {
    padding: 14px 16px;
    vertical-align: middle;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
    background: transparent;
    color: #b8b9bb;
}
.admin-workspace table.table-striped tbody tr:nth-of-type(odd) { background: rgba(255,255,255,.012); }
.admin-workspace table.table-hover tbody tr:hover { background: rgba(121,186,241,.025); }
.admin-workspace table a { color: #8ec8f5; text-decoration: none; }
.admin-workspace table .text-success { color: #60dc92 !important; }
.admin-workspace table .text-danger { color: #ee7067 !important; }
.admin-workspace table .text-primary { color: #7ebcf0 !important; }
.admin-workspace table i.fa { padding: 6px; font-size: 13px; }
.admin-workspace .pagination { display: flex; justify-content: center; gap: 5px; margin: 18px; }
.admin-workspace .pagination li a {
    min-width: 32px;
    min-height: 32px;
    display: grid;
    place-items: center;
    padding: 5px 9px;
    border: 1px solid var(--admin-line);
    border-radius: 9px;
    background: rgba(255,255,255,.025);
    color: #8b8f95;
    font-size: 8px;
    text-decoration: none;
}
.admin-workspace .pagination li.active a { border-color: rgba(232,200,121,.3); background: rgba(232,200,121,.1); color: #e6cf8b; }
.admin-workspace .alert {
    padding: 14px 16px;
    border: 1px solid var(--admin-line);
    border-radius: 13px;
    background: rgba(121,186,241,.045);
    color: #a9cce7;
    font-size: 9px;
}
.admin-workspace .alert-success { border-color: rgba(84,225,143,.18); background: rgba(84,225,143,.04); color: #7fdda3; }
.admin-workspace .alert-danger { border-color: rgba(233,73,61,.22); background: rgba(233,73,61,.045); color: #ec8c85; }
.admin-workspace .jumbotron {
    padding: 22px !important;
    border: 1px solid var(--admin-line);
    border-radius: 17px;
    background: rgba(255,255,255,.02);
}
.admin-workspace .form-group { margin-bottom: 14px; }
.admin-workspace label,
.admin-workspace .col-form-label {
    color: #9d9fa4;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .025em;
}
.admin-workspace hr { border-color: var(--admin-line); }
.admin-workspace h3 { color: #e7e4e1; }
.admin-workspace .nav-tabs {
    gap: 5px;
    border-bottom: 1px solid var(--admin-line);
}
.admin-workspace .nav-tabs .nav-link {
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 10px 10px 0 0;
    color: #777c83;
    font-size: 8px;
    font-weight: 900;
}
.admin-workspace .nav-tabs .nav-link.active {
    border-color: var(--admin-line);
    border-bottom-color: #111318;
    background: rgba(255,255,255,.04);
    color: #e0c981;
}
.admin-workspace .tab-content { padding-top: 14px; }
.admin-modal { z-index: 10050; }
.admin-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 20px;
    background: #101217;
    color: #c7c7c8;
    box-shadow: 0 45px 100px rgba(0,0,0,.6);
}
.admin-modal .modal-header { align-items: center; border-bottom: 1px solid var(--admin-line); }
.admin-modal .modal-title { color: #eeeae5; font: 400 23px/1 Georgia,serif; }
.admin-modal .close { color: #fff; text-shadow: none; opacity: .6; }
.admin-modal .modal-body { padding: 22px; }
.admin-duration-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 14px; }
.admin-duration-grid label { display: grid; gap: 6px; }
.admin-transaction-summary {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin-bottom: 14px;
}
.admin-transaction-summary > div strong { font-size: 20px; }
.admin-transactions-table td:first-child { display: grid; gap: 4px; }
.admin-transactions-table td:first-child small { color: #666b72; }
.admin-transactions-table code {
    padding: 5px 7px;
    border-radius: 6px;
    background: rgba(255,255,255,.035);
    color: #8b949f;
    font-size: 7px;
}
.admin-state {
    display: inline-flex;
    padding: 5px 7px;
    border: 1px solid rgba(232,200,121,.14);
    border-radius: 7px;
    background: rgba(232,200,121,.04);
    color: #cbb36e;
    font-size: 6px;
    font-weight: 900;
    letter-spacing: .08em;
}
.admin-state-live,
.admin-state-success { border-color: rgba(84,225,143,.16); background: rgba(84,225,143,.04); color: #64d894; }
.admin-empty-state {
    display: grid;
    justify-items: center;
    padding: 70px 25px;
    text-align: center;
}
.admin-empty-state > span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 15px;
    border: 1px solid rgba(121,186,241,.14);
    border-radius: 17px;
    background: rgba(121,186,241,.04);
    color: #7fb5df;
    font-size: 10px;
    font-weight: 900;
}
.admin-empty-state h3 { margin: 0; font: 400 23px/1.1 Georgia,serif; }
.admin-empty-state p { margin: 9px 0 0; color: #696d73; font-size: 8px; }
.admin-mail-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    padding: 15px 18px;
    margin-bottom: 14px;
    border: 1px solid var(--admin-line);
    border-radius: 17px;
    background: rgba(255,255,255,.02);
}
.admin-mail-status > div { display: flex; align-items: center; gap: 12px; }
.admin-mail-status i { width: 9px; height: 9px; border-radius: 50%; }
.admin-mail-status span { display: grid; gap: 5px; }
.admin-mail-status b { color: #d9d8d6; font-size: 10px; }
.admin-mail-status small { color: #6c7076; font-size: 8px; }
.admin-mail-status em { padding: 7px 9px; border-radius: 8px; font-style: normal; font-size: 6px; font-weight: 900; letter-spacing: .1em; }
.admin-mail-status.is-ready { border-color: rgba(84,225,143,.15); }
.admin-mail-status.is-ready i { background: #55df8e; box-shadow: 0 0 15px rgba(84,225,143,.6); }
.admin-mail-status.is-ready em { background: rgba(84,225,143,.08); color: #65dc96; }
.admin-mail-status.is-incomplete { border-color: rgba(232,200,121,.17); }
.admin-mail-status.is-incomplete i { background: #e3c46e; box-shadow: 0 0 15px rgba(232,200,121,.45); }
.admin-mail-status.is-incomplete em { background: rgba(232,200,121,.08); color: #d8bd72; }
.admin-email-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,.7fr); gap: 14px; }
.admin-form-card > header { display: block; }
.admin-form-card header p { max-width: 720px; margin: 9px 0 0; color: #6f737a; font-size: 8px; line-height: 1.55; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 17px; }
.admin-form-grid label,
.admin-test-card form > label { display: grid; gap: 7px; }
.admin-form-grid label > span,
.admin-test-card form > label > span,
.admin-package-editor label > span { color: #7d8289; font-size: 7px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.admin-form-grid .span-2 { grid-column: span 2; }
.admin-test-card { display: flex; flex-direction: column; }
.admin-test-card form { display: grid; gap: 12px; }
.admin-test-card .admin-mail-explainer { margin-top: auto; }
.admin-content-donate .admin-donation-console { padding: 0; }
.admin-content-donate .admin-donation-summary { margin-top: 0; }
.admin-content-donate .admin-package-section { border-radius: 22px; background: rgba(13,15,18,.84); }
.admin-content-donate .admin-package-editor { background: rgba(255,255,255,.018); }

@media (max-width: 1180px) {
    .admin-workspace { grid-template-columns: 238px minmax(0,1fr); }
    .admin-sidebar { padding-inline: 12px; }
    .admin-tool-grid { grid-template-columns: 1fr; }
    .admin-tool-card > p { min-height: 0; }
    .admin-dashboard-grid,
    .admin-email-grid { grid-template-columns: 1fr; }
    .admin-test-card .admin-mail-explainer { margin-top: 25px; }
}
@media (max-width: 820px) {
    .admin-workspace { display: block; }
    .admin-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 12px;
        border-right: 0;
        border-bottom: 1px solid var(--admin-line);
    }
    .admin-brand { width: max-content; min-width: 230px; margin-bottom: 10px; }
    .admin-navigation {
        display: flex;
        gap: 10px;
        padding: 0 0 5px;
        overflow-x: auto;
    }
    .admin-nav-group {
        display: flex;
        flex: 0 0 auto;
        gap: 5px;
    }
    .admin-nav-group > span { display: none; }
    .admin-nav-group a {
        width: auto;
        min-width: max-content;
        grid-template-columns: 28px auto;
        padding-right: 13px;
    }
    .admin-nav-group a em { display: none; }
    .admin-sidebar-account { display: none; }
    .admin-stage { padding: 18px 13px 45px; }
    .admin-stage-header { align-items: flex-start; }
    .admin-stage-actions { display: none; }
    .admin-welcome-card { grid-template-columns: 1fr; }
    .admin-health-orb { display: none; }
    .admin-metric-grid { grid-template-columns: repeat(2,1fr); }
    .admin-transaction-summary { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .admin-stage-header h2 { font-size: 31px; }
    .admin-welcome-card { min-height: 0; padding: 27px 21px; border-radius: 21px; }
    .admin-welcome-card h3 { font-size: 34px; }
    .admin-metric-grid { grid-template-columns: 1fr; }
    .admin-quick-grid { grid-template-columns: 1fr; }
    .admin-inline-form { grid-template-columns: 1fr; }
    .admin-form-grid { grid-template-columns: 1fr; }
    .admin-form-grid .span-2 { grid-column: auto; }
    .admin-mail-status { align-items: flex-start; flex-direction: column; }
    .admin-duration-grid { grid-template-columns: repeat(2,1fr); }
    .admin-table-card > header { display: block; }
    .admin-table-card > header > small { display: block; margin-top: 8px; text-align: left; }
}
.site-language-picker select:focus-visible { box-shadow: inset 0 0 0 2px rgba(240,214,154,.45); }
.site-language-picker option { background: #101014; color: white; }
.site-language-picker i {
    position: absolute;
    z-index: 0;
    top: 18px;
    right: 9px;
    width: 6px;
    height: 6px;
    border-right: 1px solid #817b7d;
    border-bottom: 1px solid #817b7d;
    transform: rotate(45deg);
    pointer-events: none;
}
.donation-hero {
    grid-template-columns: minmax(0,1fr);
}
.donation-hero-copy { max-width: 880px; }
.donation-package button > span { gap: 8px; }
.donation-package button > span img {
    width: 64px;
    height: 21px;
}

/* Readability pass and persistent community access */
.donation-assurance > a {
    margin: 0 0 26px;
    padding: 18px;
    border-color: rgba(88,101,242,.28);
    background: linear-gradient(120deg,rgba(88,101,242,.16),rgba(88,101,242,.055));
}
.donation-assurance > a small { font-size: 11px; }
.donation-assurance > a span { font-size: 13px; }
.discord-float {
    position: fixed;
    z-index: 90;
    left: auto;
    right: 22px;
    bottom: 22px;
    min-width: 238px;
    min-height: 62px;
    display: grid;
    grid-template-columns: 40px 1fr 18px;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border: 1px solid rgba(139,148,255,.38);
    border-radius: 17px;
    background:
        linear-gradient(120deg,rgba(88,101,242,.24),rgba(15,16,24,.94) 54%),
        rgba(10,11,16,.94);
    color: white;
    text-decoration: none;
    box-shadow: 0 24px 70px rgba(0,0,0,.52), inset 0 1px rgba(255,255,255,.09);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.discord-float::before {
    position: absolute;
    content: "";
    inset: -1px;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(88,101,242,.32);
    animation: discord-float-pulse 2.8s ease-out infinite;
    pointer-events: none;
}
.discord-float:hover {
    transform: translateY(-4px);
    border-color: rgba(159,167,255,.72);
    color: white;
    text-decoration: none;
    box-shadow: 0 30px 82px rgba(0,0,0,.6), 0 0 35px rgba(88,101,242,.16), inset 0 1px rgba(255,255,255,.12);
}
.discord-float-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    box-shadow: 0 10px 28px rgba(88,101,242,.32);
}
.discord-float-mark img { width: 40px; height: 40px; display: block; }
.discord-float-copy { display: grid; gap: 4px; }
.discord-float-copy small {
    color: #9197bf;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
}
.discord-float-copy strong { color: #f3f3ff; font-size: 13px; }
.discord-float > b {
    color: #b9beff;
    font-size: 16px;
    font-weight: 400;
}
.site-footer small { font-size: 12px; }
.legacy-content small,
.page-admin .admin-workspace small { font-size: 11px; line-height: 1.5; }
.portal-page[data-page="crafting"] .portal-toolbar {
    position: relative;
    top: auto;
    z-index: 3;
    margin-bottom: 28px;
}

/* Systems dossier: centered, stable and independent from page scroll. */
.portal-page[data-page="systems"] .portal-toolbar {
    border-radius: 18px;
}
.portal-page[data-page="systems"] .portal-search,
.portal-page[data-page="systems"] .portal-filter,
.portal-page[data-page="systems"] .lore-card {
    margin: 0;
}
.portal-page[data-page="systems"] .portal-search,
.portal-page[data-page="systems"] .portal-filter {
    border-radius: 13px;
}
.portal-page[data-page="systems"] .lore-card {
    padding: 0;
    border-radius: 20px;
}
.portal-dialog {
    position: fixed;
    inset: 0;
    width: min(1180px, calc(100vw - 48px));
    height: min(820px, calc(100dvh - 48px));
    max-height: none;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 26px;
    background: #0d0d11;
    color: white;
    box-shadow: 0 45px 140px rgba(0,0,0,.82);
}
.portal-dialog[open] {
    display: grid;
    grid-template-columns: minmax(390px,.92fr) minmax(430px,1.08fr);
}
.portal-dialog-visual {
    min-height: 0;
    height: 100%;
    background-position: center;
}
.portal-dialog-visual::after {
    background:
        linear-gradient(90deg, transparent 58%, #0d0d11 100%),
        linear-gradient(0deg, rgba(13,13,17,.76), transparent 48%);
}
.portal-dialog-body {
    min-width: 0;
    padding: clamp(52px,5vw,76px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.portal-dialog-body h2 {
    position: relative;
    margin: 0 0 34px;
    font-size: clamp(42px,4.2vw,66px);
    line-height: .96;
    letter-spacing: -.045em;
}
.portal-dialog-body h3 {
    margin: 34px 0 12px;
    font-size: 27px;
}
.portal-dialog-body p {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.78;
}
.portal-dialog .modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    background: rgba(10,10,13,.74);
    backdrop-filter: blur(12px);
}

/* Crafting controls: one visual rhythm, including the NPC selector. */
.portal-page[data-page="crafting"] .portal-toolbar {
    grid-template-columns: minmax(300px,1fr) auto 240px 112px;
    align-items: stretch;
    border-radius: 18px;
}
.portal-page[data-page="crafting"] .portal-search,
.portal-page[data-page="crafting"] .portal-filter,
.portal-page[data-page="crafting"] .portal-select select {
    margin: 0;
    border-radius: 13px;
}
.portal-page[data-page="crafting"] .portal-filters {
    align-items: stretch;
}
.portal-page[data-page="crafting"] .portal-filter {
    min-height: 54px;
}
.portal-page[data-page="crafting"] .portal-select {
    position: relative;
    display: block;
    min-width: 0;
}
.portal-page[data-page="crafting"] .portal-select::after {
    position: absolute;
    top: 50%;
    right: 18px;
    width: 7px;
    height: 7px;
    content: "";
    border-right: 1px solid var(--gold-soft);
    border-bottom: 1px solid var(--gold-soft);
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}
.portal-page[data-page="crafting"] .portal-select select {
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0 46px 0 18px;
    color: #d6d1d2;
    background: rgba(255,255,255,.035);
}
.portal-page[data-page="crafting"] .portal-results {
    min-width: 0;
    margin: 0;
    padding-right: 8px;
}

/* Recipe cards grow with their material list; copy size remains unchanged. */
.premium-craft-grid {
    align-items: stretch;
}
.premium-craft-card {
    min-height: 430px;
    height: auto;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 28px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,.035), transparent 55%), #0d0d11;
}
.craft-output-visual {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border-radius: 16px;
}
.craft-materials {
    flex: 0 0 auto;
    margin: 0 0 24px;
}
.craft-facts {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    min-height: 43px;
    margin-top: auto;
    padding-top: 17px;
}
.portal-load-more {
    margin: 42px auto 0;
    padding: 0 24px;
    border-radius: 16px;
}

@media (max-width: 1100px) {
    .portal-page[data-page="crafting"] .portal-toolbar {
        grid-template-columns: minmax(0,1fr) 240px 112px;
    }
    .portal-page[data-page="crafting"] .portal-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .portal-dialog {
        width: min(720px, calc(100vw - 24px));
        height: min(900px, calc(100dvh - 24px));
        border-radius: 20px;
    }
    .portal-dialog[open] {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(220px,34%) minmax(0,1fr);
    }
    .portal-dialog-visual::after {
        background: linear-gradient(0deg,#0d0d11,transparent 72%);
    }
    .portal-dialog-body {
        padding: 34px clamp(24px,6vw,46px) 46px;
    }
    .portal-dialog-body h2 {
        font-size: clamp(38px,8vw,56px);
    }
    .portal-page[data-page="crafting"] .portal-toolbar {
        grid-template-columns: 1fr;
    }
    .portal-page[data-page="crafting"] .portal-search {
        grid-column: auto;
    }
    .portal-page[data-page="crafting"] .portal-filters {
        display: grid;
        grid-template-columns: repeat(3,1fr);
        overflow: visible;
    }
    .portal-page[data-page="crafting"] .portal-select select {
        min-height: 54px;
    }
    .portal-page[data-page="crafting"] .portal-results {
        padding: 10px 4px 2px;
        border-left: 0;
    }
}

@keyframes discord-float-pulse {
    0% { box-shadow: 0 0 0 0 rgba(88,101,242,.28); }
    65%,100% { box-shadow: 0 0 0 13px rgba(88,101,242,0); }
}
@media (max-width: 680px) {
    .discord-float {
        left: auto;
        right: 12px;
        bottom: 12px;
        min-width: 0;
        width: auto;
        grid-template-columns: 38px 1fr;
        min-height: 56px;
        padding: 9px 12px;
        border-radius: 16px;
    }
    .discord-float-mark,
    .discord-float-mark img { width: 38px; height: 38px; }
    .discord-float > b { display: none; }
    .discord-float-copy small { display: none; }
    .discord-float-copy strong { font-size: 12px; }
}

/* Use the header pill style only for inline navigation, not the popover. */
@media (max-width: 1380px) {
    .site-header > .main-nav,
    .home-page .site-header > .main-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: auto;
        right: 0;
        z-index: 2;
        box-sizing: border-box;
        width: min(340px, 100%);
        max-height: calc(100vh - 108px);
        max-height: calc(100dvh - 108px);
        justify-content: flex-start;
        gap: 2px;
        padding: 8px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        border: 1px solid rgba(226,194,128,.22);
        border-radius: 18px;
        background: #101015;
        box-shadow: 0 20px 55px rgba(0,0,0,.68);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .site-header > .main-nav.open,
    .home-page .site-header > .main-nav.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }
    .site-header > .main-nav a,
    .home-page .site-header > .main-nav a {
        flex-shrink: 0;
        padding: 14px 13px;
        border-radius: 9px;
        overflow-wrap: anywhere;
    }
}
