/* 𝐍𝕲𝐕𝐀 HOST — Modern Spaceify Cyber Theme */
:root {
  --bg-dark: #090a12;
  --bg-sidebar: #0f111c;
  --bg-card: #141726;
  --bg-card-hover: #191d30;
  --bg-input: #0b0d17;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-purple: #8b5cf6;
  
  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --primary-glow: rgba(139, 92, 246, 0.5);

  --accent-cyan: #06b6d4;
  --accent-green: #22c55e;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
  --accent-gold: #fbbf24;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --font-family: 'IBM Plex Sans Arabic', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif-nova: "Times New Roman", Times, Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Ambient Purple Glows */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}
.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #8b5cf6, transparent);
  top: -100px;
  right: -100px;
}
.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #7928ca, transparent);
  bottom: -150px;
  left: -150px;
}

/* ── Auth Screen (Matching Spaceify Image 1) ────────────────────────────────── */
.auth-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 2px solid var(--border-purple);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 35px var(--primary-glow);
  padding: 36px 30px 30px 30px;
  text-align: center;
  animation: cardFadeIn 0.3s ease-out;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-brand-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  font-family: var(--font-serif-nova);
  margin-bottom: 12px;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.pixel-logo {
  display: grid;
  grid-template-columns: repeat(5, 12px);
  grid-template-rows: repeat(5, 12px);
  gap: 3px;
  justify-content: center;
  margin: 10px auto 20px auto;
}
.p-b {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
}
.p-o {
  width: 12px;
  height: 12px;
  visibility: hidden;
}

.auth-subtitle {
  font-size: 0.95rem;
  color: #d1d5db;
  margin-bottom: 24px;
}

.auth-form-group {
  position: relative;
  margin-bottom: 16px;
  text-align: left;
}

.auth-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 13px 44px 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}
.auth-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.auth-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.auth-row-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  margin-bottom: 22px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #d1d5db;
  cursor: pointer;
  user-select: none;
}
.remember-me input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.btn-auth-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 15px var(--primary-glow);
}
.btn-auth-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 22px var(--primary-glow);
}

.auth-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.auth-link {
  color: #a78bfa;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.auth-link:hover {
  color: #c4b5fd;
  text-decoration: underline;
}

.auth-footer {
  margin-top: 36px;
  font-size: 0.8rem;
  color: #8b5cf6;
  display: flex;
  gap: 12px;
  justify-content: center;
}
.auth-footer a {
  color: #8b5cf6;
  text-decoration: none;
}
.auth-footer a:hover {
  text-decoration: underline;
}

.auth-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  margin-bottom: 16px;
  text-align: left;
}


/* ── App Shell Layout (Sidebar + Main Content) ──────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Drawer (Universal Slide-Over Drawer for Desktop & Mobile) */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 290px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 10000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.75);
}

html[dir="rtl"] .sidebar {
  right: 0;
  left: auto;
  border-right: none;
  border-left: 1px solid var(--border-color);
  transform: translateX(100%);
}

html[dir="rtl"] .sidebar.open {
  transform: translateX(0);
  z-index: 10001;
}

html[dir="ltr"] .sidebar {
  left: 0;
  right: auto;
  border-left: none;
  border-right: 1px solid var(--border-color);
  transform: translateX(-100%);
}

html[dir="ltr"] .sidebar.open {
  transform: translateX(0);
  z-index: 10001;
}

.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.btn-menu-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}
.btn-menu-toggle:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.6);
  color: #a78bfa;
}

.sidebar-header {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.sidebar-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #4c1d95);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif-nova);
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
}
.sidebar-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}
.sidebar-title .nova-font {
  font-family: var(--font-serif-nova);
  letter-spacing: 1px;
}

.sidebar-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sidebar-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  cursor: pointer;
}

/* Sidebar Menu */
.sidebar-menu {
  list-style: none;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nav-item-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.nav-item-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 18px var(--primary-glow);
}
.nav-label-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-badge {
  font-size: 0.75rem;
  background: rgba(0,0,0,0.3);
  padding: 2px 8px;
  border-radius: 12px;
  font-family: var(--font-mono);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
}
.user-profile-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.03);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.user-summary-meta {
  display: flex;
  flex-direction: column;
}
.user-sum-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}
.user-sum-role {
  font-size: 0.75rem;
  color: #a78bfa;
}

/* Top App Header (Mobile & Desktop) */
.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.top-navbar {
  height: 64px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}
.top-left-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 1.25rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.top-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Universal Drawer is defined globally above */

.main-view-container {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 600px) {
  .main-view-container {
    padding: 14px 12px;
  }
}


/* ── Spaceify Banners & Dashboard View ──────────────────────────────────────── */
.spaceify-banner {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.spaceify-banner-yellow {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.12);
}
.spaceify-banner-purple {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid var(--border-purple);
  box-shadow: 0 0 20px var(--primary-glow);
}
.banner-title {
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.banner-text {
  font-size: 0.88rem;
  color: #d1d5db;
  line-height: 1.5;
}
.banner-link {
  color: #a78bfa;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 700;
}

/* Spaceify Dashboard Cards */
.dash-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.dash-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.dash-card-icon.teal { background: #0891b2; color: #fff; }
.dash-card-icon.grey { background: #4b5563; color: #fff; }
.dash-card-icon.purple { background: var(--primary); color: #fff; }

.dash-card-info {
  display: flex;
  flex-direction: column;
}
.dash-card-label {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
}
.dash-card-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}

.motd-card {
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  box-shadow: 0 0 20px var(--primary-glow);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}
.motd-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.motd-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
}
.motd-title .nova-font {
  font-family: var(--font-serif-nova);
}


/* ── Profile View (Matching Spaceify Profile Image) ─────────────────────────── */
.profile-card {
  background: var(--bg-card);
  border: 2px solid var(--border-purple);
  box-shadow: 0 0 35px var(--primary-glow);
  border-radius: var(--radius-lg);
  max-width: 650px;
  margin: 0 auto;
  overflow: hidden;
  animation: cardFadeIn 0.3s ease-out;
}
.profile-hero {
  padding: 36px 24px 24px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.12), transparent);
}
.profile-avatar-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 16px auto;
}
.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}
.profile-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: #1f2937;
  border: 2px solid #374151;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #fff;
  cursor: pointer;
}

.profile-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.profile-email {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 12px 0;
}
.email-check {
  color: var(--accent-green);
  font-weight: 900;
}

.profile-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}
.pill-credits {
  background: var(--primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pill-role {
  background: #2563eb;
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}
.profile-date {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.profile-body {
  padding: 24px;
}

/* Discord Linked Box (Matching Spaceify) */
.discord-linked-box {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 20px;
  margin-bottom: 24px;
}
.dc-link-status {
  font-size: 0.84rem;
  color: #a78bfa;
  font-weight: 700;
  margin-bottom: 12px;
}
.dc-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.dc-user-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dc-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #8b5cf6;
}
.dc-user-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}
.dc-user-id {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}


/* ── Hosted Accounts View Components ────────────────────────────────────────── */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(580px, 1fr));
  gap: 22px;
}
@media (max-width: 768px) {
  .accounts-grid {
    grid-template-columns: 1fr;
  }
}

.account-card {
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.account-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
}

.card-top {
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.user-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar-wrap {
  position: relative;
  width: 50px;
  height: 50px;
}
.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.status-indicator-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #121622;
}
.status-online    { background-color: #22c55e; }
.status-idle      { background-color: #f59e0b; }
.status-dnd       { background-color: #ef4444; }
.status-invisible { background-color: #71717a; }

.user-names {
  display: flex;
  flex-direction: column;
}
.user-global {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.user-handle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.card-tabs {
  display: flex;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--border-color);
}
.card-tab-btn {
  flex: 1;
  padding: 12px 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.card-tab-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.02);
}
.card-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(139, 92, 246, 0.08);
}

.card-tab-content {
  padding: 20px;
  display: none;
}
.card-tab-content.active {
  display: block;
}

/* Forms */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #d1d5db;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="url"],
input[type="email"],
select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.voice-banner {
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid var(--primary);
  flex-wrap: wrap;
  gap: 10px;
}
.voice-status-text {
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}
@media (max-width: 500px) {
  .toggle-group {
    grid-template-columns: 1fr;
  }
}
.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.toggle-label {
  font-size: 0.82rem;
  font-weight: 700;
}

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #374151;
  transition: .3s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--primary);
}
input:checked + .slider:before {
  transform: translateX(20px);
}

.preset-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.btn-preset {
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-preset:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Realistic Discord Mobile Card Preview */
.discord-preview-box {
  background: #1e1f22;
  border-radius: 16px;
  padding: 16px;
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,0.08);
}
.discord-preview-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #949ba4;
  letter-spacing: 0.5px;
  font-weight: 800;
  margin-bottom: 12px;
}

.dc-activity-card {
  background: #2b2d31;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.dc-act-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: transparent;
  object-fit: contain;
  flex-shrink: 0;
  border: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.img-dimension-badge {
  margin-top: 6px;
  font-size: 0.76rem;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.4;
  display: none;
}
.dc-act-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.dc-act-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: #dbdee1;
  text-transform: uppercase;
}
.dc-act-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f2f3f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dc-act-text {
  font-size: 0.82rem;
  color: #b5bac1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dc-act-timer {
  font-size: 0.78rem;
  color: #23a55a;
  font-family: var(--font-mono);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}
.modal-overlay.open,
.modal-overlay.active {
  display: flex;
}
.modal-card {
  background: var(--bg-card);
  border: 2px solid var(--border-purple);
  box-shadow: 0 0 35px var(--primary-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  animation: cardFadeIn 0.25s ease-out;
}
.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
}
.modal-body {
  padding: 22px;
}
.modal-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.input-password-wrapper {
  position: relative;
  display: flex;
}
.input-password-wrapper input {
  padding-right: 45px;
}
.btn-toggle-vis {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.7;
}

.help-text {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 6px;
}
.form-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  margin-top: 14px;
}
.modal-footer {
  padding: 16px 22px;
  background: rgba(0,0,0,0.25);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Buttons */
.btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6d28d9);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), #5b21b6);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.2);
}
.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #181c2e;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.88rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--primary);
  animation: cardFadeIn 0.3s ease;
}
.toast-success { border-color: var(--accent-green); }
.toast-error   { border-color: var(--accent-red); }


/* ── Developer Master Panel & Unlinked Discord Styles ───────────────────────── */
.badge-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #000 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}
.btn-dev-nav.active {
  background: linear-gradient(135deg, #b45309, #78350f) !important;
  border-left: 3px solid #f59e0b;
}

.master-card-section {
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.master-sec-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.master-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}
.master-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.master-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  vertical-align: middle;
}
.master-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.master-token-card {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.master-token-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.master-token-val-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  word-break: break-all;
  gap: 10px;
}

.btn-warning {
  background: #f59e0b;
  color: #000;
  font-weight: 800;
}
.btn-warning:hover {
  background: #d97706;
}

/* Unlinked Discord Box */
.dc-unlinked-box {
  background: rgba(139, 92, 246, 0.05);
  border: 1px dashed rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  margin-bottom: 24px;
}
.dc-unlinked-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.dc-unlinked-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 16px auto;
}

/* Quick Status Selector Pills */
.status-selector-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 14px 0;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
}
.status-pill {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.status-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-1px);
}
.status-pill.active.online {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border-color: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}
.status-pill.active.idle {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
  border-color: #eab308;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
}
.status-pill.active.dnd {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}
.status-pill.active.invisible {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border-color: #94a3b8;
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.3);
}

/* ════════════════════════════════════════════════════════════════════════════
   QUESTS HUB / NOVA HOST SUITE (Mobile-first Cyber Redesign)
   ════════════════════════════════════════════════════════════════════════════ */

.qh-top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #18191c;
  border-bottom: 1px solid #26282c;
  position: sticky;
  top: 0;
  z-index: 99;
  gap: 12px;
}

.qh-top-nav-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.qh-top-nav-pills::-webkit-scrollbar { display: none; }

.qh-nav-pill {
  background: #1e1f22;
  color: #949ba4;
  border: 1px solid #2b2d31;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.qh-nav-pill:hover {
  color: #fff;
  border-color: #3f4248;
}
.qh-nav-pill.active {
  background: #8b5cf6;
  color: #fff;
  border-color: #8b5cf6;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.45);
}

.qh-public-pill {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.qh-public-pill:hover {
  background: rgba(34, 197, 94, 0.22);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

/* Services Grid */
.services-header {
  margin-bottom: 20px;
}
.services-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}
.services-sub {
  color: #949ba4;
  font-size: 0.94rem;
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.service-card {
  background: #1e1f22;
  border: 1px solid #2b2d31;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  border-color: #8b5cf6;
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}
.service-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.service-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  border: 1px solid rgba(196, 181, 253, 0.35);
  box-shadow: 0 8px 22px rgba(109, 40, 217, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.service-card-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
}
.eh-svc-header-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  border: 1px solid rgba(196, 181, 253, 0.35);
  box-shadow: 0 6px 16px rgba(109, 40, 217, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.eh-svc-header-badge img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.24));
}
.service-card-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.service-card-desc {
  font-size: 0.88rem;
  color: #949ba4;
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}
.service-card-meta {
  font-size: 0.78rem;
  color: #b5bac1;
  margin-bottom: 16px;
}
.service-card-btn {
  background: #8b5cf6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: center;
  display: inline-block;
  text-decoration: none;
}
.service-card-btn:hover {
  background: #7c3aed;
}

/* Custom RPC & Voice AFK Containers */
.qh-view-container {
  max-width: 620px;
  margin: 0 auto;
  padding: 16px 8px 60px 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.qh-page-header {
  margin-bottom: 4px;
}
.qh-page-title {
  font-size: 1.7rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}
.qh-page-subtitle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.qh-page-subtitle {
  color: #949ba4;
  font-size: 0.92rem;
  margin: 0;
}
.qh-badge-pill {
  background: #2b2d31;
  color: #dbdee1;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Live Preview Card */
.rpc-preview-box {
  background: #18191c;
  border: 1px solid #26282c;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.rpc-preview-header {
  font-size: 0.8rem;
  color: #dbdee1;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: capitalize;
}
.rpc-preview-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.rpc-preview-img-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.rpc-preview-large-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: #2b2d31;
  display: block;
}
.rpc-preview-small-img {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #18191c;
  object-fit: cover;
  background: #313338;
}
.rpc-preview-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex-grow: 1;
}
.rpc-preview-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rpc-preview-details, .rpc-preview-state {
  font-size: 0.84rem;
  color: #b5bac1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rpc-preview-timer {
  font-size: 0.82rem;
  color: #57f287;
  font-family: var(--font-mono, monospace);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}
.rpc-preview-buttons {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.rpc-preview-btn {
  background: #2b2d31;
  color: #dbdee1;
  border: 1px solid #35373c;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

/* Account Info Bar */
.qh-account-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.qh-account-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #2b2d31;
}
.qh-account-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qh-account-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  font-style: italic;
}
.qh-account-tag {
  font-size: 0.8rem;
  color: #949ba4;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Tabs & Controls */
.qh-tab-row {
  display: flex;
  gap: 8px;
  margin: 6px 0;
}
.qh-tab-btn {
  flex: 1;
  padding: 10px;
  background: #1e1f22;
  border: 1px solid #2b2d31;
  color: #949ba4;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.qh-tab-btn.active {
  background: rgba(139, 92, 246, 0.18);
  border-color: #8b5cf6;
  color: #fff;
}

/* Form Fields */
.qh-field {
  margin-bottom: 16px;
}
.qh-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: #b5bac1;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 7px;
  display: block;
}
.qh-input, .qh-select-trigger {
  width: 100%;
  background: #1e1f22;
  border: 1px solid #2b2d31;
  border-radius: 10px;
  padding: 13px 15px;
  color: #fff;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-sizing: border-box;
}
.qh-input:focus, .qh-select-trigger:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.35);
}
.qh-helper {
  font-size: 0.78rem;
  color: #949ba4;
  margin-top: 6px;
  line-height: 1.45;
}
.qh-helper-warn {
  color: #eab308;
}

/* Voice AFK Toggles Box */
.qh-toggle-box {
  background: #1e1f22;
  border: 1px solid #2b2d31;
  border-radius: 14px;
  overflow: hidden;
  margin: 10px 0;
}
.qh-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid #26282c;
  transition: background 0.15s ease;
}
.qh-toggle-row:last-child {
  border-bottom: none;
}
.qh-toggle-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.qh-toggle-icon {
  font-size: 1.35rem;
  color: #949ba4;
  width: 26px;
  text-align: center;
}
.qh-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qh-toggle-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.94rem;
}
.qh-toggle-sub {
  font-size: 0.78rem;
  color: #949ba4;
}

/* Action Buttons Bar */
.qh-action-bar {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.qh-btn-primary {
  flex: 1.6;
  background: #8b5cf6;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.qh-btn-primary:hover {
  background: #7c3aed;
}
.qh-btn-primary:active {
  transform: scale(0.98);
}
.qh-btn-dark {
  flex: 1;
  background: #2b2d31;
  color: #dbdee1;
  border: 1px solid #35373c;
  border-radius: 10px;
  padding: 13px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.qh-btn-dark:hover {
  background: #383a40;
  color: #fff;
}

/* Bottom Sheet Modal (Mobile & Desktop) */
.qh-sheet-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.qh-sheet-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}
.qh-sheet-card {
  background: #1e1f22;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border: 1px solid #2b2d31;
  width: 100%;
  max-width: 520px;
  padding: 22px 20px;
  box-shadow: 0 -6px 35px rgba(0,0,0,0.65);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 82vh;
  overflow-y: auto;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .qh-sheet-overlay {
    align-items: center;
    padding: 20px;
  }
  .qh-sheet-card {
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  }
}
.qh-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.qh-sheet-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  margin: 0;
}
.qh-sheet-close {
  background: transparent;
  border: none;
  color: #949ba4;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}
.qh-sheet-close:hover {
  color: #fff;
}
.qh-sheet-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #2b2d31;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}
.qh-sheet-option:hover {
  background: #35373c;
}
.qh-sheet-option.selected {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.14);
}
.qh-sheet-option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}
.qh-sheet-check {
  color: #8b5cf6;
  font-size: 1.15rem;
  font-weight: 900;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Quests Hub Brand Emblem & Top Avatar */
.qh-top-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}
.qh-brand-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.4));
}
.qh-brand-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  color: #ffffff;
  letter-spacing: -0.4px;
}
.qh-top-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #35373c;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  background: #2b2d31;
}
.qh-top-avatar:hover {
  transform: scale(1.08);
  border-color: #8b5cf6;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

/* ── 1. Landing Page (Unauthenticated View - Image 5) ────────────────────────── */
.landing-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 80px 20px;
  min-height: 100vh;
  box-sizing: border-box;
}
.landing-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.btn-qh-signin {
  background: #8b5cf6;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-qh-signin:hover { background: #7c3aed; }

.landing-hero {
  padding: 50px 0 35px 0;
}
.landing-title {
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.08;
  letter-spacing: -1.2px;
  margin-bottom: 22px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.landing-sub {
  font-size: clamp(1rem, 2.8vw, 1.22rem);
  color: #949ba4;
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 640px;
}
.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.btn-qh-discord {
  background: #8b5cf6;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4);
}
.btn-qh-discord:hover {
  background: #7c3aed;
  transform: translateY(-1px);
}
.btn-qh-dark {
  background: #2b2d31;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 14px 26px;
  border-radius: 12px;
  border: 1px solid #35373c;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-qh-dark:hover {
  background: #383a40;
}
.landing-footer-note {
  font-size: 0.88rem;
  color: #949ba4;
  margin-top: 10px;
}
.landing-footer-note a {
  color: #8b5cf6;
  text-decoration: underline;
  cursor: pointer;
}

/* ── 2. Dashboard Home View (Authenticated Hero - Image 2) ─────────────────── */
.dash-hero-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 0 40px 0;
}
.dash-hero-title {
  font-size: clamp(2.2rem, 6.5vw, 3.4rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.dash-hero-user {
  font-style: italic;
  background: linear-gradient(135deg, #ffffff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dash-hero-sub {
  font-size: 1.08rem;
  color: #949ba4;
  margin-bottom: 26px;
}
.dash-hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.qh-link-tour {
  display: inline-block;
  color: #949ba4;
  font-size: 0.94rem;
  cursor: pointer;
  margin-bottom: 35px;
  transition: color 0.15s;
}
.qh-link-tour:hover {
  color: #fff;
}
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 15px;
}
.dash-stat-card {
  background: #1e1f22;
  border: 1px solid #2b2d31;
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.dash-stat-card:hover {
  transform: translateY(-2px);
  border-color: #3f4248;
}
.dash-stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  display: block;
  letter-spacing: -0.5px;
}
.dash-stat-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #949ba4;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 4px;
  display: block;
}

/* ── 3. Profile Dropdown Menu (Image 6) ─────────────────────────────────────── */
.qh-profile-dropdown {
  position: absolute;
  top: 60px;
  right: 18px;
  width: 240px;
  background: #1e1f22;
  border: 1px solid #2b2d31;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.7);
  padding: 10px;
  z-index: 9999;
  display: none;
  animation: fadeIn 0.15s ease-out;
}
.qh-profile-dropdown.open {
  display: block;
}
.profile-drop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 12px 12px;
  border-bottom: 1px solid #2b2d31;
  margin-bottom: 6px;
}
.profile-drop-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  font-style: italic;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qh-plan-badge {
  background: #2b2d31;
  color: #949ba4;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.badge-owner {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}
.profile-drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #dbdee1;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.profile-drop-item:hover {
  background: #2b2d31;
  color: #fff;
}
.profile-drop-item span:first-child {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}
.drop-dev-item {
  color: #fbbf24 !important;
  font-weight: 700;
}
.drop-dev-item:hover {
  background: rgba(245, 158, 11, 0.15) !important;
}
.profile-drop-divider {
  height: 1px;
  background: #2b2d31;
  margin: 6px 0;
}
.profile-drop-item.text-danger {
  color: #ef4444;
}
.profile-drop-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

/* ── 4. "NEW SERVICES" Popup Modal (Image 1) ────────────────────────────────── */
.qh-popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 10005;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
.qh-popup-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}
.qh-popup-card {
  background: #1e1f22;
  border: 1px solid #2b2d31;
  border-radius: 18px;
  width: 100%;
  max-width: 440px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .qh-popup-overlay {
    align-items: center;
  }
}
.qh-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.qh-popup-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #949ba4;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.qh-popup-close {
  background: transparent;
  border: none;
  color: #949ba4;
  font-size: 1.2rem;
  cursor: pointer;
}
.qh-popup-close:hover { color: #fff; }
.qh-popup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #2b2d31;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.qh-popup-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qh-popup-icon {
  font-size: 1.4rem;
  background: rgba(255,255,255,0.06);
  padding: 8px;
  border-radius: 10px;
}
.qh-popup-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.96rem;
  margin-bottom: 3px;
}
.qh-popup-sub {
  font-size: 0.78rem;
  color: #949ba4;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-qh-pill-blue {
  background: #8b5cf6;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-qh-pill-blue:hover { background: #7c3aed; }
.qh-popup-later {
  text-align: right;
  margin-top: 12px;
}
.qh-popup-later a {
  color: #949ba4;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.qh-popup-later a:hover { color: #fff; }



/* ========================================================================== */
/* REAL DISCORD OAUTH2 AUTHORIZATION SCREEN (Matching User Screenshots 1 & 2)  */
/* ========================================================================== */
.discord-oauth-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #1e1f22;
  z-index: 99999;
  overflow-y: auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  animation: fadeIn 0.2s ease-out;
}
.discord-oauth-top-bar {
  background: #1e1f22;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2b2d31;
  position: sticky;
  top: 0;
  z-index: 10;
}
.discord-oauth-url-pill {
  background: #2b2d31;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: #dbdee1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.discord-oauth-container {
  max-width: 480px;
  margin: 20px auto 40px auto;
  background: #313338;
  border-radius: 12px;
  padding: 28px 22px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.7);
  box-sizing: border-box;
}
.discord-oauth-avatars-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}
.discord-oauth-avatar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.discord-oauth-dots {
  color: #4e5058;
  font-size: 1.4rem;
  letter-spacing: 3px;
  font-weight: 900;
}
.discord-oauth-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  text-align: center;
  margin: 0 0 6px 0;
}
.discord-oauth-subtitle {
  font-size: 0.95rem;
  color: #b5bac1;
  text-align: center;
  margin: 0 0 12px 0;
}
.discord-oauth-conn-status {
  font-size: 0.88rem;
  color: #dbdee1;
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.discord-oauth-switch-link {
  background: none;
  border: none;
  color: #00a8fc;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0;
}
.discord-oauth-switch-link:hover {
  text-decoration: underline;
}
.discord-oauth-perm-card {
  background: #2b2d31;
  border-radius: 10px;
  padding: 18px 16px;
  margin-bottom: 18px;
}
.discord-oauth-perm-intro {
  font-size: 0.82rem;
  font-weight: 700;
  color: #949ba4;
  margin-bottom: 14px;
}
.discord-oauth-perm-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #dbdee1;
}
.discord-oauth-perm-item:last-child {
  margin-bottom: 0;
}
.discord-oauth-check-icon {
  background: #35373c;
  color: #dbdee1;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  min-width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
}
.discord-oauth-cross-icon {
  background: #35373c;
  color: #949ba4;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  min-width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
}
.discord-oauth-meta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 4px;
  margin-bottom: 24px;
}
.discord-oauth-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  color: #949ba4;
  line-height: 1.4;
}
.discord-oauth-meta-item .meta-icon {
  font-size: 0.95rem;
}
.meta-redirect-url {
  color: #00a8fc;
  font-family: monospace;
  font-size: 0.8rem;
  margin-top: 2px;
  word-break: break-all;
}
.discord-oauth-actions {
  display: flex;
  gap: 12px;
}
.btn-discord-cancel {
  background: #4e5058;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 18px;
  flex: 1;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-discord-cancel:hover {
  background: #6d6f78;
}
.btn-discord-authorize {
  background: #8b5cf6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 18px;
  flex: 1;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  box-shadow: 0 4px 14px rgba(139,92,246,0.35);
}
.btn-discord-authorize:hover {
  background: #7c3aed;
}

/* ========================================================================= */
/* NOVA HOST V5 OVERHAUL: ARABIC RTL, DRAWER, QUESTS, BADGES, HYPESQUAD     */
/* ========================================================================= */

html[dir="rtl"] {
  font-family: 'Cairo', 'Inter', -apple-system, sans-serif;
  text-align: right;
}
html[dir="ltr"] {
  font-family: 'Inter', -apple-system, sans-serif;
  text-align: left;
}

/* Sidebar Backdrop Overlay */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
}
.sidebar-backdrop.active {
  display: block;
}

/* Drawer Header Profile Box */
.drawer-profile-header {
  padding: 20px 18px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.15), rgba(0, 0, 0, 0.25));
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-profile-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-avatar-box {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.drawer-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}
.drawer-avatar-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0f121d;
}
.drawer-display-name {
  font-weight: 800;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.2;
}
.drawer-user-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.drawer-plan-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 4px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
}
.sidebar-scrollable {
  flex: 1;
  overflow-y: auto;
}
.btn-drawer-logout {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-drawer-logout:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

/* Multi-Language Dropdown */
.lang-switch-wrap {
  display: inline-flex;
}
.lang-select-pill {
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}
.lang-select-pill:focus {
  border-color: var(--primary);
}
.lang-select-pill option {
  background: #111420;
  color: #fff;
}

/* EuizHost Style Counter Bar */
.euiz-counter-bar {
  background: rgba(18, 22, 34, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 14px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.counter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.counter-val {
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}
.counter-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.counter-live-dot {
  color: #22c55e;
  animation: pulse 1.5s infinite;
}
.counter-divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
}
@media (max-width: 600px) {
  .euiz-counter-bar {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }
  .counter-divider {
    display: none;
  }
}

/* Service Card Pills & Lists */
.service-badge-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}
.pill-hot { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.pill-new { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.service-features-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0;
  font-size: 0.82rem;
  color: #cbd5e1;
}

/* Quests Session Card */
.quests-session-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.2);
}
.session-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.session-card-title {
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.session-progress-pct {
  font-weight: 800;
  color: #a78bfa;
  font-family: var(--font-mono);
  font-size: 1.1rem;
}
.session-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.session-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.session-card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Live Console Card */
.live-console-card {
  background: #0a0c14;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.live-console-header {
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.console-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.console-prompt {
  color: #a855f7;
  font-family: var(--font-mono);
  font-weight: 800;
}
.console-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.console-live-badge {
  font-size: 0.75rem;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.console-dot {
  animation: pulse 1.2s infinite;
}
.btn-console-clear {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 4px 10px;
  font-size: 0.78rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-console-clear:hover {
  color: #fff;
  border-color: var(--primary);
}
.live-console-body {
  height: 180px;
  overflow-y: auto;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  background: #080a10;
  scroll-behavior: smooth;
}
.console-line {
  margin-bottom: 4px;
  word-break: break-all;
}
.console-line.line-info { color: #94a3b8; }
.console-line.line-success { color: #4ade80; }
.console-line.line-warn { color: #f59e0b; }
.console-line.line-dim { color: #64748b; }

/* Filter Controls */
.quests-filter-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
}
.quests-search-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-size: 0.88rem;
  margin-bottom: 12px;
  outline: none;
}
.quests-search-input:focus {
  border-color: var(--primary);
}
.quests-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.quests-select-sm {
  padding: 7px 12px;
  font-size: 0.82rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: #fff;
  cursor: pointer;
}
.quests-type-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}
.qtype-tab {
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  background: transparent;
  border: none;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.qtype-tab.active {
  background: var(--primary);
  color: #fff;
}
.quests-quick-actions {
  margin-right: auto;
  margin-left: 0;
  display: flex;
  gap: 8px;
}
html[dir="ltr"] .quests-quick-actions {
  margin-left: auto;
  margin-right: 0;
}
.btn-qaction {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-qaction:hover {
  color: #fff;
  border-color: var(--primary);
}
.quests-count-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

/* Quests Cards Grid */
.quests-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
  margin-bottom: 90px;
}
.quest-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}
.quest-card:hover {
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.quest-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  background: rgba(139, 92, 246, 0.05);
}
.quest-hero-banner {
  height: 120px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #1a1e2e;
}
.quest-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(18,22,34,0.95) 100%);
}
.quest-checkbox-corner {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  transition: all 0.2s;
  z-index: 2;
}
.quest-card.selected .quest-checkbox-corner {
  background: var(--primary);
  border-color: var(--primary);
}
.quest-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.quest-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.quest-publisher {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.quest-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.quest-pill-duration {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.quest-pill-expiry {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
}
.quest-reward-pill {
  margin-top: auto;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

/* Sticky Execution Bar */
.quests-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(15, 18, 29, 0.95);
  border-top: 1px solid rgba(139, 92, 246, 0.3);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 80;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}
.sticky-bar-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sticky-count-pill {
  font-weight: 800;
  color: #fff;
  font-size: 0.95rem;
}
.sticky-time-pill {
  color: var(--text-muted);
  font-size: 0.84rem;
}
.btn-execute-quests {
  padding: 10px 28px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
  transition: all 0.2s;
}
.btn-execute-quests:hover {
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.7);
  transform: scale(1.02);
}
.btn-execute-quests.running {
  background: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

/* Discord Profile Card Preview */
.discord-profile-card {
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.dprof-banner {
  height: 130px;
  background: linear-gradient(135deg, #5865f2, #7c3aed, #ec4899);
  background-size: cover;
  background-position: center;
}
.dprof-body {
  padding: 0 20px 20px;
  position: relative;
}
.dprof-avatar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: -45px;
  margin-bottom: 12px;
}
.dprof-avatar-box {
  position: relative;
  width: 90px;
  height: 90px;
}
.dprof-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid #111214;
  object-fit: cover;
  background: #111214;
}
.dprof-status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #22c55e;
  border: 4px solid #111214;
}
.dprof-badges-box {
  background: #232428;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
}
.dprof-badge-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.dprof-names {
  margin-bottom: 8px;
}
.dprof-global {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  display: block;
}
.dprof-handle {
  font-size: 0.88rem;
  color: #949ba4;
  font-family: var(--font-mono);
}
.dprof-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.dprof-tag-pill {
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  color: #dbdee1;
}
.dprof-bio {
  background: #1e1f22;
  border-radius: 8px;
  padding: 10px 14px;
  color: #dbdee1;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Badges Core Grid */
.badges-nav-filter {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  overflow-x: auto;
}
.bfilter-tab {
  padding: 7px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.bfilter-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.bfilter-btn-refresh {
  margin-right: auto;
  margin-left: 0;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  cursor: pointer;
}
html[dir="ltr"] .bfilter-btn-refresh {
  margin-left: auto;
  margin-right: 0;
}
.badges-core-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.badge-prog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bprog-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.bprog-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.bprog-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}
.bprog-pills-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.bprog-tier-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.tier-mythic { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.tier-rare { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.bprog-owned-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}
.bprog-owned-pill.is-locked {
  background: rgba(148, 163, 184, 0.14);
  color: #94a3b8;
}
.bprog-icon-wrap {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bprog-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.bprog-icon-img.is-locked {
  filter: grayscale(1) brightness(0.65);
  opacity: 0.55;
}
.badge-prog-card.is-locked {
  border-color: rgba(148, 163, 184, 0.16);
}
.bprog-stat-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}
.bprog-tier-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 12px;
}
.bprog-tier-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.tier-level-badge {
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  padding: 2px 6px;
  border-radius: 4px;
}
.tier-name-bold {
  font-weight: 800;
  color: #fff;
  font-size: 0.92rem;
}
.tier-congrats {
  font-size: 0.8rem;
  color: #fbbf24;
  margin-bottom: 8px;
}
.tier-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.tier-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  border-radius: 3px;
}
.bprog-status-notice {
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bprog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}
.btn-bprog-details {
  padding: 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-bprog-boost {
  padding: 9px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border: none;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

/* History Log Table */
.history-log-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 24px;
}
.history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.history-table th {
  text-align: right;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 700;
}
html[dir="ltr"] .history-table th {
  text-align: left;
}
.history-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #dbdee1;
}

/* HypeSquad Houses Grid */
.hypesquad-houses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.house-card {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s ease;
}
.house-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.house-bravery:hover,
.house-bravery.is-active {
  border-color: #a855f7;
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.35);
}
.house-brilliance:hover,
.house-brilliance.is-active {
  border-color: #f97316;
  box-shadow: 0 0 26px rgba(249, 115, 22, 0.35);
}
.house-balance:hover,
.house-balance.is-active {
  border-color: #10b981;
  box-shadow: 0 0 26px rgba(16, 185, 129, 0.35);
}
.house-active-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.house-bravery.is-active .house-active-pill {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border-color: rgba(168, 85, 247, 0.45);
}
.house-brilliance.is-active .house-active-pill {
  background: rgba(249, 115, 22, 0.2);
  color: #fdba74;
  border-color: rgba(249, 115, 22, 0.45);
}
.house-card.is-active .house-active-pill { display: inline-flex; }
.btn-house-action.is-remove {
  background: rgba(239, 68, 68, 0.16) !important;
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}
.btn-house-action.is-remove:hover {
  background: rgba(239, 68, 68, 0.3) !important;
  color: #fff;
}

/* ── EuizHost-Matched Badges Studio & 3-Step Modals ───────────────────────── */
.eh-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.eh-kpi-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.eh-kpi-val {
  font-size: 1.35rem;
  font-weight: 900;
  color: #f8fafc;
  font-family: var(--font-mono);
}
.eh-kpi-label {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 2px;
}
.eh-kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: rgba(139, 92, 246, 0.16);
  color: #c4b5fd;
  flex-shrink: 0;
}

.eh-layout-split {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 1060px) {
  .eh-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .eh-layout-split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .eh-kpi-grid { grid-template-columns: 1fr; }
}

.ui-svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.eh-discord-preview {
  position: sticky;
  top: 78px;
}
.eh-dp-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 10px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
}
.eh-dp-card {
  background: rgba(13, 17, 29, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.eh-dp-banner {
  height: 92px;
  background: linear-gradient(135deg, #111420, #191d2d);
  background-size: cover;
  background-position: center;
}
.eh-dp-body {
  padding: 0 14px 16px;
}
.eh-dp-avatar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: -36px;
  margin-bottom: 10px;
}
.eh-dp-avatar-wrap {
  position: relative;
  width: 68px;
  height: 68px;
}
.eh-dp-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 4px solid #0d111d;
  object-fit: cover;
  background: #1e293b;
}
.eh-dp-badges-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 195px;
}
.eh-dp-bio-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 9px 11px;
}
.eh-dp-meta-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  padding: 6px 8px;
}
.eh-dp-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 6px;
  border-radius: 7px;
  background: transparent;
  font-size: 0.77rem;
}
.eh-dp-meta-k {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.eh-dp-meta-v { color: #f8fafc; font-weight: 700; font-family: var(--font-mono); }

.eh-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 780px) {
  .eh-badges-grid { grid-template-columns: 1fr; }
}

.eh-badge-card {
  background: rgba(17, 20, 34, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 15px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.2s ease;
}
.eh-badge-card:hover,
.eh-badge-card.is-card-grey:hover,
.eh-badge-card.is-owned-card:hover {
  border-color: rgba(148, 163, 184, 0.48);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.eh-badge-card.is-card-gold {
  border-color: rgba(245, 158, 11, 0.36);
}
.eh-badge-card.is-card-gold:hover,
.eh-badge-card.is-card-cant:hover {
  border-color: rgba(245, 158, 11, 0.78);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.22), 0 10px 26px rgba(245, 158, 11, 0.14);
}
.eh-badge-card.is-card-green:hover,
.eh-badge-card.is-card-can:hover {
  border-color: rgba(34, 197, 94, 0.74);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.22), 0 10px 26px rgba(16, 185, 129, 0.14);
}
.eh-badge-card.is-card-purple:hover {
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.22), 0 10px 26px rgba(139, 92, 246, 0.14);
}
.eh-badge-card.is-card-cyan:hover {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.18), 0 10px 24px rgba(56, 189, 248, 0.12);
}
.eh-badge-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.eh-badge-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 7px;
}
.eh-badge-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.eh-badge-icon-box img.is-locked {
  filter: grayscale(0.85) brightness(0.82);
  opacity: 0.78;
}
.eh-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.eh-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.71rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.13);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}
.eh-pill.rare { background: rgba(56, 189, 248, 0.13); border-color: rgba(56, 189, 248, 0.24); color: #7dd3fc; }
.eh-pill.epic { background: rgba(192, 132, 252, 0.15); border-color: rgba(192, 132, 252, 0.28); color: #e9d5ff; }
.eh-pill.mythic { background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.3); color: #fcd34d; }
.eh-pill.owned { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.3); color: #4ade80; }
.eh-pill.exclusive {
  background: rgba(245, 158, 11, 0.11);
  border: 1px solid rgba(245, 158, 11, 0.34);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}
.eh-inline-svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.eh-inline-svg.glow-amber {
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.65));
}
.eh-inline-svg.glow-green {
  filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.55));
}
.eh-inline-svg.glow-red {
  filter: drop-shadow(0 0 4px rgba(248, 113, 113, 0.45));
}

.eh-progress-box {
  background: rgba(9, 13, 24, 0.78);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 11px;
  padding: 10px 12px;
}
.eh-track-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.eh-track-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.eh-track-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
  padding: 1px;
}
.eh-track-lock {
  width: 14px;
  height: 14px;
  color: #64748b;
  flex-shrink: 0;
}
.eh-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  align-self: flex-start;
}
.eh-status-tag.can {
  background: rgba(16, 185, 129, 0.13);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.32);
}
.eh-status-tag.cant {
  background: rgba(239, 68, 68, 0.11);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.28);
}
.eh-pending-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 9px;
  background: rgba(245, 158, 11, 0.11);
  border: 1px solid rgba(245, 158, 11, 0.34);
  color: #fbbf24;
  font-size: 0.76rem;
  font-weight: 700;
}
.eh-actions-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.eh-btn-details {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}
.eh-btn-details:hover { background: rgba(255,255,255,0.1); }
.eh-btn-upgrade {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99,102,241,0.34), rgba(139,92,246,0.34));
  border: 1px solid rgba(139,92,246,0.5);
  color: #ede9fe;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}
.eh-btn-upgrade:hover { filter: brightness(1.15); }
.eh-btn-upgrade.is-coming-soon,
.btn-modal-upgrade.is-coming-soon {
  cursor: not-allowed !important;
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(139, 92, 246, 0.28);
  color: #94a3b8;
  opacity: 0.88;
}
.eh-btn-upgrade.is-coming-soon:hover,
.btn-modal-upgrade.is-coming-soon:hover {
  filter: none;
}
.eh-soon-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #fbbf24;
  font-size: 0.68rem;
  font-weight: 700;
}
.eh-headline-stat {
  font-size: 0.83rem;
  font-weight: 700;
  color: #e2e8f0;
  text-align: center;
  padding: 2px 0;
}
.eh-max-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 8px;
}
.eh-max-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fbbf24;
  font-weight: 700;
}
.eh-modal-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.eh-modal-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e2e8f0;
  font-size: 0.77rem;
  font-weight: 700;
}
.eh-level-card.is-current-tier-cyan {
  border-color: rgba(56, 189, 248, 0.72);
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.14);
}
.eh-level-card.is-current-tier-gold {
  border-color: rgba(245, 158, 11, 0.78);
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.16);
}

/* Modals (Details & 3-Step Upgrade) */
.eh-modal-box {
  background: #131626;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  max-width: 560px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
.eh-how-box {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.eh-levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 520px) {
  .eh-levels-grid { grid-template-columns: repeat(2, 1fr); }
}
.eh-level-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.eh-level-card.selectable { cursor: pointer; transition: all 0.16s ease; }
.eh-level-card.selectable:hover { border-color: rgba(139, 92, 246, 0.6); background: rgba(139, 92, 246, 0.09); }
.eh-level-card.selected {
  border-color: #a5b4fc;
  background: rgba(99, 102, 241, 0.18);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.35);
}
.eh-warn-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
  color: #fde68a;
  font-size: 0.8rem;
  line-height: 1.6;
}
.eh-step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 700;
}
.eh-step-row.active {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.08);
  color: #f8fafc;
}
.eh-step-row.done {
  border-color: rgba(34, 197, 94, 0.38);
  color: #ecfdf5;
}
.eh-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 21px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-inline-start: 6px;
}
.bfilter-tab.active .eh-filter-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.eh-start-upgrade-btn {
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s, transform 0.15s;
}
.eh-start-upgrade-btn:disabled {
  cursor: not-allowed !important;
  opacity: 0.45 !important;
}
.eh-level-card.is-current-tier {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.08);
}
.eh-spin-ring {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(56, 189, 248, 0.25);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: ehSpin 0.75s linear infinite;
  vertical-align: middle;
  margin-inline-end: 6px;
}
.eh-check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 900;
}
@keyframes ehSpin {
  to { transform: rotate(360deg); }
}
.eh-discord-banner {
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.22), rgba(49, 46, 129, 0.45));
  border: 1px solid rgba(129, 140, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.house-emblem-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
}
.house-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.house-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}
.house-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}
.btn-house-action {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.2s;
}
.house-bravery .btn-house-action { background: #9333ea; }
.house-brilliance .btn-house-action { background: #d97706; }
.house-balance .btn-house-action { background: #059669; }
.btn-remove-badge {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-remove-badge:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

/* Badge Tiers Modal Grid (Matching EuizHost Screenshots) */
.badge-tiers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 4px;
}
@media (min-width: 600px) {
  .badge-tiers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.btier-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btier-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}
.btier-item.unlocked {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.04);
}
.btier-item.current {
  border: 2px solid #00e5ff !important;
  background: rgba(0, 229, 255, 0.08) !important;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
}
.btier-item.selected-target {
  border: 2px solid #a855f7 !important;
  background: rgba(168, 85, 247, 0.12) !important;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.45);
}
.btier-icon-wrap {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btier-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.btier-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  margin-bottom: 2px;
}
.btier-req {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.btier-date {
  font-size: 0.72rem;
  color: #00e5ff;
  font-weight: 600;
  margin-top: 4px;
}
.btier-status {
  font-size: 0.72rem;
  margin-top: 4px;
  font-weight: 700;
}
.btier-status.done { color: #4ade80; }
.btier-status.locked { color: #64748b; }

.btn-modal-upgrade {
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  background: #5865f2;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-modal-upgrade:hover {
  background: #4752c4;
}

/* Authentic Discord Orbs Crystal Icon */
.orbs-crystal-icon {
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.75));
  vertical-align: middle;
  display: inline-block;
}

/* Bottom Sheet Modal System — Strict display:none to prevent layout leaks */
.sheet-backdrop {
  display: none !important;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10001;
}
.sheet-backdrop.open {
  display: block !important;
}
.bottom-sheet {
  display: none !important;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 500px;
  margin: 0 auto;
  background: #1e1f22;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border: 1px solid #2b2d31;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.85);
  z-index: 10002;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.bottom-sheet.open {
  display: block !important;
  transform: translateY(0);
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #2b2d31;
  margin-bottom: 12px;
}
.sheet-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.sheet-close {
  background: transparent;
  border: none;
  color: #949ba4;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.sheet-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sheet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #232428;
  border: 1px solid #2f3136;
  border-radius: 10px;
  color: #dbdee1;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.sheet-option:hover {
  background: #2b2d31;
  border-color: #5865f2;
  color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 290px;
    z-index: 10000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  html[dir="rtl"] .sidebar {
    right: 0;
    left: auto;
    transform: translateX(100%);
  }
  html[dir="rtl"] .sidebar.open {
    transform: translateX(0);
    z-index: 10001;
  }
  html[dir="ltr"] .sidebar {
    left: 0;
    right: auto;
    transform: translateX(-100%);
  }
  html[dir="ltr"] .sidebar.open {
    transform: translateX(0);
    z-index: 10001;
  }
  .btn-menu-toggle {
    display: flex !important;
  }
  .qh-top-nav-pills {
    display: none !important;
  }
  .qh-public-pill {
    display: none !important;
  }
  .top-navbar {
    height: 60px;
    padding: 0 16px;
  }
  .content-wrapper {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}

/* ── Top Navbar Website User Pill & Active Token Switcher ── */
.top-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 4px 10px 4px 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.top-user-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(139, 92, 246, 0.4);
}
.top-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(139, 92, 246, 0.5);
}
.top-user-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}
.top-user-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  padding: 1px 6px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

/* Active Token Avatar Wrap */
.token-active-avatar-wrap {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.token-active-avatar-wrap:hover {
  transform: scale(1.08);
}
.token-avatar-glow {
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6) !important;
  border: 2px solid #8b5cf6 !important;
}
.token-online-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #0f1021;
}

/* Top Token Switcher select */
.top-token-select {
  background: rgba(15, 16, 33, 0.8);
  color: #e2e8f0;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}
.top-token-select:focus {
  border-color: #8b5cf6;
}

/* Master Admin Tokens Cards */
.master-acc-card {
  background: rgba(18, 19, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.25s ease;
}
.master-acc-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}



/* ═══════════════════════════════════════════════════════════════════ */
/* QUESTS HUB & VOICE AFK 1:1 REPLICA STYLES                           */
/* ═══════════════════════════════════════════════════════════════════ */

/* 1. Universal Sidebar Backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  transition: opacity 0.25s ease;
}
.sidebar-backdrop.active {
  display: block;
}

/* 2. Quests Hub Header & Top Filter Tabs */
.qh-quests-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.qh-orbs-balance-pill {
  background: rgba(30, 36, 56, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 20px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.qh-filter-tabs-row {
  display: flex;
  gap: 8px;
  background: rgba(18, 22, 34, 0.7);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
}

.qh-ftab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.qh-ftab-btn.active {
  background: #252b43;
  color: #fff;
  border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.qh-ftab-badge {
  background: rgba(139, 92, 246, 0.25);
  color: #c084fc;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 0.75rem;
}

/* Master Select Bar: Select all (2) | Max 2 at once */
.qh-select-all-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  margin-bottom: 16px;
}

.qh-sel-left {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.qh-radio-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: transparent;
  transition: all 0.2s ease;
}

.qh-radio-circle.checked {
  border-color: #8b5cf6;
  background: #8b5cf6;
  color: #fff;
}

.qh-sel-notice {
  color: #94a3b8;
  font-size: 0.82rem;
}

/* Category Sections */
.qh-category-block {
  margin-bottom: 22px;
}

.qh-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.qh-category-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f1f5f9;
  font-weight: 700;
  font-size: 0.98rem;
}

.qh-category-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
}

.btn-category-select-all {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-category-select-all:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
  color: #c084fc;
}

/* Authentic Quest Card */
.qh-quest-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}

.qh-quest-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 17, 27, 0.92) 0%, rgba(14, 17, 27, 0.82) 50%, rgba(14, 17, 27, 0.65) 100%);
  z-index: 1;
}

.qh-quest-row:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-1px);
}

.qh-quest-row.selected {
  border-color: #8b5cf6;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.25);
}

.qh-quest-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 14px;
}

.qh-quest-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: #0f121d;
}

.qh-quest-meta {
  flex: 1;
  min-width: 0;
}

.qh-quest-title {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 2px 0;
}

.qh-quest-sub {
  color: #cbd5e1;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.qh-quest-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.qh-pill-ready {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 1px 7px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.qh-pill-gold {
  color: #f59e0b;
  font-weight: 700;
}

.qh-pill-expiry {
  color: #94a3b8;
}

/* 3. VOICE AFK STYLES */
.qh-voice-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.qh-users-capacity-pill {
  background: rgba(30, 36, 56, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 600;
}

.qh-voice-account-card {
  background: #141726;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.qh-voice-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.4);
}

.qh-voice-meta {
  flex: 1;
}

.qh-voice-display-name {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}

.qh-voice-tag-line {
  color: #94a3b8;
  font-size: 0.84rem;
  margin-top: 2px;
}

.qh-field-group {
  margin-bottom: 14px;
}

.qh-field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.qh-custom-picker-btn {
  background: #141726;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}

.qh-custom-picker-btn:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: #181c2e;
}

.picker-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.qh-switches-card {
  background: #141726;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px 16px;
  margin-bottom: 20px;
}

.qh-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.qh-switch-row:last-child {
  border-bottom: none;
}

.qh-switch-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qh-switch-icon {
  font-size: 1.25rem;
  width: 28px;
  text-align: center;
}

.qh-switch-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.94rem;
}

.qh-switch-sub {
  color: #94a3b8;
  font-size: 0.78rem;
  margin-top: 1px;
}

/* Switch Toggle Component */
.qh-toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.qh-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.qh-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 26px;
}

.qh-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.qh-toggle-switch input:checked + .qh-slider {
  background-color: #22c55e;
}

.qh-toggle-switch input:checked + .qh-slider:before {
  transform: translateX(22px);
}

.btn-voice-join {
  width: 100%;
  background: #4f46e5;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.btn-voice-join:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

.btn-voice-join.active {
  background: #ef4444;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.qh-voice-footer-note {
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  margin-top: 12px;
}

/* Bottom Sheet Picker Card */
.qh-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 10005;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.qh-sheet-overlay.open {
  display: flex !important;
}

.qh-sheet-card {
  background: #141726;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  overflow: hidden;
  animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.qh-sheet-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.qh-sheet-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.qh-sheet-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.qh-sheet-search-wrap {
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.qh-sheet-search {
  width: 100%;
  background: #0f121d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.9rem;
  outline: none;
}

.qh-sheet-body {
  padding: 12px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qh-server-item, .qh-channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #181c2e;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.qh-server-item:hover, .qh-channel-item:hover {
  background: #20253d;
  border-color: rgba(139, 92, 246, 0.4);
}

.qh-server-thumb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.qh-channel-sub {
  color: #94a3b8;
  font-size: 0.78rem;
  margin-top: 2px;
}

/* 4. ACCOUNT & PLANS STYLES */
.qh-plan-card {
  background: #141726;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
}

.qh-add-account-box {
  background: #141726;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
}

.qh-token-input-row {
  display: flex;
  gap: 10px;
}

.qh-connected-acc-card {
  background: #141726;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-remove-acc {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ef4444;
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-remove-acc:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* 5. AUDIT LOG STYLES */
.qh-audit-search-wrap {
  margin-bottom: 12px;
}

.qh-audit-search-input {
  width: 100%;
  background: #141726;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 0.92rem;
  outline: none;
}

.qh-audit-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.qh-audit-pill {
  background: #181c2e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.qh-audit-pill.active {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}

.qh-audit-card {
  background: #141726;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
}

.qh-audit-group-title {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 16px 0 10px 0;
}

.qh-audit-group-title:first-child {
  margin-top: 0;
}

.qh-audit-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  line-height: 1.45;
}

.qh-audit-time {
  color: #64748b;
  font-family: monospace;
  font-size: 0.84rem;
  flex-shrink: 0;
}

.qh-audit-msg-error {
  color: #fca5a5;
}

.qh-audit-msg-warn {
  color: #fcd34d;
}

.qh-audit-msg-success {
  color: #86efac;
}

.qh-audit-msg-info {
  color: #cbd5e1;
}

.qh-audit-footer-note {
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  margin-top: 16px;
}

/* 6. MOBILE BOTTOM NAVIGATION (Hidden on Desktop) */
.qh-mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .qh-mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #0f121d;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 9999;
    align-items: center;
    justify-content: space-around;
  }

  .qh-bnav-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
  }

  .qh-bnav-btn.active {
    color: #8b5cf6;
  }

  .qh-bnav-icon {
    font-size: 1.15rem;
  }

  /* Add padding bottom to content on mobile so bottom bar doesn't cover content */
  .content-wrapper {
    padding-bottom: 80px;
  }
}

/* ═══════════════════════════════════════════════════════════════════ */
/* 1:1 DISCORD OFFICIAL PROFILE MODAL (Matching User Screenshot)       */
/* ═══════════════════════════════════════════════════════════════════ */
.dp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.dp-modal-overlay.active {
  display: flex !important;
}
.dp-card {
  width: 100%;
  max-width: 440px;
  background: #111214;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: dpPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes dpPopIn {
  0% { transform: scale(0.94) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.dp-banner-wrap {
  height: 125px;
  background-color: #18191c;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}
.dp-banner-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.dp-btn-close {
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}
.dp-btn-close:hover {
  background: rgba(239, 68, 68, 0.7);
}
.dp-banner-badge {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}
.dp-avatar-container {
  position: absolute;
  bottom: -40px;
  right: 18px;
  z-index: 3;
}
html[dir="ltr"] .dp-avatar-container {
  right: auto;
  left: 18px;
}
.dp-avatar-img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 6px solid #111214;
  object-fit: cover;
  background: #1e1f22;
  display: block;
}
.dp-status-dot {
  position: absolute;
  bottom: 8px;
  left: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #23a55a;
  border: 4px solid #111214;
}
html[dir="ltr"] .dp-status-dot {
  left: auto;
  right: 6px;
}
.dp-edit-pencil {
  position: absolute;
  top: -6px;
  left: -6px;
  background: rgba(0,0,0,0.6);
  border: 2px solid #111214;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
}
.dp-content {
  padding: 48px 18px 20px 18px;
  overflow-y: auto;
  flex: 1;
}
.dp-name-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dp-display-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dp-handle {
  font-size: 0.88rem;
  color: #949ba4;
  margin-top: 2px;
}
.dp-badges-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 1.15rem;
}
.dp-badge-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  transition: transform 0.15s;
}
.dp-badge-item:hover {
  transform: scale(1.15);
}
.dp-badge-item img {
  height: 22px;
  width: auto;
  max-width: 28px;
  object-fit: contain;
  display: block;
}
.dp-edit-btn {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  background: #2b2d31;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}
.dp-edit-btn:hover {
  background: #35373c;
}
.dp-nav-tabs {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 2px;
}
.dp-nav-tab {
  background: transparent;
  border: none;
  color: #949ba4;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 0;
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
}
.dp-nav-tab:hover {
  color: #dbdee1;
}
.dp-nav-tab.active {
  color: #fff;
}
.dp-nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.dp-orbs-box {
  background: #1e1f22;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dp-orbs-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f2f3f5;
}
.dp-orbs-chip {
  background: #2b2d31;
  border-radius: 8px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}
.dp-section {
  margin-top: 16px;
}
.dp-section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #949ba4;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.dp-bio-text {
  font-size: 0.88rem;
  color: #dbdee1;
  line-height: 1.5;
  white-space: pre-line;
}
.dp-since-box {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #dbdee1;
}
.dp-amis-box {
  background: #1e1f22;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.dp-amis-avatars {
  display: flex;
  align-items: center;
}
.dp-mini-friend {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #1e1f22;
  margin-left: -6px;
  object-fit: cover;
}
.dp-footer-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.dp-btn-manage {
  flex: 1;
  padding: 9px;
  background: #2b2d31;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.dp-btn-logout {
  flex: 1;
  padding: 9px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.dp-btn-logout:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* Discord Native Action Buttons (Ajouter / Message / Call) */
.dp-btn-add-friend {
  flex: 1;
  padding: 10px 16px;
  background: #5865f2;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, transform 0.1s;
}
.dp-btn-add-friend:hover {
  background: #4752c4;
  transform: translateY(-1px);
}
.dp-btn-icon-action {
  width: 44px;
  height: 40px;
  background: #2b2d31;
  color: #dbdee1;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.dp-btn-icon-action:hover {
  background: #35373c;
  color: #fff;
  transform: translateY(-1px);
}

/* ── Animated Official Discord Orbs & UI Polish ── */
@keyframes novaOrbFloat {
  0%, 100% { transform: translateY(0px) scale(1); filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.55)); }
  50% { transform: translateY(-2px) scale(1.06); filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.8)); }
}
.nova-orb-anim {
  animation: novaOrbFloat 3s ease-in-out infinite;
  display: inline-block;
  vertical-align: middle;
}

/* Server Membership Gate Modal */
.server-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 16, 0.92);
  backdrop-filter: blur(12px);
  z-index: 15000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.server-gate-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(165deg, #1b1736 0%, #11121c 65%);
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 22px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(99, 102, 241, 0.22);
}
.server-gate-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #5865f2, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(88, 101, 242, 0.45);
}

/* Quests Runs & Settings Cards */
.runs-card {
  background: rgba(20, 22, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}
.runs-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 8px;
}
.runs-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5865f2, #a855f7, #38bdf8);
  transition: width 0.35s ease;
}
.runs-task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-top: 10px;
}

/* RPC Live Discord Preview Card */
.rpc-discord-preview {
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 16px;
  margin-top: 14px;
}
.rpc-preview-inner {
  background: #1e1f22;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.rpc-preview-img-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}
.rpc-preview-large {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  background: #2b2d31;
}
.rpc-preview-small {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #1e1f22;
  object-fit: cover;
  background: #111214;
}

/* Leaderboard rows */
.lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  margin-bottom: 8px;
}

/* Selectable preset pills in RPC & Voice */
.preset-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.preset-chip:hover, .preset-chip.active {
  background: rgba(88, 101, 242, 0.22);
  border-color: #5865f2;
  color: #fff;
}

