:root {
    --bg: #080808;
    --panel: #111111;
    --panel-2: #171717;
    --line: rgba(255,255,255,.08);
    --text: #f6f6f6;
    --muted: #c2c2c2;
    --gold: #d9aa32;
    --gold-2: #ffd86a;
    --red: #b80f16;
    --red-2: #7f0a0f;
    --white: #ffffff;
    --green: #24c16b;
    --blue: #3f80ff;
    --orange: #ffb12b;
    --danger: #ff5e5e;
    --shadow: 0 18px 40px rgba(0, 0, 0, .35);
    --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; background: radial-gradient(circle at top, #1a0304 0, var(--bg) 35%); color: var(--text); }
a { color: inherit; text-decoration: none; }
code { color: var(--gold-2); }
.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(1180px, calc(100% - 32px)); margin: 28px auto 40px; }
.topbar { width: min(1180px, calc(100% - 32px)); margin: 18px auto 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 18px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 54px; height: 54px; object-fit: contain; border-radius: 14px; background: #000; }
.brand strong { display: block; font-size: 1.1rem; }
.brand span { display: block; color: var(--muted); font-size: .85rem; }
.topnav { display: flex; gap: 14px; flex-wrap: wrap; }
.topnav a { padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.hero-card, .panel, .subpanel { background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-card { padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hero-card h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.subtitle { margin: 0; color: var(--muted); line-height: 1.55; }
.hero-badge { min-width: 220px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(217,170,50,.17), rgba(184,15,22,.18)); border: 1px solid rgba(217,170,50,.25); text-align: right; }
.hero-badge span { display: block; color: var(--muted); margin-bottom: 8px; }
.hero-badge strong { font-size: 1.1rem; color: var(--gold-2); }
.panel { padding: 22px; }
.panel h2, .subpanel h3 { margin-top: 0; }
.subpanel { padding: 18px; }
.grid { display: grid; gap: 20px; }
.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.narrow { max-width: 460px; margin-inline: auto; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.stack-form, .stack-form label, .subpanel label { display: flex; flex-direction: column; gap: 8px; }
.stack-form { gap: 16px; }
.inline-form { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: #0f0f0f; color: var(--white); padding: 13px 14px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: rgba(217,170,50,.55); box-shadow: 0 0 0 3px rgba(217,170,50,.12); }
.checkbox-row { display: flex; flex-direction: row !important; align-items: center; gap: 10px; }
.checkbox-row input { width: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border: 0; border-radius: 12px; cursor: pointer; text-align: center; }
.btn-primary { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #151515; font-weight: 700; }
.btn-secondary { background: linear-gradient(135deg, #bfc4cf, #f8f8f8); color: #161616; font-weight: 700; }
.btn-danger { background: linear-gradient(135deg, #ff6a6a, #b80f16); color: #fff; font-weight: 700; }
.btn-block { width: 100%; }
.btn-small { padding: 8px 10px; font-size: .86rem; }
.button-row, .table-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.flash, .notice { padding: 14px 16px; border-radius: 14px; border: 1px solid transparent; }
.flash-success, .notice.success { background: rgba(36,193,107,.12); border-color: rgba(36,193,107,.35); }
.flash-error, .notice.danger { background: rgba(255,94,94,.12); border-color: rgba(255,94,94,.35); }
.notice.warning { background: rgba(255,177,43,.12); border-color: rgba(255,177,43,.35); }
.notice.info { background: rgba(63,128,255,.12); border-color: rgba(63,128,255,.35); }
.steps { display: grid; gap: 14px; }
.steps div { display: flex; gap: 14px; align-items: flex-start; }
.steps span { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 999px; display: grid; place-items: center; background: linear-gradient(135deg, var(--red), var(--gold)); font-weight: 700; }
.steps p { margin: 0; line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.stats-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 16px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.stat span { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.stat strong { font-size: 1rem; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
th { color: var(--gold-2); font-weight: 700; }
.footer { width: min(1180px, calc(100% - 32px)); margin: auto auto 24px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .9rem; }
.code-block { padding: 14px 16px; border-radius: 14px; background: #0b0b0b; border: 1px solid var(--line); line-height: 1.7; overflow: auto; }
@media (max-width: 900px) {
    .two-cols, .stats-grid, .stats-grid.compact { grid-template-columns: 1fr; }
    .hero-card, .topbar, .footer { flex-direction: column; align-items: stretch; }
    .hero-badge { text-align: left; min-width: 0; }
}
