/* Admin Panel Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Accessibility: visible keyboard focus indicator. */
:focus-visible {
  outline: 2px solid #8b5cf6 !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: #8b5cf6;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  z-index: 100000;
  transition: top 0.2s;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #141419;
  --bg-card: rgba(20, 20, 25, 0.95);
  --bg-input: rgba(0, 0, 0, 0.4);
  --accent: #FF1493;
  --accent-hover: #ff3aa8;
  --accent-dim: rgba(255, 20, 147, 0.15);
  --accent-border: rgba(255, 20, 147, 0.3);
  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --text-muted: #8a8a8a;
  --border: rgba(255, 255, 255, 0.1);
  --success: #2ecc71;
  --warning: #f39c12;
  --error: #e74c3c;
  --twitch: #9146FF;
  --discord: #5865F2;
  --kick: #53fc18;
  --rumble: #85C742;
  
  /* Keep admin-specific colors */
  --primary-color: #8b5cf6;
  --primary-hover: #7c3aed;
  --secondary-color: #6366f1;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #3b82f6;
  --background: #0f1419;
  --surface: #1a1f2e;
  --surface-hover: #242938;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, var(--bg-primary) 0%, #1a0a1a 50%, var(--bg-primary) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  color-scheme: dark;
  accent-color: var(--accent);
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader {
  text-align: center;
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
}

.logo-img {
  max-height: 32px;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
}

.logo span {
  color: var(--accent);
  font-style: italic;
}

.spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  border: 4px solid var(--border);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

svg.spin {
  animation: spin 1s linear infinite;
}

/* Login Screen */
#login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background: linear-gradient(135deg, var(--bg-primary) 0%, #1a0a1a 50%, var(--bg-primary) 100%);
}

.login-container {
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  padding: 50px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 100px rgba(255, 20, 147, 0.1);
}

.login-container .logo {
  font-size: 32px;
  margin-bottom: 20px;
}

.login-container .logo-img {
  max-height: 38px;
}

.login-container h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.login-container .subtitle {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.login-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-switch-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.login-switch-divider::before,
.login-switch-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-switch-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-switch-login:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--primary-color);
}
.btn-switch-login svg {
  width: 18px;
  height: 18px;
}

.login-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 20px;
  margin-bottom: 2rem;
}

.footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  isolation: isolate;
  text-decoration: none;
}

.btn:hover {
  /* No hover effects to prevent label flickering */
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--surface-hover);
}

.btn-twitch {
  background: var(--twitch);
}

.btn-twitch:hover {
  box-shadow: 0 10px 30px rgba(145, 70, 255, 0.4);
}

.btn-discord {
  background: var(--discord);
}

.btn-discord:hover {
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}

.btn-kick {
  background: var(--kick);
  color: #000;
}

.btn-kick:hover {
  box-shadow: 0 10px 30px rgba(83, 252, 24, 0.4);
}

.btn-email {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-email:hover {
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.08);
}

.btn-success {
  background: var(--success-color);
}

.btn-success:hover {
  background: #059669;
}

.btn-danger {
  background: var(--danger-color);
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-warning {
  background: var(--warning-color);
}

.btn-warning:hover {
  background: #d97706;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* Admin Panel Layout */
#admin-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-left .logo {
  font-size: 1.5rem;
  margin: 0;
}

.badge {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Account Switcher */
.account-switcher {
  position: relative;
}

.account-switcher-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.account-switcher-btn:hover {
  background: var(--background);
}

.account-switcher-btn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.account-switcher-btn svg {
  width: 16px;
  height: 16px;
}

.account-switcher-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 250px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
}

.account-switcher-accounts {
  padding: 0.5rem;
}

.account-switcher-account {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.account-switcher-account:hover {
  background: var(--surface-hover);
}

.account-switcher-account.active {
  background: var(--primary-color);
}

.account-switcher-account img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.account-switcher-account-info {
  flex: 1;
}

.account-switcher-account-name {
  font-weight: 600;
  display: block;
}

.account-switcher-account-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.account-switcher-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

.account-switcher-add {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.account-switcher-add:hover {
  background: var(--surface-hover);
}

.account-switcher-add svg {
  width: 16px;
  height: 16px;
}

/* Main Content */
.admin-content {
  display: flex;
  flex: 1;
}

.admin-sidebar {
  width: 250px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem 1rem;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  font-weight: 500;
}

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

.nav-item.active {
  background: var(--primary-color);
  color: white;
}

.nav-item svg {
  width: 20px;
  height: 20px;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 15px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.account-switcher-sidebar {
  flex: 1;
  position: relative;
  min-width: 0;
}

.account-switcher-sidebar-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  min-width: 0;
}

.account-switcher-sidebar-btn:hover {
  opacity: 0.8;
}

.account-switcher-sidebar-btn .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.account-switcher-sidebar-btn .user-details {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.account-switcher-sidebar-btn .user-name {
  display: block;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-switcher-sidebar-btn .user-email {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  whitespace: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-switcher-sidebar-btn .dropdown-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: auto;
}

.account-switcher-sidebar-dropdown {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
}

.account-switcher-sidebar-accounts {
  padding: 8px;
}

.account-switcher-sidebar-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.account-switcher-sidebar-account:hover {
  background: var(--surface-hover);
}

.account-switcher-sidebar-account.active {
  background: var(--primary-color);
}

.account-switcher-sidebar-account img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.account-switcher-sidebar-account-info {
  flex: 1;
  min-width: 0;
}

.account-switcher-sidebar-account-name {
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-switcher-sidebar-account-email {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-switcher-sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.account-switcher-sidebar-add {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.875rem;
}

.account-switcher-sidebar-add:hover {
  background: var(--surface-hover);
}

.account-switcher-sidebar-add svg {
  width: 16px;
  height: 16px;
}

.btn-signout {
  background: none;
  border: none;
  padding: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-signout:hover {
  color: var(--error);
  background: rgba(231, 76, 60, 0.1);
}

.btn-signout svg {
  width: 20px;
  height: 20px;
}

/* Main Content Area */
.admin-main {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.page-content {
  display: none;
}

.page-content.active {
  display: block;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
}

.page-header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Search Input */
.search-input {
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  min-width: 250px;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-icon-primary {
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary-color);
}

.stat-icon-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.stat-icon-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.stat-icon-info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info-color);
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.card-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  background: var(--background);
  border-radius: 8px;
}

.info-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.info-value {
  color: var(--text-primary);
  font-weight: 600;
}

/* Resource Bars */
.resource-bars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.resource-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.resource-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
}

.resource-bar {
  height: 12px;
  background: var(--background);
  border-radius: 999px;
  overflow: hidden;
}

.resource-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

/* Table */
.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: var(--background);
}

.data-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.data-table tbody tr:hover {
  background: var(--surface-hover);
}

.text-center {
  text-align: center !important;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.status-badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.status-badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.status-badge-info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info-color);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-header h2 {
  font-size: 1.25rem;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.modal-body {
  padding: 1.5rem;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 280px;
  max-width: 440px;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  color: var(--text-primary);
  font-size: 0.875rem;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.3s, transform 0.3s;
}

.toast-visible {
  opacity: 1;
  transform: translateX(0);
}

.toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.toast-msg {
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
}

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

.toast-success {
  border-left: 3px solid #22c55e;
}

.toast-success .toast-icon {
  color: #22c55e;
}

.toast-error {
  border-left: 3px solid #ef4444;
}

.toast-error .toast-icon {
  color: #ef4444;
}

.toast-info {
  border-left: 3px solid var(--primary-color);
}

.toast-info .toast-icon {
  color: var(--primary-color);
}

/* Form */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Platform Health Alert Banner */
.health-alert-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  animation: alertPulse 2s ease-in-out infinite;
}

@keyframes alertPulse {
  0%, 100% { border-color: rgba(239, 68, 68, 0.3); }
  50% { border-color: rgba(239, 68, 68, 0.6); }
}

.health-alert-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  color: var(--danger-color);
}

.health-alert-icon svg {
  width: 24px;
  height: 24px;
}

.health-alert-content {
  flex: 1;
}

.health-alert-content strong {
  display: block;
  color: var(--danger-color);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.health-alert-content p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

.health-alert-actions {
  flex-shrink: 0;
}

/* Global Tokens Grid */
.global-tokens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.global-token-card {
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.global-token-card-ok {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
}

.global-token-card-error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}

.global-token-header {
  margin-bottom: 0.75rem;
}

.global-token-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.global-token-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.global-token-item:last-child {
  border-bottom: none;
}

.global-token-type {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.global-token-error {
  font-size: 0.75rem;
  color: var(--danger-color);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-token-action {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Platform Badges */
.platform-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.platform-kick {
  background: rgba(83, 252, 24, 0.15);
  color: #53fc18;
}

.platform-twitch {
  background: rgba(145, 70, 255, 0.15);
  color: #9146FF;
}

.platform-youtube {
  background: rgba(255, 0, 0, 0.15);
  color: #FF0000;
}

.platform-rumble {
  background: rgba(133, 199, 66, 0.15);
  color: #85C742;
}

.platform-blaze {
  background: rgba(255, 106, 0, 0.15);
  color: #ff944d;
}

.platform-velora {
  background: rgba(226, 175, 0, 0.15);
  color: #e2af00;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-content {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}
