* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #121212 0%, #0a0d14 100%);
    color: #f5f5f5;
}
a { color: #f8d84d; text-decoration: none; }
input, select, textarea, button { font: inherit; }
.shell { width: min(1200px, calc(100vw - 32px)); margin: 0 auto; padding: 24px 0 48px; }
.topbar, .page-head, .section-head, .actions, .nav, .triangle-row { display: flex; gap: 16px; }
.topbar, .page-head, .section-head { justify-content: space-between; align-items: center; }
.topbar { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand { font-size: 28px; font-weight: 700; color: white; }
.nav { align-items: center; flex-wrap: wrap; }
.card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 24px; margin-bottom: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; }
.hero h1, .page-head h1 { margin: 8px 0; font-size: clamp(32px, 6vw, 54px); line-height: 1.05; }
.lead { color: #c9cbd2; font-size: 18px; max-width: 700px; }
.hero-grid, .stats-grid, .grid.two, .two-layout { display: grid; gap: 16px; }
.hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.two-layout { grid-template-columns: 1.2fr .8fr; gap: 24px; }
.stat, .stat-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 16px; }
.stat span, .stat-card span, .muted { color: #aeb3c0; }
.stat strong, .stat-card strong { display: block; margin-top: 6px; font-size: 20px; }
.auth-wrap { display: flex; justify-content: center; }
.form-card { width: min(780px, 100%); }
.form-card:not(.wide) { width: min(460px, 100%); }
.stack-form, .inline-form, form { display: flex; flex-direction: column; gap: 12px; }
.inline-form { display: inline-flex; }
label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
input, select, textarea { width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); padding: 12px 14px; background: rgba(0,0,0,.25); color: white; }
button, .button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border-radius: 999px; border: none; background: #f8d84d; color: #161616; font-weight: 700; cursor: pointer; }
.button.small, .button.tiny { padding: 8px 12px; font-size: 12px; }
.button.ghost, .link-button { background: transparent; color: white; border: 1px solid rgba(255,255,255,.2); }
.button.danger { background: #ff5d5d; color: white; }
.link-button { border-radius: 999px; padding: 10px 14px; }
.flash { border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.flash.success { background: rgba(42, 175, 91, .18); border: 1px solid rgba(42, 175, 91, .4); }
.flash.error { background: rgba(255, 93, 93, .18); border: 1px solid rgba(255, 93, 93, .4); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: #f8d84d; margin: 0; }
.triangle-row { justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.triangle-slot { width: 120px; min-height: 110px; border-radius: 16px; padding: 12px; border: 1px dashed rgba(255,255,255,.14); background: rgba(0,0,0,.2); text-align: center; }
.triangle-slot.self { border-style: solid; border-color: rgba(248, 216, 77, .8); background: rgba(248, 216, 77, .16); }
.triangle-slot form { margin-top: 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; }
.money { font-size: 40px; font-weight: 800; margin: 6px 0 12px; }
.status-pill { display: inline-flex; padding: 8px 12px; border-radius: 999px; font-weight: 700; margin-bottom: 10px; }
.status-pill.pending { background: rgba(255, 193, 7, .16); color: #ffcb45; }
.status-pill.processing { background: rgba(51, 154, 240, .16); color: #71bcff; }
.status-pill.completed { background: rgba(42, 175, 91, .16); color: #65e293; }
.status-pill.rejected, .status-pill.not_received { background: rgba(255, 93, 93, .16); color: #ff8b8b; }
.board-shell { width: min(520px, 100%); margin: 0 auto; }
.checkbox-row { flex-direction: row; align-items: center; }
.hidden { display: none !important; }
hr { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 16px 0; }
@media (max-width: 900px) {
    .hero, .two-layout, .stats-grid, .hero-grid, .grid.two { grid-template-columns: 1fr; }
    .topbar, .page-head { flex-direction: column; align-items: flex-start; }
    .shell { width: min(100vw - 24px, 1200px); }
}
