/* ===== Codiic Hero Dashboard Mockup ===== */
.hero-landing__visual {
  max-width: 980px;
}

.hdash-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1240 / 940;
  overflow: hidden;
  border-radius: 18px;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.18),
    0 8px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #f4f7fb;
}

.hdash {
  --hdash-scale: 0.72;
  position: absolute;
  top: 0;
  left: 0;
  width: 1240px;
  height: 940px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 200px;
  background: #edf2f7;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
  transform: scale(var(--hdash-scale));
  transform-origin: top left;
  overflow: hidden;
}

@media (max-width: 1199px) {
  .hero-landing__visual {
    max-width: 760px;
  }

  .hdash {
    --hdash-scale: 0.58;
  }
}

.hdash__sidebar {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.hdash__brand-logo {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.hdash__store-select {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 28px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hdash__store-select i {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #94a3b8;
}

.hdash__store-name {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.hdash__store-url {
  font-size: 10px;
  color: #64748b;
}

.hdash__nav,
.hdash__channels {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hdash__channels-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 8px 0 4px;
}

.hdash__nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: #475569;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 500;
  position: relative;
}

.hdash__nav-item i {
  width: 14px;
  text-align: center;
  font-size: 11px;
  color: #64748b;
}

.hdash__nav-item.is-active {
  background: #2563eb;
  color: #fff;
}

.hdash__nav-item.is-active i {
  color: #fff;
}

.hdash__nav-badge {
  margin-left: auto;
  background: #2563eb;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  border-radius: 999px;
  min-width: 18px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.hdash__nav-item.is-active .hdash__nav-badge {
  background: #fff;
  color: #2563eb;
}

.hdash__upgrade {
  margin-top: auto;
  background: linear-gradient(160deg, #eef2ff, #f5f3ff);
  border-radius: 12px;
  padding: 12px;
}

.hdash__upgrade strong {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.hdash__upgrade p {
  margin: 0 0 8px;
  font-size: 10px;
  color: #64748b;
  line-height: 1.35;
}

.hdash__upgrade button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  background: #7c3aed;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.hdash__main {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

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

.hdash__search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  color: #94a3b8;
  font-size: 12px;
}

.hdash__search kbd {
  margin-left: auto;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 10px;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.hdash__top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hdash__icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.hdash__icon-btn--notify::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}

.hdash__user {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 4px 10px 4px 4px;
}

.hdash__user img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.hdash__user strong {
  display: block;
  font-size: 11px;
  line-height: 1.1;
}

.hdash__user span {
  font-size: 10px;
  color: #64748b;
}

.hdash__welcome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hdash__welcome h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hdash__welcome p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: #64748b;
}

.hdash__date-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 11px;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
}

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

.hdash__stat {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.hdash__stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.hdash__stat-icon--green {
  background: #dcfce7;
  color: #16a34a;
}

.hdash__stat-icon--blue {
  background: #dbeafe;
  color: #2563eb;
}

.hdash__stat-icon--purple {
  background: #f3e8ff;
  color: #9333ea;
}

.hdash__stat-icon--orange {
  background: #ffedd5;
  color: #ea580c;
}

.hdash__stat-label {
  display: block;
  font-size: 10px;
  color: #64748b;
  margin-bottom: 2px;
}

.hdash__stat-value {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  transition: opacity 0.25s ease;
}

.hdash__stat-trend {
  display: inline-block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  color: #16a34a;
}

.hdash__stat-trend em {
  font-style: normal;
  font-weight: 500;
  color: #94a3b8;
}

.hdash__mid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.9fr);
  gap: 8px;
}

.hdash__card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  min-width: 0;
}

.hdash__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.hdash__card-head h3 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
}

.hdash__select-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 10px;
  color: #475569;
  cursor: pointer;
}

.hdash__chart-wrap {
  position: relative;
  height: 150px;
}

.hdash__sales-chart {
  width: 100%;
  height: 100%;
  display: block;
}

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

.hdash__actions-grid button {
  border: 1px solid #eef2f7;
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 10px;
  color: #334155;
  font-weight: 600;
}

.hdash__actions-grid i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.hdash__qa--green {
  background: #dcfce7;
  color: #16a34a;
}

.hdash__qa--blue {
  background: #dbeafe;
  color: #2563eb;
}

.hdash__qa--purple {
  background: #f3e8ff;
  color: #9333ea;
}

.hdash__qa--orange {
  background: #ffedd5;
  color: #ea580c;
}

.hdash__qa--pink {
  background: #fce7f3;
  color: #db2777;
}

.hdash__qa--cyan {
  background: #cffafe;
  color: #0891b2;
}

.hdash__qa--indigo {
  background: #e0e7ff;
  color: #4f46e5;
}

.hdash__qa--slate {
  background: #e2e8f0;
  color: #475569;
}

.hdash__grid4 {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr 1.32fr;
  gap: 8px;
}

.hdash__products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hdash__products li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.hdash__products img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}

.hdash__products strong {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hdash__products span {
  font-size: 9.5px;
  color: #94a3b8;
}

.hdash__products em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #0f172a;
}

.hdash__traffic {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.hdash__donut-wrap {
  position: relative;
  width: 108px;
  height: 108px;
}

.hdash__donut {
  width: 100%;
  height: 100%;
}

.hdash__donut-bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 12;
}

.hdash__donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.hdash__donut-center span {
  font-size: 8px;
  color: #94a3b8;
}

.hdash__donut-center strong {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.hdash__donut-center em {
  font-style: normal;
  font-size: 9px;
  color: #16a34a;
  font-weight: 700;
}

.hdash__traffic-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hdash__traffic-legend li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #475569;
}

.hdash__traffic-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.hdash__traffic-legend b {
  margin-left: auto;
  font-weight: 700;
  color: #0f172a;
}

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

.hdash__health li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #334155;
}

.hdash__health em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  border-radius: 999px;
  padding: 2px 7px;
}

.hdash__orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.hdash__orders-table th {
  text-align: left;
  color: #94a3b8;
  font-weight: 600;
  padding: 0 4px 6px 0;
}

.hdash__orders-table td {
  padding: 5px 4px 5px 0;
  border-top: 1px solid #f1f5f9;
  color: #334155;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hdash__pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
}

.hdash__pill.is-paid {
  background: #dcfce7;
  color: #15803d;
}

.hdash__pill.is-pending {
  background: #fef3c7;
  color: #b45309;
}

.hdash__pill.is-cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

.hdash__bottom {
  display: grid;
  grid-template-columns: 1.25fr 1.05fr;
  gap: 8px;
}

.hdash__setup {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  position: relative;
}

.hdash__setup::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}

.hdash__setup li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 20%;
  text-align: center;
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
}

.hdash__setup li span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #cbd5e1;
}

.hdash__setup li.is-done span {
  background: #22c55e;
  box-shadow: 0 0 0 1px #16a34a;
}

.hdash__setup li.is-current span {
  background: #2563eb;
  box-shadow: 0 0 0 1px #1d4ed8;
}

.hdash__setup li.is-done,
.hdash__setup li.is-current {
  color: #0f172a;
}

.hdash__activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 120px;
}

.hdash__activity li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  animation: hdashActivityIn 0.45s ease;
}

@keyframes hdashActivityIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hdash__activity-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background: #e0f2fe;
  color: #0284c7;
}

.hdash__activity strong {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.25;
}

.hdash__activity span {
  font-size: 9.5px;
  color: #94a3b8;
}

.hdash__agent {
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hdash__agent-avatar {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  overflow: hidden;
  margin: 4px auto 0;
  background: linear-gradient(160deg, #cffafe, #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hdash__agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hdash__agent h3 {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.hdash__agent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hdash__agent-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #334155;
  background: #f8fafc;
  border-radius: 8px;
  padding: 7px 8px;
  font-weight: 600;
}

.hdash__agent-list i {
  width: 14px;
  color: #64748b;
  text-align: center;
}

.hdash__agent-cta {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: linear-gradient(90deg, #06b6d4, #6366f1);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: auto;
}

.hdash__agent-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11px;
  color: #94a3b8;
  background: #f8fafc;
}

@media (max-width: 980px) {
  .hero-landing__visual {
    max-width: 100%;
  }

  .hdash {
    --hdash-scale: 0.62;
  }

  .hdash-frame {
    max-width: 820px;
    margin: 0 auto;
  }
}

/* Desktop clarity and spacing enhancements */
@media (min-width: 1200px) {
  .hero-landing__visual {
    max-width: 1140px;
  }

  .hdash-frame {
    border-radius: 22px;
    box-shadow:
      0 34px 86px rgba(15, 23, 42, 0.2),
      0 10px 28px rgba(15, 23, 42, 0.1);
  }

  .hdash__main {
    padding: 14px 16px 16px;
    gap: 12px;
  }

  .hdash__welcome h2 {
    font-size: 20px;
  }

  .hdash__welcome p {
    font-size: 12px;
  }

  .hdash__stats {
    gap: 10px;
  }

  .hdash__stat {
    padding: 12px;
  }

  .hdash__stat-value {
    font-size: 16px;
  }

  .hdash__mid,
  .hdash__grid4,
  .hdash__bottom {
    gap: 12px;
  }

  .hdash__card {
    padding: 12px 14px;
  }

  .hdash__card-head h3 {
    font-size: 13px;
  }

  .hdash__chart-wrap {
    height: 160px;
  }

  .hdash__actions-grid {
    gap: 9px;
  }

  .hdash__actions-grid button {
    padding: 11px 6px;
  }

  .hdash__products {
    gap: 8px;
  }

  .hdash__products strong {
    font-size: 11px;
  }

  .hdash__orders-table th,
  .hdash__orders-table td {
    font-size: 10.5px;
  }

  .hdash__activity {
    min-height: 128px;
    gap: 8px;
  }
}

@media (min-width: 1400px) {
  .hero-landing__visual {
    max-width: 1220px;
  }
}
