* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0b0e;
  color: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.nav {
  padding: 14px 24px;
  border-bottom: 1px solid #1e2129;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.brand { font-weight: 800; font-size: 16px; letter-spacing: 1px; }
.brand span { color: #c9a96e; }
.nav-tabs { display: flex; gap: 6px; }
.nav-tab { color: #8a8d96; text-decoration: none; font-size: 13px; padding: 7px 13px; border-radius: 7px; }
.nav-tab.active { background: rgba(201, 169, 110, .1); color: #c9a96e; }
.nav-tab:hover { color: #c9a96e; }

.container { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }

.page-head { margin-bottom: 22px; }
.page-kicker { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: #c9a96e; margin-bottom: 6px; }
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.page-sub { color: #a8acb6; font-size: 14px; margin-top: 6px; max-width: 700px; }

.card {
  background: #12141a;
  border: 1px solid #1e2129;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
}

.label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8a8d96;
  margin-bottom: 8px;
  display: block;
}

input[type="text"], input[type="number"], input[type="date"], input[type="email"], select, textarea {
  width: 100%;
  background: #0a0b0e;
  border: 1px solid #2a2e38;
  color: #fff;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #c9a96e; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23c9a96e' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 700px) { .row, .row-3, .row-4 { grid-template-columns: 1fr; } }

.field { margin-bottom: 12px; }
.field:last-child { margin-bottom: 0; }
.hint { font-size: 12px; color: #6a6e76; margin-top: 5px; }

.btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.btn-primary { background: linear-gradient(135deg, #c9a96e, #d4845a); color: #0a0b0e; }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-ghost { background: transparent; border: 1px solid #2a2e38; color: #fff; }
.btn-mini { background: #12141a; border: 1px solid #2a2e38; color: #fff; border-radius: 7px; padding: 7px 11px; font-size: 12px; cursor: pointer; }
.btn-mini:hover { border-color: #c9a96e; }

.badge { padding: 3px 9px; border-radius: 6px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: inline-block; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { background: #12141a; border: 1px solid #1e2129; border-radius: 12px; padding: 14px 16px; }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #8a8d96; margin-bottom: 6px; }
.stat-value { font-size: 24px; font-weight: 800; }
.stat-value.ok { color: #00d4aa; }
.stat-value.alert { color: #d4845a; }
.stat-value.danger { color: #b8341a; }
.stat-sub { font-size: 11px; color: #8a8d96; margin-top: 2px; }

table { width: 100%; border-collapse: collapse; background: #12141a; border-radius: 12px; overflow: hidden; }
th, td { padding: 10px 12px; text-align: left; font-size: 13px; border-bottom: 1px solid #1e2129; }
th { background: #0a0b0e; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #8a8d96; }
tr:hover { background: #161821; }
td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.diff-positive { color: #00d4aa; }
.diff-negative { color: #d4845a; }
.diff-zero { color: #8a8d96; }

.gate { max-width: 360px; margin: 100px auto; background: #12141a; border: 1px solid #1e2129; border-radius: 16px; padding: 30px; text-align: center; }

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #00d4aa;
  color: #0a0b0e;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 50;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; }
.toast.error { background: #d4845a; color: #fff; }

.drop-zone {
  border: 2px dashed #2a2e38;
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.drop-zone.over { border-color: #c9a96e; background: rgba(201, 169, 110, .05); }
.drop-zone .ic { font-size: 32px; margin-bottom: 8px; }
.drop-zone .t { font-size: 14px; font-weight: 600; }
.drop-zone .sub { font-size: 12px; color: #8a8d96; margin-top: 4px; }

.empty { padding: 60px 20px; text-align: center; color: #8a8d96; background: #12141a; border-radius: 12px; }
