/* Customer auth — tight premium density (Stripe / Linear-like) */
.auth-shell {
  max-width: 440px;
  margin: 14px auto 30px;
}
.auth-shell--wide {
  max-width: 600px;
}
.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.35rem, 2.3vw, 1.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 4px;
}
.auth-card .auth-lead {
  color: var(--muted);
  font-size: 12.5px;
  margin: 0 0 12px;
  line-height: 1.45;
  max-width: 52ch;
}
.auth-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  align-items: start;
}
.auth-form > label,
.auth-form > .auth-span-2,
.auth-form > .auth-actions,
.auth-form > .auth-hint-block,
.auth-form > .auth-error {
  grid-column: 1 / -1;
}
.auth-form label.auth-half {
  grid-column: span 1;
}
@media (max-width: 560px) {
  .auth-form { grid-template-columns: 1fr; }
  .auth-form label.auth-half { grid-column: 1 / -1; }
}
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--dim);
  min-width: 0;
}
.auth-form input,
.auth-form select,
.auth-form textarea {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #f1f5f9;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  min-height: 34px;
  height: 34px;
  line-height: 1.3;
  box-sizing: border-box;
}
.auth-form option {
  color: #e2e8f0;
  background: #0f172a;
}
.auth-form textarea {
  resize: vertical;
  min-height: 64px;
  height: auto;
  padding-top: 8px;
}
/* Contact message — one step larger writing area */
.contact-form-card .auth-form textarea,
#contact-form textarea {
  min-height: 140px;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 10px 12px;
}
.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.14);
}
.auth-form .auth-row { display: contents; }
.auth-hint {
  font-size: 10.5px;
  color: var(--dim);
  font-weight: 500;
  line-height: 1.35;
}
.auth-hint-block {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}
.auth-hint-block a { color: #a5b4fc; }
.auth-error {
  display: none;
  padding: 7px 9px;
  border-radius: 7px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  font-size: 12px;
  margin: 0;
}
.auth-error.is-visible { display: block; }
.auth-success {
  display: none;
  padding: 7px 9px;
  border-radius: 7px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
  font-size: 12px;
  margin: 0;
}
.auth-success.is-visible { display: block; }
.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}
.auth-actions .btn {
  width: 100%;
  padding: 8px 12px;
  min-height: 34px;
  font-size: 12.5px;
}
.auth-foot {
  margin-top: 10px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
}
.auth-foot a { color: #a5b4fc; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }
.auth-plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: #c7d2fe;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}
.account-grid { display: grid; gap: 8px; margin-top: 4px; }
.account-block {
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.account-block h2 {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--dim);
  margin: 0 0 6px;
}
.account-block dl { display: grid; gap: 4px; margin: 0; }
.account-block dt { font-size: 10px; color: var(--dim); }
.account-block dd { font-size: 12.5px; color: var(--text); margin: 0 0 2px; }
.account-soon { font-size: 12px; color: var(--muted); line-height: 1.45; }
.account-soon strong { color: var(--text); }

/* Country + phone share one row */
.auth-contact-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 6px 8px;
  align-items: start;
}
.auth-contact-row > label {
  grid-column: auto;
  min-width: 0;
}
.auth-address-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.85fr;
  gap: 6px 8px;
  align-items: start;
}
.auth-address-row > label {
  grid-column: auto;
  min-width: 0;
}
@media (max-width: 560px) {
  .auth-contact-row,
  .auth-address-row { grid-template-columns: 1fr; }
}

/* Phone: dial + number, same height as country */
.phx-phone-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 6px;
  align-items: stretch;
}
@media (max-width: 560px) {
  .phx-phone-row { grid-template-columns: 96px minmax(0, 1fr); }
}

/* Custom flag combo — same 30px control height */
.phx-select-flag {
  position: relative;
  display: block;
  background: transparent;
  border: none;
  padding: 0;
  min-height: 0;
}
.phx-combo__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.phx-combo { position: relative; width: 100%; }
.phx-combo__btn {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.72);
  color: #f1f5f9;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
}
.phx-combo__btn:hover {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.88);
}
.phx-combo.is-open .phx-combo__btn {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.14);
}
.phx-combo__flag {
  width: 16px;
  height: 11px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
.phx-combo__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phx-combo__chev {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  opacity: 0.5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .15s;
}
.phx-combo.is-open .phx-combo__chev { transform: rotate(180deg); }
.phx-combo__panel {
  position: absolute;
  z-index: 90;
  left: 0;
  right: 0;
  top: calc(100% + 3px);
  min-width: 220px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #0b1224;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.phx-combo--dial .phx-combo__panel {
  left: 0;
  right: auto;
  width: min(280px, 70vw);
}
.phx-combo__search {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0;
  background: rgba(2, 6, 23, 0.55);
  color: #f1f5f9;
  font-size: 12px;
  padding: 7px 10px;
  outline: none;
  min-height: 32px;
  height: 32px;
}
.phx-combo__search::placeholder { color: #64748b; }
.phx-combo__list {
  max-height: 200px;
  overflow-y: auto;
  padding: 3px;
}
.phx-combo__option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}
.phx-combo__option:hover,
.phx-combo__option:focus {
  background: rgba(99, 102, 241, 0.16);
  outline: none;
}
.phx-combo__option.is-selected {
  background: rgba(99, 102, 241, 0.22);
  color: #e0e7ff;
}
.phx-combo__option-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.phx-combo__option-text strong {
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.phx-combo__option-text em {
  font-style: normal;
  font-size: 10.5px;
  color: #94a3b8;
}
.phx-combo--dial .phx-combo__btn { padding-right: 6px; font-variant-numeric: tabular-nums; }

/* Payment cards */
.payment-marks {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.payment-cards-img {
  display: block;
  width: min(100%, 240px);
  height: auto;
  object-fit: contain;
}
.stripe-pci-note {
  text-align: center;
  font-size: 11px;
  color: var(--dim);
  margin-top: 8px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}
