@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");
@import url("../assets/css/style.css");

:root {
  --fx-auth-ink: #1b1712;
  --fx-auth-soft: #645b51;
  --fx-auth-line: rgba(105, 78, 45, 0.14);
  --fx-auth-surface: rgba(255, 252, 246, 0.92);
  --fx-auth-surface-strong: rgba(255, 255, 255, 0.96);
  --fx-auth-brand: #9a6b34;
  --fx-auth-brand-strong: #6d4925;
  --fx-auth-forest: #17352a;
  --fx-auth-success: #2e7d5b;
  --fx-auth-error: #a63a3a;
  --fx-auth-shadow: 0 20px 50px rgba(27, 18, 10, 0.14);
}

html,
body,
button,
input,
select,
textarea {
  font-family: "Montserrat", "Segoe UI", sans-serif;
}

body[data-page="login"] {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(14, 33, 27, 0.74), rgba(56, 36, 20, 0.48)),
    url("../assets/images/sceniclandscape.jpg") center/cover fixed;
}

.finix-user-avatar {
  text-decoration: none;
}

.auth-page-shell {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 3rem;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: 1.25rem;
  align-items: stretch;
}

.auth-scene,
.auth-panel {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--fx-auth-shadow);
}

.auth-scene {
  position: relative;
  min-height: 680px;
  padding: clamp(1.6rem, 3vw, 2.3rem);
  background:
    linear-gradient(160deg, rgba(16, 35, 29, 0.88), rgba(52, 34, 18, 0.58)),
    url("../assets/images/safariinsidejeep.jpg") center/cover;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0 0, rgba(223, 190, 131, 0.18), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.08), transparent 30%);
  pointer-events: none;
}

.auth-scene > * {
  position: relative;
  z-index: 1;
}

.auth-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f6e6cb;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.auth-scene h1 {
  margin: 1.2rem 0 0.75rem;
  max-width: 12ch;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
  color: #fff;
}

.auth-scene p,
.auth-scene li,
.auth-scene strong,
.auth-scene span {
  color: rgba(255, 255, 255, 0.92);
}

.auth-scene-copy {
  max-width: 56ch;
  font-size: 1rem;
}

.auth-scene-highlights {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  list-style: none;
}

.auth-scene-highlights li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-scene-highlights li > span:first-child {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.auth-scene-highlights strong {
  display: block;
  margin-bottom: 0.2rem;
}

.auth-panel {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 236, 0.94));
  border: 1px solid var(--fx-auth-line);
}

.auth-panel-head {
  margin-bottom: 1.35rem;
}

.auth-panel-head p {
  margin: 0.45rem 0 0;
  color: var(--fx-auth-soft);
}

.auth-switcher {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  width: 100%;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(152, 118, 72, 0.08);
  border: 1px solid rgba(152, 118, 72, 0.12);
}

.auth-switcher button {
  min-height: 46px;
  background: transparent;
  color: var(--fx-auth-brand-strong);
  box-shadow: none;
}

.auth-switcher button.is-active {
  background: linear-gradient(135deg, var(--fx-auth-brand), var(--fx-auth-brand-strong));
  color: #fff;
}

.auth-methods {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.auth-provider-btn {
  width: 100%;
  min-height: 54px;
  justify-content: center;
  gap: 0.75rem;
  border-color: rgba(106, 73, 37, 0.18);
  background: var(--fx-auth-surface-strong);
  color: var(--fx-auth-ink);
  box-shadow: 0 12px 26px rgba(37, 23, 12, 0.08);
}

.auth-provider-btn:hover,
.auth-provider-btn:focus-visible {
  background: #fffaf4;
}

.auth-provider-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-provider-icon svg {
  width: 100%;
  height: 100%;
}

.auth-divider {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.25rem 0;
}

.auth-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid rgba(106, 73, 37, 0.12);
}

.auth-divider span {
  position: relative;
  padding: 0 0.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 236, 0.94));
  color: #7c6f60;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.auth-form-stack {
  display: grid;
  gap: 0.95rem;
}

.auth-form {
  display: grid;
  gap: 0.3rem;
}

.auth-form[hidden] {
  display: none;
}

.auth-form label {
  margin-bottom: 0.2rem;
}

.auth-form input {
  margin-bottom: 0;
}

.auth-form button[type="submit"] {
  width: 100%;
  justify-content: center;
}

.auth-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auth-inline-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fx-auth-brand-strong);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-inline-link:hover {
  color: #000;
}

.auth-inline-link[disabled] {
  cursor: wait;
  opacity: 0.7;
}

.auth-status {
  min-height: 1.25rem;
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.auth-status.success {
  color: var(--fx-auth-success);
}

.auth-status.error {
  color: var(--fx-auth-error);
}

.auth-helper-copy {
  margin: 0;
  color: var(--fx-auth-soft);
  font-size: 0.86rem;
}

.dashboard-account-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-account-chip span {
  color: inherit;
}

.finix-user-trigger.finix-user-avatar {
  box-shadow: 0 0 0 2px rgba(214, 177, 122, 0.24);
}

.account-protected-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(143, 106, 51, 0.14);
  color: #6d4925;
  font-size: 0.78rem;
  font-weight: 700;
}

.chip-soft {
  background: rgba(154, 107, 52, 0.08);
  border-color: rgba(154, 107, 52, 0.2);
}

body[data-page="cart"],
body[data-page="checkout"],
body[data-page="booking-confirmation"],
body[data-page="terms"] {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0 0, rgba(213, 176, 122, 0.16), transparent 28%),
    radial-gradient(circle at 100% 0, rgba(23, 53, 42, 0.08), transparent 24%),
    linear-gradient(180deg, #f8f3ea 0%, #f1ebe1 100%);
}

.commerce-hero {
  width: min(1240px, calc(100% - 1.5rem));
  margin: 1rem auto 0;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 32px;
  background:
    linear-gradient(140deg, rgba(19, 41, 33, 0.9), rgba(111, 73, 35, 0.72)),
    url("../assets/images/about.jpg") center/cover;
  box-shadow: 0 24px 58px rgba(26, 17, 11, 0.16);
  overflow: hidden;
}

.commerce-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.2rem;
  align-items: end;
}

.commerce-hero-copy h1,
.commerce-hero-copy p,
.commerce-hero-copy strong,
.commerce-hero-card h2,
.commerce-hero-card p,
.commerce-hero-card strong,
.commerce-trust-list span,
.commerce-trust-list strong {
  color: #fff;
}

.commerce-hero-copy h1 {
  margin: 0.5rem 0 0.7rem;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  line-height: 1.02;
}

.commerce-hero-copy p {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.88);
}

.commerce-hero-card {
  padding: 1.2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.commerce-hero-card h2 {
  margin: 0;
  font-size: 1.12rem;
}

.commerce-hero-card p {
  margin: 0.4rem 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.commerce-trust-list {
  display: grid;
  gap: 0.78rem;
  margin: 1rem 0 0;
}

.commerce-trust-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
}

.commerce-trust-item strong {
  display: block;
  margin-bottom: 0.12rem;
}

.commerce-trust-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: #f5e4c7;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.commerce-shell {
  width: min(1240px, calc(100% - 1.5rem));
  margin: -2.8rem auto 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(310px, 0.82fr);
  gap: 1.2rem;
  align-items: start;
}

.commerce-panel,
.commerce-sidebar-card,
.confirmation-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 247, 239, 0.94));
  border: 1px solid rgba(105, 78, 45, 0.14);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(27, 18, 10, 0.11);
}

.commerce-panel,
.commerce-sidebar-card {
  padding: clamp(1.25rem, 2.5vw, 1.7rem);
}

.commerce-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.commerce-section-head h2,
.confirmation-card h1,
.confirmation-card h2 {
  margin: 0;
  color: var(--fx-auth-brand-strong);
}

.commerce-section-head p,
.confirmation-card p {
  color: var(--fx-auth-soft);
}

.cart-line-list,
.checkout-summary-list {
  display: grid;
  gap: 1rem;
}

.cart-line-item,
.checkout-summary-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(105, 78, 45, 0.1);
}

.cart-line-media img,
.checkout-summary-item img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  border-radius: 18px;
}

.cart-line-body,
.checkout-summary-copy {
  display: grid;
  gap: 0.8rem;
}

.cart-line-head,
.checkout-summary-top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.cart-line-copy h3,
.checkout-summary-copy strong {
  margin: 0.35rem 0 0.2rem;
  color: var(--fx-auth-ink);
}

.cart-line-tags {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.cart-line-description,
.checkout-summary-copy p,
.cart-line-meta {
  margin: 0;
  color: var(--fx-auth-soft);
  line-height: 1.5;
}

.cart-line-remove {
  border: 0;
  background: transparent;
  color: #ab3c3c;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.cart-line-footer,
.checkout-summary-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(105, 78, 45, 0.16);
  background: #fff;
}

.qty-stepper button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(154, 107, 52, 0.12);
  color: var(--fx-auth-brand-strong);
  box-shadow: none;
}

.qty-stepper span {
  min-width: 2rem;
  text-align: center;
  font-weight: 700;
  color: var(--fx-auth-ink);
}

.price-stack {
  display: grid;
  gap: 0.18rem;
  min-width: 120px;
}

.price-stack span,
.summary-row span,
.summary-grid-card span,
.confirmation-reference span {
  color: var(--fx-auth-soft);
  font-size: 0.82rem;
}

.price-stack strong,
.summary-row strong,
.summary-grid-card strong,
.confirmation-reference strong {
  color: var(--fx-auth-ink);
}

.summary-breakdown {
  display: grid;
  gap: 0.75rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.summary-row.highlight {
  padding-top: 0.8rem;
  border-top: 1px solid rgba(105, 78, 45, 0.14);
}

.summary-row.highlight strong {
  font-size: 1.05rem;
}

.summary-row.muted strong,
.summary-row.muted span {
  color: #7d6e5f;
}

.commerce-sidebar-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--fx-auth-brand-strong);
}

.commerce-summary-note {
  margin: 1rem 0 0;
  color: var(--fx-auth-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.commerce-actions,
.confirmation-actions,
.receipt-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.purchase-action-stack {
  display: grid;
  gap: 0.65rem;
  align-items: start;
}

.pesapal-purchase-embed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(105, 78, 45, 0.14);
  box-shadow: 0 10px 22px rgba(35, 23, 12, 0.08);
}

.pesapal-purchase-embed iframe {
  display: block;
  width: 200px;
  max-width: 100%;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.is-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.empty-state-card {
  padding: clamp(1.2rem, 2.4vw, 1.7rem);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px dashed rgba(154, 107, 52, 0.24);
  display: grid;
  gap: 0.8rem;
}

.empty-state-card h3 {
  margin: 0;
  color: var(--fx-auth-brand-strong);
}

.empty-state-card p {
  margin: 0;
  color: var(--fx-auth-soft);
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field.is-wide {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--fx-auth-brand-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(105, 78, 45, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: var(--fx-auth-ink);
  padding: 0.95rem 1rem;
  font: inherit;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid rgba(154, 107, 52, 0.18);
  border-color: rgba(154, 107, 52, 0.44);
}

.checkout-legal {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(105, 78, 45, 0.14);
  background: rgba(255, 255, 255, 0.82);
}

.checkout-legal.is-invalid {
  border-color: rgba(166, 58, 58, 0.38);
  box-shadow: 0 0 0 3px rgba(166, 58, 58, 0.08);
}

.checkout-legal-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--fx-auth-ink);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.65;
  cursor: pointer;
}

.checkout-legal-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.22rem;
  accent-color: var(--fx-auth-brand);
  flex-shrink: 0;
}

.checkout-legal a {
  color: var(--fx-auth-brand-strong);
  font-weight: 700;
}

.checkout-legal-note {
  margin: 0;
  color: var(--fx-auth-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.payment-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.payment-option-card {
  position: relative;
}

.payment-option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-option-card label {
  display: grid;
  gap: 0.35rem;
  min-height: 100%;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(105, 78, 45, 0.16);
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.payment-option-card label span {
  color: var(--fx-auth-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.payment-option-card strong {
  color: var(--fx-auth-ink);
}

.payment-option-card.is-selected label {
  border-color: rgba(154, 107, 52, 0.4);
  background: rgba(255, 250, 244, 0.96);
  box-shadow: 0 16px 32px rgba(27, 18, 10, 0.08);
  transform: translateY(-1px);
}

.checkout-helper-copy,
.inline-status {
  min-height: 1.35rem;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fx-auth-soft);
}

.inline-status.success {
  color: var(--fx-auth-success);
}

.inline-status.error {
  color: var(--fx-auth-error);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.summary-grid-card {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(105, 78, 45, 0.1);
}

.summary-grid-card strong {
  display: block;
  margin-top: 0.2rem;
}

.checkout-summary-item {
  align-items: center;
}

.checkout-summary-item .checkout-summary-copy strong {
  font-size: 1rem;
}

.checkout-summary-item .checkout-summary-copy p {
  margin: 0.15rem 0 0;
}

.confirmation-card {
  width: min(900px, calc(100% - 1.5rem));
  margin: 2rem auto 3rem;
  padding: clamp(1.35rem, 3vw, 2.1rem);
}

.confirmation-reference {
  display: inline-grid;
  gap: 0.15rem;
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(154, 107, 52, 0.08);
}

.confirmation-summary-block {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
}

.invoice-shell {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 1.5rem auto 3rem;
  display: grid;
  gap: 1rem;
}

.legal-stack {
  display: grid;
  gap: 1rem;
}

.legal-card {
  display: grid;
  gap: 0.7rem;
  padding: clamp(1.1rem, 2.4vw, 1.45rem);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(105, 78, 45, 0.12);
}

.legal-card h2,
.legal-card h3 {
  margin: 0;
  color: var(--fx-auth-brand-strong);
}

.legal-card p {
  margin: 0;
  color: var(--fx-auth-soft);
  line-height: 1.7;
}

.legal-card a,
.legal-callout a {
  color: var(--fx-auth-brand-strong);
  font-weight: 700;
}

.legal-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
  color: var(--fx-auth-soft);
}

.legal-list li {
  line-height: 1.65;
}

.legal-callout {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(154, 107, 52, 0.08);
  border: 1px solid rgba(154, 107, 52, 0.18);
}

.legal-callout strong {
  color: var(--fx-auth-brand-strong);
}

.legal-anchor-list,
.legal-side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.legal-anchor-list a {
  color: var(--fx-auth-brand-strong);
  font-weight: 700;
  text-decoration: none;
}

.legal-anchor-list a:hover,
.legal-anchor-list a:focus-visible {
  text-decoration: underline;
}

.legal-side-list li {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(105, 78, 45, 0.1);
}

.legal-side-list strong {
  display: block;
  margin-bottom: 0.22rem;
  color: var(--fx-auth-ink);
}

.legal-side-list span,
.legal-side-list a {
  color: var(--fx-auth-soft);
  line-height: 1.55;
}

.legal-sidebar-heading {
  margin-top: 1.4rem;
}

.invoice-loading-card,
.invoice-card {
  border-radius: 30px;
  border: 1px solid rgba(105, 78, 45, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 60px rgba(27, 18, 10, 0.08);
  padding: clamp(1.25rem, 2vw, 2rem);
}

.invoice-card-head,
.invoice-actions,
.invoice-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.invoice-lead {
  margin: 0.45rem 0 0;
  color: var(--fx-auth-soft);
}

.invoice-actions {
  margin-top: 1.2rem;
}

.invoice-meta-grid,
.invoice-party-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.invoice-party-card {
  padding: 1rem 1.1rem;
  border-radius: 22px;
  border: 1px solid rgba(105, 78, 45, 0.1);
  background: rgba(255, 249, 243, 0.86);
}

.invoice-party-card h3,
.invoice-note-box h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.invoice-party-card p,
.invoice-note-box p {
  margin: 0.22rem 0;
}

.invoice-table-wrap {
  margin-top: 1.2rem;
  overflow-x: auto;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.invoice-table th,
.invoice-table td {
  padding: 0.9rem 0.85rem;
  border-bottom: 1px solid rgba(105, 78, 45, 0.12);
  text-align: left;
}

.invoice-table th {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fx-auth-brand-strong);
  background: rgba(255, 249, 243, 0.86);
}

.invoice-totals {
  width: min(360px, 100%);
  margin: 1.3rem 0 0 auto;
  display: grid;
  gap: 0.25rem;
}

.invoice-total-row {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(105, 78, 45, 0.12);
}

.invoice-total-row.highlight {
  background: rgba(154, 107, 52, 0.1);
  border-color: rgba(154, 107, 52, 0.22);
}

.invoice-note-box {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 249, 243, 0.86);
  border: 1px solid rgba(105, 78, 45, 0.1);
}

.invoice-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media print {
  .finix-nav,
  .site-footer,
  .commerce-hero,
  .invoice-actions,
  .whatsapp-float,
  .social-float {
    display: none !important;
  }

  body[data-page="invoice"] {
    background: #fff;
  }

  .invoice-shell,
  .invoice-card {
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: 0;
  }
}

@media (max-width: 980px) {
  body[data-page="dashboard"] .dashboard-shell {
    width: min(1240px, calc(100% - 1rem));
    margin-left: 0.5rem;
    margin-right: auto;
  }

  body[data-page="dashboard"] .social-float {
    left: auto;
    right: 12px;
    bottom: 88px;
    justify-items: end;
  }

  body[data-page="dashboard"] .social-btn span {
    display: none;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-scene {
    min-height: 460px;
  }

  .commerce-hero-shell,
  .commerce-shell,
  .invoice-meta-grid,
  .invoice-party-grid,
  .payment-option-grid,
  .summary-grid,
  .checkout-form-grid {
    grid-template-columns: 1fr;
  }

  .commerce-shell {
    margin-top: 1rem;
  }
}

@media (max-width: 680px) {
  .auth-page-shell {
    width: min(1180px, calc(100% - 1rem));
  }

  .auth-panel {
    padding: 1.1rem;
  }

  .auth-scene {
    min-height: 380px;
    padding: 1.2rem;
  }

  .commerce-hero,
  .confirmation-card,
  .invoice-shell,
  .commerce-shell {
    width: min(1240px, calc(100% - 1rem));
  }

  .cart-line-item,
  .checkout-summary-item {
    grid-template-columns: 1fr;
  }

  .commerce-section-head,
  .cart-line-head,
  .cart-line-footer,
  .checkout-summary-top,
  .checkout-summary-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .commerce-actions,
  .confirmation-actions,
  .invoice-actions,
  .receipt-actions {
    flex-direction: column;
  }

  .purchase-action-stack {
    width: 100%;
  }
}

.panel {
  background: #ffffff;
  border: 1px solid #eadccb;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 36px rgba(34, 24, 14, 0.08);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head h2 {
  margin: 0;
  text-align: left;
}

.panel-note {
  margin: 0;
  color: #6a655d;
  font-size: 0.9rem;
}

.dashboard-cards,
.bottom-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.dashboard-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bottom-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
}

.bookings-list {
  display: grid;
  gap: 12px;
}

.booking-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid #eadccb;
  border-radius: 18px;
  padding: 12px;
  background: #fffdf9;
}

.booking-item--wide {
  grid-template-columns: 140px minmax(0, 1fr);
}

.booking-item img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}

.booking-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #24180f;
}

.booking-meta {
  margin: 0;
  color: #655a4d;
  font-size: 0.9rem;
  line-height: 1.5;
}

.booking-row {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.booking-empty {
  border: 1px dashed #d7c3a6;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  color: #655a4d;
  background: #fffaf2;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.status-confirmed {
  background: #e4f4ea;
  color: #216b4a;
}

.status-pending {
  background: #fff0de;
  color: #9b5a16;
}

.status-upcoming {
  background: #e8f1fb;
  color: #1f5986;
}

.status-completed {
  background: #f4e7e7;
  color: #8f3b3b;
}

.line-link {
  border: 0;
  background: none;
  color: #8f6a33;
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
  padding: 0;
  cursor: pointer;
}

.line-link:hover {
  text-decoration: underline;
}

.payment-track {
  width: 100%;
  height: 12px;
  background: #f0e7da;
  border-radius: 999px;
  overflow: hidden;
  margin: 18px 0;
}

.payment-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ddb064 0%, #8f6a33 100%);
  transition: width 0.4s ease;
}

.admin-booking-card {
  display: grid;
  gap: 6px;
  width: 100%;
  text-align: left;
  border: 1px solid #eadccb;
  border-radius: 16px;
  padding: 14px;
  background: #fffdf9;
  color: #24180f;
  cursor: pointer;
}

.admin-booking-card.is-active {
  border-color: #8f6a33;
  box-shadow: 0 0 0 3px rgba(143, 106, 51, 0.12);
}

.admin-booking-card strong,
.admin-booking-card span {
  display: block;
}

.invoice-inline-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 980px) {
  .dashboard-cards,
  .bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .booking-item,
  .booking-item--wide {
    grid-template-columns: 1fr;
  }

  .booking-item img {
    height: 160px;
  }
}
