:root {
  --gold: #e7a31d;
  --gold-dark: #c9850b;
  --charcoal: #111417;
  --slate: #1c2229;
  --slate-2: #252d36;
  --light: #f5f7fa;
  --muted: #b4bcc7;
  --danger: #b53a3a;
  --success: #2c8f50;
  --shadow: 0 14px 40px rgba(0,0,0,.18);
  --radius: 18px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #0c0f12 0%, #12171d 100%);
  color: var(--light);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10,12,15,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 78px; height: auto; object-fit: contain; }
.brand-text strong { display:block; font-size:1.1rem; }
.brand-text span { color: var(--muted); font-size:.92rem; }
.button, button, .button-link {
  appearance: none; border: 0; cursor: pointer;
  background: var(--gold); color: #111;
  padding: 12px 16px; border-radius: 12px; font-weight: 700;
}
.button.secondary, .button-link.secondary { background: #2b333d; color: var(--light); }
.button.danger { background: var(--danger); color: white; }
.button.success { background: var(--success); color: white; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.hero { padding: 42px 0 18px; }
.hero h1 { margin: 0 0 10px; font-size: clamp(1.9rem, 4vw, 3rem); }
.hero p { margin: 0; color: var(--muted); max-width: 740px; }
.flash-wrap { margin: 18px 0; display: grid; gap: 12px; }
.flash {
  padding: 14px 16px; border-radius: 14px; font-weight: 700;
  border: 1px solid rgba(255,255,255,.08);
}
.flash.success { background: rgba(44,143,80,.16); color: #c6f3d5; }
.flash.error { background: rgba(181,58,58,.16); color: #ffd3d3; }
.flash.info { background: rgba(231,163,29,.13); color: #ffe5a8; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.login-card { width: min(520px, 100%); }
.login-card .logo { width: 180px; display: block; margin: 0 auto 18px; }
.login-card h1 { text-align: center; margin: 0 0 6px; }
.login-card p { text-align: center; color: var(--muted); margin: 0 0 24px; }
label { display:block; font-size:.92rem; font-weight: 700; margin-bottom: 8px; }
input, select, textarea {
  width: 100%; background: #0f1419; color: var(--light); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 13px 14px; margin-bottom: 14px;
}
textarea { min-height: 110px; resize: vertical; }
.small { font-size: .9rem; color: var(--muted); }
.section-title { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:14px; }
.section-title h2, .section-title h3 { margin: 0; }
.stats { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.stat { padding:18px; border-radius:16px; background:#171d24; border:1px solid rgba(255,255,255,.08); }
.stat .value { font-size: 2rem; font-weight: 800; margin-top: 8px; }
.toolbar { display:flex; flex-wrap:wrap; gap:12px; }
.client-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.client-card { padding:20px; border-radius:18px; background:#151b22; border:1px solid rgba(255,255,255,.08); }
.client-card h3 { margin:0 0 6px; }
.client-meta { color: var(--muted); font-size:.92rem; display:grid; gap: 6px; margin-bottom:16px; }
.search-input { max-width: 360px; }
.actions { display:flex; flex-wrap: wrap; gap: 10px; }
.dropzone {
  border: 2px dashed rgba(231,163,29,.5); border-radius: 16px; padding: 24px;
  text-align:center; background: rgba(231,163,29,.05);
}
.dropzone.dragover { background: rgba(231,163,29,.12); border-color: var(--gold); }
.file-table { width:100%; border-collapse: collapse; }
.file-table th, .file-table td { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.08); text-align:left; }
.file-table th { color: var(--muted); font-size: .9rem; }
.badge { display:inline-block; padding:6px 10px; border-radius:999px; background:#2a313a; font-size:.82rem; color:#d3d8df; }
.tabs { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.tab-link { padding:10px 14px; border-radius:999px; background:#202832; }
.tab-link.active { background: var(--gold); color:#111; }
.log-box {
  background: #0e1318; border-radius: 16px; padding: 16px; max-height: 340px;
  overflow:auto; border:1px solid rgba(255,255,255,.08); font-family: monospace; white-space: pre-wrap;
}
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--gold); font-weight: 700; }
.footer-note { padding: 24px 0 40px; color: var(--muted); text-align:center; }
@media (max-width: 980px) {
  .grid-2, .grid-3, .client-grid, .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .client-grid, .stats { grid-template-columns: 1fr; }
  .topbar-inner, .section-title { align-items:flex-start; flex-direction:column; }
  .brand img { width: 64px; }
  .hero { padding-top: 26px; }
  .container { width: min(100% - 20px, 1180px); }
  .button, button, .button-link { width: 100%; text-align:center; }
  .actions .button, .actions .button-link { width:auto; }
  .toolbar { flex-direction: column; }
}

.status-list { display:grid; gap:12px; }
.status-item {
  background:#151b22; border:1px solid rgba(255,255,255,.08);
  border-radius:16px; padding:16px;
}
.status-head {
  display:flex; align-items:flex-start; justify-content:space-between; gap:14px;
  margin-bottom:8px;
}
.code-input { font-family: monospace; }
@media (max-width: 900px) {
  .status-head { flex-direction:column; }
}
