/* ================================================================
   PROFILE PAGE
   ================================================================ */

/* ── Hero ── */
.pf-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1a2f55 50%, #1335de 100%);
  padding: 36px 40px 32px;
  color: white;
  position: relative;
  overflow: hidden;
}
.pf-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(37,99,235,.3) 0%, transparent 70%);
  pointer-events: none;
}
.pf-hero::after {
  content: '';
  position: absolute;
  bottom: -50px; left: 25%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(19,53,222,.15) 0%, transparent 70%);
  pointer-events: none;
}

.pf-hero-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  margin-top:50px ;
  
}

/* Avatar */
.pf-avatar {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, rgba(37,99,235,.6), rgba(30,64,175,.8));
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  letter-spacing: -1px;
  backdrop-filter: blur(8px);
}

/* Identity */
.pf-identity { flex: 1; min-width: 180px; }
.pf-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -.5px;
  word-break: break-word;
}
.pf-email {
  font-size: 13.5px;
  color: #93c5fd;
  margin: 0 0 10px;
  word-break: break-all;
}
.pf-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.pf-role-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.pf-badge-admin  { background: rgba(37,99,235,.35); color: #93c5fd; border: 1px solid rgba(37,99,235,.4); }
.pf-badge-member { background: rgba(5,150,105,.35); color: #6ee7b7; border: 1px solid rgba(5,150,105,.4); }

.pf-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}
.pf-meta-chip .material-symbols-outlined { font-size: 15px; }

/* Stats */
.pf-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}
.pf-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  min-width: 80px;
  backdrop-filter: blur(6px);
}
.pf-stat--accent {
  background: rgba(245,158,11,.15);
  border-color: rgba(245,158,11,.3);
}
.pf-stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}
.pf-stat-label {
  font-size: 10.5px;
  color: #93c5fd;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.pf-stat--accent .pf-stat-label { color: #fcd34d; }

/* ── Loading ── */
.pf-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 40px;
  gap: 16px;
  color: #64748b;
  font-size: 14px;
}
.pf-spinner {
  width: 40px; height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: pf-spin .7s linear infinite;
}
@keyframes pf-spin { to { transform: rotate(360deg); } }

/* ── Body ── */
.pf-body { padding: 28px 40px 60px; display: flex; flex-direction: column; gap: 24px; }

/* ── Upcoming strip ── */
.pf-upcoming-strip {
  background: white;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
.pf-strip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  color: white;
  font-size: 14px;
  font-weight: 600;
}
.pf-strip-header .material-symbols-outlined { font-size: 18px; color: #93c5fd; }

.pf-upcoming-cards {
  display: flex;
  flex-direction: column;
}
.pf-upcoming-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  transition: background .1s;
}
.pf-upcoming-card:last-child { border-bottom: none; }
.pf-upcoming-card:hover { background: #f8fafc; }
.pf-upcoming-dot {
  width: 9px; height: 9px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border-radius: 50%;
  flex-shrink: 0;
}
.pf-upcoming-type { font-size: 14px; font-weight: 600; color: #0f172a; }
.pf-upcoming-meta { font-size: 12px; color: #64748b; margin-top: 2px; }
.pf-upcoming-level {
  margin-left: auto;
  padding: 3px 10px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Section header ── */
.pf-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pf-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.pf-section-title .material-symbols-outlined { font-size: 20px; color: #64748b; }
.pf-section-count {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 50px;
}

/* ── Sessions grid ── */
.pf-sessions-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pf-session-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid #e8ecf4;
  border-radius: 13px;
  padding: 0 18px 0 0;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  animation: pf-slide-in .35s ease both;
}
@keyframes pf-slide-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pf-session-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15,23,42,.08);
  border-color: #c7d2e8;
}
.pf-session-card--upcoming {
  border-color: #bfdbfe;
  background: #fafcff;
}

/* Colour bar */
.pf-session-bar {
  width: 4px;
  align-self: stretch;
  flex-shrink: 0;
  border-radius: 13px 0 0 13px;
}
.pf-bar-0 { background: linear-gradient(180deg, #2563eb, #1e40af); }
.pf-bar-1 { background: linear-gradient(180deg, #059669, #047857); }
.pf-bar-2 { background: linear-gradient(180deg, #d97706, #b45309); }
.pf-bar-3 { background: linear-gradient(180deg, #dc2626, #b91c1c); }
.pf-bar-4 { background: linear-gradient(180deg, #7c3aed, #5b21b6); }

/* Icon */
.pf-session-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pf-icon-0 { background: #eff6ff; color: #2563eb; }
.pf-icon-1 { background: #f0fdf4; color: #059669; }
.pf-icon-2 { background: #fffbeb; color: #d97706; }
.pf-icon-3 { background: #fef2f2; color: #dc2626; }
.pf-icon-4 { background: #f5f3ff; color: #7c3aed; }
.pf-session-icon .material-symbols-outlined { font-size: 20px; }

/* Info */
.pf-session-info { flex: 1; min-width: 0; padding: 14px 0; }
.pf-session-type {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}
.pf-session-date,
.pf-session-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
.pf-session-date .material-symbols-outlined,
.pf-session-time .material-symbols-outlined { font-size: 13px; }

/* Right side */
.pf-session-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.pf-level {
  padding: 3px 10px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.pf-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 50px;
  white-space: nowrap;
}
.pf-status--upcoming { background: #eff6ff; color: #1d4ed8; }
.pf-status--past     { background: #f0fdf4; color: #15803d; }

/* ── Empty state ── */
.pf-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  gap: 12px;
  background: white;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
}
.pf-empty-icon-wrap {
  width: 64px; height: 64px;
  background: #f1f5f9;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
}
.pf-empty-icon-wrap .material-symbols-outlined { font-size: 32px; color: #94a3b8; }
.pf-empty-title { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0; }
.pf-empty-sub   { font-size: 13.5px; color: #64748b; margin: 0; max-width: 300px; }
.pf-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
.pf-empty-cta:hover {
  box-shadow: 0 6px 18px rgba(37,99,235,.35);
  transform: translateY(-2px);
  color: white;
}
.pf-empty-cta .material-symbols-outlined { font-size: 18px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
  .pf-hero { padding: 28px 24px; }
  .pf-body { padding: 20px 24px 48px; }
}

@media (max-width: 768px) {
  .pf-hero         { padding: 24px 16px; }
  .pf-hero-inner   { gap: 16px; }
  .pf-name         { font-size: 1.4rem; }
  .pf-stats        { margin-left: 0; width: 100%; justify-content: space-between; }
  .pf-stat         { flex: 1; padding: 10px 12px; min-width: 0; }
  .pf-stat-num     { font-size: 1.3rem; }
  .pf-body         { padding: 16px 16px 40px; gap: 16px; }

  .pf-session-card { padding-right: 12px; }
  .pf-session-right { display: none; } /* hide on mobile for space */
}

@media (max-width: 480px) {
  .pf-avatar   { width: 56px; height: 56px; font-size: 1.5rem; }
  .pf-name     { font-size: 1.2rem; }
  .pf-stat-label { font-size: 9px; }
}
/* ════════════════════════════════════════════════════════════
   ACTIVE PACKAGES STRIP
════════════════════════════════════════════════════════════ */

.pf-pkg-strip {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e8e8e8);
  border-radius: 16px;
  padding: 1.1rem 1.4rem 1.3rem;
  margin-bottom: 1.5rem;
}

.pf-active-pkg-cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.pf-active-pkg-card {
  background: var(--bg-subtle, #f7f8fa);
  border: 1px solid var(--border, #e8e8e8);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  min-width: 180px;
  flex: 1 1 180px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pf-apkg-top {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pf-apkg-sport {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent, #1e7b6b);
  background: color-mix(in srgb, var(--accent, #1e7b6b) 12%, transparent);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  align-self: flex-start;
}

.pf-apkg-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary, #111);
}

.pf-apkg-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pf-apkg-bar {
  flex: 1;
  height: 6px;
  background: var(--border, #e2e6ea);
  border-radius: 10px;
  overflow: hidden;
}

.pf-apkg-bar-fill {
  height: 100%;
  background: var(--accent, #1e7b6b);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.pf-apkg-count {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary, #111);
  white-space: nowrap;
}

.pf-apkg-count small {
  font-weight: 400;
  color: var(--text-muted, #888);
  font-size: 0.8rem;
}

.pf-apkg-expiry {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-muted, #888);
}

.pf-apkg-expiry .material-symbols-outlined {
  font-size: 14px;
}

.pf-apkg-no-exp {
  color: var(--accent, #1e7b6b);
}

/* Add Package button inside strip header */
.pf-add-pkg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--accent, #1e7b6b);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-left: auto;
}

.pf-add-pkg-btn:hover {
  background: var(--accent-dark, #155c50);
  transform: translateY(-1px);
}

.pf-add-pkg-btn .material-symbols-outlined {
  font-size: 17px;
}

/* Standalone CTA when no packages */
.pf-pkg-empty-cta {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.2rem;
}

.pf-add-pkg-btn--standalone {
  border-radius: 12px;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
}


/* ════════════════════════════════════════════════════════════
   PACKAGE SHOP
════════════════════════════════════════════════════════════ */

.pf-pkg-shop {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e8e8e8);
  border-radius: 16px;
  padding: 1.4rem;
  margin-bottom: 1.8rem;
  animation: shopSlideIn 0.28s ease;
}

@keyframes shopSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Close button inside section header */
.pf-shop-close {
  margin-left: auto;
  background: none;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted, #888);
  transition: background 0.15s, color 0.15s;
}

.pf-shop-close:hover {
  background: var(--bg-subtle, #f3f3f3);
  color: var(--text-primary, #111);
}

/* ── Sport Pills ── */
.pf-sport-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.2rem;
}

.pf-sport-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--border, #ddd);
  border-radius: 24px;
  background: var(--bg-subtle, #f7f8fa);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary, #555);
  cursor: pointer;
  transition: all 0.18s ease;
}

.pf-sport-pill .material-symbols-outlined {
  font-size: 18px;
}

.pf-sport-pill:hover {
  border-color: var(--accent, #1e7b6b);
  color: var(--accent, #1e7b6b);
  background: color-mix(in srgb, var(--accent, #1e7b6b) 6%, transparent);
}

.pf-sport-pill--active {
  background: var(--accent, #1e7b6b) !important;
  border-color: var(--accent, #1e7b6b) !important;
  color: #fff !important;
}

/* ── Package loading / hint ── */
.pf-pkg-loading,
.pf-pkg-hint,
.pf-pkg-none {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted, #999);
  font-size: 0.88rem;
  padding: 1rem 0.5rem;
}

.pf-pkg-hint .material-symbols-outlined,
.pf-pkg-none .material-symbols-outlined {
  font-size: 20px;
  opacity: 0.6;
}

/* ── Package Grid ── */
.pf-pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.pf-pkg-card {
  position: relative;
  border: 2px solid var(--border, #e2e6ea);
  border-radius: 14px;
  padding: 1.1rem 1rem 1rem;
  cursor: pointer;
  transition: all 0.18s ease;
  background: var(--bg-subtle, #f9f9f9);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pf-pkg-card:hover {
  border-color: var(--accent, #1e7b6b);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--accent, #1e7b6b) 12%, transparent);
}

.pf-pkg-card--selected {
  border-color: var(--accent, #1e7b6b) !important;
  background: color-mix(in srgb, var(--accent, #1e7b6b) 6%, #fff) !important;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent, #1e7b6b) 18%, transparent);
}

.pf-pkg-card-check {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  color: var(--accent, #1e7b6b);
  font-size: 20px;
  line-height: 1;
}

.pf-pkg-card-sessions {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent, #1e7b6b);
  line-height: 1;
}

.pf-pkg-card-sessions small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted, #888);
  margin-left: 3px;
}

.pf-pkg-card-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary, #111);
}

.pf-pkg-card-validity {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted, #888);
}

.pf-pkg-card-validity .material-symbols-outlined {
  font-size: 14px;
}

.pf-pkg-card-price {
  margin-top: auto;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #111);
  padding-top: 0.4rem;
  border-top: 1px solid var(--border, #eee);
}


/* ════════════════════════════════════════════════════════════
   PAYMENT PANEL
════════════════════════════════════════════════════════════ */

.pf-payment-panel {
  border-top: 1px solid var(--border, #eee);
  padding-top: 1.3rem;
  animation: shopSlideIn 0.22s ease;
}

.pf-payment-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #111);
  margin-bottom: 1rem;
}

.pf-payment-title .material-symbols-outlined {
  font-size: 20px;
  color: var(--accent, #1e7b6b);
}

.pf-payment-methods {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.pf-pay-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border, #ddd);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary, #555);
  transition: all 0.16s ease;
  user-select: none;
}

.pf-pay-option input[type="radio"] {
  display: none;
}

.pf-pay-option .material-symbols-outlined {
  font-size: 20px;
}

.pf-pay-option:hover {
  border-color: var(--accent, #1e7b6b);
  color: var(--accent, #1e7b6b);
}

.pf-pay-option--active {
  border-color: var(--accent, #1e7b6b) !important;
  background: color-mix(in srgb, var(--accent, #1e7b6b) 8%, #fff);
  color: var(--accent, #1e7b6b) !important;
  font-weight: 600;
}

/* ── Instapay upload ── */
.pf-instapay-upload {
  margin-bottom: 1rem;
}

.pf-instapay-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted, #888);
  margin-bottom: 0.7rem;
  line-height: 1.5;
}

.pf-instapay-hint .material-symbols-outlined {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pf-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border: 2px dashed var(--border, #ccc);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary, #666);
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}

.pf-upload-label:hover {
  border-color: var(--accent, #1e7b6b);
  background: color-mix(in srgb, var(--accent, #1e7b6b) 4%, transparent);
}

.pf-upload-label--has-file {
  border-style: solid;
  border-color: var(--accent, #1e7b6b);
  padding: 0.4rem;
}

.pf-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.pf-upload-label .material-symbols-outlined {
  font-size: 18px;
}

.pf-screenshot-thumb {
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}

.pf-upload-clear {
  display: inline-flex;
  align-items: center;
  background: none;
  border: 1px solid var(--border, #ddd);
  border-radius: 8px;
  padding: 0.3rem;
  margin-left: 0.5rem;
  cursor: pointer;
  color: var(--text-muted, #888);
  transition: background 0.15s;
  vertical-align: middle;
}

.pf-upload-clear:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #dc2626;
}

/* ── Cash note ── */
.pf-cash-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: color-mix(in srgb, var(--accent, #1e7b6b) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #1e7b6b) 25%, transparent);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.84rem;
  color: var(--text-secondary, #555);
  margin-bottom: 1rem;
}

.pf-cash-note .material-symbols-outlined {
  font-size: 18px;
  color: var(--accent, #1e7b6b);
}

/* ── Purchase summary ── */
.pf-purchase-summary {
  background: var(--bg-subtle, #f7f8fa);
  border: 1px solid var(--border, #eee);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pf-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary, #555);
}

.pf-summary-row span:last-child {
  font-weight: 600;
  color: var(--text-primary, #111);
}

.pf-summary-row--total {
  border-top: 1px solid var(--border, #e0e0e0);
  padding-top: 0.45rem;
  margin-top: 0.2rem;
}

.pf-summary-row--total span:last-child {
  font-size: 1rem;
  color: var(--accent, #1e7b6b);
  font-weight: 800;
}

/* ── Error / Success ── */
.pf-purchase-error,
.pf-purchase-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.84rem;
  margin-bottom: 0.8rem;
}

.pf-purchase-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
}

.pf-purchase-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #16a34a;
}

.pf-purchase-error .material-symbols-outlined,
.pf-purchase-success .material-symbols-outlined {
  font-size: 18px;
}

/* ── Confirm button ── */
.pf-confirm-btn {
  width: 100%;
  padding: 0.8rem;
  background: var(--accent, #1e7b6b);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
}

.pf-confirm-btn:hover:not(:disabled) {
  background: var(--accent-dark, #155c50);
  transform: translateY(-1px);
}

.pf-confirm-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.pf-confirm-btn .material-symbols-outlined {
  font-size: 20px;
}

/* ── Spinner variants ── */
.pf-spinner--sm {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

.pf-spinner--white {
  border-color: rgba(255,255,255,0.3);
  border-top-color: #fff;
}
#payment-screenshot-package {
  display: none;
}/* ================================================================
   PROFILE PAGE — BOOKINGS REDESIGN + CANCEL/EDIT
   Add this to the bottom of your existing profile.css
   ================================================================ */

/* ────────────────────────────────────────────────────────────────
   BOOKING POLICY NOTICE
──────────────────────────────────────────────────────────────── */
.pf-booking-policy {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
  padding: 14px 18px;
}

.pf-policy-icon {
  flex-shrink: 0;
  margin-top: 1px;
}
.pf-policy-icon .material-symbols-outlined {
  font-size: 20px;
  color: #d97706;
}

.pf-policy-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pf-policy-text {
  margin: 0;
  font-size: 13.5px;
  color: #78350f;
  line-height: 1.6;
}
.pf-policy-text strong { color: #92400e; }

.pf-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: #25d366;
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: background .15s, transform .15s;
}
.pf-whatsapp-btn:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
  color: #fff;
}

/* ────────────────────────────────────────────────────────────────
   SESSION CARD — REDESIGNED
──────────────────────────────────────────────────────────────── */
.pf-session-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  padding: 0 16px 0 0;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  animation: pf-slide-in .35s ease both;
  min-height: 72px;
}
.pf-session-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15,23,42,.08);
  border-color: #c7d2e8;
}
.pf-session-card--upcoming {
  border-color: #bfdbfe;
  background: #fafcff;
}
.pf-session-card--past {
  opacity: .85;
}

/* Meta row inside session info */
.pf-session-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}
.pf-session-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 20px;
  padding: 2px 8px 2px 5px;
}
.pf-session-meta-chip .material-symbols-outlined { font-size: 13px; }

/* ── Session right side ── */
.pf-session-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  flex-shrink: 0;
  min-width: 90px;
}

/* ── Action buttons ── */
.pf-session-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pf-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid;
  text-decoration: none;
  transition: background .15s, transform .12s, box-shadow .15s;
  white-space: nowrap;
}
.pf-action-btn .material-symbols-outlined { font-size: 14px; }
.pf-action-label { line-height: 1; }

.pf-action-btn--edit {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.pf-action-btn--edit:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(37,99,235,.15);
}

.pf-action-btn--cancel {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}
.pf-action-btn--cancel:hover {
  background: #fee2e2;
  border-color: #f87171;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(220,38,38,.12);
}

.pf-action-btn--whatsapp {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #16a34a;
}
.pf-action-btn--whatsapp:hover {
  background: #dcfce7;
  border-color: #86efac;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(22,163,74,.12);
  color: #16a34a;
}

/* ────────────────────────────────────────────────────────────────
   MODALS
──────────────────────────────────────────────────────────────── */
.pf-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(3px);
  animation: pf-fade-in .18s ease;
}
@keyframes pf-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pf-modal {
  background: white;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(15,23,42,.22);
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  animation: pf-modal-up .2s cubic-bezier(.34,1.56,.64,1);
  overflow: hidden;
}
@keyframes pf-modal-up {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.pf-modal-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.pf-modal-title .material-symbols-outlined { font-size: 20px; color: #2563eb; }
.pf-modal-title--danger .material-symbols-outlined { color: #dc2626; }

.pf-modal-close {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: background .12s, color .12s;
  flex-shrink: 0;
}
.pf-modal-close:hover { background: #f1f5f9; color: #0f172a; }
.pf-modal-close .material-symbols-outlined { font-size: 18px; }

.pf-modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Field groups */
.pf-modal-field-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pf-modal-field { display: flex; flex-direction: column; gap: 6px; }
.pf-modal-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #64748b;
}
.pf-modal-value {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  padding: 9px 13px;
  background: #f8fafc;
  border: 1px solid #e8ecf4;
  border-radius: 9px;
}
.pf-modal-input {
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  padding: 9px 13px;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  width: 100%;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.pf-modal-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* Confirm text (cancel modal) */
.pf-modal-confirm-text {
  font-size: 14.5px;
  color: #334155;
  line-height: 1.7;
  margin: 0 0 8px;
}
.pf-modal-confirm-sub {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
}

.pf-cancel-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 16px;
  padding: 14px;
  background: #fff7f7;
  border: 1px solid #fee2e2;
  border-radius: 12px;
}

.pf-cancel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pf-cancel-key {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .45px;
  color: #64748b;
}

.pf-cancel-value {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  text-align: right;
  word-break: break-word;
}

/* Error / success in modal */
.pf-modal-error,
.pf-modal-success {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 13px;
  margin-top: 12px;
}
.pf-modal-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
}
.pf-modal-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #16a34a;
}
.pf-modal-error .material-symbols-outlined,
.pf-modal-success .material-symbols-outlined { font-size: 17px; }

/* Footer */
.pf-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px 20px;
  border-top: 1px solid #f1f5f9;
  background: white;
  flex-shrink: 0;
}

.pf-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .12s, opacity .15s;
  border: none;
  font-family: inherit;
}
.pf-modal-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
}

.pf-modal-btn--ghost {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.pf-modal-btn--ghost:hover:not(:disabled) {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.pf-modal-btn--primary {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
}
.pf-modal-btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}

.pf-modal-btn--danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
}
.pf-modal-btn--danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220,38,38,.3);
}

.pf-modal-btn .pf-spinner {
  display: inline-block;
  margin-right: 4px;
}

/* Danger modal accent */
.pf-modal--danger .pf-modal-header {
  border-bottom-color: #fee2e2;
  background: #fff5f5;
}

/* ────────────────────────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .pf-session-right { min-width: 70px; }
  .pf-action-label  { display: none; }
  .pf-action-btn    { padding: 5px 7px; }

  .pf-modal { border-radius: 14px; }
  .pf-modal-footer { flex-direction: column-reverse; }
  .pf-modal-btn    { width: 100%; justify-content: center; }

  .pf-booking-policy { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
  .pf-session-meta-row { gap: 5px; }
  .pf-session-meta-chip { font-size: 10.5px; }
}
