:root {
  --portal-border: rgba(212,175,55,0.22);
  --portal-surface: rgba(10, 18, 28, 0.82);
  --portal-card: rgba(255,255,255,0.04);
  --portal-danger: #ff7373;
  --portal-ok: #8be7b6;
}

.hero--booking {
  min-height: 100vh;
  padding-bottom: 60px;
  background:
    radial-gradient(circle at top right, rgba(212,175,55,0.16), transparent 38%),
    radial-gradient(circle at top left, rgba(54,83,122,0.28), transparent 34%),
    linear-gradient(180deg, #071019 0%, #0c1723 100%);
}

.hero--manager {
  background:
    radial-gradient(circle at top right, rgba(212,175,55,0.14), transparent 36%),
    radial-gradient(circle at top left, rgba(121,71,54,0.18), transparent 32%),
    linear-gradient(180deg, #0b1016 0%, #131d29 100%);
}

.portal-shell {
  padding-top: 120px;
  position: relative;
  z-index: 2;
}

.portal-card {
  padding: 28px;
  border: 1px solid var(--portal-border);
  position: relative;
  z-index: 2;
}

.portal-root {
  display: grid;
  gap: 24px;
}

.portal-heading {
  display: grid;
  gap: 10px;
}

.portal-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 44px);
  color: #fff;
  margin: 0;
}

.portal-subtitle {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.portal-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(212,175,55,0.14);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.portal-section {
  background: var(--portal-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 22px;
}

.portal-section h2,
.portal-section h3 {
  margin: 0 0 14px;
  color: #fff;
}

.portal-section h2 {
  font-size: 22px;
}

.portal-section h3 {
  font-size: 18px;
}

.portal-status-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 18px;
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 20%, rgba(212,175,55,0.18), transparent 32%),
    linear-gradient(135deg, rgba(14, 29, 44, 0.96), rgba(7, 14, 22, 0.92));
  box-shadow: 0 18px 42px rgba(0,0,0,0.22);
}

.portal-status-panel h2 {
  margin: 6px 0 10px;
  color: #fff;
  font-size: 24px;
}

.portal-status-panel p {
  margin: 0;
  color: #f3e4aa;
  line-height: 1.6;
}

.portal-status-panel__eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-status-panel__meta {
  display: grid;
  align-content: center;
  gap: 10px;
}

.portal-status-panel__meta span {
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: #fff;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

.portal-kv {
  display: grid;
  gap: 10px;
}

.portal-kv__row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 12px;
  color: #fff;
}

.portal-kv__row span:first-child {
  color: var(--muted);
}

.portal-field,
.portal-textarea,
.portal-select,
.portal-file {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(7, 14, 22, 0.7);
  color: #fff;
  padding: 14px 16px;
  font-size: 15px;
}

.portal-file {
  padding: 10px 12px;
}

.portal-textarea {
  min-height: 110px;
  resize: vertical;
}

.portal-label {
  display: grid;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 14px;
}

.portal-receipt-contact {
  margin: 6px 0 18px;
  padding: 16px;
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 18px;
  background: rgba(212,175,55,0.06);
}

.portal-receipt-contact h3 {
  margin-bottom: 8px;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.portal-actions .btn[disabled],
.portal-actions .btn.is-loading,
.portal-actions a.btn.is-loading,
.portal-actions a.btn[aria-disabled="true"] {
  opacity: 0.72;
  pointer-events: none;
  cursor: wait;
}

.portal-actions .btn.is-loading::after,
.portal-actions a.btn.is-loading::after {
  content: " ...";
}

.portal-field:disabled,
.portal-textarea:disabled,
.portal-select:disabled,
.portal-file:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.portal-note,
.portal-alert,
.portal-success {
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
}

.portal-note {
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.18);
  color: #f3e4aa;
}

.portal-alert {
  background: rgba(178, 43, 43, 0.18);
  border: 1px solid rgba(255,115,115,0.3);
  color: #ffd0d0;
}

.portal-success {
  background: rgba(35, 122, 82, 0.18);
  border: 1px solid rgba(139,231,182,0.26);
  color: var(--portal-ok);
}

.portal-traveler,
.portal-doc-card,
.portal-file-card,
.portal-ocr-card {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  padding: 18px;
}

.portal-list {
  display: grid;
  gap: 14px;
}

.portal-traveler__header,
.portal-file-card__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 14px;
}

.portal-muted {
  color: var(--muted);
}

.portal-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: #fff;
  font-size: 14px;
}

.portal-checkbox input {
  margin-top: 4px;
}

.portal-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 12px;
}

.portal-pill--ok {
  background: rgba(35, 122, 82, 0.24);
  color: var(--portal-ok);
}

.portal-pill--warn {
  background: rgba(212,175,55,0.18);
  color: #f3e4aa;
}

.portal-pill--danger {
  background: rgba(178, 43, 43, 0.2);
  color: #ffd0d0;
}

.portal-ocr-raw {
  margin-top: 12px;
  color: var(--muted);
}

.portal-ocr-raw summary {
  cursor: pointer;
  color: var(--gold);
}

.portal-ocr-raw pre {
  overflow: auto;
  white-space: pre-wrap;
  border-radius: 14px;
  background: rgba(7, 14, 22, 0.78);
  color: #fff;
  padding: 12px;
  max-height: 280px;
}

.portal-files-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.portal-inline-links a {
  color: var(--gold);
  text-decoration: underline;
}

.portal-payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.portal-payment-card {
  border-radius: 18px;
  border: 1px solid rgba(212,175,55,0.18);
  background: rgba(255,255,255,0.03);
  padding: 18px;
  display: grid;
  gap: 10px;
}

.portal-payment-amount {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.portal-sbp-qr {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  border-radius: 16px;
  background: rgba(255,255,255,0.96);
  padding: 12px;
}

.portal-sbp-qr svg,
.portal-sbp-qr img {
  max-width: 100%;
  height: auto;
}

.portal-check-grid {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.portal-empty {
  color: var(--muted);
  font-size: 14px;
}

.portal-subsection-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.is-hidden {
  display: none !important;
}

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

  .portal-status-panel {
    grid-template-columns: 1fr;
  }

  .portal-kv__row {
    grid-template-columns: 1fr;
  }

  .portal-files-grid {
    grid-template-columns: 1fr;
  }

  .portal-card {
    padding: 18px;
  }

  .portal-shell {
    padding-top: 94px;
  }
}

@media (max-width: 640px) {
  .header {
    padding-top: 12px;
  }

  .header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brand__name,
  .brand__tag,
  .phone {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .phone {
    align-self: flex-start;
  }

  .portal-shell {
    padding-top: 86px;
  }

  .portal-card {
    padding: 14px;
    border-radius: 18px;
  }

  .portal-root {
    gap: 16px;
  }

  .portal-section {
    padding: 16px;
    border-radius: 18px;
  }

  .portal-title {
    font-size: 28px;
    line-height: 1.15;
  }

  .portal-section h2 {
    font-size: 20px;
  }

  .portal-section h3 {
    font-size: 17px;
  }

  .portal-traveler__header,
  .portal-file-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-actions {
    flex-direction: column;
  }

  .portal-actions .btn,
  .portal-actions a.btn {
    width: 100%;
    justify-content: center;
  }

  .portal-payment-grid {
    grid-template-columns: 1fr;
  }

  .portal-payment-amount {
    font-size: 24px;
  }

  .portal-sbp-qr {
    min-height: 180px;
  }

  .portal-kv__row strong,
  .portal-kv__row span,
  .portal-note,
  .portal-success,
  .portal-alert {
    overflow-wrap: anywhere;
  }

  .portal-kv__row {
    gap: 6px;
  }

  .portal-kv__row strong {
    font-size: 14px;
  }

  .portal-label {
    font-size: 13px;
  }

  .portal-field,
  .portal-textarea,
  .portal-select,
  .portal-file {
    font-size: 16px;
    padding: 13px 14px;
  }

  .portal-payment-card,
  .portal-traveler,
  .portal-file-card,
  .portal-doc-card,
  .portal-ocr-card {
    padding: 14px;
  }
}

@media (max-width: 420px) {
  .portal-shell {
    padding-top: 78px;
  }

  .portal-card {
    padding: 12px;
  }

  .portal-section {
    padding: 14px;
  }

  .portal-title {
    font-size: 24px;
  }

  .portal-status {
    width: 100%;
    justify-content: center;
  }
}
