@font-face {
  font-family: IRANYekanX;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
          url("/assets/theme/fonts/IRANYekanX-Regular.woff2") format("woff2"),
          url("/assets/theme/fonts/IRANYekanX-Regular.woff") format("woff");
}

@font-face {
  font-family: IRANYekanX;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src:
          url("/assets/theme/fonts/IRANYekanX-Regular.woff2") format("woff2"),
          url("/assets/theme/fonts/IRANYekanX-Regular.woff") format("woff");
}

@font-face {
  font-family: IRANYekanX;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src:
          url("/assets/theme/fonts/IRANYekanX-Bold.woff2") format("woff2"),
          url("/assets/theme/fonts/IRANYekanX-Bold.woff") format("woff");
}

@font-face {
  font-family: IRANYekanX;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
          url("/assets/theme/fonts/IRANYekanX-Bold.woff2") format("woff2"),
          url("/assets/theme/fonts/IRANYekanX-Bold.woff") format("woff");
}

@keyframes loadingPulse {
  50% {
    box-shadow: 0 0 40px rgba(201, 154, 69, 0.2);
  }
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  25% {
    transform: translateX(4px);
  }
  50% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(2px);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes successIn {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes loginStepIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

:root {
  --font-family: IRANYekanX, Tahoma, Arial, sans-serif;
  --bg: #080808;
  --surface: #101010;
  --surface-2: #151515;
  --surface-3: #1b1b1b;
  --text: #f4f0e8;
  --muted: #918d84;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --gold: #c99a45;
  --gold-light: #f1cb7b;
  --gold-dark: #8d6525;
  --danger: #d97777;
  --shadow: 0 35px 100px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #ece9e2;
  --surface: #f7f5f0;
  --surface-2: #efede7;
  --surface-3: #e6e2d9;
  --text: #171612;
  --muted: #777268;
  --line: rgba(20, 18, 14, 0.1);
  --line-strong: rgba(20, 18, 14, 0.18);
  --gold: #9b6b20;
  --gold-light: #c18a34;
  --gold-dark: #6f4a13;
  --shadow: 0 35px 100px rgba(49, 43, 32, 0.13);
}

* {
  box-sizing: border-box;
  font-family: var(--font-family);
  font-variant-numeric: normal;
  font-feature-settings: "ss02" 1;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  overflow: hidden;
}

* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input,
textarea,
select,
[contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

a {
  all: unset;
  cursor: pointer;
}

body {
  margin: 0;
  /*min-height: 100vh;*/
  color: var(--text);
  background:
          radial-gradient(
                  circle at 82% 15%,
                  rgba(201, 154, 69, 0.09),
                  transparent 28%
          ),
          radial-gradient(
                  circle at 10% 90%,
                  rgba(201, 154, 69, 0.05),
                  transparent 25%
          ),
          var(--bg);
  font-family: var(--font-family);
  overflow-x: hidden;
  transition:
          background 0.5s ease,
          color 0.5s ease;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
select,
textarea {
  color: var(--text);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(201, 154, 69, 0.08);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(0.2px);
}

#nextBtn[disabled] {
  cursor: not-allowed;
  opacity: 50%;
}

.ambient-1 {
  top: -170px;
  right: -110px;
}

.ambient-2 {
  bottom: -220px;
  left: -160px;
  width: 500px;
  height: 500px;
}

.app-shell {
  width: min(1500px, calc(100% - 42px));
  min-height: calc(100vh - 42px);
  max-height: calc(100vh - 42px);
  height: calc(100vh - 42px);
  margin: 21px auto;
  display: grid;
  grid-template-columns: 250px 1fr;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.brand-rail {
  overflow: auto;
  padding: 32px 25px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(
          180deg,
          rgba(255, 255, 255, 0.025),
          transparent 50%
  );
}

.brand-mark {
  width: 120px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(201, 154, 69, 0.5);
  box-shadow: 0 0 45px rgba(201, 154, 69, 0.12);
}

.menu-toggle,
.sidebar-close,
.sidebar-overlay {
  display: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-theme="light"] .logo-dark {
  display: none !important;
}

[data-theme="light"] .logo-light {
  display: block !important;
}

.logo-light {
  display: none !important;
}

.rail-copy {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.rail-copy span {
  color: var(--gold);
  letter-spacing: 0.18em;
  font-size: 10px;
}

.theme-toggle {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: 0.35s var(--ease);
}

.theme-toggle:hover {
  border-color: rgba(201, 154, 69, 0.45);
  color: var(--gold-light);
}

.theme-label {
  font-size: 9px;
  letter-spacing: 0.2em;
}

.shabakieh-credit {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  direction: rtl;
  opacity: 0.35;
  font-size: 10px;
  color: var(--muted);
}

.shabakieh-credit img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: 0.8;
}

.shabakieh-credit span:last-child {
  color: var(--muted);
}

.form-stage {
  padding: 45px clamp(25px, 5vw, 80px) 55px;
  min-width: 0;
  overflow-y: auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.eyebrow {
  display: block;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 9px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}

h2 {
  font-size: clamp(29px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.045em;
  margin-bottom: 12px;
}

h3 {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 0;
}

p {
  color: var(--muted);
  line-height: 2;
  font-size: 13px;
}

.step-counter {
  direction: ltr;
  font-family: Georgia, serif;
  font-size: 27px;
  white-space: nowrap;
  color: var(--gold-light);
}

.step-counter i {
  font-style: normal;
  color: var(--muted);
  margin: 0 5px;
  font-size: 15px;
}

.progress-wrap {
  margin: 38px 0 45px;
}

.progress-track {
  height: 1px;
  background: var(--line);
  position: relative;
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 14.28%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transition: width 0.7s var(--ease);
  box-shadow: 0 0 18px rgba(201, 154, 69, 0.4);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 11px;
  color: var(--muted);
  font-size: 14px;
}

#progressPercent {
  direction: ltr;
}

.content-grid {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 35px;
}

.step-rail {
  padding-top: 8px;
}

.rail-step {
  position: relative;
  padding: 0 0 30px 0;
  color: var(--muted);
  font-size: 14px;
  transition: 0.4s ease;
}

.rail-step::before {
  content: "";
  position: absolute;
  top: 2px;
  right: -20px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  background: var(--bg);
}

.rail-step::after {
  content: "";
  position: absolute;
  top: 9px;
  right: -18px;
  width: 1px;
  height: 48px;
  background: var(--line);
}

.rail-step:last-child::after {
  display: none;
}

.rail-step.active,
.rail-step.done {
  color: var(--gold-light);
}

.rail-step.active::before,
.rail-step.done::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 13px rgba(201, 154, 69, 0.55);
}

.rail-step span {
  display: block;
  direction: ltr;
  font-size: 11px;
  margin-bottom: 4px;
}

#profileForm {
  min-width: 0;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: stepIn 0.65s var(--ease) both;
}

.step-intro {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.big-number {
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 154, 69, 0.45);
  font-size: 70px;
  line-height: 0.8;
  direction: ltr;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 32px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field {
  display: block;
  position: relative;
}

.field > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin: 0 0 8px 4px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: var(--surface-2);
  padding: 14px 15px;
  transition: 0.35s var(--ease);
  color-scheme: dark;
  font-size: 14px;
}

[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea {
  color-scheme: light;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #77736b;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(201, 154, 69, 0.75);
  box-shadow:
          0 0 0 3px rgba(201, 154, 69, 0.08),
          0 10px 35px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.field.invalid input {
  border-color: var(--danger);
  animation: shake 0.35s ease;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0 15px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.hint {
  color: var(--muted);
  font-size: 10px;
}

.gold-button {
  border: 1px solid var(--gold);
  color: #111;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 13px;
  padding: 14px 19px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  box-shadow: 0 10px 35px rgba(201, 154, 69, 0.12);
  transition: 0.4s var(--ease);
}

.gold-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(201, 154, 69, 0.2);
}

.gold-button.small {
  padding: 11px 15px;
  font-size: 10px;
}

.button-arrow {
  font-size: 16px;
  direction: ltr;
  display: flex;
  align-items: center;
}

.text-button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  transition: 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.text-button:hover {
  color: var(--text);
}

.text-button:disabled {
  opacity: 0.25;
  cursor: default;
}

.form-actions {
  margin-top: 45px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.addresses {
  display: grid;
  gap: 12px;
}

.address-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 17px;
  background: var(--surface-2);
  animation: cardIn 0.5s var(--ease) both;
}

.address-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.address-index {
  color: var(--gold);
  font:
          13px Georgia,
          serif;
  direction: ltr;
}

.remove-address {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}

.remove-address:hover {
  color: var(--danger);
}

.empty-address {
  padding: 50px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.address-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.choice-block {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.choice-block:last-child {
  border-bottom: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.choice input,
.swatch input,
.priority input,
.channel input,
.source input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  min-height: 90px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.35s var(--ease);
  cursor: pointer;
}

.choice small,
.channel small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.14em;
  direction: ltr;
}

.choice input:checked + span {
  border-color: var(--gold);
  background: linear-gradient(145deg, rgba(201, 154, 69, 0.14), transparent);
  box-shadow: inset 0 0 0 1px rgba(201, 154, 69, 0.15);
  transform: translateY(-2px);
}

.choice:hover span {
  border-color: var(--line-strong);
}

.swatches {
  display: flex;
  justify-content: space-between;
  gap: 9px;
}

.swatch {
  position: relative;
  text-align: center;
  cursor: pointer;
}

.swatch span {
  width: 44px;
  height: 44px;
  display: block;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--swatch);
  border: 3px solid transparent;
  outline: 1px solid var(--line);
  transition: 0.3s var(--ease);
}

.swatch b {
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
}

.swatch input:checked + span {
  border-color: var(--surface);
  outline: 2px solid var(--gold);
  transform: scale(1.1);
}

.swatch input:checked ~ b {
  color: var(--gold-light);
}

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

.priority {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 17px;
  display: flex;
  gap: 13px;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}

.priority > span {
  font-size: 11px;
  color: var(--gold);
  direction: ltr;
}

.priority b {
  font-size: 11px;
  font-weight: 400;
}

.priority:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201, 154, 69, 0.08);
}

.measure-card {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
  align-items: center;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
}

.measure-card .field-grid {
  margin-top: 0;
}

.measure-figure {
  height: 320px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: 1px solid var(--line);
}

.silhouette {
  position: relative;
  width: 72px;
  height: 225px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
}

.silhouette::before {
  content: "";
  width: 30px;
  height: 30px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.silhouette::after {
  content: "";
  width: 54px;
  height: 175px;
  border: 1px solid var(--gold);
  border-radius: 35px 35px 18px 18px;
}

.silhouette span {
  position: absolute;
  top: 65px;
  left: 35px;
  height: 145px;
  border-left: 1px dashed rgba(201, 154, 69, 0.55);
}

.measure-label {
  position: absolute;
  color: var(--gold);
  font-size: 11px;
}

.label-height {
  top: 45px;
  right: 12px;
}

.label-weight {
  bottom: 45px;
  left: 12px;
}

.channel-list {
  margin-top: 30px;
  display: grid;
  gap: 9px;
}

.channel {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 20px;
  align-items: center;
  gap: 15px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: 0.35s var(--ease);
}

.channel:hover {
  transform: translateX(-4px);
  border-color: var(--line-strong);
}

.channel:has(input:checked) {
  border-color: var(--gold);
  background: linear-gradient(90deg, rgba(201, 154, 69, 0.09), transparent);
}

.channel-icon {
  color: var(--gold);
  font-size: 11px;
  direction: ltr;
}

.channel b {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.channel small {
  display: block;
  margin-top: 4px;
}

.channel i {
  color: var(--muted);
  font-style: normal;
}

.privacy-toggle {
  margin-top: 25px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 17px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.privacy-toggle:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201, 154, 69, 0.07);
}

.privacy-toggle input {
  position: absolute;
  opacity: 0;
}

.toggle-ui {
  width: 43px;
  height: 24px;
  border-radius: 20px;
  background: var(--surface-3);
  position: relative;
  flex: none;
  transition: 0.3s;
}

.toggle-ui::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 3px;
  right: 3px;
  border-radius: 50%;
  background: var(--muted);
  transition: 0.3s var(--ease);
}

.privacy-toggle input:checked + .toggle-ui {
  background: var(--gold);
}

.privacy-toggle input:checked + .toggle-ui::after {
  right: 22px;
  background: #111;
}

.privacy-toggle b {
  display: block;
  font-size: 11px;
  font-weight: 500;
}

.privacy-toggle small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 6px;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 32px;
}

.source {
  position: relative;
  min-height: 105px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: 0.4s var(--ease);
  overflow: hidden;
}

.source::before {
  content: "";
  position: absolute;
  inset: auto -20px -55px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(201, 154, 69, 0.05);
  transition: 0.5s var(--ease);
}

.source span {
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.source small {
  position: absolute;
  top: 16px;
  left: 16px;
  color: var(--gold);
  font-size: 11px;
  direction: ltr;
}

.source:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201, 154, 69, 0.08);
}

.source:has(input:checked)::before {
  transform: scale(2);
  background: rgba(201, 154, 69, 0.09);
}

.review-card {
  margin-top: 30px;
  padding: 30px;
  border: 1px solid rgba(201, 154, 69, 0.35);
  border-radius: 22px;
  display: flex;
  gap: 25px;
  align-items: center;
  background:
          radial-gradient(
                  circle at 20% 20%,
                  rgba(201, 154, 69, 0.1),
                  transparent 35%
          ),
          var(--surface-2);
}

.review-emblem {
  width: 75px;
  height: 75px;
  flex: none;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  font:
          22px Georgia,
          serif;
}

.review-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.confirm-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.confirm-line input {
  position: absolute;
  opacity: 0;
}

.check-ui {
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  flex: none;
  transition: 0.3s;
}

.confirm-line input:checked + .check-ui {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 5px var(--surface);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 20px);
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: 0.35s var(--ease);
  box-shadow: var(--shadow);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.success-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.success-screen.show {
  opacity: 1;
  pointer-events: auto;
  display: grid;
}

.success-inner {
  width: min(560px, calc(100% - 40px));
  text-align: center;
  position: relative;
  z-index: 2;
  animation: successIn 0.9s var(--ease) both;
}

.success-logo {
  width: 105px;
  height: 105px;
  margin: 0 auto 30px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  font:
          34px Georgia,
          serif;
  box-shadow: 0 0 80px rgba(201, 154, 69, 0.16);
}

.success-inner h2 {
  font-size: clamp(32px, 5vw, 58px);
}

.success-inner p {
  max-width: 480px;
  margin: 0 auto 30px;
}

.success-orbit {
  position: absolute;
  width: min(80vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(201, 154, 69, 0.12);
  border-radius: 50%;
  animation: orbit 18s linear infinite;
}

.success-orbit::before,
.success-orbit::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 20px var(--gold);
}

.success-orbit::before {
  top: 0;
  left: 50%;
}

.success-orbit::after {
  bottom: 24%;
  right: 7%;
}

.location-title {
  display: flex;
  align-items: center;
  gap: 4px;
}

.login-shell {
  width: min(1180px, calc(100% - 42px));
  min-height: calc(100vh - 42px);
  height: calc(100vh - 42px);
  margin: 21px auto;

  display: grid;
  grid-template-columns: 250px 1fr;

  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;

  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);

  position: relative;
  z-index: 1;
}

.login-brand {
  padding: 32px 25px;

  border-left: 1px solid var(--line);

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: linear-gradient(
          180deg,
          rgba(255, 255, 255, 0.025),
          transparent 50%
  );
}

.login-brand-logo {
  width: 120px;
  aspect-ratio: 1;

  margin: 0 auto;

  border-radius: 50%;
  overflow: hidden;

  border: 1px solid rgba(201, 154, 69, 0.5);

  box-shadow: 0 0 45px rgba(201, 154, 69, 0.12);
}

.login-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-brand-copy {
  align-self: center;

  color: var(--muted);

  font-size: 12px;
  line-height: 2;
}

.login-brand-copy span {
  color: var(--gold);

  font-size: 10px;
  letter-spacing: 0.18em;
}

.login-stage {
  min-width: 0;
  overflow: auto;

  display: flex;
  justify-content: center;

  padding: 55px clamp(25px, 7vw, 100px);
}

.login-content {
  width: min(520px, 100%);
}

.login-heading {
  text-align: center;
  margin-bottom: 38px;
}

.login-heading h1 {
  font-size: clamp(34px, 4vw, 52px);
  margin-bottom: 14px;
}

.login-heading p {
  max-width: 470px;
  margin: 0 auto;

  font-size: 12px;
  line-height: 2.1;
}

.login-progress {
  display: flex;
  align-items: center;

  margin-bottom: 22px;
}

.login-progress-item {
  display: flex;
  align-items: center;
  gap: 9px;

  color: var(--muted);

  font-size: 10px;

  white-space: nowrap;

  transition: 0.35s var(--ease);
}

.login-progress-item span {
  width: 27px;
  height: 27px;

  border: 1px solid var(--line);

  border-radius: 50%;

  display: grid;
  place-items: center;

  font-size: 11px;

  direction: ltr;

  transition: 0.35s var(--ease);
}

.login-progress-item b {
  font-weight: 400;
}

.login-progress-item.active {
  color: var(--gold-light);
}

.login-progress-item.active span {
  border-color: var(--gold);
  color: var(--gold-light);

  background: rgba(201, 154, 69, 0.08);

  box-shadow: 0 0 18px rgba(201, 154, 69, 0.12);
}

.login-progress-line {
  flex: 1;

  height: 1px;

  margin: 0 14px;

  background: var(--line);

  position: relative;
}

.login-progress-line::after {
  content: "";

  position: absolute;

  inset: 0 0 0 auto;

  width: 0;

  background: var(--gold);

  transition: width 0.5s var(--ease);
}

.login-progress.verified .login-progress-line::after {
  width: 100%;
}

.login-card {
  position: relative;

  border: 1px solid var(--line);
  border-radius: 24px;

  padding: 38px;

  background:
          radial-gradient(
                  circle at 80% 0%,
                  rgba(201, 154, 69, 0.055),
                  transparent 35%
          ),
          var(--surface-2);

  overflow: hidden;
}

.login-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 12%;
  right: 12%;

  height: 1px;

  background: linear-gradient(
          90deg,
          transparent,
          rgba(201, 154, 69, 0.5),
          transparent
  );
}

.login-step {
  display: none;

  animation: loginStepIn 0.55s var(--ease) both;
}

.login-step.active {
  display: block;
}

.login-step-icon {
  width: 58px;
  height: 58px;

  margin-bottom: 25px;

  border: 1px solid rgba(201, 154, 69, 0.4);

  border-radius: 50%;

  display: grid;
  place-items: center;

  color: var(--gold);

  background: radial-gradient(circle, rgba(201, 154, 69, 0.1), transparent 70%);

  box-shadow: 0 0 35px rgba(201, 154, 69, 0.08);
}

.login-step-icon i {
  font-size: 20px;
}

.login-step-heading {
  margin-bottom: 28px;
}

.login-step-heading h2 {
  font-size: 31px;
  margin-bottom: 9px;
}

.login-step-heading p {
  margin-bottom: 0;

  font-size: 11px;
  line-height: 2;
}

.login-step-heading strong {
  color: var(--gold-light);
  font-weight: 500;
  direction: ltr;
  display: inline-block;
}

.login-form {
  display: grid;
  gap: 17px;
}

.login-field {
  display: block;
}

.login-field > span,
.otp-label {
  display: block;

  color: var(--muted);

  font-size: 10px;

  margin: 0 0 8px 4px;
}

.mobile-input {
  display: flex;

  direction: ltr;

  border: 1px solid var(--line);

  border-radius: 14px;

  overflow: hidden;

  background: var(--surface);

  transition: 0.35s var(--ease);
}

.mobile-input:focus-within {
  border-color: rgba(201, 154, 69, 0.75);

  box-shadow:
          0 0 0 3px rgba(201, 154, 69, 0.08),
          0 10px 35px rgba(0, 0, 0, 0.08);
}

.mobile-prefix {
  min-width: 65px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--gold);

  font-size: 12px;

  border-right: 1px solid var(--line);

  background: rgba(201, 154, 69, 0.035);
}

.mobile-input input {
  width: 100%;

  min-width: 0;

  border: 0;
  outline: 0;

  background: transparent;

  color: var(--text);

  padding: 16px;

  font-size: 14px;

  direction: ltr;
  text-align: left;
}

.mobile-input input::placeholder {
  color: #77736b;
}

.field-error {
  display: block;

  min-height: 15px;

  margin-top: 7px;

  color: var(--danger);

  font-size: 9px;
}

.login-field.invalid .mobile-input {
  border-color: var(--danger);

  animation: shake 0.35s ease;
}

.login-submit {
  width: 100%;

  min-height: 54px;

  margin-top: 2px;

  justify-content: space-between;

  padding: 14px 17px;
}

.login-submit .button-arrow {
  width: 29px;
  height: 29px;

  border-radius: 50%;

  display: grid;
  place-items: center;

  background: rgba(0, 0, 0, 0.13);
}

.login-submit .button-arrow i {
  font-size: 13px;
}

.otp-wrapper {
  margin-bottom: 2px;
}

.otp-inputs {
  display: grid;

  grid-template-columns: repeat(6, 1fr);

  gap: 9px;
}

.otp-input {
  width: 100%;
  aspect-ratio: 0.82;

  border: 1px solid var(--line);
  border-radius: 13px;

  outline: none;

  background: var(--surface);

  color: var(--text);

  text-align: center;

  font-size: 20px;
  font-weight: 600;

  transition: 0.3s var(--ease);
}

.otp-input:focus {
  border-color: var(--gold);

  background: linear-gradient(145deg, rgba(201, 154, 69, 0.09), var(--surface));

  box-shadow: 0 0 0 3px rgba(201, 154, 69, 0.07);

  transform: translateY(-2px);
}

.otp-input.filled {
  border-color: rgba(201, 154, 69, 0.45);
}

.otp-footer {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 15px;

  margin-top: 20px;
}

.otp-timer {
  color: var(--muted);

  font-size: 12px;
}

.otp-timer strong {
  color: var(--gold);

  direction: ltr;

  display: inline-block;

  margin-right: 3px;

  font-size: 10px;
}

.resend-button {
  border: 0;

  padding: 0;

  background: transparent;

  color: var(--gold);

  font-size: 12px;

  transition: 0.3s ease;
}

.resend-button:disabled {
  color: var(--muted);
  opacity: 0.45;

  cursor: default;
}

.resend-button:not(:disabled):hover {
  color: var(--gold-light);
}

.change-mobile {
  margin-top: 25px;

  border: 0;

  background: transparent;

  color: var(--muted);

  font-size: 12px;

  display: flex;

  align-items: center;

  gap: 6px;

  transition: 0.3s ease;
}

.change-mobile:hover {
  color: var(--text);
}

.change-mobile i {
  font-size: 11px;
}

.login-loading {
  position: absolute;
  inset: 0;

  display: grid;
  place-items: center;

  background: color-mix(in srgb, var(--surface-2) 94%, transparent);

  backdrop-filter: blur(16px);

  opacity: 0;
  pointer-events: none;

  transition: 0.4s ease;

  z-index: 10;
}

.login-loading.show {
  opacity: 1;
  pointer-events: auto;
}

.loading-content {
  text-align: center;

  position: relative;
  z-index: 2;
}

.loading-logo {
  width: 65px;
  height: 65px;

  margin: 0 auto 20px;

  border: 1px solid var(--gold);

  border-radius: 50%;

  display: grid;
  place-items: center;

  color: var(--gold-light);

  font-size: 20px;

  animation: loadingPulse 1.6s ease-in-out infinite;
}

.loading-content h3 {
  font-size: 18px;
  margin-bottom: 7px;
}

.loading-content p {
  font-size: 10px;
}

.loading-orbit {
  position: absolute;

  width: 190px;
  height: 190px;

  border: 1px solid rgba(201, 154, 69, 0.14);

  border-radius: 50%;

  animation: orbit 5s linear infinite;
}

.loading-orbit::before {
  content: "";

  position: absolute;

  width: 5px;
  height: 5px;

  top: 0;
  left: 50%;

  border-radius: 50%;

  background: var(--gold);

  box-shadow: 0 0 18px var(--gold);
}

.login-footer {
  margin-top: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  color: var(--muted);

  font-size: 8px;

  letter-spacing: 0.12em;

  direction: ltr;
}

.login-footer i {
  width: 3px;
  height: 3px;

  border-radius: 50%;

  background: var(--gold);

  opacity: 0.7;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.hidden {
  display: none;
}

[hidden] {
  display: none !important;
}

.input-container input {
  cursor: pointer;
}

.datepicker-wrapper {
  position: relative;
}

.calendar-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
}

.datepicker-calendar {
  position: absolute;
  z-index: 1000;
  bottom: calc(100% + 8px);
  right: 50%;
  transform: translate(50%);

  width: 320px;
  padding: 16px;

  background: var(--surface);
  border: 1px solid #e5e5e5;
  border-radius: 16px;

  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);

  direction: rtl;
}

.datepicker-calendar.hidden {
  display: none;
}

.datepicker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 16px;
}

.datepicker-title {
  font-size: 15px;
  font-weight: 600;
}

.datepicker-nav {
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 10px;

  background: var(--surface-2);
  color: var(--text);

  font-size: 24px;
  line-height: 1;

  cursor: pointer;

  transition: 0.2s;
}

.datepicker-nav:hover {
  background: var(--surface-3);
}

.datepicker-weekdays,
.datepicker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.datepicker-weekdays {
  margin-bottom: 8px;
}

.datepicker-weekday {
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 9px;
  color: var(--muted);
}

.datepicker-day {
  width: 36px;
  height: 36px;
  color: var(--text);
  margin: 2px auto;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 10px;

  background: transparent;

  font-family: inherit;
  font-size: 13px;

  cursor: pointer;

  transition:
          background 0.2s,
          color 0.2s;
}

.datepicker-day:not(.empty):hover {
  background: var(--surface-3);
}

.datepicker-day.today {
  border: 1px solid var(--gold-light);
}

.datepicker-day.selected {
  background: var(--gold);
  color: var(--text);
}

.datepicker-day.today.selected {
  border-color: var(--gold-dark);
}

.datepicker-day.empty {
  cursor: default;
}

.datepicker-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.datepicker-title-button {
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.datepicker-title-button:hover {
  background: var(--surface-3);
}

.datepicker-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.datepicker-month {
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition:
          background 0.2s,
          color 0.2s;
}

.datepicker-month:hover {
  background: var(--surface-3);
}

.datepicker-month.selected {
  background: var(--gold);
  color: var(--text);
}

.datepicker-years {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.datepicker-year {
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition:
          background 0.2s,
          color 0.2s;
}

.datepicker-year:hover {
  background: var(--surface-3);
}

.datepicker-year.selected {
  background: var(--gold);
  color: var(--text);
}

.datetime-selected-date {
  text-align: center;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}

.time-picker {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 10px;
  direction: ltr;
}

.time-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.time-field label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.time-field select {
  width: 90px;
  height: 44px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  text-align: center;
  font-size: 14px;
}

.time-separator {
  font-size: 20px;
  margin-bottom: 10px;
}

.datetime-confirm {
  width: 100%;
  height: 44px;
  margin-top: 20px;
  border: 0;
  border-radius: 10px;
  background: var(--gold);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
}

/* =========================================================
   GROOM CONSULTATION
   Add this section at the end of the existing CSS
   ========================================================= */

.step-intro h2 {
  margin-bottom: 12px;
}

.choice {
  position: relative;
}

.choice label {
  min-height: 90px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.35s var(--ease);
  cursor: pointer;
}

.choice input:checked + label {
  border-color: var(--gold);
  background: linear-gradient(145deg, rgba(201, 154, 69, 0.14), transparent);
  box-shadow: inset 0 0 0 1px rgba(201, 154, 69, 0.15);
  transform: translateY(-2px);
}

.choice label:hover {
  border-color: var(--line-strong);
}

.choice-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.advisor {
  margin-top: 30px;
  padding: 25px;
  border: 1px solid rgba(201, 154, 69, 0.3);
  border-radius: 22px;
  background:
          radial-gradient(
                  circle at 20% 20%,
                  rgba(201, 154, 69, 0.08),
                  transparent 35%
          ),
          var(--surface-2);
}

.advisor-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.advisor-mark {
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  font:
          18px Georgia,
          serif;
}

.advisor-header h3 {
  margin: 0;
}

.advisor-header p {
  margin: 4px 0 0;
  font-size: 10px;
}

.field input.invalid,
.field textarea.invalid,
.field select.invalid {
  border-color: #d64545;
  animation: shake 0.3s;
}

.invalid {
  outline: 1px solid #d64545;
  outline-offset: 6px;
  border-radius: 12px;
  animation: shake 0.3s;
}

.inspiration-upload[hidden] {
  display: none !important;
}

.event-hero {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 0 0 4px 4px;
  margin-bottom: 32px;
  background: #111;
}

.event-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: top;
}

.event-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
          90deg,
          rgba(0, 0, 0, 0.78) 0%,
          rgba(0, 0, 0, 0.45) 45%,
          rgba(0, 0, 0, 0.12) 100%
  );
}

.event-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 48px;
  color: #fff;
}

.event-hero-content .eyebrow {
  margin-bottom: 12px;
  opacity: 0.75;
}

.event-hero-content h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.event-hero-content p {
  margin: 0;
  font-size: 14px;
  opacity: 0.78;
}

.choice small {
  text-transform: uppercase;
}

.section-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 20px 0;
  flex: 1;
  overflow-y: auto;
  padding-left: 4px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  cursor: pointer;
  transition: 0.35s var(--ease);
  width: 100%;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(201, 154, 69, 0.12), transparent);
  border-color: rgba(201, 154, 69, 0.35);
  color: var(--gold-light);
}

.nav-num {
  font-family: Georgia, serif;
  font-size: 13px;
  direction: ltr;
  color: var(--gold);
  min-width: 22px;
}

.nav-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-status {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  color: transparent;
  transition: 0.35s var(--ease);
  flex: none;
}

.nav-item.completed .nav-status {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
  box-shadow: 0 0 12px rgba(201, 154, 69, 0.45);
}

.nav-final {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 14px;
  border-radius: 0 0 13px 13px;
}

.form-actions.single {
  justify-content: flex-end;
}

.completion-grid {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.completion-item {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  transition: 0.35s var(--ease);
}

.completion-item.completed {
  border-color: var(--gold);
  background: rgba(201, 154, 69, 0.08);
  color: var(--gold-light);
}

.completion-item .check-icon {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--line-strong);
}

.completion-item.completed .check-icon {
  color: var(--gold);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: stepIn 0.55s var(--ease) both;
}

.success-screen {
  display: none;
}

.mobile-header {
  display: none;
}

.mobile-logo img {
  height: 60px;
}

.mobile-logo {
  display: none;
}

/* ---------- Welcome / Profile ---------- */
.welcome-hero {
  padding: 20px 0 36px;
  border-bottom: 1px solid var(--line);
}

.welcome-hero h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  margin-bottom: 14px;
}

.welcome-hero p {
  max-width: 620px;
  font-size: 13px;
  line-height: 2.2;
}

.profile-completion {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.completion-ring {
  --progress: 0;
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
          radial-gradient(closest-side, var(--surface) 78%, transparent 79% 100%),
          conic-gradient(var(--gold) calc(var(--progress) * 1%), var(--line) 0);
  position: relative;
}

.completion-ring span {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-light);
  direction: ltr;
}

.completion-text b {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

.completion-text small {
  color: var(--muted);
  font-size: 11px;
}

.welcome-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.welcome-card {
  position: relative;
  text-align: right;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
  cursor: pointer;
  transition: 0.4s var(--ease);
  overflow: hidden;
}

.welcome-card::before {
  content: "";
  position: absolute;
  inset: auto -30px -50px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(201, 154, 69, 0.06);
  transition: 0.5s var(--ease);
}

.welcome-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.welcome-card:hover::before {
  transform: scale(1.6);
  background: rgba(201, 154, 69, 0.1);
}

.welcome-num {
  font-family: Georgia, serif;
  font-size: 13px;
  color: var(--gold);
  direction: ltr;
}

.welcome-card b {
  font-size: 14px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.welcome-card small {
  color: var(--muted);
  font-size: 10px;
  position: relative;
  z-index: 1;
}

.welcome-card i {
  position: absolute;
  top: 20px;
  left: 20px;
  color: transparent;
  font-size: 9px;
  transition: 0.35s var(--ease);
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}

.welcome-card.completed i {
  color: var(--muted);
}

.welcome-card.completed:hover i {
  color: var(--gold);
  transform: translateX(-4px);
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .brand-rail {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 280px;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    padding: 32px 25px;
    border-left: 1px solid var(--line);
    border-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--surface);
    overflow-y: auto;
  }

  .brand-rail .brand-mark {
    display: none;
  }

  .brand-rail .mobile-logo img {
    width: 100%;
    height: unset;
  }

  .mobile-logo {
    display: block;
  }

  .brand-rail.open {
    transform: translateX(0);
  }

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 18px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: transform 0.4s var(--ease);
  }

  .menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
  }

  .menu-toggle.open {
    transform: rotate(90deg);
  }

  .sidebar-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--muted);
    align-items: center;
    justify-content: center;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 998;
  }

  .sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
    display: block;
  }

  .brand-mark {
    width: 90px;
    margin: 0;
  }

  .rail-copy {
    display: none;
  }

  .theme-toggle {
    width: 100%;
    min-width: 0;
  }

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

  .step-rail {
    display: flex;
    overflow: auto;
    gap: 20px;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--line);
  }

  .rail-step {
    padding: 0 0 10px;
    white-space: nowrap;
  }

  .rail-step::before,
  .rail-step::after {
    display: none;
  }

  .measure-card {
    grid-template-columns: 1fr;
  }

  .measure-figure {
    display: none;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand {
    flex-direction: row;
    align-items: center;

    padding: 17px 22px;

    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .login-brand-logo {
    width: 62px;
  }

  .login-brand-copy {
    display: none;
  }

  .login-brand .theme-toggle {
    width: auto;
    min-width: 105px;
  }

  .login-stage {
    align-items: flex-start;

    padding-top: 55px;
  }

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

  .step-rail {
    display: none;
  }

  .choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .welcome-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  main {
    padding-bottom: 40px;
  }

  .app-shell {
    width: 100%;
    /*min-height: 100vh;*/
    margin: 0;
    border-radius: 0;
    border: 0;
  }

  .form-stage {
    padding: 25px 18px 0;
  }

  .topbar h1 {
    font-size: 25px;
  }

  .step-counter {
    font-size: 20px;
  }

  .progress-wrap {
    margin: 28px 0 30px;
  }

  .step-intro {
    grid-template-columns: 50px 1fr;
    gap: 14px;
  }

  .big-number {
    font-size: 43px;
  }

  .field-grid,
  .address-fields,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .swatches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px 8px;
  }

  .swatches[data-required-group="favoriteColors"] {
    grid-template-columns: repeat(3, 1fr);
  }

  .priority-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-card {
    align-items: flex-start;
    padding: 22px;
  }

  .review-emblem {
    width: 55px;
    height: 55px;
    font-size: 18px;
  }

  .form-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin: 30px -18px -35px;
    padding: 15px 18px;
    background: color-mix(in srgb, var(--surface) 93%, transparent);
    backdrop-filter: blur(15px);
  }

  .gold-button {
    min-width: 135px;
  }

  .login-shell {
    width: 100%;
    height: 100vh;
    min-height: 100vh;

    margin: 0;

    border: 0;
    border-radius: 0;
  }

  .login-stage {
    padding: 30px 18px;
  }

  .login-heading {
    margin-bottom: 28px;
  }

  .login-heading h1 {
    font-size: 31px;
  }

  .login-heading p {
    font-size: 11px;
  }

  .login-card {
    padding: 25px 20px;

    border-radius: 20px;
  }

  .login-step-icon {
    width: 50px;
    height: 50px;

    margin-bottom: 20px;
  }

  .login-step-heading h2 {
    font-size: 27px;
  }

  .otp-inputs {
    gap: 6px;
  }

  .otp-input {
    border-radius: 10px;
    font-size: 17px;
  }

  .otp-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-progress-item b {
    display: none;
  }

  .login-progress-line {
    margin: 0 10px;
  }

  .login-footer {
    font-size: 7px;
  }

  .field-wide {
    grid-column: auto;
  }

  .choice-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review {
    align-items: flex-start;
  }

  .event-hero {
    height: 220px;
    margin-bottom: 24px;
  }

  .event-hero-content {
    padding: 28px 24px;
  }

  .event-hero-content h1 {
    font-size: 30px;
  }

  .event-hero-content p {
    font-size: 13px;
  }
}

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

  .topbar {
    gap: 15px;
  }

  .step-counter {
    font-size: 20px;
  }

  .step-intro {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .big-number {
    font-size: 42px;
  }

  .choice-grid,
  .choice-grid.two,
  .choice-grid.three {
    grid-template-columns: 1fr;
  }

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

  .swatches[data-required-group="favoriteColors"] {
    grid-template-columns: repeat(3, 1fr);
  }

  .review {
    flex-direction: column;
  }

  .form-actions {
    gap: 15px;
  }
}
