/* ============================================================
   PADEL PLANNER — Apple-achtig design
   ============================================================ */

:root {
  --bg:               #F2F2F7;
  --surface:          #FFFFFF;
  --separator:        rgba(60, 60, 67, 0.12);
  --separator-opaque: #C6C6C8;

  --green:      #34C759;
  --green-dark: #248A3D;
  --green-tint: rgba(52, 199, 89, 0.12);
  --blue:       #007AFF;
  --red:        #FF3B30;
  --orange:     #FF9500;
  --indigo:     #5856D6;

  --text:   #000000;
  --text-2: rgba(60, 60, 67, 0.60);
  --text-3: rgba(60, 60, 67, 0.30);

  --radius:    12px;
  --radius-sm: 10px;
  --tab-bar-h: 83px;
  --nav-bar-h: 56px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ══════════════════════════════════════════════
   AUTH
══════════════════════════════════════════════ */
#auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(160deg, #1a4731 0%, #2e7d52 50%, #4cae72 100%);
}

.auth-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 36px 24px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.auth-logo     { font-size: 3.2rem; text-align: center; margin-bottom: 8px; }
.auth-title    { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; text-align: center; }
.auth-subtitle { color: var(--text-2); font-size: .9rem; text-align: center; margin: 4px 0 24px; }

/* Segmented control */
.seg-control {
  display: flex;
  background: var(--bg);
  border-radius: 9px;
  padding: 2px;
  margin-bottom: 20px;
}
.seg-btn {
  flex: 1;
  padding: 6px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
  font-family: inherit;
}
.seg-btn.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.btn-forgot {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--blue);
  font-size: .9rem;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  padding: 10px 0 2px;
}

/* Level picker — tijdelijk verborgen */
.level-section, .level-pill, .status-level, .p-level { display: none !important; }
.level-section { margin-bottom: 16px; }
.level-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.level-scale { font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: 6px; }

.level-picker { display: flex; gap: 4px; }
.level-btn {
  flex: 1;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--separator-opaque);
  background: var(--surface);
  color: var(--text-2);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .12s;
  font-family: inherit;
}
.level-btn:hover    { border-color: var(--green); color: var(--green); }
.level-btn.selected { background: var(--green); border-color: var(--green); color: #fff; }

/* ══════════════════════════════════════════════
   GROUPED FIELDS (iOS settings style)
══════════════════════════════════════════════ */
.field-group {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.field-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--separator);
  min-height: 44px;
}
.field-row:last-child { border-bottom: none; }

.field-row label:not(.toggle) {
  font-size: .95rem;
  color: var(--text);
  min-width: 120px;
  flex-shrink: 0;
}
.field-row input,
.field-row textarea {
  flex: 1;
  border: none;
  outline: none;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: transparent;
  text-align: left;
}
.field-row input::placeholder,
.field-row textarea::placeholder { color: var(--text-3); }
.field-row textarea { resize: none; }
.field-row span { flex: 1; text-align: right; font-size: .95rem; color: var(--text-2); }
.time-select {
  flex: 1;
  border: none;
  outline: none;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: transparent;
  text-align: right;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.section-header {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 0 4px 6px;
  margin: 8px 0 4px;
}
.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 4px 6px;
  margin: 8px 0 4px;
}
.history-count {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-2);
}

.inline-error {
  background: rgba(255, 59, 48, .1);
  color: var(--red);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .88rem;
  margin-bottom: 14px;
}

/* Bewerkbare rij: potlood via label ::after */
.field-row--editable label::after {
  content: " ✏︎";
  font-size: .75em;
  color: var(--text-2);
}
.field-row--editable input {
  color: var(--blue);
}

/* Toast melding */
.toast {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(50, 50, 50, 0.92);
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 20px;
  white-space: nowrap;
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  transition: opacity .4s ease;
}
.toast.hidden { display: none; }
.toast.fade-out { opacity: 0; }

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  font-family: inherit;
  text-decoration: none;
}
.btn:active { transform: scale(.97); opacity: .85; }
.btn-full   { width: 100%; }

.btn-primary            { background: var(--green); color: #fff; }
.btn-outline            { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-destructive-outline { background: rgba(255, 59, 48, 0.08); color: var(--red); border: 1.5px solid var(--red); }
.btn-destructive        { background: none; border: none; color: var(--red); font-size: .95rem; font-weight: 500; font-family: inherit; cursor: pointer; padding: 0; }
.btn-whatsapp           { background: #25D366; color: #fff; }

/* ══════════════════════════════════════════════
   APP LAYOUT
══════════════════════════════════════════════ */
#app-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nav-bar {
  height: var(--nav-bar-h);
  background: rgba(242, 242, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--separator);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}
.nav-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }

.nav-action {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--green);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s;
  font-family: inherit;
}
.nav-action:active { opacity: .75; }

/* Text-only nav action (Wijzig) */
.nav-action.nav-text {
  width: auto;
  background: none;
  color: var(--green);
  border-radius: 0;
  font-size: .95rem;
  font-weight: 600;
  padding: 0;
}

.scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px calc(var(--tab-bar-h) + 8px);
  -webkit-overflow-scrolling: touch;
}

/* ══════════════════════════════════════════════
   BOTTOM TAB BAR
══════════════════════════════════════════════ */
.bottom-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tab-bar-h);
  background: rgba(249, 249, 249, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--separator);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 100;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding-top: 8px;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-size: .65rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: color .15s;
  letter-spacing: .01em;
}
.tab-item.active { color: var(--green); }
.tab-icon { width: 24px; height: 24px; }

/* ══════════════════════════════════════════════
   FILTER BAR
══════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 10px 16px 6px;
  flex-shrink: 0;
}
.filter-group {
  display: flex;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--separator-opaque);
}
.filter-btn {
  flex: 1;
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: .82rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.filter-btn.active {
  background: var(--green);
  color: #fff;
  font-weight: 600;
}

/* ══════════════════════════════════════════════
   BOOKING CARDS
══════════════════════════════════════════════ */
.cards-list { display: flex; flex-direction: column; gap: 10px; }

.booking-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  box-shadow: 0 1px 0 var(--separator), 0 2px 8px rgba(0,0,0,.04);
  transition: transform .1s, box-shadow .1s;
  -webkit-tap-highlight-color: transparent;
}
.booking-card:active { transform: scale(.985); box-shadow: 0 1px 0 var(--separator); }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-chevron { color: var(--text-3); font-size: 1.2rem; font-weight: 300; }

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: .82rem;
  color: var(--text-2);
  margin-bottom: 12px;
}

.card-spots {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
}

.spot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
}
.spot-player    { background: var(--green-dark); color: #fff; font-size: .65rem; background-size: cover; background-position: center; }
.spot-empty     { background: var(--bg); border: 1.5px solid var(--separator-opaque); color: var(--text-3); }
.booking-card--full { opacity: 0.5; filter: saturate(0.3); }

.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.status-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.status-joined  { background: var(--green-tint);         color: var(--green-dark); }
.status-extra   { background: rgba(255,149,0,.12);        color: #a05800; }
.status-full    { background: rgba(255,59,48,.10);        color: var(--red); }
.status-open    { background: var(--green-tint);          color: var(--green-dark); }
.status-level   { background: rgba(88,86,214,.10);        color: var(--indigo); }
.status-private { background: rgba(60,60,67,.08);         color: var(--text-2); }

/* Toggle switch (iOS-stijl) */
.toggle { position: relative; display: inline-block; width: 51px; height: 31px; flex-shrink: 0; margin-left: auto; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute; inset: 0; border-radius: 16px;
  background: var(--separator-opaque);
  transition: background .2s;
}
.toggle input:checked + .toggle-track { background: var(--green); }
.toggle-track::after {
  content: '';
  position: absolute;
  width: 27px; height: 27px;
  left: 2px; top: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.25);
  transition: transform .2s;
}
.toggle input:checked + .toggle-track::after { transform: translateX(20px); }

.pay-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 64px 24px; }
.empty-icon  { font-size: 4rem; margin-bottom: 16px; }
.empty-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.empty-sub   { color: var(--text-2); font-size: .9rem; margin-bottom: 24px; }

/* ══════════════════════════════════════════════
   SHEET (modal bottom-sheet)
══════════════════════════════════════════════ */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: flex-end;
  z-index: 200;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUp .25s cubic-bezier(.32,.72,0,1);
}
.sheet-tall { max-height: 92vh; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--separator-opaque);
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
  flex-shrink: 0;
}
.sheet-title  { font-size: 1rem; font-weight: 700; }
.sheet-cancel { background: none; border: none; color: var(--text-2); font-size: .95rem; font-family: inherit; cursor: pointer; padding: 4px 0; min-width: 60px; }
.sheet-done   { background: none; border: none; color: var(--green);   font-size: .95rem; font-weight: 600; font-family: inherit; cursor: pointer; padding: 4px 0; min-width: 60px; text-align: right; }

.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 16px 20px;
  -webkit-overflow-scrolling: touch;
}
.sheet-actions {
  padding: 8px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   DETAIL INHOUD
══════════════════════════════════════════════ */
.hint-row { font-size: .8rem; color: var(--text-2); font-style: italic; }

.p-player { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.p-icon  { font-size: .95rem; flex-shrink: 0; }
.p-avatar { display: inline-block; width: 22px; height: 22px; min-width: 22px; min-height: 22px; border-radius: 50%; background-size: cover; background-position: center; flex: none !important; align-self: center; }
.p-level { margin-left: auto; font-size: .78rem; color: var(--text-2); background: var(--bg); padding: 2px 7px; border-radius: 10px; }
.p-empty { color: var(--text-3); }

/* Gast-rij */
.guest-icon { font-size: .9rem; }
.guest-badge {
  font-size: .7rem; font-weight: 600; letter-spacing: .02em;
  background: rgba(255,149,0,.13); color: #a05800;
  padding: 1px 6px; border-radius: 8px;
}
.guest-remove-btn {
  margin-left: auto; flex-shrink: 0;
  background: none; border: none; cursor: pointer;
  font-size: .85rem; color: var(--text-3); padding: 4px 6px;
  border-radius: 6px; line-height: 1;
}
.guest-remove-btn:hover { background: rgba(255,59,48,.1); color: var(--red); }

/* Gast toevoegen */
.add-guest-toggle-row { cursor: pointer; }
.add-guest-label { color: var(--green); font-size: .95rem; font-weight: 500; }
.add-guest-form { background: var(--bg); border-radius: 0 0 12px 12px; }
.add-guest-form .field-row:last-of-type { border-bottom: none; }

.paid-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-dark);
  font-weight: 600;
  font-size: .9rem;
}

.btn-pay-full {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
}
.btn-pay-full:active { opacity: .8; }

.btn-mark-paid {
  background: none;
  border: none;
  color: var(--green);
  font-size: .9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

/* ══════════════════════════════════════════════
   PROFIEL SCHERM
══════════════════════════════════════════════ */
.profile-hero {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  box-shadow: 0 1px 0 var(--separator);
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-info  { flex: 1; min-width: 0; }
.profile-name-row { display: flex; align-items: center; gap: 6px; }
.profile-name  { font-size: 1rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-edit-btn {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; padding: 2px;
  color: var(--text-2); cursor: pointer;
  opacity: .7;
}
.profile-edit-btn:active { opacity: 1; }
.profile-username { font-size: .85rem; color: var(--text-2); margin-top: 2px; }

.level-pill {
  background: rgba(88,86,214,.12);
  color: var(--indigo);
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Avatar edit sectie */
.avatar-edit-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 16px;
  gap: 10px;
}
.avatar-edit-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}
.avatar-edit-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  background-size: cover;
  background-position: center;
}
.avatar-edit-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-edit-btn {
  background: none;
  border: none;
  color: var(--blue);
  font-size: .9rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

/* Welkomst avatar upload */
.welcome-avatar-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  cursor: pointer;
  margin: 24px auto 0;
}
.welcome-avatar-preview {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
  background-size: cover;
  background-position: center;
}
.welcome-avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

/* Geschiedenis */
.history-row  { display: flex; align-items: center; gap: 10px; }
.history-info    { flex: 1; min-width: 0; padding: 2px 0; }
.history-title   { font-size: .95rem; font-weight: 600; }
.history-meta    { font-size: .8rem; color: var(--text-2); margin-top: 3px; }
.history-players { font-size: .78rem; color: var(--text-2); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; }
.history-empty   { color: var(--text-2); font-size: .9rem; }

.role-tag    { font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
.role-player { background: var(--green-tint);   color: var(--green-dark); }
.role-extra  { background: rgba(255,149,0,.12); color: #a05800; }

/* Niet-betaald */
.unpaid-row    { display: flex; align-items: center; gap: 10px; }
.unpaid-info   { flex: 1; min-width: 0; }
.unpaid-title  { font-size: .92rem; font-weight: 600; color: var(--red); }
.unpaid-meta   { font-size: .78rem; color: var(--text-2); margin-top: 2px; }
.unpaid-actions { flex-shrink: 0; display: flex; gap: 6px; align-items: center; }

.btn-pay-small {
  background: var(--orange);
  color: #fff;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  padding: 5px 12px;
  text-decoration: none;
  display: inline-block;
  transition: opacity .15s;
}
.btn-pay-small:active { opacity: .8; }

.btn-paid-manual {
  background: transparent;
  color: var(--text-2);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  transition: opacity .15s;
}
.btn-paid-manual:active { opacity: .8; }

/* ══════════════════════════════════════════════
   CONFIRM DIALOG
══════════════════════════════════════════════ */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
}
.confirm-overlay.hidden { display: none; }
.confirm-dialog {
  background: var(--surface);
  border-radius: 16px;
  width: min(320px, calc(100vw - 48px));
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.confirm-title {
  font-size: 1.05rem; font-weight: 600;
  text-align: center; padding: 20px 20px 4px;
}
.confirm-msg {
  font-size: .9rem; color: var(--text-2);
  text-align: center; padding: 0 20px 20px;
  line-height: 1.4;
}
.confirm-actions {
  display: flex; border-top: 1px solid var(--separator);
}
.confirm-btn {
  flex: 1; border: none; background: none; padding: 14px;
  font-size: 1rem; cursor: pointer; transition: background .15s;
}
.confirm-btn:active { background: var(--bg); }
.confirm-cancel { color: var(--text-1); border-right: 1px solid var(--separator); }
.confirm-ok     { color: var(--red); font-weight: 600; }

/* ══════════════════════════════════════════════
   ADMIN PANEL
══════════════════════════════════════════════ */
.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.admin-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: 0 1px 0 var(--separator);
}
.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: -.02em;
}
.stat-label {
  font-size: .78rem;
  color: var(--text-2);
  font-weight: 500;
  margin-top: 2px;
}

.admin-user-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-user-info { flex: 1; min-width: 0; }
.admin-user-name { font-size: .95rem; font-weight: 600; }
.admin-user-meta { font-size: .78rem; color: var(--text-2); margin-top: 2px; }
.admin-user-actions { display: flex; gap: 6px; flex-shrink: 0; }
.admin-btn-sm {
  background: none;
  border: 1.5px solid var(--separator-opaque);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: .78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .12s;
}
.admin-btn-sm:active { opacity: .7; }
.admin-btn-reset { color: var(--blue); border-color: var(--blue); }
.admin-btn-delete { color: var(--red); border-color: var(--red); }
.admin-btn-admin { color: var(--indigo); border-color: var(--indigo); }
.admin-badge {
  font-size: .68rem;
  font-weight: 700;
  background: rgba(88,86,214,.12);
  color: var(--indigo);
  padding: 2px 7px;
  border-radius: 8px;
  margin-left: 6px;
}

.admin-booking-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform .1s;
}
.admin-booking-card:active { transform: scale(.985); }
.admin-booking-info { flex: 1; min-width: 0; }
.admin-booking-title { font-size: .95rem; font-weight: 600; }
.admin-booking-meta { font-size: .78rem; color: var(--text-2); margin-top: 2px; }
.admin-booking-count {
  font-size: .82rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-tint);
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}
