:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #f5f7fa;
  background: #0b1118;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, #293d5a 0, transparent 32%),
    radial-gradient(circle at 90% 10%, #273c45 0, transparent 30%),
    #0b1118;
}
a { color: inherit; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.dash-shell { display: flex; min-height: 100vh; }

.dash-sidebar {
  width: 236px;
  flex-shrink: 0;
  padding: 22px 16px;
  border-right: 1px solid #344155;
  background: rgba(8, 13, 20, .7);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.dash-brand { color: #f2b544; text-decoration: none; font-size: 1.15rem; font-weight: 900; padding: 0 8px; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #c7d0dd;
  font-size: .92rem;
  font-weight: 600;
}
.dash-nav a:hover { background: rgba(255,255,255,.05); }
.dash-nav a.active { background: #f2b544; color: #14100a; }
.dash-account { padding: 10px 8px; font-size: .78rem; color: #8b98ab; border-top: 1px solid #344155; padding-top: 14px; }
.dash-account strong { display: block; color: #f5f7fa; font-size: .88rem; margin-bottom: 2px; }
.dash-logout {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #344155;
  background: transparent;
  color: #f5f7fa;
  cursor: pointer;
  text-align: left;
}
.dash-logout:hover { background: rgba(255,255,255,.05); }

.dash-main { flex: 1; min-width: 0; padding: 28px min(4vw, 48px) 60px; }
.dash-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.dash-header h1 { margin: 0; font-size: 1.5rem; }
.dash-header p { margin: 4px 0 0; color: #8b98ab; font-size: .9rem; }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.dash-card {
  background: rgba(255,255,255,.03);
  border: 1px solid #344155;
  border-radius: 14px;
  padding: 18px;
}
.dash-card h2, .dash-card h3 { margin-top: 0; }
.dash-card + .dash-card { margin-top: 16px; }

.tile { display: flex; flex-direction: column; gap: 8px; }
.tile-top { display: flex; justify-content: space-between; align-items: center; }
.tile-title { font-weight: 800; font-size: 1.02rem; }
.tile-sub { color: #8b98ab; font-size: .84rem; }
.tile-cta { margin-top: 6px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.badge-active { background: rgba(80, 200, 120, .18); color: #6adf9b; }
.badge-pending { background: rgba(242, 181, 68, .18); color: #f2b544; }
.badge-not { background: rgba(255,255,255,.08); color: #8b98ab; }
.badge-warn { background: rgba(230, 90, 90, .18); color: #ff9b9b; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card { background: rgba(255,255,255,.03); border: 1px solid #344155; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat-card strong { font-size: 1.3rem; }
.stat-card span { color: #8b98ab; font-size: .78rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  border: none;
  background: #f2b544;
  color: #14100a;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: .88rem;
}
.button.secondary { background: transparent; color: #f5f7fa; border: 1px solid #344155; }
.button.danger { background: transparent; color: #ff9b9b; border: 1px solid #5a3030; }
.button:disabled { opacity: .5; cursor: default; }

label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: #c7d0dd; margin-bottom: 10px; }
input, select, textarea {
  background: #0f1620;
  border: 1px solid #344155;
  border-radius: 8px;
  color: #f5f7fa;
  padding: 8px 10px;
}
textarea { resize: vertical; min-height: 70px; }
input[type="checkbox"] { width: auto; }
.checkbox-row { flex-direction: row; align-items: center; gap: 8px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid #344155; }
.tab-btn {
  padding: 9px 14px;
  border: none;
  background: transparent;
  color: #8b98ab;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-size: .88rem;
}
.tab-btn.active { color: #f2b544; border-bottom-color: #f2b544; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #23303f; }
th { color: #8b98ab; font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; }

.status-msg { font-size: .84rem; color: #8b98ab; min-height: 1.1em; }
.status-msg.error { color: #ff9b9b; }
.status-msg.ok { color: #6adf9b; }

.empty-state { color: #8b98ab; font-size: .88rem; padding: 20px 0; text-align: center; }

.business-card { border: 1px solid #344155; border-radius: 12px; padding: 16px; margin-bottom: 14px; background: rgba(255,255,255,.02); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 14px; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; background: rgba(255,255,255,.03); border: 1px solid #344155; border-radius: 16px; padding: 32px; }
.login-card h1 { color: #f2b544; margin: 0 0 6px; font-size: 1.3rem; }
.login-card p.lead { color: #8b98ab; margin: 0 0 24px; font-size: .88rem; }

@media (max-width: 820px) {
  .dash-shell { flex-direction: column; }
  .dash-sidebar { width: auto; flex-direction: row; overflow-x: auto; align-items: center; }
  .dash-nav { flex-direction: row; }
  .dash-account, .dash-brand { display: none; }
}
