:root {
    color-scheme: dark;
    --bg: #090b0f;
    --panel: #111722;
    --panel-2: #171e2a;
    --border: #5d4727;
    --gold: #e5bd63;
    --gold-soft: #f6df9e;
    --text: #eee7d8;
    --muted: #a9a08f;
    --danger: #ffabab;
    --success: #9ee3bd;
    --info: #a9d6ff;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(91, 67, 32, .18), transparent 38rem),
        linear-gradient(180deg, #0d1118, var(--bg));
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}
a { color: var(--gold-soft); }
a:hover { color: #fff2bd; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(229, 189, 99, .28);
    background: rgba(8, 10, 14, .95);
    backdrop-filter: blur(12px);
}
.header-inner, .page-shell, .footer-inner {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}
.brand {
    color: var(--gold-soft);
    text-decoration: none;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .04em;
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.nav a, .nav button {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #ddd4c1;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
}
.nav a:hover, .nav button:hover { border-color: rgba(229, 189, 99, .34); background: rgba(229, 189, 99, .08); }
.page-shell { padding: 30px 0 50px; }
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 22px;
    align-items: center;
    min-height: 420px;
}
.hero-copy h1, .page-title {
    margin: 0 0 14px;
    color: var(--gold-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 6vw, 58px);
    line-height: 1.04;
}
.page-title { font-size: clamp(28px, 5vw, 42px); }
.hero-copy p { max-width: 720px; color: #cbc1ae; font-size: 18px; }
.hero-panel, .card {
    border: 1px solid rgba(147, 105, 48, .58);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(20, 27, 38, .95), rgba(11, 15, 22, .98));
    box-shadow: inset 0 1px rgba(255, 239, 190, .05), 0 18px 50px rgba(0,0,0,.2);
}
.hero-panel, .card-body { padding: 20px; }
.card { overflow: hidden; }
.card + .card { margin-top: 18px; }
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 17px;
    border-bottom: 1px solid rgba(229, 189, 99, .28);
    background: rgba(113, 72, 24, .22);
}
.card-header h2, .card-header h3 { margin: 0; color: var(--gold-soft); font-family: Georgia, "Times New Roman", serif; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.metric { padding: 15px; border: 1px solid rgba(147,105,48,.42); border-radius: 8px; background: rgba(0,0,0,.18); }
.metric span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.metric strong { display: block; margin-top: 5px; color: #fff0c0; font-size: 24px; }
.button, button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid #936c30;
    border-radius: 6px;
    color: #16110a;
    background: linear-gradient(180deg, #f2cf78, #c99940);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.button:hover { filter: brightness(1.08); color: #100b05; }
.button.secondary { color: var(--text); background: #1b2634; border-color: #4c5d72; }
.button.danger { color: #fff; background: #6a2227; border-color: #a64b51; }
.button.small { min-height: 34px; padding: 5px 10px; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
form.inline { display: inline; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { color: #ddd2bd; font-weight: 700; }
input, select, textarea {
    width: 100%;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid #465162;
    border-radius: 6px;
    color: var(--text);
    background: #0b1017;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(229,189,99,.55); outline-offset: 1px; }
input[type="checkbox"] { width: auto; }
.help { color: var(--muted); font-size: 13px; }
.alert { margin-bottom: 14px; padding: 12px 14px; border: 1px solid; border-radius: 7px; }
.alert.error { color: var(--danger); border-color: rgba(255,120,120,.4); background: rgba(111,22,27,.25); }
.alert.success { color: var(--success); border-color: rgba(80,200,140,.4); background: rgba(20,90,59,.25); }
.alert.info { color: var(--info); border-color: rgba(100,170,230,.4); background: rgba(24,71,110,.25); }
.status {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 8px;
    border: 1px solid #536172;
    border-radius: 999px;
    color: #d9e3ef;
    background: rgba(66,83,104,.25);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.status.active, .status.approved, .status.paid { color: var(--success); border-color: rgba(80,200,140,.45); }
.status.rejected, .status.suspended, .status.cancelled, .status.refunded { color: var(--danger); border-color: rgba(255,120,120,.45); }
.status.pending_review, .status.pending, .status.pending_payment, .status.overdue, .status.draft { color: #ffe1a2; border-color: rgba(229,189,99,.5); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 9px; border-bottom: 1px solid rgba(147,105,48,.26); text-align: left; vertical-align: top; }
th { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.banner-preview { display: block; margin-top: 8px; border: 1px solid #49391f; border-radius: 6px; background: #080b0f; }
.banner-preview img { display: block; width: 100%; height: auto; border-radius: 5px; }
.spec-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.spec-list li { padding: 10px 12px; border-left: 3px solid #9b7334; background: rgba(0,0,0,.16); }
.kicker { color: var(--gold); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.muted { color: var(--muted); }
.site-footer { border-top: 1px solid rgba(229,189,99,.22); background: #07090c; }
.footer-inner { padding: 24px 0; color: var(--muted); font-size: 13px; }
.empty { padding: 24px; border: 1px dashed #5b4b32; border-radius: 8px; color: var(--muted); text-align: center; }
.preview-domain { margin-top: 6px; color: var(--muted); font-size: 12px; }
.progress { height: 10px; overflow: hidden; border-radius: 999px; background: #080b10; border: 1px solid #3d4652; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg,#a7742d,#efd078); }
code { color: #f4d991; }
@media (max-width: 850px) {
    .hero, .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field.full { grid-column: auto; }
    .header-inner { align-items: flex-start; padding: 10px 0; flex-direction: column; }
}
@media (max-width: 520px) {
    .page-shell, .header-inner, .footer-inner { width: min(100% - 18px, 1180px); }
    .metrics { grid-template-columns: 1fr; }
    .nav { width: 100%; }
    .nav a, .nav button { flex: 1 1 auto; }
    .hero { min-height: 0; }
}
.progress-native {
    display: block;
    width: 100%;
    height: 12px;
    margin-top: 6px;
    accent-color: #d7ad55;
}

/* 2026-07-31 SMTP / verification patch */
body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}
.page-shell { flex: 1 0 auto; }
.site-footer { flex: 0 0 auto; }
.auth-card { width: min(720px, 100%); margin: 0 auto; }
@media (min-width: 1200px) {
    .hero-copy h1 { font-size: 54px; }
}
