/* ─── ROBÁRE Resin Recipes — Styles ────────────────────────────────────────── */

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

:root {
  --bg:         #090909;
  --bg-card:    rgba(255,255,255,0.045);
  --bg-card-2:  rgba(255,255,255,0.03);
  --border:     rgba(255,255,255,0.08);
  --white:      #f5f5f5;
  --gray:       #888;
  --gray-lt:    #bbb;
  --accent:     rgba(255,255,255,0.12);
  --font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --radius:     14px;
  --radius-sm:  8px;
}

html { font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
  padding-bottom: env(safe-area-inset-bottom, 24px);
}

/* scrollbar (desktop) */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

/* ─── Layout ────────────────────────────────────────────────────────────────── */

.app-wrap {
  max-width: 540px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ─── Logo ──────────────────────────────────────────────────────────────────── */

.logo-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 0 16px;
  padding-top: calc(28px + env(safe-area-inset-top, 0px));
}

.logo-img {
  height: 72px;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  display: block;
  mix-blend-mode: screen;
}

/* ─── Control Card ──────────────────────────────────────────────────────────── */

.control-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ─── Stone Name Pill Button ─────────────────────────────────────────────────── */

.stone-name-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.stone-name-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  padding: 7px 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, border-color 0.15s;
  max-width: 90%;
}

.stone-name-btn:active {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.28);
}

.stone-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* No-image state: inert appearance, no border hint */
.stone-name-btn.no-image {
  cursor: default;
  border-color: transparent;
  background: none;
}

/* ─── Select / Input ────────────────────────────────────────────────────────── */

.field-row {
  margin-bottom: 12px;
}

.field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stone-select,
.sqft-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font);
  padding: 12px 14px;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color 0.15s;
}

.stone-select { cursor: pointer; }

.select-wrap {
  position: relative;
}
.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--gray);
  pointer-events: none;
}

.stone-select:focus,
.sqft-input:focus {
  border-color: rgba(255,255,255,0.25);
}

.stone-select option {
  background: #1a1a1a;
  color: var(--white);
}

.sqft-input::placeholder { color: var(--gray); }

/* ─── Summary Card ──────────────────────────────────────────────────────────── */

.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

.summary-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.total-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.total-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
}

.part-row {
  display: flex;
  gap: 12px;
}

.part-box {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
}

.part-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}

.part-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

/* Whisper Gray special summary */
#summary-special { display: none; }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

.sum-label { color: var(--gray); font-size: 0.9rem; }
.sum-val   { color: var(--white); font-weight: 600; font-size: 0.95rem; }

/* ─── Recipe Card ───────────────────────────────────────────────────────────── */

.recipe-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}

.section-header {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 18px 10px;
}

.recipe-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  gap: 12px;
}


.row-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.ing-cup-oz {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--gray-lt);
  width: 55px;
  flex-shrink: 0;
  white-space: nowrap;
}

.row-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.ing-name {
  font-size: 0.96rem;
  color: var(--white);
  font-weight: 500;
  line-height: 1.3;
}

.ing-detail {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.35;
}

.row-right {
  flex-shrink: 0;
  text-align: right;
}

.ing-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.row-divider {
  height: 1px;
  background: var(--border);
  margin: 0 18px;
}

.special-note {
  font-size: 0.78rem;
  color: var(--gray);
  padding: 12px 18px 14px;
  line-height: 1.5;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* ─── How To Pour Card ──────────────────────────────────────────────────────── */

.pour-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 40px;
  padding: 18px;
}

.pour-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  line-height: 1.3;
}

.pour-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.pour-step:last-child { margin-bottom: 0; }

.step-badge {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 1px;
}

.step-text {
  font-size: 0.9rem;
  color: var(--gray-lt);
  line-height: 1.6;
  flex: 1;
}

/* Emphasize ALLCAPS headings in Whisper Gray steps */
.step-text b { color: var(--white); font-weight: 600; }

/* ─── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 390px) {
  .stone-name  { font-size: 1.3rem; }
  .total-value { font-size: 1.7rem; }
  .part-value  { font-size: 1.1rem; }
}

/* ─── Stone Lightbox ────────────────────────────────────────────────────────── */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay[hidden] {
  display: none;
}

/* Dark blurred backdrop */
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
}

/* Panel — near-fullscreen, no unnecessary margin */
.lightbox-panel {
  position: relative;
  z-index: 1;
  width: 96vw;
  max-width: 96vw;
  max-height: 96vh;
  display: flex;
  flex-direction: column;
  background: rgba(12, 12, 12, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.9);
  animation: lb-in 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When image is rotated 90/270°: pin panel to full height so the
   image wrap has the entire viewport height available to fill.
   Without this, the panel stays at the landscape image's original
   short height and the rotated image has no room to grow. */
.lightbox-panel.lb-rotated {
  height: 96vh;
}

@keyframes lb-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* Compact header — stone name left, rotate + close right */
.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  min-height: 44px;
  gap: 8px;
}

.lightbox-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Shared style for rotate + close buttons */
.lightbox-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}

.lightbox-btn:active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Image area — fills all remaining panel height */
.lightbox-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080808;
  overflow: hidden;
  min-height: 0;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
}

/* Rotated 90/270: swap axis constraints so landscape fills portrait screen */
.lightbox-img.rot-90,
.lightbox-img.rot-270 {
  max-width: 86vh;
  max-height: 86vw;
}

/* Landscape orientation — full horizontal expansion */
@media (orientation: landscape) {
  .lightbox-panel {
    width: 98vw;
    max-height: 98vh;
  }
  .lightbox-img.rot-90,
  .lightbox-img.rot-270 {
    max-width: 80vh;
    max-height: 96vw;
  }
}

/* Responsive: smaller phones */
@media (max-width: 390px) {
  .stone-name { font-size: 1.25rem; }
}


/* ─── Tab Bar ────────────────────────────────────────────────────────────────── */

/* Push all view content above the tab bar */
.view {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 16px));
}

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.tab-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px 10px;
  max-width: 540px;
  margin: 0 auto;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  max-width: 160px;
  padding: 8px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.tab-btn--active {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f5f5f5;
}

.tab-btn:active {
  background: rgba(255, 255, 255, 0.16);
}

.tab-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.tab-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── View Switching ─────────────────────────────────────────────────────────── */

.view {
  display: block;
}

.view[hidden] {
  display: none;
}

/* ─── Visualizer ─────────────────────────────────────────────────────────────── */



/* Selector card */
.vis-selector-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Scene card — kitchen photo + stone overlay */
.vis-scene-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.vis-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--border);
}

.vis-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.vis-sys-tag {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Counter photo + stone overlay container */
.vis-counter-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: #0a0a0a;
}

.vis-kitchen {
  width: 100%;
  height: auto;
  display: block;
}

/* Stone texture overlay — positioned over counter surface
   Coordinates calibrated to Robert's kitchen photo (1024×768).
   Counter surface occupies roughly y: 33%–52%, x: 0–100%.
   mix-blend-mode: multiply blends stone color into the existing counter. */


/* Slider row */
.vis-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--border);
}

.vis-slider-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.vis-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  outline: none;
  cursor: pointer;
}

.vis-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f5f5f5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  cursor: pointer;
}

.vis-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f5f5f5;
  border: none;
  cursor: pointer;
}

.vis-slider-val {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  min-width: 32px;
  text-align: right;
}

/* ─── Step 4 — Estimate Card ─────────────────────────────────────────────────── */

.est-card,
.addons-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.est-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.step-badge-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.est-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.est-subtitle {
  font-size: 0.78rem;
  color: var(--gray);
  margin: 0 0 14px 44px;
  line-height: 1.45;
}

/* Square footage stepper */
.est-sqft-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.est-sqft-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-lt);
  letter-spacing: 0.04em;
}

.est-sqft-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.est-sqft-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.est-sqft-btn:active {
  background: rgba(255, 255, 255, 0.18);
}

.est-sqft-input {
  width: 60px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  padding: 6px 4px;
  -moz-appearance: textfield;
}

.est-sqft-input::-webkit-inner-spin-button,
.est-sqft-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Line items */
.est-lines {
  margin-bottom: 14px;
}

.est-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.est-line:last-child {
  border-bottom: none;
}

.est-line-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.est-line-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}

.est-line-detail {
  font-size: 0.72rem;
  color: var(--gray);
}

.est-line-price {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  padding-top: 1px;
}

/* Total box */
.est-total-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.est-total-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.est-total-amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.est-disclaimer {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ─── Step 5 — Add-ons ───────────────────────────────────────────────────────── */

.addons-group-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 14px 0 8px;
}

.addons-group-label:first-child {
  margin-top: 0;
}

/* Individual add-on row */
.addon-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s, background 0.15s;
}

.addon-row:last-child {
  margin-bottom: 0;
}

.addon-row--selected {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
}

/* Radio / Checkbox indicator */
.addon-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}

.addon-row--selected .addon-indicator {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
}

.addon-indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.15s, transform 0.15s;
}

.addon-row--selected .addon-indicator-dot {
  opacity: 1;
  transform: scale(1);
}

/* Checkbox uses checkmark instead of dot */
.addon-indicator--check .addon-indicator-dot {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  font-size: 0.7rem;
  line-height: 1;
}

.addon-text {
  flex: 1;
  min-width: 0;
}

.addon-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  display: block;
}

.addon-detail {
  font-size: 0.72rem;
  color: var(--gray);
  display: block;
  margin-top: 1px;
}

.addon-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  flex-shrink: 0;
}

.addon-row--selected .addon-price {
  color: var(--white);
}

/* ─── Step 1 Photo Upload ────────────────────────────────────────────────────── */

.photo-upload-actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s;
  width: 100%;
}

.action-btn:active {
  opacity: 0.8;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.photo-error {
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 10px;
  text-align: center;
}

/* ─── Vis Masking Updates ────────────────────────────────────────────────────── */






.vis-tag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

/* ─── Intake Form ────────────────────────────────────────────────────────────── */

.intake-pills {
  display: flex;
  gap: 12px;
  background: transparent;
  padding: 0;
  border: none;
}

.intake-pill {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gray);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 12px 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
}

.intake-pill--active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.intake-fields {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intake-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.intake-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.intake-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.intake-row {
  display: flex;
  gap: 10px;
}

.intake-date-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.intake-date-wrap:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.intake-date-label {
  font-family: var(--font);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.intake-date-field {
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  text-align: right;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  /* Ensure inner text alignment for Webkit date inputs */
}
.intake-date-field::-webkit-datetime-edit {
  display: flex;
  justify-content: flex-end;
}

.intake-date-field::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.5;
  cursor: pointer;
}

.intake-confirm {
  text-align: center;
  color: #4cd964;
  font-weight: 600;
  margin-top: 10px;
  font-size: 0.95rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.vis-toggle-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 8px;
}

/* ─── Add-on Stepper (Custom Tile) ─────────────────────────────────────────── */

.addon-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.addon-stepper-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-size: 1rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.addon-stepper-btn:active {
  background: rgba(255, 255, 255, 0.18);
}

.addon-stepper-input {
  width: 50px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px;
  -moz-appearance: textfield;
}

.addon-stepper-input::-webkit-inner-spin-button,
.addon-stepper-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.addon-stepper-label {
  font-size: 0.75rem;
  color: var(--gray);
}


/* ─── Military Discount Toggle ─────────────────────────────────────────────── */

.military-discount-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  margin-top: -4px;
}

.military-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gray);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .2s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .toggle-slider {
  background-color: #4cd964;
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* ─── Deposit Fields ───────────────────────────────────────────────────────── */

.intake-currency-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.2s, background 0.2s;
}

.intake-currency-wrap:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.intake-currency-symbol {
  color: var(--gray);
  font-weight: 600;
  font-size: 1.1rem;
  margin-right: 8px;
}

.intake-currency-input {
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 600;
  outline: none;
  width: 100%;
  -moz-appearance: textfield;
}

.intake-currency-input::-webkit-outer-spin-button,
.intake-currency-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.intake-payment-summary {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pay-line--balance {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 8px;
  margin-top: 4px;
  color: var(--white);
  font-weight: 700;
}

/* ─── Smaller Utilities for Step 5 ─────────────────────────────────────────── */

.toggle-switch--sm {
  width: 36px;
  height: 20px;
}

.toggle-switch--sm .toggle-slider:before {
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
}

.toggle-switch--sm input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

.intake-currency-wrap--sm {
  padding: 8px 12px;
}

.intake-pills--sm .intake-pill {
  padding: 6px;
  font-size: 0.75rem;
  flex: 1;
}

.deposit-header {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gray);
  margin-bottom: 8px;
}

/* ─── Tiny Toggle for Military Discount ──────────────────────────────────── */

.toggle-switch--tiny {
  width: 28px;
  height: 16px;
}

.toggle-switch--tiny .toggle-slider:before {
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 2px;
}

.toggle-switch--tiny input:checked + .toggle-slider:before {
  transform: translateX(12px);
}

.military-label {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 500;
}

/* ─── Military Discount ──────────────────────────────────────────────────── */

.military-discount-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  margin-top: -4px;
}

.military-label {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 500;
}

.toggle-switch--tiny {
  width: 28px;
  height: 16px;
}

.toggle-switch--tiny .toggle-slider:before {
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 2px;
}

.toggle-switch--tiny input:checked + .toggle-slider:before {
  transform: translateX(12px);
}

/* ─── Deposit ───────────────────────────────────────────────────────────── */

.intake-currency-wrap {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0 12px;
}
.intake-currency-wrap--sm {
  height: 40px;
}
.intake-currency-symbol {
  color: var(--gray);
  font-weight: 500;
  margin-right: 4px;
}
.intake-currency-input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  width: 100%;
  outline: none;
}
.intake-pills--sm {
  display: flex;
  gap: 8px;
}
.intake-pills--sm .intake-pill {
  flex: 1;
  padding: 6px 0;
  font-size: 0.75rem;
}
.pay-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* ─── Advanced 3D Countertop Masking ─── */
.vis-stone-mask {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
}

.plane-wrapper {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  mix-blend-mode: hard-light;
  opacity: 0.90;
  transition: opacity 0.3s ease;
}

.plane-texture {
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background-size: 250px;
  background-repeat: repeat;
  transform-origin: center;
  backface-visibility: hidden;
}

/* Perspective transforms to match each counter section's physical angle */
.plane-texture--left {
  transform: perspective(1000px) rotateX(65deg) rotateY(15deg) scale(0.8);
}
.plane-texture--back {
  transform: perspective(1000px) rotateX(70deg) scale(0.8);
}
.plane-texture--right {
  transform: perspective(1000px) rotateX(65deg) rotateY(-15deg) scale(0.8);
}
