html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #f6f8fb;
  color: #1f2937;
}

.container {
  max-width: 1180px;
}

.navbar-brand {
  font-weight: 700;
}

.nav-user {
  color: #475569;
  font-size: .9rem;
  font-weight: 600;
}

.presentation-hero {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
  min-height: 620px;
  padding: 3.5rem 0 2.5rem;
}

.hero-copy h1,
.auth-copy h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  margin: .5rem 0 1rem;
}

.hero-copy h1 {
  color: #101827;
  font-size: clamp(3.25rem, 7vw, 6rem);
}

.hero-copy p,
.auth-copy p {
  color: #475569;
  font-size: 1.16rem;
  line-height: 1.65;
  max-width: 660px;
}

.eyebrow {
  color: #0f766e;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.35rem;
}

.hero-proof span {
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  color: #475569;
  font-size: .84rem;
  font-weight: 700;
  padding: .38rem .7rem;
}

.hero-panel,
.auth-card,
.integration-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.hero-panel {
  display: grid;
  gap: .75rem;
  padding: 1rem;
}

.hero-dashboard {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .9)),
    radial-gradient(circle at 20% 0%, rgba(14, 165, 233, .18), transparent 28%),
    radial-gradient(circle at 85% 95%, rgba(16, 185, 129, .16), transparent 32%);
  border: 1px solid #d9e2ee;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
  overflow: hidden;
}

.dashboard-top {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.1rem;
}

.dashboard-top span,
.dashboard-metrics span,
.map-center span,
.map-node small {
  color: #64748b;
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-top strong {
  display: block;
  font-size: 1rem;
}

.live-badge {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #166534 !important;
  padding: .32rem .65rem;
}

.integration-map {
  min-height: 420px;
  position: relative;
}

.integration-map::before,
.integration-map::after {
  border: 1px solid #dbeafe;
  border-radius: 999px;
  content: "";
  inset: 72px;
  position: absolute;
}

.integration-map::after {
  border-color: #ccfbf1;
  inset: 118px;
}

.map-center {
  align-items: center;
  background: #0f172a;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .22);
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 118px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 118px;
  z-index: 2;
}

.map-center strong {
  font-size: 1rem;
}

.map-center span {
  color: #cbd5e1;
  margin-top: .25rem;
}

.map-node {
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
  display: grid;
  gap: .65rem;
  grid-template-columns: 44px 1fr;
  min-width: 178px;
  padding: .75rem;
  position: absolute;
  z-index: 3;
}

.map-node strong,
.map-node small {
  display: block;
}

.node-ml {
  left: 1.1rem;
  top: 1.4rem;
}

.node-shopee {
  right: 1.1rem;
  top: 5rem;
}

.node-shein {
  bottom: 4.4rem;
  left: 1.4rem;
}

.node-tiktok {
  bottom: 1.2rem;
  right: 1.35rem;
}

.dashboard-metrics {
  border-top: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-metrics div {
  border-right: 1px solid #e2e8f0;
  padding: .9rem 1rem;
}

.dashboard-metrics div:last-child {
  border-right: 0;
}

.dashboard-metrics strong {
  display: block;
  font-size: 1.2rem;
  margin-top: .2rem;
}

.channel-row {
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: .75rem;
  grid-template-columns: 48px 1fr auto;
  min-height: 72px;
  padding: .75rem;
}

.channel-row.active {
  border-color: #fde047;
  background: #fffbeb;
}

.channel-row strong,
.channel-row small {
  display: block;
}

.channel-row small,
.integration-card small {
  color: #64748b;
}

.market-icon {
  align-items: center;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.mercado-livre,
.mercadolivre {
  background: #f2c94c;
  color: #1f2937;
}

.shein {
  background: #111827;
}

.shopee {
  background: #ee4d2d;
}

.tiktok,
.tiktokshop {
  background: linear-gradient(135deg, #111827, #06b6d4 52%, #f43f5e);
}

.amazon {
  background: #2563eb;
}

.status-dot {
  background: #dcfce7;
  border-radius: 999px;
  color: #166534;
  font-size: .78rem;
  font-weight: 700;
  padding: .25rem .55rem;
}

.feature-band {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 2rem;
}

.feature-band div {
  border-top: 3px solid #0f766e;
  padding-top: 1rem;
}

.feature-band span {
  color: #0f766e;
  display: block;
  font-weight: 800;
  margin-bottom: .35rem;
}

.feature-band strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: .35rem;
}

.feature-band p {
  color: #64748b;
  margin: 0;
}

.marketplace-showcase,
.workflow-section,
.value-strip {
  margin-bottom: 2rem;
}

.section-heading {
  margin: 0 0 1.2rem;
  max-width: 780px;
}

.section-heading h2,
.workflow-copy h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  margin: .35rem 0 .65rem;
}

.section-heading p,
.workflow-copy p {
  color: #64748b;
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0;
}

.marketplace-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.marketplace-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  display: flex;
  flex-direction: column;
  gap: .9rem;
  min-height: 260px;
  padding: 1rem;
}

.marketplace-card.active {
  border-color: #facc15;
  box-shadow: 0 16px 36px rgba(250, 204, 21, .18);
}

.marketplace-card strong {
  display: block;
  font-size: 1.12rem;
  margin-bottom: .35rem;
}

.marketplace-card p {
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

.marketplace-card .status-pill {
  align-self: flex-start;
  margin-top: auto;
}

.status-pill.muted {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

.workflow-section {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  padding: 2rem 0;
}

.workflow-steps {
  display: grid;
  gap: .85rem;
}

.workflow-steps div {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: .25rem;
  grid-template-columns: 52px 1fr;
  padding: 1rem;
}

.workflow-steps span {
  align-items: center;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 8px;
  color: #0e7490;
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.workflow-steps strong,
.workflow-steps p {
  grid-column: 2;
}

.workflow-steps strong {
  font-size: 1.02rem;
}

.workflow-steps p {
  color: #64748b;
  margin: 0;
}

.value-strip {
  background: #0f172a;
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.value-strip div {
  background: rgba(255, 255, 255, .04);
  padding: 1.1rem;
}

.value-strip strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: .25rem;
}

.value-strip span {
  color: #cbd5e1;
}

.auth-shell {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  min-height: 620px;
}

.auth-card {
  padding: 1.25rem;
}

.auth-card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.auth-switch {
  color: #64748b;
  margin: 1rem 0 0;
  text-align: center;
}

.page-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 1.25rem 0 1.5rem;
}

.internal-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .88)),
    radial-gradient(circle at 0% 0%, rgba(20, 184, 166, .13), transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(37, 99, 235, .1), transparent 30%);
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .06);
  padding: 1.25rem;
}

.page-heading h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.page-heading p {
  color: #64748b;
  margin: .25rem 0 0;
}

.heading-actions {
  display: flex;
  gap: .5rem;
}

.status-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

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

.integration-card {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  min-height: 260px;
  padding: 1rem;
}

.integration-card.connected {
  border-color: #86efac;
}

.integration-card-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.integration-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}

.integration-card p {
  color: #64748b;
  flex: 1;
  margin: 0;
}

.empty-state {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.empty-state h2 {
  font-size: 1.25rem;
  font-weight: 800;
}

.empty-state p {
  color: #64748b;
  margin: 0;
}

.saved-data-list {
  display: grid;
}

.saved-data-item {
  border-bottom: 1px solid #e2e8f0;
}

.saved-data-item:last-child {
  border-bottom: 0;
}

.saved-data-item summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: .75rem;
  grid-template-columns: 120px 1fr 1fr 150px;
  min-height: 64px;
  padding: .85rem 1rem;
}

.saved-data-item pre {
  background: #0f172a;
  color: #e2e8f0;
  margin: 0;
  max-height: 360px;
  overflow: auto;
  padding: 1rem;
}

.metric,
.tool-panel,
.table-surface {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.metric {
  min-height: 86px;
  padding: 1rem;
}

.metric span {
  color: #64748b;
  display: block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  font-size: 1.15rem;
  margin-top: .35rem;
  overflow-wrap: anywhere;
}

.quick-actions {
  display: grid;
  gap: 1rem;
  grid-template-columns: 2fr 1fr 1fr;
}

.internal-actions {
  align-items: stretch;
}

.tool-panel {
  padding: 1rem;
}

.action-panel,
.filter-panel,
.lookup-panel {
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.action-panel {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.action-panel p,
.filter-panel-title p,
.lookup-panel p,
.integration-intro p {
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

.filter-panel-title {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.filter-panel-title h2,
.lookup-panel h2,
.integration-intro h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 .25rem;
}

.lookup-panel {
  display: grid;
  gap: .85rem;
  max-width: 760px;
}

.tool-panel h2,
.surface-title h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.form-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.form-grid.wide {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.form-grid.sales-filter {
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
}

.table-surface {
  overflow: hidden;
}

.table-surface .table thead th {
  background: #f8fafc;
  color: #475569;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.surface-title {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

.surface-title h2 {
  margin: 0;
}

.surface-title span {
  color: #64748b;
  font-size: .9rem;
}

.table {
  margin: 0;
}

.status-pill {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  color: #3730a3;
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  min-width: 72px;
  padding: .2rem .5rem;
  text-align: center;
}

.integration-intro {
  margin-bottom: 1rem;
  max-width: 780px;
}

.modern-grid .integration-card {
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

@media (max-width: 992px) {
  .presentation-hero,
  .auth-shell,
  .feature-band,
  .integration-grid,
  .marketplace-grid,
  .workflow-section,
  .value-strip {
    grid-template-columns: 1fr;
  }

  .presentation-hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .integration-map {
    min-height: 520px;
  }

  .map-node {
    left: 1rem;
    min-width: 0;
    right: 1rem;
  }

  .node-ml {
    top: 1rem;
  }

  .node-shopee {
    top: 6rem;
  }

  .node-shein {
    bottom: 6rem;
  }

  .node-tiktok {
    bottom: 1rem;
  }

  .quick-actions,
  .status-grid,
  .form-grid,
  .form-grid.wide,
  .form-grid.two,
  .form-grid.sales-filter {
    grid-template-columns: 1fr;
  }

  .filter-panel-title {
    display: grid;
  }

  .saved-data-item summary {
    grid-template-columns: 1fr;
  }

  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .heading-actions {
    flex-wrap: wrap;
  }
}
