/* ==============================================================================
   VMAILA ADMIN PORTAL - EXECUTIVE STYLESHEET (CRISP WHITE / LIGHT THEME)
   ============================================================================== */

:root {
  --admin-sidebar-width: 260px;
  --admin-header-height: 64px;
}

body.admin-body {
  background-color: #ffffff;
  color: var(--text-primary);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
}

.admin-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  background-color: #ffffff;
}

/* ─── Header ───────────────────────────────────────────────────────────────── */
.admin-header {
  height: var(--admin-header-height);
  background: #ffffff;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  background: linear-gradient(to right, #0f172a, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #4f46e5;
}

.scope-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.scope-selector select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
  font-weight: 600;
}

.scope-selector select option {
  background: #ffffff;
  color: var(--text-primary);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 7px 16px;
  width: 360px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.header-search:focus-within {
  border-color: var(--border-focus);
  background: #ffffff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.header-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.system-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-portal-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.25);
  color: #4f46e5;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-portal-switch:hover {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.header-notifications {
  position: relative;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.notif-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #475569;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--border-subtle);
  padding-left: 16px;
}

.profile-avatar {
  width: 34px;
  height: 34px;
  background: #4f46e5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.profile-role {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ─── Main Admin Layout ─────────────────────────────────────────────────────── */
.admin-main {
  display: flex;
  flex: 1;
  overflow: hidden;
  background-color: #ffffff;
}

/* ─── Left Sidebar ─────────────────────────────────────────────────────────── */
.admin-sidebar {
  width: var(--admin-sidebar-width);
  background: #f8fafc;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 14px 12px 6px;
}

.admin-nav .nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  position: relative;
}

.admin-nav .nav-item:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

.admin-nav .nav-item.active {
  background: #ffffff;
  color: #4f46e5;
  font-weight: 700;
  border-left: 3px solid #4f46e5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-nav .nav-item i {
  font-size: 0.95rem;
  width: 18px;
}

.nav-pill {
  margin-left: auto;
  font-size: 0.7rem;
  background: #e2e8f0;
  padding: 2px 7px;
  border-radius: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.security-level-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.sec-icon {
  color: #059669;
  font-size: 1.1rem;
}

.sec-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.sec-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
}

/* ─── Content Workspace ────────────────────────────────────────────────────── */
.admin-content {
  flex: 1;
  background: #ffffff;
  padding: 28px 32px;
  overflow-y: auto;
}

.admin-tab-pane {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.admin-tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.pane-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.pane-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.pane-actions {
  display: flex;
  gap: 12px;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca, #4f46e5);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.45);
}

.btn-secondary {
  background: #f8fafc;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: var(--text-muted);
}

/* ─── Top KPI Cards Grid ───────────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.icon-blue { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.icon-emerald { background: rgba(16, 185, 129, 0.12); color: #059669; }
.icon-indigo { background: rgba(99, 102, 241, 0.12); color: #4f46e5; }
.icon-purple { background: rgba(168, 85, 247, 0.12); color: #9333ea; }

.kpi-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.kpi-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 4px 0;
}

.kpi-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.kpi-trend {
  font-size: 0.75rem;
  font-weight: 600;
}

.trend-up { color: #059669; }

.kpi-progress {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  margin: 6px 0;
  overflow: hidden;
}

.kpi-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  border-radius: 3px;
}

/* ─── Telemetry Row ────────────────────────────────────────────────────────── */
.telemetry-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.kpi-card-compact {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.compact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.compact-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 8px 0;
  letter-spacing: -0.02em;
}

.compact-sub-grid {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.sent-dot { background: #3b82f6; }
.recv-dot { background: #10b981; }
.fail-dot { background: #ef4444; }

/* ─── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-indigo { background: rgba(99, 102, 241, 0.1); color: #4f46e5; border: 1px solid rgba(99, 102, 241, 0.25); }
.badge-emerald { background: rgba(16, 185, 129, 0.1); color: #059669; border: 1px solid rgba(16, 185, 129, 0.25); }
.badge-rose { background: rgba(239, 68, 68, 0.1); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.25); }
.badge-amber { background: rgba(245, 158, 11, 0.1); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.25); }
.badge-green { background: rgba(16, 185, 129, 0.15); color: #059669; }

.text-emerald { color: #059669; }
.text-rose { color: #dc2626; }
.text-amber { color: #d97706; }
.text-indigo { color: #4f46e5; }

/* ─── Charts Grid ──────────────────────────────────────────────────────────── */
.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.charts-grid.secondary-charts {
  grid-template-columns: 1fr 1fr;
}

.chart-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.chart-container {
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 10px 0;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.bar-stack {
  width: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 4px;
  overflow: hidden;
}

.bar-sent { background: #3b82f6; width: 100%; }
.bar-recv { background: #10b981; width: 100%; }

.bar-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ─── Tables ───────────────────────────────────────────────────────────────── */
.table-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.table-toolbar {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.filter-group {
  display: flex;
  gap: 8px;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

.filter-btn.active {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.table-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.table-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.8rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.84rem;
}

.admin-table th {
  background: #f8fafc;
  padding: 12px 18px;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.admin-table tr:hover td {
  background: #f8fafc;
}

/* ─── Sub-Tab Bar ──────────────────────────────────────────────────────────── */
.sub-tab-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.sub-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.sub-tab-btn.active {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
}

/* ─── Storage Cards ────────────────────────────────────────────────────────── */
.storage-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.storage-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.st-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.st-info {
  display: flex;
  flex-direction: column;
}

.st-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.st-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.st-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* ─── Policy Card ──────────────────────────────────────────────────────────── */
.policy-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.policy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.policy-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.policy-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.policy-item label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.policy-help {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ─── Hardware Grid ────────────────────────────────────────────────────────── */
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.hw-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hw-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hw-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 6px 0;
}

.hw-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.hw-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  border-radius: 3px;
}

.hw-fill.bg-emerald {
  background: #10b981;
}

.hw-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ─── Modals ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  width: 520px;
  max-width: 90vw;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: modalPop 0.2s ease-out;
}

.modal-card.modal-large {
  width: 820px;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #f8fafc;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-select {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
}

.form-input:focus, .form-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

/* ─── DNS Inspector ────────────────────────────────────────────────────────── */
.dns-inspector-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dns-inspector-header i {
  font-size: 1.6rem;
}

.dns-inspector-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.dns-record-item {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
}

.dns-record-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.dns-type-badge {
  font-family: var(--font-mono);
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

.dns-record-val-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--text-primary);
}

.btn-copy-dns {
  background: #f1f5f9;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.72rem;
  margin-left: auto;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-copy-dns:hover {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
}

/* ─── Toast ────────────────────────────────────────────────────────────────── */
.admin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #059669;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000;
}

.admin-toast.show {
  transform: translateY(0);
  opacity: 1;
}
