:root {
  --brand: #0d6efd;
  --soft: #f6f8fb;
  --card-radius: 18px;
  --border-soft: rgba(16, 24, 40, 0.06);
}

body {
  font-family: "Cairo", sans-serif;
  background:
    radial-gradient(1200px 600px at 20% 10%, #eef4ff, transparent),
    radial-gradient(900px 500px at 90% 20%, #f3f0ff, transparent),
    var(--soft);
  min-height: 100vh;
}

.page-wrap {
  padding: 24px 0 60px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(13, 110, 253, 0.1);
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: 999px;
  color: #0b5ed7;
  font-weight: 800;
  font-size: 0.95rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.12);
}

.brand-dot--plain {
  box-shadow: none;
}

.main-card {
  border: 0;
  border-radius: var(--card-radius);
  box-shadow: 0 12px 35px rgba(16, 24, 40, 0.1);
  overflow: hidden;
}

.card-header-soft {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(111, 66, 193, 0.1));
  border-bottom: 1px solid var(--border-soft);
}

.section {
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
}

.section-title {
  font-weight: 900;
  font-size: 1.05rem;
  margin: 0;
}

.section-sub {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
}

.small-hint {
  color: #6c757d;
  font-size: 0.85rem;
}

.table thead th {
  font-weight: 800;
  background: rgba(13, 110, 253, 0.06);
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.04);
  border: 1px solid var(--border-soft);
  font-weight: 800;
}

.gate {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.gate.is-open {
  display: flex;
}

.gate-card {
  width: min(520px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.gate-head {
  padding: 18px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.14), rgba(111, 66, 193, 0.1));
  border-bottom: 1px solid var(--border-soft);
}

.gate-body {
  padding: 18px;
}

.gate-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border-soft);
}

.table-responsive {
  border-radius: 14px;
}

.count-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.count-btn:disabled {
  cursor: default;
  opacity: 0.75;
}