/* ============================================
   MHR — LAYER 1 STYLES
   Black + Gold | Playfair + DM Sans | Mobile-first
   ============================================ */

:root {
  --bg: #0A0A0A;
  --bg-card: #111111;
  --bg-input: #161616;
  --gold: #C8A95A;
  --gold-bright: #E0C376;
  --gold-soft: rgba(200, 169, 90, 0.15);
  --gold-line: rgba(200, 169, 90, 0.25);
  --text: #EDEDED;
  --text-mute: #B8B8B8;
  --text-faint: #888888;
  --error: #E06B5C;
  --warning: #E8B547;
  --success: #6FAF7A;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.6);

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

body {
  background:
    radial-gradient(ellipse at top, rgba(200, 169, 90, 0.04) 0%, transparent 50%),
    var(--bg);
}

/* ============ LAYOUT ============ */

.shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 20px 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell-centered .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ============ BRAND BAR ============ */

.brand-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.brand-mark {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ============ STEP INDICATOR ============ */

.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-mute);
  font-family: var(--sans);
  transition: all 0.3s ease;
}

.step-num.active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.step-num.done {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.step-line {
  width: 32px;
  height: 1px;
  background: var(--gold-line);
}

.step-line.filled {
  background: var(--gold);
}

/* ============ CONTENT ============ */

.content {
  flex: 1;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-title {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 10px 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

.page-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.page-sub {
  font-size: 15px;
  color: var(--text-mute);
  margin: 0 0 24px 0;
  line-height: 1.55;
  font-weight: 400;
}

/* ============ ASSESSMENT + WARNING LINES ============ */

.assessment-line {
  font-size: 15px;
  color: var(--gold-bright);
  margin: 0 0 14px 0;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.assessment-line .hindi {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  margin-left: 4px;
  font-weight: 400;
}

.warning-line {
  font-size: 13px;
  color: var(--text);
  background: rgba(232, 181, 71, 0.08);
  border-left: 2px solid var(--warning);
  padding: 12px 14px;
  margin: 0 0 32px 0;
  line-height: 1.55;
  border-radius: 2px;
  font-weight: 400;
}

/* ============ STAGES ============ */

.stage {
  display: none;
  animation: fadeIn 0.4s ease;
}

.stage.active {
  display: block;
}

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

/* ============ FORM FIELDS ============ */

.field-block {
  margin-bottom: 18px;
}

.field-hint {
  font-size: 13px;
  color: var(--text-mute);
  margin: -4px 0 12px 0;
  line-height: 1.5;
}

/* ============ INPUT WITH ICON ============ */

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--bg-input);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  transition: border-color 0.2s ease, background 0.2s ease;
  overflow: hidden;
}

.input-with-icon:focus-within {
  border-color: var(--gold);
  background: #1A1A1A;
}

.input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px 0 16px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid var(--border);
}

.input-icon svg {
  display: block;
}

.input-prefix {
  display: flex;
  align-items: center;
  padding: 0 4px 0 14px;
  color: var(--gold);
  font-size: 16px;
  font-weight: 500;
  flex-shrink: 0;
}

.input-with-icon input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 16px 18px 16px 14px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0 !important;
}

.input-with-icon input:focus {
  outline: none;
  background: transparent !important;
}

.input-with-icon input::placeholder {
  color: #9A9A9A;
  opacity: 1;
}

@media (max-width: 360px) {
  .input-icon {
    padding: 0 10px 0 12px;
  }
  .input-icon svg {
    width: 18px;
    height: 18px;
  }
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 16px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

input:focus {
  outline: none;
  border-color: var(--gold);
  background: #1A1A1A;
}

input::placeholder {
  color: #9A9A9A;
  opacity: 1;
}

/* ============ PHONE ROW ============ */

.phone-row {
  display: flex;
  gap: 8px;
}

.country-select {
  width: 90px;
  padding: 16px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%23C8A95A' d='M6 9L1 4h10z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.country-select:focus {
  outline: none;
  border-color: var(--gold);
}

.phone-input {
  flex: 1;
}

/* ============ PREFIX INPUT (IG / YT) ============ */

.prefix-input {
  display: flex;
  align-items: stretch;
  background: var(--bg-input);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  transition: border-color 0.2s ease, background 0.2s ease;
  overflow: hidden;
}

.prefix-input:focus-within {
  border-color: var(--gold);
  background: #1A1A1A;
}

.prefix-input .prefix {
  padding: 16px 14px 16px 18px;
  color: var(--gold);
  font-size: 16px;
  font-weight: 500;
  border-right: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.prefix-input .prefix-logo {
  padding: 0 14px 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.prefix-input .prefix-logo svg {
  display: block;
}

.prefix-input input {
  border: none;
  background: transparent;
  flex: 1;
  padding-left: 14px;
}

.prefix-input input:focus {
  background: transparent;
}

/* ============ OTP STAGE ============ */

.otp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  margin-bottom: 28px;
}

.otp-sent-to {
  font-size: 14px;
  color: var(--text);
  font-weight: 400;
}

/* ============ OTP EXPIRY TIMER ============ */

.otp-expiry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(200, 169, 90, 0.06);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  margin-bottom: 20px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.otp-expiry-row.expired {
  background: rgba(224, 107, 92, 0.08);
  border-color: rgba(224, 107, 92, 0.4);
}

.otp-expiry-label {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.otp-expiry-timer {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.otp-expiry-timer.warning {
  color: var(--warning);
}

.otp-expiry-timer.expired {
  color: var(--error);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.otp-input {
  text-align: center;
  font-size: 24px !important;
  letter-spacing: 0.5em;
  font-family: var(--serif);
  padding-left: 0.5em !important;
}

.resend-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
}

.resend-timer {
  color: var(--text-mute);
}

/* ============ TEXT LINK ============ */

.text-link {
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-decoration-color: var(--gold-line);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}

.text-link:hover:not(:disabled) {
  text-decoration-color: var(--gold);
}

.text-link:disabled {
  color: var(--text-faint);
  cursor: not-allowed;
  text-decoration: none;
}

/* ============ PRIMARY BUTTON ============ */

.primary-btn {
  width: 100%;
  padding: 18px 24px;
  background: var(--gold) !important;
  background-color: var(--gold) !important;
  color: var(--bg) !important;
  border: none !important;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.2s ease, transform 0.1s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.primary-btn:hover:not(:disabled) {
  background: #D4B66A !important;
  background-color: #D4B66A !important;
}

.primary-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.primary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.primary-btn.loading .btn-label {
  opacity: 0.6;
}

.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--bg);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.primary-btn.loading .btn-spinner {
  display: inline-block;
}

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

/* ============ ERROR / LEGAL ============ */

.error-msg {
  font-size: 13px;
  color: var(--error);
  margin-top: 8px;
  min-height: 18px;
  font-weight: 400;
}

.legal-line {
  font-size: 12px;
  color: var(--gold);
  opacity: 0.85;
  text-align: center;
  margin-top: 20px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* ============ PHOTO UPLOAD ============ */

.photo-drop {
  position: relative;
  border: 1px dashed var(--gold-line);
  border-radius: 6px;
  background: var(--bg-input);
  min-height: 180px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  overflow: hidden;
}

.photo-drop:hover {
  border-color: var(--gold);
  background: #1A1A1A;
}

/* When photo is uploaded, strip outer frame — show only photo + its border */
.photo-drop.has-photo {
  border: none;
  background: transparent;
  min-height: 0;
  cursor: default;
}

.photo-drop.has-photo:hover {
  background: transparent;
}

.photo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  text-align: center;
}

/* Force hide when [hidden] — overrides display:flex */
.photo-empty[hidden],
.photo-preview-wrap[hidden] {
  display: none !important;
}

.photo-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 14px;
  font-family: var(--serif);
}

.photo-cta {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 4px;
}

.photo-meta {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.photo-preview-wrap {
  position: relative;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

#photo-preview {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--gold);
  display: block;
  max-width: 100%;
  box-shadow: 0 0 16px rgba(200, 169, 90, 0.2);
}

@media (max-width: 360px) {
  #photo-preview {
    width: 220px;
    height: 220px;
  }
}

.photo-remove {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--bg);
  padding: 10px 22px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  -webkit-appearance: none;
  appearance: none;
}

.photo-remove:hover {
  background: #D4B66A;
  border-color: #D4B66A;
}

.photo-remove:active {
  transform: scale(0.97);
}

/* ============ BLOCKED PAGE ============ */

.blocked-content {
  padding-top: 60px;
}

.blocked-mark {
  font-family: var(--serif);
  font-size: 60px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 24px;
}

.blocked-msg {
  font-size: 16px;
  color: var(--text);
  max-width: 320px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.blocked-sub {
  font-size: 14px;
  color: var(--text-mute);
  margin: 0 auto;
  max-width: 320px;
  line-height: 1.6;
}

/* ============ FOOTER ============ */

.footer-mark {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--gold-line);
  font-size: 11px;
  color: #B0B0B0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 500;
}

.footer-mark .dot {
  color: var(--gold);
}

/* ============ RESPONSIVE ============ */

@media (min-width: 600px) {
  .shell {
    padding: 32px 32px 60px;
  }
  .page-title {
    font-size: 42px;
  }
}

@media (max-width: 360px) {
  .page-title {
    font-size: 32px;
  }
  .country-select {
    width: 80px;
    font-size: 14px;
  }
}

/* ============================================
   DAY 12 ADDITIONS — Identity Step 2A fields
   ============================================ */

/* ---- VERIFIED EMAIL FIELD ---- */
.prefix-input.verified-input {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-soft), 0 4px 16px rgba(200, 169, 90, 0.18);
  position: relative;
}

.prefix-input.verified-input input[readonly] {
  color: var(--text);
  cursor: default;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  background: var(--gold);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  flex-shrink: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
}

.verified-badge svg {
  display: block;
}

/* ---- DOB / DATE INPUT ---- */
input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--sans);
  color: var(--text);
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(1) saturate(2) hue-rotate(20deg);
  cursor: pointer;
  opacity: 0.7;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* ---- AGE DISPLAY ---- */
.age-display {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-mute);
  font-family: var(--sans);
}

.age-display #age-value {
  color: var(--gold);
  font-weight: 600;
  font-family: var(--serif);
  font-size: 16px;
  margin: 0 2px;
}

/* ---- GENDER RADIO PILLS ---- */
.radio-row {
  display: flex;
  gap: 10px;
}

.radio-pill {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.radio-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  background: var(--bg-input);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  color: var(--text-mute);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  text-align: center;
}

.radio-pill:hover span {
  border-color: var(--gold);
  color: var(--text);
}

.radio-pill input[type="radio"]:checked + span {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(200, 169, 90, 0.25);
}

/* ---- PHONE INPUT (country code + number) ---- */
.prefix-input.phone-input {
  display: flex;
  align-items: stretch;
}

/* Hide country select visually — we render a custom display */
.prefix-input.phone-input .country-select {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  cursor: pointer;
  z-index: 2;
  font-size: 16px; /* prevent iOS zoom on focus */
  /* Native dropdown still triggers when this is tapped */
}

/* Custom display showing flag + code + country name */
.country-display {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px 0 14px;
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
  min-width: 0;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23C8A95A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.country-display .flag {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.country-display .code {
  font-weight: 600;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.prefix-input.phone-input input[type="tel"] {
  flex: 1;
  padding-left: 14px;
  min-width: 0;
}

/* ---- TEXT INPUT (Name field — no prefix) ---- */
input[type="text"]:not(.prefix-input input),
input[type="email"]:not(.prefix-input input),
input[type="tel"]:not(.prefix-input input),
input[type="date"] {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  padding: 16px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

input[type="text"]:not(.prefix-input input):focus,
input[type="email"]:not(.prefix-input input):focus,
input[type="tel"]:not(.prefix-input input):focus,
input[type="date"]:focus {
  outline: none;
  border-color: var(--gold);
  background: #1A1A1A;
}

input::placeholder {
  color: var(--text-faint);
  font-weight: 400;
}


/* ============================================
   DAY 12 — CROP MODAL (Cropper.js)
   ============================================ */

/* Hide page scroll while modal open */
body.crop-open {
  overflow: hidden;
}

.crop-modal {
  position: fixed;
  inset: 0;
  background: #0A0A0A;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.crop-modal[hidden] {
  display: none !important;
}

.crop-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #0A0A0A;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.crop-modal-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.crop-spacer {
  width: 60px;
  flex-shrink: 0;
}

.crop-btn-text {
  background: transparent;
  border: none;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  cursor: pointer;
  padding: 8px 0;
  width: 60px;
  text-align: left;
}

.crop-modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #0A0A0A;
  overflow: hidden;
}

.crop-canvas-wrap {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--gold-line);
}

.crop-canvas-wrap img {
  display: block;
  max-width: 100%;
}

.crop-hint {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.3px;
  text-align: center;
}

.crop-modal-footer {
  padding: 16px 20px 24px;
  background: #0A0A0A;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.crop-modal-footer .primary-btn {
  width: 100%;
}

/* ---- EDIT button on photo preview ---- */
.photo-edit {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--bg);
  border: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.photo-edit:hover {
  background: var(--gold-bright);
}

/* ============================================
   DAY 12 v2 — LANDING PAGE
   ============================================ */

.shell.landing {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.shell.landing .brand-bar {
  justify-content: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  padding-bottom: 20px;
}

.landing-hero {
  margin-bottom: 36px;
}

.landing-hero .eyebrow {
  margin-bottom: 16px;
}

.landing-hero .page-title {
  font-size: 40px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.landing-hero .page-title em {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}

.hook-line {
  background: var(--gold-soft);
  border-left: 2px solid var(--gold);
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gold-bright);
  font-style: italic;
  border-radius: 0 4px 4px 0;
}

.hook-line strong {
  color: var(--gold-bright);
  font-weight: 600;
  font-style: normal;
}

.landing-hero .page-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mute);
  margin-bottom: 0;
}

/* DETAIL CARDS */
.landing-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  padding: 16px 8px;
  text-align: center;
}

.detail-num {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 4px;
}

.detail-label {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

/* INSTRUCTIONS */
.landing-instructions {
  text-align: center;
  margin-bottom: 32px;
  padding: 0 8px;
}

.landing-instructions p {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.6;
  font-style: italic;
}

/* PRIVACY BLOCK */
.landing-privacy {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 28px;
}

.privacy-eyebrow {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: 14px;
}

.privacy-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.privacy-list li {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.55;
  padding: 6px 0 6px 18px;
  position: relative;
}

.privacy-list li::before {
  content: "◆";
  color: var(--gold);
  position: absolute;
  left: 0;
  top: 6px;
  font-size: 8px;
}

/* HONESTY */
.landing-honesty {
  text-align: center;
  margin: 32px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.landing-honesty p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

.landing-honesty strong {
  color: var(--gold);
  font-weight: 600;
}

.landing-honesty .muted {
  color: var(--text-mute);
  font-size: 14px;
}

/* CTA */
.landing-cta {
  margin: 40px 0 32px;
}

.primary-btn-link {
  display: block;
  width: 100%;
  background: var(--gold);
  color: var(--bg);
  border: none;
  padding: 18px 24px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 20px rgba(200, 169, 90, 0.25);
}

.primary-btn-link:hover {
  background: var(--gold-bright);
}

.primary-btn-link:active {
  transform: translateY(1px);
}

/* DISCLAIMER */
.landing-disclaimer {
  background: rgba(200, 169, 90, 0.04);
  border: 1px solid rgba(200, 169, 90, 0.18);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 32px;
}

.disclaimer-eyebrow {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: 12px;
}

.landing-disclaimer p {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.6;
  margin-bottom: 12px;
}

.landing-disclaimer p:last-child {
  margin-bottom: 0;
}

.helpline-line {
  padding-top: 10px;
  border-top: 1px solid rgba(200, 169, 90, 0.15);
}

.helpline-line strong {
  color: var(--gold);
  font-weight: 600;
}

.helpline-line .dot {
  color: var(--gold);
  margin: 0 8px;
}

/* ============================================
   DAY 12 v2 — LABEL GLOW (match verify clarity)
   ============================================ */

/* Field labels — currently dim, make them clearly readable */
.field-label {
  color: var(--gold) !important;
  letter-spacing: 0.18em !important;
  font-weight: 500 !important;
  text-shadow: 0 0 12px rgba(200, 169, 90, 0.3);
  opacity: 1 !important;
}

/* Field hints under labels */
.field-hint {
  color: var(--text-mute) !important;
  opacity: 1 !important;
}

/* Footer mark */
.footer-mark {
  color: var(--gold) !important;
  opacity: 0.85;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.footer-mark .dot {
  color: var(--gold);
  margin: 0 8px;
}

/* Legal line below buttons */
.legal-line {
  color: var(--gold) !important;
  opacity: 0.75;
  font-size: 13px !important;
  letter-spacing: 0.04em;
  text-align: center;
  margin-top: 14px;
}

/* Eyebrow text */
.eyebrow {
  color: var(--gold) !important;
  opacity: 1 !important;
  text-shadow: 0 0 10px rgba(200, 169, 90, 0.2);
}

/* Page sub */
.page-sub {
  color: var(--text-mute) !important;
  opacity: 1 !important;
}

/* ============================================
   DAY 12 v2 — LOGOS BIGGER (fill prefix square)
   ============================================ */

/* Make all prefix logos bigger - fill the square container */
.prefix-input .prefix-logo {
  padding: 0 !important;
  width: 56px;
  min-width: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid var(--border);
}

.prefix-input .prefix-logo svg {
  width: 28px !important;
  height: 28px !important;
  display: block;
}

/* For the email envelope SVG specifically (uses 22x22 viewBox) */
.prefix-input.verified-input .prefix-logo svg {
  width: 26px !important;
  height: 26px !important;
}

/* For the WhatsApp SVG */
.prefix-input.phone-input .prefix-logo svg {
  width: 30px !important;
  height: 30px !important;
}

/* Ensure logos pop out — no internal padding eating them */


/* ============================================
   DAY 12 v2 — COUNTRY PICKER MODAL
   ============================================ */

/* Country display button (shown in phone field) */
.country-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px 0 14px;
  background: rgba(0, 0, 0, 0.25);
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
  height: auto;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23C8A95A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.country-display:hover,
.country-display:active {
  background-color: rgba(0, 0, 0, 0.4);
}

.country-display .flag {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.country-display .code {
  font-weight: 600;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  color: var(--gold);
}

.country-data {
  display: none;
}

/* Picker modal — fullscreen */
body.picker-open {
  overflow: hidden;
}

.country-picker {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  animation: pickerFadeIn 0.2s ease;
}

.country-picker[hidden] {
  display: none !important;
}

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

.country-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 16px 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg);
}

.country-picker-close {
  background: transparent;
  border: none;
  color: var(--gold);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.country-picker-close:hover,
.country-picker-close:active {
  background: var(--gold-soft);
}

.country-picker-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.country-picker-spacer {
  width: 38px;
  flex-shrink: 0;
}

/* Search box */
.country-picker-search {
  position: relative;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.country-picker-search .search-icon {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  opacity: 0.7;
  pointer-events: none;
}

#country-picker-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  padding: 14px 14px 14px 44px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;  /* prevent iOS zoom on focus */
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

#country-picker-input:focus {
  border-color: var(--gold);
  background: #1A1A1A;
}

#country-picker-input::placeholder {
  color: var(--text-faint);
}

/* List */
.country-picker-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 24px;
}

.country-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.country-row:hover,
.country-row:active {
  background: var(--gold-soft);
}

.country-row.is-selected {
  background: var(--gold-soft);
}

.country-row .row-flag {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.country-row .row-name {
  flex: 1;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.country-row .row-code {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.country-row.is-selected .row-code::after {
  content: "✓";
  margin-left: 8px;
  color: var(--gold-bright);
}

/* Empty state */
.country-picker-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.6;
}

.country-picker-empty .muted {
  color: var(--text-faint);
  font-size: 13px;
}


/* ============================================
   DAY 12 v3 — APP-ICON STYLE LOGOS
   ============================================ */

/* Override v2 sizes — make logos full app-icon size */
.prefix-input .prefix-logo {
  padding: 0 !important;
  width: 64px !important;
  min-width: 64px !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border-right: 1px solid var(--border);
}

/* All prefix SVG logos at app-icon size */
.prefix-input .prefix-logo svg {
  width: 44px !important;
  height: 44px !important;
  display: block;
  border-radius: 10px;  /* App icons have rounded corners */
}

/* Email envelope — slightly smaller as it's an outline icon, not filled square */
.prefix-input.verified-input .prefix-logo svg {
  width: 38px !important;
  height: 38px !important;
}

/* WhatsApp — full square fill */
.prefix-input.phone-input .prefix-logo svg {
  width: 44px !important;
  height: 44px !important;
}

/* Phone field height adjustment to accommodate bigger logo */
.prefix-input {
  min-height: 64px;
}

.prefix-input input {
  font-size: 16px;
}

/* ============================================
   DAY 12 v3 — HELPLINE NUMBERS GOLD + READABLE
   ============================================ */

/* Override default link color in landing-disclaimer */
.landing-disclaimer a,
.helpline-line a {
  color: var(--gold-bright) !important;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  font-weight: 600;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.landing-disclaimer a:hover,
.helpline-line a:hover {
  color: #E5C77A !important;
  border-bottom-color: #E5C77A;
}

.helpline-line {
  color: var(--text) !important;  /* brighter than default mute */
  opacity: 1 !important;
}

.helpline-line strong {
  color: var(--gold-bright);
  font-weight: 600;
}

/* ============================================
   DAY 12 v3 — DIM LIGHT READABILITY
   ============================================ */

/* Body text — push closer to white for dim light visibility */
.landing-disclaimer p {
  color: #C4C4C4 !important;  /* was --text-mute (too dim) */
  line-height: 1.65 !important;
  font-size: 13.5px !important;
}

.privacy-list li {
  color: #D5D5D5 !important;  /* brighter for night reading */
  line-height: 1.6 !important;
}

.landing-instructions p {
  color: #C4C4C4 !important;
}

/* Eyebrow labels — keep gold but increase glow */
.privacy-eyebrow,
.disclaimer-eyebrow {
  color: var(--gold-bright) !important;
  text-shadow: 0 0 14px rgba(200, 169, 90, 0.35);
}

/* ============================================
   DAY 12 v3 — HONESTY SECTION (Founder Voice)
   ============================================ */

.landing-honesty {
  text-align: center;
  margin: 40px 0;
  padding: 28px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg,
    rgba(200, 169, 90, 0.02) 0%,
    rgba(200, 169, 90, 0.06) 50%,
    rgba(200, 169, 90, 0.02) 100%);
}

.honesty-title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.25;
  color: var(--gold-bright);
  font-weight: 500;
  font-style: italic;
  margin: 0 0 20px 0;
  letter-spacing: -0.01em;
}

.honesty-line-1 {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: #DCDCDC;
  margin: 0 0 18px 0;
  font-weight: 400;
}

.honesty-line-2 {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: #DCDCDC;
  margin: 0;
  font-weight: 400;
}

.honesty-line-2 strong {
  color: var(--gold-bright);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.01em;
}


/* ============================================
   DAY 12 v4 — APP-ICON LOGOS (FINAL OVERRIDE)
   Reference: iOS App Library icon size & style
   ============================================ */

/* Container — give logo room to breathe like Apple does */
.prefix-input .prefix-logo {
  padding: 6px 10px !important;
  width: 64px !important;
  min-width: 64px !important;
  height: auto !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border-right: 1px solid var(--border);
}

/* All logo SVGs at App Library size — 44px (Apple uses ~60pt, 44px is ideal for inline form) */
.prefix-input .prefix-logo svg {
  width: 44px !important;
  height: 44px !important;
  display: block;
}

/* Override Email — no auto smaller, full 44px Gmail logo */
.prefix-input.verified-input .prefix-logo svg {
  width: 44px !important;
  height: 44px !important;
}

.prefix-input.phone-input .prefix-logo svg {
  width: 44px !important;
  height: 44px !important;
}

/* Container minimum height for proper proportion */
.prefix-input {
  min-height: 60px;
}



/* ============================================
   DAY 14 v1 — DARSHAN FRAME (Premium Sacred Box)
   ============================================ */

.landing-darshan {
  margin: 56px 0;
  display: flex;
  justify-content: center;
}

.darshan-frame {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 56px 36px;
  background: linear-gradient(
    180deg,
    rgba(200, 169, 90, 0.04) 0%,
    rgba(200, 169, 90, 0.02) 50%,
    rgba(200, 169, 90, 0.04) 100%
  );
  border: 1px solid rgba(200, 169, 90, 0.35);
  border-radius: 4px;
  text-align: center;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(200, 169, 90, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(200, 169, 90, 0.15);
}

.darshan-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 169, 90, 0.08) 50%,
    transparent 100%
  );
  animation: darshanShimmer 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes darshanShimmer {
  0% { left: -100%; }
  60% { left: 200%; }
  100% { left: 200%; }
}

.darshan-ornament {
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin: 0 0 28px 0;
  font-family: var(--serif);
}

.darshan-frame .darshan-ornament:last-child {
  margin: 28px 0 0 0;
}

.darshan-title {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

.darshan-gold {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}

.darshan-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: #A8895A;
  margin: 0 0 32px 0;
  letter-spacing: 0.01em;
}

.darshan-divider {
  width: 32px;
  height: 1px;
  background: rgba(200, 169, 90, 0.4);
  margin: 0 auto 32px auto;
}

.darshan-instruction {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: #C8C8C8;
  margin: 0;
  letter-spacing: 0.005em;
}

.darshan-instruction em {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

@media (max-width: 480px) {
  .landing-darshan {
    margin: 40px 0;
  }
  .darshan-frame {
    padding: 44px 24px;
  }
  .darshan-title {
    font-size: 26px;
  }
  .darshan-sub {
    font-size: 16px;
    margin-bottom: 26px;
  }
  .darshan-instruction {
    font-size: 14px;
  }
  .darshan-ornament {
    font-size: 16px;
    margin: 0 0 22px 0;
  }
  .darshan-frame .darshan-ornament:last-child {
    margin: 22px 0 0 0;
  }
}