/* ==========================================================================
   SENSGEO — Subsurface Sensing Systems
   Design System & Stylesheet (Dark-First Precision Instrumentation + Light Mode)
   ========================================================================== */

:root {
  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  /* Brand Orange (derived directly from official SENSGEO brand sheet) */
  --orange-500: #F25C05;
  --orange-400: #FF7828;
  --orange-600: #D14C00;
  --orange-soft: rgba(242, 92, 5, 0.14);
  --orange-glow: rgba(242, 92, 5, 0.28);

  --cyan-400: #38BDF8;
  --cyan-soft: rgba(56, 189, 248, 0.14);
  --green-400: #34D399;
  --green-soft: rgba(52, 211, 153, 0.14);
  --amber-400: #FBBF24;
  --amber-soft: rgba(251, 191, 36, 0.14);
  --red-400: #F87171;
  --red-soft: rgba(248, 113, 113, 0.15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --container-max: 1240px;
  --header-h: 74px;
  --transition: 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* DARK THEME (DEFAULT — Official Primary Brand Surface) */
[data-theme="dark"] {
  color-scheme: dark;
  --bg-canvas: #0B0E12;
  --bg-alt: #10141B;
  --bg-surface: #151B24;
  --bg-elevated: #1B2330;
  --bg-header: rgba(11, 14, 18, 0.84);
  --text-primary: #F3F5F8;
  --text-secondary: #A6B1C0;
  --text-muted: #768395;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --grid-line: rgba(255, 255, 255, 0.035);
  --shadow-card: 0 18px 40px -20px rgba(0, 0, 0, 0.72);
  --shadow-modal: 0 32px 80px rgba(0, 0, 0, 0.85);
}

/* LIGHT THEME (Official Light Background Brand Variation) */
[data-theme="light"] {
  color-scheme: light;
  --bg-canvas: #F6F8FA;
  --bg-alt: #ECEFF4;
  --bg-surface: #FFFFFF;
  --bg-elevated: #F1F4F8;
  --bg-header: rgba(255, 255, 255, 0.88);
  --text-primary: #141920;
  --text-secondary: #435061;
  --text-muted: #64748B;
  --border-subtle: rgba(20, 25, 32, 0.09);
  --border-strong: rgba(20, 25, 32, 0.18);
  --grid-line: rgba(20, 25, 32, 0.045);
  --shadow-card: 0 16px 34px -18px rgba(15, 23, 42, 0.16);
  --shadow-modal: 0 24px 64px rgba(15, 23, 42, 0.25);
  --orange-soft: rgba(242, 92, 5, 0.1);
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 220ms ease, color 220ms ease;
}

img, svg, canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.12em 0.42em;
  border-radius: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.mono {
  font-family: var(--font-mono);
}

.text-accent {
  color: var(--orange-500);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--orange-500);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
}

/* LOGO THEME SWAPPING */
[data-theme="dark"] .logo-for-light { display: none; }
[data-theme="light"] .logo-for-dark { display: none; }

.container {
  width: min(100% - 40px, var(--container-max));
  margin-inline: auto;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
  padding-block: 4px;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--text-primary);
}
.nav-list a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.lang-btn {
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-btn.is-active {
  background: var(--orange-500);
  color: #fff;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.header-cta {
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

.mobile-menu-btn {
  display: none;
}

.mobile-nav {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0 22px;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-nav-inner a:not(.btn) {
  padding: 8px 4px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-sm { padding: 8px 14px; font-size: 0.84rem; }
.btn-lg { padding: 13px 24px; font-size: 0.96rem; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--orange-500);
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--orange-glow);
}
.btn-primary:hover {
  background: var(--orange-400);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--orange-500);
  color: var(--orange-500);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding-inline: 10px;
}
.btn-ghost:hover {
  color: var(--orange-500);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-accent { background: var(--orange-soft); color: var(--orange-500); border: 1px solid rgba(242, 92, 5, 0.35); }
.badge-secondary { background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.badge-muted { background: transparent; color: var(--text-muted); border: 1px solid var(--border-subtle); }
.badge-cyan { background: var(--cyan-soft); color: var(--cyan-400); border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-amber { background: var(--amber-soft); color: var(--amber-400); border: 1px solid rgba(251, 191, 36, 0.35); }

[data-theme="light"] .badge-amber { color: #B45309; }
[data-theme="light"] .badge-cyan { color: #0369A1; }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding: 68px 0 76px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px),
    radial-gradient(circle at 74% 36%, rgba(242, 92, 5, 0.14), transparent 52%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 4px var(--orange-soft);
  animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px var(--orange-soft); }
  50% { box-shadow: 0 0 0 8px rgba(242, 92, 5, 0); }
}

.hero-title {
  font-size: clamp(2.25rem, 4.2vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-slogan {
  font-size: 0.96rem;
  color: var(--orange-500);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 56ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item dt {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.metric-item dd {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* HERO INSTRUMENT PANEL (RADARGRAM) */
.hero-instrument {
  background: #0F131A;
  color: #EEF2F7;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 64px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(242, 92, 5, 0.15);
  overflow: hidden;
}

.instrument-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: #151B24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.instrument-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-sim {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.16);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.instrument-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-select,
.mini-btn {
  background: #0D1117;
  color: #DCE3EC;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 0.7rem;
  cursor: pointer;
}

.mini-btn[aria-pressed="true"] {
  border-color: rgba(242, 92, 5, 0.65);
  color: #FF8C42;
}

.instrument-screen {
  position: relative;
  background: #080A0E;
  cursor: crosshair;
}

#radargram-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.watermark-overlay {
  position: absolute;
  bottom: 30px;
  left: 52px;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  color: rgba(251, 191, 36, 0.82);
  background: rgba(8, 10, 14, 0.78);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  pointer-events: none;
}

.instrument-footer {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 11px 16px;
  background: #141922;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
}

.telemetry-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.t-label {
  font-size: 0.62rem;
  color: #7D899B;
  letter-spacing: 0.06em;
}
.t-val {
  font-weight: 600;
  color: #F3F5F8;
}

/* ==========================================================================
   PRIORITY RIBBON
   ========================================================================== */
.priority-ribbon {
  background: var(--bg-surface);
  border-block: 1px solid var(--border-subtle);
  padding: 20px 0;
}

.ribbon-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.priority-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.priority-chain li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.priority-chain li:not(:last-child)::after {
  content: "→";
  margin-left: 10px;
  color: var(--orange-500);
  font-family: var(--font-mono);
}

.step-num {
  font-size: 0.72rem;
  color: var(--orange-500);
  background: var(--orange-soft);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   SECTIONS COMMON
   ========================================================================== */
.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border-subtle);
}

.section-head {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-code {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--orange-500);
  margin-bottom: 10px;
}
.section-head-row .section-code {
  margin-bottom: 0;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.02rem;
}

/* ==========================================================================
   ECOSYSTEM CARDS
   ========================================================================== */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), transform var(--transition);
}

.product-card:hover {
  border-color: rgba(242, 92, 5, 0.45);
  transform: translateY(-2px);
}

.product-flagship {
  grid-column: 1 / -1;
  border-color: rgba(242, 92, 5, 0.35);
  background:
    radial-gradient(circle at 92% 10%, rgba(242, 92, 5, 0.08), transparent 45%),
    var(--bg-surface);
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.repo-tag {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.flagship-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}

.product-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
}
.product-flagship h3 {
  font-size: 1.9rem;
}

.product-tagline {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--orange-500);
  margin-top: 4px;
}

.product-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-top: 10px;
}

.spec-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 22px;
}

.spec-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spec-k {
  font-size: 0.66rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.spec-v {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-specs {
  list-style: none;
  margin: auto 0 6px;
  padding: 12px 0 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.76rem;
}

.card-specs li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.card-specs li span:first-child {
  color: var(--text-muted);
}
.card-specs li span:last-child {
  color: var(--text-primary);
  text-align: right;
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

/* TECHNICAL SCHEMATIC SVGs */
.schematic-box,
.card-schematic-mini {
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}

.schematic-svg {
  width: 100%;
  height: auto;
}

.svg-ground { stroke: var(--text-muted); stroke-width: 1.5; }
.svg-frame { fill: var(--bg-surface); stroke: var(--border-strong); stroke-width: 1.2; }
.svg-frame-accent { fill: var(--bg-surface); stroke: var(--orange-500); stroke-width: 1.4; }
.svg-accent-fill { fill: var(--orange-500); }
.svg-stroke-fill { fill: var(--text-secondary); opacity: 0.85; }
.svg-dim { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.svg-dashed { stroke: var(--amber-400); stroke-width: 1.4; stroke-dasharray: 4 3; }
.svg-ray-accent { fill: none; stroke: var(--orange-500); stroke-width: 2; }
.svg-target { fill: rgba(242, 92, 5, 0.18); stroke: var(--orange-500); stroke-width: 1.5; }
.svg-mono { font-family: var(--font-mono); font-size: 9.5px; fill: var(--text-muted); }
.svg-bright { fill: var(--text-primary); font-weight: 600; }

/* ==========================================================================
   APPLICATIONS GRID & SOLUTION FINDER
   ========================================================================== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.app-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), transform var(--transition);
}
.app-card:hover {
  border-color: rgba(242, 92, 5, 0.42);
  transform: translateY(-2px);
}

.app-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--orange-soft);
  color: var(--orange-500);
  border: 1px solid rgba(242, 92, 5, 0.3);
  display: grid;
  place-items: center;
  font-size: 0.84rem;
  font-weight: 700;
}

.app-card h3 { font-size: 1.12rem; }
.app-card p { font-size: 0.9rem; color: var(--text-secondary); }

.finder-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 28px;
  background: var(--bg-surface);
  border: 1px solid rgba(242, 92, 5, 0.32);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  align-items: center;
}

.finder-left h3 {
  font-size: 1.45rem;
  margin: 12px 0 8px;
}
.finder-left > p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-bottom: 22px;
}

.finder-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.choice-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.choice-chip.is-active {
  background: var(--orange-soft);
  border-color: var(--orange-500);
  color: var(--orange-500);
}

.finder-result {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.finder-result .panel-heading { margin-bottom: 0; }
.finder-result h4 {
  font-size: 1.32rem;
  color: var(--text-primary);
}
.finder-result > p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.finder-bullets {
  margin: 4px 0 8px;
  padding-left: 18px;
  color: var(--text-primary);
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.finder-bullets li::marker {
  color: var(--orange-500);
}

/* ==========================================================================
   SOFTWARE SHOWCASE CARDS
   ========================================================================== */
.software-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.sw-feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sw-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.sw-header h3 { font-size: 1.42rem; }
.sw-feature-card > p { color: var(--text-secondary); font-size: 0.94rem; }

.sw-list {
  margin: 4px 0 0;
  padding: 16px 0 0 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.sw-list li::marker {
  color: var(--orange-500);
}
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  margin-bottom: 28px;
}

.calc-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.panel-heading {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.control-group {
  margin-bottom: 18px;
}

.control-group > label,
.range-label-row label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.seg-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  transition: all var(--transition);
}
.seg-btn strong {
  font-size: 0.84rem;
  color: var(--text-primary);
}
.seg-btn span {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.seg-btn.is-active {
  border-color: var(--orange-500);
  background: var(--orange-soft);
}
.seg-btn.is-active span {
  color: var(--orange-500);
}

.form-control {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.range-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.range-label-row label { margin-bottom: 0; }
.range-label-row output { font-weight: 700; font-size: 1rem; }

.range-input {
  width: 100%;
  accent-color: var(--orange-500);
  cursor: pointer;
}

.range-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.calc-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.results-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.results-top .panel-heading { margin-bottom: 0; }

.feasibility-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}
.feasibility-pill.state-good { background: var(--green-soft); color: var(--green-400); border: 1px solid rgba(52, 211, 153, 0.35); }
.feasibility-pill.state-warn { background: var(--amber-soft); color: var(--amber-400); border: 1px solid rgba(251, 191, 36, 0.35); }
.feasibility-pill.state-bad  { background: var(--red-soft); color: var(--red-400); border: 1px solid rgba(248, 113, 113, 0.35); }

[data-theme="light"] .feasibility-pill.state-good { color: #047857; }
[data-theme="light"] .feasibility-pill.state-warn { color: #B45309; }
[data-theme="light"] .feasibility-pill.state-bad  { color: #B91C1C; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.kpi-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.kpi-value {
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--text-primary);
}
.kpi-sub {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.budget-meter-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.budget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.budget-header strong { font-size: 1.15rem; }

.budget-bar-track {
  position: relative;
  height: 14px;
  background: var(--bg-canvas);
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  overflow: visible;
  margin-bottom: 8px;
}

.budget-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #34D399, #FBBF24 60%, #F25C05 80%, #EF4444);
  transition: width 240ms ease;
}

.budget-marker {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 2px;
  background: var(--text-primary);
}
.budget-marker span {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.budget-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.budget-note {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* RESPONSIVE TABLE */
.table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.table-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
}
.table-card-head h3 { font-size: 0.84rem; letter-spacing: 0.06em; }

.table-responsive {
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.spec-table th,
.spec-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.spec-table thead th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.spec-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ==========================================================================
   FIELD WORKFLOW
   ========================================================================== */
.workflow-steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.wf-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wf-num {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--orange-500);
  line-height: 1;
}

.wf-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.wf-card h3 { font-size: 1.12rem; }
.wf-card p { font-size: 0.9rem; color: var(--text-secondary); }

.scientific-callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--orange-soft);
  border: 1px solid rgba(242, 92, 5, 0.35);
}

.callout-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--orange-500);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.scientific-callout strong {
  display: block;
  font-size: 0.78rem;
  color: var(--orange-500);
  margin-bottom: 4px;
}

.scientific-callout p {
  font-size: 0.92rem;
  color: var(--text-primary);
}

/* ==========================================================================
   SDS & 8-LAYER ARCHITECTURE
   ========================================================================== */
.sds-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
}

.stack-panel,
.sds-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.arch-layers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arch-layer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.arch-layer-opt {
  border-style: dashed;
  border-color: var(--border-strong);
  opacity: 0.88;
}

.layer-id {
  width: 34px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--orange-soft);
  color: var(--orange-500);
  font-weight: 700;
  font-size: 0.78rem;
}

.arch-layer strong {
  display: block;
  font-size: 0.9rem;
}
.arch-layer span.mono {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.sds-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.binary-frame {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.bf-cell {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bf-magic { border-color: rgba(242, 92, 5, 0.5); background: var(--orange-soft); }
.bf-sync  { border-color: rgba(56, 189, 248, 0.45); background: var(--cyan-soft); }
.bf-crc   { border-color: rgba(52, 211, 153, 0.4); }

.bf-off { font-size: 0.64rem; color: var(--text-muted); }
.bf-cell strong { font-size: 0.76rem; color: var(--text-primary); }
.bf-type { font-size: 0.66rem; color: var(--text-secondary); }

.dataclass-block {
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.dataclass-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.dc-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.dc-chip:hover { border-color: var(--border-strong); color: var(--text-primary); }
.dc-chip.is-active {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: #fff;
}

.dataclass-detail {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}
.dc-meta { font-size: 0.76rem; color: var(--orange-500); font-weight: 600; margin-bottom: 6px; }
.dataclass-detail p { font-size: 0.9rem; color: var(--text-primary); margin-bottom: 8px; }
.dc-rule { font-size: 0.76rem; color: var(--text-muted); }

/* ==========================================================================
   ENGINEERING RULES GRID
   ========================================================================== */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.rule-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-id {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--orange-500);
}
.rule-card h3 { font-size: 1.1rem; }
.rule-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* ==========================================================================
   ROADMAP
   ========================================================================== */
.roadmap-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn.is-active {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: #fff;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rm-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rm-card.is-current {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 1px rgba(242, 92, 5, 0.25);
}
.rm-card[hidden] {
  display: none;
}

.rm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
}
.rm-phase { font-weight: 700; color: var(--orange-500); }
.rm-tag { color: var(--text-muted); }

.rm-card h3 { font-size: 1.06rem; }
.rm-card p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: auto; }

.rm-status {
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}
.status-active { color: var(--green-400); font-weight: 700; }
[data-theme="light"] .status-active { color: #047857; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: start;
}

.contact-lead {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.collab-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.collab-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.collab-dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--orange-500);
  flex-shrink: 0;
}
.collab-list strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.collab-list span { font-size: 0.88rem; color: var(--text-secondary); }

.brand-card-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}
.mini-ikon { width: 38px; height: auto; }

.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: border-color var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.field-error {
  font-size: 0.78rem;
  color: var(--red-400);
  min-height: 1em;
}
[data-theme="light"] .field-error { color: #B91C1C; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.form-feedback {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  padding: 54px 0 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr);
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 12px;
}

.footer-slogan {
  color: var(--orange-500);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 36ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-cols h4 {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-cols a:hover {
  color: var(--orange-500);
}

.footer-meta {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   NATIVE <DIALOG> MODAL
   ========================================================================== */
.tech-modal {
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  color: var(--text-primary);
  width: min(760px, calc(100vw - 32px));
  max-height: min(86vh, 840px);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
}

.tech-modal::backdrop {
  background: rgba(5, 8, 12, 0.76);
  backdrop-filter: blur(6px);
}

.modal-shell {
  display: flex;
  flex-direction: column;
  max-height: min(86vh, 840px);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.modal-header h3 {
  font-size: 1.5rem;
  margin-top: 8px;
}
.modal-subtitle {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 4px;
}

.modal-body {
  padding: 24px 26px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-section h4 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--orange-500);
  margin-bottom: 10px;
}

.modal-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
}

.modal-limits {
  background: var(--orange-soft);
  border: 1px solid rgba(242, 92, 5, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
}

/* ==========================================================================
   SCROLL REVEAL & REDUCED MOTION
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-dot { animation: none; }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1060px) {
  .primary-nav, .header-cta { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .hero-layout,
  .flagship-body,
  .finder-card,
  .software-grid,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .ecosystem-grid,
  .apps-grid,
  .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workflow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .section { padding: 58px 0; }
  .hero { padding: 42px 0 54px; }
  .ecosystem-grid,
  .apps-grid,
  .rules-grid,
  .workflow-steps,
  .form-row,
  .spec-pills,
  .footer-cols {
    grid-template-columns: 1fr;
  }
  .finder-card { padding: 22px; }
  .instrument-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* ==========================================================================
   DIRECT CONTACT CARD, SOCIAL ICONS, PRODUCTS CATALOG & ADMIN CMS STYLES
   ========================================================================== */
.nav-list a.is-current {
  color: var(--text-primary);
}
.nav-list a.is-current::after {
  transform: scaleX(1);
}

.contact-direct-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cd-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.cd-row:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}
.cd-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.cd-val {
  font-size: 0.92rem;
  font-weight: 600;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.contact-direct-card .social-row {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}
.social-icon-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.social-icon-link:hover {
  border-color: var(--orange-500);
  color: var(--orange-500);
  transform: translateY(-1px);
}

/* ---- PRODUCTS CATALOG PAGE (urunler.html) ---- */
.page-banner {
  position: relative;
  padding: 58px 0 44px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.page-banner-inner {
  position: relative;
}
.page-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.page-subtitle {
  color: var(--text-secondary);
  max-width: 68ch;
  margin-bottom: 28px;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.catalog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.catalog-search {
  width: min(320px, 100%);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.catalog-search:focus {
  outline: none;
  border-color: var(--orange-500);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.catalog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), transform var(--transition);
}
.catalog-card:hover {
  border-color: rgba(242, 92, 5, 0.45);
  transform: translateY(-2px);
}

.catalog-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0D1117;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
}
.catalog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}
.catalog-card:hover .catalog-media img {
  transform: scale(1.03);
}
.catalog-img-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.64rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(8, 10, 14, 0.78);
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.catalog-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 14, 18, 0.85);
}

.catalog-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.price-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
}
.price-pill.is-quote {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}
.price-pill.is-priced {
  background: var(--orange-soft);
  color: var(--orange-500);
  border: 1px solid rgba(242, 92, 5, 0.35);
}

.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.catalog-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.quote-cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid rgba(242, 92, 5, 0.35);
}
.quote-cta-box h2 { font-size: 1.6rem; margin-bottom: 8px; }
.quote-cta-box p { color: var(--text-secondary); max-width: 56ch; }
.quote-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.product-detail-modal { width: min(820px, calc(100vw - 32px)); }
.detail-hero-media {
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #0D1117;
}
.detail-hero-media img { width: 100%; height: auto; max-height: 360px; aspect-ratio: 16 / 9; object-fit: cover; }
.detail-price-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}
.detail-price-val {
  display: block;
  font-size: 1.25rem;
  color: var(--orange-500);
}
.detail-desc { color: var(--text-secondary); font-size: 0.96rem; }

/* ---- ADMIN CMS STYLES (admin.html) ---- */
.admin-main { padding: 36px 0 72px; min-height: calc(100vh - var(--header-h)); }
.admin-login-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 100px);
  padding: 20px;
}
.admin-login-card {
  width: min(440px, 100%);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-login-card h1 { font-size: 1.6rem; }
.admin-form { display: flex; flex-direction: column; gap: 14px; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-card strong { font-size: 1.8rem; }

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}
.admin-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.admin-tab.is-active {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: #fff;
}
.tab-pill {
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
}

.admin-toast {
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  border: 1px solid rgba(52, 211, 153, 0.4);
  font-weight: 600;
  font-size: 0.9rem;
}
.admin-toast.is-error {
  background: var(--red-soft);
  border-color: rgba(248, 113, 113, 0.45);
}

.panel-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.panel-bar h2 { font-size: 1.4rem; margin-bottom: 4px; }

.table-thumb {
  width: 72px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: #0D1117;
}
.table-actions { display: flex; gap: 6px; }
.btn-danger:hover { color: var(--red-400); }

.admin-settings-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-product-modal { width: min(860px, calc(100vw - 32px)); }
.upload-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
}
.upload-thumb {
  width: 128px;
  height: 76px;
  object-fit: cover;
  border-radius: 6px;
  background: #0D1117;
}
.upload-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 220px;
}
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 6px; }
.checkbox-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; }

.messages-list { display: flex; flex-direction: column; gap: 14px; }
.msg-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg-card.is-unread { border-left: 3px solid var(--orange-500); }
.msg-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.msg-badges { display: flex; gap: 6px; align-items: flex-start; }
.msg-body { color: var(--text-primary); font-size: 0.94rem; white-space: pre-wrap; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 900px) {
  .catalog-grid,
  .admin-stats,
  .form-row-3 {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   REDESIGNED ARCHITECTURAL CONTACT HUB (#iletisim & urun.html)
   ========================================================================== */
.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px),
    radial-gradient(circle at 82% 24%, rgba(242, 92, 5, 0.11), transparent 46%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  pointer-events: none;
}

.contact-container {
  position: relative;
}

.contact-hub {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 28px;
  align-items: start;
}

.contact-hub-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-tiles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), transform var(--transition);
}
.contact-tile:hover {
  border-color: rgba(242, 92, 5, 0.42);
  transform: translateY(-1px);
}
.contact-tile-accent {
  border-color: rgba(242, 92, 5, 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 92, 5, 0.08), transparent 55%),
    var(--bg-surface);
}

.ct-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--orange-soft);
  border: 1px solid rgba(242, 92, 5, 0.32);
  color: var(--orange-500);
  display: grid;
  place-items: center;
}

.ct-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.ct-label {
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}
.ct-val {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}
a.ct-val:hover {
  color: var(--orange-500);
}

.ct-coord {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.copy-pill {
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.copy-pill:hover {
  border-color: var(--orange-500);
  color: var(--orange-500);
}
.copy-pill.is-copied {
  background: var(--green-soft);
  border-color: rgba(52, 211, 153, 0.45);
  color: var(--green-400);
}
[data-theme="light"] .copy-pill.is-copied { color: #047857; }

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-mini {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}
.ch-num {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--orange-500);
  background: var(--orange-soft);
  padding: 3px 7px;
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 2px;
}
.channel-mini strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}
.channel-mini p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-brand-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ELEVATED FORM SHELL */
.contact-form-pro {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cf-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 22px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}
.cf-top-left {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  color: var(--text-primary);
}
.cf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.cf-status {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.cf-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.topic-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.topic-pill.is-active {
  background: var(--orange-soft);
  border-color: var(--orange-500);
  color: var(--orange-500);
}

/* ==========================================================================
   DEDICATED PRODUCT DETAIL PAGE (urun.html)
   ========================================================================== */
.catalog-title-link:hover {
  color: var(--orange-500);
}

.pd-hero {
  position: relative;
  padding: 36px 0 68px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.pd-hero-inner {
  position: relative;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.breadcrumb a:hover {
  color: var(--orange-500);
}

.pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 40px;
  align-items: center;
}

.pd-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(242, 92, 5, 0.28);
  background: #0D1117;
  box-shadow: 0 28px 64px -22px rgba(0, 0, 0, 0.7);
}
.pd-image-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pd-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.pd-trust-strip span {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.pd-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
}

.pd-tagline {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--orange-500);
}

.pd-short-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

.pd-price-box {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-block: 6px;
}
.pd-price-val {
  display: block;
  font-size: 1.4rem;
  color: var(--orange-500);
  margin-top: 2px;
}
.pd-price-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pd-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.pd-details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: start;
}

.pd-full-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}

.pd-note-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--orange-soft);
  border: 1px solid rgba(242, 92, 5, 0.34);
}
.pd-note-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--orange-500);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.pd-note-box strong {
  display: block;
  font-size: 0.74rem;
  color: var(--orange-500);
  margin-bottom: 4px;
}
.pd-note-box p {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.pd-feature-cards {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.94rem;
  color: var(--text-primary);
}
.pd-feat-num {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--orange-500);
  background: var(--orange-soft);
  padding: 3px 8px;
  border-radius: 5px;
  flex-shrink: 0;
}

.pd-quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 32px;
  align-items: start;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.related-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), transform var(--transition);
}
.related-card:hover {
  border-color: rgba(242, 92, 5, 0.45);
  transform: translateY(-2px);
}
.related-media {
  aspect-ratio: 16 / 9;
  background: #0D1117;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}
.related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}
.related-card:hover .related-media img {
  transform: scale(1.04);
}
.related-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.related-body h3 { font-size: 1.16rem; }
.related-link {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange-500);
}

@media (max-width: 1020px) {
  .contact-hub,
  .pd-grid,
  .pd-details-layout,
  .pd-quote-layout {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .related-grid,
  .pd-trust-strip {
    grid-template-columns: 1fr;
  }
  .ct-coord { display: none; }
}


/* ==========================================================================
   MULTI-IMAGE PRODUCT GALLERY (urun.html) & ADMIN GALLERY MANAGER
   ========================================================================== */
.catalog-multi-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(11, 14, 18, 0.85);
  color: #F3F5F8;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.pd-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(11, 14, 18, 0.78);
  color: #F3F5F8;
  font-size: 1.45rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 3;
}
.pd-nav-btn:hover {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: #fff;
}
.pd-nav-prev { left: 12px; }
.pd-nav-next { right: 12px; }

.pd-counter {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(8, 10, 14, 0.8);
  color: #F3F5F8;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.pd-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-thumb {
  width: 84px;
  height: 52px;
  padding: 0;
  border-radius: 7px;
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  background: #0D1117;
  cursor: pointer;
  opacity: 0.72;
  transition: all var(--transition);
}
.pd-thumb:hover {
  opacity: 1;
  border-color: var(--border-strong);
}
.pd-thumb.is-active {
  opacity: 1;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 2px var(--orange-soft);
}
.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FULLSCREEN LIGHTBOX */
.pd-lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(92vw, 1280px);
  max-height: 90vh;
  overflow: visible;
  position: relative;
}
.pd-lightbox::backdrop {
  background: rgba(5, 8, 12, 0.9);
  backdrop-filter: blur(8px);
}
.pd-lightbox img {
  max-width: min(90vw, 1240px);
  max-height: 85vh;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.85);
}
.pd-lb-close {
  position: absolute;
  top: -16px;
  right: -16px;
  background: #141922;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  z-index: 4;
}

/* ADMIN MULTI-IMAGE GALLERY MANAGER */
.table-thumb-wrap {
  position: relative;
  display: inline-block;
}
.thumb-count {
  position: absolute;
  bottom: -4px;
  right: -5px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--orange-500);
  color: #fff;
}

.gallery-manager {
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gm-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 10px;
}

.gm-empty {
  grid-column: 1 / -1;
  padding: 18px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
}

.gm-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #0D1117;
  aspect-ratio: 16 / 10;
}
.gm-item.is-cover {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 1px rgba(242, 92, 5, 0.35);
}
.gm-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gm-cover-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--orange-500);
  color: #fff;
}

.gm-item-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 3px;
  padding: 4px;
  background: linear-gradient(transparent, rgba(5, 8, 12, 0.88));
}

.gm-btn {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: rgba(15, 20, 28, 0.85);
  color: #F3F5F8;
  font-size: 0.74rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.gm-btn:hover {
  border-color: var(--orange-500);
  color: var(--orange-500);
}
.gm-btn-del:hover {
  border-color: var(--red-400);
  color: var(--red-400);
}

.gm-url-row {
  display: flex;
  gap: 8px;
}
.gm-url-row input {
  flex: 1;
}
