:root {
  --green: #2e9e6a;
  --yellow: #e8b931;
  --red: #c0392b;
}
.mein-bereich {
  min-height: 100vh;
  background: var(--deep);
  padding: 0 0 3rem 0;
}

/* Top Bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.top-bar h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gold);
  margin: 0;
}
.top-bar .user-info {
  font-size: .78rem;
  color: var(--muted);
}
.btn-logout {
  background: none;
  border: 1px solid rgba(242,237,228,.15);
  color: var(--muted);
  font-family: 'Outfit', sans-serif;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem .8rem;
  cursor: pointer;
  margin-left: .8rem;
}
.btn-logout:hover { color: var(--gold); border-color: var(--gold); }

/* Content area */
.content {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--salt);
  margin-bottom: 1rem;
}
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-size: .88rem;
}
.empty-state .icon { font-size: 2.5rem; margin-bottom: .8rem; }

/* Match Cards */
.match-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.match-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.2rem 1.4rem;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.match-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.match-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: .6rem;
}
.match-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--salt);
  margin: 0;
}
.match-score {
  font-size: .9rem;
  font-weight: 500;
  padding: .15rem .6rem;
  border-radius: 2px;
}
.score-green  { background: rgba(46,158,106,.15); color: var(--green); border: 1px solid rgba(46,158,106,.3); }
.score-yellow { background: rgba(232,185,49,.15); color: var(--yellow); border: 1px solid rgba(232,185,49,.3); }
.score-red    { background: rgba(192,57,43,.15); color: var(--red); border: 1px solid rgba(192,57,43,.3); }

.match-details {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .8rem;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .8rem;
}
.match-details span::before {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: .4rem;
  vertical-align: middle;
}
.match-countdown {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8rem;
}
.match-countdown.urgent { color: var(--red); }

.match-actions {
  display: flex;
  gap: .6rem;
}
.btn-accept {
  flex: 1;
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: .6rem;
  font-family: 'Outfit', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 44px;
}
.btn-decline {
  background: rgba(192,57,43,.1);
  color: var(--red);
  border: 1px solid rgba(192,57,43,.3);
  padding: .6rem 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: .85rem;
  cursor: pointer;
  min-height: 44px;
}

/* Confirmed Matches */
.confirmed-card {
  background: rgba(46,158,106,.05);
  border: 1px solid rgba(46,158,106,.2);
  padding: 1rem 1.2rem;
}
.confirmed-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--green);
  font-size: .95rem;
  font-weight: 400;
  margin: 0 0 .4rem 0;
}
.confirmed-card .crew-list {
  font-size: .78rem;
  color: var(--muted);
}

/* Profile Section */
.profile-section {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.profile-item {
  font-size: .78rem;
  color: var(--muted);
  padding: .3rem 0;
}
.profile-item strong {
  color: var(--salt);
  display: block;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .1rem;
}

/* Suchprofil */
.suchprofil-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.4rem;
  margin-top: 1rem;
}
.suchprofil-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .6rem;
}
.sp-tag {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid rgba(200,168,75,.3);
  color: var(--gold);
  padding: .22rem .65rem;
}
.sp-label {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .8rem;
  margin-bottom: .2rem;
}
.sp-quick-chip {
  font-size: .78rem;
  color: var(--salt);
  text-decoration: none;
  border: 1px solid rgba(242,237,228,.18);
  background: rgba(242,237,228,.04);
  padding: .35rem .8rem;
  transition: border-color .15s, color .15s, background .15s;
}
.sp-quick-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200,168,75,.1);
}

/* Notification Toggle */
.notification-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.notification-row:last-child { border-bottom: none; }
.notif-label { font-size: .82rem; }
.notif-sub { font-size: .72rem; color: var(--muted); margin-top: .1rem; }
.toggle-wrap { display: flex; align-items: center; gap: .5rem; }
.toggle {
  position: relative; width: 40px; height: 22px; cursor: pointer;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: rgba(242,237,228,.15);
  border: 1px solid var(--line);
  transition: background .3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  background: var(--muted);
  transition: left .3s, background .3s;
}
.toggle input:checked + .toggle-slider { background: rgba(200,168,75,.25); border-color: rgba(200,168,75,.4); }
.toggle input:checked + .toggle-slider::before { left: 21px; background: var(--gold); }
.toggle-status { font-size: .7rem; color: var(--muted); min-width: 30px; }

/* GAP-P6: Referral Section */
.referral-section .referral-intro {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.referral-code-box {
  background: var(--card);
  border: 1px solid rgba(200,168,75,.35);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}
.referral-code-label {
  display: block;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.referral-code-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}
.referral-code {
  font-family: 'Outfit', monospace;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: .25em;
  color: var(--gold);
}
.btn-copy {
  background: none;
  border: 1px solid rgba(200,168,75,.45);
  color: var(--gold);
  font-family: 'Outfit', sans-serif;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  min-height: 36px;
}
.btn-copy:hover {
  background: rgba(200,168,75,.1);
  border-color: var(--gold);
}
.referral-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.referral-stat {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  padding: .8rem .5rem;
  text-align: center;
}
.referral-stat-val {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--salt);
  margin-bottom: .25rem;
}
.referral-stat-lbl {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}
.referral-hint {
  font-size: .68rem;
  color: var(--muted);
  opacity: .7;
  line-height: 1.5;
  margin-top: .5rem;
}

/* GAP-34: Received-discount badge */
.referral-received {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .75rem;
  padding: .5rem .75rem;
  background: rgba(72,199,116,.08);
  border: 1px solid rgba(72,199,116,.25);
  border-radius: 6px;
  font-size: .78rem;
}
.referral-received-label {
  color: var(--muted);
}
.referral-received-code {
  font-weight: 600;
  color: var(--text);
  font-family: monospace;
  letter-spacing: .05em;
}
.referral-received-savings {
  color: #48c774;
  font-weight: 500;
}

/* GAP-10: Contact lock / unlock hints */
.contact-lock-hint {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  background: rgba(200,168,75,.06);
  border: 1px solid rgba(200,168,75,.25);
  padding: .8rem 1rem;
  margin-top: .8rem;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
}
.contact-lock-hint .lock-icon { font-size: 1.1rem; flex-shrink: 0; }
.contact-lock-hint strong { color: var(--salt); display: block; margin-bottom: .25rem; }
.contact-unlock-hint {
  font-size: .75rem;
  color: var(--green);
  margin-top: .6rem;
  letter-spacing: .04em;
}
.btn-pay-deposit {
  display: inline-block;
  margin-top: .5rem;
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: .45rem .9rem;
  font-family: 'Outfit', sans-serif;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  min-height: 36px;
  transition: opacity .2s;
}
.btn-pay-deposit:disabled { opacity: .45; cursor: not-allowed; }
.btn-pay-deposit:hover:not(:disabled) { opacity: .85; }

/* GAP-29: Charter-Payment Hint */
.charter-payment-hint {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  background: rgba(78,207,148,.06);
  border: 1px solid rgba(78,207,148,.3);
  padding: .8rem 1rem;
  margin-top: .8rem;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
}
.charter-payment-hint .charter-icon { font-size: 1.1rem; flex-shrink: 0; }
.charter-payment-hint strong { color: var(--salt); display: block; margin-bottom: .25rem; }

/* GAP-10: Rejection Warning */
.rejection-warning {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(192,57,43,.08);
  border: 1px solid rgba(192,57,43,.3);
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  font-size: .82rem;
  color: var(--salt);
}
.rejection-warning .icon { font-size: 1.3rem; flex-shrink: 0; }

/* GAP-11: Digital Signature */
.signature-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.4rem;
  margin-bottom: 1rem;
}
.signature-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  font-weight: 400;
  color: var(--salt);
  margin: 0 0 .4rem 0;
}
.signature-checkbox {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .8rem;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.signature-checkbox input { flex-shrink: 0; margin-top: .15rem; accent-color: var(--gold); }
.btn-sign {
  width: 100%;
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: .65rem 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: .82rem;
  letter-spacing: .08em;
  cursor: pointer;
  min-height: 44px;
  transition: opacity .2s;
}
.btn-sign:disabled { opacity: .4; cursor: not-allowed; }
.sign-timestamp {
  font-size: .72rem;
  color: var(--green);
  margin-top: .6rem;
}

/* Push Notification Opt-in (GAP-08) */
.push-opt-in {
  background: var(--panel, #1a2233);
  border: 1px solid var(--line, #2a3248);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.push-opt-in .push-icon { font-size: 1.4rem; flex-shrink: 0; }
.push-opt-in-text { flex: 1; min-width: 180px; }
.push-opt-in-text strong { display: block; font-size: .88rem; color: var(--light, #e8eaf0); margin-bottom: .2rem; }
.push-opt-in-text span { font-size: .78rem; color: var(--muted, #8899aa); }
.btn-push-subscribe {
  background: var(--gold, #e8b931);
  color: var(--ink, #0d1626);
  border: none;
  padding: .5rem 1rem;
  border-radius: 5px;
  font-size: .82rem;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  letter-spacing: .06em;
  min-height: 40px;
  white-space: nowrap;
  transition: opacity .2s;
}
.btn-push-subscribe:disabled { opacity: .5; cursor: not-allowed; }
.btn-push-subscribe.subscribed {
  background: var(--green, #2e9e6a);
  color: #fff;
}

/* GAP-14: Profil-Stornierung */
.sp-cancel-row {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sp-cancel-hint {
  font-size: .76rem;
  color: var(--muted, #8899aa);
  margin: 0 0 .6rem;
  line-height: 1.5;
}
.btn-cancel-profile {
  background: transparent;
  color: #c0392b;
  border: 1px solid rgba(192,57,43,.5);
  padding: .4rem .9rem;
  border-radius: 5px;
  font-size: .78rem;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  letter-spacing: .06em;
  transition: background .2s, color .2s;
}
.btn-cancel-profile:hover:not(:disabled) {
  background: rgba(192,57,43,.12);
}
.btn-cancel-profile:disabled { opacity: .45; cursor: not-allowed; }
.profile-cancelled-badge {
  display: inline-block;
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(192,57,43,.15);
  color: #c0392b;
  border: 1px solid rgba(192,57,43,.3);
  border-radius: 4px;
  padding: .15rem .45rem;
  margin-left: .5rem;
  vertical-align: middle;
}
.sp-cancelled-info {
  margin-top: 1rem;
  padding: .6rem .75rem;
  background: rgba(192,57,43,.07);
  border: 1px solid rgba(192,57,43,.2);
  border-radius: 6px;
  font-size: .76rem;
  color: #c0392b;
}

/* GAP-63: Crew-Stornierung */
.match-cancel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .9rem;
  padding-top: .7rem;
  border-top: 1px solid rgba(242,237,228,.1);
  flex-wrap: wrap;
}
.cancel-policy-hint {
  font-size: .72rem;
  color: rgba(242,237,228,.5);
  line-height: 1.5;
  flex: 1;
  min-width: 0;
}
.btn-crew-cancel {
  font-size: .73rem;
  padding: .35rem .8rem;
  background: transparent;
  color: rgba(192,57,43,.85);
  border: 1px solid rgba(192,57,43,.35);
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.btn-crew-cancel:hover:not(:disabled) {
  background: rgba(192,57,43,.1);
  color: #c0392b;
}
.btn-crew-cancel:disabled {
  opacity: .45;
  cursor: not-allowed;
}
