:root {
  --bg: #0a0e14;
  --bg-soft: #0f1420;
  --surface: #131826;
  --surface-2: #182033;
  --surface-3: #0d1320;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f7fb;
  --muted: #9aa8bd;
  --muted-2: #72829a;
  --primary: #00d9a3;
  --primary-2: #3b82f6;
  --warning: #f5b547;
  --danger: #ff6b7a;
  --success: #2ee59d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --glow: 0 0 34px rgba(0, 217, 163, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --header-h: 76px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 217, 163, 0.12), transparent 34rem),
    radial-gradient(circle at 86% 8%, rgba(59, 130, 246, 0.1), transparent 30rem),
    linear-gradient(180deg, var(--bg) 0%, #090c12 100%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}

body.dashboard-body {
  background: var(--bg);
}

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

svg {
  fill: currentColor;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

label {
  display: block;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #001b14;
  padding: 10px 14px;
  font-weight: 800;
  transition: transform 200ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.section-pad {
  padding: 82px 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  background: rgba(10, 14, 20, 0.78);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

.nav {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(0, 217, 163, 0.34);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 217, 163, 0.16), rgba(59, 130, 246, 0.14));
  color: var(--primary);
  box-shadow: var(--glow);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.nav-menu {
  position: fixed;
  top: var(--header-h);
  right: 16px;
  left: 16px;
  display: none;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(15, 20, 32, 0.96);
  padding: 12px;
  box-shadow: var(--shadow);
}

.nav-menu.is-open {
  display: flex;
}

.nav-menu a {
  border-radius: var(--radius-sm);
  color: var(--muted);
  padding: 12px;
  font-weight: 600;
  transition: color 220ms ease, background 220ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-actions {
  display: none;
  margin-left: auto;
  gap: 10px;
}

.nav-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  margin-left: auto;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 800;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #54f0c8);
  color: #001b14;
  box-shadow: 0 14px 34px rgba(0, 217, 163, 0.22);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: rgba(0, 217, 163, 0.42);
  box-shadow: var(--glow);
}

.btn-ghost {
  color: var(--muted);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.btn-lg {
  min-height: 52px;
  padding: 13px 20px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 58px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.hero-subtitle,
.section-heading p,
.compliance-grid p,
.footer-note {
  color: var(--muted);
}

.hero-subtitle {
  max-width: 690px;
  margin-bottom: 28px;
  font-size: 1.08rem;
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.trust-row svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.hero-visual {
  min-width: 0;
}

.dashboard-mock {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(19, 24, 38, 0.92), rgba(15, 20, 32, 0.72));
  box-shadow: var(--shadow), var(--glow);
  backdrop-filter: blur(16px);
}

.dashboard-mock::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 217, 163, 0.3), transparent 34%, rgba(59, 130, 246, 0.16));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
}

.mock-topbar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding: 14px;
}

.mock-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.mock-body {
  display: grid;
  grid-template-columns: 76px 1fr;
  min-height: 360px;
}

.mock-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  border-right: 1px solid var(--border);
  padding: 18px 14px;
}

.mock-sidebar div {
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
}

.mock-sidebar div:first-child {
  background: rgba(0, 217, 163, 0.22);
}

.mock-content {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mock-kpis div,
.mock-query,
.mock-chart {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
}

.mock-kpis div {
  min-width: 0;
  padding: 14px;
}

.mock-kpis strong {
  display: block;
  font-size: 1.25rem;
}

.mock-kpis span,
.mock-query span {
  color: var(--muted);
  font-size: 0.78rem;
}

.mock-query {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.mock-query span:first-child {
  width: fit-content;
  border-radius: 999px;
  background: rgba(0, 217, 163, 0.14);
  color: var(--primary);
  padding: 4px 10px;
  font-weight: 800;
}

.mock-chart {
  display: flex;
  min-height: 132px;
  align-items: end;
  gap: 12px;
  padding: 16px;
}

.mock-chart i {
  display: block;
  flex: 1;
  min-width: 10px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--primary), rgba(59, 130, 246, 0.52));
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading.split {
  display: grid;
  max-width: none;
  gap: 20px;
}

.steps-grid,
.catalog-grid,
.pricing-grid {
  display: grid;
  gap: 16px;
}

.step-card,
.catalog-card,
.price-card,
.stat-card,
.panel,
.recent-table,
.auth-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(19, 24, 38, 0.78);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.step-card,
.catalog-card,
.price-card {
  padding: 22px;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.step-card:hover,
.catalog-card:hover,
.price-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 217, 163, 0.22);
  box-shadow: var(--shadow), var(--glow);
}

.step-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--primary);
  font-weight: 800;
}

.step-card p,
.catalog-card p,
.price-card li {
  color: var(--muted);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 8px 13px;
  font-weight: 800;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease;
}

.filter-btn.active,
.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: rgba(0, 217, 163, 0.38);
  background: rgba(0, 217, 163, 0.12);
  color: var(--primary);
}

.catalog-card.is-hidden {
  display: none;
}

.card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: rgba(0, 217, 163, 0.12);
  color: var(--primary);
}

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

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.badges span,
.status-pill,
.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(0, 217, 163, 0.22);
  border-radius: 999px;
  background: rgba(0, 217, 163, 0.1);
  color: var(--primary);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.badges .badge-soft {
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.12);
  color: #8ab7ff;
}

.badges .badge-warn {
  border-color: rgba(245, 181, 71, 0.3);
  background: rgba(245, 181, 71, 0.12);
  color: #ffd285;
}

.price-card {
  position: relative;
}

.price-card.featured {
  border-color: rgba(0, 217, 163, 0.32);
  background: linear-gradient(180deg, rgba(0, 217, 163, 0.12), rgba(19, 24, 38, 0.82));
}

.plan-badge {
  width: fit-content;
  margin-bottom: 12px;
}

.price {
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 800;
}

.price span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 22px;
}

.price-card li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: var(--glow);
}

.compliance-section {
  background:
    linear-gradient(135deg, rgba(0, 217, 163, 0.09), rgba(59, 130, 246, 0.06)),
    var(--bg-soft);
}

.compliance-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.compliance-list {
  display: grid;
  gap: 12px;
}

.compliance-list div {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  padding: 16px;
}

.compliance-list strong,
.compliance-list span {
  display: block;
}

.compliance-list span {
  margin-top: 4px;
  color: var(--muted);
}

.faq-shell {
  max-width: 890px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(19, 24, 38, 0.78);
}

.faq-item button {
  position: relative;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 18px 52px 18px 18px;
  text-align: left;
  font-weight: 800;
}

.faq-item button::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.4rem;
}

.faq-item button[aria-expanded="true"]::after {
  content: "-";
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms ease;
}

.faq-panel p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  padding: 0 18px;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-panel p {
  padding-bottom: 18px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #080b10;
  padding: 44px 0 24px;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-grid h2 {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-grid a:not(.brand) {
  display: block;
  width: fit-content;
  color: var(--muted);
  margin-bottom: 8px;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: var(--primary);
}

.footer-note {
  max-width: 420px;
  margin: 16px 0 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 34px;
  padding-top: 20px;
  color: var(--muted-2);
  font-size: 0.88rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Auth */
.auth-page {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 28px 0;
}

.auth-layout {
  display: grid;
  gap: 28px;
}

.auth-card {
  padding: 26px;
}

.auth-card h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 12px;
}

.auth-card > p {
  color: var(--muted);
  margin-bottom: 24px;
}

.auth-aside {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(0, 217, 163, 0.13), rgba(59, 130, 246, 0.08));
  padding: 26px;
}

.auth-aside ul {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.auth-aside li {
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field span,
.field legend {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 12px 14px;
  outline: 0;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(0, 217, 163, 0.48);
  box-shadow: 0 0 0 4px rgba(0, 217, 163, 0.12);
}

.field select option {
  background: var(--surface);
  color: var(--text);
}

.pin-input {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
}

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

.helper-link {
  color: var(--primary);
  font-weight: 800;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
}

.form-message.error {
  color: var(--danger);
}

.legal-small {
  color: var(--muted-2);
  font-size: 0.84rem;
}

.loading-dot {
  display: inline-flex;
  gap: 4px;
}

.loading-dot i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  animation: pulse 900ms ease-in-out infinite;
}

.loading-dot i:nth-child(2) {
  animation-delay: 120ms;
}

.loading-dot i:nth-child(3) {
  animation-delay: 240ms;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 12, 0.76);
  padding: 18px;
  backdrop-filter: blur(14px);
}

.modal-backdrop[hidden] {
  display: none;
}

.auth-modal {
  position: relative;
  width: min(100%, 460px);
  border: 1px solid rgba(0, 217, 163, 0.24);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(0, 217, 163, 0.1), rgba(59, 130, 246, 0.06)),
    rgba(19, 24, 38, 0.98);
  box-shadow: var(--shadow), var(--glow);
  padding: 26px;
}

.auth-modal h2 {
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.auth-modal p {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: rgba(0, 217, 163, 0.34);
  background: rgba(0, 217, 163, 0.1);
  color: var(--primary);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.34;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* Dashboard */
.dashboard-layout {
  display: grid;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.94);
  padding: 14px 16px;
  backdrop-filter: blur(14px);
}

.sidebar-nav {
  position: fixed;
  top: 68px;
  right: 16px;
  left: 16px;
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(15, 20, 32, 0.98);
  padding: 10px;
  box-shadow: var(--shadow);
}

.sidebar-nav.is-open {
  display: block;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  padding: 12px;
  font-weight: 800;
}

.sidebar-nav a.active,
.sidebar-nav a:hover,
.sidebar-nav a:focus-visible {
  background: rgba(0, 217, 163, 0.12);
  color: var(--primary);
}

.sidebar-nav svg {
  width: 18px;
  height: 18px;
}

.sidebar-footer {
  display: none;
}

.dashboard-main {
  min-width: 0;
  padding: 22px 16px 48px;
}

.dashboard-topbar {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.dashboard-title h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 6vw, 3rem);
}

.dashboard-title p {
  color: var(--muted);
  margin-bottom: 0;
}

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

.credit-chip,
.avatar,
.notification {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 8px 12px;
  font-weight: 800;
}

.credit-chip span {
  color: var(--primary);
}

.avatar {
  width: 42px;
  justify-content: center;
  padding: 0;
  background: rgba(0, 217, 163, 0.14);
  color: var(--primary);
}

.notification {
  width: 42px;
  justify-content: center;
  padding: 0;
}

.stats-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.85rem;
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 20px;
}

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

.panel-heading h2 {
  margin-bottom: 4px;
  font-size: 1.35rem;
}

.panel-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.checkbox-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
  color: var(--muted);
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
}

.result-card {
  display: none;
  border: 1px solid rgba(0, 217, 163, 0.24);
  border-radius: var(--radius-md);
  background: rgba(0, 217, 163, 0.08);
  margin-top: 16px;
  padding: 16px;
}

.result-card.is-visible {
  display: block;
}

.result-card h3 {
  color: var(--primary);
}

.result-grid {
  display: grid;
  gap: 10px;
}

.result-grid div {
  display: grid;
  gap: 2px;
}

.result-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.chart-panel {
  min-height: 100%;
}

.bar-chart {
  display: flex;
  height: 210px;
  align-items: end;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    rgba(255, 255, 255, 0.025);
  background-size: 100% 42px;
  padding: 16px;
}

.bar-chart span {
  display: flex;
  flex: 1;
  min-width: 10px;
  height: var(--h);
  align-items: end;
  justify-content: center;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, var(--primary), rgba(59, 130, 246, 0.62));
  color: #001b14;
  font-size: 0.72rem;
  font-weight: 800;
  padding-bottom: 6px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.recent-table {
  width: 100%;
  min-width: 720px;
  border: 0;
  border-collapse: collapse;
  overflow: hidden;
}

.recent-table th,
.recent-table td {
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  text-align: left;
}

.recent-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

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

.status-pill.ok {
  color: var(--success);
  border-color: rgba(46, 229, 157, 0.22);
  background: rgba(46, 229, 157, 0.1);
}

.status-pill.pending {
  color: var(--warning);
  border-color: rgba(245, 181, 71, 0.24);
  background: rgba(245, 181, 71, 0.1);
}

.status-pill.failed {
  color: var(--danger);
  border-color: rgba(255, 107, 122, 0.24);
  background: rgba(255, 107, 122, 0.1);
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 3000;
  max-width: min(420px, calc(100% - 32px));
  transform: translateY(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(15, 20, 32, 0.98);
  color: var(--text);
  opacity: 0;
  padding: 14px 16px;
  pointer-events: none;
  box-shadow: var(--shadow);
  transition: opacity 240ms ease, transform 240ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.api-code-block {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.24);
  color: #bdeee2;
  margin: 0;
  padding: 16px;
  white-space: pre;
}

code {
  color: #bdeee2;
}

@media (min-width: 480px) {
  .auth-card,
  .auth-aside,
  .panel {
    padding: 28px;
  }

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

@media (min-width: 768px) {
  .shell {
    width: min(1120px, calc(100% - 48px));
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  .nav-menu a {
    padding: 8px 10px;
  }

  .nav-actions {
    display: flex;
  }

  .steps-grid,
  .catalog-grid,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-layout {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
  }

  .dashboard-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

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

@media (min-width: 1024px) {
  .section-pad {
    padding: 104px 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
  }

  .section-heading.split {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

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

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

  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .compliance-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.75fr);
  }

  .footer-grid {
    grid-template-columns: 1.6fr 0.7fr 0.7fr 0.7fr;
  }

  .dashboard-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .sidebar {
    align-content: start;
    align-items: stretch;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    border-right: 1px solid var(--border);
    border-bottom: 0;
    padding: 22px;
  }

  .sidebar .nav-toggle {
    display: none;
  }

  .sidebar-nav {
    position: static;
    display: grid;
    gap: 6px;
    border: 0;
    background: transparent;
    padding: 22px 0 0;
    box-shadow: none;
  }

  .sidebar-footer {
    display: block;
    align-self: end;
    color: var(--muted-2);
    font-size: 0.84rem;
  }

  .dashboard-main {
    padding: 34px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  }

  .history-panel {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1280px) {
  .shell {
    width: min(1200px, calc(100% - 64px));
  }

  .dashboard-main {
    padding: 42px;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
