/* ===========================================================================
   EuropaReserve - portal.css
   Klant-inlogportaal (portal.html). Bouwt voort op de variabelen en
   basisstijlen (velden, knoppen, .form-error) uit style.css.
   =========================================================================== */

.hidden { display: none !important; }

.po-wrap {
  max-width: 960px; margin: 0 auto; padding: 24px 24px 64px;
  position: relative; z-index: 1;
}

/* -------------------------------- KAARTEN -------------------------------- */
.po-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
#loginView.po-card, #recoveryView.po-card {
  max-width: 440px; margin: 40px auto 0;
}
.po-card h1 { font-size: 1.6rem; }
.po-card h2 { font-size: 1.25rem; margin-bottom: 4px; }
.po-sub { color: var(--muted); font-size: .92rem; margin: 6px 0 20px; }
.po-mail { color: var(--gold-2); font-weight: 600; }

/* -------------------------------- LINKS --------------------------------- */
.po-links {
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  margin-top: 18px; text-align: center; font-size: .9rem;
}
.po-links a { color: var(--muted); }
.po-links a:hover { color: var(--text); }
.po-linkbtn {
  font: inherit; background: none; border: none; cursor: pointer;
  color: var(--gold); text-decoration: underline; padding: 0;
}
.po-note {
  margin-top: 16px; font-size: .86rem; color: var(--muted);
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 14px;
}
.po-ok {
  margin-top: 12px; font-size: .9rem; color: var(--trust);
  background: rgba(79,214,163,.1); border: 1px solid rgba(79,214,163,.35);
  border-radius: 10px; padding: 10px 14px;
}

/* ------------------------------ ACCOUNT --------------------------------- */
.po-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin: 20px 0 24px; flex-wrap: wrap;
}
.po-head h1 { font-size: 1.7rem; }
.po-btn-ghost {
  background: transparent; border: 1px solid var(--line); color: var(--text);
  padding: 10px 18px;
}
.po-btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.po-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start;
}
@media (max-width: 760px) { .po-grid { grid-template-columns: 1fr; } }

/* --------------------------- RESERVERINGEN ------------------------------ */
.po-res-list { display: flex; flex-direction: column; gap: 12px; }
.po-res {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px;
}
.po-res-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.po-res-country { font-weight: 700; font-size: 1.02rem; }
.po-res-meta {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 8px; color: var(--muted); font-size: .92rem;
}
.po-res-amount { color: var(--gold-2); font-weight: 700; font-size: 1.05rem; }
.po-res-date { margin-top: 6px; font-size: .8rem; color: var(--muted); }
.po-res-vat { margin-top: 2px; font-size: .78rem; color: var(--muted); }

.po-badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--muted);
}
.po-badge.paid     { background: rgba(79,214,163,.14); color: var(--trust); border-color: rgba(79,214,163,.4); }
.po-badge.pending  { background: rgba(91,147,245,.14); color: var(--gold-2); border-color: rgba(91,147,245,.4); }
.po-badge.failed,
.po-badge.expired,
.po-badge.canceled { background: rgba(226,99,91,.12); color: #f2a9a3; border-color: rgba(226,99,91,.35); }
.po-badge.open        { background: rgba(91,147,245,.14); color: var(--gold-2); border-color: rgba(91,147,245,.4); }
.po-badge.in_progress { background: rgba(240,190,90,.14); color: #f0be5a; border-color: rgba(240,190,90,.4); }
.po-badge.resolved    { background: rgba(79,214,163,.14); color: var(--trust); border-color: rgba(79,214,163,.4); }

/* Klachten in het portaal: los blok, duidelijk gescheiden van de kaarten erboven */
.po-complaints { margin-top: 24px; }
.po-subhead { margin: 22px 0 12px; font-size: 1rem; border-top: 1px solid var(--line); padding-top: 18px; }
.po-complaint-list { display: flex; flex-direction: column; gap: 12px; }
.po-complaint {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px;
}
.po-complaint-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.po-complaint-subj { font-weight: 700; font-size: .95rem; }
.po-complaint-msg { font-size: .9rem; color: var(--muted); line-height: 1.55; white-space: pre-wrap; }

.po-reveal {
  margin-top: 18px; font-size: .86rem; color: var(--muted); line-height: 1.6;
  border-top: 1px solid var(--line); padding-top: 16px;
}

/* ------------------------------ BEROEPEN -------------------------------- */
/* Meerdere beroepen: rij met een tekstveld + verwijderknopje, plus een
   "+"-knop eronder om er nog een toe te voegen. */
.po-prof-list { display: flex; flex-direction: column; gap: 8px; }
.po-prof-row { display: flex; align-items: center; gap: 8px; }
.po-prof-row .po-prof-input { flex: 1; min-width: 0; }
.po-prof-remove {
  flex: 0 0 auto; width: 38px; height: 38px; line-height: 1;
  font-size: 1.3rem; cursor: pointer;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 10px;
}
.po-prof-remove:hover { border-color: #e2635b; color: #f2a9a3; }
.po-prof-add {
  align-self: flex-start; margin-top: 10px;
  font: inherit; cursor: pointer; padding: 8px 14px;
  background: transparent; color: var(--gold);
  border: 1px dashed var(--line); border-radius: 10px;
}
.po-prof-add:hover { border-color: var(--gold); border-style: solid; }

.po-foot { margin-top: 28px; text-align: center; }
