:root {
  color-scheme: dark;
  --bg: #070a12;
  --panel: #101827;
  --panel-2: #151f33;
  --text: #f8fafc;
  --muted: #a7b1c2;
  --line: rgba(255,255,255,.12);
  --accent: #ffb020;
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box;
}

body.iba-body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,176,32,.16), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(56,189,248,.12), transparent 26%),
    var(--bg);
  color: var(--text);
}

.iba-login-body {
  display: grid;
  place-items: center;
  padding: 24px;
}

.iba-login-card {
  width: min(460px, 100%);
  background: rgba(16,24,39,.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 28px 80px rgba(0,0,0,.38);
}

.iba-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -.06em;
  margin-bottom: 10px;
}

.iba-muted,
.iba-footer-note,
.iba-card p,
.iba-panel li,
.iba-hero-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.iba-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.iba-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.iba-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #070a12;
  color: var(--text);
  padding: 14px 16px;
  font-size: 16px;
}

.iba-form button,
.iba-topbar a {
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #1f1300;
  padding: 14px 18px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.iba-alert {
  margin-top: 18px;
  border: 1px solid rgba(255,107,107,.4);
  background: rgba(255,107,107,.12);
  color: #ffd6d6;
  padding: 12px 14px;
  border-radius: 16px;
}

.iba-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(7,10,18,.72);
  backdrop-filter: blur(12px);
}

.iba-topbar h1 {
  margin: 4px 0 0;
  font-size: 34px;
}

.iba-topbar nav {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.iba-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 28px auto 60px;
  display: grid;
  gap: 22px;
}

.iba-hero-panel,
.iba-panel,
.iba-card {
  background: rgba(16,24,39,.9);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 18px 54px rgba(0,0,0,.22);
}

.iba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.iba-card-count {
  font-size: 42px;
  font-weight: 950;
  color: var(--accent);
  letter-spacing: -.05em;
}

.iba-card h3 {
  margin-bottom: 8px;
}

@media (max-width: 700px) {
  .iba-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .iba-topbar nav {
    width: 100%;
    justify-content: space-between;
  }
}

.iba-success {
  margin-top: 18px;
  border: 1px solid rgba(34,197,94,.4);
  background: rgba(34,197,94,.12);
  color: #bbf7d0;
  padding: 12px 14px;
  border-radius: 16px;
}

.iba-narrow-shell {
  width: min(720px, calc(100% - 36px));
}

.iba-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.iba-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.iba-actions a,
.iba-button-link,
.iba-table-actions a,
.iba-footer-note a {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.iba-actions a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,.04);
}

.iba-actions a.is-active {
  background: var(--accent);
  color: #1f1300;
  border-color: var(--accent);
}

.iba-table-wrap {
  overflow-x: auto;
}

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

.iba-table th,
.iba-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.iba-table th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.iba-table-note {
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}

.iba-table-actions {
  text-align: right;
  white-space: nowrap;
}

.iba-pill {
  display: inline-flex;
  border: 1px solid rgba(255,176,32,.35);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--accent);
  background: rgba(255,176,32,.08);
  font-size: 13px;
  font-weight: 900;
}

.iba-pill-soft {
  border-color: var(--line);
  color: var(--muted);
  background: rgba(255,255,255,.04);
}

.iba-empty {
  text-align: center;
  padding: 30px 10px;
}

.iba-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.iba-form select,
.iba-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #070a12;
  color: var(--text);
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
}

.iba-form textarea {
  resize: vertical;
  min-height: 150px;
}

@media (max-width: 700px) {
  .iba-form-row {
    grid-template-columns: 1fr;
  }
}

.iba-inline-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.iba-inline-filter label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.iba-inline-filter select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #070a12;
  color: var(--text);
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
}

.iba-inline-filter button {
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #1f1300;
  padding: 14px 18px;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 900px) {
  .iba-inline-filter {
    grid-template-columns: 1fr;
  }
}

.iba-inline-filter-compact {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 1fr) auto;
}
