/* ==========================================================================
   21st.dev Design Tokens & Global Stylesheet
   ========================================================================== */

:root {
  --bg-dark: #080911;
  --bg-card: rgba(17, 17, 29, 0.55);
  --bg-card-hover: rgba(25, 24, 39, 0.75);
  --bg-input: rgba(21, 20, 36, 0.75);
  --border-glass: rgba(179, 160, 237, 0.12);
  --border-focus: rgba(187, 160, 255, 0.6);

  --text-primary: #f3f1fa;
  --text-secondary: #a2a0b5;
  --text-muted: #736f88;
  --text-accent: #bba0ff;

  --theme-accent: #bba0ff;
  --theme-accent-cyan: #60e6f3;
  --discord-blurple: #5865F2;
  --discord-green: #57F287;
  --discord-pink: #EB459E;
  --discord-amber: #F59E0B;

  --discord-bg-chat: #131320;
  --discord-text-normal: #dbdee1;
  --discord-text-muted: #949ba4;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-bento: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Aurora Background */
.ambient-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.grid-pattern-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 100%);
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: float-aurora 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(187, 160, 255, 0.38), rgba(124, 58, 237, 0.15));
  top: -80px;
  left: 0%;
}

.orb-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(96, 230, 243, 0.32), rgba(56, 189, 248, 0.12));
  bottom: 6%;
  right: 4%;
  animation-delay: -6s;
}

.orb-3 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.26), rgba(96, 230, 243, 0.18));
  top: 30%;
  left: 10%;
  animation-delay: -12s;
}

@keyframes float-aurora {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

/* Navbar */
.navbar {
  height: 76px;
  background: rgba(9, 9, 16, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3.5vw, 48px);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(199, 175, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(187, 160, 255, 0.3);
  background: #11111d;
}

.brand-mascot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-icon {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-period {
  color: #60e6f3;
  -webkit-text-fill-color: #60e6f3;
}

.badge-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.glow-tag {
  background: rgba(187, 160, 255, 0.15);
  color: #cbb5ff;
  border: 1px solid rgba(187, 160, 255, 0.35);
}

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

.nav-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill, .metric-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  font-size: 0.8rem;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: ping-dot 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping-dot {
  75%, 100% { transform: scale(2); opacity: 0; }
}

.metric-pill .pill-label {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-muted);
}

.metric-pill .pill-value {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: #38bdf8;
}

.guild-dropdown-container {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-prefix-icon, .dropdown-chevron {
  position: absolute;
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  pointer-events: none;
}
.dropdown-prefix-icon { left: 14px; }
.dropdown-chevron { right: 14px; }

.guild-select {
  appearance: none;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 9px 40px 9px 38px;
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  min-width: 230px;
  transition: all 0.2s ease;
}

.guild-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

/* Layout & Sidebar */
.app-layout {
  display: flex;
  flex: 1;
  position: relative;
  z-index: 10;
}

.sidebar {
  width: 275px;
  background: rgba(11, 13, 24, 0.50);
  border-right: 1px solid rgba(187, 160, 255, 0.18);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 4px 0 30px -4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 20;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-heading {
  font-size: 0.68rem;
  font-weight: 700;
  color: #bba0ff;
  letter-spacing: 0.12em;
  margin: 18px 12px 6px;
  text-transform: uppercase;
  opacity: 0.85;
}

.nav-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-tab-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(to bottom, #bba0ff, #60e6f3);
  opacity: 0;
  transform: scaleY(0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-icon {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.nav-tab-btn:hover {
  background: rgba(187, 160, 255, 0.12);
  color: #ffffff;
  border-color: rgba(187, 160, 255, 0.28);
  transform: translateX(4px);
  box-shadow: 0 4px 16px -3px rgba(187, 160, 255, 0.2);
}

.nav-tab-btn:hover .tab-icon {
  stroke: #ffffff;
  transform: scale(1.08);
}

.nav-tab-btn.active {
  background: linear-gradient(90deg, rgba(187, 160, 255, 0.22) 0%, rgba(96, 230, 243, 0.10) 100%);
  color: #ffffff;
  border-color: rgba(187, 160, 255, 0.45);
  box-shadow: 0 4px 22px -2px rgba(187, 160, 255, 0.3), inset 0 1px 0 0 rgba(255, 255, 255, 0.18);
}

.nav-tab-btn.active::before {
  opacity: 1;
  transform: scaleY(1);
  box-shadow: 0 0 14px #bba0ff, 0 0 6px #60e6f3;
}

.nav-tab-btn.active .tab-icon {
  stroke: #bba0ff;
  filter: drop-shadow(0 0 8px rgba(187, 160, 255, 0.7));
}

.active-badge {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: linear-gradient(135deg, #c6b3ff, #60e6f3);
  color: #120e24;
  box-shadow: 0 0 10px rgba(96, 230, 243, 0.3);
}

.system-status-box {
  background: rgba(17, 18, 32, 0.62);
  border: 1px solid rgba(187, 160, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
}

.status-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.status-mini-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.status-box-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.status-box-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Main Content Workspace */
.main-content {
  flex: 1;
  padding: 32px clamp(24px, 3.5vw, 64px);
  max-width: 100%;
  width: 100%;
  margin: 0;
}

.tab-pane {
  display: none;
  animation: enter-smooth 0.25s ease forwards;
}

.tab-pane.active {
  display: block;
}

@keyframes enter-smooth {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 60%, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-top: 5px;
}

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

/* ==========================================================================
   21st.dev Component Library: Buttons & Interactive Triggers
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: scale(0.97) !important;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.4), 0 0 16px rgba(56, 189, 248, 0.3);
}

.btn-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn:hover .btn-icon {
  transform: scale(1.08);
}

/* 21st.dev Magic UI Shimmer Button */
.btn-shimmer {
  background: linear-gradient(115deg, #c6b3ff, #a99bee 62%, #83dce9);
  color: #191128;
  font-weight: 700;
  border: 1px solid rgba(211, 190, 255, 0.6);
  box-shadow: 0 5px 25px rgba(148, 114, 219, 0.25);
}

.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: shimmer-sweep 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes shimmer-sweep {
  0% { left: -120%; }
  30%, 100% { left: 220%; }
}

.btn-shimmer:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 32px rgba(14, 165, 233, 0.7), 0 0 25px rgba(56, 189, 248, 0.5);
}

/* 21st.dev Magic UI Rainbow Button */
.btn-rainbow {
  position: relative;
  background: #090d16;
  color: #ffffff;
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 4px 20px -2px rgba(99, 102, 241, 0.4);
}

.btn-rainbow::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6, #10b981, #f59e0b, #ec4899);
  background-size: 300% 100%;
  border-radius: calc(var(--radius-md) + 2px);
  z-index: -1;
  animation: rainbow-shift 6s linear infinite;
}

@keyframes rainbow-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.btn-rainbow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.55);
}

/* 21st.dev Frosted Glass Outline Button */
.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 20px -4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.35);
}

/* 21st.dev Dark Secondary Button */
.btn-secondary {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 24px -6px rgba(0, 0, 0, 0.6);
}

/* 21st.dev Cyber Emergency Red Button */
.btn-danger, .btn-panic-lift {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  color: #ffffff;
  border: 1px solid rgba(254, 202, 202, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 24px -2px rgba(239, 68, 68, 0.55);
}

.btn-danger:hover, .btn-panic-lift:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 38px rgba(239, 68, 68, 0.9);
}

/* 21st.dev Neon Emerald Success Button */
.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(167, 243, 208, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 20px -2px rgba(16, 185, 129, 0.5);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 32px rgba(16, 185, 129, 0.75);
}

/* Button Sizes */
.btn-sm {
  padding: 7px 16px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-xs {
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

/* 21st.dev Fluid Pill Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.toggle-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch label {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.toggle-switch label::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #cbd5e1;
  border-radius: 50%;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.toggle-switch input[type="checkbox"]:checked + label {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.toggle-switch input[type="checkbox"]:checked + label::after {
  transform: translateX(22px);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Overview Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-bottom: 34px;
}

.bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(99, 102, 241, 0.3));
}

.card-glass-body {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border-radius: calc(var(--radius-lg) - 1px);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.bento-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.bento-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-icon-wrapper svg {
  width: 18px;
  height: 18px;
}

.icon-blue { background: rgba(56, 189, 248, 0.15); stroke: #38bdf8; }
.icon-green { background: rgba(52, 211, 153, 0.15); stroke: #34d399; }
.icon-purple { background: rgba(168, 85, 247, 0.15); stroke: #c084fc; }
.icon-amber { background: rgba(251, 191, 36, 0.15); stroke: #fbbf24; }

.bento-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

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

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px;
}

.spotlight-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 30px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.spotlight-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 20px 40px -12px rgba(56, 189, 248, 0.2);
}

.spotlight-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin-bottom: 12px;
}

.spotlight-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.spotlight-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 22px;
}

.spotlight-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #38bdf8;
  font-size: 0.88rem;
  font-weight: 600;
}

.spotlight-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.spotlight-card:hover .spotlight-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Two-Column Studio Layout
   ========================================================================== */

.studio-two-col {
  display: grid;
  grid-template-columns: 1fr 620px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1280px) {
  .studio-two-col {
    grid-template-columns: 1fr;
  }
}

.studio-controls-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.panel-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-bento);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
}

.panel-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #030712;
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.panel-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 18px;
}
.form-group:last-child {
  margin-bottom: 0;
}

.form-row {
  margin-bottom: 18px;
}

.form-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.form-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.select-wrapper .form-select {
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.select-chevron {
  position: absolute;
  right: 14px;
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  pointer-events: none;
}

/* Variable Chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.variable-chip {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: var(--radius-full);
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.variable-chip:hover {
  background: rgba(56, 189, 248, 0.24);
  border-color: rgba(56, 189, 248, 0.65);
  color: #ffffff;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.variable-chip:active {
  transform: scale(0.96) !important;
}

/* Glow Switch */
.glow-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}

.glow-switch input { opacity: 0; width: 0; height: 0; }

.switch-track {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
}

.switch-thumb {
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: #94a3b8;
  border-radius: 50%;
  transition: all 0.25s ease;
}

.glow-switch input:checked + .switch-track {
  background: #0284c7;
  border-color: #0284c7;
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.5);
}

.glow-switch input:checked + .switch-track .switch-thumb {
  transform: translateX(22px);
  background-color: #ffffff;
}

/* Bento Input Groups */
.bento-input-group {
  background: rgba(14, 18, 34, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
}

.bento-input-header {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 10px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.color-palette-bar {
  display: flex;
  align-items: center;
  gap: 14px;
}

.color-swatch-input {
  position: relative;
  width: 42px;
  height: 38px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.color-swatch-input input[type="color"] {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 64px;
  height: 60px;
  border: none;
  cursor: pointer;
}

.preset-dots {
  display: flex;
  gap: 9px;
  align-items: center;
}

.preset-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.preset-dot:hover {
  transform: scale(1.22);
  border-color: #ffffff;
  box-shadow: 0 0 16px var(--c), 0 0 4px var(--c);
}

.preset-dot:active {
  transform: scale(1.05);
}

/* ==========================================================================
   PIXEL-PERFECT STARVIS CARD LIVE PREVIEW WIDGET
   ========================================================================== */

.studio-preview-col {
  position: sticky;
  top: 96px;
}

.preview-sticky-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.discord-message-shell {
  background: var(--discord-bg-chat);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.discord-author-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.discord-avatar-round img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
}

.author-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.author-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}

.discord-badge-app {
  background: #5865F2;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.msg-timestamp {
  font-size: 0.75rem;
  color: var(--discord-text-muted);
}

/* The Grand Starvis Card */
/* The Grand Starvis Card (Pixel-Perfect 1000x600 Ratio) */
.starvis-card-container {
  background: #030614;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--theme-accent, #38bdf8);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.22), inset 0 0 30px rgba(56, 189, 248, 0.06);
  padding: 22px 24px 16px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  aspect-ratio: 5 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-ambient-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 25%, rgba(56, 189, 248, 0.25), transparent 60%);
  pointer-events: none;
}

.card-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  margin-bottom: 6px;
}

.card-hero-left {
  flex: 1;
  max-width: 58%;
}

.card-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #60a5fa;
  margin-bottom: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

.eyebrow-star {
  width: 12px;
  height: 12px;
  color: #60a5fa;
  fill: currentColor;
}

.card-title-prefix {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}

.card-title-main {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 40%, var(--theme-accent, #38bdf8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-description-block {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 8px;
}

.mention-pill {
  background: rgba(88, 101, 242, 0.28);
  border: 1px solid rgba(88, 101, 242, 0.55);
  color: #c7d2fe;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.82rem;
  display: inline-block;
}

.card-member-line {
  margin-top: 2px;
  font-size: 0.85rem;
}

.member-badge {
  color: var(--theme-accent, #38bdf8);
  font-weight: 800;
}

.card-divider-line {
  width: 85%;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.35), transparent);
  margin-top: 6px;
}

/* Hero Right: Mascot Artwork & Bubble */
.card-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
  max-width: 42%;
}

.speech-bubble-wrapper {
  margin-bottom: 4px;
}

.speech-bubble {
  background: rgba(6, 10, 30, 0.94);
  border: 1.5px solid rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f8fafc;
  white-space: nowrap;
}

.bubble-sparkle-svg {
  width: 12px;
  height: 12px;
  color: var(--theme-accent, #38bdf8);
  fill: currentColor;
}

.mascot-image-holder {
  width: 230px;
  height: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mascot-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
}

/* 4 Expanded Bento Feature Boxes */
.card-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
  z-index: 2;
  margin-top: 4px;
  margin-bottom: 6px;
}

.bento-box {
  background: rgba(10, 16, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 12px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 115px;
  transition: transform 0.2s ease;
}

.bento-box:hover {
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(12, 20, 44, 0.9);
}

.bento-box-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-box-icon svg {
  width: 16px;
  height: 16px;
}

.bento-box-icon.blue { background: rgba(59, 130, 246, 0.2); border: 1px solid rgba(59, 130, 246, 0.4); stroke: #3b82f6; }
.bento-box-icon.purple { background: rgba(168, 85, 247, 0.2); border: 1px solid rgba(168, 85, 247, 0.4); stroke: #a855f7; }
.bento-box-icon.green { background: rgba(16, 185, 129, 0.2); border: 1px solid rgba(16, 185, 129, 0.4); stroke: #10b981; }
.bento-box-icon.amber { background: rgba(245, 158, 11, 0.2); border: 1px solid rgba(245, 158, 11, 0.4); stroke: #f59e0b; }

.bento-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bento-desc {
  font-size: 0.67rem;
  color: #94a3b8;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer Bar Inside Welcome Card */
.card-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  position: relative;
  z-index: 2;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-star-cyan {
  width: 12px;
  height: 12px;
  color: var(--theme-accent, #38bdf8);
  fill: currentColor;
}

.footer-brand-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #cbd5e1;
}

.footer-divider-pipe {
  color: #475569;
}

.footer-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-user-ico {
  width: 13px;
  height: 13px;
  stroke: #38bdf8;
}

.footer-dot {
  color: #64748b;
}

.footer-right {
  font-size: 0.72rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-clock-ico {
  width: 13px;
  height: 13px;
  stroke: #64748b;
}

/* Real Interactive Discord Buttons (Beneath Card Image) */
.card-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  position: relative;
  z-index: 2;
  margin-top: 14px;
  margin-bottom: 6px;
}

.action-btn {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.action-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-indigo {
  background: #5865f2;
  color: #ffffff;
}

.btn-blue {
  background: #2563eb;
  color: #ffffff;
}

.btn-dark {
  background: #2b2d31;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dbdee1;
}

.ext-arrow {
  color: #94a3b8;
  font-size: 0.8rem;
}

.preview-status-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  padding: 8px;
}

.preview-status-pill svg {
  width: 14px;
  height: 14px;
  stroke: #38bdf8;
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: rgba(12, 16, 30, 0.95);
  border: 1px solid var(--border-glass);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-notification.success {
  border-color: rgba(52, 211, 153, 0.5);
}

.toast-notification.error {
  border-color: rgba(239, 68, 68, 0.5);
}

.font-mono { font-family: var(--font-mono); }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 6px; }
.span-col-2 { grid-column: span 2; }

/* ==========================================================================
   KOYA-STYLE MESSAGE MODE SELECTOR & DISCORD EMBED PREVIEW
   ========================================================================== */

.mode-selector {
  display: flex;
  background: rgba(8, 12, 22, 0.7);
  backdrop-filter: blur(12px);
  padding: 5px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  gap: 6px;
  margin-bottom: 22px;
}

.mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mode-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(14, 165, 233, 0.12) 100%);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.mode-btn:active {
  transform: scale(0.97);
}

.discord-msg-content {
  color: #dbdee1;
  font-size: 0.93rem;
  line-height: 1.45;
  margin-bottom: 10px;
  word-break: break-word;
  white-space: pre-wrap;
}

.discord-embed {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #2b2d31;
  border-radius: 4px;
  border-left: 4px solid var(--theme-accent, #38bdf8);
  padding: 14px 16px;
  margin-top: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease;
}

.discord-embed-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.discord-embed-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.discord-embed-description {
  font-size: 0.86rem;
  color: #dbdee1;
  line-height: 1.45;
  white-space: pre-wrap;
}

.discord-embed-thumb {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  margin-left: 14px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.discord-embed-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.73rem;
  color: #949ba4;
  margin-top: 8px;
}

.discord-embed-footer-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

/* ==========================================================================
   KOYA-STYLE MINIMALIST TRANSPARENT WELCOME CARD STYLES
   ========================================================================== */

.starvis-transparent-card {
  background: transparent;
  padding: 18px 16px 12px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.koya-avatar-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 6px auto 14px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.koya-avatar-glow {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--theme-accent, #38bdf8) 0%, transparent 72%);
  opacity: 0.55;
  pointer-events: none;
}

.koya-avatar-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--theme-accent, #38bdf8);
  box-shadow: 0 0 24px var(--theme-accent, #38bdf8);
  position: relative;
  z-index: 2;
  display: block;
}

.koya-heading {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 25%, var(--theme-accent, #38bdf8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9));
  text-align: center;
  margin-bottom: 4px;
  line-height: 1.15;
}

.koya-username {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.95);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.koya-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  margin-bottom: 12px;
  line-height: 1.35;
}

.koya-divider {
  width: 260px;
  height: 2px;
  margin: 0 auto 8px auto;
  background: linear-gradient(90deg, transparent, var(--theme-accent, #38bdf8), transparent);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.koya-divider-star {
  color: var(--theme-accent, #38bdf8);
  font-size: 11px;
  line-height: 1;
  text-shadow: 0 0 10px var(--theme-accent, #38bdf8);
  background: #313338;
  padding: 0 5px;
}

/* ==========================================================================
   Anti-Nuke Shield & Security Custom Styles
   ========================================================================== */

.panic-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.22), rgba(185, 28, 28, 0.35));
  border: 1px solid rgba(239, 68, 68, 0.6);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.25);
  animation: pulse-panic 3s ease-in-out infinite alternate;
}

@keyframes pulse-panic {
  0% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.2); }
  100% { box-shadow: 0 0 40px rgba(239, 68, 68, 0.45); }
}

.panic-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.panic-pulse-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f87171;
  flex-shrink: 0;
}

.panic-pulse-icon svg {
  width: 24px;
  height: 24px;
}

.panic-banner-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #fca5a5;
  letter-spacing: 0.03em;
}

.panic-banner-desc {
  font-size: 0.85rem;
  color: #fecaca;
  margin-top: 2px;
}

.btn-panic-lift {
  background: #ef4444;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-panic-lift:hover {
  background: #dc2626;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
  transform: translateY(-1px);
}

.status-indicator-badge.live {
  background: rgba(87, 242, 135, 0.18);
  color: #57F287;
  border: 1px solid rgba(87, 242, 135, 0.4);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.feature-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-glass);
}

.feature-toggle-title {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.feature-toggle-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.35;
}

.thresholds-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.threshold-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.threshold-item:hover {
  background: rgba(255, 255, 255, 0.045);
}

.threshold-name {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.threshold-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--theme-accent);
}

.threshold-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.threshold-val, .threshold-window {
  width: 54px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  padding: 4px 6px;
}

.threshold-val:focus, .threshold-window:focus {
  border-color: var(--border-focus);
  outline: none;
}

.threshold-slash {
  color: var(--text-muted);
  font-weight: 700;
}

.threshold-unit {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.tripwire-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: #fde68a;
  line-height: 1.4;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.1);
}

.tripwire-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #f59e0b;
}

/* 21st.dev Glass Card System */
.card-glass {
  background: rgba(11, 15, 28, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.card-glass:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 16px 45px -10px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-glass);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}

/* Bento Metrics Grid in Anti-Nuke */
.bento-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

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

.bento-title {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.bento-value-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

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

/* Form Layout Grids */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

/* Chip & Tag Pill System */
.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 52px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.chip-empty {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: auto;
}

.chip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.chip-item:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

.chip-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  transition: transform 0.15s ease;
}

.chip-remove:hover {
  transform: scale(1.2);
}

/* 21st.dev Glass Table */
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.dashboard-table th {
  padding: 10px 14px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-glass);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.dashboard-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.dashboard-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
}

/* 21st.dev Backdrop Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  width: 100%;
  background: #090e1d !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: modal-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
  0% { transform: scale(0.96) translateY(8px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 16px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Security Audit Finding Cards */
.finding-card {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.finding-card:hover {
  transform: translateX(3px);
}

.finding-card.severity-CRITICAL {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.09);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}

.finding-card.severity-WARNING {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.09);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12);
}

.finding-card.severity-INFO {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.09);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.12);
}

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

.finding-type {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.finding-desc {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.finding-hint {
  font-size: 0.76rem;
  color: #38bdf8;
  margin-top: 8px;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  display: inline-block;
}

/* Scam & Image Shield */
.shield-bento-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shield-settings-grid { grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr); align-items: start; }
.shield-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.shield-toggle-row { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border: 1px solid var(--border-glass); border-radius: var(--radius-md); background: rgba(2, 10, 25, 0.44); cursor: pointer; }
.shield-toggle-row strong, .form-field > span { display: block; color: var(--text-primary); font-size: .88rem; }
.shield-toggle-row small, .form-field small, .field-hint { display: block; margin-top: 5px; color: var(--text-muted); font-size: .74rem; line-height: 1.35; }
.shield-toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track { position: relative; width: 42px; height: 24px; flex: 0 0 42px; background: #334155; border-radius: 99px; transition: .2s; }
.toggle-track::after { content: ''; position: absolute; height: 18px; width: 18px; top: 3px; left: 3px; border-radius: 50%; background: #e2e8f0; transition: .2s; }
.shield-toggle-row input:checked + .toggle-track { background: #0891b2; box-shadow: 0 0 18px rgba(34, 211, 238, .35); }
.shield-toggle-row input:checked + .toggle-track::after { transform: translateX(18px); background: white; }
.form-field { display: block; padding: 2px 0; }
.form-field .form-input { width: 100%; margin-top: 8px; }
.shield-policy-footer, .shield-test-actions { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-glass); }
.shield-test-text { display: block; width: 100%; min-height: 160px; resize: vertical; line-height: 1.5; }
.shield-test-result { min-height: 78px; margin-top: 18px; padding: 14px; border: 1px solid rgba(34,211,238,.24); border-radius: var(--radius-md); background: rgba(8, 47, 73, .16); color: var(--text-secondary); font-size: .82rem; line-height: 1.55; }
.shield-test-result strong { color: #67e8f9; }
.shield-test-result ul { margin: 8px 0 0 20px; }
.status-indicator-badge.dry-run { background: rgba(245, 158, 11, .14); border-color: rgba(245, 158, 11, .38); color: #fbbf24; }
.shield-event-scam td:nth-child(3) { color: #fb7185; font-weight: 800; }
.shield-event-review td:nth-child(3) { color: #fbbf24; font-weight: 800; }

@media (max-width: 1180px) {
  .shield-bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shield-settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .shield-bento-grid, .shield-form-grid { grid-template-columns: 1fr; }
  .shield-policy-footer, .shield-test-actions { align-items: stretch; flex-direction: column; }
}

