.member-title { font-size: 16px; font-weight: 700; flex: 1; text-align: center; }
.btn-back, .btn-text {
  background: none; border: none; font-size: 14px; cursor: pointer;
  color: var(--accent); padding: 8px 4px; text-decoration: none;
}
.btn-text { color: var(--muted); }
.loading-box { text-align: center; padding: 48px 20px; color: var(--muted); }
.spinner {
  display: inline-block; width: 20px; height: 20px; vertical-align: middle;
  border: 2px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .7s linear infinite; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.profile-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-bottom: 24px;
}
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.profile-avatar.placeholder {
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
}
.profile-info h2 { font-size: 18px; font-weight: 700; }
.profile-edit-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-bottom: 20px;
}
.profile-form { display: flex; flex-direction: column; gap: 12px; }
.profile-form .field { display: flex; flex-direction: column; gap: 6px; }
.profile-form .field > span { font-size: 13px; font-weight: 600; color: var(--ink); }
.profile-form .input { width: 100%; }
.input-readonly {
  background: #f9fafb; color: var(--muted); cursor: not-allowed;
}
.field-hint { font-size: 11px; line-height: 1.4; }
.section-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.member-passport-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px;
}
.mp-stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; text-align: center;
}
.mp-num { display: block; font-size: 18px; font-weight: 700; }
.mp-lbl { font-size: 12px; color: var(--muted); }

.apt-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
}
.apt-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.apt-body { font-size: 13px; color: var(--muted); margin-top: 6px; }
.apt-status {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px;
  background: #f3f4f6; color: var(--muted);
}
.apt-status.status-confirmed { background: #ecfdf5; color: #059669; }
.apt-status.status-pending_deposit { background: #fff7ed; color: #c2410c; }
.apt-status.status-cancelled { background: #fef2f2; color: #b91c1c; }
.empty-msg { text-align: center; padding: 24px; }
.empty-msg a { color: var(--accent); }

.section-note { font-size: 12px; margin: -6px 0 12px; }
.apt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.btn-sm {
  padding: 8px 12px; font-size: 12px; font-weight: 600; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.btn-sm.btn-danger { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.btn-sm.btn-line-contact {
  background: #06c755; color: #fff; border-color: #06c755; text-decoration: none;
}
.apt-hint { font-size: 11px; line-height: 1.4; }

.modal.hidden { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.modal-panel {
  position: relative; max-width: 400px; margin: 8vh auto; background: #fff;
  border-radius: 16px; padding: 20px; max-height: 85vh; overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}
.modal-panel h3 { font-size: 18px; margin-bottom: 8px; }
.modal-actions { display: flex; gap: 8px; margin-top: 16px; }
.modal-actions .btn { flex: 1; margin-top: 0; }
.cal-toolbar.compact { margin-bottom: 8px; }
.cal-weekdays.compact { margin-bottom: 4px; }
#rsSlotList { margin-top: 12px; }

.login-panel.compact { padding: 24px 0; }
