* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f6f8;
  color: #111827;
}

nav {
  height: 56px;
  background: #09090b;
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.nav-logo {
  color: white;
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  margin-right: 8px;
}

.nav-logo:hover {
  color: white;
}
.status-strip {
  height: 44px;
  background: linear-gradient(90deg, #0f172a, #111827);
  color: #e5e7eb;
  border-top: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}
.status-warning {
  color: #d97706;
}
nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

nav a:hover {
  color: white;
}

nav b {
  font-size: 17px;
  margin-right: 8px;
}

nav form {
  margin-left: auto;
}
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-inner,
.status-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.status-inner-right {
  justify-content: flex-end;
}

.nav-inner {
  gap: 24px;
  padding: 0 28px;
}

.status-inner {
  gap: 10px;
  padding: 0 28px;
}

.status-brand {
  font-weight: 800;
  margin-right: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.status-pill.live {
  background: rgba(34,197,94,0.18);
  color: #86efac;
}

.status-pill.danger {
  background: rgba(239,68,68,0.18);
  color: #fca5a5;
}
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 28px 60px;
}

h1 {
  font-size: 34px;
  margin: 0 0 22px;
  letter-spacing: -0.04em;
}

h2 {
  font-size: 22px;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
  padding: 24px;
  margin-bottom: 26px;
}
.card h2 {
  margin-bottom: 18px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;   /* <-- ADD THIS */

}
.section-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 20px 0;
}

.metric-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.metric-label {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.metric-sub {
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
}

.status-live {
  color: #16a34a;
}

.status-danger {
  color: #dc2626;
}
.status-muted {
  color: #6b7280;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top:16px;
}
.account-grid-secondary {
  margin-top: 18px;
}

.account-box.soft {
  background: #fbfbfc;
}

.chart-box {
  position: relative;
  height: 260px;
  width: 100%;
}
.account-box {
  padding: 18px 20px;
  background: #f9fafb;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}

.account-box span {
  display: block;
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 6px;
}

.account-box strong {
  font-size: 21px;
}

button {
  background: #09090b;
  color: white;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

button:hover {
  background: #27272a;
}

button.secondary {
  background: #f3f4f6;
  color: #111827;
  padding: 8px 12px;

}

button.danger {
  background: #dc2626;
padding: 8px 12px;
  font-size: 13px;
}

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  background: #f3f4f6;
  color: #374151;
}

.badge-live {
  background: #dcfce7;
  color: #166534;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  color: #6b7280;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 10px;
  border-bottom: 1px solid #e5e7eb;
}

td {
  padding: 15px 10px;
  border-bottom: 1px solid #edf0f3;
  font-size: 14px;
}

tr:hover td {
  background: #fafafa;
}

.best-row td {
  background: #ecfdf5 !important;
  font-weight: 700;
}

.small {
  color: #6b7280;
  font-size: 13px;
}

input, select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  margin: 6px 0 14px;
}

label {
  font-weight: 700;
  font-size: 13px;
  color: #374151;
}

@media (max-width: 900px) {
  .grid-4,
  .account-grid {
    grid-template-columns: 1fr 1fr;
  }

  .container {
    padding: 24px 16px;
  }
}

@media (max-width: 600px) {
  .grid-4,
  .account-grid {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 12px;
  }
}
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.chart-card canvas {
  max-height: 260px;
}

.chart-card {
  min-height: 360px;
}

@media (max-width: 1000px) {
  .chart-grid {
    grid-template-columns: 1fr;
  }
}
