:root {
    color-scheme: dark;
    --bg: #070707;
    --panel: #12100f;
    --panel-2: #1d1713;
    --gold: #f0c660;
    --gold-soft: #ffe4a2;
    --red: #cf2d22;
    --green: #2eb58d;
    --steel: #86a3c8;
    --text: #f4eee2;
    --muted: #b8ab99;
    --line: rgba(240, 198, 96, .28);
    --shadow: 0 22px 70px rgba(0, 0, 0, .48);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Bahnschrift, "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    padding: 0 clamp(18px, 4vw, 72px);
    background: rgba(7, 7, 7, .78);
    border-bottom: 1px solid rgba(255, 228, 162, .18);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 54px;
    padding: 6px 16px 6px 8px;
    border: 1px solid rgba(255, 228, 162, .3);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 228, 162, .12), rgba(207, 45, 34, .1)),
        rgba(7, 7, 7, .48);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .04);
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: 1.48rem;
    color: var(--gold-soft);
    text-shadow: 0 2px 0 rgba(0, 0, 0, .9), 0 0 18px rgba(240, 198, 96, .32);
}

.brand-wide span {
    min-width: 76px;
}

.brand img {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .62));
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.2vw, 32px);
    color: #ead8b4;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.site-nav a {
    position: relative;
    padding: 8px 0;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--gold), var(--red));
    transition: transform .2s ease;
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.language-switcher {
    position: relative;
    z-index: 24;
    color: var(--gold-soft);
    font-weight: 700;
}

.language-switcher summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255, 228, 162, .22);
    border-radius: 6px;
    background: rgba(13, 11, 13, .72);
    cursor: pointer;
    list-style: none;
}

.language-switcher summary::-webkit-details-marker {
    display: none;
}

.language-switcher summary::after {
    content: "▼";
    color: var(--gold);
    font-size: .72rem;
}

.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 176px;
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid rgba(255, 228, 162, .28);
    border-right: 4px solid rgba(202, 112, 73, .74);
    background: linear-gradient(160deg, rgba(42, 34, 27, .98), rgba(12, 11, 15, .98));
    box-shadow: 0 24px 55px rgba(0, 0, 0, .55);
}

.language-menu a {
    display: block;
    padding: 12px 28px;
    color: #eee2c6;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font-size: 1.04rem;
}

.language-menu a:hover,
.language-menu a.is-active {
    color: var(--gold-soft);
    background: rgba(240, 198, 96, .12);
}

.nav-disabled {
    opacity: .72;
    cursor: not-allowed;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: var(--gold-soft);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: end;
    padding: 118px clamp(20px, 5vw, 86px) 64px;
    overflow: hidden;
    background-image: url("../img/hero-bg.jpg");
    background-size: cover;
    background-position: center center;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, .03) 36%, rgba(0, 0, 0, .72) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, .42), transparent 33%, transparent 72%, rgba(0, 0, 0, .32));
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: end;
    gap: clamp(26px, 5vw, 76px);
    width: min(1180px, 100%);
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
    line-height: 1.06;
}

h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4.2vw, 3.7rem);
    color: #ffe7aa;
}

.hero-copy {
    max-width: 560px;
    margin: 0;
    color: #fff1d7;
    font-size: clamp(1rem, 2vw, 1.25rem);
    text-shadow: 0 3px 12px rgba(0, 0, 0, .84);
}

.hero-actions,
.server-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-actions {
    margin-top: 34px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    transform: translateY(64px);
    padding: 18px 22px 22px;
    border: 1px solid rgba(255, 228, 162, .24);
    background:
        linear-gradient(160deg, rgba(25, 19, 16, .72), rgba(7, 9, 12, .74)),
        rgba(255, 255, 255, .03);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(255, 228, 162, .12);
    pointer-events: none;
}

.hero-card img {
    width: 82px;
    height: 82px;
    margin-bottom: 16px;
}

.card-wordmark {
    width: 100%;
    aspect-ratio: 4 / 1;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 228, 162, .2);
    background: rgba(0, 0, 0, .22);
}

.card-wordmark img {
    width: 100%;
    height: auto;
    object-fit: initial;
    object-position: initial;
    transform: translateY(-37%);
    margin: 0;
}

.hero-card-title {
    margin-bottom: 18px;
    color: var(--gold-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1.1;
}

.hero-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-top: 1px solid rgba(255, 228, 162, .16);
}

.hero-card-row span {
    color: var(--muted);
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 700;
}

.hero-card-row strong {
    min-width: 44px;
    text-align: right;
    color: var(--gold-soft);
    font-size: 1.08rem;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 6px;
    border: 1px solid var(--line);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #f2c863, #bd231d);
    color: #140c09;
    border-color: rgba(255, 228, 162, .56);
}

.btn-ghost {
    background: rgba(20, 16, 14, .72);
    color: var(--gold-soft);
}

.btn-disabled {
    opacity: .58;
    cursor: not-allowed;
    background: rgba(255, 255, 255, .05);
    color: var(--muted);
}

.server-strip {
    width: min(100%, 900px);
    margin-top: 42px;
    padding: 14px;
    border: 1px solid rgba(255, 228, 162, .18);
    background: rgba(7, 7, 7, .64);
    box-shadow: var(--shadow);
}

.server-strip div {
    min-width: 170px;
    padding: 10px 18px;
    border-left: 3px solid var(--gold);
}

.server-strip span,
.stat-row span,
.security-grid span,
.muted {
    color: var(--muted);
}

.server-strip span,
.stat-row span {
    display: block;
    font-size: .82rem;
    text-transform: uppercase;
}

.server-strip strong,
.stat-row strong {
    display: block;
    margin-top: 4px;
    color: var(--gold-soft);
    font-size: 1.05rem;
}

.section,
.feature-layout,
.final-band {
    width: min(1180px, calc(100% - 38px));
    margin: 0 auto;
}

.section {
    padding: 82px 0;
}

.intro-band {
    position: relative;
    z-index: 2;
}

.section-head {
    max-width: 840px;
}

.section-head p:last-child,
.feature-panel p,
.split-section p,
.final-band p {
    color: var(--muted);
    margin-top: 0;
}

.account-section {
    padding-top: 94px;
}

.notice {
    margin: 22px 0;
    padding: 14px 18px;
    border: 1px solid rgba(255, 228, 162, .26);
    background: rgba(255, 255, 255, .05);
    color: var(--gold-soft);
}

.notice-error {
    border-color: rgba(207, 45, 34, .54);
    color: #ffd2cd;
    background: rgba(207, 45, 34, .12);
}

.notice-success {
    border-color: rgba(46, 181, 141, .5);
    color: #c7ffe7;
    background: rgba(46, 181, 141, .12);
}

.account-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
    gap: 12px;
    align-items: center;
    margin: 28px 0;
    padding: 18px;
    border: 1px solid rgba(255, 228, 162, .2);
    background: linear-gradient(145deg, rgba(29, 23, 19, .94), rgba(8, 10, 13, .94));
}

.account-summary span,
.form-hint {
    color: var(--muted);
}

.account-summary span {
    display: block;
    font-size: .8rem;
    text-transform: uppercase;
}

.account-summary strong {
    color: var(--gold-soft);
    font-size: 1.2rem;
}

.account-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
}

.inline-form {
    margin: 0;
}

.auth-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 18px;
}

.auth-tabs a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid rgba(255, 228, 162, .18);
    background: rgba(255, 255, 255, .04);
    color: #ead8b4;
    font-weight: 800;
}

.auth-tabs a.is-active,
.auth-tabs a:hover {
    border-color: rgba(240, 198, 96, .72);
    color: var(--gold-soft);
    background: linear-gradient(135deg, rgba(240, 198, 96, .18), rgba(207, 45, 34, .14));
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(360px, 1.36fr);
    gap: 18px;
    margin-top: 30px;
}

.account-form {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 228, 162, .18);
    background: linear-gradient(160deg, rgba(29, 23, 19, .94), rgba(9, 11, 14, .94));
    box-shadow: var(--shadow);
}

.login-card {
    align-self: start;
}

.auth-main-card {
    min-height: 100%;
}

.account-form h3 {
    margin: 0 0 4px;
    color: var(--gold-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
}

.account-form label {
    display: grid;
    gap: 6px;
    color: #ead8b4;
    font-size: .88rem;
}

.account-form input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255, 228, 162, .22);
    background: rgba(0, 0, 0, .36);
    color: var(--text);
    padding: 0 12px;
    outline: none;
}

.account-form input:focus {
    border-color: rgba(240, 198, 96, .78);
    box-shadow: 0 0 0 3px rgba(240, 198, 96, .12);
}

.form-hint {
    margin: 4px 0 0;
    font-size: .88rem;
}

.preview-hint {
    padding: 10px 12px;
    border: 1px solid rgba(240, 198, 96, .28);
    background: rgba(240, 198, 96, .08);
    color: var(--gold-soft);
}

.auth-links {
    display: grid;
    gap: 8px;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 228, 162, .14);
}

.auth-links a {
    color: var(--gold-soft);
    font-weight: 800;
}

.captcha-box {
    display: inline-flex;
    width: fit-content;
    min-height: 34px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(255, 228, 162, .28);
    background: rgba(0, 0, 0, .42);
    color: var(--gold-soft);
    font-weight: 900;
}

.site-popup {
    position: fixed;
    z-index: 40;
    right: clamp(14px, 3vw, 36px);
    bottom: clamp(14px, 3vw, 36px);
    width: min(420px, calc(100vw - 28px));
    overflow: hidden;
    border: 1px solid rgba(255, 228, 162, .32);
    background: linear-gradient(160deg, rgba(29, 23, 19, .97), rgba(8, 10, 13, .97));
    box-shadow: var(--shadow);
}

.site-popup.is-hidden {
    display: none;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 228, 162, .28);
    background: rgba(0, 0, 0, .62);
    color: var(--gold-soft);
    font-size: 1.2rem;
    cursor: pointer;
}

.site-popup img,
.site-popup video {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    background: #000;
}

.site-popup div {
    padding: 18px;
}

.site-popup strong {
    color: var(--gold-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.28rem;
}

.site-popup p {
    color: var(--muted);
}

.portal-layout {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr) minmax(260px, 340px);
    gap: 18px;
    align-items: start;
    padding-top: 92px;
}

.portal-side,
.portal-main,
.portal-rank {
    min-width: 0;
}

.compact-tabs {
    margin-top: 0;
}

.compact-tabs a {
    flex: 1 1 78px;
    justify-content: center;
}

.mini-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 228, 162, .14);
}

.mini-stat span {
    color: var(--muted);
    text-transform: uppercase;
    font-size: .78rem;
}

.mini-stat strong {
    color: var(--gold-soft);
}

.portal-main {
    display: grid;
    gap: 18px;
}

.portal-head,
.download-panel,
.announcement-list article,
.ranking-box,
.online-box,
.admin-card {
    border: 1px solid rgba(255, 228, 162, .18);
    background: linear-gradient(160deg, rgba(29, 23, 19, .94), rgba(9, 11, 14, .94));
    box-shadow: var(--shadow);
}

.portal-head,
.download-panel {
    padding: 24px;
}

.portal-head h2,
.download-panel h2 {
    font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.download-panel h2 {
    text-align: center;
    text-transform: uppercase;
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    margin: 0;
}

.download-note {
    max-width: 600px;
    margin: 4px auto 0;
    color: var(--muted);
    text-align: center;
    font-weight: 700;
    font-size: .84rem;
}

.announcement-list {
    display: grid;
    gap: 12px;
}

.announcement-list article {
    padding: 18px;
}

.announcement-list span,
.pack-row span,
.ranking-box span {
    display: block;
    color: var(--muted);
    font-size: .86rem;
}

.announcement-list strong,
.pack-row strong {
    display: block;
    color: var(--gold-soft);
    margin: 4px 0;
}

.announcement-list p {
    margin: 0;
    color: var(--muted);
}

.download-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(160deg, rgba(21, 17, 15, .95), rgba(9, 10, 11, .95));
}

.pack-list {
    display: grid;
    gap: 8px;
}

.download-menu {
    gap: 12px;
}

.download-block {
    display: grid;
    gap: 7px;
}

.download-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 32px;
    padding: 0 2px 6px;
    border-bottom: 1px solid rgba(255, 228, 162, .14);
}

.download-block-head strong {
    color: var(--gold-soft);
    font-size: .92rem;
    font-weight: 900;
    text-transform: uppercase;
}

.download-block-head span {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
}

.download-rows {
    display: grid;
    gap: 6px;
}

.pack-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 48px;
    padding: 7px 9px;
    border: 1px solid rgba(255, 228, 162, .16);
    border-radius: 6px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018)),
        rgba(10, 10, 10, .48);
}

.download-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: .95rem;
    font-weight: 900;
}

.download-icon::before {
    content: none;
}

.pack-info {
    min-width: 0;
    padding: 0;
}

.pack-row strong {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: #fff;
    margin: 0 0 1px;
    font-size: .88rem;
}

.provider-badge {
    display: inline-flex !important;
    align-items: center;
    min-height: 18px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #40bf58;
    color: #fff !important;
    font-size: .68rem !important;
    font-weight: 800;
}

.pack-row .btn {
    min-height: 32px;
    margin-right: 0;
    padding: 0 11px;
    border-radius: 5px;
    background: #3d7600;
    border-color: #3d7600;
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pack-more {
    border: 1px solid rgba(255, 228, 162, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
}

.download-group {
    overflow: hidden;
    border-color: rgba(255, 228, 162, .22);
    background:
        linear-gradient(145deg, rgba(42, 31, 22, .64), rgba(8, 10, 13, .88)),
        rgba(0, 0, 0, .34);
}

.download-group[open] {
    border-color: rgba(255, 228, 162, .38);
}

.pack-more summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 54px;
    padding: 0 16px;
    color: var(--gold-soft);
    cursor: pointer;
    list-style: none;
}

.download-group summary {
    padding: 0 18px;
    background: linear-gradient(90deg, rgba(255, 228, 162, .08), rgba(255, 255, 255, .02));
}

.pack-more summary::-webkit-details-marker {
    display: none;
}

.pack-more summary::after {
    content: "▼";
    color: var(--gold);
    font-size: .8rem;
    transition: transform .18s ease;
}

.pack-more[open] summary::after {
    transform: rotate(180deg);
}

.pack-more summary span {
    color: var(--gold-soft);
    font-weight: 900;
}

.download-group summary span {
    text-transform: uppercase;
    letter-spacing: 0;
}

.pack-more summary strong {
    margin-left: auto;
    color: var(--muted);
    font-size: .86rem;
}

.download-group summary strong {
    min-height: 26px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 228, 162, .18);
    border-radius: 999px;
    background: rgba(0, 0, 0, .3);
    color: #e8d0a2;
}

.pack-more-list {
    display: grid;
    gap: 10px;
    padding: 0 12px 12px;
}

.download-group .pack-more-list {
    padding: 12px;
    border-top: 1px solid rgba(255, 228, 162, .12);
}

.pack-row-compact {
    background: rgba(0, 0, 0, .26);
}

.portal-rank {
    display: grid;
    gap: 18px;
}

.online-box {
    display: grid;
    place-items: center;
    min-height: 118px;
    padding: 18px;
    text-align: center;
}

.online-box strong {
    color: #8cf0ff;
    font-size: 2rem;
}

.online-box span {
    color: #c8f8ff;
    font-weight: 800;
}

.ranking-box {
    overflow: hidden;
}

.ranking-box h3 {
    margin: 0;
    padding: 13px 16px;
    background: rgba(46, 181, 141, .22);
    color: #f7f4ea;
}

.ranking-box table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-box th,
.ranking-box td {
    padding: 11px 12px;
    border-top: 1px solid rgba(255, 228, 162, .14);
    text-align: left;
    vertical-align: top;
}

.ranking-box th {
    color: var(--gold-soft);
    font-size: .84rem;
}

.ranking-box td:first-child,
.ranking-box th:first-child {
    width: 44px;
    text-align: center;
}

.ranking-box td:last-child,
.ranking-box th:last-child {
    text-align: right;
}

.ranking-box strong {
    color: #f7f4ea;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}

.system-grid span {
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(255, 228, 162, .18);
    background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    color: #f4dec0;
}

.system-grid-rich article {
    min-height: 148px;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(255, 228, 162, .18);
    background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}

.system-grid-rich strong {
    color: var(--gold-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.12rem;
}

.system-grid-rich span {
    color: var(--muted);
}

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    padding: 20px 0 70px;
}

.feature-panel,
.status-panel,
.security-grid div {
    border: 1px solid rgba(255, 228, 162, .18);
    background: linear-gradient(160deg, rgba(29, 23, 19, .94), rgba(12, 14, 16, .94));
    box-shadow: var(--shadow);
}

.feature-panel {
    display: grid;
    grid-template-columns: minmax(260px, 43%) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 22px;
}

.feature-panel img,
.section-image,
.final-band img {
    border: 1px solid rgba(255, 228, 162, .24);
}

.status-panel {
    padding: 24px;
}

.status-panel h2 {
    font-size: 1.7rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 228, 162, .15);
}

.stat-row strong {
    text-align: right;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(300px, 1fr);
    gap: 42px;
    align-items: center;
}

.market-section {
    grid-template-columns: minmax(300px, 1fr) minmax(0, .9fr);
}

.section-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.locked-pill {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 15px;
    border: 1px solid rgba(46, 181, 141, .45);
    color: #bdf7df;
    background: rgba(46, 181, 141, .1);
    font-weight: 800;
}

.security-section {
    padding-bottom: 54px;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.security-grid div {
    min-height: 160px;
    padding: 20px;
}

.security-grid strong {
    display: block;
    color: var(--gold-soft);
    margin-bottom: 10px;
}

.security-grid span {
    display: block;
    font-size: .95rem;
}

.player-grid div {
    min-height: 142px;
}

.final-band {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(0, .75fr);
    gap: 26px;
    align-items: center;
    padding: 42px 0 92px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 26px clamp(18px, 4vw, 72px);
    border-top: 1px solid rgba(255, 228, 162, .16);
    background: #050505;
    color: var(--muted);
}

.dashboard-page {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .92)),
        url("../img/hero-bg.jpg") center / cover fixed;
}

.dashboard-shell {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    padding: 44px 0 82px;
}

.dashboard-brand {
    margin-bottom: 56px;
}

.dashboard-head,
.dashboard-denied {
    padding: 28px;
    border: 1px solid rgba(255, 228, 162, .22);
    background: rgba(8, 9, 12, .78);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.dashboard-head h1,
.dashboard-denied h1 {
    margin: 0 0 14px;
    color: var(--gold-soft);
    font-family: Georgia, "Times New Roman", serif;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.dashboard-grid article {
    min-height: 140px;
    padding: 20px;
    border: 1px solid rgba(255, 228, 162, .18);
    background: linear-gradient(160deg, rgba(29, 23, 19, .9), rgba(8, 10, 13, .9));
}

.dashboard-grid strong {
    display: block;
    color: var(--gold-soft);
    margin-bottom: 10px;
}

.dashboard-grid span,
.dashboard-head p,
.dashboard-denied p {
    color: var(--muted);
}

.admin-lock {
    max-width: 620px;
}

.admin-login-form {
    margin-top: 20px;
    max-width: 460px;
    box-shadow: none;
}

.admin-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 18px;
    margin-top: 24px;
}

.admin-card {
    display: grid;
    align-content: start;
    gap: 13px;
    padding: 20px;
}

.admin-card h2 {
    margin: 0 0 4px;
    font-size: 1.65rem;
}

.admin-card label {
    display: grid;
    gap: 6px;
    color: #ead8b4;
    font-size: .88rem;
}

.account-form textarea,
.admin-card input,
.admin-card textarea {
    width: 100%;
    border: 1px solid rgba(255, 228, 162, .22);
    background: rgba(0, 0, 0, .36);
    color: var(--text);
    padding: 10px 12px;
    outline: none;
    resize: vertical;
}

.admin-card input {
    min-height: 42px;
}

.admin-card input:focus,
.admin-card textarea:focus {
    border-color: rgba(240, 198, 96, .78);
    box-shadow: 0 0 0 3px rgba(240, 198, 96, .12);
}

.check-row {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.check-row input {
    width: auto;
    min-height: auto;
}

.admin-module-list {
    display: grid;
    gap: 10px;
}

.admin-module-list span {
    display: block;
    padding: 12px;
    border: 1px solid rgba(255, 228, 162, .14);
    color: var(--muted);
    background: rgba(255, 255, 255, .04);
}

@media (max-width: 980px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 24px 22px;
        background: rgba(7, 7, 7, .96);
        border-bottom: 1px solid rgba(255, 228, 162, .18);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 14px 0;
    }

    .system-grid,
    .security-grid,
    .auth-layout,
    .dashboard-grid,
    .admin-panel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-layout {
        grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    }

    .portal-rank {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hero-card {
        max-width: 440px;
        transform: none;
    }

    .feature-layout,
    .feature-panel,
    .split-section,
    .market-section,
    .final-band {
        grid-template-columns: 1fr;
    }

    .account-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .site-header {
        height: 68px;
        padding: 0 15px;
    }

    .site-nav {
        top: 68px;
    }

    .hero {
        min-height: 92vh;
        padding: 96px 18px 72px;
    }

    .hero-logo {
        width: min(410px, 92vw);
        margin-left: -8px;
    }

    h1 {
        font-size: clamp(4rem, 18vw, 6rem);
    }

    .hero-wordmark {
        font-size: clamp(4.4rem, 21vw, 7rem);
    }

    .server-strip {
        display: grid;
    }

    .server-strip div {
        min-width: 0;
    }

    .system-grid,
    .security-grid,
    .auth-layout,
    .dashboard-grid,
    .admin-panel-grid,
    .portal-layout,
    .portal-rank,
    .account-summary {
        grid-template-columns: 1fr;
    }

    .pack-row {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 12px;
        padding: 8px;
    }

    .pack-row .btn {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 2px;
    }

    .download-icon {
        width: 30px;
        height: 30px;
        font-size: .95rem;
    }

    .provider-badge {
        min-height: 20px;
        padding: 2px 8px;
        font-size: .72rem !important;
    }

    .pack-more summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
        padding: 11px 14px;
    }

    .pack-more summary strong {
        margin-left: 0;
    }

    .download-block-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .section {
        padding: 58px 0;
    }

    .site-footer {
        flex-direction: column;
    }
}
