/* ============ Tokens ============ */
:root {
  --bg: #FAFAFC;
  --bg-alt: #F1F2F6;
  --surface: #FFFFFF;
  --surface-hover: #F8FAFC;
  --border-glass: rgba(20, 22, 26, 0.08);
  --ink: #14161A;
  --ink-soft: #5B6270;
  --ink-faint: #9297A3;
  --line: #E4E7EC;
  --accent-a: #2F6BFF;
  --accent-b: #17C3B2;
  --accent-a-soft: #EAF0FF;
  --accent-b-soft: #E7FBF7;
  --accent-blue: #2F6BFF;
  --accent-violet: #8B5CF6;
  --danger: #FF5D5D;
  --danger-soft: #FFEDEE;
  --amber: #F5A524;
  --success: #10B981;
  --radius-l: 28px;
  --radius-m: 18px;
  --radius-s: 12px;
  --shadow-soft: 0 1px 2px rgba(20, 22, 26, 0.04), 0 12px 32px -16px rgba(20, 22, 26, 0.14);
  --shadow-lift: 0 4px 10px rgba(20, 22, 26, 0.06), 0 24px 48px -20px rgba(20, 22, 26, 0.22);
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

[data-theme="dark"] {
  --bg: #080A0F;
  --bg-alt: #0D1017;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-hover: rgba(255, 255, 255, 0.085);
  --border-glass: rgba(255, 255, 255, 0.09);
  --ink: #F5F7FA;
  --ink-soft: rgba(245, 247, 250, 0.65);
  --ink-faint: rgba(245, 247, 250, 0.38);
  --line: rgba(255, 255, 255, 0.09);
  --accent-a: #5AC8FA;
  --accent-b: #A78BFA;
  --accent-a-soft: rgba(90, 200, 250, 0.14);
  --accent-b-soft: rgba(167, 139, 250, 0.14);
  --accent-blue: #5AC8FA;
  --accent-violet: #A78BFA;
  --danger: #FF453A;
  --danger-soft: rgba(255, 69, 58, 0.16);
  --amber: #FFD60A;
  --success: #30D158;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 20px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* ============ View Transitions API Circular Reveal ============ */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  z-index: 1;
}

::view-transition-new(root) {
  z-index: 99999;
  animation: reveal-theme 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes reveal-theme {
  from {
    clip-path: circle(0% at var(--toggle-x, 50%) var(--toggle-y, 50%));
  }
  to {
    clip-path: circle(150% at var(--toggle-x, 50%) var(--toggle-y, 50%));
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

img,
svg {
  display: block;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2.5px solid var(--accent-a);
  outline-offset: 3px;
  border-radius: 6px;
}

.grad-text {
  background: linear-gradient(100deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* subtle grain to keep flat surfaces from feeling sterile */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink-faint);
  background: var(--bg-alt);
}

.btn-nav {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-small {
  padding: 9px 16px;
  font-size: 13px;
}

.btn-wide {
  flex: 1;
  padding: 15px 24px;
  font-size: 15px;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
}

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(250, 250, 252, 0.92);
  border-bottom: 1px solid rgba(228, 231, 236, 0.9);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

main#top,
body > main {
  padding-top: 56px;
}

.nav-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ============ Apple 2027 Magic Theme Toggle ============ */
.theme-magic-toggle {
  position: relative;
  width: 44px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  outline: none;
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.magic-toggle-glass {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(20, 22, 26, 0.05);
  border: 1px solid rgba(20, 22, 26, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.theme-magic-toggle:hover .magic-toggle-glass {
  background: rgba(20, 22, 26, 0.08);
  border-color: rgba(47, 107, 255, 0.3);
  box-shadow: 0 0 12px rgba(47, 107, 255, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transform: scale(1.04);
}

.theme-magic-toggle:active .magic-toggle-glass {
  transform: scale(0.96);
}

.magic-celestial-orbit {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.celestial-sun {
  position: absolute;
  width: 17px;
  height: 17px;
  color: #F59E0B;
  stroke: #F59E0B;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 1;
  transform: scale(1) rotate(0deg);
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4));
}

.celestial-moon {
  position: absolute;
  width: 16px;
  height: 16px;
  color: #5AC8FA;
  stroke: #5AC8FA;
  fill: rgba(90, 200, 250, 0.2);
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: scale(0.4) rotate(-60deg);
  filter: drop-shadow(0 0 6px rgba(90, 200, 250, 0.5));
}

.magic-stars-cluster {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.magic-stars-cluster .star {
  position: absolute;
  color: #A78BFA;
  font-size: 8px;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  transform: scale(0);
}

.magic-stars-cluster .star-1 { top: 4px; left: 5px; font-size: 7px; color: #5AC8FA; }
.magic-stars-cluster .star-2 { bottom: 5px; left: 8px; font-size: 9px; color: #E0E7FF; }
.magic-stars-cluster .star-3 { top: 4px; right: 6px; font-size: 6px; color: #C084FC; }
.magic-stars-cluster .star-4 { bottom: 5px; right: 6px; font-size: 8px; color: #5AC8FA; }

/* In Dark Theme state for Toggle */
[data-theme="dark"] .magic-toggle-glass {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .theme-magic-toggle:hover .magic-toggle-glass {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(90, 200, 250, 0.4);
  box-shadow: 0 0 16px rgba(90, 200, 250, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .celestial-sun {
  opacity: 0;
  transform: scale(0.3) rotate(90deg);
}

[data-theme="dark"] .celestial-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

[data-theme="dark"] .magic-stars-cluster {
  opacity: 1;
}

[data-theme="dark"] .magic-stars-cluster .star {
  transform: scale(1);
}

[data-theme="dark"] .magic-stars-cluster .star-1 { animation: star-twinkle 3s ease-in-out infinite alternate 0.2s; }
[data-theme="dark"] .magic-stars-cluster .star-2 { animation: star-twinkle 2.5s ease-in-out infinite alternate 0.7s; }
[data-theme="dark"] .magic-stars-cluster .star-3 { animation: star-twinkle 3.2s ease-in-out infinite alternate 0.4s; }
[data-theme="dark"] .magic-stars-cluster .star-4 { animation: star-twinkle 2.8s ease-in-out infinite alternate 1.1s; }

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color .15s, background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

.nav-links a.active {
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.09), rgba(23, 195, 178, 0.1));
  border-color: rgba(47, 107, 255, 0.28);
  color: var(--accent-a);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(47, 107, 255, 0.08);
}

.nav-magic-pill {
  position: relative;
}

.btn-nav {
  padding: 8px 16px;
  font-size: 13px;
  flex-shrink: 0;
}

/* ============ Hero ============ */
.hero {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 88px 28px 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  min-width: 0;
  box-sizing: border-box;
}

.hero-copy {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-a);
  margin: 0 0 14px;
  overflow-wrap: break-word;
}

.hero h1 {
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 22px;
  overflow-wrap: break-word;
  word-break: normal;
}

.hero-sub {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 32px;
  overflow-wrap: break-word;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  min-width: 0;
  box-sizing: border-box;
}

.hero-trust {
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.45;
  overflow-wrap: break-word;
}

/* ============ Apple-Style macOS Live Demonstration Stage ============ */
.hero-stage-wrapper {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  box-sizing: border-box;
}

.mac-window-card {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 24px 48px -12px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mac-window-card:hover {
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 32px 56px -12px rgba(15, 23, 42, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.mac-ambient-glow {
  position: absolute;
  inset: -30% -30% auto -30%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.14), rgba(13, 148, 136, 0.10) 45%, transparent 75%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 1;
}

/* Chrome Header */
.mac-chrome-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  position: relative;
  z-index: 2;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mac-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.mac-dot {
  width: 10.5px;
  height: 10.5px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.15) inset;
}
.mac-dot.r { background: #ff5f57; }
.mac-dot.y { background: #febc2e; }
.mac-dot.g { background: #28c840; }

/* Moat Scenario Tabs in Chrome Header */
.mac-scenario-tabs {
  display: flex;
  gap: 4px;
  background: rgba(15, 23, 42, 0.04);
  padding: 3px;
  border-radius: 9px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 1;
}
.mac-scenario-tabs::-webkit-scrollbar { display: none; }

.mac-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--ink-soft);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mac-tab-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.mac-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.mac-tab-btn .tab-icon {
  font-size: 12px;
}

.moat-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 1px 5px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(13, 148, 136, 0.12));
  color: #0d9488;
  text-transform: uppercase;
}

.mac-tab-btn.active .moat-badge {
  background: linear-gradient(135deg, #2563eb, #0d9488);
  color: #ffffff;
}

.mac-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
  background: rgba(241, 245, 249, 0.9);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  flex-shrink: 0;
}

.status-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-indicator 2s infinite ease-in-out;
}

/* Stage Progress Bar */
.mac-progress-bar {
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #0d9488);
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.5);
  transition: width 0.08s linear;
}

/* Canvas Body */
.mac-stage-body {
  padding: 18px 18px 16px;
  position: relative;
  z-index: 2;
  min-height: 260px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.stage-scenario-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  min-width: 0;
  gap: 8px;
}

.stage-file-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #14889b;
  background: #e6f7f8;
  padding: 3px 9px;
  border-radius: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-moat-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0f766e;
  background: #ccfbf1;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Before / After Split View */
.stage-split-grid {
  display: grid;
  grid-template-columns: 1fr auto 1.08fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.stage-panel {
  border-radius: 11px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.stage-panel-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  gap: 6px;
  min-width: 0;
}

.stage-panel-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-panel.before .stage-panel-title { color: #ea580c; }
.stage-panel.after .stage-panel-title { color: #0d9488; }

.stage-panel-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.stage-panel.before .stage-panel-badge {
  background: #fee2e2;
  color: #b91c1c;
}
.stage-panel.after .stage-panel-badge {
  background: #dcfce7;
  color: #15803d;
}

/* Rows in tables */
.stage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-family: var(--font-mono);
  margin-bottom: 4px;
  line-height: 1.25;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.stage-panel.before .stage-row {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.stage-panel.before .stage-row.is-bad {
  background: #fff5f5;
  border-color: #fed7d7;
  color: #9b2c2c;
}

.stage-panel.before .stage-row .row-col1 {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}
.stage-panel.before .stage-row .row-col2 {
  color: #e53e3e;
  font-weight: 600;
  font-size: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.stage-panel.after .stage-row {
  background: #ffffff;
  border: 1px solid rgba(13, 148, 136, 0.15);
  box-shadow: 0 1px 3px rgba(13, 148, 136, 0.04);
  opacity: 0;
  transform: translateY(4px);
  animation: stageReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stage-panel.after .stage-row.r1 { animation-delay: 0.12s; }
.stage-panel.after .stage-row.r2 { animation-delay: 0.26s; }
.stage-panel.after .stage-row.r3 { animation-delay: 0.40s; }

.stage-panel.after .stage-row .row-col1 {
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}
.stage-panel.after .stage-row .row-col2 {
  font-weight: 700;
  color: #0d9488;
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes stageReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stage-summary-chip {
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(13, 148, 136, 0.09));
  border: 1px solid rgba(13, 148, 136, 0.15);
  font-size: 10px;
  font-weight: 700;
  color: #0f766e;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

/* Magic Pulse Center */
.stage-pulse-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.stage-pulse-orb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #0d9488);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.38);
  animation: stagePulseOrb 2.4s ease-in-out infinite;
}

@keyframes stagePulseOrb {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.38);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
  }
}

.stage-pulse-speed {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.02em;
}

/* Stats & CTA Footer */
.mac-stage-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #f8fafc;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  min-width: 0;
  box-sizing: border-box;
}

.mac-live-stat {
  display: flex;
  flex-direction: column;
}

.stat-num-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  background: linear-gradient(90deg, #2563eb, #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.stat-unit {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.stat-desc {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.btn-stage-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-stage-cta:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

.btn-stage-cta:active {
  transform: translateY(0);
}

/* Permanent Zero-Storage Trust Ribbon */
.stage-trust-ribbon {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 11.5px;
  color: #475569;
  background: rgba(240, 253, 250, 0.9);
  border: 1px solid rgba(13, 148, 136, 0.2);
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
  line-height: 1.4;
  min-width: 0;
  box-sizing: border-box;
  word-break: break-word;
}

.stage-trust-ribbon strong {
  color: #0f766e;
}

.stage-trust-ribbon svg {
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-stage-wrapper {
    max-width: 100%;
    margin-top: 8px;
  }
}

@media (max-width: 600px) {
  .mac-chrome-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }
  .mac-dots {
    display: none;
  }
  .mac-scenario-tabs {
    width: 100%;
    max-width: 100%;
  }
  .mac-status-pill {
    align-self: flex-start;
  }
  .stage-split-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .stage-pulse-wrap {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }
  .stage-pulse-orb {
    width: 26px;
    height: 26px;
  }
  .stage-pulse-orb svg {
    width: 12px;
    height: 12px;
  }
  .mac-stage-body {
    padding: 14px 12px;
    min-height: auto;
  }
  .mac-stage-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }
  .btn-stage-cta {
    width: 100%;
    justify-content: center;
  }
  .stage-trust-ribbon {
    font-size: 11px;
    padding: 8px 10px;
  }
}

/* ============ Strip ============ */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.strip p {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
}

.strip-badges {
  display: flex;
  gap: 10px;
}

.strip-badges span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-alt);
  padding: 5px 10px;
  border-radius: 7px;
}

/* ============ Section shared ============ */
.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 12px;
}

.section-sub {
  font-size: 16.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* ============ Tool ============ */
.tool-section {
  max-width: 760px;
  margin: 40px auto 96px;
  padding: 0 28px;
  scroll-margin-top: 90px;
}

.tool-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  overflow: hidden;
}

.dropzone {
  border: 1.5px dashed var(--line);
  border-radius: calc(var(--radius-l) - 10px);
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, background .18s;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent-a);
  background: var(--accent-a-soft);
}

.dropzone-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: var(--bg-alt);
  color: var(--accent-a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.dropzone-link {
  color: var(--accent-a);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dropzone-sub {
  font-size: 13.5px;
  color: var(--ink-faint);
  margin: 0;
}

.tool-loading {
  padding: 64px 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--accent-a);
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.tool-results {
  padding: 20px 16px 12px;
}

.results-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 8px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.results-filename {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 2px;
}

.results-filemeta {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
  font-family: var(--font-mono);
}

.findings {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.finding {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-s);
  background: var(--bg-alt);
  font-size: 14.5px;
}

.finding-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.finding-warn .finding-icon {
  background: var(--danger-soft);
  color: var(--danger);
}

.finding-ok .finding-icon {
  background: var(--accent-b-soft);
  color: #0E9C8C;
}

.finding-error {
  background: #FFF1F1;
}

.finding-error .finding-icon {
  background: #FFE0E0;
  color: #C81E1E;
}

.finding-count {
  font-weight: 700;
  font-family: var(--font-mono);
}

.results-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
  margin-bottom: 20px;
}

.summary-box {
  background: var(--bg-alt);
  border-radius: var(--radius-s);
  padding: 14px 26px;
  text-align: center;
  min-width: 130px;
}

.summary-box-clean {
  background: var(--accent-b-soft);
}

.summary-label {
  display: block;
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.summary-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
}

.summary-arrow {
  color: var(--ink-faint);
  flex-shrink: 0;
}

.results-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.results-note {
  font-size: 12.5px;
  color: var(--ink-faint);
  text-align: center;
  margin: 0;
}

/* ============ Tools grid ============ */
.tools-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 96px 28px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.card-live {
  border-color: #C7DBFF;
  background: var(--accent-a-soft);
}

.card-status {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.status-live {
  color: #0E63F4;
  background: #fff;
}

.card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ============ Pricing ============ */
.pricing {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 28px 100px;
}

.price-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pricing-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1120px) {
  .pricing-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pricing-grid-4 {
    grid-template-columns: 1fr;
  }
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card-featured {
  border-color: var(--ink);
  box-shadow: var(--shadow-lift);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.price-badge-free {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.price-badge-hit {
  background: linear-gradient(135deg, #FF6B00, #FF3B30);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
}

.price-badge-pro {
  background: linear-gradient(135deg, #2F6BFF, #17C3B2);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 14px rgba(47, 107, 255, 0.35);
}

.price-badge-custom {
  background: rgba(245, 165, 36, 0.14);
  color: #D97706;
  border: 1px solid rgba(245, 165, 36, 0.3);
}

.btn-turnkey {
  border-color: #FF9500 !important;
  color: #D97706 !important;
}

.btn-turnkey:hover {
  background: rgba(255, 149, 0, 0.08) !important;
  border-color: #FF9500 !important;
  color: #B45309 !important;
}

.price-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.price-amount {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.price-amount span {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-faint);
}

.price-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 18px;
  line-height: 1.45;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  margin-bottom: 24px;
}

.price-card-action {
  margin-top: auto;
}

.price-list li {
  font-size: 14px;
  padding-left: 22px;
  position: relative;
  color: var(--ink);
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-b-soft);
  box-shadow: inset 0 0 0 3.5px var(--accent-b);
}

/* ============ Pricing: Freemium Banner & PRO Rates ============ */
.pricing-overview-banner {
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.05) 0%, rgba(23, 195, 178, 0.08) 100%);
  border: 1.5px solid rgba(47, 107, 255, 0.22);
  border-radius: var(--radius-l);
  padding: 24px 28px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}

.pricing-banner-badge {
  font-size: 32px;
  line-height: 1;
  background: #fff;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(47, 107, 255, 0.12);
}

.pricing-banner-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}

.pricing-banner-text {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

.pricing-free-tag {
  display: inline-block;
  background: #E6F8F6;
  color: #0E8578;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 6px;
}

.pricing-pro-tag {
  display: inline-block;
  background: #EEF2FF;
  color: #2F6BFF;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 6px;
}

.pricing-rates-block {
  margin-top: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 24px 28px;
}

.pricing-rates-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.pricing-rate-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #F8FAFC;
  border-radius: 10px;
  font-size: 13.5px;
}

.pricing-rate-name {
  font-weight: 500;
  color: var(--ink);
}

.pricing-rate-cost {
  font-weight: 700;
  color: var(--accent-a);
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  background: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

@media (max-width: 680px) {
  .pricing-overview-banner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

/* ============ FAQ (SEO-Optimized & Design Enhanced) ============ */
.faq {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 120px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
  border-color: rgba(47, 107, 255, 0.35);
  box-shadow: 0 6px 20px -4px rgba(47, 107, 255, 0.08);
}

.faq-item[open] {
  border-color: var(--accent-a, #2F6BFF);
  box-shadow: 0 8px 24px -4px rgba(47, 107, 255, 0.12);
  background: var(--surface);
}

.faq-summary {
  cursor: pointer;
  padding: 18px 22px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  display: none !important;
}

.faq-question-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}

.faq-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-a-soft, rgba(47, 107, 255, 0.08));
  color: var(--accent-a, #2F6BFF);
  border: 1px solid rgba(47, 107, 255, 0.2);
  white-space: nowrap;
}

.faq-question {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.faq-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--bg-alt, #F1F4F9);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover .faq-icon {
  background: var(--accent-a-soft, rgba(47, 107, 255, 0.12));
  color: var(--accent-a, #2F6BFF);
}

.faq-item[open] .faq-icon {
  background: var(--accent-a, #2F6BFF);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 22px 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.68;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  margin-top: 2px;
  padding-top: 14px;
}

.faq-answer p {
  margin: 0;
}

.faq-answer strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 640px) {
  .faq {
    padding: 30px 16px 80px;
  }

  .faq-summary {
    padding: 16px 18px;
    gap: 12px;
  }

  .faq-question-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .faq-answer {
    padding: 0 18px 18px 18px;
  }
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 28px 36px;
  background: var(--bg-alt);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  text-align: left;
  margin-bottom: 44px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.footer-col-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col-links li a {
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}

.footer-col-links li a:hover {
  color: var(--accent-a);
  transform: translateX(2px);
}

.footer-brand-wrap {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  text-align: center;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .footer-col-links li a:hover {
    transform: none;
  }
}

.brand-footer {
  justify-content: center;
  margin-bottom: 10px;
}

.footer-tag {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

.footer-copy {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: 0;
}

/* ============ EDI Orders Merger Styles ============ */
.tool-section-wide {
  max-width: 980px;
}

.dropzone-icon-accent {
  background: var(--accent-a-soft);
  color: var(--accent-a);
}

.merge-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .merge-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.orders-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.order-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
}

.chain-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.chain-epicentr {
  background: #FFE8D6;
  color: #D9480F;
}

.chain-silpo {
  background: #FFF3BF;
  color: #D97706;
}

.chain-foodcom {
  background: #E6FCF5;
  color: #0CA678;
}

.chain-atb {
  background: #E7F5FF;
  color: #1971C2;
}

.chain-novus {
  background: #EBFBEE;
  color: #2F9E44;
}

.chain-default {
  background: var(--accent-a-soft);
  color: var(--accent-a);
}

.table-preview-container {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px;
  margin-bottom: 24px;
}

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

.preview-header h4 {
  font-size: 14.5px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

.preview-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-alt);
  padding: 3px;
  border-radius: 8px;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s ease;
}

.tab-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.table-scroll {
  max-height: 380px;
  overflow-x: auto;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
  white-space: nowrap;
}

.preview-table th {
  position: sticky;
  top: 0;
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  z-index: 2;
}

.preview-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.preview-table tr:hover td {
  background: rgba(47, 107, 255, 0.04);
}

.preview-table tr.total-row td {
  font-weight: 700;
  background: var(--bg-alt);
  border-top: 2px solid var(--line);
}

.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ============ Tools Suite ============ */
.suite-tabs-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 1060px;
  margin: 0 auto 28px;
}

.suite-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  text-align: center;
}

.suite-tab-btn:hover {
  border-color: var(--accent-a);
  color: var(--ink);
  transform: translateY(-1px);
}

.suite-tab-btn.active {
  background: var(--accent-a);
  border-color: var(--accent-a);
  color: #fff;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.25);
}

.suite-tab-btn[data-tool="magic"] {
  border-color: rgba(47, 107, 255, 0.35);
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.05), rgba(0, 194, 255, 0.05));
}

.suite-tab-btn[data-tool="magic"]:hover {
  border-color: var(--accent-a);
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.12), rgba(0, 194, 255, 0.12));
}

.suite-tab-btn[data-tool="magic"].active {
  background: var(--accent-a);
  border-color: var(--accent-a);
  color: #fff;
}

.suite-tab-btn .tab-icon {
  font-size: 14.5px;
}

.tool-pane-header {
  padding: 8px 12px 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.tool-pane-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}

.tool-pane-header p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

.dual-dropzone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}

.dropzone-half {
  padding: 32px 18px;
}

/* ============ Magic Tables Comparison UI ============ */
.magic-compare-container {
  margin-bottom: 20px;
}

.magic-compare-head {
  margin-bottom: 14px;
}

.magic-compare-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 6px;
}

.magic-compare-title-row h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.magic-compare-sub {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
}

.magic-compare-mode-toggle {
  display: inline-flex;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 4px;
}

.magic-mode-btn {
  background: transparent;
  border: none;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s ease;
}

.magic-mode-btn.active {
  background: var(--accent-a);
  color: #fff;
  box-shadow: 0 1px 4px rgba(47, 107, 255, 0.25);
}

.magic-file-box {
  display: flex;
  flex-direction: column;
}

.magic-file-loaded-card {
  background: var(--surface);
  border: 1.5px solid var(--accent-a-border, #C7DBFF);
  border-radius: var(--radius-m);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 140px;
  box-shadow: 0 2px 10px rgba(47, 107, 255, 0.05);
}

.magic-file-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--accent-a-soft, #EAF0FF);
  color: var(--accent-a, #2F6BFF);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.magic-file-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
  word-break: break-all;
}

.magic-file-card-meta {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0;
}

.magic-file-sheet-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink);
}

.magic-file-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.magic-two-sheets-box {
  margin-bottom: 12px;
}

.magic-two-sheets-card {
  background: var(--surface);
  border: 1.5px solid var(--accent-a-border, #C7DBFF);
  border-radius: var(--radius-m);
  padding: 16px;
}

.magic-two-sheets-header {
  margin-bottom: 12px;
}

.magic-two-sheets-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.magic-compare-hint {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 12px 0 0;
  padding: 8px 12px;
  background: #FFF9E6;
  border: 1px solid #FFE082;
  border-radius: 8px;
}

.text-danger {
  color: #DC2626 !important;
}

.text-danger:hover {
  background: rgba(220, 38, 38, 0.08) !important;
}

.marketplace-selector-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-m);
}

.marketplace-selector-bar label {
  font-size: 13.5px;
  color: var(--ink);
}

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

.market-pill {
  padding: 6px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}

.market-pill:hover {
  border-color: var(--accent-a);
  color: var(--accent-a);
}

.market-pill.active {
  background: var(--accent-a);
  border-color: var(--accent-a);
  color: #fff;
}

.suite-trigger {
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.suite-trigger:hover {
  transform: translateY(-3px);
  border-color: var(--accent-a);
  box-shadow: var(--shadow-lift);
}

/* Status colors in preview */
.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
}

.status-up {
  background: #FFEAEA;
  color: #D61F1F;
}

.status-down {
  background: #EAFBF0;
  color: #15803D;
}

.status-new {
  background: #EAF0FF;
  color: #2F6BFF;
}

.status-removed {
  background: #F3F4F6;
  color: #6B7280;
}

.status-same {
  background: #F8FAFC;
  color: #94A3B8;
}

/* ============ Magic Tables Component Styles ============ */
.magic-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
}

.magic-meta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.magic-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink);
}

.magic-meta-select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
}

.magic-meta-select:focus {
  border-color: var(--accent-a);
}

.magic-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}

.magic-checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-a);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.magic-op-header {
  margin-bottom: 12px;
}

.magic-op-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.magic-op-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.magic-op-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  text-align: left;
  line-height: 1.2;
}

.magic-op-pill:hover {
  border-color: var(--accent-a);
  color: var(--ink);
  background: var(--accent-a-soft);
}

.magic-op-pill.active {
  background: var(--accent-a);
  border-color: var(--accent-a);
  color: #fff;
  box-shadow: 0 2px 8px rgba(47, 107, 255, 0.25);
}

.magic-op-pill .pill-icon {
  font-size: 14px;
}

.magic-params-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px;
  margin-bottom: 20px;
}

.magic-params-title {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.magic-params-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin: -6px 0 14px;
  line-height: 1.45;
}

.magic-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.magic-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.magic-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.magic-field-input,
.magic-field-select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--ink);
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}

.magic-field-input:focus,
.magic-field-select:focus {
  border-color: var(--accent-a);
  box-shadow: 0 0 0 2px var(--accent-a-soft);
}

.magic-col-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.magic-col-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bg-alt);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  transition: all .12s ease;
}

.magic-col-chip input {
  margin: 0;
  accent-color: var(--accent-a);
}

.magic-col-chip.selected {
  background: var(--accent-a-soft);
  color: var(--accent-a);
  font-weight: 600;
}

.magic-preview-card {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.magic-preview-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.magic-preview-tabs {
  display: flex;
  gap: 6px;
}

.magic-preview-tab {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}

.magic-preview-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.magic-preview-note {
  font-size: 12px;
  color: var(--ink-faint);
}

.magic-table-wrap {
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
  font-size: 12.5px;
  font-family: var(--font-mono);
}

.magic-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.magic-table th {
  position: sticky;
  top: 0;
  background: var(--bg-alt);
  color: var(--ink);
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  white-space: nowrap;
  z-index: 2;
}

.magic-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  white-space: nowrap;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.magic-table tr:hover td {
  background: rgba(47, 107, 255, 0.03);
}

.magic-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.magic-alert-error {
  background: var(--danger-soft);
  color: #C5221F;
  border: 1px solid #F9DEDC;
}

.magic-alert-warn {
  background: #FFF8E1;
  color: #B06000;
  border: 1px solid #FFE082;
}

.card-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-a);
  background: #fff;
  padding: 2px 7px;
  border-radius: 999px;
  margin-right: 6px;
}

.card-arrow {
  display: inline-block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-a);
  transition: transform .15s ease;
}

.card:hover .card-arrow {
  transform: translateX(4px);
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .nav-magic-pill {
    padding: 4px 9px;
    font-size: 12.5px;
  }
}

@media (max-width: 1024px) {
  .suite-tabs-nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .suite-tab-btn {
    font-size: 12px;
    padding: 9px 8px;
  }

  .magic-op-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    gap: 32px;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-presentation,
  .hero-stage {
    margin-top: 16px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-cards {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .magic-op-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .suite-tabs-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .suite-tab-btn {
    font-size: 13px;
    padding: 10px 12px;
  }
}

@media (max-width: 768px) {
  .merge-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .magic-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .dual-dropzone-grid {
    grid-template-columns: 1fr;
  }

  .magic-two-sheets-selects {
    grid-template-columns: 1fr;
  }

  .magic-compare-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 36px 14px 28px;
    gap: 24px;
  }

  .hero h1 {
    font-size: clamp(24px, 6.8vw, 32px);
    line-height: 1.18;
    margin-bottom: 14px;
  }

  .hero-sub {
    font-size: 14.5px;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    flex-direction: column;
  }

  .stage-arrow {
    transform: rotate(90deg);
  }

  .results-actions {
    flex-direction: column;
  }

  .results-summary {
    gap: 12px;
  }

  .summary-box {
    min-width: 110px;
    padding: 12px 16px;
  }

  .magic-op-grid {
    grid-template-columns: 1fr;
  }

  .suite-tabs-nav {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .suite-tab-btn {
    font-size: 12.5px;
    padding: 9px 12px;
    width: 100%;
    justify-content: center;
  }
}

/* ============ Tool 08: Nova Poshta TTN Generator ============ */
.np-templates-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.np-templates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.np-tpl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ef4a36;
  background: rgba(239, 74, 54, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

.np-official-only-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-a, #2f6bff);
  background: rgba(47, 107, 255, 0.08);
  border: 1px solid rgba(47, 107, 255, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
}

.np-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .np-steps-grid {
    grid-template-columns: 1fr;
  }
}

.np-step-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.np-step-card:hover {
  border-color: rgba(47, 107, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.np-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f6bff 0%, #1e3a8a 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(47, 107, 255, 0.3);
}

.np-step-content {
  flex: 1;
}

.np-step-content h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px 0;
}

.np-step-content p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.np-templates-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.np-download-tpl-btn {
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(47, 107, 255, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}

.np-download-tpl-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.35);
}

.np-tpl-feature-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(0, 0, 0, 0.03);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.np-templates-actions .btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.np-mode-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #2f6bff;
  background: rgba(47, 107, 255, 0.1);
  padding: 1px 8px;
  border-radius: 20px;
  margin-left: 4px;
}

.np-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 8px;
  cursor: pointer;
}

.np-forget-key {
  display: inline-block;
  margin-top: 6px;
  font-size: 11.5px;
  color: #d93824;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.np-restore-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(47, 107, 255, 0.07);
  border: 1px solid rgba(47, 107, 255, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--ink);
}

.np-restore-box[hidden] {
  display: none;
}

.np-restore-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.np-mapping-box {
  background: #fff8ec;
  border: 1px solid #f0c36d;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 18px;
}

.np-mapping-box[hidden] {
  display: none;
}

.np-mapping-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.np-mapping-hint {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.np-mapping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.np-map-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.np-map-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}

.np-map-select {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.np-mapping-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.np-auto-mark {
  display: inline-block;
  font-size: 11px;
  margin-left: 3px;
  cursor: help;
  opacity: 0.85;
}

.np-dryrun-label {
  width: 100%;
  justify-content: center;
  margin: 0 0 6px;
}

.np-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  padding: 20px;
}

.np-dialog[hidden] {
  display: none;
}

.np-dialog-panel {
  width: min(440px, 100%);
  max-height: 70vh;
  overflow: auto;
  background: var(--surface);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.np-dialog-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.np-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.np-dialog-option {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink);
}

.np-dialog-option:hover {
  border-color: var(--accent, #2f6bff);
  background: rgba(47, 107, 255, 0.05);
}

.np-dialog-actions {
  margin-top: 14px;
  text-align: right;
}

/* ============ Nova Poshta Interactive Address Picker Modal & Autocomplete ============ */
.np-addr-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: npFadeIn 0.2s ease-out;
}

.np-addr-modal[hidden] {
  display: none !important;
}

.np-addr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.np-addr-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(580px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--surface, #ffffff);
  border-radius: 18px;
  box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: visible;
  animation: npSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes npFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes npSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.np-addr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line, #e2e8f0);
}

.np-addr-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.np-addr-modal-icon {
  font-size: 24px;
  line-height: 1;
}

.np-addr-modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink, #0f172a);
}

.np-addr-modal-subtitle {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}

.np-addr-modal-close {
  background: none;
  border: none;
  font-size: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s;
}

.np-addr-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.np-addr-modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  max-height: calc(90vh - 140px);
}

.np-addr-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  margin-bottom: 16px;
}

.np-addr-alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

/* Delivery Type Radios (Matching Nova Poshta Website UX) */
.np-addr-delivery-types {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 4px 0 14px;
  border-bottom: 1px dashed var(--line, #e2e8f0);
  margin-bottom: 16px;
}

.np-addr-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink, #1e293b);
  user-select: none;
}

.np-addr-radio {
  display: none;
}

.np-addr-radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.np-addr-radio:checked + .np-addr-radio-custom {
  border-color: #da291c;
  background: #da291c;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.np-addr-radio-text {
  transition: color 0.15s;
}

.np-addr-radio:checked ~ .np-addr-radio-text {
  color: #da291c;
}

/* Input Fields & Autocomplete */
.np-addr-field-group {
  margin-bottom: 16px;
  position: relative;
}

.np-addr-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.np-addr-optional {
  font-weight: 400;
  color: #94a3b8;
  font-size: 11.5px;
  margin-left: 4px;
}

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

.np-addr-input {
  width: 100%;
  height: 42px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 34px 0 12px;
  font-size: 14px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.np-addr-input:focus {
  border-color: #da291c;
  box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.15);
}

.np-input-spinner {
  position: absolute;
  right: 12px;
  font-size: 13px;
  animation: npSpin 1s linear infinite;
  pointer-events: none;
}

@keyframes npSpin {
  100% { transform: rotate(360deg); }
}

.np-input-clear {
  position: absolute;
  right: 10px;
  background: #e2e8f0;
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}

.np-input-clear:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.np-addr-grid-2 {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* Autocomplete Dropdown Menu (Styled like user screenshots) */
.np-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1250;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 0;
}

.np-dropdown-menu[hidden] {
  display: none !important;
}

.np-dropdown-item {
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid #f8fafc;
  text-align: left;
}

.np-dropdown-item:last-child {
  border-bottom: none;
}

.np-dropdown-item:hover,
.np-dropdown-item.active {
  background: #f1f5f9;
}

.np-dropdown-item-main {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}

.np-dropdown-item-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 1px;
}

.np-dropdown-empty {
  padding: 14px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

/* Modal Footer */
.np-addr-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: #f8fafc;
  border-top: 1px solid var(--line, #e2e8f0);
  border-radius: 0 0 18px 18px;
}

.np-addr-modal-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.np-error-badge-count {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.np-addr-modal-error {
  padding: 10px 14px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  font-size: 13px;
  margin-top: 12px;
}

/* Table Address Quick-Fix Button */
.np-address-cell-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
}

.np-cell-error-highlight {
  border: 1.5px solid #ef4444 !important;
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

.np-quick-fix-row {
  margin-top: 4px;
}

.np-quick-fix-addr-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.np-quick-fix-addr-btn:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

.np-btn-pulse {
  animation: npPulse 1.8s infinite;
}

@keyframes npPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2); }
  100% { transform: scale(1); }
}

/* ============ Nova Poshta Sender & API Settings (Designer Cards) ============ */
.np-sender-settings {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 100%;
  box-sizing: border-box;
}

.np-sender-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 16px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.np-sender-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.np-sender-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent-a, #2F6BFF);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.np-sender-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #1E293B;
  letter-spacing: -0.01em;
}

.np-sender-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.np-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.np-field label {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 16px;
  height: 16px;
  min-height: 16px;
  max-height: 16px;
  margin: 0 0 2px 0;
  display: block;
}

.np-split-row {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.np-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 38px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 0;
}

.np-input:focus {
  outline: none;
  border-color: #2F6BFF;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
}

select.np-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}

select.np-input optgroup {
  font-weight: 700;
  color: #1E293B;
  background: #F1F5F9;
}

select.np-input option {
  font-weight: normal;
  color: #0F172A;
  background: #FFFFFF;
  padding: 4px 6px;
}

.np-input-eye-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.np-input-eye-wrap input {
  padding-right: 36px;
}

.np-eye-btn {
  position: absolute;
  right: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.np-eye-btn:hover {
  opacity: 1;
}

.np-api-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.np-api-actions .btn {
  width: 100%;
  justify-content: center;
}

.np-api-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
}

.np-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.np-forget-key {
  background: none;
  border: none;
  color: #EF4444;
  font-size: 11.5px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.np-forget-key:hover {
  color: #DC2626;
}

.np-key-status {
  font-size: 11.5px;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 8px;
  word-break: break-word;
}

.np-key-status[hidden] {
  display: none;
}

.np-key-status-ok {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
}

.np-key-status-err {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.np-key-status-auth-prompt {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%);
  color: #1E3A8A;
  border: 1.5px solid #93C5FD;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
}

.np-key-status-loading {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.np-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.np-stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.np-stat-num {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  font-feature-settings: "tnum";
}

.np-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 4px;
}

.np-table-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}

.np-table-head h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--ink);
}

.np-table-hint {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0;
}

.np-table-actions-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.np-table-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-a);
  background: rgba(47, 107, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.np-status-badge.np-clickable-status {
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, filter 0.15s;
}

.np-status-badge.np-clickable-status:hover {
  transform: translateY(-1px);
  filter: brightness(0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.np-auth-single-card {
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-bottom: 16px;
}

.np-auth-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.np-auth-input-group {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.np-auth-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.np-auth-input {
  width: 100%;
}

.np-auth-btn-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}

.np-auth-check-btn {
  height: 38px;
  font-weight: 600;
  font-size: 13px;
}

.np-auth-options {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  margin-left: auto;
}

.np-sender-default-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.np-sender-default-header {
  margin-bottom: 10px;
}

.np-sender-default-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-a);
  background: rgba(47, 107, 255, 0.08);
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.np-sender-fields-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 12px;
}

.np-duplicate-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #1e3a8a;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.np-duplicate-toggle-label:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.np-duplicate-toggle-label input[type="checkbox"] {
  accent-color: #2563eb;
  cursor: pointer;
}

.np-table-wrap {
  border: 1px solid var(--line, #cbd5e1);
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(100vh - 270px);
  min-height: 480px;
  background: var(--surface);
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.np-table {
  width: 100%;
  min-width: 1850px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
  text-align: left;
}

/* Smart Table Header Style */
.np-table th {
  background: linear-gradient(180deg, #1e3a8a 0%, #172554 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 11px 12px;
  border-bottom: 2px solid #0f172a;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 10;
  white-space: nowrap;
  box-sizing: border-box;
}

.np-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
  color: var(--ink);
  vertical-align: middle;
  background: #ffffff;
  white-space: nowrap;
  box-sizing: border-box;
}

.np-table tr:nth-child(even) td {
  background: #f8fafc;
}

.np-table tr:hover td {
  background: #eff6ff;
}

/* Sticky first 2 columns for easy tracking during horizontal scroll — NO GAPS */
.np-table th:first-child,
.np-table td:first-child,
.np-table th.np-th-num,
.np-table td.np-td-num {
  position: sticky;
  left: 0;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  text-align: center;
  box-sizing: border-box;
  z-index: 5;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
}

.np-table th:first-child,
.np-table th.np-th-num {
  z-index: 20;
  background: linear-gradient(180deg, #1e3a8a 0%, #172554 100%);
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.np-table th:nth-child(2),
.np-table td:nth-child(2),
.np-table th.np-th-status,
.np-table td.np-td-status {
  position: sticky;
  left: 44px;
  width: 145px;
  min-width: 145px;
  max-width: 145px;
  box-sizing: border-box;
  z-index: 5;
  background: #ffffff;
  border-right: 1.5px solid #cbd5e1;
}

.np-table th:nth-child(2),
.np-table th.np-th-status {
  z-index: 20;
  background: linear-gradient(180deg, #1e3a8a 0%, #172554 100%);
  color: #ffffff;
  border-right: 1.5px solid rgba(255, 255, 255, 0.25);
}

/* Maintain proper background for sticky columns on zebra and hover states */
.np-table tr:nth-child(even) td:first-child,
.np-table tr:nth-child(even) td:nth-child(2) {
  background: #f8fafc;
}

.np-table tr:hover td:first-child,
.np-table tr:hover td:nth-child(2) {
  background: #eff6ff;
}

.np-select-cell {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 12px;
  color: var(--ink);
  outline: none;
  cursor: pointer;
}
.np-select-cell:focus {
  border-color: var(--accent-a, #2f6bff);
}

.np-cell-search-btn {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 11px;
  cursor: pointer;
  margin-left: 4px;
}
.np-cell-search-btn:hover {
  background: #dbeafe;
}

.np-editable-cell {
  display: inline-block;
  min-width: 40px;
  min-height: 24px;
  line-height: 22px;
  cursor: text;
  border-radius: 6px;
  padding: 2px 6px;
  border: 1px solid transparent;
  outline: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.np-editable-cell:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.np-editable-cell:focus {
  background: #fff;
  border-color: var(--accent-a, #2f6bff);
  box-shadow: 0 0 0 2px rgba(47, 107, 255, 0.2);
  color: #0f172a;
}

.np-editable-cell.np-cell-empty {
  border: 1.5px dashed #93c5fd;
  background: rgba(239, 246, 255, 0.6);
  color: #64748b;
  min-width: 80px;
}

.np-editable-cell.np-cell-empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
  font-size: 11.5px;
  font-style: italic;
  pointer-events: none;
}

.np-editable-cell.np-cell-empty:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.np-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.np-badge-legal {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.np-badge-indiv {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.np-badge-doors {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.np-badge-wh {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.np-edrpou-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  font-family: var(--font-mono);
  background: rgba(47, 107, 255, 0.08);
  color: var(--brand);
  border: 1px solid rgba(47, 107, 255, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.np-edrpou-clickable {
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.np-edrpou-clickable:hover {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.15);
}

.np-set-edrpou-btn {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border: 1.5px dashed #3b82f6;
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
  cursor: pointer;
  transition: all 0.15s ease;
}

.np-set-edrpou-btn:hover {
  background: #2563eb;
  color: #fff;
  border-style: solid;
}

.np-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.np-status-ready {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.np-status-ok {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.np-status-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-status-warn {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.np-ttn-link {
  color: #166534;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.np-ttn-link:hover {
  color: #0f172a;
}

.np-progress-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.np-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.np-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.np-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4a36, #2f6bff);
  border-radius: 4px;
  transition: width 0.3s ease;
}

@media (max-width: 900px) {
  .np-templates-grid {
    grid-template-columns: 1fr;
  }

  .np-sender-grid,
  .np-sender-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .np-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .np-templates-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .np-sender-grid,
  .np-sender-grid-3 {
    grid-template-columns: 1fr;
  }

  .np-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .np-templates-actions {
    flex-direction: column;
    width: 100%;
  }

  .np-templates-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 375px) {
  .hero {
    padding: 24px 10px 18px;
    gap: 18px;
  }

  .hero h1 {
    font-size: 21px;
  }

  .hero-sub {
    font-size: 13.5px;
  }

  .tool-section {
    padding: 0 10px;
  }

  .mac-tab-btn {
    font-size: 10.5px;
    padding: 4px 6px;
    gap: 3px;
  }

  .moat-badge {
    font-size: 8px;
    padding: 1px 3px;
  }

  .suite-tab-btn {
    width: 100%;
    justify-content: center;
    font-size: 12px;
    padding: 8px 10px;
  }

  .np-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ New: aggregator + multi-export + price update ============ */

.pane-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0 22px;
}

.tool-pane-subsection {
  margin-top: 4px;
}

.opt-pill {
  padding: 6px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}

.opt-pill:hover {
  border-color: var(--accent-a);
  color: var(--accent-a);
}

.opt-pill.active {
  background: var(--accent-a);
  border-color: var(--accent-a);
  color: #fff;
}

.platform-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.check-pill input[type="checkbox"] {
  accent-color: var(--accent-a);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.aggregator-config {
  margin-top: 18px;
}

.aggregator-suppliers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.supplier-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}

.supplier-row .supplier-name-input {
  flex: 1 1 220px;
  min-width: 160px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--bg);
}

.supplier-row .supplier-meta {
  font-size: 12px;
  color: var(--ink-faint);
  white-space: nowrap;
}

.supplier-row .supplier-actions {
  display: inline-flex;
  gap: 4px;
}

.supplier-row .icon-btn {
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}

.supplier-row .icon-btn:hover {
  border-color: var(--accent-a);
  color: var(--accent-a);
}

.supplier-row .icon-btn:disabled {
  opacity: .4;
  cursor: default;
}

/* ============ Monetization: header account area ============ */
.account-area {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cmd-tier-chip, .cmd-credits-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: all .2s ease;
}
.cmd-tier-chip.cmd-tier-free {
  background: rgba(47, 107, 255, 0.08);
  border: 1px solid rgba(47, 107, 255, 0.22);
  color: var(--ink);
}
.cmd-tier-chip.cmd-tier-biz {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #B45309;
}
.cmd-tier-chip.cmd-tier-pro {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(47, 107, 255, 0.18));
  border: 1px solid rgba(147, 51, 234, 0.45);
  color: #7E22CE;
}
.cmd-tier-chip:hover, .cmd-credits-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.12);
}
.cmd-tier-icon { font-size: 14px; line-height: 1; }
#cmdTierLabel { font-weight: 700; font-size: 13px; }

/* ============ Monetization: modals ============ */
.cmd-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 22, 26, 0.44);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.cmd-modal-overlay.open { display: flex; }

.cmd-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 24px 60px -15px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(15, 23, 42, 0.05);
  padding: 28px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}
.cmd-modal::-webkit-scrollbar {
  width: 6px;
}
.cmd-modal::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 999px;
}

.cmd-modal-cabinet {
  max-width: 640px;
  padding: 26px 28px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.cmd-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, transform .15s;
}
.cmd-modal-close:hover { background: var(--danger-soft); color: var(--danger); transform: scale(1.05); }

.cmd-modal-body { display: flex; flex-direction: column; gap: 12px; }

.cmd-modal-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.cmd-modal-sub { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

.cmd-tabs { display: flex; gap: 6px; background: var(--bg-alt); border-radius: 999px; padding: 4px; }
.cmd-tab {
  flex: 1;
  padding: 9px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.cmd-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(20, 22, 26, 0.1);
}

.cmd-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 15px;
  font-family: var(--font-display);
  color: var(--ink);
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.cmd-input:focus {
  border-color: var(--accent-a);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}

.cmd-form-error {
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: var(--radius-s);
}
.cmd-form-error[hidden] { display: none; }

.cmd-submit { margin-top: 4px; }


/* ============ Monetization: Apple-Style Cabinet Redesign ============ */
.cmd-cab-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.cmd-cab-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 16px -3px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}
.cmd-cab-meta {
  flex: 1;
  min-width: 0;
}
.cmd-cab-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cmd-cab-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.cmd-cab-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.cmd-cab-email {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
  font-family: var(--font-mono, monospace);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Plan Hero Card (Apple Card Style) */
.cmd-plan-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cmd-plan-card--pro {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.09) 0%, rgba(6, 182, 212, 0.07) 50%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 10px 30px -6px rgba(245, 158, 11, 0.15);
}
.cmd-plan-card--biz {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.09) 0%, rgba(13, 148, 136, 0.07) 50%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 10px 30px -6px rgba(99, 102, 241, 0.15);
}
.cmd-plan-card--demo {
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.9) 0%, rgba(226, 232, 240, 0.7) 100%);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.cmd-plan-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cmd-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
}
.cmd-plan-badge--pro {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.cmd-plan-badge--biz {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
.cmd-plan-badge--demo {
  background: var(--bg-alt);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.cmd-plan-validity-badge {
  font-size: 12px;
  font-weight: 600;
  color: #059669;
}

.cmd-plan-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.cmd-plan-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cmd-plan-cta-btn {
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 12px;
}

.cmd-plan-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}
.cmd-plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}

.cmd-plan-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.cmd-plan-validity {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.cmd-plan-zero-storage {
  font-size: 11.5px;
  font-weight: 700;
  color: #0d9488;
}

/* Compact Legacy Converter */
.cmd-legacy-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(6, 182, 212, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 14px;
  margin-bottom: 12px;
}
.cmd-legacy-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cmd-legacy-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}
.cmd-legacy-sub {
  font-size: 11px;
  color: var(--ink-soft);
}
.cmd-legacy-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.cmd-legacy-btn {
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: #1d4ed8;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cmd-legacy-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* macOS Segmented Bar */
.cmd-seg-nav {
  display: flex;
  gap: 4px;
  background: var(--bg-alt);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.cmd-seg-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.cmd-seg-btn.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

/* Clean History Table */
.cmd-history-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.cmd-history-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.cmd-history-wrap th {
  position: sticky;
  top: 0;
  background: var(--bg-alt);
  text-align: left;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  z-index: 2;
  border-bottom: 1px solid var(--line);
}
.cmd-history-wrap td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.cmd-history-wrap tr:last-child td {
  border-bottom: none;
}
.cmd-history-wrap tr:hover td {
  background: rgba(241, 245, 249, 0.6);
}

.cmd-status-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.cmd-status-badge--plus {
  background: #ecfdf5;
  color: #059669;
}
.cmd-status-badge--minus {
  background: #fef2f2;
  color: #dc2626;
}
.cmd-status-badge--ok {
  background: #f1f5f9;
  color: var(--ink-soft);
}

/* Device/Telegram Integration Card */
.cmd-device-card {
  padding: 16px;
  background: var(--bg-alt);
  border-radius: 14px;
  border: 1px solid var(--line);
}
.cmd-tg-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cmd-tg-badge {
  font-size: 12.5px;
  font-weight: 700;
  color: #059669;
}
.cmd-tg-username {
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-soft);
}

.cmd-profile-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cmd-profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-radius: 10px;
  font-size: 13px;
}
.cmd-profile-label { color: var(--ink-soft); font-weight: 500; }
.cmd-profile-value { font-weight: 700; color: var(--ink); }

.cmd-changepass { display: flex; flex-direction: column; gap: 8px; }
.cmd-logout { color: var(--danger); border-color: rgba(255, 93, 93, 0.35); }
.cmd-logout:hover { background: var(--danger-soft); border-color: var(--danger); }

/* ============ Monetization: top-up ============ */
.cmd-insufficient {
  background: var(--danger-soft);
  border: 1px solid rgba(255, 93, 93, 0.3);
  border-radius: var(--radius-m);
  padding: 14px 16px;
}
.cmd-insufficient-title { font-weight: 700; font-size: 14px; }
.cmd-insufficient-detail { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

/* "Оплата в розробці" — нейтральний/amber замість червоного */
.cmd-payments-dev {
  background: #FFF7E6;
  border-color: rgba(245, 165, 36, 0.35);
}
.cmd-payments-dev .cmd-insufficient-title { color: #B45309; }

.cmd-packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cmd-package {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 14px 10px;
  border-radius: var(--radius-m);
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-family: var(--font-display);
  transition: border-color .15s, background .15s, transform .15s;
}
.cmd-package:hover { transform: translateY(-1px); }
.cmd-package.active {
  border-color: var(--accent-a);
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.07), rgba(23, 195, 178, 0.07));
}
.cmd-package-name { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.cmd-package-credits { font-size: 17px; font-weight: 800; }
.cmd-package-price { font-size: 15px; font-weight: 700; color: var(--accent-a); }
.cmd-package-rate { font-size: 11px; color: var(--ink-faint); }

.cmd-custom-label { font-size: 12.5px; color: var(--ink-faint); margin-top: 4px; }
.cmd-preview-btn { margin-top: 2px; }

/* ============ Monetization: toast ============ */
.cmd-toast-root {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.cmd-toast {
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  max-width: 90vw;
  text-align: center;
}
.cmd-toast.show { opacity: 1; transform: translateY(0); }
.cmd-toast-error { background: var(--danger); }

/* ============ Monetization: copy protection on paid previews ============ */
#pane-edi .preview-table,
#pane-pdf .preview-table,
#pane-pricediff .preview-table,
#pane-aggregator .preview-table,
#pane-catalog .preview-table,
#pane-bank .preview-table,
#pane-novaposhta .preview-table,
#multiExportSection .preview-table,
#priceUpdateSection .preview-table {
  -webkit-user-select: none;
  user-select: none;
}

/* ============ Monetization: responsive ============ */
@media (max-width: 560px) {
  .cmd-modal { padding: 22px 18px; }
  .cmd-modal-cabinet { padding: 20px 16px; }
  .cmd-packages { grid-template-columns: 1fr; }
  .cmd-balance-value { font-size: 38px; }
  .cmd-plan-name-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cmd-plan-cta-btn { width: 100%; text-align: center; }
  .cmd-legacy-alert { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cmd-legacy-actions { width: 100%; justify-content: flex-start; }
}

/* ============ Apple Magic: Tool Header Consultation & Telegram Link ============ */
.tool-pane-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tool-pane-header-main {
  flex: 1 1 300px;
}

.tool-consult-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 113, 227, 0.25);
  border-radius: 999px;
  color: var(--primary, #0071e3);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  cursor: pointer;
}

.tool-consult-btn:hover {
  background: #0071e3;
  color: #ffffff;
  border-color: #0071e3;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.28);
  transform: translateY(-1.5px);
}

.tool-consult-btn .consult-icon {
  font-size: 14px;
  transition: transform 0.25s ease;
}

.tool-consult-btn:hover .consult-icon {
  transform: scale(1.15);
}

/* Telegram Bot Cabinet Card */
.cmd-tg-box {
  background: rgba(245, 247, 250, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.cmd-tg-linked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cmd-tg-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(52, 199, 89, 0.12);
  color: #248a3d;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.cmd-tg-info {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.cmd-tg-unlink-btn {
  padding: 5px 12px;
  font-size: 12px;
  color: var(--danger, #ff3b30);
}

.cmd-code-card {
  margin-top: 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px dashed rgba(0, 113, 227, 0.35);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cmd-code-label {
  font-size: 12px;
  color: var(--ink-soft);
}

.cmd-code-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cmd-code-digits {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #0071e3;
}

.cmd-code-copy {
  padding: 4px 10px;
  font-size: 12px;
}

.cmd-code-sub {
  font-size: 11px;
  color: var(--ink-muted, #86868b);
}

/* ============ Apple 2027 Dark Magic Design System ============ */

/* --- 1. Three-Layer OLED Atmospheric Background --- */
[data-theme="dark"] body {
  background-color: #080A0F;
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -120px, rgba(90, 200, 250, 0.08), transparent 70%),
    radial-gradient(circle 700px at 85% 150px, rgba(167, 139, 250, 0.05), transparent 60%),
    radial-gradient(circle 600px at 10% 450px, rgba(90, 200, 250, 0.04), transparent 50%);
  background-attachment: fixed;
  color: var(--ink);
}

[data-theme="dark"] .noise-overlay {
  opacity: 0.032;
  mix-blend-mode: screen;
}

/* --- 2. Liquid Glass Navigation --- */
[data-theme="dark"] .nav {
  background: rgba(8, 10, 15, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .nav-links a {
  color: var(--ink-soft);
}

[data-theme="dark"] .nav-links a:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .nav-links a.active {
  background: linear-gradient(135deg, rgba(90, 200, 250, 0.16), rgba(167, 139, 250, 0.16));
  border-color: rgba(90, 200, 250, 0.38);
  color: #5AC8FA;
  box-shadow: 0 0 14px rgba(90, 200, 250, 0.22);
}

[data-theme="dark"] .nav-magic-pill {
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.2);
}

/* --- 3. Hero macOS Live Demonstration Stage --- */
[data-theme="dark"] .mac-window-card {
  background: linear-gradient(180deg, rgba(16, 20, 30, 0.94) 0%, rgba(10, 13, 20, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 30px 70px -15px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .mac-window-card:hover {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 36px 80px -15px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .mac-ambient-glow {
  background: radial-gradient(ellipse at center, rgba(90, 200, 250, 0.18), rgba(167, 139, 250, 0.14) 45%, transparent 75%);
  filter: blur(20px);
}

[data-theme="dark"] .mac-chrome-bar {
  background: rgba(14, 18, 26, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .mac-scenario-tabs {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .mac-tab-btn {
  color: var(--ink-soft);
}

[data-theme="dark"] .mac-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

[data-theme="dark"] .mac-tab-btn.active {
  background: rgba(255, 255, 255, 0.13);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .mac-status-pill {
  background: rgba(255, 255, 255, 0.06);
  color: #94A3B8;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .mac-dot.r { background: #FF5F57; }
[data-theme="dark"] .mac-dot.y { background: #FEBC2E; }
[data-theme="dark"] .mac-dot.g { background: #28C840; }

[data-theme="dark"] .mac-progress-bar {
  background: linear-gradient(90deg, #5AC8FA, #A78BFA);
  box-shadow: 0 0 8px rgba(90, 200, 250, 0.6);
}

[data-theme="dark"] .mac-stage-body {
  background: transparent;
}

[data-theme="dark"] .step-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

[data-theme="dark"] .metric-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink-soft);
}

/* --- 4. Tool Cards & Panels (Liquid Glass) --- */
[data-theme="dark"] .tool-panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.085);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .dropzone {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .dropzone:hover,
[data-theme="dark"] .dropzone.dragover {
  border-color: #5AC8FA;
  background: rgba(90, 200, 250, 0.06);
  box-shadow:
    0 0 24px rgba(90, 200, 250, 0.12),
    inset 0 0 16px rgba(90, 200, 250, 0.04);
}

[data-theme="dark"] .dropzone-icon {
  background: rgba(255, 255, 255, 0.06);
  color: #5AC8FA;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .dropzone-link {
  color: #5AC8FA;
}

/* --- 5. Grid Cards, Feature Cards, Pricing & FAQ --- */
[data-theme="dark"] .tool-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .strip-item,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .magic-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .tool-card:hover,
[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .magic-card:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(90, 200, 250, 0.3);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(90, 200, 250, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

[data-theme="dark"] .pricing-card.popular {
  background: linear-gradient(180deg, rgba(90, 200, 250, 0.08) 0%, rgba(255, 255, 255, 0.045) 100%);
  border-color: rgba(90, 200, 250, 0.4);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(90, 200, 250, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* --- 6. Form Controls & Buttons --- */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F5F7FA;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #5AC8FA;
  box-shadow: 0 0 0 3px rgba(90, 200, 250, 0.22);
  outline: none;
}

[data-theme="dark"] select option {
  background: #0D1017;
  color: #F5F7FA;
}

[data-theme="dark"] .btn-ghost {
  border-color: rgba(255, 255, 255, 0.16);
  color: #F5F7FA;
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
}

[data-theme="dark"] .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #F5F7FA;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #2F6BFF, #17C3B2);
  box-shadow: 0 4px 18px rgba(47, 107, 255, 0.35);
  color: #FFFFFF;
}

[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 6px 24px rgba(47, 107, 255, 0.5);
  filter: brightness(1.08);
}

/* --- 7. Tables, Diffs & Previews --- */
[data-theme="dark"] table {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] th {
  background: rgba(255, 255, 255, 0.06);
  color: #F5F7FA;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] td {
  border-color: rgba(255, 255, 255, 0.06);
  color: #E2E8F0;
}

[data-theme="dark"] tr:hover td {
  background: rgba(255, 255, 255, 0.035);
}

[data-theme="dark"] tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

[data-theme="dark"] tr:nth-child(even):hover td {
  background: rgba(255, 255, 255, 0.045);
}

[data-theme="dark"] .table-wrap,
[data-theme="dark"] .preview-table-wrap,
[data-theme="dark"] .magic-table-wrap {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .cell-bad {
  background: rgba(255, 69, 58, 0.15);
  color: #FF8F87;
}

[data-theme="dark"] .cell-good {
  background: rgba(48, 209, 88, 0.15);
  color: #72E88E;
}

/* --- 8. Tabs, Badges & Dialogs --- */
[data-theme="dark"] .cmd-tabs {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .cmd-tab-btn {
  color: var(--ink-soft);
}

[data-theme="dark"] .cmd-tab-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .np-dialog-panel {
  background: #0D1017;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.75);
}

[data-theme="dark"] .np-dialog-option {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .np-dialog-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #5AC8FA;
}

[data-theme="dark"] .np-addr-modal-dialog {
  background: #0f172a;
  border: 1px solid #334155;
  box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .np-addr-modal-header,
[data-theme="dark"] .np-addr-modal-footer {
  border-color: #1e293b;
  background: #090d16;
}

[data-theme="dark"] .np-addr-modal-title {
  color: #f8fafc;
}

[data-theme="dark"] .np-addr-radio-label {
  color: #e2e8f0;
}

[data-theme="dark"] .np-addr-field-label {
  color: #94a3b8;
}

[data-theme="dark"] .np-addr-input {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

[data-theme="dark"] .np-dropdown-menu {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .np-dropdown-item {
  border-bottom-color: #334155;
}

[data-theme="dark"] .np-dropdown-item:hover,
[data-theme="dark"] .np-dropdown-item.active {
  background: #334155;
}

[data-theme="dark"] .np-dropdown-item-main {
  color: #f8fafc;
}

[data-theme="dark"] .np-dropdown-item-sub {
  color: #94a3b8;
}

[data-theme="dark"] .cmd-code-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(90, 200, 250, 0.35);
}

[data-theme="dark"] .cmd-code-digits {
  color: #5AC8FA;
}

[data-theme="dark"] .price-card-featured {
  border-color: rgba(255, 107, 0, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 107, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .price-badge-free {
  background: rgba(48, 209, 88, 0.16);
  color: #30D158;
  border-color: rgba(48, 209, 88, 0.35);
  box-shadow: 0 0 12px rgba(48, 209, 88, 0.15);
}

[data-theme="dark"] .price-badge-hit {
  background: linear-gradient(135deg, #FF6B00, #FF3B30);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.45);
}

[data-theme="dark"] .price-badge-pro {
  background: linear-gradient(135deg, #2F6BFF, #17C3B2);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(47, 107, 255, 0.45);
}

[data-theme="dark"] .price-badge-custom {
  background: rgba(255, 214, 10, 0.16);
  color: #FFD60A;
  border-color: rgba(255, 214, 10, 0.35);
  box-shadow: 0 0 12px rgba(255, 214, 10, 0.15);
}

[data-theme="dark"] .btn-turnkey {
  border-color: rgba(255, 214, 10, 0.5) !important;
  color: #FFD60A !important;
}

[data-theme="dark"] .btn-turnkey:hover {
  background: rgba(255, 214, 10, 0.12) !important;
  border-color: #FFD60A !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   SEO & AI CITABILITY SEMANTIC BLOCK STYLES
   Native Dark/Light Theme Integration for Pre-rendered Landing Pages
   ========================================================================== */

.seo-semantic-block {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.seo-answer-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-a);
  border-radius: var(--radius-m);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.seo-answer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-a);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.seo-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-a);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.2);
}

.seo-answer-text {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}

.seo-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .seo-specs-grid {
    grid-template-columns: 1fr;
  }
}

.seo-spec-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 20px;
}

.seo-spec-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.seo-spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.seo-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.seo-tag-pill {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
  color: var(--accent-a);
}

.seo-result-text {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 4px 0 0 0;
}

.seo-how-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px;
}

.seo-block-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 18px 0;
}

.seo-how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.seo-how-step {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-step-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-a);
  background: rgba(47, 107, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  align-self: flex-start;
  font-family: var(--font-mono, monospace);
}

.seo-how-step p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

.seo-example-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.seo-example-head {
  background: var(--bg-alt);
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.seo-example-tag {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--accent-a);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
}

.seo-example-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.seo-example-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .seo-example-body {
    grid-template-columns: 1fr;
  }
}

.seo-label-state {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.seo-example-before pre {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  font-family: var(--font-mono, monospace);
  color: var(--ink);
  white-space: pre-wrap;
  margin: 0;
}

.seo-result-badge-wrap {
  background: rgba(48, 209, 88, 0.08);
  border: 1px solid rgba(48, 209, 88, 0.25);
  border-radius: var(--radius-s);
  padding: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
}

.seo-related-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px;
}

.seo-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.seo-related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  text-decoration: none;
  transition: all 0.2s ease;
}

.seo-related-card:hover {
  border-color: var(--accent-a);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.seo-related-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--accent-a);
}

.seo-related-desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.seo-faq-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px;
}

.card-seo-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-a);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.card-seo-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* ============ Promotional & Explainer Banners ============ */
.edi-banner-wrap {
  margin: 28px auto 32px;
  max-width: 900px;
  text-align: center;
}

.edi-banner-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line, rgba(0, 0, 0, 0.08));
  box-shadow: 0 12px 36px -8px rgba(15, 23, 42, 0.1);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

[data-theme="dark"] .edi-banner-card {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.4);
}

.edi-banner-card:hover {
  transform: translateY(-3px) scale(1.004);
  box-shadow: 0 20px 48px -10px rgba(47, 107, 255, 0.22);
  border-color: rgba(47, 107, 255, 0.4);
}

.edi-banner-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 17px;
}