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

/* ─── Variables (Obsidian, Silver & Advanced Theme) ─── */
:root {
  --bg:        #050608;
  --bg2:       #050608;
  --surface:   rgba(13, 14, 18, 0.45);
  --surface2:  rgba(255, 255, 255, 0.015);
  --border:    rgba(255, 255, 255, 0.02);
  --border-hi: rgba(255, 255, 255, 0.055);
  --accent:    #a3a3a3;
  --accent-rgb: 163,163,163;
  --accent-glow: rgba(163, 163, 163, 0.08);
  --green:     #22c55e;
  --red:       #ef4444;
  --text:      #e2e8f0;
  --text-muted:#787880;
  --sans:      'Inter', sans-serif;
  --mono:      'Inter', sans-serif;
  --title:     'Inter', sans-serif;
  --radius:    4px;
  --radius-lg: 6px;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── Custom Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.05) transparent;
}

/* ─── Body / Background ─────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  line-height: 1.5;
  position: relative;
}

/* Optimized static grid overlay background */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  will-change: auto;
}

/* ─── Views ─────────────────────────────────────────────── */
.view { 
  width: 100%; 
  position: relative; 
  z-index: 1; 
}

/* ─── Auth Card Design (Clean Glassmorphic Card) ────────── */
.auth-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  width: 100%;
  min-height: 100vh;
  padding: 2rem;
  z-index: 10;
}

.auth-container {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  max-width: 385px;
  width: 100%;
  margin: auto;
  padding: 2.25rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.auth-container:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.form-side {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-container form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 1.1rem;
}

/* ─── Input Groups ──────────────────────────────────────── */
.input-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.input-group input[type="text"],
.input-group input[type="password"] {
  width: 100%;
  padding: 0.65rem 0.8rem;
  background: var(--surface2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s;
}

.input-group input:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

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

.auth-footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.auth-footer a:hover {
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

/* ─── Action Buttons ────────────────────────────────────── */
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
}

.action-button:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.action-button-secondary {
  border-color: var(--border-hi);
  color: var(--text-muted);
}

.action-button-secondary:hover {
  border-color: var(--accent);
  color: #fff;
}

/* ─── Status Messages ───────────────────────────────────── */
.status-message {
  font-size: 0.75rem;
  text-align: center;
  min-height: 1em;
  font-family: var(--sans);
  margin-bottom: 0.4rem;
}
.msg-success { color: var(--green); }
.msg-error { color: var(--red); }

/* ─── Top Navigation Bar ───────────────────────────────── */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(6, 6, 8, 0.95);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
}

.top-bar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.top-bar-brand img {
  width: 28px;
  height: 28px;
}

.top-bar-brand h3 {
  font-family: var(--title);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.top-bar nav ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.top-bar nav ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
  font-weight: 500;
}

.top-bar nav ul li a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
}

.top-bar nav ul li a.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.top-bar nav ul li a.logout-link {
  color: var(--red);
}
.top-bar nav ul li a.logout-link:hover {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.15);
}

/* ─── Main Content & Cards ──────────────────────────────── */
.main-content {
  flex: 1;
  padding: 95px 2rem 3rem;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  z-index: 10;
}

.customer-panel-tab {
  display: none;
}

.customer-panel-tab.active { display: block; }

.customer-panel-tab h1 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.account-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.info-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  transition: border-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 0);
  background-size: 16px 16px;
  pointer-events: none;
  z-index: 0;
}

.info-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.info-card.active-select {
  z-index: 100;
}

.dashboard-tab-content {
  display: none;
}

.dashboard-tab-content.active {
  display: block;
  animation: slideUp 0.2s ease both;
}

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

.info-card h2 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Detail Items */
.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.8rem;
  position: relative;
  gap: 0.5rem;
}


.detail-item > span:first-child {
  color: var(--text-muted);
  flex-shrink: 0;
}

.detail-item > span:last-child {
  color: var(--text);
  font-weight: 600;
}

/* Color picker alignment: align perfectly to the same column regardless of switch presence */
.detail-item > .color-picker-wrap,
.cheat-control > .color-picker-wrap {
  flex-shrink: 0;
  margin-left: auto;
}

/* If it is the last child (no switch), offset it by the switch width (2.75rem / 44px) to align columns */
.detail-item > .color-picker-wrap:last-child,
.cheat-control > .color-picker-wrap:last-child,
.detail-item > .keybind-btn:last-child,
.cheat-control > .keybind-btn:last-child {
  margin-right: 2.75rem;
}

/* If there is a switch next to it, use standard small gap */
.cheat-control > .color-picker-wrap,
.cheat-control > input.color-picker-input,
.cheat-control > .keybind-btn {
  margin-left: auto;
  margin-right: 0.5rem;
}


/* Sub-settings (indented helper controls under a main toggle) */
.cheat-control.sub-setting,
.detail-item.sub-setting {
  padding-left: 1.25rem !important;
}
.cheat-control.sub-setting .cheat-control-label,
.detail-item.sub-setting > span:first-child {
  font-size: 0.74rem !important;
  color: var(--text-muted) !important;
  opacity: 0.85;
}

.color-picker-wrap {

  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-hi);
  border-radius: 5px;
  padding: 0.2rem 0.45rem 0.2rem 0.3rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.color-picker-wrap:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}

.color-swatch-hex {
  font-family: var(--mono, monospace);
  font-size: 0.68rem;
  color: var(--text-muted) !important;
  font-weight: 400 !important;
  letter-spacing: 0.03em;
  min-width: 52px;
  user-select: none;
}

.hwid-description {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* ─── STANDALONE WEB MENU CUSTOM DESIGN ─────────────────── */
.web-menu-standalone {
  background: var(--bg2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  overflow: hidden;
  position: relative;
}

.web-menu-sidebar {
  width: 190px;
  background: rgba(10, 10, 12, 0.4);
  border-right: 1px solid var(--border-hi);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
}

.web-menu-brand {
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border-hi);
  margin-bottom: 1.25rem;
}

.web-menu-brand-title {
  font-family: var(--title);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.web-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0 0.75rem;
}

.web-menu-nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.web-menu-nav-btn i {
  font-size: 0.85rem;
  width: 14px;
}

.web-menu-nav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.02);
}

.web-menu-nav-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.12);
}

.web-menu-close-btn {
  margin-top: auto;
  margin-left: 0.75rem;
  margin-right: 0.75rem;
  border-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.04);
}
.web-menu-close-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ffffff;
  border-color: var(--red);
}

.web-menu-content {
  flex: 1;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: rgba(6, 6, 8, 0.4);
}

.web-menu-tab-content {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}

.web-menu-tab-content.active {
  display: flex;
}

.web-menu-title {
  font-family: var(--title);
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-hi);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.web-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cheat-control {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: none;
}
.cheat-control:hover {
  background: none;
  border-color: var(--border);
}
.cheat-control:last-of-type {
  border-bottom: none;
}

.cheat-control-label {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}


/* Custom Sleek Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 18px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: 0.15s ease-out;
}
.slider:before {
  position: absolute; content: "";
  height: 10px; width: 10px;
  left: 3px; bottom: 3px;
  background-color: #737373;
  border-radius: 50%;
  transition: 0.15s ease-out;
}
input:checked + .slider {
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.08);
}
input:checked + .slider:before {
  transform: translateX(18px);
  background-color: #ffffff;
}

/* Custom Sleek Sliders */
.slider-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1.1rem;
}

.slider-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%; height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  outline: none;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.cheat-select {
  background: var(--surface2);
  border: 1px solid var(--border-hi);
  color: #fff;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}
.cheat-select:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.keybind-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-hi);
  color: #fff;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  min-width: 60px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.keybind-btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.keybind-btn.listening {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent);
}

/* Keybind mode badge (Always / Hold / Toggle) */
.keybind-mode-badge {
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 0.35rem;
  opacity: 0.6;
}

/* Right-click mode dropdown on keybind buttons */
.keybind-mode-menu {
  position: fixed;
  z-index: 999999;
  background: rgba(13, 14, 18, 0.95);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 0.3rem;
  min-width: 120px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  display: none;
}
.keybind-mode-menu.visible {
  display: block;
  animation: notifySlideIn 0.15s ease both;
}
.keybind-mode-menu .mode-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.keybind-mode-menu .mode-option:hover {
  background: rgba(255, 255, 255, 0.06);
}
.keybind-mode-menu .mode-option.active {
  color: var(--accent);
}
.keybind-mode-menu .mode-option i {
  width: 14px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.keybind-mode-menu .mode-option.active i {
  color: var(--accent);
}

/* ─── Dashboard Wrapper Structure (Side-by-side) ────────── */
.dashboard-wrapper {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  width: 100%;
  position: relative;
  z-index: 10;
  background-color: var(--bg);
}

.dashboard-sidebar {
  width: 250px;
  background-color: var(--bg2);
  border-right: 1px solid var(--border-hi);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 1.5rem 0;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.brand-pfp-mini {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

.sidebar-brand span {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.sidebar-search {
  margin: 0 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sidebar-search:focus-within {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.sidebar-search i {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.sidebar-search input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.75rem;
  width: 100%;
  outline: none;
}

.search-kbd {
  font-size: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 4px;
  border-radius: 3px;
  color: var(--text-muted);
}

.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.menu-group {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-left: 0.5rem;
  margin-bottom: 0.35rem;
}

.sidebar-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-menu ul li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.sidebar-menu ul li a i {
  width: 16px;
  font-size: 0.85rem;
  text-align: center;
}

.sidebar-menu ul li a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-menu ul li a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-hi);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.sidebar-footer {
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.sidebar-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.sidebar-footer-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.sidebar-footer-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

/* Custom Sleek Theme Selector Dropdown */
.theme-select-container {
  position: relative;
  width: 100%;
}

.theme-dropdown-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.55rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}

.theme-dropdown-btn:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.theme-dropdown-options {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--border-hi);
  border-radius: 4px;
  margin-bottom: 4px;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
}

.theme-dropdown-options.active {
  display: block;
}

.theme-option {
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.15s;
}

.theme-option:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.theme-option.selected {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

/* ─── Main Panel Structure ────────────────────────────── */
.main-panel {
  flex: 1;
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
}

.dashboard-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.username-highlight {
  color: var(--text);
  background: linear-gradient(135deg, #fff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 800px;
  line-height: 1.6;
}

/* ─── Metrics Grid Row ────────────────────────────────── */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.metric-card {
  background: rgba(15, 15, 18, 0.4);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.25s, transform 0.25s;
}

.metric-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}

.metric-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
}

.metric-card:hover .metric-icon {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.metric-details {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.metric-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.text-green {
  color: var(--green) !important;
}

/* ─── Workspace Grid Columns ─────────────────────────── */
.dashboard-workspace-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .dashboard-wrapper {
    flex-direction: column;
  }
  .dashboard-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .dashboard-workspace-grid {
    grid-template-columns: 1fr;
  }
}

.workspace-col-left, .workspace-col-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Execution Lists */
.execution-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.execution-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.exec-icon {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.exec-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.exec-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.exec-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.exec-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ─── Subtab Navigation Bar ────────────────────────────── */
.subtab-bar {
  display: flex;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.5rem;
  width: 100%;
}

.subtab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.subtab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.subtab-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.subtab-content {
  display: none;
  width: 100%;
}

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

/* ─── Custom Select Dropdowns ───────────────────────────── */
.custom-select-container {
  position: relative;
  width: 160px;
}

.custom-select-trigger {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-hi);
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  user-select: none;
}

.custom-select-trigger:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.01);
}

.custom-select-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--border-hi);
  border-radius: 4px;
  margin-top: 4px;
  overflow-y: auto;
  max-height: 180px;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.15s ease both;
}

.custom-select-options.active {
  display: block;
}

.custom-select-option {
  padding: 0.45rem 0.65rem;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.custom-select-option:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.custom-select-option.selected {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

/* Config Hub Table styling */
.config-table th {
  text-align: left;
  border-bottom: 1px solid var(--border-hi);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.config-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
}

.config-table tbody tr {
  transition: background 0.15s ease;
}

.config-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

.config-table td .btn-action {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hi);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  font-family: var(--sans);
  transition: all 0.2s;
}

.config-table td .btn-action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Custom Floating Notifications */
.notification-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.custom-notification {
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.25rem;
  min-width: 280px;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: notifySlideIn 0.3s ease both;
  transition: opacity 0.25s ease;
}

.custom-notification.fade-out {
  animation: notifySlideOut 0.25s ease both;
}

.notification-icon {
  font-size: 0.95rem;
  color: var(--green);
}

.notification-icon.info {
  color: var(--accent);
}

.notification-icon.error {
  color: var(--red);
}

.notification-text {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

@keyframes notifySlideIn {
  from {
    opacity: 0;
    transform: translate3d(80px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes notifySlideOut {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(40px, 0, 0);
  }
}

/* ─── Custom Color Picker ───────────────────────────────── */
.color-swatch-btn {
  width: 22px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  outline: none;
  background: none;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.color-swatch-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: inherit;
}

.color-swatch-btn:focus {
  outline: none;
}


.color-picker-panel {
  position: fixed;
  z-index: 99990;
  background: rgba(14, 16, 22, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0.9rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7);
  width: 220px;
  animation: cpPanelIn 0.18s cubic-bezier(0.16,1,0.3,1) both;
  display: none;
}

.color-picker-panel.active {
  display: block;
}

@keyframes cpPanelIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* SV (saturation/value) canvas */
.cp-sv-canvas {
  width: 100%;
  height: 130px;
  border-radius: 6px;
  cursor: crosshair;
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0.55rem;
}

/* Hue slider */
.cp-hue-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right,
    #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
  outline: none;
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0.55rem;
  cursor: pointer;
}

.cp-hue-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(0,0,0,0.5);
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  cursor: pointer;
}

.cp-hue-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(0,0,0,0.5);
  cursor: pointer;
}

/* Alpha slider */
.cp-alpha-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.cp-alpha-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.cp-alpha-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 10px;
  border-radius: 5px;
  outline: none;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  background: linear-gradient(to right, transparent 0%, currentColor 100%);
}

.cp-alpha-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(0,0,0,0.5);
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  cursor: pointer;
}

/* Hex + preview row */
.cp-bottom-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cp-hex-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-hi);
  color: var(--text);
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  font-family: var(--mono, monospace);
  font-size: 0.72rem;
  outline: none;
  transition: border-color 0.2s;
  text-transform: uppercase;
}

.cp-hex-input:focus {
  border-color: rgba(255,255,255,0.25);
}

.cp-preview-swatch {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* SV cursor dot */
.cp-sv-cursor {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Custom Input Field Wrapper */
.input-field-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-field-wrapper:focus-within {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}
.input-field-wrapper .field-icon {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.input-field-wrapper input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #fff !important;
  font-family: var(--sans);
  font-size: 0.82rem;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
}

/* Discord Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

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

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-content h2 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.modal-content p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Premium Discord Profile Card Widget */
.discord-profile-card {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  font-family: var(--sans);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
}

.discord-banner {
  height: 90px;
  width: 100%;
  transition: background 0.3s ease;
}

.discord-avatar-wrapper {
  position: absolute;
  top: 48px; /* High enough to overlap the 90px banner */
  left: 16px;
  display: inline-block;
  z-index: 3;
}

.discord-avatar-wrapper img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 6px solid #111214;
  background-color: #111214;
  display: block;
}

.discord-status-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 22px;
  height: 22px;
  background-color: #80848e; /* Default Offline */
  border-radius: 50%;
  border: 4.5px solid #111214;
}
.discord-status-dot.online {
  background-color: #23a55a;
}
.discord-status-dot.idle {
  background-color: #f0b232;
  /* Moon cutout look */
  clip-path: circle(50% at 50% 50%);
}
.discord-status-dot.dnd {
  background-color: #f23f43;
  display: flex;
  align-items: center;
  justify-content: center;
}
.discord-status-dot.dnd::after {
  content: '';
  width: 9px;
  height: 2.8px;
  background-color: #111214;
  border-radius: 1px;
}
.discord-status-dot.offline {
  background-color: transparent;
  border: 5px solid #80848e;
}

/* Speech bubble custom status styling */
.discord-custom-status-bubble {
  position: absolute;
  top: 100px;
  left: 105px;
  background: #232428;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #dbdee1;
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 16px;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.discord-custom-status-bubble::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: #232428;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.discord-card-body {
  padding: 44px 16px 16px; /* High top padding to allow avatar overlap */
  background: #111214;
}

.discord-names-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.discord-display-name {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.discord-username-tag {
  color: #949ba4;
  font-size: 0.8rem;
  margin-top: 1px;
  display: block;
}

.discord-badges-container {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #2b2d31;
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.discord-badge-icon {
  font-size: 0.8rem;
  opacity: 0.95;
  transition: opacity 0.2s;
}

.discord-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 12px 0;
}

.discord-section-header {
  font-size: 0.65rem;
  font-weight: 800;
  color: #949ba4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.discord-section-text {
  font-size: 0.8rem;
  color: #dbdee1;
}


/* ─── Performance Optimizations ─────────────────────────── */
.info-card,
.metric-card,
.custom-notification,
.auth-container,
.dashboard-tab-content {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Reduce repaints */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Optimize scrolling */
.sidebar-menu,
.main-panel,
.web-menu-content {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}


/* ─── Config Hub ─────────────────────────────────────────── */
.config-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.config-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

/* Config Card */
.config-card {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.config-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.config-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.config-card:hover::before {
  background: var(--accent);
}

.config-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.config-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}

.config-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.config-card-category {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.config-card-category.legit   { background: rgba(34, 197, 94, 0.12); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.2); }
.config-card-category.rage    { background: rgba(239, 68, 68, 0.12); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.config-card-category.mixed   { background: rgba(163, 163, 163, 0.12); color: #a3a3a3; border: 1px solid rgba(163, 163, 163, 0.2); }
.config-card-category.hvh     { background: rgba(234, 179, 8, 0.12); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.2); }

.config-card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.config-author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--border-hi);
  will-change: auto;
}

/* Lazy loading optimization */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.2s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

.config-author-name {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.config-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.config-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.config-meta-item i { font-size: 0.65rem; }

.config-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.config-card-actions {
  display: flex;
  gap: 0.5rem;
}

.config-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border-hi);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
}

.config-action-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.config-action-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 700;
}

.config-action-btn.primary:hover {
  filter: brightness(1.15);
}

/* Star Ratings */
.star-rating-display {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.star-rating-display i {
  font-size: 0.7rem;
  color: #eab308;
}

.star-rating-display i.far {
  color: var(--border-hi);
}

.star-rating-interactive {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.star-rating-interactive i {
  font-size: 1.35rem;
  color: var(--border-hi);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}

.star-rating-interactive i:hover,
.star-rating-interactive i.hovered,
.star-rating-interactive i.fas {
  color: #eab308;
}

.star-rating-interactive i:hover {
  transform: scale(1.2);
}

.star-rating-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: #eab308;
  margin-left: 4px;
}

.star-rating-count {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: 2px;
}

/* Config Empty State */
.config-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.config-empty-state i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.4;
  display: block;
}

.config-empty-state p {
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Upload Modal Textarea */
#upload_config_desc {
  transition: border-color 0.2s;
}

#upload_config_desc:focus {
  border-color: rgba(255, 255, 255, 0.25);
  outline: none;
}


/* ─── Loader Required Overlay ────────────────────────────────────── */
.loader-required-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.25);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Ensure minimum height so it's always visible */
  min-height: 300px;
}

.loader-required-overlay i {
  font-size: 2rem;
  color: var(--text-muted);
  opacity: 0.4;
  display: block;
  margin-bottom: 1rem;
}

.loader-required-overlay p {
  color: var(--text-muted);
  font-size: 0.82rem;
  max-width: 300px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 1.25rem;
}

/* Tab needs relative positioning + min-height for overlay to work */
.requires-loader {
  position: relative;
  min-height: 300px;
}
