*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #050816;
  --bg-card: #060b1a;
  --bg-card-soft: #0d1224;
  --accent: #4f9cff;
  --accent-soft: rgba(79, 156, 255, 0.35);
  --accent-danger: #ff4b6b;
  --accent-ok: #3de58f;
  --text-main: #f5f7ff;
  --text-muted: #8b93b7;
  --border-soft: rgba(255,255,255,0.06);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(3, 10, 40, 0.9);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  color: var(--text-main);
  background:
    radial-gradient(circle at top, rgba(79,156,255,0.18), transparent 55%),
    radial-gradient(circle at bottom, rgba(255,75,107,0.22), transparent 55%),
    radial-gradient(circle at left, rgba(96,165,250,0.18), transparent 50%),
    linear-gradient(135deg, #020617, #020814);
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.card {
  width: 100%;
  max-width: 960px;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.08), transparent 60%),
              radial-gradient(circle at bottom right, rgba(251,113,133,0.08), transparent 60%),
              var(--bg-card);
  border-radius: 24px;
  border: 1px solid rgba(148,163,184,0.16);
  box-shadow: var(--shadow-soft);
  padding: 24px 26px 18px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(125,211,252,0.05), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-globe {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: radial-gradient(circle at 20% 0%, #4f46e5, #0f172a 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 12px rgba(59,130,246,0.9);
}

h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle at 0 0, rgba(59,130,246,0.45), transparent 60%);
  border: 1px solid rgba(148,163,184,0.3);
  font-size: 12px;
  box-shadow: 0 0 0 1px rgba(15,23,42,0.8), 0 0 18px rgba(56,189,248,0.45);
}

.quota-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-ok);
  box-shadow: 0 0 6px var(--accent-ok);
}

.quota-pill.low .quota-dot {
  background: #facc15;
  box-shadow: 0 0 6px #facc15;
}

.quota-pill.exhausted .quota-dot {
  background: var(--accent-danger);
  box-shadow: 0 0 6px var(--accent-danger);
}

.label-small {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

.tabs {
  display: inline-flex;
  border-radius: var(--radius-pill);
  padding: 3px;
  background: rgba(15,23,42,0.8);
  border: 1px solid var(--border-soft);
  margin-bottom: 14px;
}

.tab {
  border-radius: var(--radius-pill);
  border: none;
  padding: 5px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
}

.tab.active {
  background: radial-gradient(circle at top, #2563eb, #1d4ed8);
  color: #e5f0ff;
  box-shadow: 0 0 12px rgba(37,99,235,0.9);
}

.tab.disabled {
  opacity: 0.45;
  cursor: default;
}

.textarea {
  width: 100%;
  resize: vertical;
  min-height: 120px;
  color: var(--text-main);
  background: radial-gradient(circle at top left, rgba(37,99,235,0.22), transparent 60%),
              rgba(15,23,42,0.9);
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.4);
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.9);
}

.textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px rgba(96,165,250,0.7);
}

.hint {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.checkbox-row input {
  accent-color: #4ade80;
}

.actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  border-radius: 999px;
  border: none;
  padding: 8px 22px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn.primary {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #0b1120;
  box-shadow: 0 12px 25px rgba(56,189,248,0.45);
}

.btn.primary:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.btn.secondary {
  background: rgba(15,23,42,0.9);
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
}

.btn.secondary:disabled {
  opacity: 0.4;
  cursor: default;
}

.status-wrap {
  margin-top: 12px;
  font-size: 12px;
}

.status-sub {
  color: var(--text-muted);
  margin-top: 3px;
}

.progress {
  margin-top: 8px;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(30,64,175,0.7);
  overflow: hidden;
}

.progress.hidden {
  display: none;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #a3e635);
  box-shadow: 0 0 12px rgba(34,197,94,0.9);
  transition: width 0.25s ease-out;
}

.summary-text {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.table-wrap {
  margin-top: 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(30,64,175,0.8);
  background: radial-gradient(circle at top left, rgba(37,99,235,0.14), transparent 60%),
              rgba(6,12,30,0.98);
}

.table-header,
.table-row {
  display: grid;
  grid-template-columns: 0.6fr 3fr 2fr 1.6fr 1.5fr;
  padding: 8px 14px;
  font-size: 12px;
  align-items: center;
}

.table-header {
  background: linear-gradient(90deg, rgba(15,23,42,0.9), rgba(30,64,175,0.95));
  font-weight: 600;
  color: rgba(226,232,240,0.96);
}

.table-body {
  max-height: 260px;
  overflow: auto;
}

.table-row:nth-child(odd) {
  background: rgba(15,23,42,0.9);
}

.table-row:nth-child(even) {
  background: rgba(15,23,42,0.7);
}

.table-row.empty {
  text-align: center;
  justify-content: center;
  font-style: italic;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.badge.ok {
  background: rgba(34,197,94,0.16);
  color: #bbf7d0;
}

.badge.none {
  background: rgba(248,250,252,0.06);
  color: #e5e7eb;
}

.badge.error {
  background: rgba(239,68,68,0.16);
  color: #fecaca;
}

.detail-link {
  font-size: 11px;
  color: #bfdbfe;
  text-decoration: underline;
  cursor: pointer;
}

.footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.version {
  opacity: 0.7;
}

/* ===================== DOMAIN + COPY BUTTON ===================== */

.domain-cell {
  display: flex;
  align-items: center;
  justify-content: space-between; /* bikin COPY sejajar kanan */
  gap: 8px;
}

.domain-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tombol copy ala dashboard hipmilada */
.copy-btn {
  padding: 3px 10px;
  border-radius: 999px;
  border: none;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;

  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #e0f2fe;

  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 0 12px rgba(56, 189, 248, 0.55);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    opacity 0.12s ease;
}

.copy-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 1),
    0 0 18px rgba(56, 189, 248, 0.75);
}

.copy-btn:active {
  transform: translateY(0);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 1),
    0 0 8px rgba(56, 189, 248, 0.4);
  opacity: 0.9;
}

.copy-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ============================ MOBILE ============================ */

@media (max-width: 720px) {
  .card {
    padding: 18px 14px 14px;
  }

  h1 {
    font-size: 18px;
  }

  .table-header,
  .table-row {
    font-size: 11px;
    padding: 7px 10px;
  }
}