/* ==========================================================================
   Kaddu Admin Cloud — Master Control Suite Styles (admin.css)
   Ultra-Modern Cyberpunk Dark Theme with Vibrant Neon Accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --adm-bg: #0b0d13;
  --adm-surface: #12151f;
  --adm-surface-light: #181d2c;
  --adm-surface-card: #151926;
  --adm-surface-hover: #1c2233;
  --adm-border: rgba(255, 255, 255, 0.08);
  --adm-border-strong: rgba(255, 255, 255, 0.16);
  --adm-border-glow: rgba(255, 107, 0, 0.35);

  --adm-text: #f4f4f5;
  --adm-text-body: #d4d4d8;
  --adm-muted: #9ca3af;
  --adm-faint: #6b7280;

  --adm-primary: #ff6b00;
  --adm-primary-hover: #ff8533;
  --adm-primary-subtle: rgba(255, 107, 0, 0.12);
  --adm-primary-glow: rgba(255, 107, 0, 0.25);

  --adm-cyan: #06b6d4;
  --adm-cyan-bg: rgba(6, 182, 212, 0.12);
  --adm-purple: #8b5cf6;
  --adm-purple-bg: rgba(139, 92, 246, 0.12);
  --adm-green: #10b981;
  --adm-green-bg: rgba(16, 185, 129, 0.12);
  --adm-gold: #f59e0b;
  --adm-gold-bg: rgba(245, 158, 11, 0.12);
  --adm-danger: #ef4444;
  --adm-danger-bg: rgba(239, 68, 68, 0.12);

  --adm-radius: 12px;
  --adm-radius-sm: 8px;
  --adm-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --adm-font-mono: 'JetBrains Mono', monospace;
}

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

html, body.admin-body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background-color: var(--adm-bg);
  color: var(--adm-text-body);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Top Navbar
   -------------------------------------------------------------------------- */
.adm-navbar {
  height: 64px;
  background: rgba(18, 21, 31, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--adm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 99;
}

.adm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--adm-text);
}

.adm-brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #ff6b00 0%, #ea580c 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 16px var(--adm-primary-glow);
}

.adm-brand-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.adm-badge-master {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(245, 158, 11, 0.2));
  color: #ff8533;
  border: 1px solid rgba(255, 107, 0, 0.4);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.adm-live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--adm-green);
  background: var(--adm-green-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
}

.adm-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--adm-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--adm-green);
  animation: admPulse 2s infinite;
}

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

.adm-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adm-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--adm-surface-light);
  color: var(--adm-text);
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.adm-btn-pill:hover {
  background: var(--adm-surface-hover);
  border-color: var(--adm-border-strong);
}

.adm-btn-primary {
  background: linear-gradient(135deg, #ff6b00 0%, #ea580c 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px var(--adm-primary-glow);
}

.adm-btn-primary:hover {
  background: linear-gradient(135deg, #ff7e1a 0%, #f97316 100%);
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.4);
}

/* --------------------------------------------------------------------------
   App Layout (Sidebar + Main)
   -------------------------------------------------------------------------- */
.adm-layout {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 64px);
}

.adm-sidebar {
  width: 260px;
  background: var(--adm-surface);
  border-right: 1px solid var(--adm-border);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  flex-shrink: 0;
  overflow-y: auto;
  max-height: calc(100vh - 64px);
  position: sticky;
  top: 64px;
}

.adm-sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--adm-faint);
  padding: 10px 12px 6px;
  margin-top: 10px;
}

.adm-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--adm-muted);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-bottom: 8px;
  border: 1px solid var(--adm-border);
  background: rgba(255, 255, 255, 0.02);
  width: 100%;
  text-align: left;
}

.adm-sidebar-link:hover {
  color: var(--adm-text);
  background: var(--adm-surface-light);
  border-color: var(--adm-border-strong);
  transform: translateX(2px);
}

.adm-sidebar-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.2) 0%, rgba(234, 88, 12, 0.1) 100%);
  border-color: var(--adm-primary);
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.18);
  font-weight: 800;
}

.adm-sidebar-link.active svg {
  color: var(--adm-primary);
}

.adm-link-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-badge-count {
  background: var(--adm-surface-light);
  color: var(--adm-muted);
  border: 1px solid var(--adm-border);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--adm-font-mono);
}

.adm-sidebar-link.active .adm-badge-count {
  background: var(--adm-primary);
  color: #fff;
  border-color: transparent;
}

/* --------------------------------------------------------------------------
   Main Content Area
   -------------------------------------------------------------------------- */
.adm-content {
  flex: 1;
  padding: 24px 32px 48px;
  overflow-y: auto;
  max-width: 1600px;
}

/* Stats Metric Cards */
.adm-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.adm-metric-card {
  background: var(--adm-surface-card);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.adm-metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--adm-border-strong);
}

.adm-metric-info {
  display: flex;
  flex-direction: column;
}

.adm-metric-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--adm-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.adm-metric-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--adm-text);
  font-family: var(--adm-font-mono);
  line-height: 1.1;
}

.adm-metric-sub {
  font-size: 11.5px;
  color: var(--adm-faint);
  margin-top: 4px;
}

.adm-metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* --------------------------------------------------------------------------
   Tab Content & Cards
   -------------------------------------------------------------------------- */
.adm-tab-pane {
  display: none;
  animation: fadeIn 0.25s ease;
}

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

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

.adm-card {
  background: var(--adm-surface-card);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.adm-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--adm-border);
}

.adm-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--adm-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-card-desc {
  font-size: 13px;
  color: var(--adm-muted);
  margin-top: 2px;
}

/* Search and Filters Bar */
.adm-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.adm-search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 420px;
}

.adm-search-input {
  width: 100%;
  background: var(--adm-surface-light);
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  padding: 9px 14px 9px 38px;
  font-size: 13px;
  color: var(--adm-text);
  outline: none;
  transition: border-color 0.2s ease;
}

.adm-search-input:focus {
  border-color: var(--adm-primary);
  box-shadow: 0 0 0 3px var(--adm-primary-subtle);
}

.adm-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--adm-faint);
  pointer-events: none;
}

.adm-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.adm-filter-btn {
  background: var(--adm-surface-light);
  border: 1px solid var(--adm-border);
  color: var(--adm-muted);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.adm-filter-btn:hover {
  background: var(--adm-surface-hover);
  color: var(--adm-text);
}

.adm-filter-btn.active {
  background: var(--adm-primary-subtle);
  border-color: var(--adm-primary);
  color: #ff8533;
}

/* --------------------------------------------------------------------------
   Data Table & Fluid Responsive System
   -------------------------------------------------------------------------- */
.adm-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--adm-border);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  position: relative;
}

.adm-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.adm-table th {
  background: var(--adm-surface);
  color: var(--adm-muted);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--adm-border);
  white-space: nowrap;
}

.adm-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--adm-border);
  color: var(--adm-text-body);
  vertical-align: middle;
}

.adm-table tr:last-child td {
  border-bottom: none;
}

.adm-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Sticky Action Column on Desktop/Tablet: Action buttons never disappear */
@media (min-width: 861px) {
  .adm-table th.col-actions,
  .adm-table td.col-actions,
  .adm-table th:last-child,
  .adm-table td:last-child {
    position: sticky;
    right: 0;
    background: #151926 !important;
    z-index: 2;
    box-shadow: -12px 0 18px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
  }
  .adm-table th:last-child {
    background: #12151f !important;
  }
  .adm-table tr:hover td:last-child {
    background: #1c2233 !important;
  }
}

.adm-table th:nth-child(5),
.adm-table td:nth-child(5) {
  min-width: 175px;
}
.adm-table th:last-child,
.adm-table td:last-child {
  min-width: 150px;
}

/* User Pill / Identity */
.adm-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adm-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.adm-user-meta {
  display: flex;
  flex-direction: column;
}

.adm-user-name {
  font-weight: 700;
  color: var(--adm-text);
  font-size: 14px;
}

.adm-user-email {
  font-size: 12px;
  color: var(--adm-muted);
  font-family: var(--adm-font-mono);
}

/* Password Pill */
.adm-pwd-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--adm-surface-light);
  border: 1px solid var(--adm-border);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--adm-font-mono);
  font-size: 12px;
}

.adm-btn-icon {
  background: transparent;
  border: none;
  color: var(--adm-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.adm-btn-icon:hover {
  color: var(--adm-text);
}

/* User ID Styling */
.adm-userid-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.adm-userid-badge {
  font-size: 12.5px;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 5px 9px;
  border-radius: 6px;
  font-family: var(--adm-font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Role Badges */
.adm-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--adm-font-mono);
  white-space: nowrap;
}

.adm-role-badge.role-admin {
  background: rgba(139, 92, 246, 0.18);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.adm-role-badge.role-reseller {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.adm-role-badge.role-user {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Tokens / Credits Direct Edit Control */
.adm-token-direct-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.adm-token-input-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.adm-token-input-wrap .adm-token-icon {
  position: absolute;
  left: 8px;
  pointer-events: none;
}

.adm-token-direct-input {
  width: 84px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-family: var(--adm-font-mono);
  font-weight: 800;
  font-size: 13.5px;
  padding: 6px 8px 6px 28px;
  border-radius: 7px;
  outline: none;
  transition: all 0.2s ease;
}

.adm-token-direct-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
  background: rgba(0, 0, 0, 0.7);
}

.adm-token-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.22));
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  white-space: nowrap;
}

.adm-token-save-btn:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border-color: #f59e0b;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

/* Credits Pill & Quick Adjust (Legacy compatibility) */
.adm-credits-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.adm-credits-badge {
  background: var(--adm-gold-bg);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-family: var(--adm-font-mono);
  font-weight: 800;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.adm-quick-token-btn {
  background: var(--adm-surface-light);
  border: 1px solid var(--adm-border);
  color: var(--adm-text);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--adm-font-mono);
}

.adm-quick-token-btn:hover {
  background: var(--adm-primary);
  border-color: var(--adm-primary);
  color: #fff;
  transform: scale(1.05);
}

/* Status Badges */
.adm-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: capitalize;
}

.adm-status-badge.active {
  background: var(--adm-green-bg);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.adm-status-badge.suspended {
  background: var(--adm-danger-bg);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.adm-status-badge.admin {
  background: var(--adm-purple-bg);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Action Buttons */
.adm-action-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.adm-btn-action {
  background: var(--adm-surface-light);
  border: 1px solid var(--adm-border);
  color: var(--adm-text);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.adm-btn-action:hover {
  background: var(--adm-surface-hover);
  border-color: var(--adm-border-strong);
}

.adm-btn-action.danger:hover {
  background: var(--adm-danger-bg);
  border-color: var(--adm-danger);
  color: #f87171;
}

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */
.adm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.adm-modal-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.adm-modal-card {
  background: #141724;
  border: 1px solid var(--adm-border-strong);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px var(--adm-primary-subtle);
  overflow: hidden;
  animation: modalScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.adm-modal-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--adm-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-modal-close {
  background: transparent;
  border: none;
  color: var(--adm-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

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

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

.adm-form-group {
  margin-bottom: 16px;
}

.adm-form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--adm-muted);
  margin-bottom: 6px;
}

.adm-form-input, .adm-form-select {
  width: 100%;
  background: var(--adm-surface-light);
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--adm-text);
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.adm-form-input:focus, .adm-form-select:focus {
  border-color: var(--adm-primary);
  box-shadow: 0 0 0 3px var(--adm-primary-subtle);
}

.adm-modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--adm-border);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------------------------- */
.adm-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10000;
  pointer-events: none;
}

.adm-toast {
  background: #181d2c;
  border: 1px solid var(--adm-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--adm-primary-subtle);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Backdrop Overlay for Mobile Sidebar
   -------------------------------------------------------------------------- */
.adm-sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 7, 12, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.adm-sidebar-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   All-Device Responsive Layout ("Resize System")
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .adm-content {
    padding: 20px 20px 40px;
  }
  .adm-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .adm-layout {
    position: relative;
  }
  .adm-sidebar {
    position: fixed;
    left: -290px;
    top: 64px;
    bottom: 0;
    width: 275px;
    z-index: 99;
    transition: left 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 14px 0 35px rgba(0, 0, 0, 0.6);
  }
  .adm-sidebar.open {
    left: 0;
  }
  .adm-content {
    padding: 16px 14px 36px;
    width: 100%;
    min-width: 0;
  }
  .adm-mobile-menu-btn {
    display: inline-flex !important;
  }
  .adm-card {
    padding: 16px 14px;
  }
}

/* Table Auto-Card Transform on Mobile & Small Screens (< 860px) */
@media (max-width: 860px) {
  .adm-table thead {
    display: none;
  }
  .adm-table,
  .adm-table tbody,
  .adm-table tr,
  .adm-table td {
    display: block;
    width: 100%;
  }
  .adm-table-wrap {
    border: none;
    background: transparent;
    overflow-x: visible;
  }
  .adm-table tr {
    background: var(--adm-surface-light);
    border: 1px solid var(--adm-border);
    border-radius: 12px;
    margin-bottom: 14px;
    padding: 14px 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  }
  .adm-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    text-align: right;
  }
  .adm-table td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 11px;
    color: var(--adm-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    flex-shrink: 0;
    margin-right: 12px;
  }
  .adm-table td:last-child {
    border-bottom: none;
    padding-top: 12px;
    display: block;
    position: static !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  .adm-table td:last-child::before {
    display: none;
  }
  .adm-action-btns {
    display: flex;
    gap: 8px;
    width: 100%;
  }
  .adm-action-btns button {
    flex: 1;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
  }
}

@media (max-width: 600px) {
  .adm-navbar {
    padding: 0 12px;
    height: 58px;
  }
  .adm-brand-text {
    font-size: 15px;
  }
  .adm-badge-master {
    display: none;
  }
  .adm-live-indicator span:last-child {
    display: none;
  }
  .adm-live-indicator {
    padding: 4px 6px;
  }
  .adm-nav-actions {
    gap: 6px;
  }
  .adm-nav-actions .adm-btn-pill span {
    font-size: 12px;
  }
  .adm-nav-actions a.adm-btn-pill span {
    display: none;
  }
  .adm-nav-actions a.adm-btn-pill::after {
    content: '⚡';
    font-size: 14px;
  }
  .adm-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .adm-metric-card {
    padding: 12px 14px;
  }
  .adm-metric-val {
    font-size: 20px;
  }
  .adm-metric-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .adm-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .adm-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .adm-search-wrap {
    max-width: 100%;
    min-width: 0;
  }
}

/* --------------------------------------------------------------------------
   User Inspector Dossier & CMS Previews
   -------------------------------------------------------------------------- */
.adm-inspector-card {
  background: var(--adm-surface-card);
  border: 1px solid var(--adm-border-strong);
  border-radius: var(--adm-radius);
  padding: 24px;
  margin-top: 16px;
  animation: toastIn 0.3s ease;
}

.adm-inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--adm-border);
}

.adm-inspector-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.adm-stat-box {
  background: var(--adm-surface-light);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.adm-stat-box-val {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
  font-family: var(--adm-font-mono);
}

.adm-preview-announcement {
  background: #ff6b00;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  margin: 14px 0;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.25);
}

.adm-preview-banner {
  border: 2px dashed rgba(255, 107, 0, 0.4);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #000;
  max-width: 100%;
  margin: 14px 0;
}

.adm-article-card {
  background: var(--adm-surface-light);
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.2s, border-color 0.2s;
}

.adm-article-card:hover {
  transform: translateY(-2px);
  border-color: var(--adm-primary);
}

/* ==========================================================================
   Google Translate Complete Banner & Offset Suppression
   ========================================================================== */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
iframe.VIpgJd-ZVi9od-ORHb-OEVmcd,
iframe.VIpgJd-ZVi9od-ORHb,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-ORHb,
.VIpgJd-yAWNEb-hvhGLc,
iframe[id*=":1.container"],
iframe[id*=":2.container"],
body > .skiptranslate:not(#google_translate_element):not(.kaddu-lang-wrap) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
}

html, body {
  top: 0px !important;
  position: static !important;
  margin-top: 0px !important;
}

#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-menu-frame,
.VIpgJd-ZVi9od-xl07Ob-OEVmcd {
  display: none !important;
  visibility: hidden !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

