@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* =============================================
   DESIGN SYSTEM VARIABLES & CORE
   ============================================= */
:root {
  /* Colors - Sleek Premium HSL System */
  --bg-color: hsl(222, 47%, 6%);
  --panel-bg: rgba(10, 16, 30, 0.45);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-glow: rgba(139, 92, 246, 0.25);
  
  --accent-primary: hsl(262, 83%, 65%);
  --accent-primary-glow: hsla(262, 83%, 65%, 0.4);
  --accent-secondary: hsl(327, 85%, 60%);
  --accent-secondary-glow: hsla(327, 85%, 60%, 0.35);
  --accent-emerald: hsl(150, 84%, 48%);
  --accent-emerald-glow: hsla(150, 84%, 48%, 0.3);
  --accent-cyan: hsl(190, 90%, 50%);
  --accent-cyan-glow: hsla(190, 90%, 50%, 0.3);
  --accent-danger: hsl(0, 84%, 60%);
  --accent-danger-glow: hsla(0, 84%, 60%, 0.3);
  --accent-warning: hsl(36, 100%, 55%);
  --accent-warning-glow: hsla(36, 100%, 55%, 0.3);
  
  /* Text Theme */
  --text-main: hsl(220, 15%, 95%);
  --text-primary: hsl(220, 15%, 95%);
  --text-muted: hsl(220, 13%, 68%);
  --text-dark: hsl(220, 20%, 15%);
  
  /* Styling Helpers */
  --glass-shadow: 0 16px 36px 0 rgba(0, 0, 0, 0.55), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-family: 'Outfit', sans-serif;
  --sidebar-width: 280px;
}

/* =============================================
   BASE STYLES & RESET
   ============================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  background-image: 
    radial-gradient(at 0% 0%, hsla(262, 83%, 65%, 0.12) 0px, transparent 40%),
    radial-gradient(at 100% 100%, hsla(327, 85%, 60%, 0.1) 0px, transparent 40%),
    radial-gradient(at 50% 50%, hsla(190, 90%, 50%, 0.03) 0px, transparent 60%);
  background-attachment: fixed;
  background-size: cover;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

button, input, select, textarea {
  outline: none;
  border: none;
  background: none;
  color: inherit;
}

/* =============================================
   GLASSMORPHISM UTILITIES
   ============================================= */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* =============================================
   LAYOUT & CONTAINER
   ============================================= */
.app-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* =============================================
   SIDEBAR STYLING
   ============================================= */
.sidebar {
  width: var(--sidebar-width);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--panel-border);
  background: rgba(8, 12, 22, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  position: fixed;
  height: 100vh;
  z-index: 100;
  transition: var(--transition-smooth);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.8px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 28px;
}

.sidebar-logo i {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 26px;
  filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.3));
}

.server-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.server-profile:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.server-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary-glow);
}

.server-name {
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

/* Sidebar Scrollable Nav */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 4px;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

.menu-category {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
  margin: 22px 0 10px 10px;
}

.menu-category:first-of-type {
  margin-top: 0;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 550;
  color: var(--text-muted);
  border-left: 3px solid transparent;
  transition: var(--transition-smooth);
}

.menu-item a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(4px);
}

.menu-item.active a {
  color: white;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0.02) 100%);
  border-left: 3px solid var(--accent-primary);
  font-weight: 700;
  box-shadow: inset 1px 0 0 rgba(139, 92, 246, 0.15);
}

.menu-item i {
  font-size: 16px;
  width: 22px;
  text-align: center;
  transition: var(--transition-smooth);
}

.menu-item a:hover i {
  color: var(--accent-primary);
  transform: scale(1.1);
}

.menu-item.active a i {
  color: var(--accent-primary);
}

/* User profile panel inside sidebar */
.user-profile-bar {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.user-info {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  max-width: 140px;
}

.user-tag {
  font-weight: 700;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-btn {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 16px;
  transition: var(--transition-smooth);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.logout-btn:hover {
  transform: scale(1.06);
  color: var(--accent-danger);
  background: var(--accent-danger-glow);
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 12px var(--accent-danger-glow);
}

/* =============================================
   MAIN CONTENT AREA
   ============================================= */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 48px;
  min-height: 100vh;
  width: calc(100% - var(--sidebar-width));
}

.header-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff, #c8d0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 40px;
  line-height: 1.5;
}

/* =============================================
   QUICK STATS GRID
   ============================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.stat-card {
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--panel-border);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, transparent);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.stat-card:hover::before {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.stat-info h3 {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-info p {
  font-size: 32px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: var(--transition-smooth);
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

.stat-icon.primary {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}

.stat-icon.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.stat-icon.cyan {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

.stat-icon.pink {
  background: rgba(236, 72, 153, 0.12);
  color: var(--accent-secondary);
  border: 1px solid rgba(236, 72, 153, 0.25);
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.1);
}

/* =============================================
   CHARTS & GRIDS
   ============================================= */
.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}

.chart-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.card-header {
  font-size: 18px;
  font-weight: 750;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.card-header i {
  font-size: 20px;
}

/* Top Active lists and status */
.top-users-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.top-user-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

.top-user-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
  transform: translateX(4px);
}

.top-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.top-user-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.top-user-name {
  font-size: 14px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-user-stats {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* =============================================
   SETTINGS SECTIONS & CONFIGURATION
   ============================================= */
.settings-section {
  padding: 32px;
  margin-bottom: 32px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 20px;
}

.settings-row:last-of-type {
  border-bottom: none;
}

.settings-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 75%;
}

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

.settings-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Toggle Switch Control */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: #cbd5e1;
  transition: var(--transition-smooth);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

input:checked + .slider {
  background-color: var(--accent-primary);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 12px var(--accent-primary-glow);
}

input:checked + .slider:before {
  transform: translateX(24px);
  background-color: white;
}

/* =============================================
   FORM CONTROLS
   ============================================= */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.form-group label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-control {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  color: white;
  font-size: 15px;
  transition: var(--transition-smooth);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary-glow), inset 0 2px 4px rgba(0,0,0,0.2);
  background: rgba(0, 0, 0, 0.35);
}

/* Select Form Dropdown option styling */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 48px;
}

select.form-control option {
  background-color: #0f1624;
  color: var(--text-main);
  padding: 12px;
}

/* Custom Range Input (Slider) Styling */
input[type="range"].form-control {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 8px 0;
}

input[type="range"].form-control:focus {
  box-shadow: none;
}

input[type="range"].form-control::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

input[type="range"].form-control::-webkit-slider-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -6px;
  box-shadow: 0 0 8px var(--accent-primary-glow), 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s, background-color 0.15s;
}

input[type="range"].form-control:hover::-webkit-slider-thumb {
  background: var(--accent-secondary);
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--accent-secondary-glow), 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Styled Color Picker Input */
input[type="color"].form-control {
  padding: 4px;
  height: 46px;
  width: 100%;
  cursor: pointer;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

input[type="color"].form-control::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 8px;
}

input[type="color"].form-control::-webkit-color-swatch {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.55);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.08);
}

.btn-danger:hover {
  background: var(--accent-danger);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Voice action buttons grid */
.voice-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: var(--transition-smooth);
}

.voice-action-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: white;
  transform: translateY(-1px);
}

.voice-action-btn.server-active {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

.voice-action-btn.server-active:hover {
  background: rgba(239, 68, 68, 0.3);
  color: white;
}

.voice-action-btn.disconnect-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
  transform: translateY(-1px);
}

/* =============================================
   TABLES STYLING
   ============================================= */
.table-container {
  overflow-x: auto;
  margin-top: 28px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

th, td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

th {
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.01);
}

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

tr td {
  transition: var(--transition-smooth);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.015);
  color: white;
}

.member-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-warning);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* =============================================
   LOGIN PAGE OVERRIDES (Premium Landing Portal)
   ============================================= */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.login-card {
  width: 440px;
  padding: 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.login-icon {
  font-size: 52px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.4));
}

.login-card h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  color: white;
}

.login-card p {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 14.5px;
  line-height: 1.5;
}

.discord-login-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background-color: #5865F2;
  color: white;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
  transition: var(--transition-smooth);
}

.discord-login-btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 30px rgba(88, 101, 242, 0.6);
  background-color: #4752c4;
}

/* =============================================
   SERVER SELECTOR PAGE
   ============================================= */
.selector-container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px;
  width: 100%;
}

.selector-header {
  text-align: center;
  margin-bottom: 48px;
}

.selector-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ffffff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.guild-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-smooth);
}

.guild-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.2);
}

.guild-avatar-large {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin-bottom: 18px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
}

.guild-card:hover .guild-avatar-large {
  border-color: var(--accent-primary);
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--accent-primary-glow);
}

.guild-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.guild-card .btn {
  width: 100%;
  margin-top: auto;
}

/* =============================================
   CUSTOM COMMANDS PAGE
   ============================================= */
.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.command-card {
  padding: 24px;
  position: relative;
}

.command-card .trigger-badge {
  position: absolute;
  top: 22px;
  left: 22px;
}

.command-card .delete-icon {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--accent-danger);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 15px;
}

.command-card .delete-icon:hover {
  transform: scale(1.25) rotate(5deg);
  color: #ff3b3b;
}

.command-response {
  margin-top: 40px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
  max-height: 110px;
  overflow-y: auto;
  line-height: 1.5;
}

/* =============================================
   CHAT TRANSCRIPT WINDOW (Discord Theme)
   ============================================= */
.chat-window {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #313338;
  border-radius: 14px;
  padding: 24px;
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.3);
}

.chat-message {
  display: flex;
  gap: 16px;
  animation: fadeIn 0.25s ease forwards;
}

.chat-msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.chat-msg-body {
  display: flex;
  flex-direction: column;
}

.chat-msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.chat-msg-author {
  font-weight: 600;
  font-size: 14.5px;
  color: white;
}

.chat-msg-time {
  font-size: 11.5px;
  color: #949ba4;
}

.chat-msg-content {
  font-size: 14px;
  color: #dbdee1;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}

/* =============================================
   LIVE MESSAGE STREAM & FEED (Live Reader)
   ============================================= */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-left: auto;
}

.live-reader-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: calc(100vh - 150px);
}

.live-reader-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px;
}

.live-reader-toolbar h2 {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #ef4444, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
}

.live-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6b7280;
  display: inline-block;
  margin-right: 6px;
  transition: background 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}

.live-status-dot.connected {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

.live-status-dot.error {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

#liveStatusText {
  font-size: 13.5px;
  color: var(--text-muted);
  min-width: 90px;
}

.live-channel-filter {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 9px 14px;
  color: white;
  font-size: 13.5px;
  cursor: pointer;
  min-width: 200px;
}

.live-channel-filter:focus {
  border-color: var(--accent-primary);
  outline: none;
}

.live-controls {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.live-btn {
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.live-btn-start {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

.live-btn-start:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16,185,129,0.5);
}

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

.live-btn-stop:hover {
  background: rgba(239, 68, 68, 0.25);
}

.live-btn-clear {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--panel-border);
}

.live-btn-clear:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.live-feed-wrapper {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.live-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--panel-border);
  font-size: 13.5px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.1);
}

#liveMsgCount {
  font-weight: 700;
  color: var(--accent-primary);
}

.live-feed {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.15s;
  animation: fadeSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.live-msg:hover {
  background: rgba(255, 255, 255, 0.03);
}

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

.live-msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
}

.live-msg-body {
  flex: 1;
  min-width: 0;
}

.live-msg-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.live-msg-author {
  font-weight: 700;
  font-size: 14px;
  color: white;
}

.live-msg-channel {
  font-size: 11px;
  color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.live-msg-time {
  font-size: 11px;
  color: #6b7280;
  margin-left: auto;
  flex-shrink: 0;
}

.live-msg-text {
  font-size: 14px;
  color: #dbdee1;
  line-height: 1.5;
  word-break: break-word;
}

.live-msg-attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  font-size: 12px;
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.15);
}

.live-msg-embed-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  background: rgba(88, 101, 242, 0.15);
  border-left: 3.5px solid #5865f2;
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  color: #a5b4fc;
}

.live-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
  color: var(--text-muted);
}

.live-empty-state i {
  font-size: 52px;
  color: rgba(139, 92, 246, 0.25);
  animation: pulseGlowIcon 4s infinite alternate;
}

@keyframes pulseGlowIcon {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.08); opacity: 1; }
}

.autoscroll-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.autoscroll-label input {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: var(--accent-primary);
}

/* =============================================
   DATABASE MASTER EXPLORER SPECIFIC
   ============================================= */
.db-tabs-menu {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.db-tab-btn {
  background: none;
  border: none;
  outline: none;
  padding: 10px 18px;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.db-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255,255,255,0.03);
}

.db-tab-btn.active {
  color: white;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}

.table-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

.table-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
  transform: translateX(4px);
}

.table-item.active-table {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.table-item.active-table span {
  color: white;
  font-weight: 700;
}

.table-item-name {
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-item-badge {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 8px;
  font-weight: 750;
}

.table-item.active-table .table-item-badge {
  background: var(--accent-primary);
  color: white;
}

.sortable-th {
  cursor: pointer;
  position: relative;
  user-select: none;
  padding-right: 24px !important;
  transition: var(--transition-smooth);
}

.sortable-th:hover {
  color: white;
  background: rgba(255,255,255,0.03) !important;
}

.sort-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--text-muted);
}

.sort-icon.active {
  color: var(--accent-primary);
}

.db-tab-content {
  animation: fadeInContent 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* =============================================
   TOAST NOTIFICATION SYSTEM
   ============================================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.toast {
  min-width: 300px;
  max-width: 450px;
  background: rgba(10, 16, 30, 0.8);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 20px;
  border-radius: 14px;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 550;
  animation: slideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.toast.success { border-color: rgba(16, 185, 129, 0.4); color: #a7f3d0; }
.toast.success i { color: var(--accent-emerald); }

.toast.error { border-color: rgba(239, 68, 68, 0.4); color: #fecaca; }
.toast.error i { color: var(--accent-danger); }

.toast.warning { border-color: rgba(245, 158, 11, 0.4); color: #fef3c7; }
.toast.warning i { color: var(--accent-warning); }

.toast.info { border-color: rgba(6, 182, 212, 0.4); color: #cffafe; }
.toast.info i { color: var(--accent-cyan); }

/* =============================================
   LOADING / SPINNER UTILITIES
   ============================================= */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border-top-color: currentColor;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

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

/* =============================================
   RESPONSIVE DESIGN (MOBILE & TABLETS)
   ============================================= */

/* Mobile hamburger button */
.menu-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(15, 22, 36, 0.8);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  color: white;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
}

.menu-toggle:hover {
  background: var(--accent-primary);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px var(--accent-primary-glow);
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
  }

  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 80px 24px 40px 24px;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .charts-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  
  .chat-window {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .header-title {
    font-size: 26px;
  }
  
  .header-subtitle {
    font-size: 14.5px;
    margin-bottom: 28px;
  }

  .stat-card {
    padding: 20px;
  }

  .stat-info p {
    font-size: 28px;
  }
  
  .settings-section {
    padding: 22px;
  }
  
  .settings-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }
  
  .settings-info {
    max-width: 100% !important;
  }

  .switch {
    margin-top: 10px;
  }
  
  .live-reader-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .live-controls {
    margin-left: 0;
    justify-content: flex-end;
    width: 100%;
    margin-top: 8px;
  }
  
  .db-tabs-menu {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 72px 16px 30px 16px;
  }

  .stat-card {
    flex-direction: row;
    align-items: center;
  }

  .features-list {
    grid-template-columns: 1fr !important;
  }
  
  .premium-login-card {
    padding: 30px 20px !important;
  }
  
  .premium-login-card h1 {
    font-size: 24px !important;
  }
}

/* =============================================
   PREMIUM OVERHAUL EXTENSIONS
   ============================================= */
:root {
  --discord-dark: #2b2d31;
  --discord-embed-bg: #1e1f22;
  --discord-text: #dbdee1;
  --discord-muted: #949ba4;
}

/* 3D Tilt & Interactive Glow Effects */
.card-glow-hover {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.card-glow-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.25), 0 0 30px rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4) !important;
}

/* Warn History / Slide-out Drawer */
.slide-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 420px;
  height: 100vh;
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  z-index: 1100;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.slide-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

/* Discord Mockup Embed Builder CSS */
.discord-mockup {
  background-color: var(--discord-dark);
  border-radius: 8px;
  padding: 16px;
  font-family: 'gg sans', 'Noto Sans', sans-serif;
  color: var(--discord-text);
  font-size: 14px;
  line-height: 1.375;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  margin-top: 14px;
}

.discord-message {
  display: flex;
  gap: 16px;
}

.discord-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.discord-message-content {
  flex: 1;
  min-width: 0;
}

.discord-user-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.discord-bot-tag {
  background: #5865f2;
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
}

.discord-embed {
  background: var(--discord-embed-bg);
  border-left: 4px solid #5865f2;
  border-radius: 4px;
  padding: 12px 16px;
  margin-top: 8px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.discord-embed-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.discord-embed-author-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

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

.discord-embed-description {
  font-size: 13px;
  color: #dbdee1;
  white-space: pre-wrap;
}

.discord-embed-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.discord-embed-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.discord-embed-field-name {
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.discord-embed-field-value {
  font-size: 12px;
  color: #dbdee1;
}

.discord-embed-image {
  max-width: 100%;
  border-radius: 4px;
  margin-top: 8px;
}

.discord-embed-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--discord-muted);
  margin-top: 8px;
}

.discord-embed-footer-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.discord-buttons-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.discord-btn {
  padding: 8px 16px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.discord-btn.primary { background-color: #5865f2; color: white; }
.discord-btn.secondary { background-color: #4e5058; color: white; }
.discord-btn.success { background-color: #248046; color: white; }
.discord-btn.danger { background-color: #da373c; color: white; }
.discord-btn.link { background-color: #4e5058; color: white; text-decoration: none; }

/* Department cards in support tickets */
.dept-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.3s;
}

.dept-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* =============================================
   LANGUAGE SWITCHER
   ============================================= */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

.lang-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: var(--transition-smooth);
  line-height: 1;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-primary);
  transform: scale(1.08);
}

.lang-dropdown {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f1624;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 6px;
  min-width: 120px;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  animation: fadeInUp 0.15s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
  text-align: left;
}

.lang-option:hover {
  background: rgba(139, 92, 246, 0.15);
  color: white;
}

/* =============================================
   FORM LABEL & HINT
   ============================================= */
.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  display: block;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* Btn ghost & sm */
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
}
.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
  border-radius: 8px;
}
.btn-outline {
  background: transparent;
}
.btn-success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.btn-success:hover {
  background: var(--accent-emerald);
  color: #0f1624;
  transform: translateY(-1px);
}

/* Page Header */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-header-left {}
.page-title {
  font-size: 26px;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.page-title i { color: var(--accent-primary); }
.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}
.page-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Card bg for cards that don't use glass-panel */
.card-bg {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 24px;
}

/* Toast notification */
#gs-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  max-width: 320px;
}
#gs-toast.toast-show {
  opacity: 1;
  transform: translateY(0);
}
#gs-toast.toast-success { background: rgba(16,185,129,0.95); color: #fff; }
#gs-toast.toast-error { background: rgba(239,68,68,0.95); color: #fff; }
#gs-toast.toast-info { background: rgba(139,92,246,0.95); color: #fff; }
