/* ==========================================================================
   leaders.admin-tools.ru — Design System & Stylesheet
   Arizona RP Leader System (Modern Dark Cyber Aesthetics)
   ========================================================================== */

:root {
  --bg-body: #07090e;
  --bg-surface: #0e121d;
  --bg-surface-elevated: #141a29;
  --bg-surface-glass: rgba(16, 22, 36, 0.75);
  --bg-input: rgba(10, 14, 24, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(99, 102, 241, 0.35);

  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-secondary: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-violet: #8b5cf6;

  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --gradient-dark: linear-gradient(180deg, rgba(20, 26, 41, 0.9) 0%, rgba(14, 18, 29, 0.95) 100%);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(236, 72, 153, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.03) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Typography & Titles */
h1, h2, h3, h4, .brand-font {
  font-family: 'Outfit', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Left Sidebar & App Layout (Identical to Arizona RP Admin System)
   ========================================================================== */

.ldr-app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* Sidebar Backdrop (Mobile) */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 490;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* App Sidebar (Left Navigation) */
.ldr-sidebar, .app-sidebar {
  width: 268px;
  min-width: 268px;
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 500;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.32);
  flex-shrink: 0;
  font-size: 20px;
}

.brand-text h1 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff 40%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidebar-close-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fff;
}

/* Sidebar Server Selector Box */
.sidebar-server-box {
  padding: 12px 14px 6px 14px;
  flex-shrink: 0;
}

.sidebar-server-select {
  width: 100%;
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid var(--border-medium);
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sidebar-server-select:hover, .sidebar-server-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}

/* Sidebar Navigation Items */
.sidebar-nav {
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 4px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(148, 163, 184, 0.65);
  user-select: none;
}

.sidebar-group-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.sidebar-link:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(3px);
}

.sidebar-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.38);
  font-weight: 700;
  transform: none;
}

.sidebar-link-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-link-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  flex-shrink: 0;
}

.sidebar-badge.pulse-green {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.sidebar-badge.badge-rose {
  background: rgba(244, 63, 94, 0.25);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.sidebar-badge.badge-gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Sidebar Footer & User Pill */
.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 9, 14, 0.6);
  flex-shrink: 0;
}

.sidebar-user-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(20, 26, 41, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 7px 10px;
}

.sidebar-user-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1;
}

.sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(99, 102, 241, 0.3);
  overflow: hidden;
}

.sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.sidebar-user-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.badge-tag {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-tag.badge-role {
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}

.badge-tag.badge-server {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.sidebar-logout-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.sidebar-logout-btn:hover {
  background: rgba(239, 68, 68, 0.28);
  color: #fff;
}

/* ==========================================================================
   Content Wrapper & Top Bar
   ========================================================================== */

.ldr-content-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ldr-topbar {
  height: 60px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: #f8fafc;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}

.topbar-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.crumb-root {
  color: var(--text-dim);
  font-weight: 500;
}

.crumb-sep {
  color: rgba(255, 255, 255, 0.2);
}

.crumb-active {
  color: #fff;
  font-weight: 700;
}

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

/* Discord OAuth & Action Buttons */
.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5865F2;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
}

.btn-discord:hover {
  background: #4752c4;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
  transform: translateY(-1px);
}

.btn-discord svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Main Content Area */
.ldr-main {
  flex: 1;
  padding: 24px 28px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .ldr-sidebar, .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  }

  .ldr-sidebar.mobile-open, .app-sidebar.mobile-open {
    transform: translateX(0);
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .sidebar-close-btn {
    display: inline-flex;
  }

  .ldr-main {
    padding: 16px 14px;
  }
}
  font-weight: 600;
}

.ldr-user-info {
  display: flex;
  flex-direction: column;
}

.ldr-user-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.ldr-user-role {
  font-size: 10px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-weight: 600;
}

/* Main Container */
.ldr-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

/* Page Titles */
.ldr-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.ldr-page-title {
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ldr-page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* KPI Metric Cards Grid */
.ldr-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.ldr-kpi-card {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.ldr-kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.ldr-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0.7;
}

.ldr-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

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

.ldr-kpi-icon {
  font-size: 22px;
  opacity: 0.85;
}

.ldr-kpi-val {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  font-family: 'Outfit', sans-serif;
}

.ldr-kpi-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Structure Filter Tabs */
.ldr-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 14px;
  flex-wrap: wrap;
}

.ldr-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ldr-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.ldr-tab-btn:hover {
  background: var(--bg-surface-elevated);
  color: #fff;
  border-color: var(--border-medium);
}

.ldr-tab-btn.active {
  background: rgba(99, 102, 241, 0.16);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.25);
}

.ldr-search-box {
  position: relative;
  min-width: 260px;
}

.ldr-search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 8px 14px 8px 36px;
  font-size: 13px;
  color: #fff;
  outline: none;
  transition: var(--transition-fast);
}

.ldr-search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.ldr-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 14px;
  pointer-events: none;
}

/* Glass Card Container */
.ldr-card {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.ldr-card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ldr-card-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ldr-card-body {
  padding: 20px;
}

/* Leaders Cards Grid / Table */
.ldr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.ldr-profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: var(--transition-normal);
}

.ldr-profile-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.ldr-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ldr-avatar-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 1px solid var(--border-medium);
}

.ldr-meta {
  flex-grow: 1;
}

.ldr-meta-nick {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: block;
}

.ldr-meta-nick:hover {
  color: var(--accent-primary);
}

.ldr-meta-frac {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.ldr-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Rank & Role Badges */
.badge-role {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-role-leader {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-role-zam {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.badge-role-judge {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

/* Indicators: Days, Points, Punishments */
.ldr-stat-chips {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.ldr-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ldr-chip-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.ldr-chip-value {
  font-size: 14px;
  font-weight: 700;
}

.val-points {
  color: #38bdf8;
}

.val-warns {
  color: #f59e0b;
}

.val-reprimands {
  color: #ef4444;
}

.val-days {
  color: #10b981;
}

/* Quick Action Buttons */
.ldr-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.ldr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
}

.ldr-btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.ldr-btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}

.ldr-btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border: 1px solid var(--border-medium);
}

.ldr-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

.ldr-btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

.ldr-btn-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.ldr-btn-amber:hover {
  background: rgba(245, 158, 11, 0.25);
  color: #fff;
}

.ldr-btn-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.ldr-btn-emerald:hover {
  background: rgba(16, 185, 129, 0.25);
  color: #fff;
}

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

/* Rich Tables */
.ldr-table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

.ldr-table th {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.ldr-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

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

/* Online Table & Heatmap */
.online-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.online-day-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  border: 1px solid var(--border-subtle);
}

.online-day-name {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

.online-day-time {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.online-day-bar {
  width: 100%;
  height: 4px;
  background: #334155;
  border-radius: var(--radius-full);
  margin-top: 6px;
  overflow: hidden;
}

.online-bar-fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
}

/* Blacklist Alert Banner */
.ldr-bl-warning-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fca5a5;
  margin-bottom: 20px;
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Interactive Modal Dialogs */
.ldr-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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: 1000;
  padding: 20px;
}

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

.ldr-modal {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modal-enter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.ldr-modal-title {
  font-size: 18px;
  font-weight: 700;
}

.ldr-modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.ldr-modal-close:hover {
  color: #fff;
}

.ldr-modal-body {
  padding: 24px;
}

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

/* Form Controls */
.ldr-form-group {
  margin-bottom: 16px;
}

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

.ldr-input, .ldr-select, .ldr-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: var(--transition-fast);
  font-family: inherit;
}

.ldr-input:focus, .ldr-select:focus, .ldr-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.ldr-textarea {
  resize: vertical;
  min-height: 80px;
}

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

.ldr-toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toast-slide 0.25s ease;
  min-width: 260px;
  max-width: 420px;
}

@keyframes toast-slide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.ldr-toast-success { border-left: 4px solid var(--accent-emerald); }
.ldr-toast-error   { border-left: 4px solid var(--accent-rose); }
.ldr-toast-info    { border-left: 4px solid var(--accent-cyan); }
.ldr-toast-warning { border-left: 4px solid var(--accent-amber); }

/* Responsive */
@media (max-width: 900px) {
  .ldr-header-inner {
    flex-wrap: wrap;
  }
  .ldr-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
  .ldr-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Leader Portal Authentication Component Styles
   ========================================================================== */
.ldr-auth-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 16px 80px;
  min-height: calc(100vh - 180px);
}

.ldr-auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ldr-auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}

.ldr-auth-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.ldr-auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  font-family: 'Outfit', sans-serif;
}

.ldr-auth-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.45;
}

.ldr-auth-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  text-align: left;
  margin-bottom: 20px;
}
.ldr-auth-alert-error {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fca5a5;
}

.ldr-auth-tabs {
  display: flex;
  gap: 6px;
  background: rgba(10, 14, 24, 0.6);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--border-subtle);
}

.ldr-auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.ldr-auth-tab.active {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.ldr-auth-tab:hover:not(.active) {
  color: var(--text-main);
}

.ldr-btn-block {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  font-size: 0.95rem;
}

.ldr-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: ldr-spin 0.8s linear infinite;
}

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

.ldr-logout-btn {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fda4af;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: var(--transition-fast);
}
.ldr-logout-btn:hover {
  background: rgba(244, 63, 94, 0.3);
  color: #fff;
}

