:root {
  --coral: #ef8c7d;
  --coral-deep: #d96a5c;
  --coral-light: #fbe4de;
  --coral-pale: #fdf3f0;
  --maroon: #6e2430;
  --maroon-mid: #8f2f36;
  --ink: #2a1210;
  --muted: #8a5a54;
  --white: #ffffff;

  /* Tonal range sampled from img/hero-bg.png, so flat-color sections
     still echo the photo's own light-to-shadow gradient instead of a
     single flat block of color. */
  --hero-gradient:
    radial-gradient(140% 110% at 12% 8%, #fbb2a3 0%, #f0897c 20%, #ec6f68 42%, #d5484a 68%, #b93a42 100%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--coral);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

a { color: inherit; }

/* ---------- Header / nav (shared) ---------- */
header.site {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 5vw;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.brand {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.brand img { height: 44px; width: auto; display: block; }
.dashboard-topbar .brand img { height: 36px; }

nav.main {
  display: flex;
  align-items: center;
  gap: 32px;
}
nav.main a.nav-link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: opacity 0.15s ease;
}
nav.main a.nav-link:hover { opacity: 0.7; }

.btn-login {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  border: 1.5px solid var(--white);
  border-radius: 2px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-login:hover { background: var(--white); color: var(--coral-deep); }

@media (max-width: 860px) {
  header.site { flex-direction: column; align-items: flex-start; gap: 16px; }
  nav.main { flex-wrap: wrap; gap: 18px 22px; }
}

/* ---------- Hero (homepage only) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background-image: url("../img/hero-bg.png");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 13vh 5vw 8vh;
  max-width: 640px;
}

.rule {
  width: 56px;
  height: 3px;
  background: var(--white);
  margin-bottom: 28px;
  border-radius: 2px;
}

h1.hero-title {
  color: var(--white);
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 18px 0 24px;
}

.subtext {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 0 36px;
}

.cta {
  display: inline-block;
  padding: 15px 34px;
  border: 1.5px solid var(--white);
  border-radius: 2px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease;
}
.cta:hover { background: var(--white); color: var(--coral-deep); }

@media (max-width: 860px) {
  .hero-content { padding-top: 5vh; max-width: 100%; }
  .hero { background-position: 70% center; }
}

/* ---------- Flat coral hero (login / contact) ---------- */
.flat-hero {
  min-height: 100vh;
  background: var(--hero-gradient);
  display: flex;
  flex-direction: column;
}

/* ---------- Sections on white/pale ground ---------- */
.section {
  background: var(--white);
  padding: 90px 5vw;
}
.section.pale { background: var(--coral-pale); }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-kicker {
  display: inline-block;
  color: var(--coral-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  max-width: 640px;
}

.section .lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 0 56px;
  font-weight: 300;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  padding: 32px 26px;
  background: var(--white);
  border: 1px solid var(--coral-light);
  border-radius: 4px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: var(--coral-deep); transform: translateY(-2px); }
.feature-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--coral-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}
.feature-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  font-weight: 300;
}

/* ---------- Community section (coral ground) ---------- */
.community {
  background: var(--hero-gradient);
  padding: 90px 5vw;
  text-align: center;
}
.community .section-inner { max-width: 760px; margin: 0 auto; }
.community h2 { color: var(--white); }
.community .lead { color: rgba(255,255,255,0.92); margin: 0 auto 8px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--maroon);
  color: rgba(255,255,255,0.75);
  padding: 32px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
footer.site a { text-decoration: none; color: rgba(255,255,255,0.75); }
footer.site a:hover { color: var(--white); }
footer.site .foot-links { display: flex; gap: 24px; }

/* ---------- Auth card (login) ---------- */
.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh 5vw;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border-radius: 6px;
  padding: 44px 38px;
  box-shadow: 0 20px 60px rgba(46, 12, 8, 0.25);
}
.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--maroon);
  margin: 0 0 8px;
}
.auth-card .auth-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 30px;
  font-weight: 300;
}
.field-group { margin-bottom: 18px; }
.field-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--maroon);
  letter-spacing: 0.03em;
  margin-bottom: 7px;
}
.field-group input:not([type="checkbox"]),
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--coral-light);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--coral-pale);
  transition: border-color 0.15s ease;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--coral-deep);
}
.field-group textarea { resize: vertical; min-height: 96px; }
.field-group input:-webkit-autofill,
.field-group input:-webkit-autofill:hover,
.field-group input:-webkit-autofill:focus,
.field-group select:-webkit-autofill,
.field-group textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--coral-pale) inset;
  box-shadow: 0 0 0 1000px var(--coral-pale) inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  transition: background-color 5000s ease-in-out 0s;
}

.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.toggle-password {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1.05rem;
  color: var(--muted); padding: 6px 8px; line-height: 1;
}
.toggle-password:hover { color: var(--maroon); }

.auth-forgot {
  display: block;
  text-align: right;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
}
.auth-forgot:hover { color: var(--maroon); }

.btn-solid {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 4px;
  background: var(--maroon);
  color: var(--white);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-solid:hover { background: var(--maroon-mid); }

.form-msg {
  margin-top: 16px;
  font-size: 0.85rem;
  text-align: center;
  display: none;
}
.form-msg.error { color: #b3261e; }
.form-msg.success { color: var(--maroon); font-weight: 600; }

.auth-back {
  display: block;
  text-align: center;
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
}
.auth-back:hover { color: var(--maroon); }

/* ---------- Contact page ---------- */
.contact-wrap {
  flex: 1;
  padding: 8vh 5vw 10vh;
}
.contact-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
.contact-intro .rule { margin-bottom: 24px; }
.contact-intro h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 18px;
}
.contact-intro p {
  color: rgba(255,255,255,0.92);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 300;
  max-width: 400px;
}
.contact-card {
  background: var(--white);
  border-radius: 6px;
  padding: 40px 36px;
  box-shadow: 0 20px 60px rgba(46, 12, 8, 0.25);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Toast ("coming soon" etc.) ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--maroon);
  color: var(--white);
  padding: 14px 26px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 30px rgba(46, 12, 8, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ---------- Dashboard (accepted user / creator) ---------- */
.dashboard-shell {
  background: var(--coral-pale);
  min-height: 100vh;
}
.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5vw;
  background: var(--white);
  border-bottom: 1px solid var(--coral-light);
}
.dashboard-topbar .brand { color: var(--maroon); }
.dashboard-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 5vw 80px;
}
.dash-card {
  background: var(--white);
  border: 1px solid var(--coral-light);
  border-radius: 6px;
  padding: 30px 32px;
  margin-bottom: 24px;
}
.dash-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--maroon);
  margin: 0 0 6px;
}
.dash-card .dash-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 24px;
  font-weight: 300;
}

.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--coral-light); }
.row-between:last-child { border-bottom: 0; }
.row-between .label { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.row-between .value { font-size: 0.85rem; font-weight: 700; }

.qr-box { text-align: center; }
.qr-box img { max-width: 100%; height: auto; }
.qr-scan-label { text-align: center; font-size: 0.78rem; color: var(--muted); font-weight: 700; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.04em; }

.pay-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0; color: var(--muted); font-size: 0.78rem; }
.pay-divider::before, .pay-divider::after { content: ''; flex: 1; height: 1px; background: var(--coral-light); }

.pay-alt { text-align: center; }
.pay-alt-label { font-size: 0.85rem; color: var(--muted); margin: 0 0 12px; }

.pay-details-box { margin-top: 16px; background: var(--coral-pale); border-radius: 8px; padding: 18px 20px; }
.pay-details-title { font-size: 1.05rem; font-weight: 800; color: var(--maroon); margin: 0 0 12px; }
.pay-details-hint { font-size: 0.78rem; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }

.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge.pending { background: var(--coral-light); color: var(--coral-deep); }
.badge.approved { background: var(--maroon); color: var(--white); }
.badge.declined, .badge.rejected { background: #eee; color: var(--muted); }
.badge.accepted, .badge.paid { background: var(--maroon); color: var(--white); }

/* ---------- Chat ---------- */
.chat-log {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 2px;
  margin-bottom: 14px;
}
.chat-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.chat-bubble.mine { align-self: flex-end; background: var(--maroon); color: var(--white); border-bottom-right-radius: 3px; }
.chat-bubble.theirs { align-self: flex-start; background: var(--coral-light); color: var(--ink); border-bottom-left-radius: 3px; }
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row input { flex: 1; }
.chat-input-row button { width: auto; padding: 12px 18px; }

.low-balance-banner {
  background: var(--coral-light);
  border: 1px solid var(--coral-deep);
  color: var(--maroon);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ---------- Live session (video call) ---------- */
.call-shell { display: flex; flex-direction: column; height: 100vh; background: #14060a; color: #ffffff; }
.call-topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.08); }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1rem; background: rgba(255,255,255,0.1); padding: 5px 12px; border-radius: 999px; }
.timer.warn { background: var(--coral); color: #14060a; }
.timer.danger { background: #ffffff; color: #14060a; }
.video-stage { flex: 1; position: relative; overflow: hidden; background: #05080a; }
#remoteVideo { width: 100%; height: 100%; object-fit: cover; background: #05080a; }
#localVideo { position: absolute; width: 120px; height: 160px; right: 14px; bottom: 14px; border-radius: 8px; object-fit: cover; border: 2px solid rgba(255,255,255,0.3); box-shadow: 0 6px 18px rgba(0,0,0,0.6); }
@media (min-width: 700px) { #localVideo { width: 200px; height: 140px; } }
.waiting-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: rgba(255,255,255,0.9); text-align: center; padding: 24px; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.25); border-top-color: var(--coral); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.call-controls { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px; background: rgba(255,255,255,0.05); border-top: 1px solid rgba(255,255,255,0.08); }
.ctrl-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); color: #ffffff; font-size: 1.15rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ctrl-btn.off { background: rgba(255,255,255,0.4); }
.ctrl-btn.hangup { background: var(--coral); color: #14060a; width: 58px; border-color: var(--coral); }
.end-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; text-align: center; gap: 14px; padding: 24px; color: var(--ink); background: var(--white); }

.request-item {
  border: 1px solid var(--coral-light);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.request-item .info h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--ink);
}
.request-item .info p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 420px;
}
.request-actions { display: flex; gap: 8px; align-items: center; }

.btn-small {
  width: auto;
  padding: 9px 18px;
  font-size: 0.8rem;
  border: none;
  border-radius: 4px;
  background: var(--maroon);
  color: var(--white);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-small:hover { background: var(--maroon-mid); }

.btn-outline-small {
  width: auto;
  padding: 9px 18px;
  font-size: 0.8rem;
  background: transparent;
  border: 1.5px solid var(--coral-light);
  color: var(--ink);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: border-color 0.15s ease;
}
.btn-outline-small:hover { border-color: var(--coral-deep); }

.link-copy-row { display: flex; gap: 10px; }
.link-copy-row input { flex: 1; }
.link-copy-row button { width: auto; padding: 12px 20px; white-space: nowrap; }

/* ---------- Client-facing (klant) pages ---------- */
.klant-shell {
  min-height: 100vh;
  background: var(--hero-gradient);
  display: flex;
  flex-direction: column;
}
.klant-gate {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh 5vw;
}
.klant-gate-card {
  max-width: 460px;
  width: 100%;
  background: var(--white);
  border-radius: 6px;
  padding: 44px 38px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(46, 12, 8, 0.25);
}
.klant-gate-card .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--coral-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px;
}
.klant-gate-card h1 {
  font-size: 1.3rem;
  color: var(--maroon);
  margin: 0 0 10px;
}
.klant-gate-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 26px;
}
.klant-gate-actions { display: flex; flex-direction: column; gap: 12px; }

.klant-showcase { flex: 1; padding: 10vh 5vw; }
.klant-profile { max-width: 720px; margin: 0 auto; text-align: center; }
.klant-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--coral-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  color: var(--maroon);
  font-weight: 700;
}
.klant-profile h1 { color: var(--white); font-size: 2rem; margin: 0 0 8px; }
.klant-profile .tagline { color: rgba(255,255,255,0.9); font-size: 1rem; font-weight: 300; margin: 0 0 40px; }

.klant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
  margin-top: 10px;
}
@media (max-width: 640px) {
  .klant-grid { grid-template-columns: 1fr; }
}
.klant-block {
  background: var(--white);
  border-radius: 6px;
  padding: 26px;
}
.klant-block h3 { margin: 0 0 8px; color: var(--maroon); font-size: 1.02rem; }
.klant-block p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; font-weight: 300; }

.name-row { display: flex; gap: 12px; }
.name-row .field-group { flex: 1; }

/* ---------- Admin ---------- */
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-tab {
  border: 1.5px solid var(--coral-light);
  background: var(--white);
  color: var(--ink);
  border-radius: 4px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.admin-tab.active { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.admin-tab.stub { opacity: 0.55; cursor: default; }

