:root {
    --bg: #060608;
    --surface: #0d0d12;
    --surface-2: #11111a;
    --line: #232331;
    --line-soft: #1a1a25;
    --text: #ffffff;
    --muted: #b5b5c4;
    --red: #7a0f16;
    --red-2: #a01924;
    --red-glow: rgba(160, 25, 36, 0.28);
    --danger: #ab1f2f;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;
}

a {
    color: #fff;
    text-decoration: none;
}

.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -10;
    background:
        radial-gradient(1100px 600px at 8% 0%, rgba(160, 25, 36, 0.22), transparent 50%),
        radial-gradient(800px 500px at 95% 2%, rgba(160, 25, 36, 0.16), transparent 42%),
        linear-gradient(180deg, #060608, #060608 55%, #090910 100%);
}

.shell {
    width: min(1240px, 94vw);
    margin-inline: auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
    background: rgba(7, 7, 10, 0.84);
}

.topbar-inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

.brand-logo {
    width: 86px;
    height: auto;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    font-weight: 700;
    text-transform: uppercase;
}

.site-nav a:hover {
    color: #fff;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #0c0c11;
    color: #fff;
    padding: 0.3rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-block {
    position: relative;
    min-height: 66vh;
    border-bottom: 1px solid var(--line-soft);
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.88) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 6, 8, 0.78), rgba(6, 6, 8, 0.28)),
        linear-gradient(180deg, rgba(6, 6, 8, 0.05), rgba(6, 6, 8, 0.95) 90%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 66vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
    padding: 2.2rem 0;
}

.hero-kicker {
    margin: 0;
    color: #ffd4d8;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-brandmark {
    width: min(230px, 48vw);
    height: auto;
}

.hero-inner h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(2rem, 5.6vw, 4.1rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.hero-inner p {
    margin: 0;
    max-width: 760px;
    color: #dfdfeb;
    font-size: 1.02rem;
}

.hero-actions {
    margin-top: 0.65rem;
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.live-status {
    margin-top: 0.4rem;
    width: fit-content;
    min-width: 280px;
    border: 1px solid #2c2c3a;
    background: linear-gradient(135deg, rgba(160, 25, 36, 0.22), rgba(12, 12, 18, 0.92));
    padding: 0.58rem 0.72rem;
}

.live-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #9b2e39;
    box-shadow: 0 0 0 2px rgba(155, 46, 57, 0.2);
}

.live-dot.is-online {
    background: #27c06f;
    box-shadow: 0 0 0 2px rgba(39, 192, 111, 0.2);
}

.live-label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    font-weight: 800;
    text-transform: uppercase;
    color: #f2dbe0;
}

.live-count-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.28rem;
    margin-top: 0.15rem;
}

.live-count {
    font-size: 1.42rem;
    letter-spacing: -0.02em;
}

.live-sep,
.live-max {
    font-size: 1rem;
    color: #dad3df;
}

.live-unit {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.live-sub {
    margin: 0.2rem 0 0;
    font-size: 0.7rem;
    color: #bcb6c4;
    letter-spacing: 0.05em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.44rem 0.72rem;
    border: 1px solid var(--line);
    background: #0e0e14;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-primary {
    border-color: #9b1a25;
    background: linear-gradient(90deg, var(--red), var(--red-2));
}

.btn-outline {
    background: rgba(10, 10, 14, 0.7);
}

.btn-danger {
    border-color: #9b2a35;
    background: var(--danger);
}

.section {
    padding: 1.35rem 0 0.9rem;
}

.section-head {
    margin-bottom: 0.9rem;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    letter-spacing: -0.01em;
}

.section-head.split {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.section-head.split a {
    color: #ffd5d8;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.signal-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(122, 15, 22, 0.26), rgba(13, 13, 18, 0.95));
}

.signal-strip > div {
    padding: 0.72rem 0.85rem;
    border-right: 1px solid var(--line-soft);
}

.signal-strip > div:last-child {
    border-right: 0;
}

.signal-strip span {
    display: block;
    color: #d7d7e2;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.22rem;
}

.signal-strip strong {
    font-size: 0.96rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.feature-item {
    position: relative;
    padding: 1rem;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(160, 25, 36, 0.08), var(--surface));
}

.feature-item::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red-2), transparent);
}

.feature-item h3 {
    margin: 0 0 0.45rem;
    font-size: 1.03rem;
}

.feature-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.update-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.update-item {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 0.9rem;
}

.update-item h3 {
    margin: 0.2rem 0 0.45rem;
}

.update-item p {
    margin: 0;
    color: var(--muted);
}

.item-meta {
    color: #9a9aac;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-hero {
    padding: 1.15rem 0 0.75rem;
    border-bottom: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(160, 25, 36, 0.14), rgba(6, 6, 8, 0));
}

.page-kicker {
    margin: 0 0 0.35rem;
    color: #f4bdc3;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.17em;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(1.5rem, 3.6vw, 2.35rem);
}

.content-layout {
    padding: 1rem 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 0.7rem;
}

.content-main,
.content-side {
    border: 1px solid var(--line);
    background: var(--surface);
}

.content-main {
    padding: 1rem 1.1rem 1.2rem;
}

.content-side {
    padding: 0.9rem;
}

.content-header {
    padding-bottom: 0.55rem;
    margin-bottom: 0.65rem;
    border-bottom: 1px solid var(--line-soft);
}

.content-header h2 {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
}

.content-body {
    color: #cbcbda;
    line-height: 1.8;
    font-size: 1rem;
}

.content-side h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffe1e4;
}

.content-side a {
    display: block;
    border: 1px solid var(--line-soft);
    padding: 0.5rem 0.56rem;
    margin-bottom: 0.45rem;
    color: #dfdfee;
}

.content-side a:hover {
    border-color: #90323b;
    background: rgba(160, 25, 36, 0.12);
}

.updates-list {
    display: grid;
    gap: 0.6rem;
    padding: 0.95rem 0 1.4rem;
}

.update-row {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 0.92rem 1rem;
}

.update-row h2 {
    margin: 0.2rem 0 0.35rem;
    font-size: 1.22rem;
}

.update-row p {
    margin: 0 0 0.5rem;
    color: var(--muted);
}

.row-content {
    margin-top: 0.2rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--line-soft);
    color: #d2d2de;
    line-height: 1.67;
}

.admin-layout {
    padding: 0.95rem 0 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1.4fr 1.4fr;
    gap: 0.65rem;
}

.admin-panel {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 0.9rem;
}

.admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.6rem;
}

.admin-links {
    display: grid;
    gap: 0.35rem;
}

.admin-links a {
    border: 1px solid var(--line-soft);
    background: var(--surface-2);
    padding: 0.47rem 0.55rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.admin-links a:hover {
    border-color: #94323c;
    background: rgba(160, 25, 36, 0.16);
    color: #fff;
}

.admin-login-wrap {
    max-width: 560px;
    margin-inline: auto;
    padding: 1.2rem 0;
}

.admin-form {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 0.95rem;
}

.form-grid {
    display: grid;
    gap: 0.45rem;
}

label {
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: #fff;
    padding: 0.55rem 0.6rem;
    font: inherit;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #96313b;
    box-shadow: 0 0 0 1px rgba(160, 25, 36, 0.3) inset;
    outline: none;
}

.flash-wrap {
    margin-top: 0.5rem;
    display: grid;
    gap: 0.4rem;
}

.flash {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 0.52rem 0.62rem;
}

.flash-success {
    border-color: #2e5f41;
}

.flash-error {
    border-color: #7e2b35;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--line);
    background: var(--surface);
}

th,
td {
    padding: 0.52rem 0.5rem;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
}

th {
    color: #d8d8e4;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.muted {
    color: var(--muted);
}

.panel {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 0.9rem;
}

.site-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--line);
    background: #09090f;
    margin-top: auto;
}

.footer-inner {
    padding: 0.82rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #9494a6;
    font-size: 0.86rem;
}

@media (max-width: 1100px) {
    .feature-grid,
    .update-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .signal-strip {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: 40px;
        right: 3vw;
        width: min(340px, 93vw);
        border: 1px solid var(--line);
        background: rgba(8, 8, 12, 0.98);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 0.7rem;
    }

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

    .feature-grid,
    .update-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.45rem;
    }
}
