:root {
  --bg-main: #0c0c0a;
  --bg-sidebar: #10110e;
  --bg-card: #171813;
  --bg-card-hover: #20211b;
  --bg-input: #11120e;
  --border-color: #303127;
  --border-active: #f5cc52;
  --primary: #f5cc52;
  --primary-hover: #e4b736;
  --primary-glow: rgba(245, 204, 82, 0.35);
  --primary-faint: rgba(245, 204, 82, 0.08);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --accent-purple: #ffe39a;
  --accent-dark-purple: #6d531b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #25283a;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Background Cyber Grid effect */
.cyber-bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(circle at 50% -20%, rgba(245, 204, 82, 0.15) 0%, transparent 60%),
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
  pointer-events: none;
  z-index: 0;
}

/* App Container Layout */
#dashboard-view {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex: 1;
}

#app {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 100vh;
  flex: 1;
}

/* Login View */
.login-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 204, 82, 0.12);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f5cc52, #b29848);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  box-shadow: 0 0 20px var(--primary-glow);
}

.brand-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-title span {
  color: var(--primary);
  text-shadow: 0 0 12px var(--primary-glow);
}

.glow-purple,
.glow-red {
  color: #ffe39a;
  text-shadow: 0 0 25px rgba(245, 204, 82, 0.7);
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
  transition: width 0.3s;
}

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

.app-selector-box {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

.app-selector-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.app-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.app-select:focus {
  border-color: var(--primary);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  color: #9ca3af;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  border-left: 3px solid transparent;
  user-select: none;
}

.nav-item:hover {
  background: rgba(245, 204, 82, 0.08);
  color: #ffffff;
  border-left-color: rgba(245, 204, 82, 0.5);
  transform: translateX(3px);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(245, 204, 82, 0.2) 0%, rgba(245, 204, 82, 0.03) 100%);
  color: #ffe39a;
  border-left: 3px solid #f5cc52;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(245, 204, 82, 0.12);
}

.nav-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

.nav-item:hover i {
  transform: scale(1.15);
  color: #f5cc52;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  background: #090a10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-avatar {
  width: 32px;
  height: 32px;
  background: #25283a;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Topbar */
.topbar {
  height: 64px;
  background: rgba(12, 13, 20, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.3px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pill.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.paused {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-pill.maintenance {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

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

.app-secret-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Page Content Body */
.page-container {
  padding: 28px;
  flex: 1;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 204, 82, 0.5), transparent);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 204, 82, 0.5);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 204, 82, 0.15);
}

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

.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-faint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.stat-subtext {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Cards & Panels */
.cyber-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease;
}

.cyber-panel:hover {
  border-color: rgba(245, 204, 82, 0.25);
}

.cyber-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(245, 204, 82, 0.04) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.cyber-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cyber-panel-body {
  padding: 20px;
}

/* Cyber Form Inputs */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(245, 204, 82, 0.2);
}

/* Cyber Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f5cc52, #b29848);
  color: white;
  box-shadow: 0 0 15px rgba(245, 204, 82, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffe39a, #e4b736);
  box-shadow: 0 0 20px rgba(245, 204, 82, 0.55);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #1c1e2d;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #25283a;
  border-color: #3b3f5c;
}

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

.btn-danger:hover {
  background: #ef4444;
  color: white;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

/* Cyber Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.cyber-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 0.5px;
}

.cyber-table td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid #181a26;
  color: var(--text-main);
  vertical-align: middle;
}

.cyber-table tr:hover td {
  background: rgba(245, 204, 82, 0.02);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-unused {
  background: rgba(228, 204, 130, 0.15);
  color: #e4cc82;
  border: 1px solid rgba(228, 204, 130, 0.3);
}

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

.badge-expired {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.badge-level {
  background: rgba(245, 204, 82, 0.15);
  color: var(--primary);
  border: 1px solid rgba(245, 204, 82, 0.3);
}

/* Code Snippets & Syntax blocks */
.code-block {
  background: #090a10;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #e5e7eb;
  overflow-x: auto;
  line-height: 1.6;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 540px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(245, 204, 82, 0.15);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

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

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
}

.modal-close:hover {
  color: white;
}

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

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

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

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: white;
  min-width: 280px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease;
}

.toast.toast-error {
  border-left-color: var(--danger);
}

.toast.toast-success {
  border-left-color: var(--success);
}

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

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    width: 70px;
  }
  .sidebar .nav-item span,
  .sidebar .brand-title,
  .sidebar .app-selector-box {
    display: none;
  }
}

@media (max-width: 768px) {
  #app {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .topbar {
    padding: 0 16px;
  }
  .page-container {
    padding: 16px;
  }
}

/* ==================== ÁREA ADMIN ENHANCED STYLES ==================== */
.admin-hero-banner {
  background: linear-gradient(135deg, rgba(245, 204, 82, 0.12) 0%, rgba(18, 19, 28, 0.98) 60%, rgba(10, 11, 16, 0.98) 100%);
  border: 1px solid rgba(245, 204, 82, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.admin-hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f5cc52, #d8b4fe, transparent);
  box-shadow: 0 0 12px #f5cc52;
}

.admin-hero-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.admin-badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(245, 204, 82, 0.15);
  border: 1px solid rgba(245, 204, 82, 0.4);
  color: #ffe39a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.live-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5cc52;
  box-shadow: 0 0 10px #f5cc52;
  animation: beacon-pulse 1.8s infinite;
}

@keyframes beacon-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 204, 82, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(245, 204, 82, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 204, 82, 0); }
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: #0e0f17;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.admin-stat-card:hover {
  border-color: rgba(245, 204, 82, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 204, 82, 0.1);
}

.admin-stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f5cc52, transparent);
}

.admin-stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(245, 204, 82, 0.1);
  border: 1px solid rgba(245, 204, 82, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 12px;
}

.admin-stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 4px;
}

.admin-stat-label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

.admin-app-card {
  background: #0f1019;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.admin-app-card.active-app {
  border-color: var(--primary);
  box-shadow: 0 0 25px rgba(245, 204, 82, 0.18);
  background: linear-gradient(180deg, rgba(245, 204, 82, 0.08) 0%, #0f1019 100%);
}

.admin-app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 204, 82, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 204, 82, 0.15);
}

.admin-app-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(245, 204, 82, 0.2), rgba(153, 27, 27, 0.4));
  border: 1px solid rgba(245, 204, 82, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
}

.admin-secret-box {
  background: #07070b;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
  gap: 8px;
}

.admin-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.04);
  color: #9ca3af;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-subnav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.admin-subtab-btn {
  background: #0f1019;
  border: 1px solid var(--border-color);
  color: #9ca3af;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-subtab-btn:hover {
  background: rgba(245, 204, 82, 0.1);
  color: #ffffff;
  border-color: rgba(245, 204, 82, 0.4);
}

.admin-subtab-btn.active {
  background: linear-gradient(135deg, rgba(245, 204, 82, 0.25) 0%, rgba(153, 27, 27, 0.25) 100%);
  border-color: #f5cc52;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(245, 204, 82, 0.2);
}

.admin-sub-pane {
  animation: fadeIn 0.25s ease;
}

.switch-label-card {
  background: #07070b;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.switch-label-card:hover {
  border-color: rgba(245, 204, 82, 0.4);
}

.switch-label-card input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* TryhardAuth — warm graphite and brushed gold */
:root { --radius-sm: 9px; --radius-md: 16px; --radius-lg: 22px; --text-muted: #b3b4a8; --text-dim: #919484; }
::selection { background: #f5cc52; color: #17180f; }
.btn-primary, .btn-hero-primary, .brand-icon { color: #19180e; background: linear-gradient(135deg, #ffe49a, #edc447); box-shadow: 0 4px 18px #0003; }
.btn-primary:hover, .btn-hero-primary:hover { color: #17180f; background: #ffe49a; box-shadow: 0 8px 26px #e4b73620; }
.brand-title { letter-spacing: -.8px; font-weight: 800; }
.brand-icon { border-radius: 12px; }
.cyber-bg-overlay { opacity: .5; background-image: radial-gradient(ellipse at 50% 0%, #edc44716, transparent 60%); }
.login-card { background: #171813; border-color: #edc44730; box-shadow: 0 30px 90px #0005; }
.form-control:focus { border-color: #edc447; box-shadow: 0 0 0 3px #edc44718; }
:focus-visible { outline: 2px solid #f5cc52; outline-offset: 4px; }
.cyber-panel { box-shadow: 0 6px 28px #0002; }
.sidebar { border-right-color: #ffffff0d; }
.nav-item.active { background: #edc44712; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* TryhardAuth workspace refinements */
.brand-title{color:#f2f1e9!important;letter-spacing:-.8px;text-transform:none}.brand-title span{text-shadow:none;color:#f4d477}a .brand-title{color:#f2f1e9}.brand-icon{box-shadow:none}.sidebar{background:#13140f;border-color:#ffffff0d}.sidebar-header{border-color:#ffffff0c}.nav-item{border-radius:8px;margin:2px 9px;font-size:12px}.nav-item.active{background:#f4d4770c;border-color:#f4d477;color:#f4d477}.nav-item:hover{background:#ffffff04}.topbar{background:#11120eea;border-bottom:1px solid #ffffff0b}.page-title{font-size:19px;font-weight:550;letter-spacing:-.5px}.admin-hero-banner{background:radial-gradient(ellipse at top left,#f4d4770c,transparent 75%),#181914;border:1px solid #f4d47722;box-shadow:none;border-radius:16px}.admin-hero-banner:before,.admin-hero-banner:after{display:none}.admin-badge-pulse{background:none;border:0;box-shadow:none;font-size:9px;letter-spacing:1.7px;padding:0;color:#c4b36f}.admin-hero-banner h2{font-weight:500!important;font-size:29px!important;letter-spacing:-1px!important}.admin-hero-banner h2 i{display:none}.admin-subnav{border:0;background:#15160f;padding:5px;border-radius:10px}.admin-subtab-btn{border-radius:7px;font-size:11px}.admin-subtab-btn.active{background:#2b2e20;box-shadow:none;color:#f2deb1}.admin-stat-card,.admin-app-card{background:#1a1c14;border:1px solid #ffffff0c;box-shadow:none}.admin-app-card.active-app{border-color:#f4d47740;box-shadow:none}.admin-stat-icon-wrap{background:#f4d4770a;box-shadow:none;border-color:#f4d47714}.admin-stat-value{font-weight:500}.cyber-panel-header{background:#1c1e16}.cyber-panel-title{font-size:13px;font-weight:550}.btn-primary{color:#222318!important;box-shadow:none!important}.form-control,.app-select{border-color:#ffffff14;background:#11120d}.admin-avatar{background:#f4d47718;color:#f4d477}.plan-usage{padding:13px 15px;margin:0 16px 18px;border:1px solid #f4d47724;border-radius:9px;background:#f4d47705;font-size:10px;color:#a4ad8e}.plan-usage strong{display:block;font-size:12px;color:#f1db9c;margin-bottom:7px;font-weight:500}.usage-track{height:3px;background:#ffffff0a;border-radius:3px;margin-top:9px;overflow:hidden}.usage-track span{display:block;height:100%;background:#f4d477}.owner-account-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.owner-account-table th,.owner-account-table td{padding:15px;border-bottom:1px solid #ffffff0c}.owner-account-table th{color:#939c7b;font-size:10px;font-weight:500}.owner-account-table input{background:#11120e;color:#eee;border:1px solid #ffffff18;border-radius:6px;width:65px;padding:7px}.account-management{overflow:auto}.account-management h2{font-size:25px;font-weight:500;letter-spacing:-.7px;margin-bottom:10px}.account-management>p{color:var(--text-muted);margin-bottom:25px}.account-table-status{color:#c9d2b0}.workspace-account-banner{display:flex;align-items:center;gap:13px;color:#aab395;font-size:12px;margin-bottom:25px}.workspace-account-banner strong{color:#f4d477}.btn:disabled{opacity:.5;cursor:not-allowed}.tab-pane{animation:none}.live-beacon{animation:none;box-shadow:none;background:#c6cba4}
@media(max-width:800px){.plan-usage{display:none}.admin-hero-banner h2{font-size:22px!important}.admin-hero-grid{gap:20px}.admin-app-card{min-width:0}.topbar-right .app-secret-badge{display:none}}
.modal-overlay:not(.active){visibility:hidden}.modal-overlay.active{visibility:visible}
@media(max-width:768px){.sidebar{height:auto;position:relative;max-height:none}.sidebar-header{padding:13px 16px;height:61px;justify-content:flex-start;gap:16px}.sidebar .brand-title{display:block}.sidebar-header>button{margin-left:auto;margin-right:72px}.sidebar .sidebar-nav{display:flex;flex-direction:row;overflow-x:auto;padding:7px 8px;flex:none;order:3;border-top:1px solid #ffffff08}.sidebar .nav-item{flex-shrink:0;margin:0 2px;gap:7px;padding:9px 12px;font-size:11px}.sidebar .nav-item span{display:inline}.sidebar .nav-item .badge{display:none}.sidebar .app-selector-box{display:block;order:2;padding:8px 16px}.sidebar .app-selector-label{display:none}.sidebar .app-select{padding:7px 10px;font-size:11px}.sidebar-footer{position:absolute;top:12px;right:14px;padding:0;border:0;background:none}.sidebar-footer>div:first-child{display:none}.plan-usage{display:block;order:4;margin:0;padding:9px 16px;border:0;border-top:1px solid #ffffff08;border-radius:0}.plan-usage strong{display:inline;margin-right:12px;font-size:10px}.plan-usage>div:not(.usage-track){display:inline}.plan-usage .usage-track{display:none}.main-wrapper{width:100%}.topbar{position:relative;top:auto;height:57px}.page-title{font-size:17px}.topbar-right>.btn{display:none}.admin-hero-grid{display:flex;flex-direction:column}.admin-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-subnav{overflow-x:auto;flex-wrap:nowrap}.admin-subtab-btn{flex-shrink:0}.cyber-panel-header{align-items:flex-start;flex-direction:column}.cyber-panel-header>div{max-width:100%;flex-wrap:wrap}#admin-app-filter-input{width:100%!important}#admin-apps-grid{grid-template-columns:minmax(0,1fr)!important}.admin-hero-banner{padding:20px}.admin-app-card{padding:18px}.admin-stat-card{padding:18px}}
@media(max-width:768px){.sidebar-footer>div:first-child{display:none!important}.sidebar-header>button{margin-right:78px}}
button.nav-item{border:0;width:calc(100% - 18px);background:transparent;text-align:left;color:inherit;cursor:pointer}button.nav-item.active{background:#f4d4770c;color:#f4d477}
