/* ==========================================================================
   ROOTJUMPS TECH - ENTERPRISE SAAS ADMIN DESIGN SYSTEM
   World-Class UI/UX for Control Center (Linear / Supabase / Vercel Standard)
   ========================================================================== */

:root {
  --admin-sidebar-width: 275px;

  /* Deep Space Obsidian Admin Palette */
  --admin-bg-base: #06090F;
  --admin-bg-sidebar: #090D17;
  --admin-bg-topbar: rgba(9, 13, 23, 0.82);
  --admin-bg-body: #080C14;
  --admin-bg-card: rgba(13, 18, 32, 0.75);
  --admin-bg-card-hover: rgba(18, 25, 44, 0.9);
  --admin-bg-input: rgba(7, 10, 18, 0.88);
  --admin-bg-input-focus: #0B1120;

  /* Typography */
  --admin-text-title: #FFFFFF;
  --admin-text-body: #94A3B8;
  --admin-text-muted: #64748B;
  --admin-font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --admin-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --admin-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Borders & Dividers */
  --admin-border-subtle: rgba(255, 255, 255, 0.05);
  --admin-border-card: rgba(255, 255, 255, 0.08);
  --admin-border-hover: rgba(59, 130, 246, 0.45);
  --admin-border-focus: #3B82F6;

  /* Accents */
  --admin-blue: #3B82F6;
  --admin-emerald: #10B981;
  --admin-purple: #8B5CF6;
  --admin-amber: #F59E0B;
  --admin-pink: #EC4899;
  --admin-cyan: #06B6D4;
}

/* Base Layout */
body.admin-layout {
  font-family: var(--admin-font-body);
  background-color: var(--admin-bg-body);
  color: var(--admin-text-body);
  min-height: 100vh;
  display: flex;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Vector Grid Pattern */
body.admin-layout::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

/* ===== 1. SIDEBAR NAVIGATION ===== */
.admin-sidebar {
  width: var(--admin-sidebar-width);
  background: var(--admin-bg-sidebar);
  border-right: 1px solid var(--admin-border-card);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 150;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}

/* Sidebar Header */
.sidebar-header {
  padding: 22px 20px;
  border-bottom: 1px solid var(--admin-border-subtle);
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.01);
}

.sidebar-logo-box {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.sidebar-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-brand-info h4 {
  font-family: var(--admin-font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 2px 0;
  letter-spacing: -0.02em;
}

.sidebar-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #34D399;
  letter-spacing: 0.02em;
}

.pulse-dot-green {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulseDot 2s infinite ease-in-out;
}

/* Sidebar Menu */
.sidebar-menu {
  list-style: none;
  padding: 16px 12px;
  flex: 1;
  overflow-y: auto;
  margin: 0;
}

.menu-header {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #475569;
  letter-spacing: 0.12em;
  margin: 18px 12px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 3px;
  border: 1px solid transparent;
  position: relative;
}

.menu-item a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
  transform: translateX(3px);
  border-color: rgba(255, 255, 255, 0.05);
}

.menu-item a.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0.03) 100%);
  color: #FFFFFF;
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.menu-item a.active::after {
  content: '';
  position: absolute;
  right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--admin-blue);
  box-shadow: 0 0 10px var(--admin-blue);
}

.menu-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease;
}

.menu-item a:hover .menu-icon {
  transform: scale(1.1);
}

/* Sidebar Footer User Card */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--admin-border-subtle);
  background: rgba(6, 9, 15, 0.7);
  backdrop-filter: blur(10px);
}

.user-profile-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-info-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
}

.user-text-meta h5 {
  font-family: var(--admin-font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.2;
}

.user-badge-role {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 2px;
}
.user-badge-role.superadmin {
  background: rgba(139, 92, 246, 0.2);
  color: #C084FC;
  border: 1px solid rgba(139, 92, 246, 0.35);
}
.user-badge-role.company {
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.logout-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #F87171;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.logout-action-btn:hover {
  background: #EF4444;
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
  transform: translateY(-2px);
}

/* ===== 2. ADMIN MAIN CONTENT & TOPBAR ===== */
.admin-main {
  margin-left: var(--admin-sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.admin-topbar {
  height: 70px;
  background: var(--admin-bg-topbar);
  border-bottom: 1px solid var(--admin-border-card);
  backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.topbar-title-area h3 {
  font-family: var(--admin-font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.02em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.server-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34D399;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-body {
  padding: 32px;
  flex: 1;
}

@media (max-width: 768px) {
  .admin-main {
    margin-left: 0;
  }
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-body {
    padding: 20px;
  }
}

/* ===== 3. ADMIN CARDS & CONTAINERS ===== */
.admin-card {
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border-card);
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 25px;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

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

.admin-card-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-card-header p {
  font-size: 0.88rem;
  color: var(--admin-text-body);
  margin: 0;
}

/* ===== 4. METRIC STAT WIDGETS (BENTO STYLE) ===== */
.stat-widget {
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border-card);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.stat-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.stat-widget:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border-color: var(--admin-border-hover);
}

.stat-widget:hover::before {
  opacity: 1;
}

.stat-widget.blue::before { background: var(--admin-blue); }
.stat-widget.green::before { background: var(--admin-emerald); }
.stat-widget.amber::before { background: var(--admin-amber); }
.stat-widget.purple::before { background: var(--admin-purple); }

.stat-meta-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--admin-text-muted);
  margin-bottom: 6px;
}

.stat-number-value {
  font-family: var(--admin-font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 4px 0;
  line-height: 1;
}

.stat-sub-badge {
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stat-icon-squircle {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ===== 5. NEXT-GEN FORM SYSTEM ===== */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #CBD5E1;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.form-group label i {
  color: var(--admin-blue);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--admin-bg-input);
  border: 1px solid var(--admin-border-card);
  border-radius: 10px;
  color: #F8FAFC;
  font-family: var(--admin-font-body);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: var(--admin-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: var(--admin-bg-input-focus);
}

.form-control::placeholder {
  color: #475569;
}

select.form-control {
  cursor: pointer;
}

/* Color Picker Container */
.color-picker-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-input-tile {
  width: 48px;
  height: 44px;
  border: 1px solid var(--admin-border-card);
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  padding: 2px;
}

/* ===== 6. MODERN ADMIN TABLES ===== */
.admin-table-container {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--admin-border-card);
}

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

.admin-table th {
  padding: 14px 18px;
  background: rgba(6, 9, 15, 0.7);
  color: var(--admin-text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--admin-border-card);
}

.admin-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--admin-border-subtle);
  font-size: 0.9rem;
  color: var(--admin-text-body);
  vertical-align: middle;
}

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

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

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-primary {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.15);
  color: #C084FC;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* ===== 7. MODALS ===== */
.admin-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 9, 15, 0.85);
  backdrop-filter: blur(16px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal-dialog {
  background: var(--admin-bg-sidebar);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  position: relative;
}

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

.admin-modal-header h4 {
  font-family: var(--admin-font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-modal-close {
  background: transparent;
  border: none;
  color: var(--admin-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}
.admin-modal-close:hover {
  color: #FFFFFF;
}

/* ===== 8. BUTTON SYSTEM ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--admin-font-body);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.2;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.55);
  transform: translateY(-1px);
  color: #FFFFFF;
}

.btn-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.btn-success:hover {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55);
  transform: translateY(-1px);
  color: #FFFFFF;
}

.btn-danger {
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  color: #FFFFFF;
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}
.btn-danger:hover {
  background: linear-gradient(135deg, #F87171 0%, #DC2626 100%);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.55);
  transform: translateY(-1px);
  color: #FFFFFF;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--admin-border-card);
  color: #CBD5E1;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

/* ===== 9. FORM GRIDS & LIVE COLOR PICKERS ===== */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

@media (max-width: 768px) {
  .form-grid-2,
  .form-grid-3,
  .form-grid-4 {
    grid-template-columns: 1fr;
  }
}

.color-input-tile-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--admin-bg-input);
  border: 1px solid var(--admin-border-card);
  border-radius: 10px;
  padding: 6px 12px;
  transition: all 0.2s ease;
}

.color-input-tile-wrapper:focus-within {
  border-color: var(--admin-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: var(--admin-bg-input-focus);
}

.color-input-tile-wrapper input[type="color"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border: none;
  cursor: pointer;
  background: none;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
}

.color-input-tile-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-input-tile-wrapper input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.color-input-tile-wrapper input[type="text"] {
  border: none;
  background: transparent;
  color: #FFFFFF;
  font-family: var(--admin-font-mono);
  font-size: 0.9rem;
  outline: none;
  flex: 1;
}

/* Gradient Preview Widget */
.gradient-live-preview {
  height: 90px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  margin-top: 15px;
}

/* Section Header Badges */
.admin-section-header {
  font-family: var(--admin-font-display);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 30px 0 18px 0;
  padding-left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--admin-blue);
}
.admin-section-header.green { border-color: var(--admin-emerald); color: #34D399; }
.admin-section-header.amber { border-color: var(--admin-amber); color: #FBBF24; }
.admin-section-header.purple { border-color: var(--admin-purple); color: #C084FC; }
.admin-section-header.pink { border-color: var(--admin-pink); color: #F472B6; }

/* Flash Messages */
.admin-alert {
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.admin-alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
}

.admin-alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #F87171;
}

.admin-alert-info {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60A5FA;
}

/* Custom Scrollbar for Admin */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(6, 9, 15, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Alert Flash Compatibility */
.alert {
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}
.alert-success { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.35); color: #34D399; }
.alert-error { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.35); color: #F87171; }
.alert-info { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.35); color: #60A5FA; }
.alert-warning { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.35); color: #FBBF24; }
.alert .container { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; }
.alert-close { background: none; border: none; color: inherit; font-size: 1.25rem; cursor: pointer; margin-left: auto; line-height: 1; opacity: 0.7; }
.alert-close:hover { opacity: 1; }

/* ===== 10. AUTH CONSOLE LAYOUT (control.rootjumps.tech) ===== */
body.admin-auth-layout {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #06090F;
  font-family: var(--admin-font-body);
  color: var(--admin-text-body);
  position: relative;
  overflow-x: hidden;
  padding: 24px;
  box-sizing: border-box;
}

body.admin-auth-layout::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.auth-ambient-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, rgba(139, 92, 246, 0.07) 50%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.auth-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 2;
}

.auth-card {
  background: rgba(13, 18, 32, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 38px 34px;
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}

.auth-logo-badge img {
  max-height: 32px;
  width: auto;
  object-fit: contain;
}

.auth-card-header h2 {
  font-family: var(--admin-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.auth-card-header p {
  font-size: 0.84rem;
  color: var(--admin-text-muted);
  margin: 0;
}

.auth-access-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #34D399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 10px;
  border-radius: 9999px;
  margin-top: 10px;
}

.auth-footer-meta {
  text-align: center;
  margin-top: 24px;
  font-size: 0.78rem;
  color: #64748B;
}

.auth-footer-meta a {
  color: #60A5FA;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  transition: color 0.2s ease;
}

.auth-footer-meta a:hover {
  color: #93C5FD;
}
