/* ═══════════════════════════════════════════
   Memoroam — Auth Screen Styles
   Create Account (dark), Sign In (light),
   Email Signup, Email Verification.
   ═══════════════════════════════════════════ */

/* ════════════════════════════════════════════
   SCREEN 5 — Create Account
   ════════════════════════════════════════════ */

#authCreateAccount {
  background: var(--bg);
  justify-content: center;
}

.ca-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}

.ca-heading {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.2;
}

.ca-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0 40px;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
}

.ca-providers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}

.ca-provider-btn {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background .15s, opacity .15s;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
}
.ca-provider-btn:active {
  background: rgba(0,0,0,.04);
}
.ca-provider-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.ca-provider-btn * {
  pointer-events: none;
}
.ca-provider-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.ca-login-link {
  margin-top: 36px;
  font-size: 13px;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
}
.ca-login-link a {
  color: var(--text);
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
}

/* ════════════════════════════════════════════
   SCREEN 6 — Sign In (light theme)
   ════════════════════════════════════════════ */

#authSignIn,
#authEmailSignup,
#authPersonalInfo {
  background: var(--bg);
}

/* Select & date inputs matching .si-input */
.si-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23999' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.si-select:invalid,
.si-select option[value=""] {
  color: rgba(0,0,0,.25);
}
.si-select option {
  color: var(--text);
}
/* Searchable dropdown wrapper */
.si-search-wrap {
  position: relative;
}
.si-search-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 180px;
  overflow-y: auto;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  -webkit-overflow-scrolling: touch;
}
.si-search-list.open {
  display: block;
}
.si-search-item {
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background .12s;
}
.si-search-item:first-child { border-radius: 12px 12px 0 0; }
.si-search-item:last-child  { border-radius: 0 0 12px 12px; }
.si-search-item:active,
.si-search-item:hover {
  background: rgba(0,0,0,.04);
}
.si-search-item mark {
  background: none;
  color: var(--text);
  font-weight: 700;
}

input[type="date"].si-input {
  cursor: pointer;
}
input[type="date"].si-input:invalid,
input[type="date"].si-input::-webkit-datetime-edit-text,
input[type="date"].si-input::-webkit-datetime-edit-month-field,
input[type="date"].si-input::-webkit-datetime-edit-day-field,
input[type="date"].si-input::-webkit-datetime-edit-year-field {
  color: var(--text);
}

.si-content {
  padding: 20px 28px 48px;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.si-back-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 12px 0 28px;
  color: var(--muted);
  border: none;
  transition: background .15s;
}
.si-back-btn:active { background: rgba(0,0,0,.1); }

.si-heading {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.si-subheading {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}
.si-subheading a {
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.si-form {
  display: flex;
  flex-direction: column;
}

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

.si-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
  font-family: 'DM Sans', sans-serif;
}

.si-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--card);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.si-input:focus {
  border-color: rgba(0,0,0,.25);
}
.si-input::placeholder {
  color: rgba(0,0,0,.25);
}

.si-password-wrap {
  position: relative;
}
.si-password-wrap .si-input {
  padding-right: 48px;
}

.si-eye-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.si-eye-toggle .eye-open { display: none; }

.si-forgot {
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  display: block;
  margin-bottom: 24px;
  background: none;
  border: none;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  text-align: left;
}

.si-error {
  background: rgba(201,107,114,.1);
  border: 1px solid rgba(201,107,114,.2);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13px;
  color: #C96B72;
  margin-bottom: 16px;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.4;
}

.si-submit {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  border: none;
  background: var(--text);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: opacity .15s;
}
.si-submit:active { opacity: .85; }
.si-submit:disabled { opacity: .5; cursor: not-allowed; }
.si-submit.loading { color: transparent; }
.si-submit.loading::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: authSpin .6s linear infinite;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
}

/* ── Divider ── */
.si-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}
.si-divider::before,
.si-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.si-divider span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .5px;
  font-family: 'DM Sans', sans-serif;
}

/* ── OAuth row ── */
.si-oauth-buttons {
  display: flex;
  gap: 10px;
}
.si-oauth-btn {
  flex: 1;
  height: 48px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--card);
  position: relative;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s;
  -webkit-user-select: none;
  user-select: none;
}
.si-oauth-btn:active {
  background: rgba(0,0,0,.04);
}
.si-oauth-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.si-oauth-btn.loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,.15);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: authSpin .6s linear infinite;
  right: 12px; top: 50%;
  transform: translateY(-50%);
}
.si-oauth-btn * {
  pointer-events: none;
}
.si-oauth-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Legal text ── */
.si-legal {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 28px;
  line-height: 1.6;
  font-family: 'DM Sans', sans-serif;
}

.si-toggle-link {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
  font-family: 'DM Sans', sans-serif;
}
.si-toggle-link a {
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ════════════════════════════════════════════
   SCREEN 7b — Personal Info Wizard
   ════════════════════════════════════════════ */

.pi-wizard {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0 28px;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

/* Step progress indicator */
.pi-progress-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 24px;
  padding: 0 8px;
  height: 28px;
}
.pi-progress-line {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 8px;
  right: 8px;
  height: 2px;
  background: rgba(0,0,0,.1);
  transform: translateY(-50%);
  border-radius: 2px;
}
.pi-progress-line-fill {
  height: 100%;
  width: 0%;
  background: var(--text);
  border-radius: 2px;
  transition: width 1s cubic-bezier(.32,.72,0,1);
}
.pi-step-dot {
  position: relative;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d4d0cb;
  transition: background .5s ease, transform .5s ease;
}
.pi-step-dot.active {
  background: var(--text);
  transform: scale(1.1);
}
.pi-step-dot.completed {
  background: var(--text);
}
.pi-plane-icon {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 8px;
  transform: translate(-50%, -50%) rotate(90deg);
  color: #fff;
  transition: left 1s cubic-bezier(.32,.72,0,1), color .15s ease;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.15));
  line-height: 0;
}
.pi-plane-icon.traveling {
  color: var(--text);
  transition: left 1s cubic-bezier(.32,.72,0,1), color .1s ease;
}

.pi-back-btn {
  margin: 16px 0 0;
}
.pi-wizard .si-error {
  margin-top: 12px;
}

/* Step container */
.pi-steps-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin: 0 -28px;
  padding: 0 28px;
}
/* Allow scrolling when passport step is active */
.pi-steps-container.pp-scrollable {
  align-items: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
/* City dropdown opens upward to avoid button overlap */
.pi-step[data-step="2"] .pi-field-group:last-child .si-search-list {
  top: auto !important;
  bottom: calc(100% + 4px) !important;
}

.pi-step {
  position: absolute;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateX(60px);
  pointer-events: none;
  transition: opacity .8s ease, transform .8s cubic-bezier(.32,.72,0,1);
}
.pi-step.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
  position: relative;
}
.pi-step.slide-out-left {
  opacity: 0;
  transform: translateX(-60px);
}

.pi-step-heading {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 8px;
}

.pi-step-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 36px;
}

.pi-step-field {
  width: 100%;
}

.pi-input-lg {
  font-size: 17px !important;
  padding: 16px 18px !important;
  border-radius: 16px !important;
  text-align: center;
}

/* Mini globe */
.pi-globe-wrap {
  width: 220px;
  height: 220px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.pi-globe-svg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pi-globe-svg svg {
  display: block;
}

/* Country + City group */
.pi-field-group {
  margin-bottom: 16px;
  text-align: left;
}
.pi-field-group:last-child {
  margin-bottom: 0;
}
.pi-field-group .pi-input-lg {
  text-align: left;
}

/* Gender pill buttons */
.pi-gender-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.pi-gender-btn {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: var(--card);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
}
.pi-gender-btn:active {
  transform: scale(.98);
}
.pi-gender-btn.selected {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

/* Footer */
.pi-wizard-footer {
  padding: 0 0 48px;
}
.pi-continue-btn {
  width: 100%;
}

[data-theme="dark"] .pi-progress-line {
  background: rgba(255,255,255,.12);
}
[data-theme="dark"] .pi-step-dot:not(.active):not(.completed) {
  background: #444;
}
[data-theme="dark"] .pi-gender-btn:not(.selected) {
  color: var(--text);
}

/* ════════════════════════════════════════════
   SCREEN 6c — Email Verification
   ════════════════════════════════════════════ */

#authVerifyEmail {
  background: var(--bg);
  justify-content: center;
  align-items: center;
}

.verify-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
  text-align: center;
  gap: 12px;
}

.verify-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(74,140,138,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.verify-heading {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.verify-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 280px;
}

.verify-resend {
  margin-top: 20px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 12px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: opacity .15s;
}
.verify-resend:active { opacity: .75; }

.verify-back {
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  margin-top: 8px;
}

/* ════════════════════════════════════════════
   Wizard Step 5 — Digital Passport Card
   ════════════════════════════════════════════ */

.pi-step[data-step="4"],
.pi-step[data-step="4"] *,
.pi-step[data-step="4"] *::before,
.pi-step[data-step="4"] *::after {
  box-sizing: border-box !important;
}

.pi-step[data-step="4"] {
  display: none !important;
  position: relative !important;
  text-align: left !important;
  padding: 0 6px 8px !important;
  width: 100% !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: all !important;
  transition: none !important;
}
.pi-step[data-step="4"].active {
  display: block !important;
}

.pp-top-bar {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  margin: 4px 0 14px 0 !important;
  padding: 0 !important;
}
.pp-app-logo { display: none !important; }
.pp-top-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.pp-heading {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  letter-spacing: -0.3px !important;
  color: #1a1611 !important;
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
  text-align: center !important;
  position: static !important;
  transform: none !important;
  opacity: 1 !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  line-height: 1.2 !important;
}
.pp-subheading {
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: #9a8b6f !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  position: static !important;
  transform: none !important;
  opacity: 1 !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  line-height: 1.4 !important;
}

.pp-card {
  all: initial !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  width: 100% !important;
  background-color: #1a1611 !important;
  border: none !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 32px rgba(26,22,17,.22), 0 2px 8px rgba(26,22,17,.12) !important;
  box-sizing: border-box !important;
  font-family: 'Playfair Display', Georgia, serif !important;
}

.pp-card-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  border-bottom: 1px solid #2c2419 !important;
  background-color: #1a1611 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.pp-header-logo {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain !important;
  margin: 0 10px 0 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  display: block !important;
}
.pp-card-header-text {
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
}
.pp-card-title {
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #c9a84c !important;
  letter-spacing: 2.5px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}
.pp-card-label {
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 8.5px !important;
  color: #a08535 !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
  margin: 1px 0 0 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

.pp-card-body {
  display: flex !important;
  flex-direction: column !important;
  background-color: #f5f0e8 !important;
  padding: 14px 16px !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.pp-photo-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 16px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.pp-photo-side-info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  padding: 8px 0 0 0 !important;
  margin: 0 !important;
}

.pp-info-block {
  display: flex !important;
  flex-direction: column !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
}
.pp-info-block--last {
  margin-bottom: 0 !important;
}

.pp-fields {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.pp-field-full {
  margin: 0 !important;
}
.pp-field-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.pp-field-row > .pp-info-block {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pp-passport-no {
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  color: #1a1611 !important;
}

.pp-info-label {
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 1.8px !important;
  text-transform: uppercase !important;
  color: #9a8b6f !important;
  margin: 0 0 3px 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  display: block !important;
  position: static !important;
}
.pp-info-value {
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1a1611 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  position: static !important;
}
.pp-info-value.pp-name {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px !important;
}

.pp-photo {
  position: relative !important;
  width: 80px !important;
  min-width: 80px !important;
  height: 100px !important;
  border-radius: 6px !important;
  border: 1.5px dashed #c5bda8 !important;
  background-color: #e8e2d6 !important;
  cursor: pointer !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
.pp-photo-placeholder {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -60%) !important;
  color: #1a1611 !important;
  opacity: .35 !important;
}
.pp-photo-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: none !important;
}
.pp-photo-img[style*="display: block"],
.pp-photo-img[style*="display:block"] {
  display: block !important;
}
.pp-photo-hint {
  position: absolute !important;
  bottom: 8px !important;
  left: 0 !important;
  right: 0 !important;
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 9.5px !important;
  color: #9a8b6f !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  line-height: 1.2 !important;
}

.pp-divider {
  height: 1px !important;
  margin: 12px 0 10px 0 !important;
  padding: 0 !important;
  background-image: repeating-linear-gradient(90deg,
    #c5bda8 0, #c5bda8 4px, transparent 4px, transparent 8px) !important;
  background-color: transparent !important;
}

.pp-signature-section {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.pp-sig-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
}
.pp-sig-clear {
  all: initial !important;
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 12px !important;
  color: #9a8b6f !important;
  cursor: pointer !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  box-sizing: border-box !important;
}
.pp-sig-wrap {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  background-color: #fff !important;
  border-radius: 8px !important;
  border: 1px solid #e0d9cc !important;
  height: 64px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
.pp-signature-canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  cursor: crosshair !important;
  touch-action: none !important;
  background-color: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.pp-sig-line {
  position: absolute !important;
  bottom: 14px !important;
  left: 16px !important;
  right: 16px !important;
  height: 1px !important;
  background-color: #e0d9cc !important;
  pointer-events: none !important;
}

.pp-mrz {
  display: block !important;
  background-color: #2c2419 !important;
  padding: 6px 16px !important;
  margin: 0 !important;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace !important;
  font-size: 7px !important;
  letter-spacing: 1.5px !important;
  color: #a08535 !important;
  opacity: .6 !important;
  line-height: 1.6 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  width: 100% !important;
  box-sizing: border-box !important;
  -webkit-user-select: none;
  user-select: none;
}

/* ── Photo Crop Modal ── */
.pp-crop-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pp-crop-modal {
  background: var(--card, #fff);
  border-radius: 20px;
  width: 100%;
  max-width: 340px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}
.pp-crop-header {
  padding: 16px 20px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #1a1611);
  text-align: center;
}
.pp-crop-area {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background: #000;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.pp-crop-area:active { cursor: grabbing; }
.pp-crop-area img {
  position: absolute;
  transform-origin: 0 0;
  display: block;
  max-width: none;
  pointer-events: none;
}
.pp-crop-frame {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255,255,255,.5);
  pointer-events: none;
  box-shadow: inset 0 0 0 2000px rgba(0,0,0,.15);
}
.pp-crop-hint {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,.7);
  pointer-events: none;
}
.pp-crop-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
}
.pp-crop-actions button {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s;
}
.pp-crop-actions button:active { opacity: .8; }
.pp-crop-cancel {
  background: var(--border, #e5e0d8);
  color: var(--text, #1a1611);
}
.pp-crop-confirm {
  background: var(--text, #1a1611);
  color: #fff;
}

[data-theme="dark"] .pp-card {
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.3) !important;
}
[data-theme="dark"] .pp-heading { color: var(--text) !important; }
[data-theme="dark"] .pp-subheading { color: var(--muted) !important; }
