/* ===========================
   🌸 MySitter — Clean, Soft, Cozy
   =========================== */

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

:root {
  --pink-light: #FFF0F5;
  --pink-soft: #FFE4EE;
  --pink-mid: #FFB6D3;
  --lavender: #E8D5F5;
  --lavender-soft: #F3E8FF;
  --peach: #FFE5D9;
  --mint: #D5F0E8;
  --cream: #FFF8F0;
  --white-glass: rgba(255, 255, 255, 0.35);
  --white-glass-strong: rgba(255, 255, 255, 0.55);
  --text-dark: #4A3347;
  --text-mid: #6B5066;
  --text-light: #8E7488;
  --shadow-soft: 0 8px 32px rgba(180, 140, 170, 0.15);
  --shadow-glow: 0 4px 20px rgba(255, 182, 211, 0.25);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
}

html, body { height: 100%; overflow: hidden; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  background: linear-gradient(135deg, #FFF5F9 0%, #F5EEFF 50%, #FFF0EB 100%);
  -webkit-font-smoothing: antialiased;
}

/* ===== APP CONTAINER ===== */
.app-container {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
}

/* ===== BLOBS ===== */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: blobFloat 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.blob-1 { width: 200px; height: 200px; background: var(--pink-soft); top: -40px; left: -60px; }
.blob-2 { width: 250px; height: 250px; background: var(--lavender-soft); bottom: 10%; right: -80px; animation-delay: -3s; }
.blob-3 { width: 180px; height: 180px; background: var(--peach); bottom: -30px; left: 20%; animation-delay: -5s; }

@keyframes slideDown { from { opacity: 0; transform: translateX(-50%) translateY(-20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, -20px) scale(1.08); }
  100% { transform: translate(-10px, 10px) scale(0.95); }
}

/* ===== SCREENS ===== */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(0.97);
  z-index: 1;
}
.screen.active { opacity: 1; pointer-events: all; transform: scale(1); }

/* ===== AUTH ===== */
.auth-content {
  width: 100%;
  padding: 40px 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}
.logo-section { text-align: center; margin-bottom: 36px; }
.logo-icon { font-size: 56px; margin-bottom: 12px; filter: drop-shadow(0 4px 12px rgba(255,182,211,0.3)); animation: logoBounce 3s ease-in-out infinite; }
@keyframes logoBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.app-title { font-size: 36px; font-weight: 800; letter-spacing: -0.5px; }
.app-title .dot { color: var(--pink-mid); }
.tagline { font-size: 15px; color: var(--text-light); font-weight: 600; margin-top: 6px; line-height: 1.5; }

.auth-panel { display: none; flex-direction: column; align-items: center; animation: fadeSlideIn 0.4s ease; }
.auth-panel.visible { display: flex; }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.panel-title { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 24px; }
.auth-form { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 14px; }

/* ===== GLASS INPUTS ===== */
.glass-input {
  width: 100%;
  padding: 16px 20px;
  background: var(--white-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  outline: none;
  transition: all 0.3s ease;
}
.glass-input::placeholder { color: var(--text-light); font-weight: 600; }
.glass-input:focus { background: var(--white-glass-strong); border-color: var(--pink-mid); box-shadow: var(--shadow-glow); }

/* ===== ROLE SWITCH (Sign Up) ===== */
.signup-role-switch {
  width: 100%;
  max-width: 340px;
  margin-bottom: 18px;
}
.role-switch-label {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 10px;
}
.role-switch-track {
  display: flex;
  background: var(--white-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  padding: 4px;
  position: relative;
  overflow: hidden;
}
.role-switch-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Nunito', sans-serif;
}
.role-switch-option .role-switch-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  transition: color 0.3s ease;
}
.role-switch-option.active .role-switch-text {
  color: var(--text-dark);
  font-weight: 800;
}
.role-switch-option.active {
  background: linear-gradient(135deg, rgba(255,182,211,0.45), rgba(232,213,245,0.45));
  box-shadow: 0 2px 8px rgba(255,182,211,0.15);
}

/* ===== EMAIL VERIFICATION ===== */
.verify-desc {
  text-align: center; font-size: 14px; color: var(--text-light); font-weight: 600;
  margin-bottom: 24px; line-height: 1.6;
}
.verify-code-input {
  text-align: center; font-size: 28px; font-weight: 800; letter-spacing: 12px;
  padding: 20px; margin-bottom: 14px;
}

/* ===== GLASS BUTTONS ===== */
.glass-btn {
  width: 100%;
  padding: 16px 24px;
  background: var(--white-glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}
.glass-btn:active { transform: scale(0.97); }
.glass-btn:hover { background: var(--white-glass-strong); box-shadow: var(--shadow-glow); border-color: rgba(255, 182, 211, 0.4); }
.btn-primary {
  background: linear-gradient(135deg, rgba(255,182,211,0.45), rgba(232,213,245,0.45));
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: linear-gradient(135deg, rgba(255,182,211,0.6), rgba(232,213,245,0.6)); }

/* Social buttons row */
.social-btns { display: flex; gap: 12px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px; flex: 1; font-size: 14px; background: rgba(255,255,255,0.3);
}

/* Divider */
.divider { display: flex; align-items: center; gap: 14px; margin: 2px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(180,140,170,0.2), transparent); }
.divider span { font-size: 12px; font-weight: 600; color: var(--text-light); white-space: nowrap; }

/* Switch text */
.switch-text { text-align: center; font-size: 14px; color: var(--text-light); font-weight: 600; margin-top: 4px; }
.switch-text a { color: var(--pink-mid); font-weight: 800; text-decoration: none; }

/* ===== MAIN SCREEN ===== */
.main-content {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  z-index: 2; padding: 36px 28px 20px;
}

/* Logo on main screen */
.main-logo-section {
  text-align: center; margin-top: 28px; margin-bottom: 48px;
}
.logo-icon-large { font-size: 72px; margin-bottom: 12px; filter: drop-shadow(0 4px 12px rgba(255,182,211,0.3)); animation: logoBounce 3s ease-in-out infinite; }
.main-logo-section .app-title { font-size: 32px; font-weight: 800; }

/* Crystal floating buttons */
.main-buttons {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column;
  gap: 16px; padding: 0 4px;
}
.crystal-btn {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  background: var(--white-glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.3s ease;
  text-decoration: none; color: var(--text-dark);
  box-shadow: 0 4px 20px rgba(180, 140, 170, 0.12);
}
.crystal-btn:active { transform: scale(0.97); }
.crystal-btn:hover {
  background: var(--white-glass-strong);
  box-shadow: var(--shadow-glow);
  border-color: rgba(255, 182, 211, 0.4);
}
.crystal-btn-icon {
  font-size: 28px; flex-shrink: 0;
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,182,211,0.3), rgba(232,213,245,0.3));
  border-radius: 16px; border: 1px solid rgba(255,255,255,0.4);
}
.crystal-btn-text { font-size: 17px; font-weight: 700; }
.crystal-btn-arrow { margin-left: auto; font-size: 16px; color: var(--text-light); }

/* Logout at bottom */
.main-footer { text-align: center; padding: 12px 0 8px; }
.logout-btn-small {
  background: none; border: none; font-family: 'Nunito', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--text-light); cursor: pointer;
}

/* ===== PROFILE SCREEN ===== */
.profile-content {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  z-index: 2; padding: 20px 28px 28px;
}
.profile-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.back-btn {
  background: none; border: none; font-family: 'Nunito', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--text-mid); cursor: pointer;
}
.profile-header h2 { font-size: 22px; font-weight: 800; flex: 1; }
.profile-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-bottom: 20px; }

/* Profile field groups */
.profile-field { display: flex; flex-direction: column; gap: 6px; }
.profile-field label { font-size: 13px; font-weight: 700; color: var(--text-light); margin-left: 4px; }
.profile-field .glass-input { font-size: 14px; padding: 14px 16px; }

/* ===== AVATAR SECTION (Babysitter Profile) ===== */
.avatar-section {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 0 20px;
  margin-bottom: 8px;
}
.avatar-circle {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,182,211,0.35), rgba(232,213,245,0.35));
  border: 3px solid rgba(255,255,255,0.7);
  box-shadow: 0 6px 24px rgba(255,182,211,0.25);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.avatar-circle:hover {
  border-color: var(--pink-mid);
  box-shadow: 0 6px 28px rgba(255,182,211,0.4);
  transform: scale(1.03);
}
.avatar-circle:hover .avatar-placeholder::after { content: '📷'; font-size: 24px; }
.avatar-placeholder {
  font-size: 44px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.avatar-placeholder::after {
  content: '';
  position: absolute;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.avatar-name {
  margin-top: 14px;
  font-size: 20px; font-weight: 800; color: var(--text-dark);
}
.avatar-rating {
  display: flex; gap: 3px; margin-top: 10px;
}
.star-icon {
  width: 24px; height: 24px;
  transition: transform 0.2s ease;
}
.star-filled { fill: #FFD700; filter: drop-shadow(0 2px 4px rgba(255,215,0,0.3)); }
.star-half { fill: url(#halfGrad); }
.star-empty { fill: #ddd; }
.avatar-rating-value {
  margin-top: 6px;
  font-size: 15px; font-weight: 700; color: var(--text-mid);
}
.avatar-upload-hint {
  margin-top: 6px;
  font-size: 12px; font-weight: 600; color: var(--text-light);
  opacity: 0.7;
}
.rate-btn {
  margin-top: 14px;
  padding: 10px 24px;
  background: linear-gradient(135deg, rgba(255,215,0,0.25), rgba(255,182,211,0.25));
  border: 1.5px solid rgba(255,215,0,0.4);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--text-dark);
  cursor: pointer; transition: all 0.3s ease;
}
.rate-btn:hover {
  background: linear-gradient(135deg, rgba(255,215,0,0.4), rgba(255,182,211,0.4));
  box-shadow: 0 4px 16px rgba(255,215,0,0.25);
  border-color: rgba(255,215,0,0.6);
  transform: scale(1.03);
}
.rate-btn:active { transform: scale(0.97); }

/* Certification multi-select */
.multi-select {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 14px; min-height: 44px; cursor: pointer; user-select: none;
}
.multi-select:hover { border-color: rgba(255,182,211,0.4); box-shadow: var(--shadow-glow); }
.ms-placeholder { font-size: 13px; color: var(--text-light); font-weight: 600; }
.ms-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; background: rgba(255,182,211,0.3);
  border-radius: 20px; font-size: 12px; font-weight: 700; color: var(--text-dark);
  cursor: pointer;
}
.ms-tag::after { content: '×'; margin-left: 4px; font-size: 14px; color: var(--text-light); }

/* Photo upload */
.file-upload {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; text-align: center; min-height: 44px;
}
.upload-preview { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pink-mid); }

/* Address field with Find Me button */
.address-row {
  display: flex; gap: 8px; align-items: stretch;
}
.address-row .glass-input { flex: 1; }
.find-me-btn {
  flex-shrink: 0; width: 44px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(181,220,200,0.45), rgba(181,220,200,0.3));
  border: 1.5px solid rgba(181,220,200,0.5);
  font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.find-me-btn:active { transform: scale(0.93); }
.find-me-btn:hover { background: linear-gradient(135deg, rgba(181,220,200,0.6), rgba(181,220,200,0.45)); box-shadow: 0 4px 12px rgba(181,220,200,0.3); }
.find-me-btn.loading { opacity: 0.6; pointer-events: none; }

/* Child entry card */
.child-card {
  background: var(--white-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.child-card-header {
  display: flex; align-items: center; justify-content: space-between;
}
.child-card-title {
  font-size: 14px; font-weight: 800; color: var(--text-mid);
}
.child-remove {
  background: rgba(231,76,60,0.12); border: none; border-radius: 50%;
  width: 28px; height: 28px; font-size: 14px; color: #e74c3c;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.child-row {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.child-row .glass-input { width: 80px; min-width: 80px; text-align: center; }
.gender-options {
  display: flex; gap: 6px; flex: 1;
}
.gender-opt {
  flex: 1; padding: 10px; border-radius: 12px;
  background: rgba(255,255,255,0.3);
  border: 1.5px solid rgba(255,255,255,0.4);
  text-align: center; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.3s ease;
  color: var(--text-light);
}
.gender-opt.active-boy {
  background: rgba(173,200,255,0.35);
  border-color: rgba(173,200,255,0.6);
  color: #5B8DEF;
}
.gender-opt.active-girl {
  background: rgba(255,182,211,0.35);
  border-color: rgba(255,182,211,0.6);
  color: #E887A8;
}
.special-needs-check {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(255,229,217,0.3);
  border: 1px solid rgba(255,229,217,0.5);
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--text-mid);
  transition: all 0.3s ease;
}
.special-needs-check.checked {
  background: rgba(255,182,211,0.35);
  border-color: rgba(255,182,211,0.6);
  color: var(--text-dark);
}
.special-needs-check input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--pink-mid);
}

/* Back to main button */
.back-main-btn {
  width: 100%; padding: 14px; margin-top: 12px;
  background: rgba(255,255,255,0.35);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif;
  font-size: 15px; font-weight: 700; color: var(--text-mid);
  cursor: pointer; transition: all 0.3s ease;
}
.back-main-btn:hover {
  background: rgba(255,255,255,0.55);
  border-color: rgba(180,140,170,0.3);
}
.back-main-btn:active { transform: scale(0.97); }

/* ===== AVAILABILITIES SCREEN ===== */
.availabilities-content {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  z-index: 2; padding: 20px 28px 28px;
}
.availabilities-body {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
  padding-bottom: 20px;
}
.avail-day-card {
  background: var(--white-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}
.avail-day-card:hover {
  border-color: rgba(255,182,211,0.4);
  box-shadow: var(--shadow-glow);
}
.avail-day-header {
  font-size: 18px; font-weight: 800; color: var(--text-dark);
  padding-bottom: 8px;
  border-bottom: 1.5px solid rgba(255,182,211,0.3);
}
.avail-slots {
  display: flex; flex-direction: column; gap: 10px;
}
.slot-row {
  display: flex; align-items: center; gap: 8px;
}
.slot-row .glass-input {
  flex: 1; font-size: 14px; padding: 12px 14px;
}
.slot-arrow {
  font-size: 18px; color: var(--pink-mid); font-weight: 700;
}
.remove-slot-btn {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(231,76,60,0.12);
  border: 1.5px solid rgba(231,76,60,0.2);
  font-size: 18px; color: #e74c3c;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.remove-slot-btn:hover {
  background: rgba(231,76,60,0.2);
  border-color: rgba(231,76,60,0.4);
}
.remove-slot-btn:active { transform: scale(0.9); }
.add-slot-btn {
  width: 100%; padding: 12px; margin-top: 4px;
  background: linear-gradient(135deg, rgba(255,182,211,0.3), rgba(232,213,245,0.3));
  border: 1.5px dashed rgba(255,182,211,0.5);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--text-dark);
  cursor: pointer; transition: all 0.3s ease;
}
.add-slot-btn:hover {
  background: linear-gradient(135deg, rgba(255,182,211,0.45), rgba(232,213,245,0.45));
  border-color: rgba(255,182,211,0.7);
}
.add-slot-btn:active { transform: scale(0.97); }

/* Add child button */
.add-child-btn {
  background: rgba(255,182,211,0.15);
  border: 1.5px dashed rgba(255,182,211,0.45);
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px; font-weight: 700;
  color: var(--text-mid);
  cursor: pointer; text-align: center;
  transition: all 0.3s ease;
}
.add-child-btn:hover {
  background: rgba(255,182,211,0.25);
  border-color: rgba(255,182,211,0.6);
}

/* ===== GLASS PANEL UTILITY ===== */
.glass-panel {
  background: var(--white-glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(180,140,170,0.1);
  transition: all 0.3s ease;
}
.glass-panel:hover {
  border-color: rgba(255,182,211,0.4);
  box-shadow: var(--shadow-glow);
}

/* ===== SEARCH SCREEN ===== */
.search-content {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  z-index: 2; padding: 20px 28px 28px;
}
.search-body {
  flex: 1; overflow-y: auto; display: flex; align-items: center; justify-content: center;
  padding: 20px 0;
}
.search-card { width: 100%; max-width: 340px; }
.search-title {
  font-size: 18px; font-weight: 800; text-align: center; margin-bottom: 20px;
  color: var(--text-dark);
}
.search-field { margin-bottom: 14px; }
.search-field label {
  display: block; font-size: 13px; font-weight: 700; color: var(--text-light);
  margin-bottom: 6px; margin-left: 4px;
}
.search-field .glass-input { font-size: 16px; padding: 16px 20px; }
.search-btn {
  margin-top: 20px;
  background: linear-gradient(135deg, rgba(255,182,211,0.55), rgba(232,213,245,0.55));
  box-shadow: var(--shadow-soft);
  font-size: 16px; padding: 18px;
}
.search-btn:hover {
  background: linear-gradient(135deg, rgba(255,182,211,0.7), rgba(232,213,245,0.7));
  box-shadow: var(--shadow-glow);
}

/* ===== RESULTS SCREEN ===== */
.results-content {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  z-index: 2; padding: 20px 28px 28px;
}
.results-body {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
  padding-bottom: 20px;
}
.result-card {
  background: var(--white-glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex; gap: 14px;
  cursor: pointer; transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(180,140,170,0.1);
}
.result-card:active { transform: scale(0.97); }
.result-card:hover {
  border-color: rgba(255,182,211,0.5);
  box-shadow: var(--shadow-glow);
}
.result-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255,182,211,0.35), rgba(232,213,245,0.35));
  border: 2px solid rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.result-avatar img { width: 100%; height: 100%; object-fit: cover; }
.result-avatar-placeholder { font-size: 28px; }
.result-info { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.result-name { font-size: 16px; font-weight: 800; color: var(--text-dark); }
.result-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-mid); font-weight: 700; }
.result-stars { color: #FFD700; letter-spacing: 1px; }
.result-meta { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-size: 12px; color: var(--text-light); font-weight: 600; }
.result-meta span { display: flex; align-items: center; gap: 3px; }
.result-price { font-size: 15px; font-weight: 800; color: var(--text-dark); margin-top: 4px; }

/* ===== SITTER PROFILE SCREEN ===== */
.sitter-profile-content {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  z-index: 2; padding: 20px 28px 28px;
}
.sitter-profile-body {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
  padding-bottom: 20px;
}
.sitter-profile-header {
  text-align: center; padding: 20px 0;
}
.sitter-profile-avatar {
  width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg, rgba(255,182,211,0.35), rgba(232,213,245,0.35));
  border: 3px solid rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.sitter-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sitter-profile-name { font-size: 22px; font-weight: 800; color: var(--text-dark); }
.sitter-profile-rating {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 16px; color: var(--text-mid); font-weight: 700;
}
.sitter-profile-rating .result-stars { font-size: 18px; }
.sitter-section {
  background: var(--white-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-md);
  padding: 16px;
}
.sitter-section-title {
  font-size: 14px; font-weight: 800; color: var(--text-mid); margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 1.5px solid rgba(255,182,211,0.3);
}
.review-item {
  padding: 10px 0; border-bottom: 1px solid rgba(180,140,170,0.15);
}
.review-item:last-child { border-bottom: none; }
.review-author { font-size: 13px; font-weight: 700; color: var(--text-mid); }
.review-text { font-size: 13px; color: var(--text-dark); font-weight: 600; margin-top: 4px; line-height: 1.4; }
.review-stars { color: #FFD700; font-size: 12px; margin-top: 2px; }
.lang-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-tag {
  padding: 6px 12px; background: linear-gradient(135deg, rgba(255,182,211,0.3), rgba(232,213,245,0.3));
  border: 1px solid rgba(255,255,255,0.4); border-radius: 20px;
  font-size: 12px; font-weight: 700; color: var(--text-dark);
}
.certs-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cert-tag {
  padding: 6px 12px; background: linear-gradient(135deg, rgba(213,240,232,0.4), rgba(213,232,240,0.4));
  border: 1px solid rgba(181,220,200,0.4); border-radius: 20px;
  font-size: 12px; font-weight: 700; color: var(--text-dark);
}
.sitter-profile-actions {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 0 8px;
}
.action-btn {
  width: 100%; padding: 16px; border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.3s ease;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.action-btn:active { transform: scale(0.97); }
.msg-btn {
  background: linear-gradient(135deg, rgba(181,220,200,0.5), rgba(181,232,200,0.5));
  color: var(--text-dark);
}
.msg-btn:hover {
  background: linear-gradient(135deg, rgba(181,220,200,0.7), rgba(181,232,200,0.7));
  box-shadow: 0 4px 16px rgba(181,220,200,0.4);
}
.book-btn {
  background: linear-gradient(135deg, rgba(255,182,211,0.5), rgba(232,213,245,0.5));
  color: var(--text-dark);
}
.book-btn:hover {
  background: linear-gradient(135deg, rgba(255,182,211,0.7), rgba(232,213,245,0.7));
  box-shadow: 0 4px 16px rgba(255,182,211,0.4);
}

/* ===== MESSAGING SCREEN ===== */
.messaging-content {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  z-index: 2; padding: 20px 0 0;
}

/* ===== MESSAGES INBOX (CONVERSATION LIST) ===== */
.messages-list-content {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  z-index: 2; padding: 20px 0 0;
}
.messages-list-body {
  flex: 1; overflow-y: auto; padding: 0 16px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.conv-empty {
  text-align: center; padding: 60px 20px;
  color: var(--text-light); font-weight: 700; font-size: 15px;
}

/* Swipe-to-delete wrapper */
.conv-swipe-wrapper {
  position: relative; overflow: hidden; border-radius: 18px;
  touch-action: pan-y;
}
.conv-delete-bg {
  position: absolute; right: 0; top: 0; bottom: 0; width: 90px;
  background: linear-gradient(135deg, #ffb3b3, #ff7878);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; border-radius: 18px;
  transition: width 0.2s ease;
  user-select: none;
}
.conv-card {
  position: relative; z-index: 1;
  background: var(--white-glass-strong);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 18px; padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: transform 0.25s ease, box-shadow 0.2s;
  will-change: transform;
  box-shadow: 0 2px 12px rgba(200,160,200,0.10);
}
.conv-card:active { box-shadow: 0 4px 20px rgba(200,160,200,0.18); }
.conv-avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  background: linear-gradient(135deg, rgba(255,182,211,0.5), rgba(232,213,245,0.5));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0; overflow: hidden;
  border: 2px solid rgba(255,200,220,0.4);
}
.conv-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-size: 15px; font-weight: 800; color: var(--text-dark); margin-bottom: 3px; }
.conv-preview {
  font-size: 13px; font-weight: 600; color: var(--text-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.conv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.conv-time { font-size: 11px; color: var(--text-light); font-weight: 700; }
.conv-delete-btn { font-size: 15px; cursor: pointer; opacity: 0.6; transition: opacity 0.2s, transform 0.2s; line-height: 1; }
.conv-delete-btn:active { opacity: 1; transform: scale(1.15); }
.conv-unread {
  background: linear-gradient(135deg, #ffb3d1, #e8d5f5);
  color: var(--text-dark); font-size: 11px; font-weight: 800;
  padding: 2px 8px; border-radius: 20px; min-width: 20px; text-align: center;
}
.messages-container {
  flex: 1; overflow-y: auto; padding: 16px 16px 10px;
  display: flex; flex-direction: column; gap: 10px;
}
.msg-bubble {
  max-width: 80%; padding: 12px 16px; border-radius: 18px;
  font-size: 14px; line-height: 1.4; font-weight: 600;
  animation: msgSlideIn 0.3s ease;
}
@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg-sent {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(255,182,211,0.6), rgba(232,213,245,0.6));
  border: 1px solid rgba(255,200,220,0.4);
  border-bottom-right-radius: 6px;
  color: var(--text-dark);
}
.msg-received {
  align-self: flex-start;
  background: var(--white-glass-strong);
  border: 1px solid rgba(255,255,255,0.5);
  border-bottom-left-radius: 6px;
  color: var(--text-dark);
}
.msg-time {
  font-size: 10px; color: var(--text-light); margin-top: 4px; text-align: right;
}
.message-input-bar {
  display: flex; gap: 10px; padding: 12px 16px 28px;
  background: linear-gradient(to top, rgba(255,245,249,0.95), rgba(255,245,249,0.7));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  align-items: center;
}
.message-input {
  flex: 1; font-size: 15px; padding: 14px 18px;
  background: var(--white-glass);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.message-input:focus {
  border-color: rgba(255,182,211,0.5);
  box-shadow: var(--shadow-glow);
}
.msg-send-btn {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255,182,211,0.6), rgba(232,213,245,0.6));
  border: 1.5px solid rgba(255,200,220,0.4);
  font-size: 20px; color: var(--text-dark);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.msg-send-btn:hover {
  background: linear-gradient(135deg, rgba(255,182,211,0.8), rgba(232,213,245,0.8));
  box-shadow: var(--shadow-glow);
}
.msg-send-btn:active { transform: scale(0.9); }

/* ===== BOOKINGS SCREEN ===== */
.bookings-content {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  z-index: 2; padding: 20px 28px 28px;
}
.bookings-body {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
  padding-bottom: 20px;
}
.booking-card {
  background: var(--white-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.3s ease;
}
.booking-card:hover {
  border-color: rgba(255,182,211,0.4);
  box-shadow: var(--shadow-glow);
}
.booking-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.booking-status {
  padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.status-pending { background: rgba(255,215,0,0.25); color: #B8860B; }
.status-confirmed { background: rgba(181,220,200,0.4); color: #2E7D4E; }
.status-cancelled { background: rgba(231,76,60,0.15); color: #C0392B; }
.status-processing { background: rgba(255,182,100,0.35); color: #B8600B; }
.status-ended { background: rgba(180,180,200,0.35); color: #555577; }
.booking-info { font-size: 14px; font-weight: 600; color: var(--text-dark); line-height: 1.6; }
.booking-name { font-size: 16px; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.booking-actions {
  display: flex; gap: 10px; margin-top: 14px;
}
.booking-action-btn {
  flex: 1; padding: 12px; border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.3s ease; border: 1.5px solid transparent;
  text-align: center;
}
.booking-action-btn:active { transform: scale(0.95); }
.accept-btn {
  background: rgba(181,220,200,0.35); color: #2E7D4E;
  border-color: rgba(181,220,200,0.6);
}
.accept-btn:hover { background: rgba(181,220,200,0.5); }
.decline-btn {
  background: rgba(231,76,60,0.12); color: #C0392B;
  border-color: rgba(231,76,60,0.3);
}
.decline-btn:hover { background: rgba(231,76,60,0.25); }
.cancel-btn {
  background: rgba(180,140,170,0.15); color: var(--text-mid);
  border-color: rgba(180,140,170,0.3);
}
.cancel-btn:hover { background: rgba(180,140,170,0.3); }

/* ===== CONFIRMATION POPUP ===== */
.confirm-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.confirm-overlay.visible { opacity: 1; pointer-events: all; }
.confirm-backdrop {
  position: absolute; inset: 0; background: rgba(74,51,71,0.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.confirm-popup {
  position: relative; z-index: 1;
  width: 88%; max-width: 340px;
  background: var(--white-glass-strong);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px; text-align: center;
  box-shadow: var(--shadow-soft);
  transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.confirm-overlay.visible .confirm-popup { transform: scale(1); }
.confirm-title { font-size: 20px; font-weight: 800; margin-bottom: 16px; color: var(--text-dark); }
.confirm-details {
  background: rgba(255,255,255,0.3); border-radius: var(--radius-sm);
  padding: 16px; margin-bottom: 20px; text-align: left;
}
.confirm-row {
  display: flex; justify-content: space-between; padding: 6px 0;
  font-size: 14px; font-weight: 600; color: var(--text-mid);
}
.confirm-row span:last-child { color: var(--text-dark); font-weight: 700; }
.confirm-btn {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, rgba(181,220,200,0.5), rgba(213,232,200,0.5));
  border: 1.5px solid rgba(181,220,200,0.5); border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 800;
  color: #2E7D4E; cursor: pointer; transition: all 0.3s ease;
}
.confirm-btn:hover {
  background: linear-gradient(135deg, rgba(181,220,200,0.7), rgba(213,232,200,0.7));
  box-shadow: 0 4px 16px rgba(181,220,200,0.4);
}
.confirm-btn:active { transform: scale(0.97); }
.confirm-cancel {
  margin-top: 10px; background: none; border: none;
  font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--text-light); cursor: pointer; padding: 8px;
}

/* ===== TOAST ===== */
.toast-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.toast-overlay.visible { opacity: 1; pointer-events: all; }
-webkit-.toast-backdrop { position: absolute; inset: 0; background: rgba(74,51,71,0.3); backdrop-filter: blur(6px); }
.toast-backdrop { position: absolute; inset: 0; background: rgba(74,51,71,0.3); backdrop-filter: blur(6px); }
.toast-popup {
  position: relative; z-index: 1;
  width: 88%; max-width: 340px;
  background: var(--white-glass-strong);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  padding: 32px 28px 24px; text-align: center;
  box-shadow: var(--shadow-soft);
  transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast-overlay.visible .toast-popup { transform: scale(1); }
.toast-icon { font-size: 48px; margin-bottom: 16px; }
.toast-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.toast-message { font-size: 14px; font-weight: 600; color: var(--text-mid); line-height: 1.5; margin-bottom: 20px; }
.toast-btn {
  width: 100%; padding: 14px 24px;
  background: linear-gradient(135deg, rgba(255,182,211,0.5), rgba(232,213,245,0.5));
  border: 1.5px solid rgba(255,200,220,0.5); border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 700;
  color: var(--text-dark); cursor: pointer;
}

/* ===== SESSION END RATING POPUP ===== */
.session-end-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 99999; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.session-end-overlay.visible { opacity: 1; pointer-events: all; }
.session-end-backdrop {
  position: absolute; inset: 0; background: rgba(74,51,71,0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.session-end-popup {
  position: relative; z-index: 1;
  width: 88%; max-width: 360px; max-height: 80vh; overflow-y: auto;
  background: var(--white-glass-strong);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-lg);
  padding: 32px 24px 28px; text-align: center;
  box-shadow: 0 12px 40px rgba(180,140,170,0.25), 0 0 60px rgba(255,182,211,0.15);
  transform: scale(0.85) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.session-end-overlay.visible .session-end-popup {
  transform: scale(1) translateY(0);
}
.session-end-icon {
  font-size: 56px; margin-bottom: 12px;
  animation: sessionEndBounce 1s ease-in-out infinite;
}
@keyframes sessionEndBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(-5deg); }
  75% { transform: translateY(-6px) rotate(5deg); }
}
.session-end-title {
  font-size: 22px; font-weight: 800; margin-bottom: 8px; color: var(--text-dark);
}
.session-end-subtitle {
  font-size: 14px; font-weight: 600; color: var(--text-mid); line-height: 1.5; margin-bottom: 20px;
}
.session-end-booking-info {
  background: rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 20px;
  text-align: left;
  font-size: 13px; font-weight: 600; color: var(--text-mid); line-height: 1.6;
}
.session-end-booking-info strong {
  color: var(--text-dark); font-weight: 700;
}

/* Rating stars in session-end popup */
.rating-stars-container {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 16px;
}
.rating-star {
  font-size: 42px; cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, color 0.2s ease;
  filter: grayscale(100%) brightness(1.5);
  color: #ccc;
  user-select: none;
}
.rating-star:hover,
.rating-star.active {
  filter: grayscale(0%) brightness(1);
  color: #FFD700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  transform: scale(1.2);
}

.rating-selected-text {
  font-size: 16px; font-weight: 800; color: var(--text-dark);
  margin-bottom: 16px; min-height: 24px;
}

.rating-feedback-area {
  margin-bottom: 20px;
}
.rating-feedback-textarea {
  width: 100%; min-height: 70px; max-height: 120px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.35);
  border: 1.5px solid rgba(255,255,255,0.5);
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--text-dark); resize: vertical;
  outline: none; transition: border-color 0.3s ease;
}
.rating-feedback-textarea::placeholder {
  color: var(--text-light); font-weight: 600;
}
.rating-feedback-textarea:focus {
  border-color: var(--pink-mid);
  box-shadow: var(--shadow-glow);
}

.session-end-btn-row {
  display: flex; gap: 10px;
}
.session-end-btn {
  flex: 1; padding: 14px; border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.3s ease; border: 1.5px solid transparent;
}
.session-end-btn:active { transform: scale(0.96); }
.session-end-btn-cancel {
  background: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.5);
  color: var(--text-mid);
}
.session-end-btn-cancel:hover {
  background: rgba(255,255,255,0.5);
}
.session-end-btn-rate {
  background: linear-gradient(135deg, rgba(255,215,0,0.3), rgba(255,182,211,0.3));
  border-color: rgba(255,215,0,0.4);
  color: var(--text-dark);
}
.session-end-btn-rate:hover {
  background: linear-gradient(135deg, rgba(255,215,0,0.45), rgba(255,182,211,0.45));
  box-shadow: 0 4px 16px rgba(255,215,0,0.25);
}
.session-end-btn-rate:disabled {
  opacity: 0.5; cursor: not-allowed;
}
.session-end-btn-done {
  background: linear-gradient(135deg, rgba(181,220,200,0.45), rgba(213,232,200,0.45));
  border-color: rgba(181,220,200,0.5);
  color: #2E7D4E;
}
.session-end-btn-done:hover {
  background: linear-gradient(135deg, rgba(181,220,200,0.6), rgba(213,232,200,0.6));
  box-shadow: 0 4px 16px rgba(181,220,200,0.3);
}

/* Status badges for ended/rated bookings */
.status-ended { background: rgba(181,220,200,0.3); color: #558B2F; }
.status-rated { background: rgba(255,215,0,0.25); color: #B8860B; }

/* ===== FAVOURITES SCREEN ===== */
.favourites-content {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  z-index: 2; padding: 20px 0 0;
}
.favourites-grid {
  flex: 1; overflow-y: auto; padding: 8px 16px 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  align-content: start;
}
.fav-empty {
  grid-column: 1/-1; text-align: center; padding: 60px 20px;
  color: var(--text-light); font-weight: 700; font-size: 15px;
}
.fav-card {
  background: var(--white-glass-strong);
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 22px;
  cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s;
  box-shadow: 0 2px 14px rgba(200,160,200,0.12);
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 8px 14px;
}
.fav-card:active { transform: scale(0.96); box-shadow: 0 4px 20px rgba(200,160,200,0.22); }
.fav-photo {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,182,211,0.35), rgba(232,213,245,0.35));
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; flex-shrink: 0; overflow: hidden;
  border: 3px solid rgba(255,182,211,0.5);
}
.fav-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.fav-name {
  margin-top: 10px; font-size: 13px; font-weight: 800;
  color: var(--text-dark); text-align: center; line-height: 1.3;
}

/* Add to Favourites button */
.fav-btn {
  background: linear-gradient(135deg, rgba(255,182,211,0.5), rgba(255,150,190,0.5));
  border: 1.5px solid rgba(255,180,210,0.5);
  color: var(--text-dark); font-size: 15px; font-weight: 800;
  padding: 13px 20px; border-radius: 50px;
  cursor: pointer; transition: all 0.25s ease;
  display: flex; align-items: center; gap: 8px; justify-content: center;
}
.fav-btn.is-fav {
  background: linear-gradient(135deg, rgba(255,100,150,0.55), rgba(220,80,130,0.45));
  border-color: rgba(220,80,130,0.4);
  color: #fff;
}
.fav-btn:active { transform: scale(0.96); }

/* ── RTL support for Hebrew ─────────────────────────────────── */
[dir="rtl"] .auth-content,
[dir="rtl"] .auth-form,
[dir="rtl"] .profile-content,
[dir="rtl"] .profile-body,
[dir="rtl"] .search-body,
[dir="rtl"] .bookings-body,
[dir="rtl"] .messages-list-body,
[dir="rtl"] .messaging-content,
[dir="rtl"] .sitter-profile-content,
[dir="rtl"] .availabilities-content {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .profile-header {
  flex-direction: row-reverse;
}
[dir="rtl"] .back-btn {
  /* flip arrow direction for RTL */
  transform: scaleX(-1);
}
[dir="rtl"] .switch-text,
[dir="rtl"] .verify-desc {
  text-align: center;
}
[dir="rtl"] .address-row {
  flex-direction: row-reverse;
}
[dir="rtl"] .role-switch-track {
  flex-direction: row-reverse;
}
[dir="rtl"] .conv-card {
  flex-direction: row-reverse;
}
[dir="rtl"] .conv-info {
  text-align: right;
}
[dir="rtl"] .msg-bubble.msg-sent {
  align-self: flex-start;
  border-radius: 18px 18px 18px 4px;
  background: linear-gradient(135deg, #f9a8d4, #c4b5fd);
}
[dir="rtl"] .msg-bubble.msg-received {
  align-self: flex-end;
  border-radius: 18px 18px 4px 18px;
  background: rgba(255,255,255,0.55);
}
[dir="rtl"] .message-input-bar {
  flex-direction: row-reverse;
}
[dir="rtl"] .toast-popup {
  text-align: right;
}
[dir="rtl"] .booking-card {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .booking-header {
  flex-direction: row-reverse;
}
[dir="rtl"] .confirm-popup {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .confirm-row {
  flex-direction: row-reverse;
}
[dir="rtl"] .child-card {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .child-row {
  flex-direction: row-reverse;
}
[dir="rtl"] .slot-row {
  flex-direction: row-reverse;
}
[dir="rtl"] .sitter-section {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .fav-empty {
  text-align: center;
}
[dir="rtl"] .session-end-popup {
  direction: rtl;
  text-align: right;
}

/* ===========================
   📱 Mobile Fixes — iOS Safari + Android Chrome
   =========================== */

/* Force light mode everywhere — prevents Android Chrome auto-dark */
html { color-scheme: light; }

/* iOS Safari: force hardware acceleration on glass elements so backdrop-filter works */
@supports (-webkit-backdrop-filter: blur(1px)) {
  .glass-input,
  .glass-btn,
  .glass-card,
  .glass-panel,
  .chat-bubble,
  .nav-glass,
  .dropdown-glass,
  .modal-glass,
  .toast-glass,
  .badge-glass {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

/* iOS Safari: backdrop-filter can fail inside overflow:hidden; promote stacking context */
.app-container { -webkit-transform: translateZ(0); }

/* Ensure background gradient renders vibrantly on mobile */
body {
  /* Safari mobile sometimes washes out gradients — reinforce with fixed attachment */
  background-attachment: fixed;
  /* Prevent dark-mode color shifting on Android */
  -webkit-text-fill-color: var(--text-dark);
}

/* Android Chrome: prevent force-dark from inverting our pastel colors */
@media (prefers-color-scheme: dark) {
  :root {
    --pink-light: #FFF0F5;
    --pink-soft: #FFE4EE;
    --pink-mid: #FFB6D3;
    --lavender: #E8D5F5;
    --lavender-soft: #F3E8FF;
    --peach: #FFE5D9;
    --mint: #D5F0E8;
    --cream: #FFF8F0;
    --text-dark: #4A3347;
    --text-mid: #6B5066;
    --text-light: #8E7488;
  }
  body {
    background: linear-gradient(135deg, #FFF5F9 0%, #F5EEFF 50%, #FFF0EB 100%);
    color: var(--text-dark);
  }
}
