/* DealHut BD Dashboards — matte black + champagne gold, Inter */
:root {
    --bg: #0a0c0a;
    --surface: #131511;
    --surface-2: #1a1c17;
    --border: #2a2c24;
    --gold: #d4af37;
    --gold-dim: #a8892c;
    --text: #ece9df;
    --muted: #9a978a;
    --pos: #7bc47f;
    --neg: #e07856;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* header */
.top { border-bottom: 1px solid var(--border); background: var(--surface); }
.top-in { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.brand { font-weight: 800; letter-spacing: 1.5px; color: var(--text); font-size: 18px; }
.brand span { color: var(--gold); }
.brand.center { text-align: center; display: block; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); padding: 6px 10px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.active { color: var(--gold); background: var(--surface-2); }

.page-title { font-size: 24px; margin: 22px 0 4px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }

/* cards + panels */
.stat-grid, .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 16px 0; }
.stat-card, .panel, .big-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}
.stat-card { display: flex; flex-direction: column; gap: 4px; }
.stat-label { color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.stat-value { font-size: 26px; font-weight: 800; }
.stat-sub { color: var(--muted); font-size: 13px; }
.big-card { display: block; color: var(--text); }
.big-card:hover { text-decoration: none; border-color: var(--gold-dim); }
.big-card h2 { margin: 0 0 4px; font-size: 19px; }
.big-num { font-size: 30px; font-weight: 800; margin: 10px 0 2px; }
.panel { margin: 16px 0; }
.panel h2 { margin: 0 0 12px; font-size: 17px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.inline-h { display: inline; font-size: 17px; }
details summary { cursor: pointer; }

/* tables */
.table-scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid #1e201a; vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.total-row td { font-weight: 700; border-top: 2px solid var(--border); }
.bar-cell { width: 22%; min-width: 90px; }
.mini-bar { display: block; height: 10px; border-radius: 5px; min-width: 3px; }
.mini-bar.up { background: var(--pos); }
.mini-bar.down { background: var(--neg); }

/* target bar */
.bar-track { background: var(--surface-2); border-radius: 8px; height: 14px; overflow: hidden; margin-top: 6px; }
.bar-fill { background: linear-gradient(90deg, var(--gold-dim), var(--gold)); height: 100%; border-radius: 8px; }

.decision { margin: 6px 0; }

/* forms */
.inline-form select {
    background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
    border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 14px;
}
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 12px; }
.login-card h1 { font-size: 20px; margin: 6px 0 0; text-align: center; }
.login-card .muted { text-align: center; margin: 0; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.login-card input {
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
    color: var(--text); padding: 11px 12px; font: inherit;
}
.btn {
    background: var(--gold); color: #141310; border: none; border-radius: 10px;
    padding: 12px; font: inherit; font-weight: 700; cursor: pointer; margin-top: 4px;
}
.btn:hover { background: #e3c04a; }
.error { background: #3a1f18; border: 1px solid #6e3524; color: #f0b09c; border-radius: 10px; padding: 10px 12px; margin: 0; font-size: 14px; }

.foot { border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; padding: 18px 0 26px; margin-top: 26px; }

.thumb { width: 34px; height: 34px; object-fit: cover; border-radius: 8px; vertical-align: middle; margin-right: 8px; }
.section-title { font-size: 20px; margin: 20px 0 12px; color: var(--text); }
