/* ==============================================================================
   Apps4You - Modern Web Application Design System
   Inspired by LemonHost (lemonhost.me)
   Typography: Lexend (Display & Headings) & Plus Jakarta Sans (Body & UI)
   No em dashes (-) permitted anywhere.
   ============================================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg-body: #060911;
  --bg-surface: #0c1122;
  --bg-card: rgba(15, 22, 43, 0.75);
  --bg-card-hover: rgba(22, 32, 60, 0.88);
  --bg-elevated: #161e38;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(253, 216, 53, 0.35);
  --border-active: rgba(253, 216, 53, 0.6);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #fdd835;
  --accent-glow: rgba(253, 216, 53, 0.25);
  --accent-dark: #f9a825;
  --accent-light: #fff59d;
  --emerald: #10b981;
  --blurple: #5865f2;
  --cyan: #06b6d4;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(253, 216, 53, 0.15);
  --font-display: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Backward-compatible variables for dashboard and portal views */
  --bg: var(--bg-body);
  --bg-gradient: linear-gradient(180deg, #060911 0%, #0c1122 100%);
  --panel: var(--bg-card);
  --panel-strong: var(--bg-surface);
  --panel-border: var(--border-subtle);
  --panel-hover-border: var(--border-hover);
  --text: var(--text-primary);
  --text-dim: var(--text-secondary);
  --muted: var(--text-muted);
  --accent-rgb: 253, 216, 53;
  --accent-2: #818cf8;
  --accent-3: #c084fc;
  --success: var(--emerald);
  --success-bg: rgba(16, 185, 129, 0.12);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.12);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.12);
  --shadow: var(--shadow-md);
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: var(--bg-body);
}

body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #ffffff;
  margin-top: 0;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

p {
  margin-top: 0;
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-light);
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 50% 0%,
      rgba(253, 216, 53, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(88, 101, 242, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 15% 70%,
      rgba(16, 185, 129, 0.04) 0%,
      transparent 40%
    ),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    48px 48px,
    48px 48px;
  background-position: center top;
  opacity: 0.85;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

/* ==============================================================================
   Site Header & Navigation (LemonHost Style)
   ============================================================================== */

nav#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

nav#navbar.scrolled {
  padding: 0.85rem 0;
  background: rgba(6, 9, 17, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(253, 216, 53, 0.15);
}

.nav-inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(12, 17, 34, 0.75);
  border: 1px solid rgba(253, 216, 53, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 12px rgba(253, 216, 53, 0.15);
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.logo:hover .logo-mark {
  border-color: rgba(253, 216, 53, 0.5);
  box-shadow: 0 4px 20px rgba(253, 216, 53, 0.25);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.logo-mark .material-symbols-rounded {
  font-size: 1.45rem;
  font-weight: 700;
}

.logo-label {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.logo-label strong {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

/* Dashboard Topbar Server Tabs */
.nav-dashboard-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
}

.nav-dashboard-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #94a3b8;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.38rem 0.68rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  line-height: 1.2;
  flex-shrink: 0;
}

.nav-tab-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform 0.2s ease, stroke 0.2s ease, fill 0.2s ease;
}

.nav-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-tab-btn.active {
  color: #ffffff;
  background: rgba(253, 216, 53, 0.14);
  border-color: rgba(253, 216, 53, 0.4);
  font-weight: 700;
  box-shadow: 0 2px 14px rgba(253, 216, 53, 0.18);
}

.nav-tab-btn.active svg {
  stroke: var(--accent);
}

.nav-tab-btn.pro-nav-tab {
  color: #fbbf24;
}

.nav-tab-btn.pro-nav-tab svg {
  fill: #fbbf24;
}

.nav-tab-btn.pro-nav-tab:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.25);
}

.nav-tab-btn.pro-nav-tab.active {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.28);
}

.nav-tab-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  line-height: 1;
}

.nav-tab-badge.neutral {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-tab-badge.amber {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-dark) 100%
  );
  color: #060911;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(253, 216, 53, 0.25);
  border: none;
  cursor: pointer;
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(253, 216, 53, 0.4);
  filter: brightness(1.05);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.22rem 0.6rem 0.22rem 0.3rem;
  font-size: 0.82rem;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #060911;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.logout-link {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 0.2rem;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.logout-link:hover {
  color: var(--danger);
}

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  align-items: center;
  justify-content: center;
}

.mobile-toggle:hover {
  background: rgba(253, 216, 53, 0.1);
  color: var(--accent);
  border-color: var(--border-hover);
}

/* ==============================================================================
   Button Components
   ============================================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-dark) 100%
  );
  color: #060911;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(253, 216, 53, 0.3);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(253, 216, 53, 0.45);
  filter: brightness(1.06);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Backward-compatible button classes */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #060911;
  font-weight: 700;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(253, 216, 53, 0.35);
  filter: brightness(1.05);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-subtle);
  color: #ffffff;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.button-outline {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.button-outline:hover {
  background: rgba(253, 216, 53, 0.08);
  border-color: var(--border-hover);
  color: var(--accent);
}

.button-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.button-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(248, 113, 113, 0.3);
}

.button-danger:hover {
  background: var(--danger);
  color: #ffffff;
}

.button-dashboard {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #060911;
  font-weight: 700;
}

.button-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* ==============================================================================
   Landing Page: Hero Section (LemonHost Style)
   ============================================================================== */

.hero {
  padding: 8.5rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  background: rgba(253, 216, 53, 0.08);
  border: 1px solid rgba(253, 216, 53, 0.25);
  color: var(--accent-light);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 960px;
  margin: 0 auto 1.25rem;
}

.hero h1 .text-highlight {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.hero-desc {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 740px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* ==============================================================================
   Stats Bar (LemonHost Style)
   ============================================================================== */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1040px;
  margin: 0 auto 5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(15, 22, 43, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.stat-box {
  text-align: center;
  border-right: 1px solid var(--border-subtle);
  padding: 0 0.5rem;
}

.stat-box:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.stat-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==============================================================================
   Section Headers & Offerings Grid (LemonHost Style)
   ============================================================================== */

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-preview-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-preview-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow:
    var(--shadow-glow),
    0 20px 40px rgba(0, 0, 0, 0.5);
}

.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.preview-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-icon-wrap .material-symbols-rounded {
  font-size: 1.85rem;
  color: var(--accent);
}

.preview-price-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(253, 216, 53, 0.12);
  border: 1px solid rgba(253, 216, 53, 0.3);
  color: var(--accent-light);
}

.preview-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.45rem;
}

.preview-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.preview-link-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: auto;
}

/* ==============================================================================
   Discord Community Widget Card
   ============================================================================== */

.community-section {
  padding: 2rem 0 5rem;
}

.community-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(88, 101, 242, 0.25);
  border-radius: var(--radius-xl, 20px);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3.5rem;
  align-items: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 35px rgba(88, 101, 242, 0.08);
}

.community-info h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.85rem;
  line-height: 1.2;
}

.community-info p {
  color: var(--text-secondary);
  font-size: 1.025rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.community-pill-status {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: var(--radius-md, 10px);
  color: #c7d2fe;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.community-perks-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.community-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.perk-icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.3);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.perk-icon-wrap .material-symbols-rounded {
  font-size: 1.35rem;
}

.community-perk-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.community-perk-item p {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.community-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-discord-join {
  background: #5865f2 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-discord-join:hover {
  background: #4752c4 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.5) !important;
}

.community-widget-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.discord-widget-wrapper {
  background: #2b2d31;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 30px rgba(88, 101, 242, 0.2);
  border: 1px solid rgba(88, 101, 242, 0.3);
  line-height: 0;
  max-width: 100%;
}

.discord-widget-wrapper iframe {
  display: block;
  border: none;
  max-width: 100%;
}

@media (max-width: 960px) {
  .community-card {
    grid-template-columns: 1fr;
    padding: 2.25rem;
    gap: 2.5rem;
  }

  .community-widget-container {
    width: 100%;
  }

  .discord-widget-wrapper {
    width: 100%;
    max-width: 350px;
  }

  .discord-widget-wrapper iframe {
    width: 100%;
  }
}

/* ==============================================================================
   Interactive Demo Sandbox
   ============================================================================== */

.demo-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
  background: var(--bg-card);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.demo-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.demo-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.demo-tab.active {
  background: rgba(253, 216, 53, 0.12);
  border-color: rgba(253, 216, 53, 0.3);
  color: var(--accent);
}

.demo-theme-swatches {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.swatch-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.theme-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.theme-swatch:hover {
  transform: scale(1.15);
}

.theme-swatch.active {
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.demo-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: flex-start;
}

.demo-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.demo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.demo-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(253, 216, 53, 0.1);
  border: 1px solid rgba(253, 216, 53, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.demo-card-meta h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.demo-card-meta p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

.demo-user-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.chip-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #5865f2;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.demo-card-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.demo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.demo-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Discord Sim Card */
.demo-discord-preview {
  background: #2b2d31;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.discord-sim-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #dbdee1;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.discord-sim-tag {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(253, 216, 53, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.discord-v2-container-box {
  background: #1e1f22;
  border-radius: 8px;
  display: flex;
  overflow: hidden;
  border-left: 4px solid var(--accent);
}

.discord-v2-body {
  padding: 1rem 1.2rem;
  width: 100%;
}

.discord-v2-header-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.discord-v2-bot-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.discord-app-tag {
  font-size: 0.62rem;
  font-weight: 700;
  background: #5865f2;
  color: #ffffff;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.discord-v2-timestamp {
  font-size: 0.72rem;
  color: #949ba4;
}

.discord-v2-buttons-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.discord-sim-stream {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 280px;
}

.discord-channel-empty {
  padding: 2.2rem 1.5rem;
  text-align: left;
  color: #949ba4;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.discord-welcome-hash {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #404249;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.discord-channel-empty h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.discord-channel-empty p {
  font-size: 0.88rem;
  color: #949ba4;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.discord-channel-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--accent);
  background: rgba(253, 216, 53, 0.08);
  border: 1px solid rgba(253, 216, 53, 0.2);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
}

@keyframes discordMessagePop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.discord-message-animate {
  animation: discordMessagePop 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.discord-status-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  margin-top: 0.85rem;
}

.discord-status-banner.approved {
  background: rgba(35, 165, 90, 0.15);
  color: #34d399;
  border: 1px solid rgba(35, 165, 90, 0.35);
}

.discord-status-banner.denied {
  background: rgba(218, 55, 60, 0.15);
  color: #f87171;
  border: 1px solid rgba(218, 55, 60, 0.35);
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.discord-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.discord-btn:active {
  transform: translateY(0);
}

.discord-btn-approve {
  background: #23a55a;
  color: #ffffff;
}

.discord-btn-deny {
  background: #da373c;
  color: #ffffff;
}

.discord-btn-secondary {
  background: #4e5058;
  color: #ffffff;
}

/* ==============================================================================
   Steps, Pricing, FAQ, and Footer
   ============================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  position: relative;
  transition: all 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card.featured {
  background: rgba(22, 30, 58, 0.8);
  border-color: var(--accent);
  box-shadow: 0 0 35px rgba(253, 216, 53, 0.15);
}

.pricing-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.pricing-badge.featured-badge {
  color: var(--accent);
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  min-height: 44px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.full-width {
  width: 100%;
}

.faq-accordion {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  color: var(--accent);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

.cta-banner {
  background: linear-gradient(135deg, rgba(22, 30, 58, 0.9) 0%, rgba(15, 22, 43, 0.9) 100%);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-glow);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 650px;
}

/* Site Footer */
.site-footer {
  background: rgba(4, 7, 14, 0.95);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem;
  margin-top: 4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.status-indicator-link:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
  transform: translateY(-1px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-cmd {
  display: block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--accent);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* Responsive Queries */
@media (max-width: 992px) {
  .services-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .node-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  .demo-grid-layout {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .stat-box:nth-child(2) {
    border-right: none;
  }
  .services-preview-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .mobile-toggle {
    display: flex !important;
  }
  .nav-links {
    display: none;
  }
  .nav-links.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #060911 !important;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(253, 216, 53, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
    gap: 0.75rem;
    z-index: 1000;
  }
  .nav-links.active li {
    width: 100%;
  }
  .nav-links.active a,
  .nav-links.active .nav-tab-btn {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    justify-content: flex-start;
  }
  .nav-links.active a:hover,
  .nav-links.active .nav-tab-btn:hover {
    background: rgba(253, 216, 53, 0.1);
    color: var(--accent);
  }
}

/* ==============================================================================
   Web Admin Dashboard Styles
   ============================================================================== */

.dashboard-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
}

.dashboard-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--panel-border);
}

.dashboard-title-group h1 {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
}

.dashboard-title-group p {
  font-size: 0.95rem;
  max-width: 640px;
  margin-bottom: 0;
}

/* Guilds Selector Grid */
.guilds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.guild-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.guild-card:hover {
  transform: translateY(-4px);
  border-color: var(--panel-hover-border);
  box-shadow: var(--shadow);
}

.guild-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.guild-icon, .guild-icon-placeholder {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-lg);
  object-fit: cover;
  flex-shrink: 0;
}

.guild-icon-placeholder {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #050b14;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guild-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  word-break: break-word;
}

.guild-id-tag {
  font-size: 0.78rem;
  color: var(--muted);
}

.guild-card-body {
  flex: 1;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.guild-meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.meta-label {
  color: var(--muted);
}

.badge-status {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.badge-status.success { background: var(--success-bg); color: var(--success); }
.badge-status.warning { background: var(--warning-bg); color: var(--warning); }
.badge-status.neutral { background: rgba(255, 255, 255, 0.08); color: var(--muted); }

.domain-tag {
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--accent);
}

.apps-count-pill {
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  color: #ffffff;
}

.guild-hint {
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* Empty State */
.empty-state-card {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  max-width: 560px;
  margin: 3rem auto;
}

.empty-state-icon {
  margin-bottom: 1.5rem;
}

.empty-state-card h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.empty-state-card p {
  margin-bottom: 2rem;
}

/* ==============================================================================
   Guild Admin Dashboard (guild.html)
   ============================================================================== */

.guild-admin-shell {
  max-width: 1560px;
  margin: 0 auto;
  padding: 6.5rem 2.5rem 6rem;
}

/* Universal Dashboard Panel Card */
.panel-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl, 18px);
  padding: 2rem 2.25rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
  margin-bottom: 2.25rem;
  position: relative;
}

.guild-admin-header {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl, 18px);
  padding: 1.85rem 2.25rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
  margin-bottom: 2.25rem;
}

.header-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  margin-bottom: 1.35rem;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--accent);
}

.crumb-divider {
  color: rgba(255, 255, 255, 0.2);
}

.crumb-current {
  color: #ffffff;
  font-weight: 700;
}

.server-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 0;
}

.server-identity {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.server-badge-icon {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #050b14;
  font-family: var(--font-display, "Outfit", sans-serif);
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -4px rgba(56, 189, 248, 0.4);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.server-badge-icon img,
.server-badge-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.server-badge-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-identity h2 {
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.server-meta-tags {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.tag-chip {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.28rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.header-live-portal {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(10, 15, 29, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.65rem 1.15rem;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pulse-indicator {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.portal-status-text {
  font-size: 0.82rem;
  color: var(--muted);
}

.portal-url-link {
  font-family: monospace;
  font-size: 0.86rem;
  font-weight: 600;
}

/* Admin Tab Bar (Tabs moved to primary topbar navigation) */
.admin-tab-bar {
  display: none !important;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.3);
}

.tab-badge {
  background: rgba(251, 191, 36, 0.2);
  color: var(--warning);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stats Overview Grid */
.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.stat-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-icon-wrap {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-wrap.blue { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.stat-icon-wrap.amber { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.stat-icon-wrap.green { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.stat-icon-wrap.rose { background: rgba(248, 113, 113, 0.15); color: #f87171; }

.stat-big-number {
  font-family: var(--font-display, "Outfit", sans-serif);
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-big-number.amber-text { color: var(--warning); }
.stat-big-number.green-text { color: var(--success); }
.stat-big-number.rose-text { color: var(--danger); }

.stat-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Overview Dual Grid */
.overview-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.checklist-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checklist-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
}

.checklist-item.done {
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.03);
}

.check-icon {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.circle-todo {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--warning);
}

.circle-opt {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--muted);
}

.check-text strong {
  display: block;
  font-size: 0.92rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.check-text span {
  font-size: 0.84rem;
  color: var(--muted);
}

.quick-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quick-act-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  padding: 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  text-decoration: none;
}

.quick-act-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--panel-hover-border);
  transform: translateX(4px);
}

.act-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.act-icon.amber { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.act-icon.purple { background: rgba(129, 140, 248, 0.15); color: #818cf8; }
.act-icon.cyan { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.act-icon.green { background: rgba(52, 211, 153, 0.15); color: #34d399; }

.quick-act-btn strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
  color: #ffffff;
}

.quick-act-btn span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Applications Review List */
.applications-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--panel-border);
  margin-bottom: 1.5rem;
}

.app-filter-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  gap: 0.35rem;
}

.filter-tab {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab.active, .filter-tab:hover {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
}

.applications-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.app-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}

.app-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.applicant-badge-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.applicant-avatar-circle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #050b14;
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.applicant-meta h4 {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.applicant-subinfo {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-dot {
  color: rgba(255, 255, 255, 0.2);
}

.app-status-badge {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.app-status-badge.pending { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(251, 191, 36, 0.3); }
.app-status-badge.approved { background: var(--success-bg); color: var(--success); border: 1px solid rgba(52, 211, 153, 0.3); }
.app-status-badge.denied { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(248, 113, 113, 0.3); }

/* Answers Expansion */
.answers-expansion {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.answers-summary {
  padding: 0.85rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.answers-summary::-webkit-details-marker {
  display: none;
}

.answers-expansion[open] .answers-summary svg {
  transform: rotate(180deg);
}

.answers-table {
  padding: 0 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.answer-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 0.75rem;
}

.answer-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.answer-question {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.answer-value {
  font-size: 0.94rem;
  color: #ffffff;
  white-space: pre-wrap;
}

.empty-answers {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
}

.app-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--panel-border);
}

.decision-inputs {
  flex: 1;
  min-width: 240px;
}

.reason-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  font-size: 0.86rem;
  color: #ffffff;
}

.reason-input:focus {
  outline: none;
  border-color: var(--accent);
}

.decision-buttons {
  display: flex;
  gap: 0.65rem;
}

.app-reviewed-note {
  font-size: 0.84rem;
  color: var(--muted);
  padding-top: 0.85rem;
  border-top: 1px solid var(--panel-border);
}

.app-reviewed-note strong {
  color: #ffffff;
}

.app-reviewed-note span {
  display: block;
  font-style: italic;
  margin-top: 0.2rem;
}

.empty-apps-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-apps-state h4 {
  font-size: 1.25rem;
  margin: 1rem 0 0.5rem;
}

/* ==============================================================================
   Form Builder Tab
   ============================================================================== */

.builder-dual-panel {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
}

.builder-controls-card {
  align-self: start;
}

.template-chips-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn-template-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  transition: var(--transition);
}

.btn-template-chip:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent);
}

.btn-template-chip strong {
  display: block;
  font-size: 0.88rem;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.btn-template-chip span {
  font-size: 0.78rem;
  color: var(--muted);
}

.builder-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.questions-builder-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.question-edit-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: var(--transition);
}

.question-edit-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.q-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.q-drag-handle {
  color: var(--muted);
  cursor: grab;
  font-size: 1.1rem;
}

.q-id-badge {
  font-size: 0.8rem;
  color: var(--muted);
}

.q-type-badge {
  font-size: 0.74rem;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: capitalize;
}

.q-delete-btn {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}

.q-delete-btn:hover {
  color: var(--danger);
}

.q-subfields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.q-slider-bounds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.hidden {
  display: none !important;
}

.q-extra-options.hidden {
  display: none !important;
}

.builder-save-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--panel-border);
}

.save-status-msg {
  font-size: 0.88rem;
  font-weight: 600;
}

/* ==============================================================================
   Domain & DNS Tab
   ============================================================================== */

.domain-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.input-addon-wrap {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.input-addon-wrap input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-size: 0.94rem;
}

.input-addon-wrap input:focus {
  outline: none;
}

.input-suffix {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: monospace;
  font-size: 0.88rem;
  border-left: 1px solid var(--panel-border);
}

.domain-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.dns-instruction-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.dns-instruction-box h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.dns-instruction-box p {
  font-size: 0.84rem;
  margin-bottom: 0.85rem;
}

.dns-table-mock {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.84rem;
}

.dns-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dns-row span {
  width: 90px;
  color: var(--muted);
}

/* ==============================================================================
   Theme Picker Grid
   ============================================================================== */

.theme-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.theme-card-option {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.theme-card-option.active {
  border-color: var(--accent);
  box-shadow: 0 0 20px -3px rgba(56, 189, 248, 0.4);
}

.theme-swatch-preview {
  height: 90px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
}

.theme-colors-ribbon {
  display: flex;
  gap: 0.35rem;
}

.ribbon-color {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-card-body {
  padding: 1rem;
}

.theme-name {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.theme-tones {
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

/* ==============================================================================
   Settings & OAuth Box
   ============================================================================== */

.max-w-720 {
  max-width: 720px;
}

.oauth-helper-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.oauth-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
}

.oauth-field-row code {
  flex: 1;
  word-break: break-all;
}

.settings-save-row {
  padding-top: 1rem;
}

/* ==============================================================================
   Form Controls (Standard Inputs, Textareas, Selects)
   ============================================================================== */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.form-field.compact {
  margin-bottom: 0.65rem;
}

.form-field span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.field-hint, .form-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.form-input, .form-textarea, .form-select, select, input[type="text"], input[type="number"], textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.94rem;
  color: #ffffff;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus, select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.checkbox-inline {
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}

.checkbox-inline input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ==============================================================================
   Public Application Portal Page (application.html)
   ============================================================================== */

.app-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: 6.5rem 1.5rem 5rem;
  width: 100%;
  box-sizing: border-box;
}

.portal-hero-card {
  margin-bottom: 1.75rem;
  background: var(--panel-strong);
  position: relative;
  overflow: hidden;
}

.portal-hero-top {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.portal-server-badge {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #050b14;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(56, 189, 248, 0.5);
  flex-shrink: 0;
}

.portal-hero-titles h1 {
  font-size: 1.85rem;
  margin-bottom: 0.25rem;
}

.portal-desc {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.portal-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.84rem;
}

.meta-auth-pill, .meta-server-pill, .meta-progress-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.portal-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.portal-form-card {
  padding: 2.25rem;
}

.form-fields-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.form-question-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  transition: var(--transition);
}

.form-question-card:focus-within {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 16px -2px rgba(56, 189, 248, 0.15);
}

.question-header {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.q-number {
  font-family: "Outfit", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.q-label-text {
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
}

.required-asterisk {
  color: var(--danger);
  font-weight: bold;
}

.optional-tag {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 500;
  margin-left: 0.4rem;
}

.boolean-toggle-group {
  display: flex;
  gap: 1rem;
}

.toggle-option {
  flex: 1;
  cursor: pointer;
}

.toggle-option input {
  display: none;
}

.toggle-box {
  display: block;
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  transition: var(--transition);
}

.toggle-option input:checked + .toggle-box {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* Slider Input */
.slider-control-card {
  padding: 0.5rem 0;
}

.slider-track-wrap {
  margin-bottom: 0.75rem;
}

.form-range {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.slider-badge-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-value-badge {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.slider-bounds-text {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Portal Submit Row */
.portal-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--panel-border);
}

.submit-disclaimer {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  max-width: 420px;
}

.form-status-msg {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-content-card {
  max-width: 480px;
  text-align: center;
  padding: 3rem 2rem;
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 50px rgba(52, 211, 153, 0.2);
}

.modal-icon-circle {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  background: var(--success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.modal-content-card h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.modal-content-card p {
  font-size: 0.94rem;
  margin-bottom: 1.5rem;
}

.modal-meta-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--panel-border);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* ==============================================================================
   Gate Page (gate.html)
   ============================================================================== */

.gate-shell {
  min-height: calc(100vh - 120px);
  padding: 7rem 1.5rem 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-card {
  max-width: 500px;
  width: 100%;
  text-align: center;
  padding: 3.25rem 2.5rem;
  border-radius: 1.5rem;
}

.gate-server-avatar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.gate-server-icon {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.35rem;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.gate-icon-wrap {
  width: 5rem;
  height: 5rem;
  border-radius: 1.25rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.gate-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  line-height: 1.25;
}

.gate-message {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.gate-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.9rem 1.75rem;
  border-radius: 0.85rem;
  background: #5865F2 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.gate-login-btn:hover {
  background: #4752C4 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.45);
}

.gate-footer-note {
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--panel-border);
  padding-top: 1.25rem;
  margin-top: 1.5rem;
}


/* ==============================================================================
   Toast Notifications
   ============================================================================== */

.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(11, 20, 38, 0.95);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  box-shadow: var(--shadow);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  backdrop-filter: blur(16px);
  animation: toastIn 0.25s ease-out;
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==============================================================================
   Responsive Queries
   ============================================================================== */

@media (max-width: 980px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-cta-group, .hero-trust-row {
    justify-content: center;
  }
  .steps-grid, .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-box:nth-child(2)::after {
    display: none;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .overview-dual-grid, .domain-dual-grid, .builder-dual-panel {
    grid-template-columns: 1fr;
  }
  .stats-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }
  .steps-grid, .stats-strip, .pricing-grid, .stats-overview-grid {
    grid-template-columns: 1fr;
  }
  .stat-box::after {
    display: none !important;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* ==============================================================================
   Search Filter Bar & Toast Notifications
   ============================================================================== */

.search-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  color: var(--text-dim);
}

.search-input-wrap input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.95rem;
  width: 100%;
}

.search-input-wrap input::placeholder {
  color: var(--text-dim);
}

.search-count-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  color: var(--text-dim);
  white-space: nowrap;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 420px;
  width: calc(100vw - 3.5rem);
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(18, 24, 38, 0.94);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-item.fade-out {
  opacity: 0;
  transform: translateY(10px) scale(0.96);
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  color: var(--success);
}

.toast-error .toast-icon {
  color: var(--danger);
}

.toast-info .toast-icon {
  color: var(--accent);
}

.toast-content {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
  transition: color 0.15s ease;
}

.toast-close:hover {
  color: #ffffff;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dashboard Section Layout & Cards */
.dashboard-section-block {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-divider-top {
  padding-top: 2.5rem;
  border-top: 1px solid var(--panel-border);
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title-wrap h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.section-desc {
  color: var(--muted);
  font-size: 0.925rem;
  margin: -0.5rem 0 0.5rem 0;
}

.section-counter-tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.section-counter-tag.neutral {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.section-empty-notice {
  padding: 2rem;
  background: var(--panel-bg);
  border: 1px dashed var(--panel-border);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.search-badges-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-count-badge.active-badge {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.guild-card.connected {
  border-color: rgba(34, 197, 94, 0.25);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.03) 0%, rgba(15, 23, 42, 0.7) 100%);
  box-shadow: 0 4px 20px -8px rgba(34, 197, 94, 0.15);
}

.guild-card.connected:hover {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 10px 30px -10px rgba(34, 197, 94, 0.3);
}

.guild-card-footer.dual-action {
  display: flex;
  gap: 0.5rem;
}

.guild-card-footer.dual-action .button-primary {
  flex: 1;
}

.button-icon-only {
  padding: 0 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.domain-tag.link-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.domain-tag.link-tag:hover {
  opacity: 0.8;
  text-decoration: underline;
}




/* ==============================================================================
   Wick-Style Premium Dashboard Theme & Components
   ============================================================================== */
.guild-admin-shell.wick-theme {
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
}

.server-title-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badge-plan {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.badge-plan.pro-badge {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.18), rgba(249, 115, 22, 0.18));
  border: 1px solid rgba(234, 179, 8, 0.45);
  color: #fbbf24;
  box-shadow: 0 0 15px -3px rgba(234, 179, 8, 0.3);
}

.badge-plan.pro-badge.locked {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.3);
  color: #fde047;
}

.badge-plan.free-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.button-gradient {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: #ffffff;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

.tab-btn.pro-tab-highlight {
  color: #fbbf24;
}

.tab-btn.pro-tab-highlight:hover,
.tab-btn.pro-tab-highlight.active {
  color: #fde047;
  border-color: #fbbf24;
}

.tab-btn.pro-tab-highlight svg {
  color: #fbbf24;
}

/* Pro Tab Layout */
.pro-suite-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .pro-suite-grid {
    grid-template-columns: 1fr;
  }
}

/* Pro Cancellation Banner */
.pro-cancellation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(239, 68, 68, 0.08) 50%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px -4px rgba(245, 158, 11, 0.18);
  animation: fadeIn 0.3s ease-out;
}

@media (max-width: 768px) {
  .pro-cancellation-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.pro-cancel-banner-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(239, 68, 68, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.pro-cancel-banner-content {
  flex: 1;
}

.pro-cancel-headline-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.pro-cancel-headline-row h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fbbf24;
  margin: 0;
}

.cancel-countdown-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.2);
  color: #fef3c7;
  border: 1px solid rgba(245, 158, 11, 0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pro-cancel-banner-action {
  flex-shrink: 0;
}

.badge-plan.cancel-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.45);
}

.pro-status-card {
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.pro-status-card.active-pro {
  border-color: rgba(34, 197, 94, 0.4);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.06) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.pro-status-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pro-crown-wrap {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(249, 115, 22, 0.25));
  border: 1px solid rgba(234, 179, 8, 0.45);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px -4px rgba(234, 179, 8, 0.35);
}

.pro-status-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Pro License Accordion */
.pro-license-accordion {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.pro-license-accordion[open] {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(253, 216, 53, 0.3);
}

.pro-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-size: 0.88rem;
  color: #94a3b8;
  list-style: none;
}

.pro-accordion-summary::-webkit-details-marker {
  display: none;
}

.pro-accordion-summary:hover {
  color: #ffffff;
}

.pro-accordion-chevron {
  transition: transform 0.2s ease;
}

.pro-license-accordion[open] .pro-accordion-chevron {
  transform: rotate(180deg);
}

.redeem-box {
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
}

.redeem-box h4 {
  margin: 0 0 0.35rem 0;
  font-size: 1rem;
  color: #ffffff;
}

.redeem-input-row {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.redeem-input-row input {
  flex: 1;
  text-transform: uppercase;
  font-family: monospace;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

/* Pro Features Breakdown Grid */
.pro-suite-card {
  position: relative;
  overflow: hidden;
}

.pro-suite-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pro-chip-counter {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(249, 115, 22, 0.2));
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #facc15;
}

.pro-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.pro-feature-item-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pro-feature-item-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.pro-feat-icon-badge {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pro-feat-icon-badge.blue {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.pro-feat-icon-badge.purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.pro-feat-icon-badge.green {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.pro-feat-icon-badge.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pro-feat-icon-badge.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pro-feat-icon-badge.indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.pro-feat-icon-badge.pink {
  background: rgba(236, 72, 153, 0.12);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.pro-feat-icon-badge.yellow {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.pro-feat-details {
  flex: 1;
  min-width: 0;
}

.pro-feat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.pro-feat-top strong {
  font-size: 0.95rem;
  color: #ffffff;
}

.pro-feat-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 0.03em;
}

.pro-feat-details p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.pro-tier-comparison-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.pro-comparison-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #94a3b8;
  padding: 0.6rem 0.9rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

.pro-comparison-chip svg {
  flex-shrink: 0;
  color: #64748b;
}

.pro-comparison-chip strong {
  color: #e2e8f0;
}

/* Theme Pro Badges */
.theme-pro-tag {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #eab308, #f97316);
  color: #0b0f19;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.4);
}

.theme-free-tag {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.theme-card-option.pro-locked {
  opacity: 0.85;
}

.theme-card-option.pro-locked:hover {
  border-color: rgba(234, 179, 8, 0.45);
}

/* Lock banner in custom domains */
.pro-lock-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.lock-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pro-lock-banner strong {
  display: block;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.pro-lock-banner p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* White-label switch */
.white-label-box {
  padding: 1rem 1.25rem;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-md);
}

.white-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.25s;
  border-radius: 34px;
}

.switch-toggle .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
}

.switch-toggle input:checked + .slider {
  background-color: var(--success);
}

.switch-toggle input:checked + .slider:before {
  transform: translateX(22px);
}

/* ==============================================================================
   Positions Directory & Hub (Public Side)
   ============================================================================== */
.positions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.position-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.position-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.position-card.card-restricted {
  opacity: 0.8;
  border-style: dashed;
}

.pos-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.pos-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(253, 216, 53, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 1px solid rgba(253, 216, 53, 0.2);
}

.pos-badge-group {
  display: flex;
  gap: 0.5rem;
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pill.status-open {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.status-closed {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.status-pill.status-restricted {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pos-card-body {
  margin-bottom: 1.5rem;
  flex: 1;
}

.pos-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.pos-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pos-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1.25rem;
  margin-top: auto;
}

.pos-q-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.portal-breadcrumb-nav {
  margin-bottom: 1.25rem;
}

.portal-gate-card {
  text-align: center;
  padding: 3.5rem 2rem;
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.gate-icon-circle.restricted {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.12);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.gate-message {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0.75rem auto 1.75rem;
}

/* ==============================================================================
   Staff Multi-Application Builder (Admin Dashboard)
   ============================================================================== */
.app-builder-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(12, 17, 34, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.app-selector-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 4px;
}

.app-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.15rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.app-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

.app-pill-btn.active {
  background: rgba(253, 216, 53, 0.12);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(253, 216, 53, 0.2);
}

.app-pill-icon {
  font-size: 1.1rem;
}

.app-pill-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
}

.app-pill-status.active {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.app-builder-meta-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-capacity-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.app-capacity-badge strong {
  color: var(--accent);
}

.btn-new-app {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #fdd835, #f59e0b);
  color: #060911;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-new-app:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(253, 216, 53, 0.35);
}

/* App Settings Grid */
.app-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.app-config-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.app-config-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.app-config-card .card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.icon-selector-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.icon-choice-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: all 0.2s;
}

.icon-choice-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.icon-choice-btn.active {
  background: rgba(253, 216, 53, 0.18);
  border-color: var(--accent);
  color: var(--accent);
}

.channel-picker-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(6, 9, 17, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}

.channel-picker-select:focus {
  border-color: var(--accent);
}

.roles-multiselect-box {
  max-height: 180px;
  overflow-y: auto;
  padding: 0.5rem;
  background: rgba(6, 9, 17, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.role-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.role-checkbox-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.role-checkbox-item input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.role-pill-preview {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: #ffffff;
}

.role-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.builder-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.delete-app-btn {
  background: rgba(248, 113, 113, 0.12);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.25);
  padding: 0.6rem 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, border-color 0.2s;
}

.delete-app-btn:hover {
  background: rgba(248, 113, 113, 0.22);
  border-color: var(--danger);
}



/* ==============================================================================
   Lucide Icon Picker Grid & Active Badge
   ============================================================================== */

.icon-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.active-icon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.65rem;
  background: rgba(253, 216, 53, 0.12);
  border: 1px solid rgba(253, 216, 53, 0.3);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: capitalize;
}

.active-icon-svg-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.lucide-icon-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 0.5rem !important;
  margin-top: 0.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.lucide-icon-grid .icon-choice-btn {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  min-height: 38px;
  max-height: 44px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.lucide-icon-grid .icon-choice-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.lucide-icon-grid .icon-choice-btn.active {
  background: rgba(253, 216, 53, 0.2);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(253, 216, 53, 0.25);
}

/* ==============================================================================
   Blank Canvas State (0 Questions)
   ============================================================================== */

.blank-canvas-container {
  text-align: center;
  padding: 3.5rem 1.75rem;
  background: rgba(255, 255, 255, 0.015);
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  margin: 1rem 0;
  transition: border-color 0.2s ease;
}

.blank-canvas-container:hover {
  border-color: rgba(253, 216, 53, 0.3);
}

.blank-canvas-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(253, 216, 53, 0.12);
  border: 1px solid rgba(253, 216, 53, 0.25);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.blank-canvas-container h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.blank-canvas-container p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}

.blank-canvas-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ==============================================================================
   Enhanced Question Builder Item Card
   ============================================================================== */

.question-builder-item {
  background: rgba(13, 19, 33, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(10px);
}

.question-builder-item:hover {
  border-color: rgba(253, 216, 53, 0.3);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.q-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.q-card-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.q-num-pill {
  background: rgba(253, 216, 53, 0.15);
  color: var(--accent);
  border: 1px solid rgba(253, 216, 53, 0.35);
  padding: 0.22rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.q-type-pill {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.22rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.q-card-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.q-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.q-action-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.q-action-btn.btn-delete:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.2);
  color: var(--danger);
  border-color: var(--danger);
}

.q-action-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.q-main-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 1rem;
}

.q-field-group {
  display: flex;
  flex-direction: column;
}

.q-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

/* Choice Options Manager (Dropdown & Checkboxes) */
.q-options-container {
  margin-top: 1rem;
  padding: 1.15rem;
  background: rgba(6, 9, 17, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}

.q-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.65rem 0 0.85rem;
}

.q-opt-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.q-opt-num {
  color: var(--text-muted);
  font-size: 0.85rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.q-opt-item-input {
  flex: 1;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  background: rgba(13, 19, 33, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
}

.q-opt-item-input:focus {
  border-color: var(--accent);
}

.q-opt-remove-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
  flex-shrink: 0;
}

.q-opt-remove-btn:hover {
  color: var(--danger);
}

.q-opt-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(253, 216, 53, 0.08);
  border: 1px dashed rgba(253, 216, 53, 0.35);
  color: var(--accent);
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.q-opt-add-btn:hover {
  background: rgba(253, 216, 53, 0.18);
  border-color: var(--accent);
}

.q-slider-container {
  margin-top: 1rem;
  padding: 1.15rem;
  background: rgba(6, 9, 17, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}

.q-slider-bounds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.q-bottom-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.q-required-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
}

.q-required-toggle-wrap input[type="checkbox"] {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

/* ==============================================================================
   Mobile Viewport Responsive Polish
   ============================================================================== */

@media (max-width: 768px) {
  .app-settings-grid {
    grid-template-columns: 1fr !important;
  }

  .lucide-icon-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 0.5rem !important;
  margin-top: 0.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

  .lucide-icon-grid .icon-choice-btn {
    min-height: 44px;
    border-radius: 8px;
  }

  .q-main-inputs-grid {
    grid-template-columns: 1fr !important;
  }

  .builder-action-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem;
    padding: 1.15rem;
  }

  .canvas-actions-left,
  .canvas-actions-right {
    display: flex;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
    gap: 0.65rem;
  }

  .canvas-actions-left .button,
  .canvas-actions-right .button,
  .delete-app-btn {
    width: 100% !important;
    justify-content: center;
    padding: 0.75rem 1rem !important;
  }

  .questions-limit-chip {
    text-align: center;
    justify-content: center;
    width: 100%;
  }

  .app-selector-strip {
    padding-bottom: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .app-pill-btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
  }

  .positions-grid {
    grid-template-columns: 1fr !important;
  }

  .portal-meta-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .meta-auth-pill,
  .meta-server-pill,
  .meta-progress-pill {
    width: 100%;
    justify-content: center;
  }

  .question-builder-item {
    padding: 1.15rem;
  }

  .q-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .q-card-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .q-bottom-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .q-bottom-controls > div {
    max-width: 100% !important;
  }

  .q-required-toggle-wrap {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .lucide-icon-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 0.5rem !important;
  margin-top: 0.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
}

/* ==============================================================================
   Panel Card Base Primitive (Used Platform-Wide)
   ============================================================================== */
.panel-card {
  background: rgba(13, 19, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.panel-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.panel-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted, #94a3b8);
  margin: 0.2rem 0 1.25rem 0;
  line-height: 1.5;
}

/* ==============================================================================
   Global Admin Portal (Super Admin 1148212880722890783 Exclusive)
   ============================================================================== */

.admin-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
}

.admin-header-card {
  padding: 2.25rem 2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, rgba(253, 216, 53, 0.1) 0%, rgba(13, 19, 33, 0.95) 100%);
  border: 1px solid rgba(253, 216, 53, 0.4);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.admin-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.admin-crown-badge {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(253, 216, 53, 0.22), rgba(245, 158, 11, 0.22));
  border: 1px solid rgba(253, 216, 53, 0.5);
  color: var(--accent, #fdd835);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px rgba(253, 216, 53, 0.28);
  flex-shrink: 0;
}

.admin-badge-strip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.admin-id-tag {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--text-dim, #64748b);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.15rem 0 0.35rem;
  letter-spacing: -0.02em;
}

.admin-subtitle {
  color: var(--text-secondary, #94a3b8);
  font-size: 0.95rem;
  max-width: 720px;
  line-height: 1.55;
  margin: 0;
}

/* Admin Top Banner in Server Selector */
.admin-top-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.85rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, rgba(253, 216, 53, 0.12) 0%, rgba(13, 19, 33, 0.92) 100%);
  border: 1px solid rgba(253, 216, 53, 0.45);
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(253, 216, 53, 0.18);
  flex-wrap: wrap;
}

.admin-banner-content {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.admin-crown-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(253, 216, 53, 0.18);
  border: 1px solid rgba(253, 216, 53, 0.45);
  color: var(--accent, #fdd835);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-special-card {
  border-color: rgba(253, 216, 53, 0.45) !important;
  background: linear-gradient(180deg, rgba(253, 216, 53, 0.08) 0%, rgba(13, 19, 33, 0.88) 100%) !important;
  box-shadow: 0 4px 28px rgba(253, 216, 53, 0.22) !important;
}

.admin-special-card:hover {
  border-color: var(--accent, #fdd835) !important;
  box-shadow: 0 8px 38px rgba(253, 216, 53, 0.38) !important;
  transform: translateY(-3px);
}

.admin-gold-icon {
  background: rgba(253, 216, 53, 0.15) !important;
  border: 1px solid rgba(253, 216, 53, 0.4) !important;
  color: var(--accent, #fdd835) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gold-tag {
  color: var(--accent, #fdd835) !important;
  background: rgba(253, 216, 53, 0.12) !important;
  border: 1px solid rgba(253, 216, 53, 0.3) !important;
}

/* Global Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 980px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}

.admin-stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1.65rem;
}

.admin-stat-card.gold-glow {
  border-color: rgba(253, 216, 53, 0.4);
  box-shadow: 0 0 24px rgba(253, 216, 53, 0.14);
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon.blue { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.stat-icon.gold { background: rgba(253, 216, 53, 0.15); color: #fdd835; border: 1px solid rgba(253, 216, 53, 0.3); }
.stat-icon.purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.stat-icon.amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-number.gold-text { color: var(--accent, #fdd835); }
.stat-number.amber-text { color: #fbbf24; }

.stat-desc {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
}

/* Fleet Table & Management */
.admin-fleet-panel {
  padding: 1.85rem 2rem;
  margin-bottom: 2rem;
}

.fleet-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.fleet-header-row h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
}

.admin-table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(6, 9, 17, 0.6);
}

.admin-table-container.max-h-300 {
  max-height: 320px;
  overflow-y: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.admin-table th {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary, #94a3b8);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.admin-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #ffffff;
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: background 0.15s ease;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.fleet-server-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fleet-server-col strong {
  font-size: 0.95rem;
  color: #ffffff;
}

.fleet-server-col code {
  font-size: 0.78rem;
  color: var(--text-dim, #64748b);
  font-family: monospace;
}

.admin-action-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.button-gold {
  background: linear-gradient(135deg, #fdd835, #f59e0b) !important;
  color: #060911 !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(253, 216, 53, 0.3) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.button-gold:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(253, 216, 53, 0.45) !important;
}

.button-danger {
  background: rgba(248, 113, 113, 0.15) !important;
  color: #f87171 !important;
  border: 1px solid rgba(248, 113, 113, 0.35) !important;
  font-weight: 600 !important;
  transition: all 0.15s ease !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.button-danger:hover {
  background: rgba(248, 113, 113, 0.25) !important;
  border-color: #f87171 !important;
}

.admin-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 850px) {
  .admin-dual-grid {
    grid-template-columns: 1fr;
  }
}

.license-gen-box {
  padding: 0.75rem 0 0;
}

.new-license-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 0.85rem 1.15rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius-md, 10px);
  color: #4ade80;
  font-weight: 600;
}

.new-license-box code {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.new-license-box.hidden {
  display: none;
}

/* ==============================================================================
   Portal Identity & Custom Themes (Free + Pro)
   ============================================================================== */

.portal-identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .portal-identity-grid {
    grid-template-columns: 1fr;
  }
}

.custom-theme-builder-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 1024px) {
  .custom-theme-builder-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .custom-theme-builder-grid {
    grid-template-columns: 1fr;
  }
}

.color-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(6, 9, 17, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md, 10px);
  padding: 0.4rem 0.65rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.color-input-wrap:focus-within {
  border-color: var(--accent, #fdd835);
  box-shadow: 0 0 14px rgba(253, 216, 53, 0.25);
}

.color-input-wrap input[type="color"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  width: 42px;
  height: 38px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.color-input-wrap input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 8px;
}

.color-input-wrap input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 7px;
}

.color-input-wrap input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 7px;
}

.color-hex-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #ffffff;
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.35rem 0.25rem !important;
}

textarea#theme-custom-css {
  width: 100%;
  min-height: 120px;
  font-family: monospace;
  font-size: 0.88rem;
  background: rgba(6, 9, 17, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md, 10px);
  padding: 0.85rem 1rem;
  color: #e2e8f0;
  resize: vertical;
  line-height: 1.45;
}

textarea#theme-custom-css:focus {
  border-color: var(--accent, #fdd835);
  box-shadow: 0 0 14px rgba(253, 216, 53, 0.25);
}

.pro-locked-panel {
  opacity: 0.92;
  border-style: dashed;
}

.pro-feature-gate-notice {
  padding: 1.85rem;
  background: rgba(253, 216, 53, 0.05);
  border: 1px dashed rgba(253, 216, 53, 0.28);
  border-radius: var(--radius-md, 12px);
  text-align: center;
  margin-top: 1rem;
}

.pro-feature-gate-notice p {
  font-size: 0.95rem;
  color: var(--text-secondary, #94a3b8);
  max-width: 520px;
  margin: 0 auto 1.25rem;
  line-height: 1.55;
}

/* ==============================================================================
   Image Uploader Components (Dropzone, Circular Avatar & Banner)
   ============================================================================== */

.image-uploader-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(6, 9, 17, 0.65);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md, 12px);
  padding: 1rem 1.25rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.image-uploader-card:hover {
  border-color: var(--accent, #fdd835);
  background: rgba(6, 9, 17, 0.85);
}

.image-preview-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.image-preview-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-placeholder-icon {
  color: var(--text-dim, #64748b);
  display: flex;
  align-items: center;
  justify-content: center;
}

.uploader-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.uploader-buttons-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.uploader-btn {
  cursor: pointer;
  margin: 0;
}

.hidden-file-input {
  display: none !important;
}

/* Banner Uploader */
.banner-uploader-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(6, 9, 17, 0.65);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md, 12px);
  padding: 1rem 1.25rem;
}

.banner-preview-box {
  width: 100%;
  height: 105px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.04);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-placeholder-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim, #64748b);
  font-size: 0.86rem;
}

/* Lucide Icon Picker Overflow Protection */
.app-config-card {
  overflow: hidden !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.lucide-icon-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 0.45rem !important;
  margin-top: 0.45rem !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.lucide-icon-grid .icon-choice-btn {
  width: 100% !important;
  aspect-ratio: 1 !important;
  min-height: 38px !important;
  max-height: 44px !important;
  border-radius: 9px !important;
  box-sizing: border-box !important;
}

/* Required Section Header & Star Badges */
.config-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.badge-required {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.required-star {
  color: var(--danger, #ef4444);
  font-weight: 700;
  margin-left: 0.2rem;
}

/* Input Error Highlight & Attention Shake */
.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.28) !important;
  animation: inputShakeAnim 0.35s ease-in-out;
}

@keyframes inputShakeAnim {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* Save & Publish Button */
.btn-save-publish {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
  border: 1px solid rgba(52, 211, 153, 0.35) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  transition: all 0.2s ease !important;
}

.btn-save-publish:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.48) !important;
  transform: translateY(-1px) !important;
}

/* Acceptance Message Box in Card 2 */
.acceptance-msg-card-box {
  background: rgba(6, 9, 17, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 10px);
  padding: 0.85rem 1rem;
}

.acceptance-msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.acceptance-msg-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-primary, #ffffff);
}

/* Acceptance Message Custom Popup Modal */
.acceptance-modal-card {
  width: 100%;
  max-width: 640px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 90vh;
}

.modal-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.modal-card-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
}

.variable-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.var-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.32rem 0.65rem;
  color: var(--text-primary, #e2e8f0);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.var-chip-btn:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.45);
  color: #93c5fd;
  transform: translateY(-1px);
}

.var-chip-btn code {
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.82rem;
}

.modal-textarea {
  width: 100%;
  min-height: 120px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.9rem;
}

/* Discord DM Live Preview */
.acceptance-live-preview {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.preview-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.preview-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.discord-dm-preview-card {
  display: flex;
  gap: 0.85rem;
  background: #313338;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: #dbdee1;
  font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.discord-dm-avatar-col .bot-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5865f2;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.discord-dm-body {
  flex: 1;
  min-width: 0;
}

.discord-dm-author-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.bot-author-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.95rem;
}

.bot-badge {
  background: #5865f2;
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  line-height: 1;
}

.dm-timestamp {
  font-size: 0.72rem;
  color: #949ba4;
  margin-left: 0.2rem;
}

.discord-dm-text {
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: #dbdee1;
}

.modal-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

/* =====================================================================
   TAB 3: APPLICATIONS CANDIDATE REVIEW HUB (State-of-the-art UI)
   ===================================================================== */

/* Top Metrics Hero Grid */
.apps-stats-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.app-stat-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.app-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.app-stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-stat-icon-wrap.cyan {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.app-stat-icon-wrap.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.app-stat-icon-wrap.green {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.app-stat-icon-wrap.red {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.app-stat-icon-wrap.purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.app-stat-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.app-stat-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin: 0.15rem 0;
  font-family: var(--font-display, sans-serif);
}

.app-stat-val.cyan { color: #38bdf8; }
.app-stat-val.amber { color: #fbbf24; }
.app-stat-val.green { color: #34d399; }
.app-stat-val.red { color: #f87171; }
.app-stat-val.purple { color: #c084fc; }

.app-stat-sub {
  font-size: 0.72rem;
  color: #64748b;
  white-space: nowrap;
}

.app-stat-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  width: fit-content;
}

.app-stat-badge.amber-pulse {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  animation: pulseAmber 1.8s infinite ease-in-out;
}

.app-stat-badge.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

@keyframes pulseAmber {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.96); }
}

/* Panel Header */
.panel-title-with-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.panel-title-with-badge h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
}

/* Modern Search & Filter Toolbar */
.apps-toolbar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
}

.app-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 240px;
}

.app-search-input-wrap svg {
  position: absolute;
  left: 0.75rem;
  color: #64748b;
  pointer-events: none;
}

.app-search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.55rem 2rem 0.55rem 2.35rem;
  font-size: 0.85rem;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.app-search-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.app-search-clear-btn {
  position: absolute;
  right: 0.65rem;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.app-search-clear-btn:hover {
  color: #ffffff;
}

.app-position-filter-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  color: #94a3b8;
}

.app-position-select {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.app-position-select option {
  background: #0f172a;
  color: #ffffff;
}

/* Applications Filter Tabs */
.app-filter-tabs {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 3px;
  gap: 3px;
}

.app-filter-tabs .filter-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.app-filter-tabs .filter-tab:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.04);
}

.app-filter-tabs .filter-tab.active {
  background: #6366f1;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

/* Applications List Container */
.applications-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Candidate Card (Rich SaaS Design) */
.application-candidate-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.15rem 1.4rem;
  display: grid;
  grid-template-columns: 2fr 1.5fr auto;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.2s ease-in-out;
  position: relative;
}

.application-candidate-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, rgba(20, 29, 52, 0.95) 0%, rgba(30, 41, 59, 0.75) 100%);
}

/* Left: Candidate Profile */
.applicant-col {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.applicant-avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.applicant-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(99, 102, 241, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.applicant-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #0f172a;
}

.applicant-status-dot.green {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.applicant-status-dot.amber {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

.applicant-status-dot.red {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

.applicant-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.applicant-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.applicant-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.app-sub-position-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.applicant-meta-chips {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.applicant-id-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 0.12rem 0.45rem;
  font-size: 0.73rem;
  color: #38bdf8;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.applicant-id-pill:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
}

.applicant-id-pill code {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
}

.app-submitted-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: #94a3b8;
}

/* Middle: Overview */
.app-overview-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.app-metrics-pill-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.app-metric-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.app-metric-tag.cyan {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.app-metric-tag.green {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.app-metric-tag.amber {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.app-metric-tag.red {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.app-audit-line {
  color: #64748b;
}

.audit-reason-quote {
  font-style: italic;
  color: #94a3b8;
}

/* Right: Status & Actions */
.app-actions-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.app-status-badge-wrap {
  display: flex;
  align-items: center;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.35rem;
}

.status-dot.green {
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

.status-dot.amber {
  background: #fbbf24;
  box-shadow: 0 0 6px #fbbf24;
}

.status-dot.red {
  background: #f87171;
  box-shadow: 0 0 6px #f87171;
}

.app-buttons-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Empty State */
.empty-applications-notice,
.empty-search-notice {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-notice-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.empty-notice-icon.cyan {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.empty-applications-notice h4,
.empty-search-notice h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.4rem;
}

.empty-applications-notice p,
.empty-search-notice p {
  color: #94a3b8;
  font-size: 0.88rem;
  max-width: 500px;
  line-height: 1.5;
}

/* Inspect Answers Modal Styling */
.inspect-modal-card {
  max-width: 720px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.inspect-modal-body {
  overflow-y: auto;
  max-height: calc(85vh - 160px);
  padding: 1.5rem;
}

.inspect-candidate-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.inspect-candidate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
}

.inspect-candidate-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.inspect-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(99, 102, 241, 0.4);
}

.inspect-candidate-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.inspect-candidate-sub {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-left: 0.35rem;
}

.inspect-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.inspect-id-badge {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: #38bdf8;
}

.inspect-pos-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.inspect-date-pill {
  font-size: 0.75rem;
  color: #64748b;
}

.inspect-review-banner {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
}

.inspect-review-banner.approved {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.inspect-review-banner.denied {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.inspect-review-reason {
  margin-top: 0.3rem;
  font-style: italic;
  color: #cbd5e1;
}

.inspect-qa-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inspect-qa-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1rem;
}

.inspect-qa-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.inspect-q-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.15);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
}

.inspect-q-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
  flex: 1;
}

.inspect-q-type-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #64748b;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.inspect-qa-body {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.inspect-no-answer {
  color: #64748b;
  font-style: italic;
}

.inspect-answer-tag {
  display: inline-block;
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin: 0.2rem;
  font-size: 0.8rem;
}

.inspect-feedback-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.inspect-reason-input {
  width: 100%;
}

.inspect-modal-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.inspect-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .application-candidate-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .app-actions-col {
    justify-content: space-between;
  }
  .apps-toolbar-card {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Server switch button groups for multi-server routing & role targeting */
.server-switch-btn-group {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-top: 0.35rem;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}

.server-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.server-switch-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.05);
}

.server-switch-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.85) 0%, rgba(139, 92, 246, 0.85) 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.staff-invite-toggle-field {
  padding: 0.85rem 1rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 8px;
}

/* ==============================================================================
   Bot Tab: Discord App ID & Server Bot Profile Live Preview
   ============================================================================== */

.redirect-uri-display-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.15rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 0.85rem;
  margin-top: 0.4rem;
}

.redirect-uri-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  color: #38bdf8;
  word-break: break-all;
}

.discord-bot-preview-wrap {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 1.25rem;
}

.discord-bot-preview-card {
  width: 100%;
  max-width: 420px;
  background: #111214;
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.discord-bot-preview-banner {
  height: 105px;
  background-color: #5865f2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.discord-bot-preview-header {
  position: relative;
  padding: 0 1.25rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-top: -42px;
}

.discord-bot-preview-avatar-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 6px solid #111214;
  background: #1e1f22;
  flex-shrink: 0;
}

.discord-bot-preview-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.discord-bot-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #23a55a;
  border: 3.5px solid #111214;
}

.discord-bot-preview-info {
  padding-bottom: 0.6rem;
  min-width: 0;
}

.discord-bot-preview-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.discord-bot-preview-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #f2f3f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discord-bot-badge {
  background: #5865f2;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.12rem 0.38rem;
  border-radius: 0.25rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.discord-bot-preview-handle {
  font-size: 0.8rem;
  color: #949ba4;
  margin-top: 0.15rem;
}

.discord-bot-preview-body {
  padding: 1.1rem;
  background: #1e1f22;
  margin: 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.discord-bot-preview-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: #b5bac1;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}

.discord-bot-preview-bio {
  font-size: 0.88rem;
  color: #dbdee1;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

/* ==============================================================================
   Legal Hub & Compliance Pages (Terms, Privacy, Refunds)
   ============================================================================== */

.legal-hero-section {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(253, 216, 53, 0.08) 0%, rgba(6, 9, 17, 0) 70%), var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
  overflow: hidden;
}

.legal-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(253, 216, 53, 0.1);
  border: 1px solid rgba(253, 216, 53, 0.3);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(253, 216, 53, 0.1);
}

.legal-hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 1rem;
}

.legal-hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 1.75rem;
}

.legal-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.legal-meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-meta-item .material-symbols-rounded {
  font-size: 1.05rem;
  color: var(--accent);
}

.legal-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(15, 22, 43, 0.7);
  padding: 0.45rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.legal-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.legal-tab-btn .material-symbols-rounded {
  font-size: 1.15rem;
}

.legal-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.legal-tab-btn.active {
  color: #000000;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(253, 216, 53, 0.35);
}

.legal-tab-btn.active .material-symbols-rounded {
  color: #000000;
}

/* Legal Body Layout */
.legal-body-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  padding: 3.5rem 0 5rem;
  align-items: start;
}

/* Sticky Sidebar & Table of Contents */
.legal-sidebar {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.legal-toc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  backdrop-filter: blur(12px);
}

.legal-toc-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-toc-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.legal-toc-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.legal-toc-links .toc-link {
  display: block;
  font-size: 0.84rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.legal-toc-links .toc-link:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
}

.legal-toc-links .toc-link.active {
  color: var(--accent);
  background: rgba(253, 216, 53, 0.08);
  border-left-color: var(--accent);
  font-weight: 700;
}

.legal-sidebar-support {
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.support-sidebar-text strong {
  display: block;
  font-size: 0.86rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.support-sidebar-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.btn-support-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #8da4ef;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 0.45rem;
  transition: all 0.2s ease;
}

.btn-support-mini:hover {
  background: rgba(88, 101, 242, 0.25);
  color: #ffffff;
  border-color: #5865f2;
}

/* Main Legal Content */
.legal-content-main {
  min-width: 0;
}

.legal-callout {
  background: rgba(253, 216, 53, 0.05);
  border: 1px solid rgba(253, 216, 53, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.callout-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.callout-icon {
  font-size: 1.3rem;
}

.callout-list {
  list-style: disc;
  padding-left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.callout-list li {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.callout-list strong {
  color: #ffffff;
}

.legal-doc-section {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-doc-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.section-number {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.legal-doc-section h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  scroll-margin-top: 100px;
}

.legal-doc-section p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-doc-section code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--accent);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}

.legal-bullet-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.legal-bullet-list li {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-bullet-list strong {
  color: #ffffff;
}

.legal-numbered-list {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 1.1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-numbered-list li {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-numbered-list strong {
  color: #ffffff;
}

.legal-warning-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #fca5a5;
}

.legal-warning-box strong {
  color: #ffffff;
}

.legal-contact-card {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  margin-top: 1.5rem;
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(253, 216, 53, 0.12);
  border: 1px solid rgba(253, 216, 53, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-card-icon .material-symbols-rounded {
  font-size: 1.75rem;
}

.contact-card-body h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.contact-card-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
  line-height: 1.5;
}

.contact-card-body a {
  color: var(--accent);
  text-decoration: underline;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin: 1.5rem 0 2rem;
  background: rgba(12, 17, 34, 0.6);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.legal-table th {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.legal-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  line-height: 1.55;
  vertical-align: top;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table td strong {
  color: #ffffff;
}

@media (max-width: 992px) {
  .legal-body-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .legal-sidebar {
    position: static;
    max-height: none;
  }

  .legal-hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 640px) {
  .legal-hero-section {
    padding: 3.5rem 0 2rem;
  }

  .legal-hero-title {
    font-size: 1.85rem;
  }

  .legal-tabs-nav {
    flex-direction: column;
    width: 100%;
  }

  .legal-tab-btn {
    width: 100%;
    justify-content: center;
  }

  .legal-contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Candidate Denial Message Card Box & Modal */
.denial-msg-card-box {
  background: rgba(6, 9, 17, 0.65);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--radius-md, 10px);
  padding: 0.85rem 1rem;
}

.denial-msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.denial-msg-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-primary, #ffffff);
}

.denial-modal-card {
  width: 100%;
  max-width: 640px;
  background: #0f172a;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 90vh;
}

.modal-icon-badge.danger {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
}

.modal-icon-badge.cyan {
  background: rgba(6, 182, 212, 0.16);
  color: #22d3ee;
}

.bot-avatar-circle.danger {
  background: linear-gradient(135deg, #ef4444, #991b1b);
}

.toggle-control-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
}

/* Application Inspection Modal */
.inspect-modal-card {
  width: 100%;
  max-width: 760px;
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 90vh;
}

.inspect-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.inspect-candidate-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.inspect-candidate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.inspect-candidate-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.inspect-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.inspect-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.inspect-name-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.inspect-candidate-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.inspect-candidate-sub {
  font-size: 0.82rem;
  color: var(--text-muted, #94a3b8);
}

.inspect-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.inspect-id-badge code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.inspect-pos-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.inspect-date-pill {
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
}

.inspect-review-banner {
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inspect-review-banner.approved {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.inspect-review-banner.denied {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.inspect-review-reason {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  opacity: 0.9;
}

.inspect-qa-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #ffffff;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.inspect-qa-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.inspect-qa-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.inspect-qa-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.inspect-q-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.inspect-q-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f1f5f9;
  flex: 1;
}

.inspect-q-type-badge {
  font-size: 0.7rem;
  color: var(--text-muted, #94a3b8);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
}

.inspect-answer-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  word-break: break-word;
}

.inspect-no-answer {
  font-size: 0.82rem;
  color: var(--text-muted, #94a3b8);
  font-style: italic;
}

.inspect-answer-tag {
  display: inline-block;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  font-size: 0.8rem;
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
}

.inspect-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.inspect-feedback-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.inspect-reason-input {
  width: 100%;
  font-size: 0.85rem;
}

.inspect-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.inspect-loading-state,
.inspect-error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  gap: 0.75rem;
  color: var(--text-muted, #94a3b8);
  font-size: 0.9rem;
}

.inspect-error-state {
  color: #f87171;
}

.inspect-loading-state .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Redesigned Domain & DNS Hub Styles
   ========================================================================== */

/* Active Domain & Network Routing Status Hero */
.domain-hero-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(6, 11, 26, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg, 16px);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(56, 189, 248, 0.08);
  position: relative;
  overflow: hidden;
}

.domain-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #34d399);
}

.domain-hero-main {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.domain-hero-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #34d399;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.domain-ssl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #38bdf8;
}

.domain-hero-url-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.domain-hero-url-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 1.35rem;
  font-weight: 700;
  word-break: break-all;
}

.domain-hero-protocol {
  color: var(--text-muted, #94a3b8);
  font-weight: 500;
  font-size: 1.15rem;
}

.domain-hero-domain {
  color: #ffffff;
  background: linear-gradient(90deg, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.domain-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.domain-network-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.network-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.network-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.network-stat-value {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
}

.network-stat-value.green {
  color: #34d399;
}

.network-stat-value.cyan {
  color: #38bdf8;
}

/* 2-Column Responsive Domain Configuration Grid */
.domain-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 960px) {
  .domain-hub-grid {
    grid-template-columns: 1fr;
  }
}

.domain-config-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg, 16px);
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.domain-config-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

/* Unified Integrated Domain Input Box */
.unified-domain-input-box {
  display: flex;
  align-items: stretch;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md, 10px);
  overflow: hidden;
  transition: all 0.2s ease;
}

.unified-domain-input-box:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.unified-addon {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted, #94a3b8);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.85rem;
  user-select: none;
  white-space: nowrap;
}

.unified-addon.prefix {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.unified-addon.suffix {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: #38bdf8;
  font-weight: 600;
}

.unified-domain-input {
  flex: 1;
  min-width: 0;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #ffffff;
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-weight: 600;
}

.unified-domain-input::placeholder {
  color: rgba(148, 163, 184, 0.45);
}

.domain-input-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.live-preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-preview-pill code {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.button-xs {
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 6px;
}

/* Domain Perks Checklist */
.domain-perks-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted, #94a3b8);
}

/* Custom Domain Actions */
.custom-domain-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Interactive DNS Records Table */
.dns-instruction-box {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md, 10px);
  padding: 1rem 1.15rem;
}

.dns-instruction-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dns-instruction-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #ffffff;
  font-size: 0.86rem;
}

.dns-record-table {
  display: flex;
  flex-direction: column;
  margin-top: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.5);
}

.dns-record-header-row {
  display: grid;
  grid-template-columns: 80px 1.2fr 1.5fr 110px;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.04em;
}

.dns-record-data-row {
  display: grid;
  grid-template-columns: 80px 1.2fr 1.5fr 110px;
  padding: 0.65rem 0.75rem;
  align-items: center;
  font-size: 0.82rem;
  gap: 0.5rem;
}

@media (max-width: 600px) {
  .dns-record-header-row,
  .dns-record-data-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.dns-cell {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
}

.dns-cell code {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}

.dns-type-badge {
  display: inline-block;
  background: rgba(129, 140, 248, 0.18);
  color: #a5b4fc;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.dns-proxy-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}

.dns-mini-copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.dns-mini-copy-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.dns-status-feedback-bar {
  display: flex;
  align-items: center;
}

.dns-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.dns-status-badge.verified {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.dns-status-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.dns-status-badge.unconfigured {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted, #94a3b8);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Step-by-Step DNS Walkthrough Guide */
.domain-guide-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dns-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 840px) {
  .dns-steps-grid {
    grid-template-columns: 1fr;
  }
}

.dns-step-card {
  display: flex;
  gap: 0.85rem;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.step-content strong {
  font-size: 0.88rem;
  color: #f1f5f9;
}

.step-content p {
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.45;
  margin: 0;
}

.step-content code {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* ==============================================================================
   Roles & Logs / Automation Control Hub V2
   ============================================================================== */

.automation-hero-card {
  background: radial-gradient(ellipse at top left, rgba(88, 101, 242, 0.15), rgba(15, 23, 42, 0.95) 75%);
  border: 1px solid rgba(88, 101, 242, 0.28);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.automation-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.automation-hero-left {
  flex: 1 1 500px;
}

.automation-hero-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.automation-hero-badges-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.automation-hero-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0.5rem 0 0.35rem 0;
  letter-spacing: -0.015em;
}

.automation-hero-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.5;
  margin-bottom: 1.15rem;
  max-width: 760px;
}

.automation-hero-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-status-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.hero-status-pill .pill-label {
  color: #64748b;
  font-weight: 500;
}

.hero-status-pill .pill-value.cyan {
  color: #38bdf8;
  font-weight: 600;
}

.hero-status-pill .pill-value.green {
  color: #4ade80;
  font-weight: 600;
}

.hero-status-pill .pill-value.red {
  color: #f87171;
  font-weight: 600;
}

/* Automation 2-Column Responsive Grid */
.automation-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}

.automation-config-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card, #131b2e);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.channel-select-wrap,
.role-select-wrap {
  position: relative;
  width: 100%;
}

.custom-select-styled {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.custom-select-styled:focus {
  border-color: #5865f2;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.25);
}

.custom-select-styled option {
  background: #0f172a;
  color: #f8fafc;
  padding: 0.5rem;
}

/* Channel Test Card Box */
.channel-test-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.channel-test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.channel-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-indicator-dot.green {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.65);
}

.status-indicator-dot.gray {
  background: #64748b;
}

.channel-test-feedback {
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

.channel-test-feedback.success {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.channel-test-feedback.error {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.channel-test-feedback.info {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Bot Permissions Checklist */
.bot-perms-card {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bot-perms-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.perm-chip {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.perm-chip.green {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

/* Role Hierarchy Alert Callout */
.role-hierarchy-callout {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.role-hierarchy-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.role-hierarchy-text {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.role-hierarchy-text strong {
  color: #f59e0b;
}

.role-hierarchy-text p {
  margin: 0.2rem 0 0 0;
}

/* Candidate DM Automation Hub */
.automation-dm-card {
  background: var(--bg-card, #131b2e);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.dm-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.25rem;
}

.dm-template-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.15rem;
}

.dm-template-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.custom-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.88rem;
  color: #f1f5f9;
}

.custom-toggle-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-toggle-slider {
  width: 38px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  position: relative;
  transition: background 0.2s ease;
  display: inline-block;
  flex-shrink: 0;
}

.custom-toggle-slider::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s ease;
}

.custom-toggle-checkbox:checked + .custom-toggle-slider {
  background: #22c55e;
}

.custom-toggle-checkbox:checked + .custom-toggle-slider::before {
  transform: translateX(18px);
}

.dm-var-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.var-chip-label {
  font-size: 0.74rem;
  color: #64748b;
  margin-right: 0.15rem;
}

.tag-btn {
  background: rgba(253, 216, 53, 0.1);
  color: #fdd835;
  border: 1px solid rgba(253, 216, 53, 0.25);
  cursor: pointer;
  border-radius: 5px;
  font-size: 0.74rem;
  padding: 0.18rem 0.5rem;
  font-weight: 500;
  transition: background 0.15s ease, transform 0.1s ease;
}

.tag-btn:hover {
  background: rgba(253, 216, 53, 0.2);
  transform: translateY(-1px);
}

.dm-textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.75rem;
  color: #f8fafc;
  font-size: 0.84rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color 0.18s ease;
}

.dm-textarea:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.btn-reset-dm {
  color: #94a3b8;
  font-size: 0.74rem;
  padding: 0.2rem 0.5rem;
}

.btn-reset-dm:hover {
  color: #f1f5f9;
}

/* Settings Save Action Bar */
.settings-save-action-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==============================================================================
   Staff Server Linking System (Pro Tab & Dedicated Node View)
   ============================================================================== */

.staff-server-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1.25rem;
  position: relative;
  overflow: hidden;
}

.staff-server-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #8b5cf6, #ec4899);
}

.staff-linked-status-card {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 10px;
  padding: 1.15rem;
}

.staff-pending-status-card {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 10px;
  padding: 1.15rem;
}

.staff-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.staff-indicator-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: #f8fafc;
}

.status-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-indicator-dot.green {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

.status-indicator-dot.amber {
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
  animation: pulseAmber 1.8s infinite ease-in-out;
}

@keyframes pulseAmber {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.staff-linked-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
}

.meta-label {
  color: #94a3b8;
}

.meta-val {
  color: #f1f5f9;
}

.meta-code {
  font-family: var(--font-mono, monospace);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.staff-code-card {
  background: rgba(6, 9, 17, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 1rem;
}

.staff-code-label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f59e0b;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.staff-code-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.staff-code-display {
  font-family: var(--font-mono, monospace);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  color: #fef08a;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(254, 240, 138, 0.3);
}

/* Dedicated Secondary Staff Node Dashboard */
.staff-node-hero-card {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.staff-node-hero-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.staff-node-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.staff-node-hero-left {
  flex: 1;
  min-width: 280px;
}

.staff-node-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.9);
  animation: pulseGreen 1.6s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.staff-node-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.staff-node-subtitle {
  color: #94a3b8;
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 650px;
  margin-bottom: 1.25rem;
}

.staff-node-subtitle strong {
  color: #e2e8f0;
}

.staff-node-meta-pills {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.hero-status-pill .pill-label {
  color: #64748b;
  font-weight: 500;
}

.hero-status-pill .pill-value {
  font-weight: 600;
}

.hero-status-pill .pill-value.cyan {
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
}

.hero-status-pill .pill-value.green {
  color: #4ade80;
}

.staff-connection-details-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1rem;
}

.connection-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}

.connection-detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: #94a3b8;
}

.detail-val {
  color: #f8fafc;
}

.detail-code {
  font-family: var(--font-mono, monospace);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: #38bdf8;
  font-size: 0.8rem;
}

.unlink-action-box {
  display: flex;
  flex-direction: column;
}

/* Multi-Server Central Staff Hub Grid & Cards */
.staff-linked-communities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.staff-primary-community-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.staff-primary-community-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.staff-primary-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.staff-primary-avatar-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.staff-primary-title-wrap {
  flex: 1;
  min-width: 0;
}

.staff-primary-name {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.2rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-primary-card-actions {
  margin-top: auto;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.hidden {
  display: none !important;
}

.modal-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: modalScaleIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.modal-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-icon-badge.red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.modal-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0.15rem 0 0 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.15s;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-card-body {
  padding: 1.5rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.modal-card-footer {
  padding: 1rem 1.5rem;
  background: rgba(6, 9, 17, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* =====================================================================
   APPLICANT BLACKLISTS & RESTRICTIONS SYSTEM
   ===================================================================== */

.tab-badge.red,
.nav-tab-badge.red {
  background: rgba(239, 68, 68, 0.22);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
}

.blacklists-hero-card {
  background: radial-gradient(circle at 10% 20%, rgba(239, 68, 68, 0.12), transparent 45%), linear-gradient(135deg, rgba(22, 28, 45, 0.9) 0%, rgba(13, 17, 30, 0.95) 100%);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-xl, 18px);
  padding: 2.2rem 2.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.blacklists-badge-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.live-pulse-badge {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.live-pulse-dot.red {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: pulseDot 2s infinite;
}

.blacklists-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.blacklists-title-row h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.blacklists-title-row .panel-subtitle {
  color: #94a3b8;
  font-size: 0.92rem;
  margin-top: 0.4rem;
  max-width: 650px;
  line-height: 1.55;
}

#btn-open-add-blacklist-modal {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.72rem 1.45rem;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.38);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#btn-open-add-blacklist-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.55);
}

.blacklists-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .blacklists-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blacklists-stats-grid {
    grid-template-columns: 1fr;
  }
}

.blacklists-stats-grid .stat-card {
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.75rem 1.85rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.blacklists-stats-grid .stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.blacklists-stats-grid .stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.blacklists-stats-grid .stat-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.blacklists-stats-grid .stat-icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blacklists-stats-grid .stat-icon-wrap.red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.blacklists-stats-grid .stat-icon-wrap.amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.blacklists-stats-grid .stat-icon-wrap.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.blacklists-stats-grid .stat-icon-wrap.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.blacklists-stats-grid .stat-big-number {
  font-size: 2.6rem;
  font-weight: 800;
  font-family: var(--font-display, "Outfit", sans-serif);
  line-height: 1;
  margin: 0.85rem 0 0.45rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.blacklists-stats-grid .stat-big-number.red-text { color: #f87171; }
.blacklists-stats-grid .stat-big-number.amber-text { color: #fbbf24; }
.blacklists-stats-grid .stat-big-number.purple-text { color: #c084fc; }

.blacklists-stats-grid .stat-subtitle {
  font-size: 0.84rem;
  color: #64748b;
  font-weight: 500;
}

.blacklists-table-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl, 18px);
  padding: 2rem 2.25rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
  margin-bottom: 2.5rem;
}

.blacklists-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.blacklists-toolbar .app-search-input-wrap {
  flex: 1;
  min-width: 280px;
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.65rem 1.1rem;
  gap: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blacklists-toolbar .app-search-input-wrap:focus-within {
  border-color: rgba(253, 216, 53, 0.5);
  box-shadow: 0 0 0 3px rgba(253, 216, 53, 0.12);
}

.blacklists-toolbar .app-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.9rem;
  width: 100%;
}

.blacklists-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  background: rgba(10, 15, 29, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.blacklists-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.blacklists-table th {
  padding: 1.1rem 1.35rem;
  background: rgba(255, 255, 255, 0.025);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blacklists-table td {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  vertical-align: middle;
}

.blacklists-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.blacklists-table tr.row-inactive td {
  opacity: 0.5;
}

/* Empty state for blacklists */
.empty-state-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4.5rem 2rem;
}

.empty-state-icon-wrap.success {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.15);
}

.empty-state-panel h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.empty-state-panel p {
  font-size: 0.92rem;
  color: #94a3b8;
  max-width: 480px;
  line-height: 1.6;
  margin: 0 auto;
}

.bl-user-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bl-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.bl-user-name {
  color: #ffffff;
  display: block;
  font-size: 0.88rem;
}

.bl-user-id {
  font-size: 0.72rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.scope-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.scope-chip.scope-all {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.scope-chip.scope-app {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bl-duration-cell {
  font-size: 0.8rem;
}

.bl-reason-cell {
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.82rem;
  color: #e2e8f0;
}

/* Status Pill: Blacklisted */
.status-pill.status-blacklisted {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 12px;
  font-size: 0.74rem;
}

/* Public Positions Blacklisted State */
.card-blacklisted {
  border-color: rgba(239, 68, 68, 0.45) !important;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, rgba(15, 23, 42, 0.6) 100%) !important;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card-blacklisted:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.7) !important;
}

.pos-icon-blacklisted {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

/* Blacklist Alert Notice Callout & Modal */
.blacklist-alert-modal {
  max-width: 480px;
  width: 95%;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.blacklist-notice-callout {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md, 10px);
  padding: 1.1rem 1.25rem;
}

.blacklist-notice-headline {
  font-size: 1rem;
  line-height: 1.5;
  color: #ffffff;
  margin: 0;
}

.blacklist-notice-headline .highlight-time {
  color: #f87171;
  font-weight: 700;
  text-decoration: underline;
}

.blacklist-notice-headline .highlight-reason,
.blacklist-notice-headline strong {
  color: #fca5a5;
  font-weight: 700;
}

/* Application Page Blacklisted Gate Card */
.portal-gate-card.gate-blacklisted {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.gate-icon-circle.icon-blacklisted {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.gate-message-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  margin: 1rem 0;
}

/* Inspect Modal Blacklist Controls */
.inspect-blacklist-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 6px;
}

.inspect-bl-options {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   Stripe Billing & Subscription Components
   ========================================================================== */

.stripe-checkout-card {
  background: linear-gradient(135deg, rgba(253, 216, 53, 0.05) 0%, rgba(15, 23, 42, 0.75) 100%);
  border: 1px solid rgba(253, 216, 53, 0.28);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stripe-checkout-card:hover {
  border-color: rgba(253, 216, 53, 0.45);
  box-shadow: 0 6px 24px rgba(253, 216, 53, 0.08);
}

.stripe-checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.stripe-title-wrap h4 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.3rem 0;
}

.stripe-tier-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  background: rgba(253, 216, 53, 0.12);
  border: 1px solid rgba(253, 216, 53, 0.35);
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  white-space: nowrap;
}

.stripe-badge-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fdd835;
}

.stripe-badge-period {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
}

.stripe-checkout-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.pro-or-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pro-or-divider::before,
.pro-or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.stripe-portal-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(15, 23, 42, 0.75) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  padding: 1.25rem 1.45rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.stripe-portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.stripe-portal-header h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
}

/* ==========================================================================
   Limited Edition Spooky Halloween Theme & Flying Bats
   ========================================================================== */

.spooky-halloween-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.flying-bat {
  position: absolute;
  filter: drop-shadow(0 0 8px rgba(255, 117, 24, 0.45));
  opacity: 0.9;
  pointer-events: none;
}

.flying-bat .bat-svg {
  width: 100%;
  height: 100%;
}

.flying-bat .wing-l {
  transform-origin: 32px 20px;
  animation: bat-flap-left 0.22s ease-in-out infinite alternate;
}

.flying-bat .wing-r {
  transform-origin: 32px 20px;
  animation: bat-flap-right 0.22s ease-in-out infinite alternate;
}

@keyframes bat-flap-left {
  0% { transform: scaleY(1) rotate(0deg); }
  100% { transform: scaleY(-0.75) rotate(-16deg); }
}

@keyframes bat-flap-right {
  0% { transform: scaleY(1) rotate(0deg); }
  100% { transform: scaleY(-0.75) rotate(16deg); }
}

.bat-1 {
  width: 46px;
  height: 23px;
  top: 10%;
  left: -80px;
  animation: bat-fly-path-1 15s linear infinite;
}

.bat-2 {
  width: 36px;
  height: 18px;
  top: 25%;
  right: -80px;
  animation: bat-fly-path-2 19s linear infinite 2s;
}

.bat-3 {
  width: 54px;
  height: 27px;
  top: 60%;
  left: -80px;
  animation: bat-fly-path-3 17s linear infinite 5s;
}

.bat-4 {
  width: 32px;
  height: 16px;
  top: 42%;
  right: -80px;
  animation: bat-fly-path-4 22s linear infinite 8s;
}

.bat-5 {
  width: 42px;
  height: 21px;
  top: 80%;
  left: -80px;
  animation: bat-fly-path-1 21s linear infinite 12s;
}

@keyframes bat-fly-path-1 {
  0% { transform: translateX(0vw) translateY(0px) scale(0.9); }
  25% { transform: translateX(30vw) translateY(-40px) scale(1.05); }
  50% { transform: translateX(55vw) translateY(25px) scale(0.95); }
  75% { transform: translateX(80vw) translateY(-30px) scale(1.1); }
  100% { transform: translateX(115vw) translateY(10px) scale(1); }
}

@keyframes bat-fly-path-2 {
  0% { transform: translateX(0vw) translateY(0px) scaleX(-1); }
  30% { transform: translateX(-35vw) translateY(35px) scaleX(-1); }
  60% { transform: translateX(-65vw) translateY(-25px) scaleX(-1); }
  100% { transform: translateX(-115vw) translateY(15px) scaleX(-1); }
}

@keyframes bat-fly-path-3 {
  0% { transform: translateX(0vw) translateY(0px); }
  35% { transform: translateX(40vw) translateY(-50px) scale(1.1); }
  70% { transform: translateX(75vw) translateY(30px) scale(0.9); }
  100% { transform: translateX(115vw) translateY(-10px); }
}

@keyframes bat-fly-path-4 {
  0% { transform: translateX(0vw) translateY(0px) scaleX(-1); }
  40% { transform: translateX(-45vw) translateY(-40px) scaleX(-1); }
  80% { transform: translateX(-85vw) translateY(20px) scaleX(-1); }
  100% { transform: translateX(-115vw) translateY(0px) scaleX(-1); }
}

/* Spooky Cobwebs */
.spooky-cobweb {
  position: absolute;
  width: 150px;
  height: 150px;
  opacity: 0.55;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.cobweb-tl {
  top: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0 0 L100 0 C70 30 70 70 0 100 Z' fill='none' stroke='%23ff7518' stroke-width='1' stroke-opacity='0.45'/%3E%3Cpath d='M0 0 L80 0 C55 25 55 55 0 80 Z' fill='none' stroke='%23a855f7' stroke-width='1' stroke-opacity='0.35'/%3E%3Cpath d='M0 0 L60 0 C40 20 40 40 0 60 Z' fill='none' stroke='%23ff7518' stroke-width='1' stroke-opacity='0.4'/%3E%3Cpath d='M0 0 L40 0 C25 15 25 25 0 40 Z' fill='none' stroke='%23a855f7' stroke-width='1' stroke-opacity='0.45'/%3E%3Cline x1='0' y1='0' x2='100' y2='100' stroke='%23ff7518' stroke-width='1' stroke-opacity='0.45'/%3E%3Cline x1='0' y1='0' x2='100' y2='50' stroke='%23a855f7' stroke-width='0.8' stroke-opacity='0.35'/%3E%3Cline x1='0' y1='0' x2='50' y2='100' stroke='%23ff7518' stroke-width='0.8' stroke-opacity='0.35'/%3E%3C/svg%3E");
}

.cobweb-tr {
  top: 0;
  right: 0;
  transform: scaleX(-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0 0 L100 0 C70 30 70 70 0 100 Z' fill='none' stroke='%23ff7518' stroke-width='1' stroke-opacity='0.45'/%3E%3Cpath d='M0 0 L80 0 C55 25 55 55 0 80 Z' fill='none' stroke='%23a855f7' stroke-width='1' stroke-opacity='0.35'/%3E%3Cpath d='M0 0 L60 0 C40 20 40 40 0 60 Z' fill='none' stroke='%23ff7518' stroke-width='1' stroke-opacity='0.4'/%3E%3Cpath d='M0 0 L40 0 C25 15 25 25 0 40 Z' fill='none' stroke='%23a855f7' stroke-width='1' stroke-opacity='0.45'/%3E%3Cline x1='0' y1='0' x2='100' y2='100' stroke='%23ff7518' stroke-width='1' stroke-opacity='0.45'/%3E%3Cline x1='0' y1='0' x2='100' y2='50' stroke='%23a855f7' stroke-width='0.8' stroke-opacity='0.35'/%3E%3Cline x1='0' y1='0' x2='50' y2='100' stroke='%23ff7518' stroke-width='0.8' stroke-opacity='0.35'/%3E%3C/svg%3E");
}

/* Spooky Mist */
.spooky-fog-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: radial-gradient(ellipse at 50% 100%, rgba(168, 85, 247, 0.16) 0%, rgba(255, 117, 24, 0.08) 50%, transparent 80%);
  animation: spooky-mist-pulse 7s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes spooky-mist-pulse {
  0% { opacity: 0.45; transform: scaleY(0.9); }
  100% { opacity: 0.95; transform: scaleY(1.25); }
}

/* Theme Halloween portal skin */
body.theme-halloween {
  background: linear-gradient(180deg, #13061c 0%, #08020d 100%) !important;
  color: #fff6ee !important;
}

body.theme-halloween .panel-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 117, 24, 0.14) !important;
  border-color: rgba(255, 117, 24, 0.3) !important;
}

body.theme-halloween .button-primary {
  background: linear-gradient(135deg, #ff7518, #f97316) !important;
  color: #1a0500 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 18px rgba(255, 117, 24, 0.45) !important;
}

body.theme-halloween .button-primary:hover {
  box-shadow: 0 6px 26px rgba(255, 117, 24, 0.65) !important;
  transform: translateY(-1px);
}

body.theme-halloween .portal-hero-card {
  border-color: rgba(255, 117, 24, 0.4) !important;
  background: linear-gradient(180deg, rgba(32, 13, 44, 0.92) 0%, rgba(17, 6, 25, 0.96) 100%) !important;
}

body.theme-halloween .eyebrow {
  color: #ff7518 !important;
}

.demo-preview-card.demo-halloween-active {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 117, 24, 0.35) !important;
}

/* Language Selector Navbar Dropdown */
.lang-selector-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.lang-selector-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.32rem 0.55rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-selector-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 145px;
  background: rgba(13, 20, 36, 0.98);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  padding: 0.22rem;
  z-index: 1050;
  display: none !important;
  flex-direction: column;
  gap: 0.15rem;
}

.lang-dropdown-menu.show {
  display: flex !important;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.55rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
}

.lang-dropdown-item:hover,
.lang-dropdown-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.lang-dropdown-item.active {
  color: var(--accent, #fdd835);
  font-weight: 600;
}

.lang-dropdown-item .lang-sub {
  font-size: 0.7rem;
  opacity: 0.65;
  margin-left: auto;
}

/* Server Language Grid on Dashboard (Compact Boxes) */
.language-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 0.55rem;
}

.language-card-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.language-card-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.language-card-pill.active {
  background: rgba(253, 216, 53, 0.08);
  border-color: rgba(253, 216, 53, 0.45);
  box-shadow: 0 0 16px rgba(253, 216, 53, 0.1);
}

.language-card-pill .lang-radio {
  display: none;
}

.lang-flag-box {
  font-size: 1.15rem;
  line-height: 1;
}

.lang-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.lang-meta .lang-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lang-meta .lang-native {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.language-card-pill .lang-check-icon {
  opacity: 0;
  color: var(--accent, #fdd835);
  transition: opacity 0.2s ease;
}

.language-card-pill.active .lang-check-icon {
  opacity: 1;
}

.language-sync-footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.35rem;
}

/* ==============================================================================
   Homepage Top Communities Telemetry Showcase
   ============================================================================== */
.top-servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.top-server-card {
  background: var(--surface, rgba(13, 19, 33, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg, 14px);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.top-server-card:hover {
  transform: translateY(-3px);
  border-color: rgba(253, 216, 53, 0.35);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(253, 216, 53, 0.08);
}

.top-server-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.top-server-avatar-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.top-server-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-server-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent, #fdd835);
  background: rgba(253, 216, 53, 0.08);
}

.top-server-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.top-server-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-server-name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-pro-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.top-server-members-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted, #94a3b8);
}

.top-server-members-row .member-icon {
  font-size: 0.95rem;
  color: #38bdf8;
}

.top-server-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.top-server-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.top-server-meta .meta-label {
  color: var(--muted, #94a3b8);
  font-weight: 500;
}

.portal-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent, #fdd835);
  text-decoration: none;
  font-weight: 600;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.portal-badge-link:hover {
  text-decoration: underline;
}

.top-server-footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
}

.btn-server-apply {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  background: var(--accent, #fdd835);
  color: #000000;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-server-apply:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-server-invite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  background: rgba(88, 101, 242, 0.18);
  border: 1px solid rgba(88, 101, 242, 0.4);
  color: #a5b4fc;
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-server-invite:hover {
  background: rgba(88, 101, 242, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

.telemetry-notice-strip {
  margin-top: 1.5rem;
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.telemetry-notice-content {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: var(--muted, #94a3b8);
  line-height: 1.45;
}

.telemetry-notice-content a {
  color: var(--accent, #fdd835);
  text-decoration: underline;
}

/* ==============================================================================
   Admin Fleet Filter Buttons
   ============================================================================== */
.fleet-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted, #94a3b8);
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fleet-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.fleet-filter-btn.active {
  background: rgba(253, 216, 53, 0.12);
  border-color: rgba(253, 216, 53, 0.4);
  color: var(--accent, #fdd835);
}

/* ==============================================================================
   Master Settings Hub & Segmented Sub-Navigation
   ============================================================================== */
.settings-hub-shell {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.settings-segmented-nav {
  display: inline-flex;
  align-items: center;
  background: rgba(13, 19, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  backdrop-filter: blur(12px);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}

.settings-segment-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.settings-segment-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.settings-segment-btn.active {
  color: #0b0f19 !important;
  background: var(--accent, #fdd835) !important;
  box-shadow: 0 2px 10px rgba(253, 216, 53, 0.35);
  font-weight: 700;
}

.settings-segment-btn.active svg {
  stroke: #0b0f19;
}

.settings-subpane {
  display: none;
  animation: fadeInPane 0.2s ease-out forwards;
}

.settings-subpane.active {
  display: block;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Telemetry Glass Hero Card */
.telemetry-hero-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(13, 19, 33, 0.85) 100%);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 14px;
  padding: 1.35rem 1.6rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.telemetry-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.telemetry-hero-info {
  flex: 1;
  min-width: 280px;
}

.telemetry-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.telemetry-title-row h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.telemetry-desc {
  font-size: 0.88rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.55;
  margin: 0.4rem 0 0.5rem;
  max-width: 760px;
}

.telemetry-legal-hint {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
}

.telemetry-legal-hint a {
  color: #22d3ee;
  text-decoration: underline;
}

/* Modern iOS-Style Toggle Switch */
.switch-control-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.apple-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
  margin: 0;
}

.apple-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.apple-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.apple-toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.apple-toggle input:checked + .apple-toggle-slider {
  background-color: #10b981;
  border-color: #34d399;
}

.apple-toggle input:checked + .apple-toggle-slider:before {
  transform: translateX(24px);
}

/* Themes Grid & Rich Preview Cards */
.settings-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.theme-preset-card {
  background: rgba(13, 19, 33, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-preset-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.theme-preset-card.active {
  border-color: var(--accent, #fdd835);
  box-shadow: 0 0 0 1px var(--accent, #fdd835), 0 8px 24px rgba(253, 216, 53, 0.15);
}

.theme-preview-box {
  height: 96px;
  background: var(--card-surface, #0f172a);
  padding: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-swatch-surface {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-swatch-accent {
  width: 45%;
  height: 8px;
  border-radius: 4px;
  background: var(--card-primary, #06b6d4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.theme-swatch-line {
  width: 80%;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
}

.theme-swatch-line-sm {
  width: 60%;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.theme-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
}

.theme-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-card-header strong {
  font-size: 0.95rem;
  color: #ffffff;
}

.theme-desc {
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

.btn-select-theme {
  width: 100%;
  margin-top: 0.5rem;
}

/* 2-Column Bot Persona Layout Grid */
.bot-persona-layout-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .bot-persona-layout-grid {
    grid-template-columns: 1fr;
  }
}

.discord-bot-preview-wrap {
  position: sticky;
  top: 90px;
}

/* ==============================================================================
   Admin License Key Management with Duration & Limit Selectors
   ============================================================================== */
.license-admin-grid {
  display: grid;
  grid-template-columns: minmax(380px, 460px) 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .license-admin-grid {
    grid-template-columns: 1fr;
  }
}

.license-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.license-pill-opt {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.license-pill-opt:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.license-pill-opt.active {
  background: rgba(253, 216, 53, 0.15);
  border-color: #fdd835;
  color: #fdd835;
  box-shadow: 0 0 12px rgba(253, 216, 53, 0.2);
}

.license-pill-opt .hidden-radio {
  display: none !important;
}

.admin-table-container.max-h-450 {
  max-height: 480px;
  overflow-y: auto;
}

.license-uses-pill {
  font-size: 0.82rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}





/* ==========================================================================
   Global Admin Portal Blacklist Management & UI Modernization
   ========================================================================== */

.admin-nav-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
  overflow-x: auto;
}

.admin-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary, #94a3b8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.admin-nav-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.admin-nav-tab.active {
  background: linear-gradient(135deg, rgba(253, 216, 53, 0.18), rgba(245, 158, 11, 0.25));
  color: #fdd835;
  border-color: rgba(253, 216, 53, 0.45);
  box-shadow: 0 4px 15px rgba(253, 216, 53, 0.15);
}

.admin-nav-tab.tab-danger.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(185, 28, 28, 0.25));
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.15);
}

.admin-tab-section {
  display: block;
}

.admin-tab-section.hidden {
  display: none !important;
}

.blacklist-banner-card {
  border-color: rgba(239, 68, 68, 0.35) !important;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(13, 19, 33, 0.95) 100%) !important;
}

.blacklist-pill-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.blacklist-pill-opt:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.blacklist-pill-opt.active {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.55);
  color: #f87171;
}

.badge-bl-user {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-bl-server {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* ==========================================================================
   Server Referral System & Rewards
   ========================================================================== */

.referrals-suite-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 992px) {
  .referrals-suite-grid {
    grid-template-columns: 1fr;
  }
}

.referral-settings-card {
  background: rgba(13, 19, 33, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.4rem;
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.rank-pill.rank-1 {
  background: rgba(253, 216, 53, 0.18);
  color: #fdd835;
  border: 1px solid rgba(253, 216, 53, 0.4);
}

.rank-pill.rank-2 {
  background: rgba(203, 213, 225, 0.18);
  color: #cbd5e1;
  border: 1px solid rgba(203, 213, 225, 0.4);
}

.rank-pill.rank-3 {
  background: rgba(205, 127, 50, 0.18);
  color: #cd7f32;
  border: 1px solid rgba(205, 127, 50, 0.4);
}

.command-pills-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.command-pill-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.command-pill-item code {
  color: #7dd3fc;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-block;
  width: fit-content;
}

.form-referral-card {
  border-left: 3px solid #7dd3fc !important;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.04) 0%, rgba(13, 19, 33, 0.6) 100%) !important;
}

.badge-app-title {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* ==============================================================================
   Application Inspection Modal (Expanded Desktop View)
   ============================================================================== */
.modal-card.inspect-modal-card,
.inspect-modal-card {
  width: min(1140px, 95vw) !important;
  max-width: 1140px !important;
  min-height: 480px;
  max-height: 92vh !important;
  background: #0b1120 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 20px !important;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(99, 102, 241, 0.2) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.modal-card.inspect-modal-card .modal-card-header {
  padding: 1.35rem 2rem !important;
  background: rgba(15, 23, 42, 0.7) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.modal-card.inspect-modal-card .modal-title {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
}

.modal-card.inspect-modal-card .modal-subtitle {
  font-size: 0.88rem !important;
  color: #94a3b8 !important;
}

.modal-card.inspect-modal-card .inspect-modal-body {
  padding: 1.75rem 2rem !important;
  max-height: calc(92vh - 200px) !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
}

.modal-card.inspect-modal-card .inspect-candidate-card {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 14px !important;
  padding: 1.25rem 1.5rem !important;
}

.modal-card.inspect-modal-card .inspect-candidate-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 1.25rem !important;
}

.modal-card.inspect-modal-card .inspect-avatar-img {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px !important;
}

.modal-card.inspect-modal-card .inspect-candidate-name {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
}

.modal-card.inspect-modal-card .inspect-ai-card {
  padding: 1.5rem 1.75rem !important;
  border-radius: 14px !important;
}

.modal-card.inspect-modal-card .inspect-qa-card {
  background: rgba(15, 23, 42, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 1.1rem 1.35rem !important;
}

.modal-card.inspect-modal-card .inspect-modal-footer {
  padding: 1.25rem 2rem !important;
  background: rgba(11, 17, 32, 0.95) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.9rem !important;
}

.modal-card.inspect-modal-card .inspect-reason-input {
  font-size: 0.92rem !important;
  padding: 0.75rem 1rem !important;
  border-radius: 10px !important;
}

.modal-card.inspect-modal-card .inspect-footer-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.75rem !important;
  flex-wrap: wrap !important;
}

.modal-card.inspect-modal-card .inspect-footer-actions .button {
  padding: 0.65rem 1.25rem !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
}

@media (max-width: 768px) {
  .modal-card.inspect-modal-card,
  .inspect-modal-card {
    width: 96vw !important;
    max-width: 96vw !important;
    max-height: 94vh !important;
    border-radius: 16px !important;
  }
  .modal-card.inspect-modal-card .modal-card-header,
  .modal-card.inspect-modal-card .inspect-modal-body,
  .modal-card.inspect-modal-card .inspect-modal-footer {
    padding: 1rem 1.15rem !important;
  }
}
