/* Platinum Getaways — client portal styles.
   Navy and gold, matching platinumgetaways.net. */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0a1628;
  --navy-2:    #1a2744;
  --navy-3:    #24365c;
  --gold:      #c9973a;
  --gold-2:    #e8b84b;
  --gold-soft: #f5e9d0;
  --blue:      #0a4f7a;
  --ink:       #1a2744;
  --muted:     #6b7280;
  --line:      #e2e8f0;
  --bg:        #f4f8fc;
  --white:     #ffffff;
  --success:   #1d7a6b;
  --success-bg:#e4f3f0;
  --warning:   #b8791b;
  --warning-bg:#fdf3e2;
  --danger:    #c0392f;
  --danger-bg: #fdeceb;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 2px 10px rgba(10, 22, 40, 0.06);
  --shadow-lg: 0 18px 48px rgba(10, 22, 40, 0.18);
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--blue); }

/* ── Header ───────────────────────────────────────────── */
.topbar {
  background: var(--navy);
  border-bottom: 1px solid rgba(201, 151, 58, 0.3);
  padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: sticky; top: 0; z-index: 50;
}
.topbar__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.topbar__brand img { height: 42px; width: auto; display: block; }
.topbar__title {
  font-family: 'Playfair Display', serif; font-size: 1.05rem; color: #fff; line-height: 1.2;
}
.topbar__title span { display: block; font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.topbar__right { display: flex; align-items: center; gap: 12px; }
.topbar__user { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,0.85); font-size: 13px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--blue));
  color: #fff; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}

/* ── Layout ───────────────────────────────────────────── */
.wrap { max-width: 1040px; margin: 0 auto; padding: 24px 20px 64px; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 3.5vw, 2rem); color: var(--navy); }
.page-head p { color: var(--muted); font-size: 14px; }
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stack > * + * { margin-top: 16px; }

/* ── Cards ────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card__title {
  font-weight: 700; font-size: 14px; color: var(--navy);
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.card__hint { font-size: 12px; color: var(--muted); margin-top: 10px; }

.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(to right, var(--gold), var(--gold-2)); }
.stat__label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stat__value { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1.15; margin-top: 6px; }
.stat__note { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Trip hero ────────────────────────────────────────── */
.trip { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--white); }
.trip__head { background: linear-gradient(135deg, var(--navy) 0%, #0d3050 100%); color: #fff; padding: 22px 20px; }
.trip__name { font-family: 'Playfair Display', serif; font-size: 1.35rem; }
.trip__meta { font-size: 13px; color: rgba(255,255,255,0.78); margin-top: 4px; }
.trip__body { padding: 20px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
/* Grid children default to min-width:auto, which refuses to shrink below their content.
   An email address has no spaces, so a long one cannot wrap and runs out of its cell
   and over the value beside it — worst on a phone, where the columns are narrowest.
   min-width:0 lets the cell shrink; overflow-wrap lets the address break inside itself. */
.facts > * { min-width: 0; }
.fact__label { font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.fact__value { font-size: 14px; font-weight: 500; color: var(--navy); overflow-wrap: anywhere; }

/* ── Progress ─────────────────────────────────────────── */
.progress { margin: 18px 0 6px; }
.progress__head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.progress__pct { color: var(--gold); font-weight: 600; }
.progress__track { height: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.progress__fill { height: 100%; background: linear-gradient(to right, var(--gold), var(--gold-2)); border-radius: 10px; transition: width 0.4s ease; }

/* ── Tables / rows ────────────────────────────────────── */
.rows { width: 100%; }
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: none; }
.row__main { flex: 1; min-width: 0; }
.row__title { font-size: 13px; font-weight: 600; color: var(--navy); }
.row__note { font-size: 12px; color: var(--muted); }
.row__amount { font-weight: 700; font-size: 14px; white-space: nowrap; }
.row__amount--in { color: var(--success); }

/* ── Badges ───────────────────────────────────────────── */
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.badge--navy    { background: rgba(10,22,40,0.08);   color: var(--navy); }
.badge--gold    { background: var(--gold-soft);      color: #8a6420; }
.badge--success { background: var(--success-bg);     color: var(--success); }
.badge--warning { background: var(--warning-bg);     color: var(--warning); }
.badge--danger  { background: var(--danger-bg);      color: var(--danger); }

/* ── Forms ────────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; font-size: 14px; font-family: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,151,58,0.16);
}
.field__hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px; border: none; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: background 0.15s, opacity 0.15s;
}
.btn--primary { background: var(--gold); color: #fff; }
.btn--primary:hover { background: #b8862e; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-3); }
.btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--gold); }
.btn--link { background: none; color: var(--blue); padding: 0; font-weight: 500; }
.btn--block { width: 100%; }
.btn--sm { padding: 7px 14px; font-size: 13px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Status banners ───────────────────────────────────── */
.status { display: none; padding: 10px 13px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 14px; border: 1px solid transparent; }
.status--error   { background: var(--danger-bg);  border-color: #f3c6c2; color: var(--danger); }
.status--success { background: var(--success-bg); border-color: #b9e0d8; color: var(--success); }
.status--info    { background: var(--gold-soft);  border-color: #ecd9b4; color: #8a6420; }

/* ── Loading / empty ──────────────────────────────────── */
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 36px; color: var(--muted); font-size: 14px; }
.spinner { width: 20px; height: 20px; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty__icon { font-size: 2.2rem; margin-bottom: 8px; }
.empty__title { font-size: 15px; font-weight: 600; color: var(--navy); }
.empty__note { font-size: 13px; margin-top: 4px; }

/* ── Sign-in screen ───────────────────────────────────── */
.auth {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 20px;
  background: linear-gradient(135deg, var(--navy) 0%, #0d2d4a 55%, #0a3d3b 100%);
}
.auth__card { background: var(--white); border-radius: 18px; padding: 36px 30px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.auth__logo { text-align: center; margin-bottom: 14px; }
.auth__logo img { height: 74px; width: auto; }
.auth__title { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--navy); text-align: center; }
.auth__sub { font-size: 13px; color: var(--muted); text-align: center; margin: 4px 0 22px; }
.auth__note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 18px; line-height: 1.7; }
.auth__foot { text-align: center; margin-top: 14px; font-size: 13px; }

/* ── Footer ───────────────────────────────────────────── */
.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 26px 20px; line-height: 1.9; }
.foot a { color: var(--blue); text-decoration: none; }

/* ── Small screens ────────────────────────────────────── */
@media (max-width: 640px) {
  .topbar { padding: 9px 14px; }
  .topbar__brand img { height: 34px; }
  .topbar__title { font-size: 0.95rem; }
  .topbar__user span.name { display: none; }
  .wrap { padding: 18px 14px 48px; }
  .auth__card { padding: 28px 20px; }
}

/* Password requirements: shown before typing, ticked off as they are met. */
.pw-rules { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.pw-rules li { display: flex; gap: 7px; align-items: baseline; margin: 3px 0; }
.pw-rules li::before { content: '○'; flex: 0 0 14px; text-align: center; }
.pw-rules li.is-met { color: var(--success); }
.pw-rules li.is-met::before { content: '✓'; font-weight: 700; }
.pw-rules li.pw-rules__server { font-style: italic; }
.pw-rules li.pw-rules__server::before { content: 'ⓘ'; }

/* Sign-in: show/hide password, and a clearer "forgot" block. */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; padding: 6px 8px; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--blue);
}
.pw-toggle:focus-visible { outline: 2px solid var(--gold); border-radius: 4px; }
.auth__forgot { text-align: center; margin-top: 16px; }
.auth__forgot .btn--link { font-size: 15px; font-weight: 600; }
.auth__forgot p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* Payment page: how paying works. */
.pay-intro { font-size: 14px; color: var(--ink); margin: 0 0 14px; }
.pay-intro p { margin: 0 0 6px; }
.pay-intro ul { margin: 0; padding-left: 18px; color: var(--muted); }
.pay-intro li { margin: 2px 0; }
