/* ──────────────────────────────────────────────────────────────────
   MISS DRV Survey — Luxury Public CSS
   ────────────────────────────────────────────────────────────────── */

/* ── Fonts & Variables ───────────────────────────────────────────── */
:root {
  --clr-bg: #fbf7f2;
  --clr-card: rgba(255, 255, 255, 0.82);
  --clr-plum: #4b213c;
  --clr-plum-mid: #6b2f52;
  --clr-plum-light: #f3eaf0;
  --clr-gold: #c9a45d;
  --clr-gold-light: #e8d5b0;
  --clr-gold-dark: #9e7b3f;
  --clr-text: #2d1d2c;
  --clr-muted: #8b8280;
  --clr-border: #eaded5;
  --clr-selected-border: #c9a45d;

  --radius-card: 20px;
  --radius-btn: 50px;
  --radius-pill: 20px;
  --shadow-card: 0 4px 24px rgba(75, 33, 60, 0.08), 0 1px 4px rgba(75, 33, 60, 0.05);
  --shadow-card-hover: 0 8px 32px rgba(75, 33, 60, 0.14);
  --shadow-selected: 0 0 0 2px var(--clr-gold), 0 6px 24px rgba(201, 164, 93, 0.25);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-fa: "Vazirmatn", "IRANSans", "Tahoma", sans-serif;
  --font-en: "Inter", "Arial", sans-serif;
}

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

html {
  direction: rtl;
  -webkit-text-size-adjust: 100%;
  /* NOTE: do NOT set overflow-x:hidden on html — it breaks touch-scroll on iOS Safari */
}

body {
  font-family: var(--font-fa);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* prevent horizontal overscroll without killing vertical scroll */
  width: 100%;
  max-width: 100%;
}

/* ── Slider pages: body itself must not scroll ───────────────────── */
body.no-scroll {
  overflow: hidden;
  height: 100dvh;
  height: 100vh;
  overscroll-behavior: none;
}

/* ── Scrollable pages: natural body scroll, no horizontal drift ──── */
body:not(.no-scroll) {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

/* Subtle radial bg */
.survey-body {
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(201,164,93,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(75,33,60,0.05) 0%, transparent 60%),
    #fbf7f2;
}

/* ── Survey Shell — FIXED viewport (product slider) ──────────────── */
.survey-shell {
  position: fixed;
  inset: 0;
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(201,164,93,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(75,33,60,0.05) 0%, transparent 60%),
    #fbf7f2;
}

/* ── Scrollable shell — start / final-form / thank-you ───────────── */
/* Body scrolls naturally; shell is just a centered max-width wrapper  */
.survey-shell.scrollable {
  position: relative;
  inset: auto;
  height: auto;
  min-height: 100dvh;
  min-height: 100vh;
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  overflow: visible;
  padding-bottom: 48px;
}

/* ── Decorative Sparkles ─────────────────────────────────────────── */
.top-deco {
  position: relative;
  height: 32px;
  pointer-events: none;
}
.sparkle {
  position: absolute;
  color: var(--clr-gold);
  font-size: 14px;
  opacity: 0.5;
  animation: sparkle-pulse 3s ease-in-out infinite;
}
.s1 { top: 8px; right: 28px; animation-delay: 0s; }
.s2 { top: 14px; left: 40px; font-size: 10px; animation-delay: 1s; }
.s3 { top: 6px; left: 100px; font-size: 18px; animation-delay: 0.5s; }
.s4 { top: 10px; right: 90px; font-size: 9px; animation-delay: 1.5s; }
@keyframes sparkle-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

/* ── Brand / Start Header ────────────────────────────────────────── */
.start-header {
  text-align: center;
  padding: 28px 24px 16px;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.brand-dot {
  width: 6px; height: 6px;
  background: var(--clr-gold);
  border-radius: 50%;
}
.brand-name {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--clr-plum);
  text-transform: uppercase;
}
.start-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--clr-plum);
  margin-bottom: 4px;
}
.start-subtitle {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--clr-muted);
  letter-spacing: 0.1em;
}

/* ── Luxury Card ─────────────────────────────────────────────────── */
.luxury-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Start Card ──────────────────────────────────────────────────── */
.start-card {
  margin: 8px 20px;
  padding: 20px 24px;
  text-align: center;
}
.start-card-icon {
  color: var(--clr-gold);
  font-size: 20px;
  margin-bottom: 10px;
}
.start-instruction {
  font-size: 14px;
  color: var(--clr-text);
  line-height: 1.8;
}
.start-instruction strong {
  color: var(--clr-plum);
  font-weight: 600;
}

/* ── Location Note ───────────────────────────────────────────────── */
.location-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 20px;
  padding: 10px 16px;
  background: rgba(201, 164, 93, 0.08);
  border: 1px solid rgba(201, 164, 93, 0.25);
  border-radius: 12px;
  font-size: 12px;
  color: var(--clr-muted);
}
.location-icon {
  color: var(--clr-gold);
  font-size: 14px;
  flex-shrink: 0;
}

/* ── Forms ───────────────────────────────────────────────────────── */
.start-form {
  margin: 12px 20px 20px;
  padding: 24px 20px;
}
.form-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--clr-plum);
  margin-bottom: 4px;
}
.form-hint {
  font-size: 12px;
  color: var(--clr-muted);
  margin-bottom: 20px;
}
.form-row {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--clr-plum);
  margin-bottom: 6px;
}
.form-input, .form-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--clr-border);
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
  font-family: var(--font-fa);
  font-size: 14px;
  color: var(--clr-text);
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--clr-gold);
  box-shadow: 0 0 0 3px rgba(201,164,93,0.15);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b8280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
  cursor: pointer;
}
.form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--clr-muted);
  cursor: pointer;
  margin-top: 8px;
}
.form-checkbox-row input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--clr-plum);
  cursor: pointer;
}
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--clr-border);
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
  font-family: var(--font-fa);
  font-size: 14px;
  color: var(--clr-text);
  resize: vertical;
  outline: none;
  transition: var(--transition);
  line-height: 1.7;
}
.form-textarea:focus {
  border-color: var(--clr-gold);
  box-shadow: 0 0 0 3px rgba(201,164,93,0.15);
}
.form-label-en {
  display: block;
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--clr-muted);
  font-weight: 400;
  margin-top: 2px;
}
.form-label-optional {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  color: var(--clr-muted);
  background: rgba(201,164,93,0.1);
  border: 1px solid rgba(201,164,93,0.25);
  border-radius: 20px;
  padding: 1px 8px;
  margin-right: 6px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

/* ── Phone / Loyalty Club field ─────────────────────────────────── */
.phone-row {
  border: 1.5px solid var(--clr-gold);
  border-radius: 16px;
  padding: 16px 16px 14px;
  background: linear-gradient(135deg, rgba(201,164,93,0.06) 0%, rgba(255,255,255,0.85) 100%);
  position: relative;
}

.phone-club-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--clr-gold);
  background: rgba(201,164,93,0.1);
  border: 1px solid rgba(201,164,93,0.3);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.phone-club-icon { font-size: 9px; }

.phone-input-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 8px;
  border: 1.5px solid var(--clr-border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.9);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.phone-input-wrap:focus-within {
  border-color: var(--clr-gold);
  box-shadow: 0 0 0 3px rgba(201,164,93,0.15);
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-gold);
  background: rgba(201,164,93,0.08);
  border-left: 1.5px solid var(--clr-border);
  white-space: nowrap;
  flex-shrink: 0;
  direction: ltr;
}

.form-input.phone-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 11px 14px;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 400;
  color: var(--clr-text);
  direction: ltr;
  text-align: left;
  letter-spacing: 0.05em;
}
.form-input.phone-input::placeholder {
  color: #c5b8b0;
  letter-spacing: 0.04em;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  background: linear-gradient(135deg, #4b213c 0%, #7a3159 60%, #4b213c 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-fa);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(75,33,60,0.3);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
}
.primary-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,164,93,0.15) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
}
.primary-btn:hover::after { opacity: 1; }
.primary-btn:active { transform: scale(0.98); }
.btn-sparkle { font-size: 11px; color: var(--clr-gold-light); }

.secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  background: transparent;
  color: var(--clr-muted);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-btn);
  font-family: var(--font-fa);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.secondary-btn:hover {
  border-color: var(--clr-gold-light);
  color: var(--clr-plum);
}
.secondary-btn:active { transform: scale(0.98); }

.start-btn { margin-top: 24px; }

/* ── Luxury Header (Product Slider) ──────────────────────────────── */
.luxury-header {
  display: flex;
  align-items: center;
  padding: 14px 20px 8px;
  gap: 12px;
  flex-shrink: 0;
  background: var(--clr-bg);
  z-index: 10;
}
.back-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--clr-plum);
  transition: var(--transition);
  flex-shrink: 0;
}
.back-btn:hover { border-color: var(--clr-gold); }
.header-title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--clr-plum);
  text-align: center;
}
.header-spacer { width: 38px; flex-shrink: 0; }

/* ── Progress ────────────────────────────────────────────────────── */
.progress-section {
  padding: 8px 20px 4px;
  flex-shrink: 0;
}
.progress-track {
  height: 5px;
  background: var(--clr-border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-plum) 0%, var(--clr-gold) 100%);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.progress-code {
  font-size: 11px;
  color: var(--clr-muted);
  font-family: var(--font-en);
  letter-spacing: 0.05em;
}
.progress-counter {
  font-size: 12px;
  color: var(--clr-muted);
  font-weight: 500;
}

/* ── Slide Stage ─────────────────────────────────────────────────── */
.slide-stage {
  flex: 1;
  min-height: 0;           /* critical: lets flex child shrink below its content size */
  padding: 8px 20px 0;
  position: relative;
  overflow-y: auto;        /* only the card area scrolls if needed on tiny screens */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* ── Product Card ────────────────────────────────────────────────── */
.product-card {
  background: #ffffff;
  border: 1.5px solid #e0d3cc;
  border-radius: var(--radius-card);
  padding: 18px 20px 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 28px rgba(75, 33, 60, 0.12), 0 1px 4px rgba(75, 33, 60, 0.06);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.product-card:active { transform: scale(0.98); }
.product-card.selected {
  border-color: var(--clr-gold);
  box-shadow: var(--shadow-selected);
  background: #fff;
}

/* code pill */
.code-pill {
  display: inline-block;
  padding: 4px 12px;
  background: var(--clr-plum);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-family: var(--font-en);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

/* selected badge */
.selected-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 34px; height: 34px;
  background: var(--clr-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(201,164,93,0.4);
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition);
}
.product-card.selected .selected-badge {
  opacity: 1;
  transform: scale(1);
}

/* product image area */
.product-image-area {
  width: 140px; height: 140px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fdf5ed 0%, #f0e4d4 70%, #e8d5c2 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.product-image-area::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(201,164,93,0.2);
}
.product-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  padding: 0;
  display: block;
}
.product-img[src=""], .product-img:not([src]) {
  display: none;
}
.product-placeholder {
  font-size: 52px;
  color: var(--clr-plum);
  opacity: 0.25;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* product names */
.product-name-fa {
  font-size: 20px;
  font-weight: 700;
  color: var(--clr-plum);
  text-align: center;
  margin-bottom: 4px;
  line-height: 1.4;
}
.product-name-en {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--clr-muted);
  text-align: center;
  margin-bottom: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* tap instruction */
.tap-instruction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--clr-muted);
}
.tap-icon { font-size: 16px; }

/* selected label inside card */
.selected-label {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--clr-gold-dark);
  font-weight: 600;
  margin-top: 8px;
}
.product-card.selected .tap-instruction { display: none; }
.product-card.selected .selected-label { display: flex; }

/* ── Shade Panel ─────────────────────────────────────────────────── */
.shade-panel {
  margin-top: 12px;
  padding: 20px 18px 18px;
  background: linear-gradient(135deg, #fdf6ef 0%, #faf0e8 100%);
  border: 2px solid var(--clr-gold);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 20px rgba(201,164,93,0.18), 0 1px 4px rgba(75,33,60,0.08);
  animation: shade-appear 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

/* Arrow pointer connecting card to shade panel */
.shade-panel::before {
  content: '';
  position: absolute;
  top: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--clr-gold);
}
.shade-panel::after {
  content: '';
  position: absolute;
  top: -7px;
  right: 50%;
  transform: translateX(50%);
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fdf6ef;
}

@keyframes shade-appear {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.shade-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-plum);
  text-align: center;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.01em;
}
.shade-panel-title::before,
.shade-panel-title::after {
  content: '✦';
  color: var(--clr-gold);
  font-size: 11px;
}

.shade-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 14px;
}
.shade-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease;
}
.shade-option:active { transform: scale(0.92); }

.shade-circle {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.6);
  box-shadow: 0 3px 10px rgba(0,0,0,0.18), inset 0 1px 2px rgba(255,255,255,0.3);
  transition: var(--transition);
  position: relative;
}
.shade-option.selected .shade-circle {
  border-color: #fff;
  box-shadow: 0 0 0 3px var(--clr-gold), 0 3px 12px rgba(0,0,0,0.2);
  transform: scale(1.1);
}
.shade-check {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 20px;
  opacity: 0;
  transition: var(--transition);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.shade-option.selected .shade-check { opacity: 1; }

.shade-code {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--clr-plum);
  font-weight: 600;
  background: rgba(75,33,60,0.07);
  padding: 1px 6px;
  border-radius: 6px;
}
.shade-option.selected .shade-code {
  background: var(--clr-gold);
  color: #fff;
}

/* Custom shade text input */
.custom-shade-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--clr-gold-light);
  border-radius: 12px;
  background: #fff;
  font-family: var(--font-fa);
  font-size: 13px;
  color: var(--clr-text);
  outline: none;
  transition: var(--transition);
  margin-bottom: 10px;
}
.custom-shade-input:focus {
  border-color: var(--clr-gold);
  box-shadow: 0 0 0 3px rgba(201,164,93,0.15);
}

.shade-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(201,164,93,0.12) 0%, rgba(201,164,93,0.06) 100%);
  border: 1.5px solid var(--clr-gold);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-gold-dark);
}
.shade-success-check {
  color: var(--clr-gold);
  font-size: 16px;
}

/* ── Luxury Note (bottom of slider) ──────────────────────────────── */
.luxury-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 20px 4px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--clr-border);
  border-radius: 14px;
  font-size: 12px;
  color: var(--clr-muted);
  line-height: 1.5;
  flex-shrink: 0;
}
.note-icon { color: var(--clr-gold); font-size: 14px; flex-shrink: 0; }

/* ── Action Area — inline row ────────────────────────────────────── */
.action-area {
  padding: 8px 20px 14px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  flex-shrink: 0;
  background: linear-gradient(to top, var(--clr-bg) 80%, transparent);
}

/* Diagonal divider between Next and Skip */
.btn-divider {
  flex-shrink: 0;
  width: 18px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-divider::after {
  content: '';
  position: absolute;
  width: 1.5px;
  height: 34px;
  background: var(--clr-border);
  border-radius: 2px;
  transform: rotate(16deg);
}

/* ── Bottom Waves ────────────────────────────────────────────────── */
.bottom-waves {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 60px;
  pointer-events: none;
  z-index: 0;
  flex-shrink: 0;
}
.bottom-waves svg {
  width: 100%; height: 100%;
}

/* ── Thank You ───────────────────────────────────────────────────── */
.thankyou-shell {
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 40px;
}
.thankyou-card {
  margin: 12px 20px;
  padding: 40px 28px;
  text-align: center;
}
.thankyou-icon {
  font-size: 40px;
  color: var(--clr-gold);
  margin-bottom: 20px;
  animation: sparkle-pulse 2s ease-in-out infinite;
}
.thankyou-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--clr-plum);
  margin-bottom: 16px;
}
.thankyou-text {
  font-size: 15px;
  color: var(--clr-text);
  margin-bottom: 10px;
  line-height: 1.8;
}
.thankyou-note {
  font-size: 13px;
  color: var(--clr-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.thankyou-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-gold-light), transparent);
  margin-bottom: 24px;
}
.thankyou-btn { max-width: 280px; margin: 0 auto; }

/* ── Final Form ──────────────────────────────────────────────────── */
.summary-card {
  margin: 12px 20px;
  padding: 20px;
}
.section-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--clr-plum);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sparkle-gold { color: var(--clr-gold); }
/* Summary toggle button */
.summary-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-fa);
  -webkit-tap-highlight-color: transparent;
  margin-bottom: 0;
}
.summary-toggle .section-heading { margin-bottom: 0; }
.summary-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(201, 164, 93, 0.1);
  color: var(--clr-gold);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s ease;
}
.summary-toggle-open .summary-toggle-icon {
  transform: rotate(180deg);
  background: rgba(201, 164, 93, 0.18);
}

/* List collapsed/open */
.selection-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  max-height: 600px;
  margin-top: 14px;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              margin-top 0.35s ease,
              opacity 0.25s ease;
  opacity: 1;
}
.selection-list-collapsed {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
}
.selection-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--clr-plum-light);
  border-radius: 10px;
  font-size: 13px;
}
.selection-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  font-size: 13px;
  color: var(--clr-muted);
  text-align: center;
}
.selection-back-link {
  color: var(--clr-plum);
  font-weight: 600;
  font-size: 13px;
  text-decoration: underline;
}
.selection-item-code {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--clr-plum);
  font-weight: 600;
  background: rgba(75,33,60,0.1);
  padding: 2px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}
.selection-item-name { color: var(--clr-text); flex: 1; }
.selection-item-shade {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--clr-muted);
}
.shade-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
}
.final-form {
  margin: 8px 20px 24px;
  padding: 24px 20px;
}

/* ── Final Form Slider ───────────────────────────────────────────── */
.final-slide-wrap {
  width: 100%;
}

.final-slide-card {
  padding: 20px 18px 18px;
}

.final-slide-step {
  display: inline-block;
  font-size: 11px;
  color: var(--clr-gold-dark);
  background: rgba(201, 164, 93, 0.12);
  border: 1px solid rgba(201, 164, 93, 0.3);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.final-slide-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--clr-plum);
  line-height: 1.5;
  margin-bottom: 4px;
}

.final-slide-title-en {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--clr-muted);
  margin-bottom: 12px;
  direction: ltr;
  text-align: left;
}

.final-slide-desc {
  font-size: 13px;
  color: var(--clr-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.final-slide-textarea {
  min-height: 104px;
  resize: none;
}

.final-feedback-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 2px 7px;
  color: var(--clr-plum);
  font-size: 12px;
  font-weight: 600;
}

.final-feedback-label span {
  padding: 1px 7px;
  color: var(--clr-muted);
  background: rgba(201, 164, 93, 0.1);
  border: 1px solid rgba(201, 164, 93, 0.25);
  border-radius: 20px;
  font-size: 9px;
  font-weight: 500;
}

.final-summary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 42vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.final-summary-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-plum);
  margin-bottom: 4px;
  text-align: center;
}

.hint-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hint-chip {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--clr-border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--clr-plum);
  font-family: var(--font-fa);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.hint-chip:hover,
.hint-chip:focus {
  border-color: var(--clr-gold);
  background: rgba(201, 164, 93, 0.1);
}

.hint-chip-used {
  background: rgba(201, 164, 93, 0.18);
  border-color: var(--clr-gold);
  box-shadow: 0 0 0 2px rgba(201, 164, 93, 0.1);
}

.hint-chip-used::before {
  content: "✓";
  margin-left: 5px;
  color: var(--clr-gold-dark);
  font-size: 10px;
}

.final-phone-badge {
  margin-bottom: 12px;
}

.start-slide-field {
  margin-bottom: 0;
}

.start-slide-field .form-select {
  width: 100%;
}

.final-slide-error {
  margin: 0 20px 10px;
  flex-shrink: 0;
}

/* ── Welcome Modal ──────────────────────────────────────────────── */
.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.welcome-modal-visible {
  opacity: 1;
  pointer-events: all;
}

.welcome-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(201,164,93,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(75,33,60,0.06) 0%, transparent 60%),
    rgba(251, 247, 242, 0.97);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.welcome-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  padding: 18px 18px 22px;
  text-align: center;
  border: 1px solid rgba(201, 164, 93, 0.35);
  box-shadow: 0 12px 48px rgba(75, 33, 60, 0.12), 0 0 0 1px rgba(255,255,255,0.6) inset;
}

#guideModal .welcome-modal-card {
  padding: 32px 28px 28px;
}

.welcome-modal-sparkle {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--clr-gold);
  font-size: 14px;
  opacity: 0.7;
}

.welcome-logo {
  display: block;
  width: min(200px, 55vw);
  height: auto;
  margin: 8px auto 20px;
  border-radius: 4px;
}

.welcome-products-image {
  position: absolute;
  z-index: 4;
  right: 50%;
  bottom: -10px;
  width: auto;
  max-width: 82%;
  height: 226px;
  max-height: none;
  margin: 0;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  transform: translateX(50%);
  filter:
    drop-shadow(0 18px 16px rgba(14, 6, 12, 0.34))
    drop-shadow(0 3px 3px rgba(201, 164, 93, 0.22));
}

.welcome-visual {
  position: relative;
  height: 236px;
  margin-bottom: 20px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(232, 213, 176, 0.58);
  border-radius: 24px 24px 54px 54px;
  background:
    radial-gradient(circle at 18% 22%, rgba(232, 213, 176, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 24%, rgba(232, 213, 176, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 52% 54%, rgba(201, 164, 93, 0.2), transparent 45%),
    linear-gradient(145deg, #35172c 0%, var(--clr-plum) 42%, #733457 100%);
  box-shadow:
    0 16px 30px rgba(75, 33, 60, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.welcome-visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: 270px;
  height: 270px;
  top: 34px;
  right: 50%;
  border: 1px solid rgba(232, 213, 176, 0.3);
  border-radius: 50%;
  transform: translateX(50%);
  box-shadow:
    0 0 0 18px rgba(201, 164, 93, 0.035),
    0 0 70px rgba(201, 164, 93, 0.14);
}

.welcome-visual::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 105px;
  height: 320px;
  top: -65px;
  right: 8px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(22deg);
  pointer-events: none;
}

.welcome-visual-brand {
  position: absolute;
  z-index: 6;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  color: #fff8ee;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(232, 213, 176, 0.28);
  border-radius: 20px;
  font-family: var(--font-en);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.15em;
  direction: ltr;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.welcome-visual-brand-dot {
  width: 5px;
  height: 5px;
  background: var(--clr-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--clr-gold-light);
}

.welcome-visual-orbit {
  position: absolute;
  z-index: 3;
  width: 250px;
  height: 86px;
  bottom: 20px;
  right: 50%;
  border: 1px solid rgba(232, 213, 176, 0.44);
  border-radius: 50%;
  transform: translateX(50%) rotate(-8deg);
}

.welcome-visual-stage {
  position: absolute;
  z-index: 3;
  width: 220px;
  height: 42px;
  right: 50%;
  bottom: -20px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse, rgba(232, 213, 176, 0.7) 0%, rgba(201, 164, 93, 0.24) 38%, transparent 72%);
  transform: translateX(50%);
  filter: blur(1px);
}

.welcome-visual-star {
  position: absolute;
  z-index: 5;
  color: var(--clr-gold-light);
  line-height: 1;
  text-shadow: 0 0 12px rgba(232, 213, 176, 0.55);
  animation: sparkle-pulse 3s ease-in-out infinite;
}

.welcome-visual-star-one {
  top: 58px;
  left: 25px;
  font-size: 15px;
}

.welcome-visual-star-two {
  top: 92px;
  right: 28px;
  font-size: 9px;
  animation-delay: 0.8s;
}

.welcome-visual-star-three {
  top: 32px;
  left: 75px;
  font-size: 23px;
  animation-delay: 1.4s;
}

.welcome-visual-signature {
  position: absolute;
  z-index: 7;
  right: 13px;
  bottom: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 248, 238, 0.72);
  font-family: var(--font-en);
  font-size: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  direction: ltr;
}

.welcome-visual-signature i {
  width: 12px;
  height: 1px;
  background: var(--clr-gold);
}

.welcome-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--clr-plum);
  margin-bottom: 10px;
  line-height: 1.6;
}

.welcome-text {
  font-size: 13px;
  color: var(--clr-text);
  line-height: 1.95;
  margin: 0 8px 18px;
  text-align: justify;
  text-align-last: center;
}

.welcome-text strong {
  color: var(--clr-plum);
  font-weight: 600;
}

.hotel-link {
  color: var(--clr-plum);
  text-decoration-color: var(--clr-gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: var(--transition);
}

.hotel-link:hover,
.hotel-link:focus-visible {
  color: var(--clr-gold-dark);
  text-decoration-color: var(--clr-plum);
}

.welcome-start-btn {
  width: 100%;
  min-height: 50px;
  box-shadow:
    0 10px 24px rgba(75, 33, 60, 0.28),
    0 0 0 1px rgba(201, 164, 93, 0.12);
}

@media (max-height: 650px) {
  .welcome-modal {
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .welcome-visual {
    height: 188px;
    margin-bottom: 14px;
  }

  .welcome-products-image {
    height: 186px;
  }

  .welcome-visual::before {
    width: 220px;
    height: 220px;
    top: 25px;
  }

  .welcome-title {
    font-size: 15px;
    margin-bottom: 7px;
  }

  .welcome-text {
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 13px;
  }
}

.welcome-instruction-text {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 28px;
}

.welcome-instruction-text strong {
  color: var(--clr-plum);
  font-weight: 700;
}

body.welcome-modal-open {
  overflow: hidden;
}
.form-error {
  padding: 10px 14px;
  background: rgba(220, 60, 60, 0.08);
  border: 1px solid rgba(220, 60, 60, 0.2);
  border-radius: 10px;
  color: #c0392b;
  font-size: 13px;
  margin-bottom: 14px;
}
.submit-btn { margin-top: 8px; }

/* ── Slide Transition ────────────────────────────────────────────── */
.slide-enter {
  animation: slide-in-right 0.3s ease forwards;
}
.slide-exit {
  animation: slide-out-left 0.25s ease forwards;
}
.slide-back-enter {
  animation: slide-in-left 0.3s ease forwards;
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slide-out-left {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-40px); }
}
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Media queries ───────────────────────────────────────────────── */
@media (min-width: 768px) {
  .survey-shell { max-width: 480px; }
  .start-title { font-size: 28px; }
}

/* Very short screens (e.g. iPhone SE landscape) */
@media (max-height: 600px) {
  .product-image-area { width: 100px; height: 100px; margin-bottom: 8px; }
  .product-name-fa { font-size: 16px; }
  .product-name-en { margin-bottom: 8px; }
  .luxury-header { padding: 8px 20px 4px; }
  .progress-section { padding: 4px 20px 2px; }
  .shade-options { gap: 8px; }
  .shade-circle { width: 36px; height: 36px; }
}

/* ═══════════════════════════════════════════════════════════════════
   MISS DRV — Luxury Loading Overlay
   ═══════════════════════════════════════════════════════════════════ */
.mdrv-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(201,164,93,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(75,33,60,0.07) 0%, transparent 60%),
    #fbf7f2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.mdrv-loader.loader-visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Floating sparkles ─────────────────────────── */
.loader-sparkle {
  position: absolute;
  color: var(--clr-gold);
  pointer-events: none;
  animation: loader-float 4s ease-in-out infinite;
}
.loader-sp1 { top: 15%; right: 18%; font-size: 18px; animation-delay: 0s;    animation-duration: 3.8s; }
.loader-sp2 { top: 25%; left: 15%;  font-size: 11px; animation-delay: 0.9s;  animation-duration: 4.2s; }
.loader-sp3 { bottom: 30%; right: 25%; font-size: 24px; animation-delay: 1.6s; animation-duration: 3.5s; }
.loader-sp4 { bottom: 20%; left: 20%; font-size: 13px; animation-delay: 0.4s; animation-duration: 4.6s; }

@keyframes loader-float {
  0%, 100% { transform: translateY(0)   rotate(0deg);   opacity: 0.3; }
  33%       { transform: translateY(-12px) rotate(15deg);  opacity: 0.8; }
  66%       { transform: translateY(6px)  rotate(-10deg); opacity: 0.5; }
}

/* ── Center content ────────────────────────────── */
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ── Brand letters ─────────────────────────────── */
.loader-brand {
  display: flex;
  align-items: center;
  gap: 0;
  direction: ltr;
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--clr-plum);
  text-transform: uppercase;
}
.loader-letter {
  display: inline-block;
  animation: loader-letter-pulse 2.4s ease-in-out infinite;
}
.loader-space { width: 14px; }
.loader-letter:nth-child(1) { animation-delay: 0.00s; }
.loader-letter:nth-child(2) { animation-delay: 0.10s; }
.loader-letter:nth-child(3) { animation-delay: 0.20s; }
.loader-letter:nth-child(4) { animation-delay: 0.30s; }
.loader-letter:nth-child(6) { animation-delay: 0.48s; }
.loader-letter:nth-child(7) { animation-delay: 0.58s; }
.loader-letter:nth-child(8) { animation-delay: 0.68s; }

@keyframes loader-letter-pulse {
  0%, 60%, 100% { opacity: 1;    transform: translateY(0);    color: var(--clr-plum); }
  30%            { opacity: 0.55; transform: translateY(-5px); color: var(--clr-gold); }
}

/* ── Tagline ───────────────────────────────────── */
.loader-tagline {
  font-size: 13px;
  color: var(--clr-muted);
  letter-spacing: 0.04em;
  font-weight: 400;
}

/* ── Dots ──────────────────────────────────────── */
.loader-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.loader-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--clr-gold);
  animation: loader-dot-bounce 1.4s ease-in-out infinite;
}
.loader-dots span:nth-child(1) { animation-delay: 0.0s; }
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loader-dot-bounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40%            { transform: scale(1.2); opacity: 1;   }
}

/* ── Bottom gold bar ───────────────────────────── */
.loader-bar-wrap {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 3px;
  background: rgba(201,164,93,0.15);
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--clr-gold), transparent);
  animation: loader-bar-slide 1.6s ease-in-out infinite;
  border-radius: 2px;
}
@keyframes loader-bar-slide {
  0%   { transform: translateX(-150%); }
  100% { transform: translateX(400%); }
}

/* ── Product description & size badge ────────────────────────────── */
.product-desc-fa {
  font-size: 12px;
  color: var(--clr-muted);
  text-align: center;
  line-height: 1.7;
  margin: 4px 12px 0;
  font-weight: 400;
}

.product-size-row {
  display: flex;
  justify-content: center;
  margin: 6px 0 2px;
}

.size-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background: rgba(201,164,93,0.12);
  border: 1px solid rgba(201,164,93,0.35);
  border-radius: 20px;
  font-size: 11px;
  font-family: var(--font-en);
  color: var(--clr-gold-dark);
  letter-spacing: 0.04em;
  direction: ltr;
}

.size-badge-corner {
  /* Hidden — displayed as .size-badge inside .product-size-row instead */
  display: none;
}

/* ── Shade name label under circle ───────────────────────────────── */
.shade-name-fa {
  display: block;
  font-size: 9px;
  color: var(--clr-muted);
  text-align: center;
  max-width: 52px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 1px;
  line-height: 1.3;
}

/* ── Palette grid layout (P15, P20) ──────────────────────────────── */
.shade-options-palette {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 8px;
  justify-items: center;
  padding: 4px 0;
}

.shade-options-palette .shade-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.shade-options-palette .shade-circle {
  width: 38px;
  height: 38px;
}

.shade-options-palette .shade-code {
  font-size: 9px;
}

/* Admin form divider */
.form-divider {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: 16px 0 12px;
}

/* Shade finish tag in admin */
.shade-finish {
  font-size: 11px;
  color: var(--clr-gold-dark);
  background: rgba(201,164,93,0.1);
  padding: 1px 6px;
  border-radius: 10px;
  direction: ltr;
}

/* ── Multi-shade hint ────────────────────────────────────────────── */
.shade-multi-hint {
  font-size: 11px;
  color: var(--clr-gold-dark);
  text-align: center;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

/* ── Custom shade row inside shade panel ─────────────────────────── */
.custom-shade-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(201,164,93,0.3);
}

.custom-shade-label {
  font-size: 11px;
  color: var(--clr-muted);
  font-weight: 500;
}

.custom-shade-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  font-family: var(--font-fa);
  font-size: 13px;
  background: rgba(255,255,255,0.7);
  color: var(--clr-text);
  outline: none;
  transition: border-color 0.2s;
  direction: rtl;
}

.custom-shade-input:focus {
  border-color: var(--clr-gold);
  background: #fff;
}

/* ── Custom shade in selection summary ───────────────────────────── */
.selection-item-shade-custom {
  font-style: italic;
  opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════════════
   Product survey — guided, two-step selection experience
   ═══════════════════════════════════════════════════════════════════ */
.product-card {
  padding: 14px 18px 16px;
  cursor: default;
  user-select: text;
  border-color: rgba(75, 33, 60, 0.11);
  box-shadow: 0 10px 34px rgba(75, 33, 60, 0.09);
}

.product-card:active {
  transform: none;
}

.product-card.selected {
  border-color: rgba(201, 164, 93, 0.72);
  box-shadow: 0 10px 34px rgba(75, 33, 60, 0.1), 0 0 0 3px rgba(201, 164, 93, 0.1);
}

.product-card-topline {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
  margin-bottom: 6px;
}

.code-pill {
  margin: 0;
  padding: 3px 10px;
  font-size: 10px;
}

.product-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--clr-muted);
}

.selected-badge {
  top: 52px;
  left: 18px;
  width: 30px;
  height: 30px;
  z-index: 2;
}

.product-image-area {
  width: 112px;
  height: 112px;
  margin-bottom: 10px;
  box-shadow: 0 7px 22px rgba(75, 33, 60, 0.08);
}

.product-name-fa {
  font-size: 18px;
  margin-bottom: 2px;
}

.product-name-en {
  margin-bottom: 6px;
  font-size: 11px;
}

.product-desc-fa {
  margin-top: 2px;
  line-height: 1.6;
}

.product-size-row {
  margin-top: 5px;
}

.product-question,
.selected-label {
  min-height: 42px;
  margin: 12px -6px -4px;
  padding: 9px 12px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
}

.product-question {
  display: flex;
  color: var(--clr-plum);
  background: var(--clr-plum-light);
  border: 1px solid rgba(75, 33, 60, 0.1);
}

.question-mark,
.selected-label-check {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  border-radius: 50%;
}

.question-mark {
  color: #fff;
  background: var(--clr-plum);
}

.selected-label {
  color: var(--clr-gold-dark);
  background: rgba(201, 164, 93, 0.12);
  border: 1px solid rgba(201, 164, 93, 0.35);
}

.selected-label-check {
  color: #fff;
  background: var(--clr-gold);
}

.product-card.selected .product-question {
  display: none;
}

.product-card.selected .selected-label {
  display: flex;
}

.shade-panel {
  padding: 16px;
  background: #fffdfb;
  border: 1.5px solid rgba(201, 164, 93, 0.65);
  box-shadow: 0 9px 30px rgba(75, 33, 60, 0.09);
}

.shade-panel::before {
  border-bottom-color: rgba(201, 164, 93, 0.65);
}

.shade-panel::after {
  border-bottom-color: #fffdfb;
}

.shade-panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.shade-step-number {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  color: #fff;
  background: var(--clr-plum);
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(75, 33, 60, 0.22);
}

.shade-panel-title {
  justify-content: flex-start;
  text-align: right;
  margin: 0;
  font-size: 13px;
}

.shade-panel-title::before,
.shade-panel-title::after {
  display: none;
}

.shade-panel-subtitle {
  margin-top: 1px;
  font-size: 10px;
  color: var(--clr-muted);
}

.shade-multi-hint {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 10px;
  padding: 3px 10px;
  color: var(--clr-gold-dark);
  background: rgba(201, 164, 93, 0.1);
  border-radius: 20px;
}

.shade-options,
.shade-options-palette {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 2px;
  padding: 0;
}

.shade-option,
.shade-options-palette .shade-option {
  width: 100%;
  min-height: 66px;
  padding: 8px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 1px;
  align-items: center;
  text-align: right;
  color: var(--clr-text);
  background: rgba(251, 247, 242, 0.75);
  border: 1.5px solid var(--clr-border);
  border-radius: 13px;
  font-family: var(--font-fa);
  appearance: none;
}

.shade-option:hover {
  border-color: var(--clr-gold-light);
  background: #fff;
}

.shade-option.selected {
  border-color: var(--clr-gold);
  background: rgba(201, 164, 93, 0.1);
  box-shadow: 0 0 0 2px rgba(201, 164, 93, 0.12);
}

.shade-circle,
.shade-options-palette .shade-circle {
  width: 40px;
  height: 40px;
  grid-row: 1 / 3;
  grid-column: 1;
}

.shade-option.selected .shade-circle {
  transform: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--clr-gold), 0 3px 10px rgba(0, 0, 0, 0.18);
}

.shade-code,
.shade-options-palette .shade-code {
  grid-column: 2;
  align-self: end;
  justify-self: start;
  padding: 0;
  overflow: hidden;
  color: var(--clr-plum);
  background: transparent;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.shade-option.selected .shade-code {
  color: var(--clr-plum);
  background: transparent;
}

.shade-name-fa {
  grid-column: 2;
  align-self: start;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--clr-muted);
  font-size: 9px;
  line-height: 1.4;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-shade-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 9px;
  color: var(--clr-muted);
  font-size: 10px;
}

.custom-shade-divider::before,
.custom-shade-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--clr-border);
}

.custom-shade-toggle {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  color: var(--clr-plum);
  text-align: right;
  background: var(--clr-plum-light);
  border: 1.5px dashed rgba(75, 33, 60, 0.25);
  border-radius: 13px;
  font-family: var(--font-fa);
  cursor: pointer;
}

.custom-shade-toggle.active {
  border-style: solid;
  border-color: var(--clr-gold);
  background: rgba(201, 164, 93, 0.1);
}

.custom-toggle-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  color: #fff;
  background: var(--clr-plum);
  border-radius: 50%;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.custom-shade-toggle.active .custom-toggle-icon {
  transform: rotate(45deg);
  background: var(--clr-gold-dark);
}

.custom-shade-toggle strong,
.custom-shade-toggle small {
  display: block;
}

.custom-shade-toggle strong {
  font-size: 12px;
}

.custom-shade-toggle small {
  margin-top: 1px;
  color: var(--clr-muted);
  font-size: 9px;
}

.custom-shade-row {
  margin-top: 9px;
  padding: 0;
  border: 0;
}

.custom-shade-row[hidden] {
  display: none;
}

.custom-shade-row-visible {
  display: flex;
}

.custom-shade-label {
  font-size: 11px;
  color: var(--clr-plum);
}

.custom-shade-input {
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  border: 1.5px solid var(--clr-border);
  border-radius: 11px;
  background: #fff;
  font-size: 13px;
}

.shade-selection-status {
  min-height: 32px;
  margin-top: 9px;
  padding: 7px 10px;
  color: var(--clr-muted);
  text-align: center;
  background: rgba(139, 130, 128, 0.07);
  border-radius: 10px;
  font-size: 10px;
  transition: var(--transition);
}

.shade-selection-status.ready {
  color: var(--clr-gold-dark);
  background: rgba(201, 164, 93, 0.13);
  font-weight: 650;
}

.luxury-note {
  min-height: 42px;
  margin-top: 5px;
  padding: 8px 13px;
  color: var(--clr-plum);
  background: rgba(255, 255, 255, 0.78);
}

.action-area {
  gap: 8px;
  padding-top: 7px;
}

.action-area .primary-btn,
.action-area .secondary-btn {
  min-height: 48px;
  padding: 10px 12px;
  line-height: 1.35;
  white-space: normal;
}

.action-area .primary-btn {
  flex: 1.08;
  font-size: 13px;
}

.action-area .secondary-btn {
  flex: 0.92;
  color: var(--clr-plum);
  font-size: 12px;
  border-color: rgba(75, 33, 60, 0.18);
  background: rgba(255, 255, 255, 0.68);
}

.action-area .primary-btn:disabled {
  color: rgba(75, 33, 60, 0.55);
  background: var(--clr-plum-light);
  box-shadow: none;
  cursor: not-allowed;
}

.action-area .primary-btn:disabled::after {
  display: none;
}

.action-area .btn-divider {
  display: none !important;
}

@media (max-width: 360px) {
  .slide-stage,
  .progress-section,
  .luxury-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .luxury-note {
    margin-right: 14px;
    margin-left: 14px;
  }

  .action-area {
    padding-right: 14px;
    padding-left: 14px;
  }

  .shade-options,
  .shade-options-palette {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 700px) {
  .product-card {
    padding-top: 10px;
  }

  .product-image-area {
    width: 88px;
    height: 88px;
    margin-bottom: 6px;
  }

  .product-question,
  .selected-label {
    min-height: 36px;
    margin-top: 7px;
    padding: 6px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shade-panel,
  .slide-enter,
  .slide-exit,
  .slide-out-right,
  .slide-back-enter {
    animation: none !important;
  }

  * {
    scroll-behavior: auto !important;
  }
}
