/* =====================================================================
   RVRN App v2 — screen-specific styles
   ===================================================================== */

/* ---------- Home: editorial / real cars ---------- */
.real-cars {
  padding: var(--s6) var(--s5) 0;
}

.real-cars .editorial-card {
  margin-top: var(--s2);
}

.home-progress .greeting {
  margin-top: var(--s2);
}

.home-progress .subtitle {
  margin-bottom: var(--s2);
}

.build-ref {
  letter-spacing: 1.2px;
}

/* ---------- Studio ---------- */
.studio-hero {
  margin-top: 22px;
}

.finish-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
}

.finish-presets button {
  background: transparent;
  padding: 0;
  text-align: left;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.finish-presets img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  border: 1px solid var(--line);
  margin-bottom: 6px;
}

.finish-presets button.on img {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  margin-top: var(--s4);
}

.product-tile {
  background: var(--paper);
  padding: var(--s3);
  text-align: left;
}

.product-tile img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  background: #eee;
}

.product-tile h3 {
  font-size: 14px;
  margin: 6px 0 2px;
  letter-spacing: -0.3px;
}

.product-tile .tiny {
  color: var(--muted);
}

.product-tile.on {
  outline: 2px solid var(--black);
  outline-offset: -2px;
}

/* ---------- Product / Configure ---------- */
.product-tabs {
  display: flex;
  gap: var(--s2);
  padding: var(--s3) var(--s5) 0;
}

.product-tabs button {
  padding: 9px var(--s3);
  border: 1px solid #ccc;
  background: var(--white);
  font-size: 11px;
  min-height: 38px;
}

.product-tabs button.on {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.pdp-image img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
  margin-top: var(--s3);
}

.pdp-title {
  font-size: 26px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: var(--s3) 0 6px;
}

.config-viewer {
  position: relative;
  background: #151515;
  margin: 0 var(--s5);
  aspect-ratio: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.config-viewer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.config-viewer .glb-tag {
  position: absolute;
  left: var(--s3);
  bottom: var(--s3);
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 10px;
  padding: 5px var(--s2);
}

.mode-switch {
  display: flex;
  gap: var(--s2);
  margin: var(--s4) 0 var(--s2);
}

.mode-switch button {
  flex: 1;
  padding: var(--s3);
  border: 1px solid #ccc;
  background: var(--white);
  font-size: 12px;
  min-height: 46px;
}

.mode-switch button.on {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.size-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  margin-top: var(--s2);
}

.price-box {
  margin-top: var(--s5);
  border: 1px solid var(--line);
  padding: var(--s4);
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 7px 0;
}

.price-row.total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: var(--s3);
  font-size: 15px;
  font-weight: 600;
}

/* ---------- Project ---------- */
.timeline {
  margin-top: var(--s4);
}

.timeline-item {
  display: flex;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ddd;
  margin-top: 5px;
  flex-shrink: 0;
}

.timeline-item.done .dot {
  background: var(--black);
}

.timeline-item.current .dot {
  background: var(--red);
}

.timeline-item .label {
  font-size: 12px;
  font-weight: 500;
}

.timeline-item .date {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- Cart ---------- */
.cart-item {
  padding: var(--s5) var(--s5) var(--s4);
  border-bottom: 1px solid var(--line);
}

.cart-item:first-of-type {
  border-top: 1px solid var(--line);
}

.cart-item h3 {
  font-size: 15px;
  margin-bottom: 3px;
}

.cart-item .thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fafafa;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.cart-item .kv {
  margin-top: var(--s3);
}

.quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
}

.quantity button {
  width: 40px;
  height: 40px;
  background: transparent;
  font-size: 16px;
}

.quantity button:disabled {
  color: #ccc;
}

.quantity span {
  min-width: 34px;
  text-align: center;
  font-size: 13px;
}

.cart-total {
  background: var(--paper);
  padding: var(--s4) var(--s5);
  margin-top: var(--s4);
}

/* ---------- My RVRN ---------- */
.account-hero {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #151515;
  color: var(--white);
}

.account-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent 85%);
}

.account-hero .content {
  position: absolute;
  left: var(--s5);
  right: var(--s5);
  bottom: var(--s5);
  z-index: 1;
}

.account-hero h1 {
  font-size: 27px;
  line-height: 1.12;
  letter-spacing: -1px;
  font-weight: 600;
  margin: var(--s2) 0 4px;
}

.tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 5px var(--s2);
  font-size: 10px;
  letter-spacing: 1px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin-top: var(--s4);
}

.stat-box {
  background: var(--paper);
  padding: var(--s3);
  text-align: center;
}

.stat-box .value {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.6px;
}

.stat-box .label {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}

.credits-box {
  border: 1px solid var(--line);
  padding: var(--s4);
  margin-top: var(--s4);
}

.credits-box .amount {
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: var(--s2) 0;
}

.benefit-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
}

.benefit-row .value {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.dream-card {
  position: relative;
  overflow: hidden;
  background: #151515;
  color: var(--white);
  text-align: left;
  width: 100%;
  padding: 0;
}

.dream-card img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  opacity: 0.86;
}

.dream-card .content {
  position: absolute;
  left: var(--s4);
  right: var(--s4);
  bottom: var(--s4);
}

.dream-card h3 {
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.dream-card p {
  font-size: 11px;
  color: #ddd;
}

/* =====================================================================
   New-user guide — spotlight overlay (highlight area keeps normal colour,
   the rest of the same tab is covered with a translucent grey dim)
   ===================================================================== */
.guide-layer {
  position: absolute;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

.guide-dim {
  position: absolute;
  background: rgba(10, 10, 10, 0.55);
  transition: all 0.22s ease;
  pointer-events: auto;
}

.guide-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0);
  transition: all 0.22s ease;
  pointer-events: none;
}

.guide-card {
  position: absolute;
  left: var(--s4);
  right: var(--s4);
  bottom: var(--s4);
  top: auto;
  max-height: 42%;
  overflow-y: auto;
  background: var(--white);
  border-radius: 12px;
  padding: var(--s4);
  box-shadow: var(--shadow-pop);
  pointer-events: auto;
  transition: all 0.22s ease;
}

.guide-card .step-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}

.guide-card h3 {
  font-size: 17px;
  letter-spacing: -0.4px;
  margin: var(--s2) 0 4px;
}

.guide-card .subtitle {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}

.guide-items {
  margin: var(--s3) 0 var(--s2);
}

.guide-item {
  display: flex;
  gap: var(--s2);
  padding: 7px 0;
  font-size: 11px;
  line-height: 1.6;
  color: #444;
}

.guide-item b {
  color: var(--ink);
  font-weight: 600;
  display: block;
}

.guide-item .marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.guide-dots {
  display: flex;
  gap: 5px;
  margin: var(--s2) 0 var(--s3);
}

.guide-dots i {
  height: 3px;
  flex: 1;
  background: #ddd;
}

.guide-dots i.on {
  background: var(--red);
}

.guide-actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.guide-actions .btn {
  flex: 1;
}
