/* Palette aligned with www.bingoclaw.cn (dark + orange accent) */
:root {
  --bg: #0a0e14;
  --bg2: #131920;
  --card: #161d26;
  --border: #2d3748;
  --border-soft: rgba(45, 55, 72, 0.6);
  --text: #e8edf4;
  --muted: #94a3b8;
  --dim: #64748b;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-dim: rgba(249, 115, 22, 0.15);
  --accent-glow: rgba(249, 115, 22, 0.35);
  --cyan: var(--accent);
  --cyan-dim: var(--accent-dim);
  --green: #22c55e;
  --r: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header: full-bleed bar; inner row uses .wrap so logo aligns with main content (cf. bingoclaw.cn) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* BingoClaw-style: brand at content left edge; nav + account pack at the right and grow leftward */
.nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem clamp(0.65rem, 1.8vw, 1.15rem);
  padding-block: 0.9rem;
}

/* Header mark — www.bingoclaw.cn pattern (🦞 + Claw + gradient Care → ClawCare) */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-weight: 700;
  font-size: clamp(0.78rem, 1.55vw, 1.05rem);
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  flex-wrap: wrap;
  max-width: min(100%, 22rem);
  transition: opacity 0.2s ease;
}
.logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.logo-icon {
  font-size: 1.25rem;
  line-height: 1;
  margin-right: 6px;
  opacity: 0.95;
  flex-shrink: 0;
  position: relative;
  top: 0.06em;
}

.logo-text {
  color: var(--text);
  font-weight: 700;
}

.logo-text--lockup {
  line-height: 1.15;
}
.logo-name {
  font-weight: 700;
  color: var(--text);
}
.logo-powered {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.88em;
  letter-spacing: -0.01em;
}

.logo-accent {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-footer .logo {
  font-size: clamp(0.72rem, 1.35vw, 0.95rem);
  max-width: min(100%, 20rem);
}
.site-footer .logo-icon {
  font-size: 1.05rem;
  margin-right: 5px;
}

.nav-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem clamp(0.55rem, 1.2vw, 1.1rem);
}

@media (max-width: 640px) {
  .logo {
    order: 1;
  }
  .nav-actions {
    order: 2;
    margin-left: auto;
  }
  .nav-main {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-end;
    padding-top: 0.5rem;
    margin-top: 0.1rem;
    border-top: 1px solid var(--border-soft);
  }
}

.nav-main a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: flex-end;
}

.badge-cart {
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #0a0e14;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #fdba74, #f97316);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: rgba(249, 115, 22, 0.45);
  background: var(--accent-dim);
}

/* Sections */
section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 54ch;
  margin: 0 0 1.5rem;
}

/* Narrative block — compact vertical rhythm */
.hero-story {
  margin: 0.08rem 0 0;
  padding: 0.35rem 0 0 0;
}

.hero-title {
  margin: 0 0 0.55rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero-title__brand {
  display: block;
  font-size: clamp(1.45rem, 2.85vw, 1.85rem);
  font-weight: 700;
  white-space: nowrap;
}
.hero-title__rest {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(0.8rem, 1.5vw + 0.4rem, 1.22rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--muted);
  white-space: nowrap;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.15rem;
}

.hero-story .lead {
  margin: 0 0 0.72rem;
  font-size: 1rem;
  line-height: 1.55;
  max-width: min(100%, 58ch);
  color: var(--muted);
}

.hero-story .hero-lead-accent {
  margin: 0 0 0.65rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.98rem;
  line-height: 1.58;
  max-width: min(100%, 58ch);
  color: var(--muted);
}

.hero-story .hero-tagline {
  margin: 0;
  padding: 0.5rem 0 0;
  max-width: min(100%, 58ch);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.45;
  color: var(--text);
}

.hero .stats.hero-stats {
  margin-top: 0.55rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(22, 29, 38, 0.92), rgba(19, 25, 32, 0.55));
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.14);
  gap: 0.65rem 0.55rem;
}

.hero-copy .stats.hero-stats strong {
  font-size: 1.05rem;
}

.hero-cta-row {
  margin-top: 0.6rem;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(0.35rem, 1vw, 0.65rem);
  padding-bottom: clamp(1rem, 2.5vw, 1.75rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -50% -20% auto;
  height: 90%;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow), transparent 55%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
}

.hero-grid {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  /* Stretch so the lifestyle column fills row height when copy is taller (no dead band below images). */
  align-items: stretch;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* Text column can use full grid width; min-width 0 avoids grid overflow quirks */
.hero-copy {
  min-width: 0;
}

.hero-works-with {
  grid-column: 1 / -1;
  margin: 0.2rem 0 0;
  padding: 0.5rem 0 0;
  border-top: 1px solid var(--border-soft);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.hero-works-with__lead {
  flex-shrink: 0;
  color: var(--text);
  font-weight: 600;
}
.hero-works-with__inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.15rem;
  row-gap: 0.35rem;
  min-width: 0;
}
.hero-works-with__app {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}
.hero-works-with__app:not(:last-child)::after {
  content: "，";
  margin-left: 0.12rem;
  color: var(--muted);
  font-weight: 400;
}
.hero-works-with__name {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.works-with-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  position: relative;
  top: 0.05em;
}

@media print {
  .hero {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
.hero-card-visual {
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent-dim), var(--bg2));
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
  padding: 1rem;
}

.hero-card--media {
  padding: 0;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(56, 189, 248, 0.12),
    0 0 48px -12px rgba(249, 115, 22, 0.12);
}
.hero-visual-stack .hero-card--media {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
}
.hero-card--media::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-product-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  aspect-ratio: 1024 / 558;
  object-fit: cover;
  object-position: 50% 42%;
  max-height: min(26vh, 200px);
}

/* Lifestyle tiles: equal flex share + min heights so the hero column feels full on desktop */
.hero-visual-stack .hero-product-img,
.hero-visual-stack .hero-ui-mock--photo img {
  width: 100%;
  max-height: none;
  aspect-ratio: unset;
  object-fit: cover;
  flex: 1 1 0;
  min-height: clamp(200px, min(34vw, 28vh), 360px);
  height: auto;
}
.hero-visual-stack .hero-product-img {
  object-position: 50% 42%;
}
.hero-visual-stack .hero-ui-mock--photo img {
  object-position: 50% 38%;
}

.hero-card-foot {
  padding: 0.55rem 0.85rem 0.65rem;
  flex-shrink: 0;
}

/* Product gallery (index) */
.product-gallery-intro {
  margin-top: 2rem;
}

.product-gallery-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .product-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-gallery-grid .product-shot-wide {
    grid-column: 1 / -1;
  }
}

.product-shot {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  transition: box-shadow 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
}
.product-shot:hover {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(56, 189, 248, 0.1),
    0 0 36px -14px rgba(249, 115, 22, 0.12);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .product-shot {
    transition: none;
  }
  .product-shot:hover {
    transform: none;
  }
}

/* Tighter crop so gallery tiles feel editorial, not billboard-sized */
.product-shot-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg2);
  height: clamp(200px, 30vw, 260px);
}
.product-shot-wide .product-shot-frame {
  height: clamp(240px, 40vw, 360px);
}
.product-shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  vertical-align: middle;
}

.product-shot-wide .product-shot-frame img {
  object-position: 50% 42%;
}

.product-shot figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
  border-top: 1px solid var(--border);
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Hero eyebrow — same pill language as reference (warm tint + copper text) */
.pill--hero {
  margin: -0.2rem 0 0.42rem;
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #fb923c;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.14), rgba(249, 115, 22, 0.06));
  border: 1px solid rgba(251, 146, 60, 0.45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 560px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stats strong {
  display: block;
  font-size: 1.2rem;
  color: var(--accent);
}
.stats span {
  font-size: 0.7rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bg-alt {
  background: var(--bg2);
  border-block: 1px solid var(--border);
}

.card-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .card-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .card-grid.cols-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1100px) {
  .card-grid.cols-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (min-width: 640px) and (max-width: 899px) {
  .card-grid.cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
}
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}
.card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}
.card .num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--border);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
table.data th,
table.data td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table.data th {
  background: var(--bg2);
  color: var(--muted);
  font-weight: 600;
}
table.data tr:last-child td {
  border-bottom: none;
}
table.data .hi {
  color: var(--accent);
  font-weight: 600;
}

.quote {
  margin: 2rem 0 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-band {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg2), var(--bg));
}
.cta-band p {
  color: var(--muted);
  max-width: 42ch;
  margin: 0 auto 1.25rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
.footer-grid h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin: 0 0 0.65rem;
}
.footer-grid a {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 36ch;
  margin: 0.5rem 0 0;
}
.disclaimer {
  font-size: 0.75rem;
  color: var(--dim);
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}

/* Console / account panels */
.panel-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .panel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
}
.panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.panel p,
.panel li {
  color: var(--muted);
  font-size: 0.875rem;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 0.35rem;
}

.page-title {
  padding: 1.15rem 0 1rem;
}
.page-title h1 {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}
.page-title p {
  color: var(--muted);
  margin: 0;
}

/* --- BingoClaw.cn-inspired marketing blocks (US copy) --- */
.bc-strip {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-block: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.06), transparent 55%);
}
.bc-strip p {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text);
  max-width: 42rem;
  margin-inline: auto;
  line-height: 1.55;
}
.bc-strip .bc-sub {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-visual-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.2vw, 0.75rem);
  min-height: 0;
}
@media (min-width: 900px) {
  .hero-visual-stack {
    min-height: min(72vh, 780px);
  }
}
.hero-visual-stack .hero-ui-mock--photo {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
}
.hero-ui-mock {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}
.hero-ui-mock img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
.hero-ui-mock--photo img {
  aspect-ratio: 1024 / 558;
  max-height: min(24vh, 185px);
  object-fit: cover;
  object-position: 50% 38%;
}
.hero-ui-mock figcaption,
.hero-ui-mock__cap {
  padding: 0.4rem 0.75rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.hero-ui-mock__cap strong {
  color: var(--text);
  font-weight: 600;
}
.hero-ui-mock__cap a {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
}

.bc-pillars .card-grid {
  margin-top: 1.5rem;
}
.bc-pillar-ico {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.bc-feature-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .bc-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .bc-feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.bc-feature {
  padding: 1rem 1.1rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--card);
}
.bc-feature h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--text);
}
.bc-feature p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.bc-steps {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  counter-reset: bcstep;
}
@media (min-width: 720px) {
  .bc-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.bc-step {
  position: relative;
  padding: 1.1rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--bg2);
}
.bc-step::before {
  counter-increment: bcstep;
  content: counter(bcstep, decimal-leading-zero);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.bc-step h3 {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.95rem;
}
.bc-step p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

/* --- Cloud console (signed-in) --- */
.console-page main {
  padding: 0;
  min-height: calc(100vh - 120px);
}

.console-app {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
  border-top: 1px solid var(--border);
}
@media (max-width: 768px) {
  .console-app {
    grid-template-columns: 1fr;
  }
  .console-sidebar {
    border-bottom: 1px solid var(--border);
  }
}

.console-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 2;
  isolation: isolate;
}
.console-side-title {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.console-side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.console-side-nav a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
}
.console-side-nav a:hover {
  background: rgba(249, 115, 22, 0.08);
  color: var(--text);
  text-decoration: none;
}
.console-side-nav a.is-active {
  background: var(--accent-dim);
  color: var(--text);
  border: 1px solid rgba(249, 115, 22, 0.25);
}
.console-side-foot {
  margin: auto 0 0;
  font-size: 0.75rem;
  color: var(--dim);
}

.console-main {
  padding: clamp(1rem, 3vw, 1.75rem);
  background: var(--bg);
  overflow-x: auto;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.console-panel {
  min-width: 0;
}

.console-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.console-topbar-title {
  margin: 0;
  font-size: 1.35rem;
}
.console-topbar-sub {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.console-topbar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.console-email {
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.console-modules {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 720px) {
  .console-modules {
    grid-template-columns: repeat(3, 1fr);
  }
}
.console-mod {
  padding: 1rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--card);
}
.console-mod-label {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.console-mod-title {
  margin: 0.4rem 0 0.15rem;
  font-size: 0.9rem;
  color: var(--text);
}
.console-mod-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.console-mod--cyan {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 24px -8px rgba(56, 189, 248, 0.2);
}
.console-mod--cyan .console-mod-label {
  color: #38bdf8;
}
.console-mod--green {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 24px -8px rgba(34, 197, 94, 0.15);
}
.console-mod--green .console-mod-label {
  color: #22c55e;
}
.console-mod--violet {
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 0 24px -8px rgba(167, 139, 250, 0.12);
}
.console-mod--violet .console-mod-label {
  color: #c4b5fd;
}

.console-card-block {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--card);
}
.console-card-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.console-muted {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.console-fine {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--dim);
}

.console-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.console-chip {
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg2);
}
.console-chip--dim {
  opacity: 0.55;
}

.console-table {
  margin-top: 0.5rem;
}

.console-figure {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
}
.console-figure img {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
}
.console-figure--photo img {
  max-width: none;
  max-height: min(58vh, 440px);
  width: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  aspect-ratio: 1024 / 558;
}
.console-figure-cap {
  padding: 0.5rem 0.85rem;
  font-size: 0.75rem;
  color: var(--dim);
  border-top: 1px solid var(--border);
  background: var(--card);
}
.console-figure--photo .console-figure-cap {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
  padding: 0.65rem 1rem;
}
.console-figure--photo .console-figure-cap strong {
  color: var(--text);
  font-weight: 600;
}

/* --- Shop cart (editable lines) --- */
.shop-cart-card {
  margin-top: 2rem;
  max-width: 42rem;
  padding: 1.15rem 1.25rem;
}
.shop-cart-lines {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.shop-cart-line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.875rem;
  color: var(--muted);
}
.shop-cart-line__info {
  flex: 1 1 12rem;
  min-width: 0;
}
.shop-cart-line__name {
  display: block;
  color: var(--text);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}
.shop-cart-line__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.shop-cart-line__qtybtn {
  padding: 0.2rem 0.5rem;
  min-width: 2rem;
  font-size: 1rem;
  line-height: 1;
}
.shop-cart-qty-input {
  width: 3.25rem;
  padding: 0.25rem 0.35rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-size: 0.875rem;
  text-align: center;
  -moz-appearance: textfield;
}
.shop-cart-qty-input::-webkit-outer-spin-button,
.shop-cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.shop-cart-line__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}
.shop-cart-line__price {
  font-weight: 600;
  color: var(--text);
}
.shop-cart-line__remove {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
}
.shop-cart-empty {
  color: var(--dim);
  font-size: 0.875rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.shop-cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.shop-cart-card #checkout-btn {
  width: 100%;
  margin-top: 0.35rem;
}
