:root {
  --bg: #0d1423;
  --panel: #121c2d;
  --panel-2: #172337;
  --text: #eef4ff;
  --muted: #9aa9c3;
  --line: rgba(255,255,255,.10);
  --gold: #e2b84b;
  --gold-soft: rgba(226,184,75,.14);
  --danger: #ff6b6b;
  --success: #6ee7b7;
  --shadow: 0 16px 45px rgba(0,0,0,.24);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #22314c 0, #0d1423 42%, #080c15 100%);
}
.app-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 10px auto 24px;
}
.hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  background: linear-gradient(135deg, #111b2c 0%, #17243a 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  padding: 6px;
  flex: 0 0 auto;
}
.brand-copy { min-width: 0; }
h1 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: .6px;
}
.developer-line,
.phone-line,
.muted {
  margin: 6px 0 0;
  font-size: .95rem;
  color: var(--muted);
}
.developer-line { color: #d9e6ff; font-weight: 600; }
.phone-line { color: var(--gold); font-weight: 700; }
.primary-btn {
  border: 0;
  border-radius: 15px;
  padding: 12px 20px;
  color: #1a1303;
  background: linear-gradient(180deg, #f0ca61, #d7a936);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(226,184,75,.24);
  white-space: nowrap;
}
.primary-btn:hover { filter: brightness(1.04); }
.state-panel {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  color: var(--muted);
}
.state-panel.error { color: #ffd7d7; background: rgba(255,107,107,.12); border-color: rgba(255,107,107,.35); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.metric-card,
.panel {
  background: rgba(18,28,45,.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.metric-card {
  padding: 18px;
  min-height: 110px;
}
.metric-label {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 10px;
}
.metric-value {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 900;
}
.metric-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: .82rem;
}
.content-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 14px;
  margin-top: 14px;
}
.panel { padding: 18px; overflow: hidden; }
.panel.wide { grid-row: span 2; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
h2 { margin: 0; font-size: 1.05rem; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--gold);
  background: var(--gold-soft);
  font-weight: 800;
  font-size: .82rem;
}
.pill.warn { color: #ffd6d6; background: rgba(255,107,107,.14); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
.compact-table { min-width: 360px; }
th, td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: .9rem;
}
th { color: var(--muted); font-weight: 800; }
td { color: #edf4ff; }
.status-completed { color: var(--success); font-weight: 800; }
.status-cancelled { color: var(--danger); font-weight: 800; }
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.mini-item {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
}
.mini-label { color: var(--muted); font-size: .78rem; }
.mini-value { margin-top: 5px; font-weight: 900; font-size: 1.05rem; }
.list { display: grid; gap: 10px; }
.list-item {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
}
.list-title { font-weight: 850; margin-bottom: 5px; }
.list-meta { color: var(--muted); font-size: .82rem; }
.footer-note {
  margin-top: 18px;
  padding: 18px 8px;
  color: var(--muted);
  text-align: center;
  font-size: .92rem;
}
.empty { color: var(--muted); padding: 12px 0; }
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .panel.wide { grid-row: auto; }
}
@media (max-width: 620px) {
  .app-shell { width: min(100% - 16px, 1180px); margin-top: 8px; }
  .hero-card { align-items: flex-start; padding: 18px; }
  .brand-row { align-items: flex-start; }
  .logo { width: 58px; height: 58px; }
  .primary-btn { width: 100%; }
  .cards-grid { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
}
