/*
 * Seoffix Desk v5.2 — Neon Rose + Electric Indigo/Purple Glassmorphism Design System
 * Official Seoffix Tech Lab visual language (exact mirror of Seoffix YT Suite v9.1)
 * Supports Dark (html.dark) & Light (html:not(.dark)) themes — ZERO yellow/amber, ZERO flat #1C64F2
 */

/* ============================================================================
 * 1. Master Design Tokens (Dark Midnight Indigo-Rose & Light Frosted Rose-Ice)
 * ============================================================================ */
:root,
html.dark,
[data-theme="dark"] {
  /* Core Canvas & Frosted Glass Surfaces */
  --sfx-bg-floor: #0D1024;
  --sfx-bg-rail: rgba(18, 22, 44, 0.86);
  --sfx-bg-sidebar: rgba(18, 22, 44, 0.86);
  --sfx-bg-panel: rgba(24, 30, 58, 0.74);
  --sfx-bg-card: rgba(24, 30, 58, 0.72);
  --sfx-surface-floor: #0D1024;
  --sfx-surface-side: rgba(18, 22, 44, 0.86);
  --sfx-surface-inset: rgba(14, 18, 38, 0.84);
  --sfx-surface-card: rgba(24, 30, 58, 0.72);
  --sfx-surface-panel: rgba(24, 30, 58, 0.74);
  --sfx-surface-sheet: rgba(31, 38, 74, 0.84);
  --sfx-surface-raised: rgba(44, 52, 98, 0.82);

  /* Luminous Ambient Radial Halos (Rose #F72585 + Indigo #6366F1 + Violet #8B5CF6) */
  --sfx-canvas-ambient:
    radial-gradient(ellipse 58% 48% at 10% 8%, rgba(99, 102, 241, 0.26), transparent 62%),
    radial-gradient(ellipse 52% 46% at 90% 10%, rgba(247, 37, 133, 0.23), transparent 58%),
    radial-gradient(ellipse 56% 42% at 50% 96%, rgba(139, 92, 246, 0.20), transparent 64%);

  /* High-Contrast Studio Typography */
  --sfx-text-primary: #F8FAFC;
  --sfx-text-soft: #EDE9FE;
  --sfx-text-body: #CBD5E1;
  --sfx-text-muted: #94A3B8;
  --sfx-text-dim: #7C88A8;

  /* Neon Rose + Electric Indigo / Violet / Emerald Accents (Zero Yellow/Amber) */
  --sfx-accent-rose: #F72585;
  --sfx-accent-rose-bright: #FF6B9D;
  --sfx-accent-rose-deep: #B7094C;
  --sfx-accent-indigo: #6366F1;
  --sfx-accent-indigo-bright: #818CF8;
  --sfx-accent-violet: #A855F7;
  --sfx-accent-lavender: #C084FC;
  --sfx-accent-emerald: #4ADE80;
  --sfx-accent-red: #FB7185;

  /* Dual-Color Neon Glass Hairlines & Luminous Tints */
  --sfx-line-hairline: rgba(247, 37, 133, 0.22);
  --sfx-line-indigo: rgba(99, 102, 241, 0.28);
  --sfx-line-strong: rgba(247, 37, 133, 0.36);
  --sfx-line-focus: rgba(247, 37, 133, 0.58);
  --sfx-fill-rose-soft: rgba(247, 37, 133, 0.16);
  --sfx-fill-indigo-soft: rgba(99, 102, 241, 0.18);
  --sfx-fill-violet-soft: rgba(168, 85, 247, 0.18);
  --sfx-fill-emerald-soft: rgba(16, 185, 129, 0.16);
  --sfx-fill-red-soft: rgba(244, 63, 94, 0.16);
  --sfx-scroll: rgba(247, 37, 133, 0.36);

  /* Brand Gradients, Glows & Frosted Glass Elevation */
  --sfx-brand-grad: linear-gradient(135deg, #B7094C 0%, #F72585 52%, #7C3AED 100%);
  --sfx-brand-glow:
    0 8px 24px -4px rgba(247, 37, 133, 0.44),
    0 0 18px rgba(139, 92, 246, 0.32),
    0 2px 6px rgba(13, 16, 36, 0.55);
  --sfx-card-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 20px -4px rgba(7, 10, 25, 0.62),
    0 0 16px -6px rgba(99, 102, 241, 0.18);
  --sfx-card-shadow-hover:
    inset 0 1px 0 rgba(255, 107, 157, 0.28),
    0 0 22px rgba(247, 37, 133, 0.18),
    0 0 18px rgba(99, 102, 241, 0.15),
    0 14px 32px -10px rgba(7, 10, 25, 0.74);
  --sfx-hero-mesh:
    radial-gradient(circle at 12% 16%, rgba(99, 102, 241, 0.28), transparent 48%),
    radial-gradient(circle at 88% 14%, rgba(247, 37, 133, 0.26), transparent 46%),
    radial-gradient(circle at 52% 95%, rgba(168, 85, 247, 0.20), transparent 52%),
    linear-gradient(135deg, rgba(20, 25, 52, 0.86) 0%, rgba(26, 30, 62, 0.82) 52%, rgba(30, 24, 58, 0.86) 100%);
}

html:not(.dark),
[data-theme="light"] {
  /* Airy Rose-Ice Canvas & Frosted White Glassmorphism */
  --sfx-bg-floor: #FDF2F8;
  --sfx-bg-rail: rgba(255, 255, 255, 0.84);
  --sfx-bg-sidebar: rgba(255, 255, 255, 0.84);
  --sfx-bg-panel: rgba(255, 255, 255, 0.86);
  --sfx-bg-card: rgba(255, 255, 255, 0.86);
  --sfx-surface-floor: #FDF2F8;
  --sfx-surface-side: rgba(255, 255, 255, 0.84);
  --sfx-surface-inset: rgba(252, 238, 245, 0.88);
  --sfx-surface-card: rgba(255, 255, 255, 0.86);
  --sfx-surface-panel: rgba(255, 247, 251, 0.90);
  --sfx-surface-sheet: rgba(253, 240, 247, 0.94);
  --sfx-surface-raised: rgba(253, 232, 243, 0.92);

  /* Soft Rose + Lavender + Indigo Ambient Halos */
  --sfx-canvas-ambient:
    radial-gradient(ellipse 58% 46% at 10% 8%, rgba(99, 102, 241, 0.12), transparent 60%),
    radial-gradient(ellipse 52% 46% at 92% 10%, rgba(247, 37, 133, 0.13), transparent 58%),
    radial-gradient(ellipse 56% 42% at 50% 96%, rgba(168, 85, 247, 0.10), transparent 62%);

  /* WCAG AAA Deep Indigo-Navy Typography */
  --sfx-text-primary: #1E1B4B;
  --sfx-text-soft: #2E1065;
  --sfx-text-body: #334155;
  --sfx-text-muted: #475569;
  --sfx-text-dim: #64748B;

  /* Vivid Rose Primary + Royal Indigo & Electric Violet Accents (Zero Yellow) */
  --sfx-accent-rose: #C9184A;
  --sfx-accent-rose-bright: #F72585;
  --sfx-accent-rose-deep: #B7094C;
  --sfx-accent-indigo: #4F46E5;
  --sfx-accent-indigo-bright: #6366F1;
  --sfx-accent-violet: #7C3AED;
  --sfx-accent-lavender: #9333EA;
  --sfx-accent-emerald: #059669;
  --sfx-accent-red: #DC2626;

  /* Luminous Rose-Indigo Borders & Soft Glass Tints */
  --sfx-line-hairline: rgba(201, 24, 74, 0.18);
  --sfx-line-indigo: rgba(79, 70, 229, 0.22);
  --sfx-line-strong: rgba(201, 24, 74, 0.30);
  --sfx-line-focus: rgba(201, 24, 74, 0.56);
  --sfx-fill-rose-soft: rgba(247, 37, 133, 0.11);
  --sfx-fill-indigo-soft: rgba(79, 70, 229, 0.11);
  --sfx-fill-violet-soft: rgba(124, 58, 237, 0.12);
  --sfx-fill-emerald-soft: rgba(5, 150, 105, 0.11);
  --sfx-fill-red-soft: rgba(220, 38, 38, 0.11);
  --sfx-scroll: rgba(201, 24, 74, 0.30);

  /* Brand Gradients, Glows & Elevated Frosted Shadows */
  --sfx-brand-grad: linear-gradient(135deg, #B7094C 0%, #C9184A 58%, #7C3AED 100%);
  --sfx-brand-glow:
    0 8px 22px -5px rgba(247, 37, 133, 0.34),
    0 3px 10px -2px rgba(79, 70, 229, 0.20);
  --sfx-card-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 4px 18px -6px rgba(183, 9, 76, 0.10),
    0 8px 24px -12px rgba(79, 70, 229, 0.12);
  --sfx-card-shadow-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 20px rgba(247, 37, 133, 0.14),
    0 12px 28px -10px rgba(79, 70, 229, 0.18);
  --sfx-hero-mesh:
    radial-gradient(circle at 12% 16%, rgba(79, 70, 229, 0.11), transparent 48%),
    radial-gradient(circle at 88% 12%, rgba(247, 37, 133, 0.13), transparent 46%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(253, 242, 248, 0.90) 55%, rgba(245, 243, 255, 0.92) 100%);
}

/* ============================================================================
 * 2. Luminous Radial Backdrop Canvas & Neon Scrollbars
 * ============================================================================ */
html,
body {
  background-color: var(--sfx-bg-floor) !important;
  background-image: var(--sfx-canvas-ambient) !important;
  background-attachment: fixed !important;
  color: var(--sfx-text-primary);
}

main,
#view-grid,
#view-studio,
#view-auditor,
#view-crawler,
#view-batch,
#view-projects,
#view-crawler > div:first-child {
  background-color: transparent !important;
  background-image: none;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track,
html.dark ::-webkit-scrollbar-track {
  background: transparent !important;
}

::-webkit-scrollbar-thumb,
html.dark ::-webkit-scrollbar-thumb {
  background: var(--sfx-scroll) !important;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover,
html.dark ::-webkit-scrollbar-thumb:hover {
  background: var(--sfx-accent-rose) !important;
}

/* ============================================================================
 * 3. Continuous Passing Diagonal Logo Lightning Shimmer (YT Suite v9.1 Exact)
 * ============================================================================ */
@keyframes sfx-lightning-sweep {
  0% {
    transform: translateX(-130%) skewX(-24deg);
    opacity: 0;
  }
  8% {
    opacity: 0.98;
  }
  64% {
    opacity: 0.98;
  }
  72% {
    transform: translateX(230%) skewX(-24deg);
    opacity: 0;
  }
  100% {
    transform: translateX(230%) skewX(-24deg);
    opacity: 0;
  }
}

@keyframes sfx-logo-glow-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(247, 37, 133, 0.30),
      0 0 14px rgba(247, 37, 133, 0.22),
      0 0 18px rgba(34, 211, 238, 0.14);
  }
  45% {
    box-shadow:
      0 0 0 1px rgba(34, 211, 238, 0.56),
      0 0 22px rgba(247, 37, 133, 0.42),
      0 0 24px rgba(34, 211, 238, 0.32);
  }
}

.sfx-logo-lightning-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  isolation: isolate;
  animation: sfx-logo-glow-pulse 2.2s ease-in-out infinite !important;
}

.sfx-logo-lightning-wrap img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 10px rgba(247, 37, 133, 0.38)) drop-shadow(0 0 14px rgba(34, 211, 238, 0.24));
}

.sfx-logo-lightning-wrap img.hidden,
html.dark .sfx-logo-lightning-wrap img.dark\:hidden {
  display: none !important;
}

html.dark .sfx-logo-lightning-wrap img.dark\:block {
  display: block !important;
}

html:not(.dark) .sfx-logo-lightning-wrap img {
  filter: drop-shadow(0 2px 8px rgba(183, 9, 76, 0.24)) drop-shadow(0 0 10px rgba(34, 211, 238, 0.18));
}

.sfx-logo-lightning-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  top: -30%;
  bottom: -30%;
  width: 52%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(34, 211, 238, 0.55) 24%,
    rgba(255, 255, 255, 0.96) 50%,
    rgba(247, 37, 133, 0.62) 76%,
    transparent 100%
  );
  animation: sfx-lightning-sweep 2.2s cubic-bezier(0.35, 0, 0.25, 1) infinite !important;
  will-change: transform, opacity;
}

html:not(.dark) .sfx-logo-lightning-wrap::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(6, 182, 212, 0.55) 22%,
    rgba(255, 255, 255, 0.98) 50%,
    rgba(247, 37, 133, 0.62) 78%,
    transparent 100%
  );
}

/* ============================================================================
 * 4. PDF-Suite-Tools Inspired Glowing Frosted Pill Searchbar & Typing Caret
 * ============================================================================ */
@keyframes sfx-pdf-lightning-rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes sfx-pdf-radar-wave {
  0% {
    transform: scale(0.65);
    opacity: 0.85;
  }
  100% {
    transform: scale(2.05);
    opacity: 0;
  }
}

@keyframes sfx-caret-blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

.sfx-pdf-searchbar-shell {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 9999px;
  padding: 2px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 0 22px rgba(247, 37, 133, 0.24),
    0 0 18px rgba(34, 211, 238, 0.16),
    0 0 16px rgba(99, 102, 241, 0.18);
}

html:not(.dark) .sfx-pdf-searchbar-shell {
  box-shadow:
    0 4px 20px -4px rgba(201, 24, 74, 0.26),
    0 0 16px rgba(6, 182, 212, 0.18),
    0 4px 14px -4px rgba(79, 70, 229, 0.20);
}

.sfx-pdf-searchbar-shell::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 440%;
  height: 440%;
  z-index: 0;
  background: conic-gradient(
    from 0deg,
    rgba(99, 102, 241, 0.22) 0deg 185deg,
    rgba(247, 37, 133, 0.35) 210deg,
    #F72585 245deg,
    #22D3EE 282deg,
    #FFFFFF 312deg,
    #6366F1 338deg,
    rgba(99, 102, 241, 0.22) 360deg
  );
  animation: sfx-pdf-lightning-rotate 2.8s linear infinite !important;
  pointer-events: none;
  will-change: transform;
}

html:not(.dark) .sfx-pdf-searchbar-shell::before {
  background: conic-gradient(
    from 0deg,
    rgba(79, 70, 229, 0.18) 0deg 175deg,
    rgba(225, 29, 98, 0.42) 205deg,
    #E11D62 242deg,
    #06B6D4 280deg,
    #FFFFFF 308deg,
    #4F46E5 338deg,
    rgba(79, 70, 229, 0.18) 360deg
  );
}

.sfx-pdf-searchbar-shell > .sfx-pdf-searchbar {
  border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

html:not(.dark) .sfx-pdf-searchbar-shell > .sfx-pdf-searchbar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(253, 242, 248, 0.95)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
}

.sfx-pdf-searchbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 42px;
  padding: 0.25rem 0.65rem 0.25rem 0.45rem;
  border-radius: 9999px !important;
  background:
    linear-gradient(135deg, rgba(20, 25, 52, 0.88), rgba(28, 32, 66, 0.84)) padding-box,
    linear-gradient(120deg, rgba(247, 37, 133, 0.58), rgba(99, 102, 241, 0.54), rgba(168, 85, 247, 0.52)) border-box !important;
  border: 1.5px solid transparent !important;
  color: var(--sfx-text-primary);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 0 20px rgba(247, 37, 133, 0.16),
    0 0 16px rgba(99, 102, 241, 0.14);
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.sfx-pdf-searchbar:hover,
.sfx-pdf-searchbar:focus-within {
  outline: none;
  background:
    linear-gradient(135deg, rgba(24, 30, 62, 0.94), rgba(34, 38, 76, 0.92)) padding-box,
    linear-gradient(120deg, #F72585, #A855F7, #6366F1) border-box !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 3px rgba(247, 37, 133, 0.20),
    0 0 26px rgba(247, 37, 133, 0.28),
    0 0 22px rgba(99, 102, 241, 0.24);
}

html:not(.dark) .sfx-pdf-searchbar {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(253, 242, 248, 0.92)) padding-box,
    linear-gradient(120deg, rgba(201, 24, 74, 0.42), rgba(79, 70, 229, 0.36), rgba(124, 58, 237, 0.38)) border-box !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 6px 20px -6px rgba(201, 24, 74, 0.16),
    0 4px 14px -6px rgba(79, 70, 229, 0.14);
}

html:not(.dark) .sfx-pdf-searchbar:hover,
html:not(.dark) .sfx-pdf-searchbar:focus-within {
  background:
    linear-gradient(135deg, #FFFFFF, #FFF7FB) padding-box,
    linear-gradient(120deg, #C9184A, #F72585, #4F46E5) border-box !important;
  box-shadow:
    0 0 0 3px rgba(247, 37, 133, 0.16),
    0 10px 24px -6px rgba(201, 24, 74, 0.22),
    0 4px 14px -4px rgba(79, 70, 229, 0.18);
}

.sfx-pdf-searchbar input#desktop-search,
input#desktop-search.sfx-pdf-search-input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--sfx-text-primary) !important;
  caret-color: var(--sfx-accent-rose);
}

.sfx-pdf-searchbar input#desktop-search::placeholder {
  color: var(--sfx-text-body) !important;
  opacity: 0.85;
}

html:not(.dark) .sfx-pdf-searchbar input#desktop-search::placeholder {
  color: var(--sfx-text-muted) !important;
  opacity: 0.92;
}

.sfx-pdf-scanner-pod {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(247, 37, 133, 0.22), rgba(99, 102, 241, 0.22));
  border: 1px solid rgba(247, 37, 133, 0.42);
  color: #FF6B9D;
  box-shadow: 0 0 12px rgba(247, 37, 133, 0.26);
}

html:not(.dark) .sfx-pdf-scanner-pod {
  background: linear-gradient(135deg, rgba(247, 37, 133, 0.12), rgba(79, 70, 229, 0.12));
  border-color: rgba(201, 24, 74, 0.28);
  color: #C9184A;
  box-shadow: 0 2px 8px rgba(201, 24, 74, 0.14);
}

.sfx-pdf-radar-ring {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  border: 1.5px solid rgba(247, 37, 133, 0.62);
  animation: sfx-pdf-radar-wave 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.sfx-typing-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.14em;
  border-radius: 2px;
  background: #F72585;
  box-shadow: 0 0 8px rgba(247, 37, 133, 0.85);
  animation: sfx-caret-blink 0.9s steps(1, end) infinite;
  pointer-events: none;
}

html:not(.dark) .sfx-typing-caret {
  background: #C9184A;
  box-shadow: 0 0 6px rgba(201, 24, 74, 0.45);
}

.sfx-pdf-searchbar.sfx-search-paused .sfx-typing-caret {
  opacity: 0 !important;
  animation: none !important;
}

.sfx-pdf-kbd,
.sfx-kbd-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
  color: #FF6B9D !important;
  background: linear-gradient(135deg, rgba(247, 37, 133, 0.18), rgba(99, 102, 241, 0.20)) !important;
  border: 1px solid rgba(247, 37, 133, 0.38) !important;
  box-shadow: 0 0 10px rgba(247, 37, 133, 0.14);
}

html:not(.dark) .sfx-pdf-kbd,
html:not(.dark) .sfx-kbd-chip {
  color: #B7094C !important;
  background: linear-gradient(135deg, rgba(247, 37, 133, 0.10), rgba(79, 70, 229, 0.10)) !important;
  border-color: rgba(201, 24, 74, 0.28) !important;
  box-shadow: 0 2px 6px rgba(201, 24, 74, 0.10);
}

/* ============================================================================
 * 5. Neon Glass Icon Wells (Rose, Indigo, Violet, Emerald — Zero Yellow)
 * ============================================================================ */
.sfx-neon-icon-well {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(145deg, rgba(247, 37, 133, 0.22), rgba(99, 102, 241, 0.18)) !important;
  border: 1px solid rgba(247, 37, 133, 0.40) !important;
  color: #FF6B9D !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 14px rgba(247, 37, 133, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.sfx-neon-icon-well.hidden,
html.dark .sfx-neon-icon-well.dark\:hidden {
  display: none !important;
}

html.dark .sfx-neon-icon-well.dark\:inline-flex {
  display: inline-flex !important;
}

html.dark .sfx-neon-icon-well.dark\:flex {
  display: flex !important;
}

.sfx-neon-icon-well i,
.sfx-neon-icon-well svg {
  color: inherit !important;
}

.sfx-neon-icon-well:hover,
.group:hover .sfx-neon-icon-well {
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 18px rgba(247, 37, 133, 0.34),
    0 0 14px rgba(99, 102, 241, 0.24);
}

.sfx-nav-icon-well {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 12px;
}

.sfx-neon-icon-well-rose,
.sfx-neon-icon-well.rose {
  background: linear-gradient(145deg, rgba(247, 37, 133, 0.25), rgba(183, 9, 76, 0.20)) !important;
  border-color: rgba(247, 37, 133, 0.46) !important;
  color: #FF6B9D !important;
  box-shadow: inset 0 1px 0 rgba(255, 200, 222, 0.26), 0 0 15px rgba(247, 37, 133, 0.26);
}

.sfx-neon-icon-well-indigo,
.sfx-neon-icon-well.indigo {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.26), rgba(79, 70, 229, 0.18)) !important;
  border-color: rgba(129, 140, 248, 0.46) !important;
  color: #A5B4FC !important;
  box-shadow: inset 0 1px 0 rgba(224, 231, 255, 0.26), 0 0 15px rgba(99, 102, 241, 0.26);
}

.sfx-neon-icon-well-violet,
.sfx-neon-icon-well.violet {
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.26), rgba(124, 58, 237, 0.18)) !important;
  border-color: rgba(192, 132, 252, 0.46) !important;
  color: #D8B4FE !important;
  box-shadow: inset 0 1px 0 rgba(243, 232, 255, 0.26), 0 0 15px rgba(168, 85, 247, 0.26);
}

.sfx-neon-icon-well-emerald,
.sfx-neon-icon-well.emerald {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.24), rgba(5, 150, 105, 0.16)) !important;
  border-color: rgba(74, 222, 128, 0.42) !important;
  color: #4ADE80 !important;
  box-shadow: inset 0 1px 0 rgba(209, 250, 229, 0.24), 0 0 15px rgba(16, 185, 129, 0.22);
}

html:not(.dark) .sfx-neon-icon-well,
html:not(.dark) .sfx-neon-icon-well-rose,
html:not(.dark) .sfx-neon-icon-well.rose {
  background: linear-gradient(145deg, rgba(247, 37, 133, 0.14), rgba(255, 255, 255, 0.90)) !important;
  border-color: rgba(201, 24, 74, 0.30) !important;
  color: #C9184A !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 4px 12px -4px rgba(201, 24, 74, 0.20);
}

html:not(.dark) .sfx-neon-icon-well-indigo,
html:not(.dark) .sfx-neon-icon-well.indigo {
  background: linear-gradient(145deg, rgba(79, 70, 229, 0.14), rgba(255, 255, 255, 0.90)) !important;
  border-color: rgba(79, 70, 229, 0.30) !important;
  color: #4F46E5 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 4px 12px -4px rgba(79, 70, 229, 0.20);
}

html:not(.dark) .sfx-neon-icon-well-violet,
html:not(.dark) .sfx-neon-icon-well.violet {
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.14), rgba(255, 255, 255, 0.90)) !important;
  border-color: rgba(124, 58, 237, 0.30) !important;
  color: #7C3AED !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 4px 12px -4px rgba(124, 58, 237, 0.20);
}

html:not(.dark) .sfx-neon-icon-well-emerald,
html:not(.dark) .sfx-neon-icon-well.emerald {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.14), rgba(255, 255, 255, 0.90)) !important;
  border-color: rgba(5, 150, 105, 0.30) !important;
  color: #059669 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 4px 12px -4px rgba(5, 150, 105, 0.18);
}

/* ============================================================================
 * 6. Frosted Chrome Shells: Header, Sidebar & Active Navigation
 * ============================================================================ */
header {
  background: var(--sfx-bg-rail) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--sfx-line-hairline) !important;
  box-shadow: 0 4px 24px -10px rgba(247, 37, 133, 0.14), 0 2px 14px -8px rgba(99, 102, 241, 0.12);
}

aside {
  background: var(--sfx-bg-rail) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--sfx-line-hairline) !important;
  box-shadow: 1px 0 24px rgba(247, 37, 133, 0.08), 1px 0 18px rgba(99, 102, 241, 0.08);
}

aside > div:last-child {
  background: var(--sfx-surface-inset) !important;
  border-top: 1px solid var(--sfx-line-hairline) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Commercial Edition bottom sidebar glass card */
aside button[onclick*="openProfileModal('license')"] {
  background: var(--sfx-hero-mesh) !important;
  border: 1px solid var(--sfx-line-strong) !important;
  box-shadow: var(--sfx-card-shadow);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

aside button[onclick*="openProfileModal('license')"]:hover {
  border-color: var(--sfx-line-focus) !important;
  box-shadow: var(--sfx-card-shadow-hover);
  transform: translateY(-1px);
}

/* Sidebar Quick Nav & 16 Productivity Suite Rows */
.cat-nav-btn {
  border: 1px solid transparent;
  border-radius: 10px !important;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.cat-nav-btn:hover:not(.bg-brandBlue):not(.sfx-active) {
  background: var(--sfx-fill-rose-soft) !important;
  border-color: var(--sfx-line-hairline) !important;
  color: var(--sfx-text-primary) !important;
}

.sfx-suite-accent {
  background: linear-gradient(180deg, #F72585 0%, #A855F7 55%, #6366F1 100%) !important;
  box-shadow: 0 0 10px rgba(247, 37, 133, 0.72);
}

.cat-nav-btn.bg-brandBlue,
.cat-nav-btn.sfx-active,
.sfx-suite-row.bg-brandBlue,
.sfx-suite-row.sfx-active,
.sfx-nav-active {
  background: linear-gradient(90deg, rgba(247, 37, 133, 0.24) 0%, rgba(99, 102, 241, 0.16) 76%, rgba(168, 85, 247, 0.10) 100%) !important;
  border: 1px solid rgba(247, 37, 133, 0.56) !important;
  color: #F8FAFC !important;
  box-shadow:
    inset 3.5px 0 0 #F72585,
    0 0 18px rgba(247, 37, 133, 0.22),
    0 0 14px rgba(99, 102, 241, 0.16) !important;
}

html:not(.dark) .cat-nav-btn.bg-brandBlue,
html:not(.dark) .cat-nav-btn.sfx-active,
html:not(.dark) .sfx-suite-row.bg-brandBlue,
html:not(.dark) .sfx-suite-row.sfx-active,
html:not(.dark) .sfx-nav-active {
  background: linear-gradient(90deg, rgba(247, 37, 133, 0.15) 0%, rgba(79, 70, 229, 0.10) 76%, rgba(255, 255, 255, 0.72) 100%) !important;
  border-color: rgba(201, 24, 74, 0.44) !important;
  color: #1E1B4B !important;
  box-shadow:
    inset 3.5px 0 0 #C9184A,
    0 4px 16px -4px rgba(201, 24, 74, 0.18),
    0 2px 10px -4px rgba(79, 70, 229, 0.14) !important;
}

.cat-nav-btn.bg-brandBlue .sfx-neon-icon-well,
.cat-nav-btn.sfx-active .sfx-neon-icon-well,
.sfx-suite-row.bg-brandBlue .sfx-suite-pill,
.sfx-suite-row.sfx-active .sfx-suite-pill {
  background: var(--sfx-brand-grad) !important;
  border-color: rgba(255, 180, 214, 0.55) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 14px rgba(247, 37, 133, 0.44) !important;
}

/* Header Profile Pill & Theme Toggle */
#btn-profile-pill {
  background: var(--sfx-bg-card) !important;
  border: 1px solid var(--sfx-line-hairline) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

#btn-profile-pill:hover {
  border-color: var(--sfx-line-focus) !important;
  box-shadow: 0 0 16px rgba(247, 37, 133, 0.18);
}

#pill-user-initials {
  background: var(--sfx-brand-grad) !important;
  box-shadow: 0 0 12px rgba(247, 37, 133, 0.36);
}

/* ============================================================================
 * 7. Frosted Glassmorphism Cards, Tool Grid, Auditor KPIs & Workstations
 * ============================================================================ */
/* Top sub-headers inside main views */
#view-grid > div:first-child,
#view-studio > div:first-child,
#studio-ai-bar {
  background: var(--sfx-bg-panel) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--sfx-line-hairline) !important;
}

/* Hero strip & house banners */
#slot-grid-hero,
.sfx-house-banner,
.sfx-hero-banner {
  position: relative;
  overflow: hidden;
  background: var(--sfx-hero-mesh) !important;
  border: 1px solid var(--sfx-line-strong) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    var(--sfx-card-shadow),
    0 0 24px rgba(247, 37, 133, 0.12),
    0 0 20px rgba(99, 102, 241, 0.12);
}

.sfx-house-glow {
  background: radial-gradient(closest-side, rgba(247, 37, 133, 0.34), rgba(99, 102, 241, 0.16) 55%, transparent 72%) !important;
}

/* Universal Frosted Glass Cards across All Views */
.app-card,
.sfx-card-hover,
.tool-card,
#view-auditor .rounded-2xl,
#view-auditor .rounded-xl,
#view-crawler .rounded-2xl,
#view-crawler .rounded-xl,
#view-batch .rounded-2xl,
#view-batch .rounded-xl,
#view-projects .rounded-2xl,
#view-projects .rounded-xl,
#studio-workstations .rounded-2xl,
#studio-workstations .rounded-xl {
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.app-card,
.tool-card,
#desktop-intro-categories > div,
#view-auditor > div.rounded-2xl,
#desktop-audit-results > div.rounded-2xl,
#desktop-audit-intro > div.rounded-2xl,
#desktop-audit-loading,
#view-crawler #sefix-pane-spider > div.rounded-xl,
#view-crawler #sefix-pane-ai > div.rounded-xl,
#view-batch > div.rounded-xl,
#view-batch > div.rounded-2xl,
#view-projects > div.rounded-xl,
#view-projects > div.rounded-2xl,
#studio-workstations .tool-workstation > div.rounded-2xl,
#studio-workstations .tool-workstation .bg-white,
#studio-workstations .tool-workstation .dark\:bg-slate-900 {
  background: var(--sfx-bg-card) !important;
  border: 1px solid var(--sfx-line-hairline) !important;
  box-shadow: var(--sfx-card-shadow) !important;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease, box-shadow 180ms ease !important;
}

/* Luminous dual Rose-Violet-Indigo top edge beam on cards & hero strips */
#slot-grid-hero::before,
.tool-card::before,
#desktop-intro-categories > div::before,
#view-auditor > div.rounded-2xl::before,
#desktop-audit-results > div.rounded-2xl::before,
#desktop-audit-intro > div.rounded-2xl::before,
.sfx-card-elevated::before,
.sfx-kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(247, 37, 133, 0.68) 28%,
    rgba(168, 85, 247, 0.62) 56%,
    rgba(99, 102, 241, 0.60) 80%,
    transparent 100%
  );
  opacity: 0.72;
  pointer-events: none;
  z-index: 2;
}

/* Hover luminous edge & elevation */
.app-card:hover,
.tool-card:hover,
.sfx-card-hover:hover,
#desktop-intro-categories > div:hover {
  border-color: var(--sfx-line-focus) !important;
  box-shadow: var(--sfx-card-shadow-hover) !important;
}

/* Tool Card Internals: override legacy flat #1C64F2 inline cap & CTA cleanly */
.tool-card {
  border-radius: 15px !important;
  overflow: hidden;
}

.tool-card > div:first-child {
  background: linear-gradient(
    135deg,
    rgba(247, 37, 133, 0.08) 0%,
    rgba(99, 102, 241, 0.08) 100%
  ) !important;
  border-bottom: 1px solid var(--sfx-line-hairline) !important;
}

html:not(.dark) .tool-card > div:first-child {
  background: linear-gradient(
    135deg,
    rgba(247, 37, 133, 0.06) 0%,
    rgba(79, 70, 229, 0.06) 100%
  ) !important;
}

.tool-card:hover h3 {
  color: var(--sfx-accent-rose-bright) !important;
}

html:not(.dark) .tool-card:hover h3 {
  color: var(--sfx-accent-rose) !important;
}

/* Tool card "Open >" accent harmonized with its Neon Glass Icon Well tone */
.tool-card > div:last-child > span:last-child {
  color: var(--sfx-accent-rose-bright) !important;
}
html:not(.dark) .tool-card > div:last-child > span:last-child {
  color: var(--sfx-accent-rose) !important;
}

.tool-card[data-sfx-tone="indigo"] > div:last-child > span:last-child {
  color: var(--sfx-accent-indigo-bright) !important;
}
html:not(.dark) .tool-card[data-sfx-tone="indigo"] > div:last-child > span:last-child {
  color: var(--sfx-accent-indigo) !important;
}

.tool-card[data-sfx-tone="violet"] > div:last-child > span:last-child {
  color: var(--sfx-accent-lavender) !important;
}
html:not(.dark) .tool-card[data-sfx-tone="violet"] > div:last-child > span:last-child {
  color: var(--sfx-accent-violet) !important;
}

.tool-card[data-sfx-tone="emerald"] > div:last-child > span:last-child {
  color: var(--sfx-accent-emerald) !important;
}

/* Auditor Hero Intro, Verdict Box & Score Circle */
#desktop-audit-intro > div:first-child,
#desktop-audit-verdict-box {
  background: var(--sfx-hero-mesh) !important;
  border: 1px solid var(--sfx-line-strong) !important;
  color: var(--sfx-text-primary) !important;
}

#desktop-audit-verdict-box h4,
#desktop-audit-verdict-box p {
  color: var(--sfx-text-primary) !important;
}

#desktop-audit-score-circle {
  border-color: var(--sfx-accent-rose) !important;
  background: var(--sfx-surface-inset) !important;
  box-shadow: 0 0 24px rgba(247, 37, 133, 0.28), 0 0 18px rgba(99, 102, 241, 0.22) !important;
}

#desktop-audit-score {
  color: var(--sfx-accent-rose-bright) !important;
}

html:not(.dark) #desktop-audit-score {
  color: var(--sfx-accent-rose) !important;
}

/* ============================================================================
 * 8. Zero Legacy Flat Blue (#1C64F2) & Zero Yellow/Amber Remapping
 * ============================================================================ */
/* Remap ALL amber & yellow utilities cleanly to Electric Violet or Neon Rose */
[class*="bg-amber-"],
[class*="bg-yellow-"] {
  background-color: var(--sfx-fill-violet-soft) !important;
}

[class*="border-amber-"],
[class*="border-yellow-"] {
  border-color: rgba(168, 85, 247, 0.44) !important;
}

html:not(.dark) [class*="border-amber-"],
html:not(.dark) [class*="border-yellow-"] {
  border-color: rgba(124, 58, 237, 0.34) !important;
}

[class*="text-amber-"],
[class*="text-yellow-"] {
  color: var(--sfx-accent-lavender) !important;
}

html:not(.dark) [class*="text-amber-"],
html:not(.dark) [class*="text-yellow-"] {
  color: var(--sfx-accent-violet) !important;
}

/* Starred tool button becomes glowing Neon Rose instead of yellow/amber */
.tool-card button[onclick*="toggleStar"].text-amber-500,
.tool-card button[onclick*="toggleStar"]:hover,
#nav-fav .fa-star {
  color: var(--sfx-accent-rose) !important;
  text-shadow: 0 0 10px rgba(247, 37, 133, 0.55);
}

/* Remap flat legacy #1C64F2 / bg-brandBlue / primary blue CTAs to Neon Rose-Indigo Brand Gradient */
button.bg-brandBlue,
button[class*="bg-[#1C64F2]"]:not([class*="/10"]):not([class*="/20"]),
button.bg-blue-600,
button[class*="from-blue-600"][class*="to-indigo-600"],
.sfx-btn-primary {
  background: var(--sfx-brand-grad) !important;
  border: 1px solid rgba(255, 153, 194, 0.38) !important;
  color: #FFFFFF !important;
  box-shadow: var(--sfx-brand-glow) !important;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease !important;
}

button.bg-brandBlue:hover,
button[class*="bg-[#1C64F2]"]:not([class*="/10"]):not([class*="/20"]):hover,
button.bg-blue-600:hover,
button[class*="from-blue-600"][class*="to-indigo-600"]:hover,
.sfx-btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.98;
  box-shadow:
    0 10px 28px -4px rgba(247, 37, 133, 0.54),
    0 0 24px rgba(139, 92, 246, 0.40),
    0 2px 6px rgba(13, 16, 36, 0.55) !important;
}

/* Secondary buttons */
.sfx-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--sfx-text-primary);
  background: var(--sfx-bg-card);
  border: 1px solid var(--sfx-line-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 10px rgba(13, 16, 36, 0.16);
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.sfx-btn-secondary:hover {
  background: var(--sfx-surface-sheet);
  border-color: var(--sfx-line-focus);
  box-shadow: 0 0 16px rgba(247, 37, 133, 0.18), 0 0 12px rgba(99, 102, 241, 0.14);
}

/* Non-button legacy #1C64F2 badges, text links & soft fills -> Neon Rose + Electric Indigo */
span.bg-\[\#1C64F2\],
span.bg-brandBlue {
  background: var(--sfx-brand-grad) !important;
  color: #FFFFFF !important;
}

[class*="bg-[#1C64F2]/10"],
[class*="bg-blue-50"],
[class*="dark:bg-blue-950"] {
  background: var(--sfx-fill-rose-soft) !important;
  border-color: var(--sfx-line-strong) !important;
}

[class*="text-[#1C64F2]"],
.text-brandBlue,
.text-blue-600,
.text-blue-500,
html.dark .dark\:text-brandBlue,
html.dark .dark\:text-blue-300 {
  color: var(--sfx-accent-rose-bright) !important;
}

html:not(.dark) [class*="text-[#1C64F2]"],
html:not(.dark) .text-brandBlue,
html:not(.dark) .text-blue-600,
html:not(.dark) .text-blue-500 {
  color: var(--sfx-accent-rose) !important;
}

.dropzone-active {
  border-color: var(--sfx-accent-rose) !important;
  background: var(--sfx-fill-rose-soft) !important;
  box-shadow: 0 0 20px rgba(247, 37, 133, 0.22) !important;
}

/* ============================================================================
 * 9. Glassmorphic Tables, Tabs, Inputs, Modals & Semantic Pills
 * ============================================================================ */
table {
  border-collapse: separate;
  border-spacing: 0;
}

html.dark thead {
  background: linear-gradient(90deg, rgba(247, 37, 133, 0.12), rgba(99, 102, 241, 0.14)) !important;
  color: #EDE9FE !important;
  border-bottom: 1px solid var(--sfx-line-hairline);
}

html:not(.dark) thead {
  background: linear-gradient(90deg, rgba(247, 37, 133, 0.08), rgba(79, 70, 229, 0.08)) !important;
  color: #1E1B4B !important;
  border-bottom: 1px solid var(--sfx-line-hairline);
}

table tbody tr {
  border-bottom: 1px solid var(--sfx-line-hairline);
  transition: background-color 140ms ease;
}

html.dark table tbody tr:hover {
  background: rgba(247, 37, 133, 0.08) !important;
}

html:not(.dark) table tbody tr:hover {
  background: rgba(247, 37, 133, 0.05) !important;
}

/* Tabs */
#sefix-tab-spider.bg-white,
#sefix-tab-ai.bg-white,
.audit-vtab-btn.active,
.sfx-tab-btn-active {
  background: var(--sfx-brand-grad) !important;
  border-color: rgba(255, 153, 194, 0.42) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 16px rgba(247, 37, 133, 0.28) !important;
}

/* Inputs, Textareas & Selects (keep native <select> popups high-contrast!) */
html.dark input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not(#desktop-search),
html.dark textarea,
html.dark select,
.sfx-input {
  background-color: var(--sfx-surface-inset) !important;
  border-color: var(--sfx-line-hairline) !important;
  color: var(--sfx-text-primary) !important;
}

html:not(.dark) input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not(#desktop-search),
html:not(.dark) textarea,
html:not(.dark) select {
  background-color: rgba(255, 255, 255, 0.90) !important;
  border-color: var(--sfx-line-hairline) !important;
  color: var(--sfx-text-primary) !important;
}

input:not(#desktop-search):focus,
textarea:focus,
select:focus,
.sfx-input:focus {
  outline: none !important;
  border-color: var(--sfx-line-focus) !important;
  box-shadow: 0 0 0 3px var(--sfx-fill-rose-soft), 0 0 14px rgba(247, 37, 133, 0.16) !important;
}

html.dark select option,
html.dark select optgroup {
  background-color: #12162D !important;
  color: #F8FAFC !important;
}

html:not(.dark) select option,
html:not(.dark) select optgroup {
  background-color: #FFFFFF !important;
  color: #1E1B4B !important;
}

/* Modals (Profile, Delete Confirm, Preview Pill) */
#modal-profile > div,
#modal-delete-project > div {
  background: var(--sfx-bg-panel) !important;
  border: 1.5px solid var(--sfx-line-strong) !important;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 24px 60px -12px rgba(6, 9, 24, 0.72),
    0 0 32px rgba(247, 37, 133, 0.20),
    0 0 24px rgba(99, 102, 241, 0.18) !important;
}

#lic-preview-pill {
  background: var(--sfx-bg-panel) !important;
  border: 1px solid var(--sfx-line-strong) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px -6px rgba(247, 37, 133, 0.26), 0 0 14px rgba(99, 102, 241, 0.18);
}

/* Reusable Semantic Pills matching YT Suite v9.1 */
.sfx-glass-pill,
.sfx-pill-rose,
.sfx-pill-indigo,
.sfx-pill-violet,
.sfx-pill-green {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.26rem 0.70rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sfx-glass-pill {
  background: var(--sfx-bg-card);
  border: 1px solid var(--sfx-line-strong);
  color: var(--sfx-text-primary);
}

.sfx-pill-rose {
  background: var(--sfx-fill-rose-soft);
  border: 1px solid rgba(247, 37, 133, 0.44);
  color: var(--sfx-accent-rose-bright);
}
html:not(.dark) .sfx-pill-rose {
  color: var(--sfx-accent-rose);
  border-color: rgba(201, 24, 74, 0.30);
}

.sfx-pill-indigo {
  background: var(--sfx-fill-indigo-soft);
  border: 1px solid rgba(99, 102, 241, 0.44);
  color: var(--sfx-accent-indigo-bright);
}
html:not(.dark) .sfx-pill-indigo {
  color: var(--sfx-accent-indigo);
  border-color: rgba(79, 70, 229, 0.30);
}

.sfx-pill-violet {
  background: var(--sfx-fill-violet-soft);
  border: 1px solid rgba(168, 85, 247, 0.44);
  color: var(--sfx-accent-lavender);
}
html:not(.dark) .sfx-pill-violet {
  color: var(--sfx-accent-violet);
  border-color: rgba(124, 58, 237, 0.30);
}

.sfx-pill-green {
  background: var(--sfx-fill-emerald-soft);
  border: 1px solid rgba(74, 222, 128, 0.40);
  color: var(--sfx-accent-emerald);
}
html:not(.dark) .sfx-pill-green {
  border-color: rgba(5, 150, 105, 0.30);
}

/* ============================================================================
 * 10. Widescreen Login / License Gate (Exact YT Suite v9.1 PrivateVaultGate)
 * ============================================================================ */
.sfx-desk-login-gate {
  background-color: var(--sfx-bg-floor) !important;
  background-image: var(--sfx-canvas-ambient);
  overflow: hidden;
}

/* Clean 900x500 center safe-zone readability veil for BOTH Dark & Light */
.sfx-desk-login-veil,
.sfx-login-veil {
  background:
    radial-gradient(ellipse 460px 270px at 50% 50%, rgba(11, 15, 34, 0.76) 0%, rgba(13, 16, 36, 0.46) 58%, rgba(13, 16, 36, 0.10) 100%),
    radial-gradient(circle at 38% 42%, rgba(247, 37, 133, 0.15), transparent 46%),
    radial-gradient(circle at 62% 58%, rgba(99, 102, 241, 0.17), transparent 48%);
}

html:not(.dark) .sfx-desk-login-veil,
html:not(.dark) .sfx-login-veil {
  background:
    radial-gradient(ellipse 460px 270px at 50% 50%, rgba(255, 255, 255, 0.80) 0%, rgba(253, 242, 248, 0.46) 58%, rgba(253, 242, 248, 0.06) 100%),
    radial-gradient(circle at 38% 42%, rgba(247, 37, 133, 0.09), transparent 46%),
    radial-gradient(circle at 62% 58%, rgba(79, 70, 229, 0.09), transparent 48%);
}

/* Frosted Blur(22px) Login Card with Dual Glowing Rose-Indigo Top & Bottom Edge Beams */
.sfx-desk-login-card,
.sfx-login-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px !important;
  background:
    linear-gradient(145deg, rgba(16, 20, 44, 0.82) 0%, rgba(22, 26, 56, 0.78) 52%, rgba(26, 20, 52, 0.82) 100%) padding-box,
    linear-gradient(135deg, rgba(247, 37, 133, 0.64) 0%, rgba(168, 85, 247, 0.48) 50%, rgba(99, 102, 241, 0.64) 100%) border-box !important;
  border: 1.5px solid transparent !important;
  backdrop-filter: blur(22px) !important;
  -webkit-backdrop-filter: blur(22px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 24px 60px -12px rgba(6, 9, 24, 0.80),
    0 0 38px rgba(247, 37, 133, 0.24),
    0 0 32px rgba(99, 102, 241, 0.22) !important;
}

.sfx-desk-login-card::before,
.sfx-desk-login-card::after,
.sfx-login-card::before,
.sfx-login-card::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  height: 2px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 5;
}

.sfx-desk-login-card::before,
.sfx-login-card::before {
  top: 0;
  background: linear-gradient(90deg, transparent, #F72585 28%, #FF6B9D 50%, #6366F1 76%, transparent);
  opacity: 0.92;
}

.sfx-desk-login-card::after,
.sfx-login-card::after {
  bottom: 0;
  background: linear-gradient(90deg, transparent, #6366F1 26%, #A855F7 52%, #F72585 78%, transparent);
  opacity: 0.78;
}

html:not(.dark) .sfx-desk-login-card,
html:not(.dark) .sfx-login-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88) 0%, rgba(253, 242, 248, 0.86) 55%, rgba(245, 243, 255, 0.88) 100%) padding-box,
    linear-gradient(135deg, rgba(201, 24, 74, 0.50) 0%, rgba(124, 58, 237, 0.38) 50%, rgba(79, 70, 229, 0.50) 100%) border-box !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 24px 52px -14px rgba(183, 9, 76, 0.20),
    0 12px 32px -10px rgba(79, 70, 229, 0.18) !important;
}

/* ============================================================================
 * 11. Reduced-Motion Accessibility Guard (Preserve Requested Lightning Effects)
 * ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  .sfx-pdf-radar-ring,
  .sfx-typing-caret {
    animation: none !important;
  }

  /* Override global * reduced-motion clamp so Seoffix Desk lightning always runs */
  .sfx-logo-lightning-wrap {
    animation: sfx-logo-glow-pulse 2.2s ease-in-out infinite !important;
    animation-duration: 2.2s !important;
    animation-iteration-count: infinite !important;
  }

  .sfx-logo-lightning-wrap::after {
    animation: sfx-lightning-sweep 2.2s cubic-bezier(0.35, 0, 0.25, 1) infinite !important;
    animation-duration: 2.2s !important;
    animation-iteration-count: infinite !important;
  }

  .sfx-pdf-searchbar-shell::before {
    animation: sfx-pdf-lightning-rotate 2.8s linear infinite !important;
    animation-duration: 2.8s !important;
    animation-iteration-count: infinite !important;
  }
}
