:root {
  --bg: #071018;
  --panel: rgba(17, 31, 44, 0.92);
  --panel-2: rgba(11, 22, 33, 0.96);
  --line: rgba(96, 182, 255, 0.22);
  --text: #eef7ff;
  --muted: #a9bac9;
  --blue: #3cc7ff;
  --gold: #ffbd3e;
  --green: #56dfaa;
  --red: #ff6b7d;
  --violet: #9a7cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(60, 199, 255, .22), transparent 38%),
    radial-gradient(circle at 85% 15%, rgba(255, 189, 62, .14), transparent 34%),
    linear-gradient(135deg, #050b12 0%, #071018 52%, #0b1622 100%);
  color: var(--text);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.ops-shell { width: min(1500px, calc(100vw - 40px)); margin: 24px auto 60px; }
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; }
.hero h1 { margin: 0; font-size: clamp(32px, 5vw, 62px); letter-spacing: -0.055em; }
.hero-copy { color: var(--muted); font-size: 18px; max-width: 760px; }
.eyebrow { margin: 0 0 8px; color: var(--gold); text-transform: uppercase; font-weight: 800; letter-spacing: .06em; font-size: 13px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.primary-btn, .secondary-btn, .danger-btn, .ghost-link {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
.primary-btn { color: #04111c; background: linear-gradient(135deg, #35d6ff, #9a7cff); }
.secondary-btn, .ghost-link { color: var(--text); background: rgba(255,255,255,.075); border: 1px solid var(--line); }
.danger-btn { color: #fff; background: linear-gradient(135deg, #ff4e68, #b51e3c); }
.auth-panel { margin-top: 18px; padding: 18px; }
.field-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) auto; gap: 14px; align-items: end; }
label span { display: block; color: var(--blue); font-weight: 800; text-transform: uppercase; font-size: 12px; margin-bottom: 7px; }
input, select, textarea {
  width: 100%;
  color: var(--text);
  background: rgba(4, 12, 20, .84);
  border: 1px solid rgba(116, 174, 224, .26);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(60,199,255,.15); }
.notice-host { margin-top: 12px; display: grid; gap: 8px; }
.notice { border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(60,199,255,.08); color: var(--text); }
.notice.error { border-color: rgba(255,107,125,.45); background: rgba(255,107,125,.1); }
.notice.success { border-color: rgba(86,223,170,.45); background: rgba(86,223,170,.1); }
.notice.warning { border-color: rgba(255,189,62,.45); background: rgba(255,189,62,.1); }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(160px, 1fr)); gap: 14px; margin: 18px 0; }
.metric-card { border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: rgba(11,22,33,.84); }
.metric-card span { color: var(--muted); font-weight: 700; }
.metric-card strong { display: block; margin-top: 6px; font-size: 34px; }
.tabbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.tab { color: var(--muted); background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; font-weight: 800; }
.tab.active { color: #04111c; background: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.section-head { padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 34px; }
.section-head p { color: var(--muted); margin: 7px 0 0; }
.inline-form { display: grid; grid-template-columns: minmax(200px, 1fr) 150px 92px auto; gap: 10px; min-width: min(100%, 680px); }
.filters { display: grid; grid-template-columns: 1fr 220px auto; gap: 12px; padding: 16px; margin-bottom: 14px; }
.card-list { display: grid; gap: 14px; }
.ops-card { border: 1px solid var(--line); border-radius: 22px; background: var(--panel-2); padding: 18px; }
.card-top { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.card-title { font-size: 22px; font-weight: 900; margin: 0; }
.card-meta { color: var(--muted); margin: 6px 0 0; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.badge { border-radius: 999px; padding: 6px 10px; background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--muted); font-weight: 800; font-size: 12px; text-transform: uppercase; }
.badge.active, .badge.trialing, .badge.published { color: #042015; background: rgba(86,223,170,.9); }
.badge.revoked, .badge.deleted, .badge.canceled { color: #2b050b; background: rgba(255,107,125,.9); }
.badge.warning, .badge.draft { color: #2d1b00; background: rgba(255,189,62,.92); }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.detail { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px; background: rgba(255,255,255,.035); }
.detail span { display:block; color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 800; }
.detail strong { display:block; margin-top: 6px; word-break: break-word; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.actions button { padding: 9px 12px; min-height: 38px; }
.activation-row { margin-top: 12px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; display: grid; grid-template-columns: 1.1fr .7fr .7fr auto; gap: 10px; align-items: center; color: var(--muted); }
.release-note { padding: 16px; margin-bottom: 14px; color: var(--muted); }
.support-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 14px; }
.support-card { padding: 20px; }
.support-card h3 { margin-top: 0; }
.support-card li, .support-card p { color: var(--muted); line-height: 1.55; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.66); display: grid; place-items: center; padding: 24px; z-index: 9999; }
.modal-card { width: min(560px, 100%); background: #0c1824; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.modal-card h2 { margin-top: 0; }
.modal-card p { color: var(--muted); line-height: 1.55; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.empty { color: var(--muted); padding: 22px; text-align: center; }
@media (max-width: 980px) {
  .hero, .section-head, .card-top { flex-direction: column; align-items: stretch; }
  .field-grid, .inline-form, .filters, .metric-grid, .detail-grid, .support-grid { grid-template-columns: 1fr; }
  .activation-row { grid-template-columns: 1fr; }
}
