/* Pooshino dashboard shell — aligned with marketing / auth design */

.dash-page,
.dash {
  --dash-sidebar: 268px;
}

body:has(.dash),
.dash-page {
  min-height: 100svh;
}

.dash {
  min-height: 100svh;
  display: grid;
  grid-template-columns: var(--dash-sidebar) minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: stretch;
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(26, 86, 214, 0.06), transparent 55%),
    var(--background);
}

.dash > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  align-self: stretch;
}

/* —— Sidebar —— */
.sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  background: var(--surface);
  border-inline-end: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.sidebar .logo,
.dash-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px 8px 22px;
  padding: 0;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sidebar .logo:hover,
.dash-brand:hover {
  color: var(--text-primary);
}

.dash-brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-hover) 100%);
  box-shadow: 0 8px 18px rgba(26, 86, 214, 0.24);
  flex: 0 0 auto;
}

.dash-brand-mark img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
}

.dash-brand-text {
  display: grid;
  gap: 1px;
  line-height: 1.15;
}

.dash-brand-word {
  font-size: 16px;
  font-weight: 800;
}

.dash-brand-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

.sidebar .logo {
  font-size: 14px;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--primary-light) 55%, white);
  color: var(--primary-hover);
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}

.side-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: inherit;
  background: color-mix(in srgb, var(--surface-raised) 80%, white);
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}

.side-icon svg {
  display: block;
}

.side-label {
  min-width: 0;
  line-height: 1.3;
}

.side-link:hover {
  background: var(--surface-raised);
  color: var(--text-primary);
}

.side-link:hover .side-icon {
  background: color-mix(in srgb, var(--primary-light) 70%, white);
  color: var(--primary-hover);
}

.side-link.active {
  color: var(--primary-hover);
  background: var(--primary-light);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary-soft) 55%, transparent);
}

.side-link.active .side-icon {
  color: #fff;
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-hover) 100%);
  box-shadow: 0 6px 14px rgba(26, 86, 214, 0.22);
}

.side-group {
  margin: 18px 0 4px;
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* —— Topbar —— */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.15);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar > .row {
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}

.mobile-menu-btn,
.dash-backdrop {
  display: none;
}

.store-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--surface);
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--secondary) 0%, #163052 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.topbar .btn-ghost {
  border-radius: 999px;
  font-weight: 600;
}

/* —— Main —— */
.dash-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  min-height: 0;
  padding: 28px clamp(20px, 3vw, 40px) 40px;
}

/* Stretch the last primary block so short pages don’t leave a blank band */
.dash-main > .panel-card:last-of-type,
.dash-main > .integration-grid:last-child,
.dash-main > .plans-grid:last-child {
  flex: 1 1 auto;
}

.dash-main .kicker,
.dashboard-head .kicker,
.page-head .kicker,
.setup-card .kicker,
.panel-card .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dashboard-head,
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.dashboard-head h1,
.page-head h1 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.dashboard-head p,
.page-head p {
  margin: 8px 0 0;
}

.dashboard-head .btn,
.page-head .btn {
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(26, 86, 214, 0.18);
}

.dashboard-head .btn-secondary,
.page-head .btn-secondary {
  box-shadow: none;
}

.dashboard-section {
  margin-top: 20px;
}

/* —— KPIs —— */
.kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

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

.kpi {
  position: relative;
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.95), color-mix(in srgb, var(--primary-light) 25%, white));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kpi-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--primary-hover);
  background: color-mix(in srgb, var(--primary-light) 75%, white);
}

.kpi-icon svg {
  display: block;
}

.kpi-icon.is-warn {
  color: #b45309;
  background: color-mix(in srgb, #fef3c7 80%, white);
}

.kpi-icon.is-ok {
  color: #047857;
  background: color-mix(in srgb, #d1fae5 75%, white);
}

.kpi .caption {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.kpi .val {
  margin: 10px 0 0;
  font-size: 28px;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.kpi .val.accent {
  color: var(--primary);
}

/* —— Usage chart —— */
.usage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
  gap: 22px;
  margin-top: 18px;
  align-items: stretch;
}

.usage-chart {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  padding: 18px 16px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary-light) 28%, white), var(--surface));
}

.usage-chart-plot {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 200px;
  padding: 8px 4px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.usage-chart-plot::before {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  background-image:
    linear-gradient(to top, color-mix(in srgb, var(--border) 70%, transparent) 1px, transparent 1px);
  background-size: 100% 25%;
  background-position: bottom;
  pointer-events: none;
  opacity: 0.7;
}

.usage-day {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 100%;
  justify-content: flex-end;
}

.usage-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 100%;
  min-height: 160px;
}

.usage-bar {
  display: block;
  width: clamp(8px, 28%, 16px);
  height: calc(var(--h, 0) * 1%);
  min-height: 0;
  border-radius: 999px 999px 6px 6px;
  transform-origin: bottom;
  transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.usage-bar.is-ok {
  background: linear-gradient(180deg, #5b8cff 0%, var(--primary) 55%, var(--primary-hover) 100%);
  box-shadow: 0 8px 16px rgba(26, 86, 214, 0.22);
}

.usage-bar.is-fail {
  background: linear-gradient(180deg, #fda4af 0%, #f43f5e 100%);
  box-shadow: 0 8px 16px rgba(244, 63, 94, 0.16);
}

.usage-bar.is-empty {
  height: 4px;
  opacity: 0.35;
  background: color-mix(in srgb, var(--text-muted) 35%, white);
  box-shadow: none;
}

.usage-day-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usage-day-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.usage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.usage-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.usage-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.usage-legend-swatch.is-ok {
  background: var(--primary);
}

.usage-legend-swatch.is-fail {
  background: #f43f5e;
}

.usage-empty {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  min-height: 200px;
}

.usage-table-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.usage-table-wrap .table-wrap,
.usage-table-wrap .table-scroll {
  flex: 1;
}

/* —— Cards —— */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.setup-card,
.panel-card,
.integration-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.setup-card h2,
.panel-card h2 {
  margin: 0;
}

.setup-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.setup-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-raised) 70%, white);
  transition: border-color var(--duration) ease, box-shadow var(--duration) ease;
}

.setup-item:hover {
  border-color: color-mix(in srgb, var(--primary-soft) 65%, var(--border));
  box-shadow: var(--shadow-soft);
}

.setup-check {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--primary-hover);
  background: var(--primary-light);
  font-size: 13px;
  font-weight: 800;
}

.setup-item.done .setup-check {
  color: #fff;
  background: var(--success);
}

.setup-copy strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
}

.setup-copy span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

.setup-item .btn {
  border-radius: 999px;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}

.quick-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.quick-actions .btn {
  justify-content: center;
  width: 100%;
  border-radius: 999px;
  font-weight: 700;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.status-row:last-child {
  border-bottom: 0;
}

.status-row strong,
.status-row a {
  font-weight: 700;
  color: var(--text-primary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-inline-end: 8px;
  background: var(--text-muted);
  box-shadow: 0 0 0 3px rgba(139, 155, 176, 0.15);
}

.status-dot.ok {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(13, 154, 106, 0.15);
}

.status-dot.warn {
  background: var(--warning);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

/* —— Tables —— */
.table-wrap,
.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}

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

.table th {
  text-align: start;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--primary-light) 35%, white);
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

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

.empty-note {
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.table-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* —— Shared panel utilities —— */
.ai-insight {
  margin: 32px 0;
  padding: 16px 16px 16px 0;
  border-inline-start: 2px solid var(--violet-600);
}

.ai-insight p {
  margin: 0;
}

.code {
  background: var(--secondary);
  color: #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow: auto;
  direction: ltr;
  text-align: left;
}

.wizard {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.wiz-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.wiz-step.on {
  color: var(--primary);
  font-weight: 700;
}

.wiz-n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  border: 1px solid var(--border);
}

.wiz-step.on .wiz-n {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.product img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}

.product h3 {
  margin: 12px 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.secret-card {
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid color-mix(in srgb, var(--primary-soft) 60%, var(--border));
  border-radius: var(--radius-xl);
  background: var(--primary-light);
}

.secret-card[hidden] {
  display: none;
}

.code-value {
  display: block;
  max-width: 100%;
  padding: 10px 12px;
  margin-top: 7px;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
  border-radius: var(--radius-md);
  background: var(--secondary);
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  white-space: nowrap;
}

.integration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.integration-card.featured {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary-light) 55%, white) 0%, var(--surface) 42%);
}

.numbered-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  counter-reset: setup;
}

.numbered-list li {
  position: relative;
  padding: 12px 42px 12px 0;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
}

.numbered-list li::before {
  counter-increment: setup;
  content: counter(setup, decimal);
  position: absolute;
  inset-inline-start: 0;
  top: 11px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary-hover);
  font-size: 11px;
  font-weight: 700;
}

.balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  margin-bottom: 28px;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(59, 111, 232, 0.35), transparent 55%),
    linear-gradient(145deg, #0d213f 0%, var(--secondary) 55%, #122844 100%);
  color: #fff;
  box-shadow: var(--shadow-lift);
}

.balance-card .balance-value {
  margin: 4px 0 0;
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.balance-card .caption {
  color: #94a3b8;
}

.balance-card .btn {
  border-radius: 999px;
  font-weight: 700;
}

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

.plan-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) ease;
}

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

.plan-card.featured {
  border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
  box-shadow: 0 16px 40px rgba(26, 86, 214, 0.12);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary-light) 65%, white) 0%, var(--surface) 45%);
}

.plan-card .price {
  margin: 12px 0 0;
  font-size: 30px;
  line-height: 1.4;
  font-weight: 800;
}

.plan-card .btn {
  width: 100%;
  margin-top: auto;
  border-radius: 999px;
  font-weight: 700;
}

.dash-main .section-heading {
  max-width: 680px;
}

.dash-main .section-heading > p:last-child {
  margin: 8px 0 0;
  color: var(--text-secondary);
}

/* Legacy auth shell (kept for any remaining pages) */
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 16px;
}

.auth-card {
  width: min(100%, 420px);
}

.form-status {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.form-status.err {
  color: var(--status-error);
}

.otp {
  display: flex;
  gap: 8px;
}

.otp input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.otp input:focus {
  border-color: var(--primary);
  box-shadow: var(--focus);
  outline: none;
}

.progress-track {
  height: 2px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0;
  transition: width 400ms ease;
}

@media (max-width: 1100px) {
  .dash {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: flex;
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 50;
    width: min(86vw, 300px);
    height: 100svh;
    transform: translateX(105%);
    transition: transform 220ms var(--ease-out);
    box-shadow: -16px 0 48px rgba(15, 23, 42, 0.16);
    overflow-y: auto;
  }

  .nav-open {
    overflow: hidden;
  }

  .nav-open .sidebar {
    transform: translateX(0);
  }

  .mobile-menu-btn {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
  }

  .mobile-menu-btn span {
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-primary);
  }

  .dash-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    border: 0;
    background: rgba(15, 23, 42, 0.48);
    cursor: pointer;
  }

  .nav-open .dash-backdrop {
    display: block;
  }

  .topbar {
    padding: 12px 16px;
    gap: 12px;
  }

  .store-switch {
    margin-inline-end: auto;
    max-width: 45vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dash-main {
    padding: 24px 18px 64px;
    width: 100%;
  }

  .kpis,
  .products {
    grid-template-columns: 1fr 1fr;
  }

  .kpis.kpis-four {
    grid-template-columns: 1fr 1fr;
  }

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

  .usage-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .topbar {
    padding-inline: 12px;
  }

  .topbar .btn-ghost {
    padding-inline: 10px;
  }

  .store-switch {
    max-width: 38vw;
    padding-inline: 10px;
  }

  .dash-main {
    padding: 20px 14px 56px;
  }

  .kpis,
  .products {
    grid-template-columns: 1fr;
  }

  .kpis.kpis-four {
    grid-template-columns: 1fr;
  }

  .dashboard-head,
  .page-head {
    align-items: start;
    flex-direction: column;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .inline-form .btn {
    width: 100%;
  }

  .balance-card {
    align-items: start;
    flex-direction: column;
  }

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

  .kpi {
    padding: 16px;
  }

  .setup-card,
  .panel-card {
    padding: 18px;
  }

  .setup-item {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .setup-item .btn {
    grid-column: 2;
    width: fit-content;
  }

  .wizard {
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .wiz-step {
    white-space: nowrap;
  }
}
