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

:root {
  --bg-color: #080c14; /* Deep space dark slate */
  --panel-bg: rgba(15, 22, 36, 0.65); /* Frosted dark glass */
  --panel-border: rgba(255, 255, 255, 0.08); /* Subtle glass edge */
  --panel-border-glow: rgba(88, 101, 242, 0.15);
  
  --text-primary: #f8fafc; /* Premium crisp white */
  --text-secondary: #94a3b8; /* Cool slate gray */
  --text-muted: #475569; /* Darker muted text */
  
  /* Accent Neon Colors */
  --accent-blurple: #5865F2;
  --accent-blurple-hover: #4e5dcf;
  --accent-blurple-glow: rgba(88, 101, 242, 0.35);
  
  --accent-green: #10b981;
  --accent-green-hover: #059669;
  --accent-green-glow: rgba(16, 185, 129, 0.35);
  
  --accent-red: #f43f5e;
  --accent-red-hover: #e11d48;
  --accent-red-glow: rgba(244, 63, 94, 0.35);
  
  --accent-orange: #f97316;
  --accent-yellow: #f59e0b;
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);
  
  --sidebar-width: 280px;
  --transition-speed: 0.25s;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(88, 101, 242, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Glassmorphism panel helper */
.glass {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

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

/* LOGIN SCREEN */
#login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  background: radial-gradient(circle at center, #0d1527 0%, #05080f 100%);
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  padding: 50px 40px;
  text-align: center;
  border-radius: 24px;
  background: rgba(15, 22, 36, 0.85);
  border: 1px solid rgba(88, 101, 242, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(88, 101, 242, 0.1);
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.login-logo {
  font-size: 3.5rem;
  margin-bottom: 15px;
  display: inline-block;
  animation: floatPulse 3s ease-in-out infinite;
}

@keyframes floatPulse {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 5px rgba(88,101,242,0)); }
  50% { transform: translateY(-8px) scale(1.05); filter: drop-shadow(0 0 15px rgba(88,101,242,0.4)); }
}

.login-card h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 35px;
}

.btn-discord {
  background-color: var(--accent-blurple);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 4px 15px var(--accent-blurple-glow);
  width: 100%;
}

.btn-discord:hover {
  background-color: var(--accent-blurple-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

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

/* APP LAYOUT */
#app-layout {
  display: none; /* Shown via JS */
  width: 100%;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--panel-border);
  background-color: rgba(9, 13, 23, 0.95);
  z-index: 10;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-speed) ease-in-out;
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.user-profile {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.15);
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent-blurple);
  box-shadow: 0 0 10px var(--accent-blurple-glow);
}

.user-details h4 {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
  color: var(--text-primary);
}

.btn-logout {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition-speed);
}

.btn-logout:hover {
  color: var(--accent-red);
}

.sidebar-title {
  padding: 20px 20px 10px 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-weight: 700;
}

.server-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px 20px 12px;
}

.server-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 6px;
  transition: all var(--transition-speed);
  border: 1px solid transparent;
}

.server-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.server-item.active {
  background-color: rgba(88, 101, 242, 0.12);
  border-color: rgba(88, 101, 242, 0.25);
  box-shadow: inset 0 0 8px rgba(88, 101, 242, 0.05);
}

.server-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  background-size: cover;
  flex-shrink: 0;
  border: 1px solid var(--panel-border);
}

.server-name {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  color: var(--text-secondary);
  transition: color var(--transition-speed);
}

.server-item:hover .server-name,
.server-item.active .server-name {
  color: var(--text-primary);
}

.server-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.server-status-dot.active {
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(1); box-shadow: 0 0 4px var(--accent-green); }
  50% { transform: scale(1.15); box-shadow: 0 0 10px var(--accent-green); }
  100% { transform: scale(1); box-shadow: 0 0 4px var(--accent-green); }
}

.server-status-dot.inactive {
  background-color: var(--text-muted);
}

/* MAIN CONTENT */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition-speed) ease-in-out;
}

.main-content.expanded {
  margin-left: 0;
}

/* HEADER & CONTROLS */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.guild-info-banner {
  display: flex;
  align-items: center;
  gap: 15px;
}

.guild-icon-large {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 1px solid var(--panel-border);
  background-size: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.guild-details h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.guild-details p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* TABS NAVIGATION */
.tabs-nav {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 1px;
  margin-bottom: 30px;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 12px 20px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-speed);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
  color: var(--accent-blurple);
  border-bottom-color: var(--accent-blurple);
  font-weight: 600;
  text-shadow: 0 0 10px var(--accent-blurple-glow);
}

/* TAB PANELS */
.tab-panel {
  display: none; /* Shown via JS */
  flex-direction: column;
  flex: 1;
}

.tab-panel.active {
  display: flex;
  animation: panelFadeIn var(--transition-speed) ease-out;
}

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

/* CHOOSE SERVER SCREEN (Before selected) */
#no-server-selected {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

#no-server-selected .illustration {
  font-size: 4.5rem;
  margin-bottom: 20px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

#no-server-selected h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  font-weight: 600;
}

#no-server-selected p {
  color: var(--text-secondary);
  max-width: 440px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-weight: 700;
}

.card-value {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* GENERATOR HUD */
.gen-card {
  padding: 24px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.gen-status-indicator {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid transparent;
}

.gen-status-indicator.ok { background-color: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.gen-status-indicator.warning { background-color: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.15); color: var(--accent-yellow); }
.gen-status-indicator.critical { background-color: rgba(244, 63, 94, 0.1); border-color: rgba(244, 63, 94, 0.15); color: var(--accent-red); }
.gen-status-indicator.off { background-color: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.05); color: var(--text-secondary); }

.gen-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.gen-meta {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.gen-bar-container {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin-top: 10px;
  overflow: hidden;
}

.gen-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gen-bar.ok { background-color: var(--accent-green); box-shadow: 0 0 10px var(--accent-green-glow); }
.gen-bar.warning { background-color: var(--accent-yellow); box-shadow: 0 0 10px rgba(245, 158, 11, 0.2); }
.gen-bar.critical { background-color: var(--accent-red); box-shadow: 0 0 10px var(--accent-red-glow); }

.gen-actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.btn-icon:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-icon.danger:hover {
  border-color: var(--accent-red);
  background-color: rgba(244, 63, 94, 0.1);
  color: var(--accent-red);
}

/* FORMS AND BUTTONS */
.btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

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

.btn-primary {
  background-color: var(--accent-blurple);
  color: white;
  box-shadow: 0 4px 14px var(--accent-blurple-glow);
}
.btn-primary:hover {
  background-color: var(--accent-blurple-hover);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(88, 101, 242, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--panel-border);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.15);
  color: var(--accent-red);
}
.btn-danger:hover {
  background: rgba(244, 63, 94, 0.18);
  border-color: var(--accent-red);
}

/* VOUCH HUB */
.search-bar {
  position: relative;
  margin-bottom: 20px;
}

.input-text {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-speed);
}

.input-text:focus {
  border-color: var(--accent-blurple);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 3px var(--accent-blurple-glow);
}

.vouch-panel-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  flex: 1;
}

.vouch-list-container {
  overflow-y: auto;
  max-height: calc(100vh - 280px);
}

.vouch-card {
  padding: 22px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 15px;
}

.vouch-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vouch-user-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.vouch-user-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
}

.tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-block;
}

.tag.pending { background-color: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.2); color: var(--accent-yellow); }
.tag.accepted { background-color: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.2); color: var(--accent-green); }
.tag.rejected { background-color: rgba(244, 63, 94, 0.12); border: 1px solid rgba(244, 63, 94, 0.2); color: var(--accent-red); }

.tag.steam { background-color: rgba(2, 132, 199, 0.12); border: 1px solid rgba(2, 132, 199, 0.2); color: #38bdf8; }
.tag.xbox { background-color: rgba(22, 163, 74, 0.12); border: 1px solid rgba(22, 163, 74, 0.2); color: #4ade80; }
.tag.psn { background-color: rgba(37, 99, 235, 0.12); border: 1px solid rgba(37, 99, 235, 0.2); color: #60a5fa; }

/* MEMBER LISTING DETAIL SIDEBAR */
.details-panel {
  padding: 24px;
  position: sticky;
  top: 0;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
}

.details-header {
  text-align: center;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.details-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 3px solid rgba(255, 255, 255, 0.08);
}

.details-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.details-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.details-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.details-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.details-value {
  font-size: 0.95rem;
  font-weight: 500;
}

/* NOTES LOG */
.notes-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.note-item {
  padding: 14px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-blurple);
  font-size: 0.85rem;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.01);
  border-right: 1px solid rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid rgba(255, 255, 255, 0.01);
}

.note-item.warning { border-left-color: var(--accent-orange); }
.note-item.positive { border-left-color: var(--accent-green); }
.note-item.report { border-left-color: var(--accent-red); }

.note-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.note-delete-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: color var(--transition-speed);
}

.note-delete-btn:hover {
  color: var(--accent-red);
}

/* PERSONAL LISTINGS (SLOTS) */
.slots-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.server-selector-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.btn-server-select {
  padding: 8px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--transition-speed);
  white-space: nowrap;
}

.btn-server-select:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-server-select.active {
  background-color: var(--accent-blurple);
  color: white;
  border-color: var(--accent-blurple);
  box-shadow: 0 4px 10px var(--accent-blurple-glow);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.slot-card {
  padding: 18px;
  text-align: center;
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid var(--panel-border);
}

.slot-card:hover {
  transform: translateY(-3px);
}

.slot-card.occupied {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.03);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.05);
}

.slot-card.occupied:hover {
  border-color: var(--accent-green);
  box-shadow: 0 8px 20px var(--accent-green-glow);
}

.slot-card.open {
  border-color: var(--panel-border);
  opacity: 0.55;
  background: rgba(255,255,255, 0.01);
}

.slot-card.open:hover {
  opacity: 1;
  border-color: var(--accent-blurple);
  box-shadow: 0 8px 20px var(--accent-blurple-glow);
}

.slot-number {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.slot-user {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-pin {
  font-size: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 8px;
  display: inline-block;
  font-family: monospace;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* DIALOG / MODAL (Universal) */
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.6);
  display: none; /* Shown via JS */
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(8px);
}

.dialog-overlay.active {
  display: flex;
}

.dialog-box {
  width: 100%;
  max-width: 480px;
  padding: 32px;
  border-radius: 20px;
  background: rgba(15, 22, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(88, 101, 242, 0.1);
  animation: scaleIn var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.dialog-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.dialog-body {
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .vouch-panel-split {
    grid-template-columns: 1fr;
  }
  .details-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--panel-border);
  }
  .main-content {
    margin-left: 0;
    padding: 20px;
  }
  .gen-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .gen-actions {
    margin-top: 10px;
  }
  .metrics-row {
    grid-template-columns: 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-right {
    position: static;
    height: auto;
  }
}

/* NEW DASHBOARD OVERVIEW LAYOUT */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.5fr;
  gap: 30px;
  flex: 1;
}

.dashboard-left {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.dashboard-right {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 220px);
  position: sticky;
  top: 0;
}

/* Tesla style Overview Cards */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.overview-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--panel-bg);
  transition: all var(--transition-speed);
}

.overview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255,255,255,0.02);
}

.card-icon-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.card-emoji {
  font-size: 1.5rem;
}

.card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.card-metric {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.card-sub-info {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Overview Widgets Row */
.overview-widgets-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
}

.overview-widget {
  padding: 24px;
  border-radius: 16px;
  background: var(--panel-bg);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--panel-border);
}

.widget-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.widget-content {
  flex: 1;
  font-size: 0.9rem;
}

.widget-item-details {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.widget-item-details:last-child {
  border-bottom: none;
}

/* Map Card */
.map-card {
  flex: 1;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.15) !important;
  background: rgba(15, 23, 42, 0.4) !important;
  backdrop-filter: blur(12px);
}

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

.map-header h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

.map-header p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.pulse-indicator {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulse-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  animation: mapPulse 1.5s infinite;
}

@keyframes mapPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.map-canvas {
  flex: 1;
  background: radial-gradient(circle at 50% 50%, #060b16 0%, #010307 100%) !important;
  position: relative;
  outline: none;
  overflow: hidden;
}

/* Cosmic rotating starfield layer 1 */
.map-canvas::before {
  content: '';
  position: absolute;
  width: 200% !important;
  height: 200% !important;
  top: -50% !important;
  left: -50% !important;
  background-image: 
    radial-gradient(1.5px 1.5px at 40px 60px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 120px 180px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 280px 120px, #38bdf8, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 380px 320px, #c084fc, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 400px 400px;
  opacity: 0.35;
  pointer-events: none;
  animation: cosmicRotate 280s linear infinite;
}

/* Cosmic rotating starfield layer 2 */
.map-canvas::after {
  content: '';
  position: absolute;
  width: 200% !important;
  height: 200% !important;
  top: -50% !important;
  left: -50% !important;
  background-image: 
    radial-gradient(1px 1px at 80px 100px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 220px 240px, rgba(255,255,255,0.5), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 340px 160px, #2dd4bf, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 500px 500px;
  opacity: 0.25;
  pointer-events: none;
  animation: cosmicRotate 400s linear infinite reverse;
}

@keyframes cosmicRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.map-card.fullscreen-active {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
  border-radius: 0 !important;
  background: #010307 !important;
  margin: 0 !important;
}

.map-card.fullscreen-active .map-canvas {
  height: calc(100vh - 80px) !important;
}

/* REDESIGNED OVERVIEW CLASSES */

/* Discord Server Profile Page Widget */
.discord-server-profile {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  background: var(--panel-bg);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
}

.server-hero-banner {
  background-position: center;
  background-size: cover;
  transition: background-image 0.3s ease;
}

.server-avatar-large {
  transition: background-image 0.3s ease;
}

/* Alert list styling */
.alert-item {
  padding: 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  gap: 12px;
}

.alert-item.critical {
  background-color: rgba(244, 63, 94, 0.06);
  border-left: 4px solid var(--accent-red);
  border-color: rgba(244, 63, 94, 0.1);
  color: #fda4af;
}

.alert-item.warning {
  background-color: rgba(245, 158, 11, 0.06);
  border-left: 4px solid var(--accent-yellow);
  border-color: rgba(245, 158, 11, 0.1);
  color: #fde047;
}

.alert-item.success {
  background-color: rgba(16, 185, 129, 0.06);
  border-left: 4px solid var(--accent-green);
  border-color: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
}

/* Compact Overview Vouch deck */
.overview-vouch-deck {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.overview-vouch-card {
  padding: 18px;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.overview-vouch-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.overview-vouch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.overview-vouch-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.overview-vouch-by {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.overview-vouch-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.15);
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 2px solid var(--panel-border);
}

.overview-vouch-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.overview-vouch-actions .btn {
  padding: 6px 14px;
  font-size: 0.78rem;
  border-radius: 8px;
  font-weight: 600;
}

/* MEMBERS DIRECTORY TAB STYLES */
.member-list-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 18px;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.member-list-item:hover {
  transform: translateY(-1.5px);
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.member-list-item.active {
  background-color: rgba(88, 101, 242, 0.12);
  border-color: rgba(88, 101, 242, 0.3);
  box-shadow: 0 0 15px var(--accent-blurple-glow);
}

.member-avatar-mini {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #1e293b;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
  border: 1.5px solid var(--panel-border);
}

.member-info-mini {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-grow: 1;
  min-width: 0;
}

.member-name-mini {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-tagline-mini {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Detailed Profile Card */
.profile-card-section {
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.profile-card-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.profile-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 12px;
  text-align: left;
}

.connection-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.connection-item:last-child {
  margin-bottom: 0;
}

.connection-strength {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.strength-high { background-color: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.2); color: var(--accent-green); }
.strength-med { background-color: rgba(6, 182, 212, 0.12); border: 1px solid rgba(6, 182, 212, 0.2); color: var(--accent-cyan); }
.strength-low { background-color: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-secondary); }

/* SETTINGS CONFIGURATION STYLES */
.settings-form-grid {
  margin-bottom: 10px;
}

/* CUSTOM MODAL SELECT STYLING */
select.input-text {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px !important;
}

select.input-text option {
  background-color: #0f172a;
  color: var(--text-primary);
}

/* ==========================================================================
   THEME STYLING OVERRIDES (Inspired by premium Light UI design patterns)
   ========================================================================== */

#btn-toggle-theme-fixed {
  position: fixed;
  bottom: 25px;
  right: 25px;
  top: auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.9rem;
  font-weight: 600;
}

#btn-toggle-theme-fixed:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(88, 101, 242, 0.2);
}

/* Light Theme Variables */
body.light-theme {
  --bg-color: #f3f6fb; /* Soft, aesthetic light-blue/gray background */
  --panel-bg: rgba(255, 255, 255, 0.85); /* Pure white frosted glass */
  --panel-border: rgba(88, 101, 242, 0.08); /* Minimal soft blue border */
  --panel-border-glow: rgba(88, 101, 242, 0.05);
  
  --text-primary: #1e293b; /* Dark slate primary text */
  --text-secondary: #64748b; /* Cool gray slate secondary text */
  --text-muted: #94a3b8; /* Light gray muted text */
  
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(88, 101, 242, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Light Theme Custom Styling Updates */
body.light-theme .sidebar {
  background-color: #ffffff;
  border-right: 1px solid rgba(88, 101, 242, 0.08);
  box-shadow: 4px 0 30px rgba(88, 101, 242, 0.04);
}

body.light-theme .sidebar-menu li a {
  color: #64748b;
}

body.light-theme .sidebar-menu li a:hover,
body.light-theme .sidebar-menu li a.active {
  color: var(--accent-blurple);
  background-color: rgba(88, 101, 242, 0.06);
}

body.light-theme .glass,
body.light-theme .vouch-card,
body.light-theme .gen-card,
body.light-theme .slot-card,
body.light-theme .member-list-item,
body.light-theme .connection-item,
body.light-theme .note-item,
body.light-theme .overview-card,
body.light-theme .card,
body.light-theme .details-panel {
  background: #ffffff;
  border: 1px solid rgba(88, 101, 242, 0.08);
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.03);
}

body.light-theme .glass:hover,
body.light-theme .vouch-card:hover,
body.light-theme .gen-card:hover,
body.light-theme .member-list-item:hover,
body.light-theme .card:hover {
  border-color: rgba(88, 101, 242, 0.2);
  box-shadow: 0 15px 35px rgba(88, 101, 242, 0.08);
}

body.light-theme .input-text {
  background: #f8fafc;
  border-color: rgba(88, 101, 242, 0.15);
  color: #1e293b;
}

body.light-theme .input-text:focus {
  background: #ffffff;
  border-color: var(--accent-blurple);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.15);
}

body.light-theme select.input-text option {
  background-color: #ffffff;
  color: #1e293b;
}

body.light-theme select.input-text {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

body.light-theme .btn-secondary {
  background: #f1f5f9;
  border-color: rgba(88, 101, 242, 0.1);
  color: #1e293b;
}

body.light-theme .btn-secondary:hover {
  background: #e2e8f0;
  border-color: rgba(88, 101, 242, 0.2);
}

body.light-theme ::-webkit-scrollbar-thumb {
  background: rgba(88, 101, 242, 0.15);
}
body.light-theme ::-webkit-scrollbar-thumb:hover {
  background: rgba(88, 101, 242, 0.25);
}

/* Slots light theme styles */
body.light-theme .slot-card.open {
  background: #ffffff;
  border-color: rgba(88, 101, 242, 0.08);
}
body.light-theme .slot-card.open:hover {
  border-color: var(--accent-blurple);
  background: rgba(88, 101, 242, 0.04);
}
body.light-theme .slot-card.occupied {
  background: rgba(88, 101, 242, 0.06);
  border-color: rgba(88, 101, 242, 0.2);
}
body.light-theme .slot-card.occupied:hover {
  border-color: var(--accent-blurple);
  background: rgba(88, 101, 242, 0.1);
}

body.light-theme .dialog-box {
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.15);
}

body.light-theme .dialog-title {
  border-bottom: 1px solid rgba(88, 101, 242, 0.08);
  color: #1e293b;
}

body.light-theme .dialog-body,
body.light-theme .dialog-box h3,
body.light-theme .dialog-box p,
body.light-theme .form-group label {
  color: #1e293b;
}

body.light-theme .gen-status-indicator.off {
  background-color: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.05);
  color: #64748b;
}

body.light-theme .gen-bar-container {
  background-color: #f1f5f9;
}

body.light-theme .member-avatar-mini {
  background-color: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   REDESIGNED USER PROFILE & VOUCH CARDS (Joeylene Rivera Inspired)
   ========================================================================== */

.premium-profile-card {
  background: #131930; /* Deep navy from dark card */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  border-radius: 28px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(88, 101, 242, 0.05);
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  transition: all var(--transition-speed);
}

body.light-theme .premium-profile-card {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid rgba(88, 101, 242, 0.08);
  box-shadow: 0 15px 35px rgba(88, 101, 242, 0.05);
}

.premium-profile-card .profile-card-logo-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 32px;
  height: 32px;
  background: #eab308;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #131930;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.premium-profile-card .avatar-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 10px auto 20px auto;
}

.premium-profile-card .avatar-ring-yellow {
  position: absolute;
  inset: -4px;
  border: 3px solid #eab308;
  border-radius: 50%;
  border-bottom-color: transparent;
  transform: rotate(35deg);
}

.premium-profile-card .avatar-ring-inner {
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

body.light-theme .premium-profile-card .avatar-ring-inner {
  border-color: rgba(0, 0, 0, 0.1);
}

.premium-profile-card .avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  font-size: 2.2rem;
  font-weight: 700;
  color: #cbd5e1;
  border: 3px solid #131930;
}

body.light-theme .premium-profile-card .avatar-img {
  border-color: #ffffff;
  background: #f1f5f9;
  color: #475569;
}

.premium-profile-card .profile-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 4px;
}

body.light-theme .premium-profile-card .profile-name {
  color: #0f172a;
}

.premium-profile-card .profile-subtitle {
  font-size: 0.88rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

body.light-theme .premium-profile-card .profile-subtitle {
  color: #5865f2;
}

.premium-profile-card .profile-bio {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #94a3b8;
  margin-bottom: 20px;
  max-width: 280px;
}

body.light-theme .premium-profile-card .profile-bio {
  color: #475569;
}

.premium-profile-card .profile-bio strong {
  color: #eab308;
}

body.light-theme .premium-profile-card .profile-bio strong {
  color: #b45309;
}

.premium-profile-card .profile-cta {
  display: inline-block;
  padding: 10px 22px;
  background: #1e204a;
  color: #f8fafc;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-speed);
  cursor: pointer;
}

.premium-profile-card .profile-cta:hover {
  background: #5865f2;
  box-shadow: 0 4px 12px var(--accent-blurple-glow);
  transform: translateY(-1.5px);
}

body.light-theme .premium-profile-card .profile-cta {
  background: #131930;
  color: #ffffff;
  border: none;
}

body.light-theme .premium-profile-card .profile-cta:hover {
  background: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.premium-profile-card .profile-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  z-index: 2;
}

.premium-profile-card .social-icon-btn {
  color: #94a3b8;
  font-size: 1.15rem;
  transition: all var(--transition-speed);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-profile-card .social-icon-btn:hover {
  color: #eab308;
  transform: scale(1.2);
}

body.light-theme .premium-profile-card .social-icon-btn {
  color: #475569;
}

body.light-theme .premium-profile-card .social-icon-btn:hover {
  color: #5865f2;
}

.premium-profile-card .profile-footer-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: #eab308;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

body.light-theme .premium-profile-card .profile-footer-accent {
  position: static;
  height: 24px;
  background: #131930;
  margin: 20px -32px -32px -32px;
  border-radius: 0;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}

/* Redesigned Vouch Cards */
.premium-vouch-card {
  padding: 24px;
  margin-bottom: 16px;
  border-radius: 20px;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition-speed);
}

.premium-vouch-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

body.light-theme .premium-vouch-card {
  background: #ffffff;
  border-color: rgba(88, 101, 242, 0.08);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.03);
}

.vouch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vouch-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.vouch-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vouch-card-meta {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.vouch-card-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.12);
  padding: 12px 14px;
  border-radius: 10px;
  border-left: 3px solid var(--accent-blurple);
}

body.light-theme .vouch-card-desc {
  background: #f8fafc;
  border-left-color: var(--accent-blurple);
}

.vouch-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--panel-border);
  padding-top: 14px;
  margin-top: 4px;
}

/* Redesigned Overview Pending Vouch Cards */
.premium-overview-vouch-card {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.premium-overview-vouch-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

body.light-theme .premium-overview-vouch-card {
  background-color: #ffffff;
  border-color: rgba(88, 101, 242, 0.08);
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.02);
}

.overview-vouch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.overview-vouch-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
}

.overview-vouch-card-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.overview-vouch-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  border-top: 1px solid var(--panel-border);
  padding-top: 12px;
}

.overview-vouch-card-actions .btn {
  padding: 6px 14px;
  font-size: 0.78rem;
  border-radius: 8px;
  font-weight: 600;
}

/* New Social Map Layout covering full area */
#tab-socialmap {
  position: relative;
  width: 100%;
  height: calc(100vh - 190px);
  min-height: 550px;
}

/* Astromap container */
.social-map-container {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.05);
}

.map-canvas {
  background: radial-gradient(circle at 50% 50%, #060b16 0%, #010307 100%) !important;
  outline: none;
}

/* New layout absolute positioning */
.social-map-container .map-canvas {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0 !important;
}

/* Fallback layout positioning in case old HTML is cached */
.map-card .map-canvas {
  flex: 1;
  width: 100%;
  height: calc(100vh - 300px) !important;
  min-height: 480px !important;
  position: relative !important;
}

/* Floating header inside map container */
.map-floating-header {
  position: absolute;
  top: 25px;
  left: 25px;
  z-index: 10;
  pointer-events: none;
  background: rgba(6, 11, 22, 0.6);
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}

/* Floating live indicator at top right */
.map-floating-indicator {
  position: absolute;
  top: 25px;
  right: 25px;
  z-index: 10;
  pointer-events: none;
  background: rgba(6, 11, 22, 0.6);
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
}

/* Floating Console horizontally centered at the bottom */
.map-floating-console {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  background: rgba(10, 15, 30, 0.8) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 50px !important;
  padding: 10px 24px !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1024px) {
  .map-floating-console {
    width: 90%;
    flex-wrap: wrap;
    border-radius: 20px !important;
    padding: 15px !important;
    justify-content: center;
    bottom: 15px;
    gap: 12px;
  }
}

.console-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.console-stat-pill {
  font-size: 0.85rem;
  font-weight: 700;
  color: #c084fc;
  text-shadow: 0 0 6px rgba(192, 132, 252, 0.3);
  white-space: nowrap;
}

.console-stat-divider {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

.console-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  padding: 8px 16px;
  color: #f8fafc;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
  width: 130px;
  transition: all 0.2s ease;
}

.console-input:focus {
  border-color: #38bdf8;
  width: 180px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

@media (max-width: 768px) {
  .console-input {
    width: 100%;
  }
  .console-input:focus {
    width: 100%;
  }
}

.console-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.console-val {
  font-family: monospace;
  font-size: 0.78rem;
  color: #38bdf8;
  width: 42px;
  font-weight: 600;
}

.console-btn {
  padding: 8px 16px !important;
  font-size: 0.8rem !important;
  border-radius: 20px !important;
  white-space: nowrap;
}

/* Floating Scanner overlay (slides out from the right) */
.map-scanner-overlay {
  position: absolute;
  top: 25px;
  right: 25px;
  bottom: 25px;
  width: 320px;
  z-index: 20;
  background: rgba(10, 15, 30, 0.85) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  border-radius: 20px !important;
  padding: 20px !important;
  backdrop-filter: blur(16px);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.scanner-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  padding-bottom: 10px;
}

.scanner-overlay-title {
  font-size: 1rem;
  font-weight: 700;
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scanner-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}

.scanner-close-btn:hover {
  color: #ffffff;
}

.map-scanner-overlay .hud-scanner-box {
  background: none;
  border: none;
  padding: 0;
  min-height: unset;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
}

.hud-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(56, 189, 248, 0.15);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.hud-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.8);
  transition: transform 0.1s ease;
}

.hud-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Fullscreen state container override */
.social-map-container.fullscreen-active {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
  border-radius: 0 !important;
  background: #010307 !important;
  margin: 0 !important;
}

.social-map-container.fullscreen-active .map-canvas {
  height: 100% !important;
}

/* MEGAPANEL & BREEDER TAB LAYOUTS */
.megapanel-tab-layout, .breeder-tab-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 30px;
  width: 100%;
}

@media (max-width: 1024px) {
  .megapanel-tab-layout, .breeder-tab-layout {
    grid-template-columns: 1fr;
  }
}

/* Button Manager List */
.megapanel-manager-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.button-item-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: transform 0.2s, border-color 0.2s;
}

.button-item-row:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.button-drag-controls {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-drag-step {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px;
  font-size: 0.8rem;
}

.btn-drag-step:hover {
  color: var(--accent-cyan);
}

/* Discord Mockup Preview */
.discord-chat-container {
  background: #313338;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 1px solid #1e1f22;
  font-family: 'Inter', system-ui, sans-serif;
  color: #dbdee1;
}

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

.discord-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5865f2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
}

.discord-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.discord-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discord-author-name {
  color: #f2f3f5;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.discord-timestamp {
  color: #949ba4;
  font-size: 0.75rem;
}

.discord-embed {
  background: #2b2d31;
  border-left: 4px solid #3498db;
  border-radius: 4px;
  padding: 16px;
  max-width: 520px;
  margin-top: 4px;
  box-sizing: border-box;
}

.discord-embed-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
}

.discord-embed-description {
  font-size: 0.875rem;
  color: #dbdee1;
  line-height: 1.375;
}

.discord-embed-field {
  margin-top: 12px;
}

.discord-embed-field-name {
  color: #f2f3f5;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.discord-embed-field-value {
  color: #dbdee1;
  font-size: 0.875rem;
  white-space: pre-wrap;
}

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

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s;
  color: #ffffff;
}

.discord-btn-primary { background-color: #5865f2; }
.discord-btn-primary:hover { background-color: #4752c4; }

.discord-btn-success { background-color: #248046; }
.discord-btn-success:hover { background-color: #1a6535; }

.discord-btn-danger { background-color: #da373c; }
.discord-btn-danger:hover { background-color: #a92b2f; }

.discord-btn-secondary { background-color: #4e5058; }
.discord-btn-secondary:hover { background-color: #6d6f78; }

/* Breeder list selectors */
.breeder-dino-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 25px;
  width: 100%;
}

@media (max-width: 768px) {
  .breeder-dino-grid {
    grid-template-columns: 1fr;
  }
}

.breeder-dino-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.dino-list-item {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.dino-list-item:hover {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.3);
}

.dino-list-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(56, 189, 248, 0.15) 100%);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

/* Breeder tag badge list */
.breeder-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.breeder-badge-item {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.btn-remove-breeder {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0;
  display: flex;
  align-items: center;
}

.btn-remove-breeder:hover {
  color: #f87171;
}

/* SEARCHABLE SELECT DROPDOWNS */
.searchable-select-wrapper {
  position: relative;
  width: 100%;
}

.searchable-select-control {
  width: 100%;
  padding-right: 35px !important;
}

.searchable-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.searchable-select-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  max-height: 180px;
  overflow-y: auto;
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  z-index: 9999;
  display: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.searchable-select-menu.active {
  display: block;
}

.searchable-select-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}

.searchable-select-item:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
}

.searchable-select-item.selected {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-weight: 600;
}

/* Filter Pills for Vouch system */
.filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 6px 14px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.filter-pill:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.filter-pill.active {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #060b16;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

body.light-theme .filter-pill {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

body.light-theme .filter-pill:hover {
  background: rgba(88, 101, 242, 0.05);
  border-color: rgba(88, 101, 242, 0.2);
  color: var(--accent-blurple);
}

body.light-theme .filter-pill.active {
  background: var(--accent-blurple);
  border-color: var(--accent-blurple);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.2);
}

/* ==========================================================================
   UNIFIED SETUP TAB HEADERS & SLIDE DRAWER
   ========================================================================== */

.tab-panel {
  position: relative;
}

#tab-generators .btn-setup {
  position: absolute;
  top: 15px;
  right: 0px;
  z-index: 10;
}

.btn-setup {
  width: fit-content;
  align-self: flex-end;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Setup state (Unconfigured) - Amber/Gold */
.btn-setup.unconfigured {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}

.btn-setup.unconfigured:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

/* Settings state (Configured) - Sleek Glass Secondary */
.btn-setup.configured {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  box-shadow: none;
}

body.light-theme .btn-setup.configured {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.btn-setup.configured:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-blurple);
  transform: translateY(-1px);
}

body.light-theme .btn-setup.configured:hover {
  background: #e2e8f0;
  border-color: var(--accent-blurple);
}

/* Backdrop */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.4);
  backdrop-filter: blur(0px);
  opacity: 0;
  pointer-events: none;
  z-index: 998;
  transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(6px);
}

/* Sliding Drawer Container */
.slide-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 480px;
  max-width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-theme .slide-drawer {
  background: rgba(255, 255, 255, 0.95);
  border-left: 1px solid rgba(88, 101, 242, 0.08);
  box-shadow: -10px 0 35px rgba(15, 23, 42, 0.05);
}

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

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

.drawer-header h3 {
  margin: 0;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  padding: 4px;
}

.drawer-close-btn:hover {
  color: var(--accent-red);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Onboarding Header Styling inside drawer */
.onboarding-intro {
  margin-bottom: 24px;
  text-align: center;
  padding: 20px;
  background: rgba(56, 189, 248, 0.05);
  border: 1px dashed rgba(56, 189, 248, 0.2);
  border-radius: 12px;
}

body.light-theme .onboarding-intro {
  background: rgba(88, 101, 242, 0.03);
  border-color: rgba(88, 101, 242, 0.15);
}

.onboarding-intro h4 {
  margin: 0 0 6px 0;
  color: var(--text-primary);
  font-weight: 600;
}

.onboarding-intro p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Config Rules List Styling inside drawer */
.drawer-rules-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
  border-top: 1px solid var(--panel-border);
  padding-top: 15px;
}

.drawer-rule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
}

body.light-theme .drawer-rule-item {
  background: #f8fafc;
}

.drawer-rule-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.drawer-rule-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.drawer-rule-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* MEGAPANEL SUBMENU ITEM ROW STYLE */
.submenu-item-row {
  display: grid;
  grid-template-columns: 35px 1.5fr 1fr 120px 45px;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.submenu-item-row:hover {
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(15, 23, 42, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.05);
}
body.light-theme .submenu-item-row {
  background: #f8fafc;
  border-color: rgba(88, 101, 242, 0.08);
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.02);
}
body.light-theme .submenu-item-row:hover {
  background: #f1f5f9;
  border-color: rgba(88, 101, 242, 0.2);
}
