/* ============================================================
   MEMBER MOBILE INTERFACE STYLES
   ============================================================ */

/* ── Mobile Shell ── */
.mobile-app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--gray-100);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ── Mobile Header ── */
.mobile-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1rem 1.25rem 0.75rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.mobile-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.mobile-header h1 { color: white; font-size: 1rem; font-weight: 700; }
.mobile-header .sub { font-size: 0.72rem; color: rgba(255,255,255,0.75); margin-top: 1px; }
.mobile-header .header-right { display: flex; gap: 0.5rem; align-items: center; }
.header-icon-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.header-icon-btn:hover { background: rgba(255,255,255,0.25); }

/* ── Mobile Member Hero ── */
.member-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.member-hero .hero-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2.5px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  overflow: hidden;
  flex-shrink: 0;
}
.member-hero .hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-hero .hero-info { flex: 1; }
.member-hero .hero-name { font-size: 1.1rem; font-weight: 700; }
.member-hero .hero-id { font-size: 0.78rem; color: rgba(255,255,255,0.75); margin-top: 2px; }
.member-hero .hero-status { display: inline-flex; align-items: center; gap: 0.25rem; background: rgba(255,255,255,0.15); padding: 2px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; margin-top: 4px; }

/* ── Mobile Quick Badges ── */
.quick-info-strip {
  background: var(--primary-dark);
  padding: 0.6rem 1.25rem;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
}
.quick-badge {
  text-align: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.85);
}
.quick-badge .qb-value { font-size: 1.1rem; font-weight: 800; color: white; display: block; }
.quick-badge .qb-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ── Mobile Nav Bar ── */
.mobile-nav {
  display: flex;
  background: var(--white);
  border-top: 1px solid var(--gray-300);
  position: sticky;
  bottom: 0;
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}
.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.55rem 0.25rem;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: var(--transition);
  border: none;
  background: none;
  gap: 0.2rem;
  position: relative;
}
.mobile-nav-item:hover { color: var(--primary); }
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item .nav-icon { font-size: 1.2rem; }
.mobile-nav-item .nav-dot {
  width: 6px; height: 6px;
  background: var(--danger);
  border-radius: 50%;
  position: absolute;
  top: 8px; right: calc(50% - 14px);
}

/* ── Mobile Content ── */
.mobile-content { flex: 1; overflow-y: auto; padding-bottom: 0.5rem; }
.mobile-section { padding: 1rem; }
.mobile-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

/* ── Mobile Cards ── */
.mobile-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-300);
  margin-bottom: 0.75rem;
}
.mobile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.mobile-card-title { font-size: 0.875rem; font-weight: 700; }

/* ── Payment Timeline ── */
.payment-timeline { list-style: none; position: relative; padding-left: 1.5rem; }
.payment-timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 2px;
  background: var(--gray-300);
}
.payment-timeline-item {
  position: relative;
  padding-bottom: 1.2rem;
}
.payment-timeline-item:last-child { padding-bottom: 0; }
.payment-timeline-item::before {
  content: '';
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gray-400);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gray-300);
  position: absolute;
  left: -1.5rem;
  top: 2px;
}
.payment-timeline-item.paid::before { background: var(--secondary); box-shadow: 0 0 0 2px #def7ec; }
.payment-timeline-item.overdue::before { background: var(--danger); box-shadow: 0 0 0 2px var(--danger-light); }
.payment-timeline-item.upcoming::before { background: var(--info); box-shadow: 0 0 0 2px var(--info-light); }
.payment-timeline-item .pt-date { font-size: 0.75rem; color: var(--gray-500); }
.payment-timeline-item .pt-label { font-size: 0.875rem; font-weight: 600; color: var(--gray-900); }
.payment-timeline-item .pt-amount { font-size: 0.875rem; font-weight: 700; }

/* ── Booking Slots Mobile ── */
.facility-list-mobile { display: flex; flex-direction: column; gap: 0.75rem; }
.facility-item-mobile {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.facility-item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  cursor: pointer;
}
.facility-item-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.facility-item-body { padding: 0 0.85rem 0.85rem; display: none; }
.facility-item-body.open { display: block; }
.slot-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin-top: 0.5rem; }
.slot-chip {
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-300);
  font-size: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  font-weight: 500;
}
.slot-chip:hover { border-color: var(--primary); color: var(--primary); }
.slot-chip.available { color: var(--secondary); border-color: #6ee7b7; }
.slot-chip.booked { background: var(--gray-100); color: var(--gray-400); cursor: not-allowed; border-color: var(--gray-200); }
.slot-chip.selected { background: var(--primary); color: white; border-color: var(--primary); }
.slot-chip.my-booking { background: var(--secondary); color: white; border-color: var(--secondary); }

/* ── Attendance History Mobile ── */
.attendance-list-mobile { display: flex; flex-direction: column; gap: 0.6rem; }
.attendance-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.85rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-300);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.attendance-item-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.attendance-item-info { flex: 1; }
.attendance-item-date { font-size: 0.8rem; font-weight: 600; }
.attendance-item-time { font-size: 0.75rem; color: var(--gray-500); }
.attendance-item-duration { font-size: 0.78rem; font-weight: 700; color: var(--primary); }

/* ── Login Screen ── */
.login-screen {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 60%, #0a2a7a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
}
.login-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}
.login-logo .logo-icon {
  width: 64px; height: 64px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: white;
  margin: 0 auto 0.75rem;
}
.login-logo h2 { font-size: 1.2rem; }
.login-logo p { font-size: 0.85rem; color: var(--gray-500); }
.pin-input-grid {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin: 1rem 0;
}
.pin-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: var(--transition);
}
.pin-dot.filled { background: var(--primary); }
.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}
.pin-key {
  height: 56px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-900);
}
.pin-key:hover { background: var(--primary-light); border-color: var(--primary); }
.pin-key:active { background: var(--primary); color: white; }
.pin-key.del { color: var(--danger); }
.pin-key.submit { background: var(--primary); color: white; border-color: var(--primary); }
.pin-key.submit:hover { background: var(--primary-dark); }

/* ── Notifications Mobile ── */
.notif-list { display: flex; flex-direction: column; gap: 0.6rem; }
.notif-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.85rem;
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.notif-item.unread { border-left: 3px solid var(--primary); }
.notif-icon { font-size: 1.1rem; margin-top: 2px; }
.notif-body { flex: 1; }
.notif-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.2rem; }
.notif-msg { font-size: 0.8rem; color: var(--gray-600); }
.notif-time { font-size: 0.7rem; color: var(--gray-400); margin-top: 0.3rem; }

/* ── Booking Confirmation ── */
.booking-confirm-sheet {
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.booking-confirm-sheet h3 { text-align: center; margin-bottom: 1rem; }

/* ── Membership Card Visual ── */
.membership-card-visual {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}
.membership-card-visual::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.membership-card-visual::before {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.mc-id { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.08em; }
.mc-name { font-size: 0.95rem; font-weight: 600; margin-top: 0.5rem; }
.mc-type { font-size: 0.72rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.08em; }
.mc-expiry { font-size: 0.75rem; opacity: 0.75; margin-top: 0.25rem; }
.mc-logo { position: absolute; top: 1.25rem; right: 1.25rem; font-size: 1.8rem; opacity: 0.6; }

/* ── Responsive adjustments ── */
@media (min-width: 481px) {
  .mobile-app { border-left: 1px solid var(--gray-300); border-right: 1px solid var(--gray-300); box-shadow: var(--shadow-lg); }
}
