/* GeM OEM Panel — dark theme v2.
   Palette + effects learned from the Qronos reference design system:
   bg #000101 · card #020204 · border #101215 · fg #EEE5D4 · muted #B9B09B.
   Loaded after Tailwind so same-specificity rules win. */

:root {
  color-scheme: dark;
  --gempanel-accent: #9BC7B2;
  --gempanel-accent-2: #9BC7B2;
  --gempanel-accent-3: #9BC7B2;
  --gempanel-glow: rgba(147, 230, 255, .22);
  --gempanel-fg: #EEE5D4;
  --gempanel-muted: #C2B7A0;
}

html, body { background: radial-gradient(1200px 800px at 50% -10%, rgba(155,199,178,.05), transparent 60%), #000101 !important; }
body { color: var(--gempanel-fg); }

::selection { background: rgba(155,199,178,.4); color: #EEE5D4; }

/* ambient glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(155,199,178,.08), transparent 62%),
    radial-gradient(700px 460px at 90% 10%, rgba(166,133,255,.05), transparent 65%),
    radial-gradient(700px 460px at 10% 15%, rgba(29,74,53,.16), transparent 68%);
}
/* film-grain noise overlay, like the reference */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- surfaces ---------- */
.bg-white        { background: linear-gradient(145deg, rgba(22,25,29,.92), rgba(5,6,8,.94)) !important; }
.bg-white\/70    { background-color: rgba(6,7,9,.85) !important; }
.supports-\[backdrop-filter\]\:bg-white\/60 { background-color: rgba(6,7,9,.78) !important; }
.bg-gray-50, .bg-slate-50, .bg-slate-50\/60 { background-color: #08090b !important; }
.bg-gray-100, .bg-slate-100 { background-color: #101114 !important; }
.bg-blue-50, .bg-blue-50\/50, .bg-indigo-50, .bg-violet-50 { background-color: rgba(155,199,178,.08) !important; }
.bg-blue-100    { background-color: rgba(155,199,178,.14) !important; }
.bg-amber-100   { background-color: rgba(238,229,212,.10) !important; }
.bg-emerald-100 { background-color: rgba(29,74,53,.10) !important; }
.bg-violet-100  { background-color: rgba(29,74,53,.12) !important; }
.bg-slate-900   { background-color: #000101 !important; }
.bg-slate-900\/70 { background-color: rgba(0,1,1,.8) !important; }

/* monochrome pill buttons (reference: white pill + outlined black pill) */
.bg-blue-600 { background-color: #EEE5D4 !important; color: #000101 !important; }
.bg-blue-700, .hover\:bg-blue-700:hover { background-color: #D9CFBB !important; color: #000101 !important; }
.bg-blue-500, .bg-blue-400 { background-color: #D9CFBB !important; color: #000101 !important; }
a[class*="rounded-md"], button[class*="rounded-md"] { border-radius: 9999px !important; }

/* hero / marquee fades: white stops become black */
.from-blue-50 { --tw-gradient-from: #05060a !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.from-gray-50, .from-gray-100, .from-slate-50 { --tw-gradient-from: #07080a !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.to-indigo-50 { --tw-gradient-to: #07080a !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.to-gray-50, .to-gray-100 { --tw-gradient-to: #0c0d10 !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.from-white   { --tw-gradient-from: #000101 !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.via-white    { --tw-gradient-stops: var(--tw-gradient-from), #000101 var(--tw-gradient-via-position), var(--tw-gradient-to) !important; }
.to-white     { --tw-gradient-to: #000101 !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }

/* ---------- text ---------- */
.text-gray-900, .text-slate-900, .text-gray-800, .text-slate-800 { color: var(--gempanel-fg) !important; }
.text-gray-700, .text-slate-700 { color: #D9CFBB !important; }
.text-gray-600, .text-slate-600 { color: var(--gempanel-muted) !important; }
.text-gray-500, .text-slate-500 { color: #B9B09B !important; }
.text-gray-400, .text-slate-400 { color: #B9B09B !important; }
.text-blue-600, .text-blue-700 { color: #9BC7B2 !important; }
.text-blue-800, .text-blue-900 { color: #B8D8C4 !important; }
.text-blue-100, .text-blue-300 { color: #B8D8C4 !important; }
.text-amber-700   { color: #EEE5D4 !important; }
.text-emerald-700 { color: #9BC7B2 !important; }
.text-violet-700  { color: #9BC7B2 !important; }
.hover\:text-slate-900:hover { color: #EEE5D4 !important; }
.hover\:text-slate-700:hover { color: #D9CFBB !important; }

/* ---------- borders / rings / dividers ---------- */
.border-slate-100, .border-slate-200, .border-slate-300,
.border-gray-100, .border-gray-200, .border-gray-300 { border-color: rgba(238,229,212,.1) !important; }
.border-blue-100, .border-blue-200 { border-color: rgba(155,199,178,.28) !important; }
.divide-slate-100 > :not([hidden]) ~ :not([hidden]) { border-color: rgba(238,229,212,.08) !important; }
.ring-black\/5  { --tw-ring-color: rgba(255,255,255,.07) !important; }
.ring-blue-100, .ring-blue-600  { --tw-ring-color: rgba(155,199,178,.36) !important; }
.hover\:border-blue-200:hover, .hover\:border-blue-400\/50:hover { border-color: rgba(155,199,178,.44) !important; }
.hover\:bg-slate-50:hover  { background-color: #0b0c0f !important; }
.hover\:bg-slate-100:hover { background-color: #141519 !important; }

/* ---------- form controls ---------- */
input, select, textarea {
  background: linear-gradient(180deg, rgba(24,26,31,.9), rgba(8,9,11,.9)) !important;
  color: var(--gempanel-fg) !important;
  border-color: rgba(238,229,212,.1) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
input::placeholder, textarea::placeholder { color: #B9B09B !important; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(155,199,178,.5) !important;
  box-shadow: 0 0 0 1px rgba(155,199,178,.18), 0 0 0 4px rgba(155,199,178,.06);
}

/* ---------- trusted-by logos: monochrome light on black ---------- */
#trusted-by .brand-logo img,
.logo-scroller img { filter: grayscale(1) invert(1) brightness(1.3); opacity: .55; }

/* ---------- hero: vortex canvas + gradient headline ---------- */
#flowbg { opacity: 1; }
.hero-grad {
  background: linear-gradient(180deg, #EEE5D4 30%, #B9B09B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500 !important;
  letter-spacing: -0.03em !important;
}
.hero-grad .text-blue-700 { color: #9BC7B2 !important; -webkit-text-fill-color: #9BC7B2; }

/* line-reveal on load for the hero headline (reference signature) */
.line-reveal { clip-path: inset(0 100% 0 0); animation: .9s cubic-bezier(.77,0,.175,1) .15s forwards lr; }
@keyframes lr { to { clip-path: inset(0); } }

/* scroll reveal (fx.js toggles .in) */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); transition-delay: var(--rv-delay, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* spring hover-lift on cards, like the reference */
section .grid > *:not(.rv), .hover-lift { transition: transform .4s cubic-bezier(.34,1.56,.64,1), border-color .3s; }
section .grid > *:hover, .hover-lift:hover { transform: translateY(-4px); }

/* soft elevation on dark */
.shadow-sm, .shadow-md, .shadow-lg, .shadow-2xl {
  --tw-shadow: 0 18px 48px -18px rgba(0,0,0,.98) !important;
  --tw-shadow-colored: var(--tw-shadow) !important;
}

/* gradient CTAs also become monochrome pills */
a[class*="from-blue-"], button[class*="from-blue-"] {
  background-image: none !important;
  background-color: #EEE5D4 !important;
  color: #000101 !important;
}

/* split-screen authentication pages */
.auth-left { background: #020204 !important; }
.auth-right {
  background: radial-gradient(circle at 50% 35%, rgba(155,199,178,.07), transparent 46%), #000101 !important;
  border-left: 1px solid #101215;
}
.slide { color: #EEE5D4 !important; }
.slide p { color: #C2B7A0 !important; }
.slider-btn {
  background: rgba(238,229,212,.06) !important;
  border-color: #101215 !important;
  color: #EEE5D4 !important;
}
.slider-btn:hover { background: rgba(238,229,212,.12) !important; border-color: #303238 !important; }
.indicator { background: rgba(238,229,212,.10) !important; border-color: #303238 !important; }
.indicator.active { background: #EEE5D4 !important; border-color: #EEE5D4 !important; box-shadow: 0 0 12px rgba(238,229,212,.3) !important; }
.indicator:hover { background: rgba(238,229,212,.2) !important; }
.auth-left::-webkit-scrollbar-track { background: #020204 !important; }
.auth-left::-webkit-scrollbar-thumb { background: #303238 !important; }

/* admin accent surfaces follow the same neutral theme */
.bg-indigo-600, .bg-indigo-500 { background-color: #EEE5D4 !important; color: #000101 !important; }
.from-indigo-700 { --tw-gradient-from: #020204 !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.via-indigo-800 { --tw-gradient-stops: var(--tw-gradient-from), #020204 var(--tw-gradient-via-position), var(--tw-gradient-to) !important; }
.to-slate-900 { --tw-gradient-to: #000101 !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.text-indigo-100, .text-indigo-200, .text-indigo-300 { color: #C2B7A0 !important; }

/* ---------- button micro-interactions ---------- */
a[class*="rounded-md"], button[class*="rounded-md"],
a[class*="rounded-lg"], button[class*="rounded-lg"], .sample-cta {
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease,
              border-color .25s ease, background-color .25s ease;
}
a.bg-blue-600, button.bg-blue-600,
a[class*="from-blue-"], button[class*="from-blue-"],
a.bg-indigo-600, button.bg-indigo-600 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(238,229,212,.18), 0 10px 36px rgba(0,0,0,.36), 0 0 24px rgba(155,199,178,.06);
}
a.bg-blue-600::before, button.bg-blue-600::before,
a[class*="from-blue-"]::before, button[class*="from-blue-"]::before,
a.bg-indigo-600::before, button.bg-indigo-600::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, rgba(0,1,1,.16) 46%, transparent 66%);
  transform: translateX(-135%);
  transition: transform .7s cubic-bezier(.22,1,.36,1);
}
a.bg-blue-600:hover::before, button.bg-blue-600:hover::before,
a[class*="from-blue-"]:hover::before, button[class*="from-blue-"]:hover::before,
a.bg-indigo-600:hover::before, button.bg-indigo-600:hover::before { transform: translateX(135%); }

@media (hover: hover) {
  a[class*="rounded-md"]:hover, button[class*="rounded-md"]:hover,
  a[class*="rounded-lg"]:hover, button[class*="rounded-lg"]:hover, .sample-cta:hover {
    transform: translateY(-2px);
    border-color: rgba(238,229,212,.28);
  }
  a.bg-blue-600:hover, button.bg-blue-600:hover,
  a[class*="from-blue-"]:hover, button[class*="from-blue-"]:hover,
  a.bg-indigo-600:hover, button.bg-indigo-600:hover {
    box-shadow: 0 0 0 1px rgba(238,229,212,.42), 0 12px 38px rgba(0,0,0,.4), 0 0 32px rgba(155,199,178,.1);
  }
}
a[class*="rounded-md"]:active, button[class*="rounded-md"]:active,
a[class*="rounded-lg"]:active, button[class*="rounded-lg"]:active, .sample-cta:active {
  transform: translateY(0) scale(.98);
}
a:focus-visible, button:focus-visible {
  outline: 2px solid #9BC7B2 !important;
  outline-offset: 3px;
}
header a.bg-blue-600 { animation: cta-glow 3.2s ease-in-out infinite; }
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(238,229,212,.16), 0 0 14px rgba(238,229,212,.07); }
  50% { box-shadow: 0 0 0 1px rgba(238,229,212,.34), 0 0 26px rgba(238,229,212,.18); }
}

/* orbiting border light: a bright arc travels around the pill, like the
   reference CTA. Original CSS implementation, no motion-path dependency. */
header a[href="/login"],
a.bg-blue-600, button.bg-blue-600,
a[class*="from-blue-"], button[class*="from-blue-"],
a.bg-indigo-600, button.bg-indigo-600,
a.bg-white.border, button.bg-white.border {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 9999px !important;
}
header a[href="/login"]::before,
a.bg-blue-600::before, button.bg-blue-600::before,
a[class*="from-blue-"]::before, button[class*="from-blue-"]::before,
a.bg-indigo-600::before, button.bg-indigo-600::before,
a.bg-white.border::before, button.bg-white.border::before {
  content: "";
  position: absolute;
  inset: -75%;
  z-index: -2;
  pointer-events: none;
  background: conic-gradient(from 0deg,
    transparent 0deg, transparent 285deg,
    rgba(238,229,212,.12) 312deg,
    #EEE5D4 334deg,
    rgba(238,229,212,.18) 350deg,
    transparent 360deg);
  animation: btn-orbit 3.2s linear infinite;
  transition: none;
}
header a[href="/login"]::after,
a.bg-blue-600::after, button.bg-blue-600::after,
a[class*="from-blue-"]::after, button[class*="from-blue-"]::after,
a.bg-indigo-600::after, button.bg-indigo-600::after,
a.bg-white.border::after, button.bg-white.border::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: var(--btn-core, #020204);
}
a.bg-blue-600, button.bg-blue-600,
a[class*="from-blue-"], button[class*="from-blue-"],
a.bg-indigo-600, button.bg-indigo-600 { --btn-core: #EEE5D4; }
header a.bg-white, a.bg-white.border, button.bg-white.border { --btn-core: #020204; }
header a.bg-blue-600 { animation: none; }
@keyframes btn-orbit { to { transform: rotate(360deg); } }

/* ---------- crystal surfaces across the site ---------- */
.bg-white.rounded-xl, .bg-white.rounded-2xl, .bg-white.rounded-3xl,
.bg-slate-50.rounded-xl, .bg-slate-50.rounded-2xl,
.bg-slate-50\/60.rounded-xl, .bg-slate-50\/60.rounded-2xl,
.bg-slate-900.rounded-xl, .bg-slate-900.rounded-2xl, .bg-slate-900.rounded-3xl {
  background: linear-gradient(145deg, rgba(238,229,212,.065), rgba(238,229,212,.018)) !important;
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  border-color: rgba(238,229,212,.12) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 24px 70px rgba(0,0,0,.26);
}
.brand-logo {
  background: rgba(238,229,212,.035);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(238,229,212,.09) !important;
}
input, select, textarea {
  background: rgba(238,229,212,.035) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(155,199,178,.55) !important;
  box-shadow: 0 0 0 3px rgba(155,199,178,.09);
}
select option { background: #07080a; color: #EEE5D4; }
footer {
  background: rgba(2,2,4,.72) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(238,229,212,.09);
}
thead { background: rgba(238,229,212,.035); }
th, td { border-color: #101215 !important; }
tbody tr { transition: background-color .25s ease; }
tbody tr:hover { background: rgba(238,229,212,.025); }
dialog::backdrop {
  background: rgba(0,1,1,.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
details[open] > :not(summary) { animation: detail-in .3s cubic-bezier(.22,1,.36,1); }
@keyframes detail-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- crystal-clear sticky header ---------- */
header.sticky {
  background: rgba(0,1,1,.66) !important;
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
  border-bottom: 1px solid rgba(238,229,212,.13) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 12px 34px rgba(0,0,0,.2);
}
header.sticky::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(238,229,212,.5), transparent);
}
header.sticky > div:first-child {
  position: relative;
  max-width: 1280px;
  min-height: 68px;
}
header.sticky > div:first-child > a:first-child {
  color: #EEE5D4;
  letter-spacing: -.025em;
}
header > div > nav a {
  position: relative;
  color: #C2B7A0 !important;
  letter-spacing: -.01em;
  transition: color .25s ease;
}
header > div > nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: #EEE5D4;
  transform: scaleX(0);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
header > div > nav a:hover { color: #EEE5D4 !important; }
header > div > nav a:hover::after { transform: scaleX(1); }
#mobileMenu {
  background: rgba(0,1,1,.94) !important;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border-color: #101215 !important;
}
#mobileMenu nav a::before, #mobileMenu nav a::after { display: none !important; }

/* orbit on every rounded button style; fx.js preserves each button's own
   background in --btn-core, so coloured/icon buttons keep their identity. */
a[class*="rounded-md"], button[class*="rounded-md"],
a[class*="rounded-lg"], button[class*="rounded-lg"],
a[class*="rounded-full"], button[class*="rounded-full"], .slider-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
a[class*="rounded-md"]::before, button[class*="rounded-md"]::before,
a[class*="rounded-lg"]::before, button[class*="rounded-lg"]::before,
a[class*="rounded-full"]::before, button[class*="rounded-full"]::before, .slider-btn::before {
  content: "";
  position: absolute;
  inset: -75%;
  z-index: -2;
  pointer-events: none;
  background: conic-gradient(from 0deg,
    transparent 0deg, transparent 285deg,
    rgba(238,229,212,.12) 312deg,
    #EEE5D4 334deg,
    rgba(238,229,212,.18) 350deg,
    transparent 360deg);
  animation: btn-orbit 3.2s linear infinite;
  transition: none;
}
a[class*="rounded-md"]::after, button[class*="rounded-md"]::after,
a[class*="rounded-lg"]::after, button[class*="rounded-lg"]::after,
a[class*="rounded-full"]::after, button[class*="rounded-full"]::after, .slider-btn::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: var(--btn-core, #020204);
}
.bg-\[\#25D366\] { --btn-core: #25D366; }

/* ---------- full-site audit fixes: readability + custom surfaces ---------- */
.text-gray-500, .text-slate-500 { color: #B9B09B !important; }
.text-gray-400, .text-slate-400 { color: #B9B09B !important; }
input::placeholder, textarea::placeholder { color: #B9B09B !important; }
.nav-link { color: #C2B7A0 !important; }
.nav-link:hover { color: #EEE5D4 !important; background: rgba(238,229,212,.04) !important; }
.nav-link.active, .tab-link.active { color: #9BC7B2 !important; border-bottom-color: #9BC7B2 !important; }
.tab-link:hover { color: #EEE5D4 !important; }
.row-hover:hover { background-color: #0c0d10 !important; }

.bg-emerald-50, .bg-green-50 { background-color: rgba(29,74,53,.10) !important; }
.bg-amber-50, .bg-yellow-50 { background-color: rgba(238,229,212,.10) !important; }
.bg-red-50, .bg-rose-50 { background-color: rgba(242,70,46,.10) !important; }
.text-emerald-700, .text-emerald-800, .text-green-700, .text-green-800 { color: #9BC7B2 !important; }
.text-amber-700, .text-amber-800, .text-yellow-700, .text-yellow-800 { color: #EEE5D4 !important; }
.text-red-600, .text-red-700, .text-rose-700 { color: #F2462E !important; }
.text-indigo-200\/90, .text-indigo-100\/80, .text-indigo-200\/60 { color: #C2B7A0 !important; }
body .bg-gradient-to-br.from-indigo-700 { background-image: linear-gradient(135deg,#020204,#000101) !important; }

/* App detail modals and grouped OEM rows */
.modal-content, .modal-content-wide {
  background: linear-gradient(145deg, rgba(20,22,25,.98), rgba(5,6,8,.98)) !important;
  color: #EEE5D4 !important;
  border: 1px solid rgba(238,229,212,.13) !important;
  box-shadow: 0 28px 90px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.04) !important;
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  backdrop-filter: blur(20px) saturate(135%);
}
.modal-content h1, .modal-content h2, .modal-content h3, .modal-content h4,
.modal-content-wide h1, .modal-content-wide h2, .modal-content-wide h3, .modal-content-wide h4 { color: #EEE5D4 !important; }
.oem-row-grouped { background: rgba(29,74,53,.07) !important; border-left-color: #9BC7B2 !important; }
.oem-row-grouped-tag, .cat-more { color: #9BC7B2 !important; }
.cat-chip { background: rgba(155,199,178,.08) !important; color: #B8D8C4 !important; }
.badge-oem { background: rgba(155,199,178,.08) !important; color: #9BC7B2 !important; border-color: rgba(155,199,178,.25) !important; }
.badge-locked { background: rgba(238,229,212,.09) !important; color: #EEE5D4 !important; border-color: rgba(238,229,212,.25) !important; }
.badge-unlocked { background: rgba(29,74,53,.09) !important; color: #9BC7B2 !important; border-color: rgba(29,74,53,.25) !important; }
.tier-card.is-selected { background-color: rgba(155,199,178,.08) !important; border-color: #9BC7B2 !important; }
.tier-card.is-disabled { background-color: #0c0d10 !important; border-color: #24272c !important; }
.tier-card:hover { border-color: rgba(155,199,178,.45) !important; }

/* Legal documents: restore readable text on dark cards */
.legal-doc, .legal-doc p, .legal-sub, .legal-para, .legal-list,
.prose-legal p, .prose-legal ul, .prose-legal ol { color: #D9CFBB !important; }
.legal-doc h1, .legal-doc h2, .legal-doc h3, .legal-doc h4,
.legal-h2, .legal-clause, .legal-sub-num, .legal-part, .legal-part-sub,
.prose-legal h2, .prose-legal h3 { color: #EEE5D4 !important; }
.legal-doc-sub, .legal-italic-note, .legal-part-sub-note, .legal-end,
.legal-toc a { color: #C2B7A0 !important; }
.legal-part { border-top-color: rgba(155,199,178,.35) !important; }
.legal-callout, .legal-callout p {
  background: rgba(238,229,212,.075) !important;
  color: #EEE5D4 !important;
  border-color: rgba(238,229,212,.28) !important;
}
.legal-table th {
  background: rgba(238,229,212,.055) !important;
  color: #EEE5D4 !important;
  border-color: #303238 !important;
}
.legal-table td { color: #D9CFBB !important; border-color: #303238 !important; }
.legal-table tbody tr:nth-child(even) { background: rgba(238,229,212,.018) !important; }
.legal-toc { background: rgba(238,229,212,.03) !important; border-color: #101215 !important; }
.legal-toc h4, .legal-toc .toc-part { color: #EEE5D4 !important; }
.legal-toc a:hover { color: #9BC7B2 !important; background: rgba(155,199,178,.06) !important; border-left-color: #9BC7B2 !important; }

/* Demo + error pages */
body main.card, body .grid > .card {
  background: linear-gradient(145deg, rgba(20,22,25,.94), rgba(5,6,8,.94)) !important;
  color: #EEE5D4 !important;
  border-color: rgba(238,229,212,.13) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.045) !important;
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}
body main.card h1, body main.card h2, body .grid > .card h2, body .grid > .card h3,
body .grid > .card strong { color: #EEE5D4 !important; }
body .lede, body .card p.sub, body label, body .alt, body ul.points li,
body .ok p, body .foot { color: #C2B7A0 !important; }
body .eyebrow, body .tick, body main.card .badge {
  background: rgba(155,199,178,.09) !important;
  color: #9BC7B2 !important;
}
body .brand span, body .nav a.signin, body .alt a { color: #9BC7B2 !important; }
body:has(#demo-form) header {
  background: rgba(0,1,1,.72) !important;
  border-bottom-color: #101215 !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
#demo-form button, main.card .primary {
  background: #EEE5D4 !important;
  color: #000101 !important;
}
#demo-form button:hover, main.card .primary:hover { background: #D9CFBB !important; }
main.card .secondary { color: #C2B7A0 !important; border-color: #303238 !important; }
main.card .secondary:hover { background: rgba(238,229,212,.06) !important; }
body .msg.err { color: #F2462E !important; }
body .ok .big { background: rgba(29,74,53,.1) !important; color: #9BC7B2 !important; }
body main section.relative.isolate > .absolute.inset-0.bg-gradient-to-r {
  background: radial-gradient(ellipse at 50% 0%, rgba(155,199,178,.12), transparent 58%), linear-gradient(135deg,#080b0e,#000101 72%) !important;
}
body main section.relative.isolate a.bg-white {
  --btn-core: #EEE5D4;
  background-color: #EEE5D4 !important;
  color: #000101 !important;
}

@media (max-width: 768px) {
  .auth-right { border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .line-reveal { clip-path: none; animation: none; }
  details[open] > :not(summary) { animation: none; }
  section .grid > *:hover, .hover-lift:hover { transform: none; }
  header a.bg-blue-600 { animation: none; }
  a.bg-blue-600::before, button.bg-blue-600::before,
  a[class*="from-blue-"]::before, button[class*="from-blue-"]::before,
  a.bg-indigo-600::before, button.bg-indigo-600::before,
  header a[href="/login"]::before,
  a.bg-white.border::before, button.bg-white.border::before,
  a[class*="rounded-md"]::before, button[class*="rounded-md"]::before,
  a[class*="rounded-lg"]::before, button[class*="rounded-lg"]::before,
  a[class*="rounded-full"]::before, button[class*="rounded-full"]::before,
  .slider-btn::before { display: none; }
  a[class*="rounded-md"], button[class*="rounded-md"],
  a[class*="rounded-lg"], button[class*="rounded-lg"], .sample-cta { transition: none; }
  a[class*="rounded-md"]:hover, button[class*="rounded-md"]:hover,
  a[class*="rounded-lg"]:hover, button[class*="rounded-lg"]:hover, .sample-cta:hover { transform: none; }
}

/* STRONG TEXT OVERRIDES - high contrast */
html body *:not(code):not(pre):not(kbd):not(samp) { text-shadow: none !important; }
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6 { color: #EEE5D4 !important; }
/* Button and link labels use <span>; the blanket span colour above hid
   them inside the recoloured light buttons. Keep the component colour. */
html body a > span:not([class*="text-"]), html body button > span:not([class*="text-"]) { color: inherit !important; }
html body p, html body span, html body div, html body li, html body td, html body th, html body label, html body a:not(:where(.bg-blue-600, .bg-indigo-600, [class*="from-blue-"], .text-red-600, .text-red-700, .text-rose-600, .text-rose-700)) { color: #EEE5D4 !important; }
html body .text-gray-500, html body .text-slate-500, html body .text-neutral-500, html body .text-gray-400, html body .text-slate-400 { color: #D9CFBB !important; }
html body .text-gray-600, html body .text-slate-600 { color: #D9CFBB !important; }
html body .text-gray-700, html body .text-slate-700 { color: #D9CFBB !important; }
html body .text-gray-800, html body .text-slate-800 { color: #EEE5D4 !important; }
html body .text-gray-900, html body .text-slate-900 { color: #EEE5D4 !important; }
html body footer .text-gray-400, html body footer .text-slate-400, html body footer .text-gray-500 { color: #D9CFBB !important; }
html body .card .text-gray-500, html body .rounded-lg .text-gray-500, html body .rounded-xl .text-gray-500 { color: #D9CFBB !important; }

/* RICH ACCENT COLORS */
html body .text-blue-500 { color: #9BC7B2 !important; }
html body .text-cyan-400, html body .text-sky-400 { color: #9BC7B2 !important; }
html body .border-blue-200, html body .border-blue-100 { border-color: rgba(147,230,255,.45) !important; }
html body .bg-blue-50 { background-color: rgba(147,230,255,.12) !important; }
html body .ring-blue-100 { --tw-ring-color: rgba(147,230,255,.35) !important; }

/* glow for accent text/links */
html body .hero-grad .text-blue-700,
html body .text-blue-700 { text-shadow: 0 0 40px rgba(147,230,255,.12); }
html body a.text-blue-600:hover, html body .text-blue-600:hover { filter: brightness(1.12); }

/* FORCE GRADIENT ACCENT ON HERO */
html body .hero-grad .text-blue-700,
html body .hero-grad span.text-blue-700 {
  background: linear-gradient(90deg, #9BC7B2 0%, #9BC7B2 55%, #9BC7B2 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(0 0 26px rgba(147, 230, 255, 0.18)) drop-shadow(0 0 40px rgba(185, 166, 255, 0.1)) !important;
}

html body .hero-grad .text-blue-700::selection {
  -webkit-text-fill-color: #000000 !important;
  background: #9BC7B2 !important;
}

/* DEEPER DARK RICH BACKGROUND */
html, body.min-h-screen {
  background: radial-gradient(1600px 1000px at 50% -18%, rgba(157,255,255,0.09), transparent 58%),
              radial-gradient(1100px 700px at 82% 12%, rgba(124,63,255,0.08), transparent 62%),
              radial-gradient(900px 650px at 18% 14%, rgba(77,155,255,0.06), transparent 64%),
              radial-gradient(1400px 900px at 50% 120%, rgba(109,255,207,0.04), transparent 70%),
              #000000 !important;
}
html body.min-h-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background: radial-gradient(600px 400px at 50% 0%, rgba(157,255,255,0.06), transparent 70%);
}

/* Six nav links overflow between 768px and ~1000px (the app nav grew with
   Brands). Keep the mobile sheet until there is really room for them. */
@media (max-width: 1000px) {
  nav div.space-x-4 { display: none !important; }
  #mobileMenuBtn { display: inline-flex !important; }
}

/* ---------- every user-facing overlay stays dark ----------
   Covers contract/bid/seller detail modals, quota + paywall dialogs,
   feedback and confirmation popups on all app pages. */
.modal, [id$="Modal"] {
  background: rgba(0,1,1,.82) !important;
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
}
.modal-content, .modal-content-wide, [id$="Modal"] > div {
  background: linear-gradient(145deg, rgba(16,18,22,.98), rgba(4,5,7,.99)) !important;
  color: #EEE5D4 !important;
  border: 1px solid rgba(155,199,178,.18) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.05) !important;
}
[id$="Modal"] h1, [id$="Modal"] h2, [id$="Modal"] h3, [id$="Modal"] h4,
.modal-content h1, .modal-content h2, .modal-content h3, .modal-content h4 { color: #EEE5D4 !important; }
[id$="Modal"] button[id^="close"] { color: #C2B7A0 !important; }
[id$="Modal"] button[id^="close"]:hover { color: #EEE5D4 !important; }
/* dark.css turns blue buttons into light pills globally; inside a modal that
   reads as a white patch, so use a translucent accent surface instead. */
[id$="Modal"] .bg-blue-600, [id$="Modal"] a.bg-blue-600, [id$="Modal"] button.bg-blue-600 {
  background: linear-gradient(135deg, rgba(155,199,178,.22), rgba(185,166,255,.22)) !important;
  color: #B8D8C4 !important;
  border: 1px solid rgba(155,199,178,.45) !important;
}
[id$="Modal"] .bg-blue-600:hover, [id$="Modal"] a.bg-blue-600:hover, [id$="Modal"] button.bg-blue-600:hover {
  background: linear-gradient(135deg, rgba(155,199,178,.34), rgba(185,166,255,.34)) !important;
  color: #EEE5D4 !important;
}
[id$="Modal"] .bg-emerald-50, [id$="Modal"] .bg-emerald-50\/60,
[id$="Modal"] .hover\:bg-emerald-50:hover { background: rgba(29,74,53,.10) !important; }
.loading-overlay { background: linear-gradient(135deg, rgba(0,1,1,.82), rgba(6,8,12,.92)) !important; }

/* ---------- 60 / 30 / 10 palette ----------
   Oat milk #EEE5D4 = 60% foreground · Forest green #1D4A35 = 30% surfaces
   and actions · Tomato red #F2462E = 10% errors/alerts. Dark base unchanged. */
:root {
  --oat: #EEE5D4;
  --oat-soft: #D9CFBB;
  --oat-muted: #B9B09B;
  --forest: #1D4A35;
  --forest-hover: #2A6347;
  --forest-ink: #9BC7B2;
  --tomato: #F2462E;
  --gempanel-fg: var(--oat);
  --gempanel-muted: var(--oat-muted);
  --gempanel-accent: var(--forest-ink);
}
html, body { color: var(--oat) !important; }
.bg-white, .bg-white.rounded-xl, .bg-white.rounded-2xl, .bg-white.rounded-3xl {
  background: linear-gradient(145deg, rgba(29,74,53,.42), rgba(4,5,7,.97)) !important;
}
.modal-content, .modal-content-wide, [id$="Modal"] > div {
  background: linear-gradient(145deg, rgba(29,74,53,.38), rgba(4,5,7,.99)) !important;
  border-color: rgba(238,229,212,.22) !important;
}

/* Primary actions: forest surface + oat ink (never a white pill). */
.bg-blue-600, .bg-blue-700, .bg-blue-500, .bg-blue-400,
.bg-indigo-600, .bg-indigo-500,
a[class*="from-blue-"], button[class*="from-blue-"] {
  background: linear-gradient(145deg, var(--forest-hover), var(--forest)) !important;
  color: var(--oat) !important;
  border-color: rgba(238,229,212,.25) !important;
}
.hover\:bg-blue-700:hover, .bg-blue-600:hover,
.hover\:bg-indigo-600:hover, .bg-indigo-600:hover,
a[class*="from-blue-"]:hover, button[class*="from-blue-"]:hover {
  background: var(--forest-hover) !important;
  color: var(--oat) !important;
}
[id$="Modal"] .bg-blue-600, [id$="Modal"] a.bg-blue-600, [id$="Modal"] button.bg-blue-600 {
  background: var(--forest) !important;
  color: var(--oat) !important;
  border-color: rgba(238,229,212,.35) !important;
}
[id$="Modal"] .bg-blue-600:hover, [id$="Modal"] a.bg-blue-600:hover, [id$="Modal"] button.bg-blue-600:hover {
  background: var(--forest-hover) !important;
  color: var(--oat) !important;
}

/* Links and selected states use a light forest tint for readable contrast. */
.text-blue-600, .text-blue-700, .text-blue-800, .text-blue-900,
.text-blue-100, .text-blue-300, .text-indigo-100, .text-indigo-200,
.nav-link.active, .tab-link.active, .text-emerald-700, .text-green-700 {
  color: var(--forest-ink) !important;
}
.tier-card.is-selected, .oem-row-grouped, .cat-chip, .badge-oem, .badge-unlocked {
  background-color: rgba(29,74,53,.38) !important;
  border-color: rgba(155,199,178,.35) !important;
  color: var(--oat) !important;
}
[id$="Modal"] .bg-emerald-50, [id$="Modal"] .bg-emerald-50\/60,
[id$="Modal"] .hover\:bg-emerald-50:hover { background: rgba(29,74,53,.35) !important; }

/* Tomato red only for error / destructive signals (the 10%). */
.text-red-600, .text-red-700, .text-rose-600, .text-rose-700,
.hover\:text-red-600:hover, .hover\:text-red-700:hover { color: var(--tomato) !important; }
.bg-red-50, .bg-rose-50, .hover\:bg-red-50:hover { background-color: rgba(242,70,46,.12) !important; }
.bg-red-600, .bg-rose-600 { background-color: var(--tomato) !important; color: var(--oat) !important; }
.focus\:outline-none:focus { outline-color: var(--forest-ink) !important; }
