/* ==========================================================================
   QUESTY AUTOMATION DASHBOARD - CYBERPUNK DISCORD DARK THEME
   Replication of https://questy.bond/ design system
   ========================================================================== */

:root {
  --bg-dark: #080b0f;
  --bg-card: #0e141c;
  --bg-card-hover: #121924;
  --bg-card-alt: #101620;
  --border-subtle: #1a2332;
  --border-hover: #2d3c52;
  --border-focus: rgba(var(--accent-rgb), 0.5);

  --accent-lime: #a3e635;
  --accent-lime-hover: #bef264;
  --accent-lime-dark: #65a30d;
  --accent-rgb: 163, 230, 53;
  --accent-lime-glow: rgba(var(--accent-rgb), 0.25);

  --bravery-purple: #9061f9;
  --bravery-bg: #271438;
  --bravery-border: #442266;

  --brilliance-coral: #f97316;
  --brilliance-bg: #381a0b;
  --brilliance-border: #612c12;

  --balance-cyan: #06b6d4;
  --balance-bg: #09282d;
  --balance-border: #114c55;

  --text-white: #f8fafc;
  --text-primary: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 20px rgba(var(--accent-rgb), 0.25);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ── Utility Classes ── */
.hidden {
  display: none !important;
}

/* ── Cyber Matrix Ambient Background ── */
.cyber-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(var(--accent-rgb), 0.04) 0%, transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(6, 182, 212, 0.03) 0%, transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

.cyber-glow-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  contain: strict;
  transform: translateZ(0);
  will-change: transform;
}

.orb-1 {
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.12) 0%, transparent 70%);
  top: 50px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
  bottom: -60px;
  right: -60px;
  transform: translate3d(0, 0, 0);
}

/* ── Main App Layout ── */
.app-layout {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

/* ── LEFT SIDEBAR ── */
.sidebar {
  width: 240px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), width 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease;
}

/* Mobile Sidebar Backdrop */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(4, 7, 11, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}

.sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sidebar-brand {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(26, 35, 50, 0.4);
}

.sidebar-close-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: var(--transition);
}

.sidebar-close-btn:hover {
  color: var(--text-white);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
}

.brand-logo-wrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.4));
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-white);
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-lime);
  letter-spacing: 0.02em;
}

.sidebar-nav {
  padding: 20px 12px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-group-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  padding: 12px 10px 6px;
  user-select: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.16) 0%, rgba(var(--accent-rgb), 0.03) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: var(--text-white);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.08);
}

.nav-item.active .nav-icon {
  color: var(--accent-lime);
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: var(--transition);
}

.nav-item:hover .nav-icon {
  color: var(--text-white);
}

.discord-icon-svg {
  display: flex;
  align-items: center;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(26, 35, 50, 0.4);
}

.system-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-dim);
  font-weight: 500;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-lime);
  box-shadow: 0 0 8px var(--accent-lime);
}

/* ── MAIN CONTENT WRAPPER ── */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ── TOP NAVIGATION BAR ── */
.topbar {
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-dark);
  transition: background-color 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 6px;
  cursor: pointer;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
}

.breadcrumb-root {
  color: var(--text-dim);
}

.breadcrumb-sep {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.breadcrumb-active {
  color: var(--accent-lime);
  font-weight: 600;
}

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

.topbar-btn {
  background: #111822;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.topbar-btn:hover {
  background: #16202c;
  border-color: var(--border-hover);
  color: var(--text-white);
}

.refresh-icon.rotating {
  animation: spin 0.8s linear infinite;
}

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

.user-chip {
  background: #111822;
  border: 1px solid var(--border-subtle);
  padding: 5px 12px 5px 6px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.user-chip:hover {
  border-color: var(--border-hover);
  background: #141e2b;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a2332;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-white);
}

.tier-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  color: var(--accent-lime);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tier-badge.premium {
  background: rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.6);
  color: #facc15;
}

/* ── CONTENT AREA & SECTIONS ── */
.content-area {
  padding: 28px;
  flex: 1;
}

.page-section {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

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

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

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-lime);
  color: #0a0e14;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-lime-hover);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #121922;
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
}

.btn-secondary:hover {
  background-color: #182230;
  border-color: var(--border-hover);
}

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

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

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* ── PAGE 1: OVERVIEW ── */
.hero-banner {
  background: linear-gradient(135deg, #112214 0%, #0d161f 55%, #0a0f16 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card), 0 0 30px rgba(var(--accent-rgb), 0.05);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 10px;
  line-height: 1.25;
}

.highlight-user {
  color: var(--accent-lime);
}

.hero-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-emblem-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-emblem-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.3) 0%, transparent 70%);
  filter: blur(12px);
}

.hero-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 16px rgba(var(--accent-rgb), 0.5));
}

/* Stats 3 Cards Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.stat-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.stat-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  color: var(--accent-lime);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-white);
}

/* Quick Actions Section */
.section-title-wrap {
  margin-bottom: 18px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.action-card:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(var(--accent-rgb), 0.1);
}

.action-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  color: var(--accent-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}

.action-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── COMMON PAGE HEADER CARDS ── */
.page-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.page-header-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 4px;
}

.page-header-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.header-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── PAGE 2: TOKENS MANAGER ── */
.tokens-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.token-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.token-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.token-account-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.token-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a2332;
  border: 2px solid var(--border-subtle);
}

.token-account-text {
  display: flex;
  flex-direction: column;
}

.token-username {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
}

.token-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.token-status-pill {
  font-size: 0.7rem;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.token-status-pill.valid {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.token-status-pill.invalid {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* ── PAGE 3: QUEST MANAGER ── */
.quest-header-card {
  flex-direction: column;
  align-items: stretch;
}

.quest-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.quest-controls-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.control-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
}

.form-select {
  background: #121822;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  padding: 8px 14px;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.form-select:focus {
  border-color: var(--accent-lime);
}

.quests-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quest-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: var(--transition);
}

.quest-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.quest-main-col {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.quest-tile-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #1b2432;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.quest-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.quest-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.quest-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-white);
}

.quest-pct-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-lime);
}

.quest-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.quest-progress-wrap {
  width: 100%;
  height: 6px;
  background: #141c26;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.quest-progress-bar {
  height: 100%;
  background: var(--accent-lime);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.4);
}

.quest-success-note {
  font-size: 0.72rem;
  color: #f87171;
  margin-top: 4px;
}

.quest-actions-col {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-completed {
  background: var(--accent-lime);
  color: #0a0e14;
  font-weight: 700;
  border: none;
  cursor: default;
  box-shadow: 0 0 14px var(--accent-lime-glow);
}

/* Live quest banner */
.live-quest-banner {
  background: linear-gradient(135deg, #112818 0%, #0d1720 100%);
  border: 1px solid var(--accent-lime);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.2);
}

.live-banner-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.live-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 10px var(--accent-lime);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.live-quest-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
}

.live-quest-account {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.live-quest-status {
  font-size: 0.85rem;
  color: var(--accent-lime);
  margin-bottom: 12px;
  font-weight: 600;
}

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #141c26;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-lime);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
  box-shadow: 0 0 12px var(--accent-lime);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

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

/* ── PAGE 4: HYPESQUAD MANAGER ── */
.hypesquad-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
  flex-wrap: wrap;
}

.account-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #1b2432;
}

.account-preview-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
}

.account-preview-id {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.hypesquad-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.hs-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
  border: 1px solid var(--border-subtle);
}

.hs-card-bravery {
  border-color: var(--bravery-border);
  background: linear-gradient(135deg, var(--bravery-bg) 0%, var(--bg-card) 70%);
}

.hs-card-brilliance {
  border-color: var(--brilliance-border);
  background: linear-gradient(135deg, var(--brilliance-bg) 0%, var(--bg-card) 70%);
}

.hs-card-balance {
  border-color: var(--balance-border);
  background: linear-gradient(135deg, var(--balance-bg) 0%, var(--bg-card) 70%);
}

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

.hs-card-bravery .hs-icon-wrap {
  background: rgba(144, 97, 249, 0.18);
  border: 1px solid rgba(144, 97, 249, 0.4);
}

.hs-card-brilliance .hs-icon-wrap {
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.hs-card-balance .hs-icon-wrap {
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.hs-emblem {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.hs-info {
  flex: 1;
  min-width: 0;
}

.hs-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}

.hs-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.hs-btn {
  width: auto;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.hs-btn-bravery {
  background: #6d46a8;
  color: #ffffff;
}

.hs-btn-bravery:hover {
  background: #8b5cf6;
}

.hs-btn-brilliance {
  background: #9a4820;
  color: #ffffff;
}

.hs-btn-brilliance:hover {
  background: #f97316;
}

.hs-btn-balance {
  background: #1b686e;
  color: #ffffff;
}

.hs-btn-balance:hover {
  background: #06b6d4;
}

/* ── PAGE 5: REDEEM KEY ── */
.redeem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.claim-key-card, .perks-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.claim-card-title, .perks-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 8px;
}

.claim-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

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

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  background: #111822;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  padding: 12px 14px 12px 42px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--accent-lime);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.25);
}

.claim-security-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.perks-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.perk-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.perk-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  color: var(--accent-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.perk-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 2px;
}

.perk-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── FLOATING SETTINGS BUTTON ── */
.floating-settings-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent-lime);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.45);
  z-index: 99;
  transition: var(--transition);
}

.floating-settings-btn:hover {
  background-color: var(--accent-lime-hover);
  transform: rotate(45deg) scale(1.06);
}

/* ── MODALS ── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 11, 0.8);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: modalScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

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

.modal-body {
  padding: 24px;
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-hint {
  display: block;
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.modal-tip {
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.tip-badge {
  background: var(--accent-lime);
  color: #0a0e14;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 4px;
  margin-right: 4px;
}

.modal-footer {
  padding: 14px 24px;
  background: rgba(8, 11, 15, 0.6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Quest details modal specifics */
.qd-game-banner {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #151e2a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qd-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qd-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qd-info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(26, 35, 50, 0.4);
  font-size: 0.85rem;
}

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

.qd-info-val {
  color: var(--text-white);
  font-weight: 600;
}

/* ── SWITCH SLIDER ── */
.switch-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.switch-wrap input {
  display: none;
}

.switch-slider {
  width: 42px;
  height: 22px;
  background: #1b2432;
  border-radius: 20px;
  position: relative;
  transition: var(--transition);
  border: 1px solid var(--border-subtle);
}

.switch-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-dim);
  top: 2px;
  left: 3px;
  transition: var(--transition);
}

.switch-wrap input:checked + .switch-slider {
  background: rgba(var(--accent-rgb), 0.2);
  border-color: var(--accent-lime);
}

.switch-wrap input:checked + .switch-slider::before {
  transform: translateX(19px);
  background: var(--accent-lime);
}

.switch-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── FLOATING TOAST NOTIFICATION ── */
.toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #0d1612;
  border: 1px solid var(--accent-lime);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  color: var(--text-white);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--accent-rgb), 0.35);
  animation: toastPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

.toast.toast-error {
  background: #200f13;
  border-color: #ef4444;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 68, 68, 0.35);
}

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

.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

/* ── RESPONSIVE DESIGN ── */
@media (max-width: 1024px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
  .hypesquad-cards-grid {
    grid-template-columns: 1fr;
  }
  .redeem-grid {
    grid-template-columns: 1fr;
  }
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
}

/* ── COMPREHENSIVE MOBILE RESPONSIVE ENGINE (Tablets & Mobile <768px) ── */
@media (max-width: 768px) {
  /* Sidebar Mobile Drawer */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    z-index: 1100;
    transform: translateX(-100%);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.85);
    background: rgba(10, 15, 22, 0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .sidebar.open {
    transform: translateX(0);
  }

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

  .sidebar-nav {
    padding: 16px 12px;
  }

  .nav-item {
    padding: 12px 14px;
    font-size: 0.92rem;
  }

  /* Topbar Mobile Alignment */
  .topbar {
    height: 58px;
    padding: 0 12px;
  }

  .topbar-left {
    gap: 10px;
    min-width: 0;
  }

  .mobile-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    border-radius: var(--radius-sm);
    background: #111822;
  }

  .breadcrumb {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-right {
    gap: 8px;
  }

  .topbar-btn {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  /* Content Container */
  .content-area {
    padding: 16px 12px 80px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Page 1: Overview Mobile Polish */
  .hero-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 22px 18px;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
  }

  .hero-title {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .hero-desc {
    font-size: 0.88rem;
    margin-bottom: 18px;
    line-height: 1.5;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.92rem;
  }

  .hero-emblem-wrap {
    display: none;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }

  .stat-card {
    padding: 16px 18px;
    gap: 14px;
  }

  .stat-icon-wrap {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .action-card {
    padding: 18px 16px;
    gap: 14px;
  }

  .action-icon-wrap {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .action-title {
    font-size: 0.95rem;
  }

  .action-desc {
    font-size: 0.78rem;
  }

  /* Page 2: Tokens Manager Mobile */
  .page-header-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 16px;
    margin-bottom: 18px;
  }

  .page-header-card .btn {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
  }

  .page-header-info {
    gap: 12px;
  }

  .page-header-title {
    font-size: 1.2rem;
  }

  .token-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 14px;
  }

  .token-account-info {
    width: 100%;
    gap: 12px;
  }

  .token-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .token-account-text {
    min-width: 0;
    flex: 1;
  }

  .token-username {
    font-size: 0.95rem;
    word-break: break-word;
  }

  .token-meta {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.72rem;
  }

  .token-masked-key {
    word-break: break-all;
    font-size: 0.72rem;
  }

  .token-card-actions {
    display: flex;
    width: 100%;
    gap: 8px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
  }

  .token-card-actions .btn {
    flex: 1;
    justify-content: center;
  }

  /* Page 3: Quest Manager Mobile */
  .quest-header-card {
    padding: 18px 16px;
    gap: 16px;
  }

  .quest-header-top {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .quest-header-top .btn {
    width: 100%;
    justify-content: center;
  }

  .quest-controls-toolbar {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .control-field {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .control-field .form-select {
    width: 100%;
  }

  .quest-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 14px;
  }

  .quest-main-col {
    width: 100%;
    align-items: flex-start;
    gap: 12px;
  }

  .quest-tile-img {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .quest-info-col {
    min-width: 0;
    width: 100%;
  }

  .quest-title-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .quest-title {
    font-size: 0.92rem;
    word-break: break-word;
  }

  .quest-actions-col {
    width: 100%;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
  }

  .quest-actions-col .btn {
    flex: 1;
    justify-content: center;
    padding: 9px 12px;
    font-size: 0.82rem;
  }

  /* Live Quest Banner Mobile */
  .live-quest-banner {
    padding: 16px;
  }

  .live-controls {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .live-controls .btn {
    width: 100%;
    justify-content: center;
  }

  /* Page 4: HypeSquad Mobile */
  .hypesquad-header-top {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .hypesquad-header-top .control-field {
    width: 100%;
  }

  .account-preview-card {
    padding: 14px;
    gap: 12px;
  }

  .hypesquad-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hs-card {
    padding: 18px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .hs-card .hs-icon-wrap {
    align-self: flex-start;
  }

  .hs-info {
    width: 100%;
    min-width: 0;
  }

  .hs-btn {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    justify-content: center;
  }

  /* Page 5: Redeem Key Mobile */
  .redeem-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .claim-key-card, .perks-card {
    padding: 20px 16px;
  }

  .claim-card-title, .perks-card-title {
    font-size: 1.05rem;
  }

  .redeem-input {
    font-size: 0.85rem;
    padding: 11px 12px 11px 38px;
  }

  /* Admin Pages Mobile Layout */
  .admin-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .admin-toolbar-left {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  .admin-filter-select,
  .admin-search-input {
    width: 100% !important;
    min-width: 0 !important;
  }

  .admin-toolbar-right {
    display: flex;
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
  }

  .admin-toolbar-right .btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }

  .admin-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .admin-maint-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sql-shortcuts-row {
    gap: 6px;
  }

  .sql-chip {
    font-size: 0.72rem;
    padding: 4px 8px;
  }

  .sql-editor-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .sql-editor-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Modals Mobile Fitting */
  .modal-overlay {
    padding: 12px;
    align-items: center;
    justify-content: center;
  }

  .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  .modal-footer {
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    width: 100%;
  }

  .modal-footer .btn {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
  }

  /* Floating Settings Button */
  .floating-settings-btn {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  /* Customize Drawer on Mobile */
  .customize-panel {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
  }
}

/* ── SMALL PHONES (<600px) TOPBAR & MICRO-ADAPTIVE POLISH ── */
@media (max-width: 600px) {
  .breadcrumb-root,
  .breadcrumb-sep {
    display: none;
  }

  .breadcrumb-active {
    font-size: 0.9rem;
    font-weight: 700;
  }

  .topbar-btn span {
    display: none;
  }

  .topbar-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: var(--radius-sm);
  }

  .user-chip {
    padding: 4px 8px 4px 4px;
    gap: 6px;
  }

  .user-avatar {
    width: 26px;
    height: 26px;
  }

  .user-name {
    display: none;
  }

  .tier-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
  }
}

/* ── QUESTY LANDING PAGE (Exact Match to https://questy.bond/) ── */
.landing-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.landing-topbar-actions {
  display: flex;
  align-items: center;
}

.btn-discord-join {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-lime);
  color: #0a0e14;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 10px var(--accent-lime-glow);
}

.btn-discord-join img {
  filter: brightness(0);
}

.btn-discord-join:hover {
  background-color: var(--accent-lime-hover);
  box-shadow: 0 4px 16px var(--accent-lime-glow);
  transform: translateY(-1px);
}

.landing-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  width: 100%;
}

.landing-title {
  font-size: 3.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.landing-highlight {
  background: linear-gradient(135deg, var(--accent-lime) 0%, var(--accent-lime-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-subtitle {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.landing-cta-wrap {
  margin-bottom: 72px;
}

.btn-authorize {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--accent-lime);
  color: #0a0e14;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 15px 36px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 28px var(--accent-lime-glow);
  transition: var(--transition);
}

.btn-authorize img,
.btn-authorize-sm img {
  filter: brightness(0);
}

.btn-authorize:hover {
  background-color: var(--accent-lime-hover);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.5);
  transform: translateY(-2px);
}

.btn-authorize-sm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-lime);
  color: #0a0e14;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-authorize-sm:hover {
  background-color: var(--accent-lime-hover);
}

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  text-align: left;
}

.landing-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.landing-feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}


.landing-feature-card .feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent-lime);
}

.landing-feature-card .feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.landing-feature-card .feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Logout Button ── */
.btn-logout {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

.btn-logout:hover {
  color: #ffffff;
  background: #ef4444;
  border-color: #ef4444;
}


/* ── Landing Responsive ── */
@media (max-width: 900px) {
  .landing-title {
    font-size: 2.5rem;
  }
  .landing-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .landing-topbar {
    padding: 18px 20px;
  }
  .landing-hero {
    padding: 30px 16px 50px;
  }
}

@media (max-width: 480px) {
  .landing-topbar {
    padding: 14px 16px;
  }

  .brand-logo-wrap {
    width: 30px;
    height: 30px;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .brand-subtitle {
    font-size: 0.65rem;
  }

  .btn-discord-join {
    padding: 7px 12px;
    font-size: 0.8rem;
    gap: 6px;
  }

  .landing-title {
    font-size: clamp(1.9rem, 7.5vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 14px;
    word-break: break-word;
  }

  .landing-subtitle {
    font-size: 0.92rem;
    margin-bottom: 24px;
    padding: 0 4px;
    line-height: 1.5;
  }

  .landing-cta-wrap {
    margin-bottom: 36px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .btn-authorize {
    width: 100%;
    max-width: 320px;
    padding: 13px 20px;
    font-size: 0.98rem;
    justify-content: center;
  }

  .landing-feature-card {
    padding: 20px 16px;
  }

  .landing-feature-card .feature-title {
    font-size: 1.05rem;
  }

  .landing-feature-card .feature-desc {
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   CUSTOMIZE PANEL & FLOATING SETTINGS BUTTON
   Replication of questy.bond theme drawer
   ========================================================================== */

/* ── Floating Settings Button (Bottom-Right) ── */
.floating-settings-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent-lime);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-lime-glow);
  cursor: pointer;
  z-index: 950;
  transition: var(--transition);
}

.floating-settings-btn:hover {
  transform: rotate(35deg) scale(1.08);
  background-color: var(--accent-lime-hover);
  box-shadow: 0 6px 25px var(--accent-lime-glow);
}

.floating-settings-btn svg {
  filter: brightness(0);
}

/* ── Customize Backdrop ── */
.customize-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.customize-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.customize-backdrop.hidden {
  display: none !important;
}

/* ── Customize Slide-Over Panel (Right Drawer with Smooth Animation) ── */
.customize-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 360px;
  max-width: 92vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-subtle);
  border-right: none;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.85);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.38s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.38s ease;
  will-change: transform;
}

.customize-panel.active {
  transform: translateX(0%);
  visibility: visible;
  pointer-events: auto;
}

.customize-panel.hidden {
  display: none !important;
}

/* Header */
.customize-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 20px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.customize-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.customize-icon-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sparkle-icon {
  color: var(--accent-lime);
  flex-shrink: 0;
}

.customize-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.customize-subtitle {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0;
}

.btn-close-customize {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.btn-close-customize:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: scale(1.06);
}

/* Body */
.customize-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.customize-section {
  display: flex;
  flex-direction: column;
}

.section-badge-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.section-badge-header svg {
  color: var(--text-dim);
}

/* ── Swatch Grid (4 columns) ── */
.color-themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 6px;
}

.theme-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  background: transparent;
  text-align: center;
}

.theme-swatch-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.theme-swatch-item.active {
  border-color: var(--accent-lime);
  background: rgba(var(--accent-rgb), 0.06);
  box-shadow: 0 0 12px var(--accent-lime-glow);
}

.swatch-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.theme-swatch-item:hover .swatch-circle {
  transform: scale(1.08);
}

.swatch-check {
  display: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ffffff;
  color: #0a0e14;
  font-size: 11px;
  font-weight: 900;
  line-height: 17px;
  text-align: center;
  position: absolute;
  top: -3px;
  right: -3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.theme-swatch-item.active .swatch-check {
  display: block;
}

.swatch-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.theme-swatch-item.active .swatch-label {
  color: #ffffff;
  font-weight: 700;
}

/* Individual Swatch Styles */
.swatch-toxic-lime { background-color: #a3e635; }
.swatch-oled-black { background-color: #000000; border: 1.5px solid #333333; }
.swatch-neon-cyan { background-color: #00f0ff; }
.swatch-royal-purple { background-color: #a855f7; }
.swatch-solar-gold { background-color: #f59e0b; }
.swatch-hot-pink { background-color: #ec4899; }
.swatch-crimson-fire { background-color: #ef4444; }
.swatch-electric-blue { background-color: #3b82f6; }
.swatch-mint-fresh { background-color: #10b981; }
.swatch-sunset-orange { background-color: #f97316; }
.swatch-cyber-gradient { background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #00f0ff 100%); }
.swatch-plasma-teal { background-color: #14b8a6; }
.swatch-deep-rose { background-color: #f43f5e; }

/* ── Layout Options Grid (2 columns) ── */
.layout-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.layout-card {
  position: relative;
  background: var(--bg-card-alt);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-align: center;
}

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

.layout-card.active {
  border-color: var(--accent-lime);
  background: rgba(var(--accent-rgb), 0.06);
  box-shadow: 0 0 12px var(--accent-lime-glow);
}

.layout-active-dot {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 6px var(--accent-lime);
}

.layout-card.active .layout-active-dot {
  display: block;
}

.layout-card-title {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}

.layout-card.active .layout-card-title {
  color: #ffffff;
  font-weight: 700;
}

/* Wireframe Cards */
.layout-wireframe {
  width: 100%;
  height: 48px;
  background: #06090e;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4px;
  gap: 4px;
}

.wireframe-sidebar .wf-col-nav {
  width: 26%;
  height: 100%;
  background: var(--accent-lime);
  border-radius: 3px;
}

.wireframe-sidebar .wf-col-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wireframe-sidebar .wf-bar-top {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.wireframe-sidebar .wf-block-content {
  width: 100%;
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
}

.wireframe-topbar {
  flex-direction: column;
  gap: 4px;
}

.wireframe-topbar .wf-row-nav {
  width: 100%;
  height: 9px;
  background: var(--accent-lime);
  border-radius: 2px;
}

.wireframe-topbar .wf-block-body {
  width: 100%;
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
}

.wireframe-rail .wf-col-rail {
  width: 12%;
  height: 100%;
  background: var(--accent-lime);
  border-radius: 2px;
}

.wireframe-rail .wf-col-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wireframe-rail .wf-bar-top {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.wireframe-rail .wf-block-content {
  width: 100%;
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
}

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

.toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(14, 20, 28, 0.95);
  border: 1.5px solid var(--accent-lime);
  color: var(--text-white);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 0 20px var(--accent-lime-glow);
  backdrop-filter: blur(8px);
  pointer-events: auto;
  animation: toastFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3) !important;
}

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

/* ==========================================================================
   13 COLOR THEME VARIABLE SETS (Client-Side Caching)
   ========================================================================== */

/* 1. Toxic Lime (Default) */
[data-theme="toxic-lime"] {
  --accent-rgb: 163, 230, 53;
  --accent-lime: #a3e635;
  --accent-lime-hover: #bef264;
  --accent-lime-dark: #65a30d;
  --accent-lime-glow: rgba(var(--accent-rgb), 0.25);
  --border-focus: rgba(var(--accent-rgb), 0.5);
  --shadow-glow: 0 0 20px rgba(var(--accent-rgb), 0.25);
  --bg-dark: #080b0f;
  --bg-card: #0e141c;
  --bg-card-hover: #121924;
  --bg-card-alt: #101620;
  --border-subtle: #1a2332;
  --border-hover: #2d3c52;
}

/* 2. OLED Black */
[data-theme="oled-black"] {
  --accent-rgb: 255, 255, 255;
  --bg-dark: #000000;
  --bg-card: #0c0c0c;
  --bg-card-hover: #161616;
  --bg-card-alt: #101010;
  --border-subtle: #222222;
  --border-hover: #3a3a3a;
  --border-focus: rgba(255, 255, 255, 0.6);
  --accent-lime: #ffffff;
  --accent-lime-hover: #f1f5f9;
  --accent-lime-dark: #94a3b8;
  --accent-lime-glow: rgba(255, 255, 255, 0.2);
  --shadow-glow: 0 0 20px rgba(255, 255, 255, 0.2);
}
[data-theme="oled-black"] .cyber-grid-bg {
  display: none;
}

/* 3. Neon Cyan */
[data-theme="neon-cyan"] {
  --accent-rgb: 0, 240, 255;
  --bg-dark: #050b14;
  --bg-card: #091522;
  --bg-card-hover: #0e2033;
  --bg-card-alt: #0a1827;
  --border-subtle: #12283e;
  --border-hover: #1e3e60;
  --border-focus: rgba(0, 240, 255, 0.5);
  --accent-lime: #00f0ff;
  --accent-lime-hover: #38bdf8;
  --accent-lime-dark: #0284c7;
  --accent-lime-glow: rgba(0, 240, 255, 0.28);
  --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.28);
}

/* 4. Royal Purple */
[data-theme="royal-purple"] {
  --accent-rgb: 168, 85, 247;
  --bg-dark: #0c0816;
  --bg-card: #150f24;
  --bg-card-hover: #1e1634;
  --bg-card-alt: #171128;
  --border-subtle: #2b1f47;
  --border-hover: #43316f;
  --border-focus: rgba(168, 85, 247, 0.5);
  --accent-lime: #a855f7;
  --accent-lime-hover: #c084fc;
  --accent-lime-dark: #7e22ce;
  --accent-lime-glow: rgba(168, 85, 247, 0.28);
  --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.28);
}

/* 5. Solar Gold */
[data-theme="solar-gold"] {
  --accent-rgb: 245, 158, 11;
  --bg-dark: #0d0a05;
  --bg-card: #171208;
  --bg-card-hover: #221b0d;
  --bg-card-alt: #1a1409;
  --border-subtle: #2d2311;
  --border-hover: #48381c;
  --border-focus: rgba(245, 158, 11, 0.5);
  --accent-lime: #f59e0b;
  --accent-lime-hover: #fbbf24;
  --accent-lime-dark: #b45309;
  --accent-lime-glow: rgba(245, 158, 11, 0.28);
  --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.28);
}

/* 6. Hot Pink */
[data-theme="hot-pink"] {
  --accent-rgb: 236, 72, 153;
  --bg-dark: #12060e;
  --bg-card: #1c0a17;
  --bg-card-hover: #290f22;
  --bg-card-alt: #200c1a;
  --border-subtle: #38152e;
  --border-hover: #582148;
  --border-focus: rgba(236, 72, 153, 0.5);
  --accent-lime: #ec4899;
  --accent-lime-hover: #f472b6;
  --accent-lime-dark: #be185d;
  --accent-lime-glow: rgba(236, 72, 153, 0.28);
  --shadow-glow: 0 0 20px rgba(236, 72, 153, 0.28);
}

/* 7. Crimson Fire */
[data-theme="crimson-fire"] {
  --accent-rgb: 239, 68, 68;
  --bg-dark: #120606;
  --bg-card: #1c0a0a;
  --bg-card-hover: #2a1010;
  --bg-card-alt: #200c0c;
  --border-subtle: #3a1616;
  --border-hover: #592323;
  --border-focus: rgba(239, 68, 68, 0.5);
  --accent-lime: #ef4444;
  --accent-lime-hover: #f87171;
  --accent-lime-dark: #b91c1c;
  --accent-lime-glow: rgba(239, 68, 68, 0.28);
  --shadow-glow: 0 0 20px rgba(239, 68, 68, 0.28);
}

/* 8. Electric Blue */
[data-theme="electric-blue"] {
  --accent-rgb: 59, 130, 246;
  --bg-dark: #060b17;
  --bg-card: #0b1426;
  --bg-card-hover: #101e38;
  --bg-card-alt: #0d172c;
  --border-subtle: #16274a;
  --border-hover: #243e74;
  --border-focus: rgba(59, 130, 246, 0.5);
  --accent-lime: #3b82f6;
  --accent-lime-hover: #60a5fa;
  --accent-lime-dark: #1d4ed8;
  --accent-lime-glow: rgba(59, 130, 246, 0.28);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.28);
}

/* 9. Mint Fresh */
[data-theme="mint-fresh"] {
  --accent-rgb: 16, 185, 129;
  --bg-dark: #05120e;
  --bg-card: #091d17;
  --bg-card-hover: #0e2a22;
  --bg-card-alt: #0b221b;
  --border-subtle: #143b2f;
  --border-hover: #1f5c49;
  --border-focus: rgba(16, 185, 129, 0.5);
  --accent-lime: #10b981;
  --accent-lime-hover: #34d399;
  --accent-lime-dark: #047857;
  --accent-lime-glow: rgba(16, 185, 129, 0.28);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.28);
}

/* 10. Sunset Orange */
[data-theme="sunset-orange"] {
  --accent-rgb: 249, 115, 22;
  --bg-dark: #120904;
  --bg-card: #1c1007;
  --bg-card-hover: #29180b;
  --bg-card-alt: #201308;
  --border-subtle: #38210e;
  --border-hover: #573316;
  --border-focus: rgba(249, 115, 22, 0.5);
  --accent-lime: #f97316;
  --accent-lime-hover: #fb923c;
  --accent-lime-dark: #c2410c;
  --accent-lime-glow: rgba(249, 115, 22, 0.28);
  --shadow-glow: 0 0 20px rgba(249, 115, 22, 0.28);
}

/* 11. Cyber Gradient */
[data-theme="cyber-gradient"] {
  --accent-rgb: 236, 72, 153;
  --bg-dark: #0a0715;
  --bg-card: #120d24;
  --bg-card-hover: #1a1334;
  --bg-card-alt: #140e28;
  --border-subtle: #271a4d;
  --border-hover: #402c7b;
  --border-focus: rgba(236, 72, 153, 0.5);
  --accent-lime: #ec4899;
  --accent-lime-hover: #f472b6;
  --accent-lime-dark: #8b5cf6;
  --accent-lime-glow: rgba(236, 72, 153, 0.32);
  --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.3);
}
[data-theme="cyber-gradient"] .landing-highlight,
[data-theme="cyber-gradient"] .hero-title .highlight-user {
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #06b6d4 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* 12. Plasma Teal */
[data-theme="plasma-teal"] {
  --accent-rgb: 20, 184, 166;
  --bg-dark: #041110;
  --bg-card: #081d1b;
  --bg-card-hover: #0d2b28;
  --bg-card-alt: #0a2220;
  --border-subtle: #123d3a;
  --border-hover: #1c5e59;
  --border-focus: rgba(20, 184, 166, 0.5);
  --accent-lime: #14b8a6;
  --accent-lime-hover: #2dd4bf;
  --accent-lime-dark: #0f766e;
  --accent-lime-glow: rgba(20, 184, 166, 0.28);
  --shadow-glow: 0 0 20px rgba(20, 184, 166, 0.28);
}

/* 13. Deep Rose */
[data-theme="deep-rose"] {
  --accent-rgb: 244, 63, 94;
  --bg-dark: #120608;
  --bg-card: #1d090d;
  --bg-card-hover: #2b0e14;
  --bg-card-alt: #210b10;
  --border-subtle: #3b141c;
  --border-hover: #5d202d;
  --border-focus: rgba(244, 63, 94, 0.5);
  --accent-lime: #f43f5e;
  --accent-lime-hover: #fb7185;
  --accent-lime-dark: #be123c;
  --accent-lime-glow: rgba(244, 63, 94, 0.28);
  --shadow-glow: 0 0 20px rgba(244, 63, 94, 0.28);
}

/* ==========================================================================
   3 UI LAYOUTS (Cyber Sidebar, Top Nav Bar, Compact Rail)
   ========================================================================== */

/* Layout 2: Top Nav Bar */
[data-layout="top-navbar"] .app-layout {
  flex-direction: column !important;
}

[data-layout="top-navbar"] .sidebar {
  width: 100% !important;
  min-width: 100% !important;
  height: auto !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 10px 24px !important;
  border-right: none !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: var(--bg-card) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4) !important;
}

[data-layout="top-navbar"] .sidebar-brand {
  margin-bottom: 0 !important;
  padding: 0 16px 0 0 !important;
  border-right: 1px solid var(--border-subtle) !important;
  flex-shrink: 0 !important;
}

[data-layout="top-navbar"] .sidebar-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 1 !important;
  margin: 0 0 0 12px !important;
  overflow-x: auto !important;
}

[data-layout="top-navbar"] .nav-group-title {
  display: none !important;
}

[data-layout="top-navbar"] .nav-item {
  padding: 8px 14px !important;
  white-space: nowrap !important;
  font-size: 0.85rem !important;
}

[data-layout="top-navbar"] .sidebar-footer {
  display: none !important;
}

[data-layout="top-navbar"] .main-wrapper {
  width: 100% !important;
}

/* Layout 3: Compact Rail */
[data-layout="compact-rail"] .sidebar {
  width: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
  padding: 16px 8px !important;
  align-items: center !important;
}

[data-layout="compact-rail"] .sidebar-brand {
  justify-content: center !important;
  padding: 0 0 16px 0 !important;
  margin-bottom: 8px !important;
}

[data-layout="compact-rail"] .sidebar-brand .brand-text {
  display: none !important;
}

[data-layout="compact-rail"] .nav-group-title {
  display: none !important;
}

[data-layout="compact-rail"] .sidebar-nav {
  width: 100% !important;
  gap: 6px !important;
}

[data-layout="compact-rail"] .nav-item {
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 8px 4px !important;
  gap: 4px !important;
  text-align: center !important;
}

[data-layout="compact-rail"] .nav-item .nav-label {
  font-size: 0.64rem !important;
  max-width: 56px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.1 !important;
}

[data-layout="compact-rail"] .sidebar-footer {
  display: none !important;
}

/* ── ADMINISTRATION & OWNER PANEL STYLES ── */
.nav-group-admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-chip-badge {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-lime);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.admin-banner {
  border-color: rgba(var(--accent-rgb), 0.25);
  background: linear-gradient(135deg, rgba(13, 19, 28, 0.95) 0%, rgba(20, 29, 43, 0.95) 100%);
}

.admin-badge-title {
  margin-bottom: 8px;
}

.admin-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-lime);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.admin-hero-icon {
  font-size: 3.5rem;
  user-select: none;
  filter: drop-shadow(0 0 20px var(--accent-lime-glow));
}

.stat-icon-green {
  color: var(--accent-lime) !important;
  background: rgba(var(--accent-rgb), 0.1) !important;
  border-color: rgba(var(--accent-rgb), 0.2) !important;
}

.stat-icon-red {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
  box-shadow: var(--shadow-card);
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  flex-wrap: wrap;
}

.admin-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
}

.admin-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 240px;
}

.admin-search-wrap svg {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.admin-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--bg-card, #111722);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 8px);
  color: var(--text-main, #f3f4f6);
  font-size: 0.88rem;
  font-family: inherit;
  transition: var(--transition);
}

.admin-search-input::placeholder {
  color: var(--text-dim, #6b7280);
}

.admin-search-input:focus {
  outline: none;
  border-color: var(--accent-lime, #a3e635);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.18);
  background: rgba(17, 23, 34, 0.95);
}

.admin-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-select,
.admin-filter-select {
  padding: 10px 14px;
  background: var(--bg-card, #111722);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 8px);
  color: var(--text-main, #f3f4f6);
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  min-width: 150px;
  transition: var(--transition);
}

.admin-select:focus,
.admin-filter-select:focus {
  border-color: var(--accent-lime, #a3e635);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.18);
}

.admin-select option,
.admin-filter-select option {
  background: #111722;
  color: #f3f4f6;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card-elevated);
}

.admin-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.admin-table th {
  background: rgba(10, 14, 20, 0.7);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

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

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

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-active {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-lime);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
}

.badge-redeemed {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-premium {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.08));
  color: var(--accent-lime);
  border: 1px solid var(--accent-lime);
}

.badge-normal {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.badge-blacklisted {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-sm {
  padding: 6px 12px !important;
  font-size: 0.8rem !important;
}

.btn-action-icon {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-action-icon:hover {
  color: var(--text-main);
  border-color: var(--accent-lime);
  background: rgba(var(--accent-rgb), 0.08);
}

.btn-action-icon.danger:hover {
  color: #ef4444;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.btn-table-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.btn-table-action:hover {
  border-color: var(--accent-lime);
  color: var(--accent-lime);
}

.btn-table-action.danger {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-table-action.danger:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

/* Generated Keys Box */
.admin-generated-box {
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 20px;
}

.gen-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.gen-box-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #ffffff;
}

.gen-keys-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.key-pill {
  background: var(--bg-card);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: var(--accent-lime);
  font-family: monospace;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: all;
  transition: var(--transition);
}

.key-pill:hover {
  border-color: var(--accent-lime);
  background: rgba(var(--accent-rgb), 0.12);
}

/* ── Admin Filter Tabs Navigation ── */
.admin-tabs-nav {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  overflow-x: auto;
  max-width: 100%;
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  white-space: nowrap;
}

.admin-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.admin-tab-btn.active {
  color: #ffffff;
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.15);
}

.admin-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  font-family: monospace;
}

.admin-tab-btn.active .admin-tab-count {
  background: var(--accent-lime);
  color: #0b0f19;
}

.admin-tab-count.badge-active {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-lime);
}

.admin-tab-count.badge-redeemed {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.admin-tab-count.badge-premium {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.admin-tab-count.badge-normal {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.admin-tab-count.badge-blacklisted {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* ── Table Header Content Flex ── */
.th-content {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.th-content svg {
  opacity: 0.85;
  color: var(--accent-lime);
  flex-shrink: 0;
}

/* ── Key Code Block ── */
.key-code-block {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--accent-rgb), 0.05);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-family: monospace;
}

.key-code-block code {
  color: var(--accent-lime);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── User & Subscription Hub Components ── */
.user-table-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  object-fit: cover;
  background: #111827;
  flex-shrink: 0;
}

.user-avatar-ring.premium-ring {
  border-color: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.35);
}

.user-avatar-ring.blacklisted-ring {
  border-color: #ef4444;
  filter: grayscale(1);
}

.user-profile-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.user-table-id {
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff;
  font-family: monospace;
  letter-spacing: 0.02em;
}

.user-tokens-chip-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.user-token-mini-chip {
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  color: var(--accent-lime);
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-slot-bar {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.token-slot-progress {
  width: 84px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.token-slot-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-lime) 0%, #84cc16 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.token-slot-fill.slot-full {
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
}

.token-slot-text {
  font-weight: 700;
  font-size: 0.82rem;
  color: #ffffff;
  font-family: monospace;
}

/* ── System Health Live Banner ── */
.system-health-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.07) 0%, rgba(10, 14, 20, 0.7) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.health-status-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 10px var(--accent-lime);
  position: relative;
  animation: pulse-glow 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px var(--accent-lime);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    box-shadow: 0 0 18px var(--accent-lime);
    opacity: 0.75;
  }
}

.health-text {
  font-size: 0.88rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.health-text strong {
  color: var(--accent-lime);
  font-weight: 800;
}

.health-meta-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: monospace;
}

.meta-chip .meta-label {
  color: var(--text-dim);
  margin-right: 4px;
}

/* ── Database Maintenance Grid (4 Cards) ── */
.admin-maint-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.admin-action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition);
}

.admin-action-card:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.action-card-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.action-card-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.action-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
}

.action-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Dark IDE SQL Diagnostic Terminal ── */
.sql-ide-card {
  background: #090d14;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-top: 26px;
}

.sql-ide-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d121c;
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.sql-window-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sql-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); }
.dot-yellow { background: #eab308; box-shadow: 0 0 6px rgba(234, 179, 8, 0.4); }
.dot-green { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.4); }

.sql-window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  font-family: monospace;
}

.sql-window-title svg {
  color: var(--accent-lime);
}

.sql-window-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.safe-tag {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-lime);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  font-family: monospace;
}

.sql-timer-badge {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-lime);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 4px;
  font-size: 0.72rem;
  padding: 2px 8px;
  font-family: monospace;
  font-weight: 700;
}

.sql-ide-body {
  padding: 20px;
}

.sql-shortcuts-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.sql-shortcuts-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sql-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-family: monospace;
}

.sql-chip:hover {
  border-color: var(--accent-lime);
  color: var(--accent-lime);
  background: rgba(var(--accent-rgb), 0.1);
  transform: translateY(-1px);
}

.sql-editor-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sql-textarea {
  width: 100%;
  background: #06090e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #a3e635;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.9rem;
  padding: 14px;
  resize: vertical;
  line-height: 1.55;
  transition: var(--transition);
}

.sql-textarea:focus {
  outline: none;
  border-color: var(--accent-lime);
  box-shadow: 0 0 0 2px var(--accent-lime-glow);
}

.sql-editor-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sql-hint-key {
  font-size: 0.76rem;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sql-hint-key kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: monospace;
}

.sql-results-wrap {
  margin-top: 22px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

.sql-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.result-badge {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--accent-lime);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  padding: 4px 10px;
  border-radius: 4px;
}

.sql-results-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Modal Preset Chips ── */
.preset-chips-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.preset-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.preset-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.preset-chip.active {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-lime);
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.15);
  font-weight: 700;
}

/* ── Admin Empty State ── */
.admin-empty-state {
  padding: 42px 20px;
  text-align: center;
  color: var(--text-dim);
}

.admin-empty-state .empty-state-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.admin-empty-state h4 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.admin-empty-state p {
  font-size: 0.84rem;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto;
}

/* ── Admin Responsive Layout ── */
@media (max-width: 900px) {
  .admin-maint-grid {
    grid-template-columns: 1fr;
  }
  .system-health-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .sql-ide-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .sql-window-meta {
    width: 100%;
    justify-content: space-between;
  }
  .admin-tabs-nav {
    width: 100%;
    justify-content: flex-start;
  }
  .token-slot-progress {
    width: 60px;
  }
}

/* ── Admin Crypto Invoices & Orders Styles ── */
.stat-icon-amber {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}

.stat-icon-lime {
  background: rgba(var(--accent-rgb), 0.12) !important;
  color: var(--accent-lime) !important;
  border-color: rgba(var(--accent-rgb), 0.25) !important;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  color: #fbbf24 !important;
}

.badge-chip {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── STORE & CRYPTO BILLING SYSTEM STYLES ── */
.store-hero-banner {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08) 0%, rgba(17, 23, 34, 0.85) 60%), var(--bg-card);
  border-color: rgba(var(--accent-rgb), 0.25);
}

.store-hero-tag {
  background: rgba(var(--accent-rgb), 0.15) !important;
  color: var(--accent-lime) !important;
  border: 1px solid rgba(var(--accent-rgb), 0.3) !important;
}

.store-hero-icon {
  font-size: 3rem;
  line-height: 1;
}

.store-tabs-nav {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.store-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.store-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.18);
}

.store-tab-btn.active {
  background: rgba(var(--accent-rgb), 0.14);
  border-color: var(--accent-lime);
  color: var(--accent-lime);
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 700;
  color: inherit;
}

.store-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.15);
  border: 1px solid var(--accent-lime);
  color: var(--accent-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.step-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

/* Store Plans Grid */
.store-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.store-plan-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
  overflow: hidden;
}

.store-plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.store-plan-card.featured {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.05) 0%, var(--bg-card) 60%);
}

.store-plan-card.best-value {
  border-color: rgba(250, 204, 21, 0.4);
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.05) 0%, var(--bg-card) 60%);
}

.store-plan-card.selected {
  border-color: var(--accent-lime) !important;
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.3), 0 12px 30px rgba(0, 0, 0, 0.4);
}

.plan-ribbon {
  position: absolute;
  top: 14px;
  right: -32px;
  background: var(--accent-lime);
  color: #0a0e14;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 34px;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.plan-ribbon.ribbon-gold {
  background: #facc15;
  color: #0a0e14;
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.plan-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.plan-badge-pop {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-lime);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
}

.plan-badge-gold {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.plan-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-lime);
}

.plan-price {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.plan-period {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.plan-features li svg {
  color: var(--accent-lime);
  flex-shrink: 0;
}

.btn-outline-plan {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  width: 100%;
}

.btn-outline-plan:hover {
  border-color: var(--accent-lime);
  color: var(--accent-lime);
  background: rgba(var(--accent-rgb), 0.06);
}

/* Crypto Coins Grid */
.crypto-coins-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.crypto-coin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.crypto-coin-card.selected {
  border-color: var(--accent-lime) !important;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08) 0%, var(--bg-card) 60%);
  box-shadow: 0 0 0 1px var(--accent-lime);
}

.crypto-coin-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.crypto-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ltc-icon-box {
  background: rgba(52, 91, 153, 0.2);
  color: #345d9d;
  border: 1px solid rgba(52, 91, 153, 0.4);
}

.usdt-icon-box {
  background: rgba(38, 161, 123, 0.2);
  color: #26a17b;
  border: 1px solid rgba(38, 161, 123, 0.4);
}

.sol-icon-box {
  background: rgba(153, 69, 255, 0.2);
  color: #9945ff;
  border: 1px solid rgba(153, 69, 255, 0.4);
}

.crypto-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.crypto-symbol {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.crypto-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.crypto-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.tag-fast {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.tag-stable {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.tag-sol {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
}

.crypto-rate {
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* USDT Network selector */
.usdt-network-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.network-pills-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.network-pill {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.network-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.network-pill.active {
  background: rgba(var(--accent-rgb), 0.14);
  border-color: var(--accent-lime);
  color: var(--accent-lime);
}

/* Checkout Summary Card */
.store-checkout-summary-card {
  background: var(--bg-card-elevated);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-line {
  display: flex;
  gap: 12px;
  font-size: 0.88rem;
}

.summary-label {
  color: var(--text-muted);
  min-width: 120px;
}

.summary-value {
  color: var(--text-main);
  font-weight: 600;
}

.highlight-line .summary-label {
  font-weight: 700;
  color: var(--text-main);
  font-size: 1rem;
}

.price-total {
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  color: var(--accent-lime) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.crypto-equiv {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.summary-action-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.btn-checkout-generate {
  padding: 12px 28px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  gap: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.summary-guarantee {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Modal: Store Invoice */
.modal-invoice-card {
  max-width: 620px;
  width: 95%;
}

.modal-title-with-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.invoice-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.status-completed {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-lime);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
}

.status-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.invoice-meta-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 18px;
}

.inv-meta-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.inv-meta-id {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.inv-countdown {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fbbf24;
  font-family: var(--font-mono);
}

.invoice-pay-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.invoice-qr-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr-image-container {
  width: 170px;
  height: 170px;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.inv-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-scan-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

.invoice-details-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inv-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.inv-field-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

.copy-input-box {
  position: relative;
  display: flex;
}

.copy-input {
  flex: 1;
  padding: 9px 70px 9px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 600;
}

.btn-copy-field {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 4px;
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy-field:hover {
  background: var(--accent-lime);
  color: #0a0e14;
}

.inv-usd-note {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.inv-network-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 0.75rem;
  color: #fbbf24;
  line-height: 1.4;
}

.inv-network-warning svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.invoice-verification-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.tx-input-row {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}

.tx-input-row .form-input {
  flex: 1;
}

.auto-polling-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 8px var(--accent-lime);
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Success Key Delivery Box */
.invoice-success-delivery {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12) 0%, rgba(17, 23, 34, 0.95) 70%);
  border: 1px solid var(--accent-lime);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}

.success-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.success-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-lime);
  margin-bottom: 4px;
}

.success-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.delivered-key-box {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.key-display-input {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  padding: 8px 12px;
  background: #0a0e14;
  border: 1px solid var(--accent-lime);
  border-radius: var(--radius-sm);
  color: var(--accent-lime);
  font-weight: 700;
  font-family: var(--font-mono);
  text-align: center;
  font-size: 0.95rem;
}

.invoice-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Mobile Responsiveness for Store */
@media (max-width: 900px) {
  .store-plans-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .crypto-coins-grid {
    grid-template-columns: 1fr;
  }

  .store-checkout-summary-card {
    flex-direction: column;
    align-items: stretch;
  }

  .summary-action-wrap {
    align-items: stretch;
  }

  .btn-checkout-generate {
    width: 100%;
  }

  .invoice-pay-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .invoice-details-col {
    width: 100%;
  }

  .tx-input-row {
    flex-direction: column;
  }
}


/* ── Global Smooth Theme Switching & Performance Polish ── */
body, .sidebar, .topbar, .landing-topbar, .modal-card, .action-card, .landing-feature-card, .overview-stat-card, .user-hero-card {
  transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

/* Fast and smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Theme Swatch Active Indicator Ring */
.theme-swatch-item.active .swatch-circle {
  box-shadow: 0 0 0 2.5px var(--bg-card), 0 0 0 4.5px var(--accent-lime), 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}

.theme-swatch-item.active .swatch-check {
  animation: swatchCheckPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

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

/* Custom Scrollbars tinted with active accent */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-lime);
}


/* ── Premium Lock Banner & Spoofer Controls ── */
.premium-lock-banner {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(20, 16, 35, 0.8) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 24px rgba(168, 85, 247, 0.12);
  position: relative;
  overflow: hidden;
}

.premium-lock-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #a855f7;
}

.lock-icon-wrap {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-sm);
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
}

.lock-text-wrap {
  flex: 1;
  min-width: 0;
}

.lock-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f3e8ff;
  margin-bottom: 4px;
}

.lock-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Spoofer Preset Chips */
.chip-preset-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.chip-preset-row .btn-sm {
  padding: 5px 12px;
  font-size: 0.80rem;
  border-radius: 6px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-preset-row .btn-sm:hover {
  background: rgba(var(--accent-rgb), 0.14);
  border-color: rgba(var(--accent-rgb), 0.5);
  color: var(--text-white);
}

.chip-preset-row .btn-sm.active {
  background: rgba(var(--accent-rgb), 0.22);
  border-color: var(--accent-lime);
  color: var(--accent-lime);
  font-weight: 700;
}

@media (max-width: 768px) {
  .premium-lock-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 14px;
  }
  .premium-lock-banner .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
