/* Vortex Stay — public site (registration, status, verification). */

:root {
  --teal: #00a8b5;
  --teal-dark: #007c86;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f3f4f6;
  --danger: #b91c1c;
  --warn: #b45309;
  --ok: #15803d;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.brand-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 4px 6px;
}

.brand-bar img { width: 34px; height: 34px; object-fit: contain; }
.brand-bar .brand-name { font-weight: 800; letter-spacing: 1px; font-size: 15px; line-height: 1; }
.brand-bar .brand-name span { display: block; font-weight: 600; font-size: 10px; letter-spacing: 3px; color: var(--muted); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  padding: 20px;
  margin-bottom: 16px;
}

h1.page-title { font-size: 19px; font-weight: 800; margin: 4px 0 4px; }
p.page-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; line-height: 1.5; }

.progress-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.progress-steps .step {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
}
.progress-steps .step.done, .progress-steps .step.active { background: var(--teal); }

label.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #374151;
  margin: 14px 0 6px;
}
label.field-label:first-child { margin-top: 0; }

input[type=text], input[type=tel], select, input[type=search] {
  width: 100%;
  padding: 12px 13px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14.5px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
input[type=text]:focus, input[type=tel]:focus, select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,168,181,0.15);
}
input.field-error, select.field-error { border-color: var(--danger); }
.error-text { color: var(--danger); font-size: 12px; margin-top: 5px; display: none; }
.error-text.show { display: block; }

select:disabled { background: #f9fafb; color: #9ca3af; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 10px;
  border: none;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s ease;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--teal-dark); }
.btn-secondary { background: #fff; color: var(--ink); border: 1.5px solid var(--border); }
.btn-text { background: transparent; color: var(--teal); font-weight: 700; padding: 8px; width: auto; }
.btn-row { display: flex; gap: 10px; margin-top: 18px; }
.btn-row .btn { margin-top: 0; }

.helper-text { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Photo upload */
.photo-upload {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  background: #fafafa;
}
.photo-upload.has-image { border-style: solid; padding: 12px; }
.photo-preview-wrap {
  width: 130px;
  height: 162px;
  margin: 0 auto 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--teal);
  background: #eef2f3;
  position: relative;
}
.photo-preview-wrap canvas, .photo-preview-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crop-controls { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.crop-controls input[type=range] { flex: 1; }
.upload-icon { font-size: 30px; margin-bottom: 6px; }

/* OTP */
.otp-boxes { display: flex; gap: 8px; justify-content: center; margin: 6px 0 4px; }
.otp-boxes input {
  width: 42px; height: 52px; text-align: center; font-size: 22px; font-weight: 800;
  border: 1.5px solid var(--border); border-radius: 10px;
}
.otp-boxes input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(0,168,181,0.15); }
.otp-meta { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.otp-meta .countdown { font-weight: 700; color: var(--ink); }
.otp-phone { text-align: center; font-weight: 700; margin-bottom: 2px; }

/* Review */
.review-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.review-row:last-child { border-bottom: none; }
.review-row .k { color: var(--muted); }
.review-row .v { font-weight: 700; text-align: right; }
.review-photo { width: 84px; height: 104px; border-radius: 6px; border: 2px solid var(--teal); object-fit: cover; float: right; margin-left: 10px; }

/* Status badges */
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
.status-pill.pending   { background: #f3f4f6; color: #4b5563; }
.status-pill.approved  { background: #dcfce7; color: var(--ok); }
.status-pill.rejected  { background: #fee2e2; color: var(--danger); }
.status-pill.suspended { background: #fef3c7; color: var(--warn); }
.status-pill.blocked   { background: #fee2e2; color: var(--danger); }
.status-pill.archived  { background: #f3f4f6; color: #4b5563; }

.alert { padding: 12px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 14px; line-height: 1.5; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-info { background: #e0f2fe; color: #075985; }
.alert-success { background: #dcfce7; color: #166534; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn-secondary .spinner, .btn-text .spinner { border-color: rgba(0,168,181,.25); border-top-color: var(--teal); }
@keyframes spin { to { transform: rotate(360deg); } }

.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.hidden { display: none !important; }

.privacy-note { font-size: 11.5px; color: var(--muted); line-height: 1.5; background: #f9fafb; border-radius: 10px; padding: 10px 12px; margin-top: 14px; }
.consent-row { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 12.5px; color: #374151; }
.consent-row input { margin-top: 3px; }

.id-preview-wrap { display: flex; justify-content: center; margin: 8px 0 18px; overflow-x: auto; }

footer.site-footer { text-align: center; color: var(--muted); font-size: 11.5px; padding: 10px 0 30px; }

@media (min-width: 560px) {
  .container { max-width: 520px; padding-top: 32px; }
}
