/* ============================================================ */
/* PETCARE v3.0 — PAGE STYLES                                    */
/* ============================================================ */

/* ============================================================ */
/* 1. HERO CARD                                                  */
/* ============================================================ */
.hero-card {
  background: linear-gradient(135deg, var(--pc-card) 0%, var(--pc-paper) 100%);
  border-radius: var(--pc-radius);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--pc-shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.hero-card-text { flex: 1; min-width: 0; }

.hero-greeting {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  font-weight: 700;
  color: var(--pc-text);
  margin-bottom: 6px;
  line-height: 1.1;
  letter-spacing: 0.3px;
}

.hero-sub {
  font-size: 13.5px;
  color: var(--pc-text-2);
  margin-bottom: 16px;
  line-height: 1.45;
}

.hero-sub strong { color: var(--pc-brown); font-weight: 700; }

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  border: none;
  padding: 11px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 12px rgba(58, 74, 58, 0.2);
  font-family: inherit;
}

.hero-cta-btn:hover {
  background: var(--pc-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(58, 74, 58, 0.3);
}

.hero-illustration {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ============================================================ */
/* 2. SOS BANNER                                                 */
/* ============================================================ */
.sos-banner {
  background: linear-gradient(135deg, #C45A4A, #8B3630);
  color: #fff;
  padding: 18px 20px;
  border-radius: var(--pc-radius);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(196, 90, 74, 0.28);
}

.sos-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.sos-icon-wrap {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.sos-banner h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.sos-banner p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
}

.sos-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--pc-danger);
  border: none;
  padding: 11px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}

.sos-btn:hover {
  background: #FEF2F2;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ============================================================ */
/* SOS BANNER — ENHANCED                                         */
/* ============================================================ */
.sos-banner {
  position: relative;
  overflow: hidden;
}

.sos-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.12), transparent 65%);
  pointer-events: none;
  animation: sosBannerGlow 4s ease-in-out infinite;
}

@keyframes sosBannerGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

.sos-icon-wrap {
  animation: sosIconPulse 2s ease-in-out infinite;
}

@keyframes sosIconPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255,255,255,0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255,255,255,0);
    transform: scale(1.05);
  }
}

.sos-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.22);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
}

.sos-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #86EFAC;
  animation: sosActivePulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes sosActivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.sos-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sos-history-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.22s ease;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.sos-history-btn:hover {
  background: rgba(255,255,255,0.35);
  transform: scale(1.08);
}

.sos-history-btn:active {
  transform: scale(0.95);
}

@media (max-width: 640px) {
  .sos-banner-actions {
    width: 100%;
  }
  .sos-btn {
    flex: 1;
  }
}

/* ============================================================ */
/* 3. WEEK CARD                                                  */
/* ============================================================ */
.week-card { margin-bottom: 18px; }

.week-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.week-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.week-title i { color: var(--pc-brown); font-size: 14px; }

.week-subtitle {
  font-size: 12px;
  color: var(--pc-text-muted);
  font-weight: 500;
}

.week-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--pc-warning-soft);
  color: var(--pc-warning);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--pc-warning);
  white-space: nowrap;
}

.week-streak-badge i { font-size: 12px; }

.week-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 0;
  position: relative;
}

.week-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  min-width: 0;
}

.week-day::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--pc-border-light);
  z-index: 0;
}

.week-day:last-child::before { display: none; }
.week-day.done::before { background: var(--pc-success); }

.week-paw {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: var(--pc-paper);
  color: var(--pc-text-muted);
  border: 2px solid var(--pc-border-light);
  position: relative;
  z-index: 1;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.week-day.done .week-paw {
  background: var(--pc-success);
  border-color: var(--pc-success);
  color: #fff;
  box-shadow: 0 4px 12px rgba(107, 158, 95, 0.3);
}

.week-day.today .week-paw {
  border-color: var(--pc-nav-active);
  box-shadow: 0 0 0 4px rgba(255, 217, 102, 0.3);
}

.week-day-name {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.week-day-label {
  font-size: 9px;
  color: var(--pc-text-muted);
  text-align: center;
  line-height: 1.1;
}

.week-day.done .week-day-name,
.week-day.done .week-day-label { color: var(--pc-success); }

.week-day.today .week-day-name { color: var(--pc-brown); }

.week-footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px dashed var(--pc-border-light);
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 500;
}

.week-footer span { display: inline-flex; align-items: center; gap: 5px; }
.week-footer i { color: var(--pc-success); font-size: 10px; }

/* ============================================================ */
/* 4. VETS CARD                                                  */
/* ============================================================ */
.vets-card { margin-bottom: 18px; }

.vets-list { display: flex; flex-direction: column; gap: 10px; }

.vet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--pc-paper);
  border-radius: 14px;
  border-left: 3px solid var(--pc-success);
  transition: all 0.2s ease;
}

.vet-item:hover {
  background: var(--pc-primary-light);
  transform: translateX(3px);
}

.vet-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pc-success-soft);
  color: var(--pc-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.vet-info { flex: 1; min-width: 0; }

.vet-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.vet-name { font-weight: 700; font-size: 13.5px; color: var(--pc-text); }

.vet-status {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.3px;
}

.vet-status.open { background: var(--pc-success-soft); color: var(--pc-success); }
.vet-status.closed { background: var(--pc-border-light); color: var(--pc-text-muted); }

.vet-meta {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.vet-call-btn {
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.vet-call-btn:hover { background: var(--pc-success); transform: scale(1.08); }

/* ============================================================ */
/* 5. FIRST-AID CARD                                             */
/* ============================================================ */
.firstaid-card { margin-bottom: 18px; }

.firstaid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.firstaid-chip {
  background: var(--pc-warning-soft);
  border: 1.5px solid var(--pc-warning);
  border-radius: 14px;
  padding: 14px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
  color: var(--pc-text);
}

.firstaid-chip:hover {
  background: var(--pc-warning);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(217, 164, 65, 0.25);
}

.firstaid-chip:hover .firstaid-chip-icon { color: #fff; }

.firstaid-chip-icon {
  font-size: 22px;
  color: var(--pc-warning);
  transition: color 0.2s ease;
}

.firstaid-chip-label {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
}

/* ============================================================ */
/* 6. MEMORIES CARD                                              */
/* ============================================================ */
.memories-card { margin-bottom: 18px; }

.card-subtitle {
  font-size: 12px;
  color: var(--pc-text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.memories-preview-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.memory-preview-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pc-paper);
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.memory-preview-item:hover { transform: scale(1.05); }

.memory-preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.memory-preview-item.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pc-purple-soft);
  color: var(--pc-purple);
  font-size: 28px;
}

.memory-preview-item.no-img::before {
  content: '\f030';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

.memory-preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  padding: 16px 6px 6px;
  font-size: 9.5px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.memories-footer {
  display: flex;
  justify-content: space-around;
  padding-top: 12px;
  border-top: 1px solid var(--pc-border-light);
  font-size: 12px;
  color: var(--pc-text-muted);
}

.memories-footer span { display: inline-flex; align-items: center; gap: 5px; }
.memories-footer i { color: var(--pc-brown); }


  
/* ============================================================ */
/* 8. TODAY'S CARE                                               */
/* ============================================================ */
.today-care-card { margin-bottom: 18px; }

.today-care-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.today-care-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px;
  background: var(--pc-paper);
  border-radius: 12px;
  font-size: 11.5px;
  color: var(--pc-text-2);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  border: 1.5px solid transparent;
  user-select: none;
}

.today-care-item:hover { background: var(--pc-primary-light); }

.today-care-item i:first-child {
  font-size: 18px;
  color: var(--pc-text-muted);
  transition: color 0.2s ease;
}

.today-care-item .status-icon { font-size: 14px; color: var(--pc-text-muted); }

.today-care-item.done {
  background: var(--pc-success-soft);
  border-color: var(--pc-success);
  color: var(--pc-success);
}

.today-care-item.done i:first-child,
.today-care-item.done .status-icon { color: var(--pc-success); }

/* ============================================================ */
/* 9. TIP CARD                                                   */
/* ============================================================ */
.tip-card {
  background: var(--pc-warning-soft);
  border: 2px dashed var(--pc-warning);
  margin-bottom: 18px;
}

.tip-text {
  font-size: 14px;
  color: var(--pc-text);
  line-height: 1.55;
  font-style: italic;
  padding: 6px 0 12px;
  font-weight: 500;
}

.card-link-full {
  width: 100%;
  text-align: center;
  padding: 10px;
  background: var(--pc-card);
  border-radius: 10px;
  margin-top: 4px;
}

/* ============================================================ */
/* 10. RECOMMENDED                                               */
/* ============================================================ */
.recommended-card { margin-bottom: 18px; }

.recommended-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.recommended-scroll::-webkit-scrollbar { height: 6px; }
.recommended-scroll::-webkit-scrollbar-thumb { background: var(--pc-border); border-radius: 10px; }

.recommended-item {
  min-width: 130px;
  max-width: 130px;
  background: var(--pc-paper);
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.recommended-item:hover { transform: translateY(-4px); box-shadow: var(--pc-shadow-md); }

.recommended-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  background: var(--pc-card);
}

.recommended-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.recommended-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--pc-text);
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  min-height: 30px;
}

.recommended-price { font-size: 13px; font-weight: 800; color: var(--pc-brown); }

/* ============================================================ */
/* 11. MODALS                                                    */
/* ============================================================ */

.firstaid-modal-header {
  background: linear-gradient(135deg, var(--pc-warning), #B45309);
  color: #fff;
  padding: 24px 20px;
  border-radius: 16px;
  margin-bottom: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(217, 164, 65, 0.28);
}

.firstaid-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 28px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.firstaid-modal-header h3 { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 4px; }

.firstaid-modal-header p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.firstaid-section-title {
  font-size: 12.5px;
  color: var(--pc-text);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.firstaid-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  counter-reset: faStep;
}

.firstaid-steps li {
  counter-increment: faStep;
  position: relative;
  padding: 12px 14px 12px 50px;
  margin-bottom: 8px;
  background: var(--pc-paper);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--pc-text);
  line-height: 1.5;
  border-left: 3px solid var(--pc-warning);
}

.firstaid-steps li::before {
  content: counter(faStep);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 26px;
  height: 26px;
  background: var(--pc-warning);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.firstaid-dont-box {
  background: var(--pc-danger-soft);
  border-left: 4px solid var(--pc-danger);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.firstaid-dont-box h4 {
  color: var(--pc-danger);
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.firstaid-dont-box p { color: var(--pc-danger); font-size: 13px; line-height: 1.5; }



.quickview-img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  background: var(--pc-paper);
}

.quickview-rating { font-size: 13px; color: var(--pc-text-2); margin-bottom: 10px; }

.quickview-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.price-current { font-size: 1.5rem; font-weight: 800; color: var(--pc-brown); }
.price-old { font-size: 0.95rem; color: var(--pc-text-muted); text-decoration: line-through; }

.sos-modal-header {
  background: linear-gradient(135deg, var(--pc-danger), #8B3630);
  color: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sos-modal-header i { font-size: 24px; }
.sos-modal-header h3 { font-size: 1.05rem; font-weight: 800; color: #fff; margin-bottom: 2px; }
.sos-modal-header p { font-size: 12px; color: rgba(255, 255, 255, 0.85); }

.sos-location-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--pc-success-soft);
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--pc-success);
  font-weight: 600;
}

.sos-location-box i { color: var(--pc-success); font-size: 16px; }

.modal-content form label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pc-text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.modal-content form select,
.modal-content form textarea,
.modal-content form input {
  margin-bottom: 14px;
}

/* ============================================================ */
/* 12. SHOP PAGE                                                 */
/* ============================================================ */

.shop-hero { margin-bottom: 16px; }
.shop-hero .hero-greeting { font-size: 1.75rem; }
.shop-hero .hero-sub { margin-bottom: 0; }

.shop-tabs {
  display: flex;
  gap: 8px;
  background: var(--pc-paper);
  padding: 6px;
  border-radius: 50px;
  margin-bottom: 20px;
  box-shadow: var(--pc-shadow-sm);
}

.shop-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 50px;
  background: transparent;
  color: var(--pc-text-2);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.shop-tab i { font-size: 14px; }
.shop-tab:hover { color: var(--pc-text); }

.shop-tab.active {
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  box-shadow: 0 4px 12px rgba(58, 74, 58, 0.25);
}

.shop-section { margin-bottom: 26px; }

.shop-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}

.shop-section-header h3 { font-size: 1.05rem; font-weight: 800; color: var(--pc-text); }

.see-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--pc-paper);
  color: var(--pc-brown);
  border: 1.5px solid var(--pc-border-light);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.see-all-btn:hover {
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  border-color: var(--pc-primary);
  transform: translateY(-1px);
}

.clear-category-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pc-danger-soft);
  color: var(--pc-danger);
  border: 1.5px solid var(--pc-danger);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.clear-category-btn:hover {
  background: var(--pc-danger);
  color: #fff;
  transform: translateY(-1px);
}

.clear-category-btn i { font-size: 11px; }

.featured-stores-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.featured-stores-scroll::-webkit-scrollbar { height: 6px; }
.featured-stores-scroll::-webkit-scrollbar-thumb { background: var(--pc-border); border-radius: 10px; }

.featured-store-card {
  min-width: 220px;
  max-width: 220px;
  flex-shrink: 0;
  background: var(--pc-card);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: var(--pc-shadow-sm);
  scroll-snap-align: start;
  border: 1px solid var(--pc-border-light);
}

.featured-store-card:hover { transform: translateY(-4px); box-shadow: var(--pc-shadow-md); }

.featured-store-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--pc-paper);
}

.featured-store-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-store-info { padding: 12px 14px; }

.featured-store-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-store-rating {
  font-size: 12px;
  color: var(--pc-brown);
  font-weight: 700;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.featured-store-rating i { color: var(--pc-caramel); font-size: 11px; }
.featured-store-loc { font-size: 11.5px; color: var(--pc-text-muted); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.category-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  border-radius: 14px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.category-circle:hover { background: var(--pc-paper); }

.category-circle-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.category-circle.active .category-circle-icon {
  transform: scale(1.08);
  border-color: var(--pc-primary);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.category-circle-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--pc-text-2);
  text-align: center;
  line-height: 1.15;
}

.category-circle.active .category-circle-label {
  color: var(--pc-primary);
  font-weight: 700;
}

.top-picks-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.top-picks-scroll::-webkit-scrollbar { height: 6px; }
.top-picks-scroll::-webkit-scrollbar-thumb { background: var(--pc-border); border-radius: 10px; }

.top-picks-scroll .product-card {
  min-width: 165px;
  max-width: 165px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* SEARCH WRAP with ICON */
.shop-search-wrap {
  position: relative;
  margin-bottom: 12px;
}

.shop-search-wrap i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pc-text-muted);
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.shop-search-wrap input {
  width: 100%;
  padding: 12px 18px 12px 44px;
  border-radius: 50px;
  border: 1.5px solid var(--pc-border-light);
  background: var(--pc-card);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--pc-text);
  transition: border-color 0.2s ease;
}

.shop-search-wrap input:focus {
  outline: none;
  border-color: var(--pc-accent);
  box-shadow: 0 0 0 4px rgba(58, 74, 58, 0.08);
}

.shop-filters-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.shop-filters-row select {
  padding: 11px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--pc-border-light);
  background: var(--pc-card);
  font-size: 13px;
  font-weight: 600;
  color: var(--pc-text);
  cursor: pointer;
  font-family: inherit;
  min-width: 160px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.product-card {
  background: var(--pc-card);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: var(--pc-shadow-sm);
  border: 1px solid var(--pc-border-light);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover { transform: translateY(-4px); box-shadow: var(--pc-shadow-md); }

.product-card-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--pc-paper);
  position: relative;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--pc-danger);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(196, 90, 74, 0.3);
}

.product-card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-store-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--pc-brown);
  background: var(--pc-paper);
  padding: 3px 8px;
  border-radius: 20px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product-store-tag i {
  font-size: 9px;
  color: var(--pc-accent);
  flex-shrink: 0;
}

.product-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--pc-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

.product-card-rating {
  font-size: 11px;
  color: var(--pc-brown);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-card-rating i { color: var(--pc-caramel); font-size: 10px; }

.product-card-price {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-right: 42px;
}

.product-card-price .price-current {
  font-size: 15px;
  font-weight: 800;
  color: var(--pc-primary);
}

.product-card-price .price-old {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  text-decoration: line-through;
}

.product-add-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 12px rgba(58, 74, 58, 0.25);
  z-index: 2;
}

.product-add-btn:hover { background: var(--pc-primary-hover); transform: scale(1.1); }
.product-add-btn:active { transform: scale(0.95); }

.store-search-wrap { margin-bottom: 12px; }

.store-search-wrap input {
  width: 100%;
  padding: 12px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--pc-border-light);
  background: var(--pc-card);
  font-size: 13.5px;
  font-family: inherit;
}

.store-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.store-filter-chips::-webkit-scrollbar { display: none; }

.stores-list { display: flex; flex-direction: column; gap: 14px; }

.store-card {
  background: var(--pc-card);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--pc-shadow-sm);
  border: 1px solid var(--pc-border-light);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.store-card:hover { transform: translateY(-3px); box-shadow: var(--pc-shadow-md); }

.store-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--pc-paper);
}

.store-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.store-card:hover .store-card-cover img { transform: scale(1.03); }

.store-fav-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pc-text-muted);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  z-index: 2;
  backdrop-filter: blur(8px);
}

.store-fav-icon:hover { transform: scale(1.1); background: #fff; }

.store-fav-icon.active {
  background: linear-gradient(135deg, #E85D75, #C9425A);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 93, 117, 0.4);
}

.store-fav-icon.active:hover { transform: scale(1.12); }

.store-card-body { padding: 16px; }

.store-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.store-card-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--pc-paper);
  border: 2px solid var(--pc-card);
  box-shadow: var(--pc-shadow-sm);
}

.store-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-card-info { flex: 1; min-width: 0; }

.store-card-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-card-cat { font-size: 11.5px; color: var(--pc-text-muted); margin-bottom: 4px; }

.store-card-rating {
  font-size: 12px;
  color: var(--pc-brown);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.store-card-rating i { color: var(--pc-caramel); font-size: 11px; }

.store-card-loc {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.store-view-btn {
  padding: 8px 16px;
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  border: none;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}

.store-view-btn:hover { background: var(--pc-primary-hover); transform: scale(1.03); }

.store-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--pc-border-light);
}

.store-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--pc-paper);
  color: var(--pc-text-2);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.store-tag-local { background: var(--pc-success-soft); color: var(--pc-success); }
.store-tag-online { background: var(--pc-info-soft); color: var(--pc-info); }
.store-tag-hybrid { background: var(--pc-purple-soft); color: var(--pc-purple); }

.create-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  border: none;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.create-store-btn:hover {
  background: var(--pc-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(58, 74, 58, 0.25);
}

/* ============================================================ */
/* 13. STORE DETAIL PAGE                                         */
/* ============================================================ */
.store-detail-page { padding-top: 0; }

.store-detail-cover-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 18px;
}

.store-detail-cover {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--pc-paper);
  box-shadow: var(--pc-shadow-md);
}

.store-detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.store-detail-back {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--pc-text);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  z-index: 3;
  backdrop-filter: blur(8px);
}

.store-detail-back:hover {
  background: #fff;
  transform: scale(1.08);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
}

.store-detail-back:active { transform: scale(0.95); }

.store-detail-fav {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--pc-text-muted);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  z-index: 3;
  backdrop-filter: blur(8px);
}

.store-detail-fav:hover { background: #fff; transform: scale(1.08); }

.store-detail-fav.active {
  background: linear-gradient(135deg, #E85D75, #C9425A);
  color: #fff;
  box-shadow: 0 4px 16px rgba(232, 93, 117, 0.5);
}

.store-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--pc-border-light);
}

.store-detail-logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--pc-paper);
  border: 3px solid var(--pc-card);
  box-shadow: var(--pc-shadow-md);
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.store-detail-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-detail-title-wrap { flex: 1; min-width: 0; }

.store-detail-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 4px;
  line-height: 1.2;
}

.store-detail-rating {
  font-size: 13px;
  color: var(--pc-brown);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.store-detail-rating i { color: var(--pc-caramel); }

.store-detail-loc {
  font-size: 12.5px;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

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

.store-call-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(58, 74, 58, 0.25);
}

.store-call-btn:hover { background: var(--pc-primary-hover); transform: scale(1.08); }

.store-detail-section { margin-bottom: 20px; }

.store-detail-section-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 8px;
}

.store-detail-desc { font-size: 13.5px; color: var(--pc-text-2); line-height: 1.6; }

.store-detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.store-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--pc-paper);
  border-radius: 12px;
}

.store-info-item i { font-size: 16px; color: var(--pc-accent); flex-shrink: 0; }

.store-info-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.store-info-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--pc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-detail-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--pc-border-light);
  scrollbar-width: none;
}

.store-detail-tabs::-webkit-scrollbar { display: none; }

.store-detail-tab {
  padding: 9px 18px;
  background: transparent;
  color: var(--pc-text-2);
  border: none;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.store-detail-tab:hover { background: var(--pc-paper); color: var(--pc-text); }

.store-detail-tab.active {
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  box-shadow: 0 4px 12px rgba(58, 74, 58, 0.2);
}

.store-review-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--pc-border-light);
}

.store-review-item:last-child { border-bottom: none; }

.store-review-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.store-review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pc-primary), var(--pc-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.store-review-name { font-size: 13.5px; font-weight: 700; color: var(--pc-text); margin-bottom: 2px; }
.store-review-rating { font-size: 12px; color: var(--pc-caramel); letter-spacing: 1px; }
.store-review-date { font-size: 11px; color: var(--pc-text-muted); margin-left: auto; }
.store-review-text { font-size: 13px; color: var(--pc-text-2); line-height: 1.5; }

.store-info-list { display: flex; flex-direction: column; gap: 4px; }

.store-info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--pc-border-light);
  font-size: 13.5px;
}

.store-info-row:last-child { border-bottom: none; }
.store-info-key { color: var(--pc-text-muted); font-weight: 600; }
.store-info-val { color: var(--pc-text); font-weight: 700; text-align: right; }

.store-vet-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--pc-paper);
  border-radius: 14px;
  margin-bottom: 10px;
}

.store-vet-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--pc-card);
  border: 2px solid var(--pc-card);
}

.store-vet-avatar img { width: 100%; height: 100%; object-fit: cover; }
.store-vet-info { flex: 1; min-width: 0; }
.store-vet-name { font-size: 14px; font-weight: 800; color: var(--pc-text); margin-bottom: 2px; }
.store-vet-specialty { font-size: 12px; color: var(--pc-accent); font-weight: 700; margin-bottom: 2px; }
.store-vet-exp { font-size: 11.5px; color: var(--pc-text-muted); margin-bottom: 3px; }

.store-vet-rating {
  font-size: 11.5px;
  color: var(--pc-brown);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.store-vet-rating i { color: var(--pc-caramel); font-size: 10px; }

.store-detail-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--pc-border-light);
}

.modal-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--pc-success);
  cursor: pointer;
  flex-shrink: 0;
}

/* ============================================================ */
/* 14. RESPONSIVE                                                */
/* ============================================================ */
@media (max-width: 768px) {
  .hero-greeting { font-size: 1.7rem; }
  .hero-illustration { width: 130px; height: 130px; }
  .hero-cta-btn { padding: 10px 16px; font-size: 12px; }
  .hero-card { padding: 18px; }

  .today-care-grid { grid-template-columns: repeat(2, 1fr); }
  .sos-btn { width: 100%; justify-content: center; }
  .vet-call-btn { width: 34px; height: 34px; font-size: 13px; }

  .featured-store-card { min-width: 200px; max-width: 200px; }

  .category-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .category-circle-icon { width: 52px; height: 52px; font-size: 20px; }
  .category-circle-label { font-size: 10.5px; }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-card-name { font-size: 12px; }
  .product-card-price .price-current { font-size: 14px; }

  .store-detail-info-grid { grid-template-columns: 1fr; }

  .shop-tabs { gap: 4px; padding: 5px; }
  .shop-tab { padding: 10px 12px; font-size: 12.5px; }
  .shop-tab i { font-size: 12px; }

  .store-fav-icon,
  .store-detail-back,
  .store-detail-fav {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero-illustration { width: 100px; height: 100px; }
  .hero-greeting { font-size: 1.4rem; }
  .hero-card { padding: 16px; }

  .week-paw { width: 30px; height: 30px; font-size: 12px; }
  .week-day::before { top: 14px; }
  .week-day-name { font-size: 8.5px; }
  .week-day-label { font-size: 8px; }

  
  .recommended-item { min-width: 115px; max-width: 115px; }

  .shop-hero .hero-greeting { font-size: 1.5rem; }

  .featured-store-card { min-width: 180px; max-width: 180px; }

  .category-circle-icon { width: 46px; height: 46px; font-size: 18px; }
  .category-circle-label { font-size: 10px; }

  .store-detail-logo { width: 58px; height: 58px; margin-top: -30px; }
  .store-detail-name { font-size: 1.1rem; }
  .store-detail-tab { padding: 8px 14px; font-size: 12px; }
  .store-vet-avatar { width: 46px; height: 46px; }

  .top-picks-scroll .product-card { min-width: 145px; max-width: 145px; }
}

/* ============================================================ */
/* 15. CARE PAGE                                                 */
/* ============================================================ */

/* ---------- PET SELECTOR ---------- */
.pet-selector {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 14px;
  margin-bottom: 4px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.pet-selector::-webkit-scrollbar { display: none; }

.pet-selector-empty {
  font-size: 13px;
  color: var(--pc-text-muted);
  padding: 12px 0;
  font-style: italic;
}

.pet-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 14px;
  transition: all 0.22s ease;
  font-family: inherit;
  flex-shrink: 0;
  scroll-snap-align: start;
  min-width: 64px;
}

.pet-chip-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pc-paper);
  border: 2px solid var(--pc-border-light);
  transition: all 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pet-chip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pet-chip:hover .pet-chip-avatar {
  transform: scale(1.05);
}

.pet-chip.active .pet-chip-avatar {
  border-color: var(--pc-primary);
  border-width: 3px;
  box-shadow: 0 0 0 4px rgba(58, 74, 58, 0.12);
}

.pet-chip-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pc-text-2);
  white-space: nowrap;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.pet-chip.active .pet-chip-name {
  color: var(--pc-primary);
}

.pet-add-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--pc-paper);
  border: 2px dashed var(--pc-border);
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.22s ease;
  flex-shrink: 0;
  margin-top: 4px;
  font-family: inherit;
}

.pet-add-btn:hover {
  background: var(--pc-primary-light);
  border-color: var(--pc-primary);
  color: var(--pc-primary);
  transform: scale(1.05);
}

/* ---------- CARE TABS ---------- */
.care-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 4px;
  margin-bottom: 18px;
  background: var(--pc-paper);
  border-radius: 50px;
  scrollbar-width: none;
  box-shadow: var(--pc-shadow-sm);
}

.care-tabs::-webkit-scrollbar { display: none; }

.care-tab {
  padding: 10px 20px;
  border-radius: 50px;
  background: transparent;
  border: none;
  color: var(--pc-text-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.care-tab:hover { color: var(--pc-text); }

.care-tab.active {
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  box-shadow: 0 4px 12px rgba(58, 74, 58, 0.25);
}

/* ---------- CARE SECTION ---------- */
.care-section {
  background: var(--pc-card);
  border-radius: var(--pc-radius);
  padding: var(--pc-card-padding);
  margin-bottom: 16px;
  box-shadow: var(--pc-shadow-sm);
}

.care-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.care-section-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--pc-text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.care-section-header h3 i {
  color: var(--pc-accent);
  font-size: 14px;
}

.care-section-sub {
  font-size: 12px;
  color: var(--pc-text-muted);
  margin-bottom: 12px;
  margin-top: -8px;
}

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--pc-warning-soft);
  color: var(--pc-warning);
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 20px;
  border: 1px solid var(--pc-warning);
  white-space: nowrap;
}

.streak-badge i { font-size: 11px; }

/* ---------- TODAY CARE LIST ---------- */
.today-care-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.today-care-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--pc-paper);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1.5px solid transparent;
  user-select: none;
}

.today-care-row:hover {
  background: var(--pc-primary-light);
}

.today-care-row.done {
  background: var(--pc-success-soft);
  border-color: var(--pc-success);
}

.care-check i {
  font-size: 20px;
  color: var(--pc-text-muted);
  transition: color 0.2s ease;
}

.today-care-row.done .care-check i {
  color: var(--pc-success);
}

.care-info { flex: 1; min-width: 0; }

.care-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--pc-text);
  margin-bottom: 2px;
}

.today-care-row.done .care-title {
  color: var(--pc-success);
}

.care-sub {
  font-size: 11.5px;
  color: var(--pc-text-muted);
}

.care-icon {
  font-size: 16px;
  color: var(--pc-text-muted);
  flex-shrink: 0;
}

.today-care-row.done .care-icon {
  color: var(--pc-success);
}

/* ---------- UPCOMING REMINDERS ---------- */
.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upcoming-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--pc-border-light);
}

.upcoming-row:last-child { border-bottom: none; }

.upcoming-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pc-primary-light);
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.upcoming-info { flex: 1; min-width: 0; }

.upcoming-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pc-text);
  margin-bottom: 2px;
}

.upcoming-date {
  font-size: 11.5px;
  color: var(--pc-text-muted);
}

/* ============================================================ */
/* 16. CALENDAR TAB                                              */
/* ============================================================ */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}

.calendar-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--pc-text);
  margin: 0;
}

.cal-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pc-paper);
  border: none;
  color: var(--pc-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cal-nav-btn:hover {
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  transform: scale(1.05);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 6px 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: 12px;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  color: var(--pc-text);
  padding: 4px;
  position: relative;
}

.cal-day.empty {
  cursor: default;
  pointer-events: none;
}

.cal-day:hover:not(.empty) {
  background: var(--pc-paper);
}

.cal-day.today {
  background: var(--pc-primary-light);
}

.cal-day.today .cal-num {
  color: var(--pc-primary);
  font-weight: 800;
}

.cal-day.selected {
  background: var(--pc-primary);
}

.cal-day.selected .cal-num {
  color: var(--pc-text-on-dark);
  font-weight: 800;
}

.cal-day.selected .cal-dot {
  background: var(--pc-text-on-dark) !important;
}

.cal-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--pc-text);
}

.cal-dots {
  display: flex;
  gap: 2px;
  height: 5px;
}

.cal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pc-primary);
}

.cal-dot-vaccination { background: var(--pc-info); }
.cal-dot-grooming    { background: var(--pc-purple); }
.cal-dot-medicine    { background: var(--pc-success); }
.cal-dot-checkup     { background: var(--pc-danger); }

/* ---------- CALENDAR DAY EVENTS ---------- */
.cal-day-events {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cal-event {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--pc-paper);
  border-radius: 10px;
  position: relative;
  padding-left: 66px;
}

.cal-event-time {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 700;
  color: var(--pc-text-muted);
  width: 48px;
}

.cal-event-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pc-primary-light);
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.cal-event-info { flex: 1; min-width: 0; }

.cal-event-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--pc-text);
  margin-bottom: 2px;
}

.cal-event-sub {
  font-size: 11.5px;
  color: var(--pc-text-muted);
}

/* ============================================================ */
/* 17. HEALTH TAB                                                */
/* ============================================================ */

/* HEALTH LOG */
.health-log-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  padding-left: 6px;
}

.health-entry {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  position: relative;
}

.health-entry::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 22px;
  bottom: -10px;
  width: 2px;
  background: var(--pc-border-light);
}

.health-entry:last-child::before { display: none; }

.health-entry-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pc-primary);
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--pc-primary-light);
  z-index: 1;
}

.health-entry-info { flex: 1; min-width: 0; }

.health-entry-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pc-text);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.health-entry-title i {
  font-size: 12px;
  color: var(--pc-accent);
}

.health-entry-sub {
  font-size: 12.5px;
  color: var(--pc-text-2);
  margin-bottom: 3px;
}

.health-entry-date {
  font-size: 11px;
  color: var(--pc-text-muted);
}

/* VACCINATION PROGRESS */
.vax-progress-card {
  padding: 4px 0;
}

.vax-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.vax-progress-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--pc-text);
}

.vax-progress-bar {
  height: 8px;
  background: var(--pc-border-light);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 14px;
}

.vax-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pc-success), var(--pc-accent));
  border-radius: 20px;
  transition: width 0.4s ease;
}

.vax-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vax-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--pc-paper);
  border-radius: 10px;
  font-size: 13px;
}

.vax-row i {
  color: var(--pc-text-muted);
  font-size: 14px;
}

.vax-row.done i { color: var(--pc-success); }

.vax-row span:first-of-type {
  flex: 1;
  color: var(--pc-text);
  font-weight: 600;
}

.vax-status {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--pc-warning-soft);
  color: var(--pc-warning);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.vax-row.done .vax-status {
  background: var(--pc-success-soft);
  color: var(--pc-success);
}

/* MEDICATIONS */
.med-list-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.med-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--pc-paper);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.med-row:hover { background: var(--pc-primary-light); }

.med-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pc-purple-soft);
  color: var(--pc-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.med-info { flex: 1; min-width: 0; }
.med-name { font-size: 13.5px; font-weight: 700; color: var(--pc-text); margin-bottom: 2px; }
.med-dose { font-size: 11.5px; color: var(--pc-text-muted); }

/* WEIGHT CHART */
.weight-badge {
  font-size: 13px;
  font-weight: 800;
  color: var(--pc-accent);
  background: var(--pc-primary-light);
  padding: 4px 12px;
  border-radius: 20px;
}

.weight-chart-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  margin-top: 8px;
}

/* EXPORT HEALTH */
.export-health-btn {
  width: 100%;
  padding: 14px;
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  border: none;
  border-radius: var(--pc-radius);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.22s ease;
  font-family: inherit;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(58, 74, 58, 0.2);
}

.export-health-btn:hover {
  background: var(--pc-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(58, 74, 58, 0.3);
}

/* ============================================================ */
/* 18. GUIDANCE TAB                                              */
/* ============================================================ */
.guidance-search {
  position: relative;
  margin-bottom: 4px;
}

.guidance-search i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pc-text-muted);
  font-size: 14px;
  pointer-events: none;
}

.guidance-search input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  border-radius: 50px;
  border: 1.5px solid var(--pc-border-light);
  background: var(--pc-card);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--pc-text);
  transition: border-color 0.2s ease;
}

.guidance-search input:focus {
  outline: none;
  border-color: var(--pc-accent);
  box-shadow: 0 0 0 4px rgba(58, 74, 58, 0.08);
}

.concern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.concern-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--pc-paper);
  border: 1.5px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--pc-text-2);
  text-align: center;
}

.concern-chip:hover {
  background: var(--pc-primary-light);
  border-color: var(--pc-primary);
  transform: translateY(-3px);
}

.concern-chip i {
  font-size: 18px;
  color: var(--pc-accent);
}

.firstaid-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.firstaid-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px;
  background: var(--pc-paper);
  border: 1.5px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--pc-text-2);
  text-align: center;
  line-height: 1.15;
}

.firstaid-quick:hover {
  background: var(--pc-danger-soft);
  border-color: var(--fa-color);
  transform: translateY(-3px);
}

.firstaid-quick-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pc-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--fa-color);
}

.ask-ai-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, var(--pc-purple-soft), var(--pc-primary-light));
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  width: 100%;
  text-align: left;
}

.ask-ai-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pc-shadow-md);
}

.ask-ai-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--pc-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--pc-purple);
  flex-shrink: 0;
}

.ask-ai-info { flex: 1; min-width: 0; }

.ask-ai-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 2px;
}

.ask-ai-sub {
  font-size: 11.5px;
  color: var(--pc-text-muted);
}

.ask-ai-arrow {
  color: var(--pc-text-muted);
  font-size: 12px;
}

/* ============================================================ */
/* 19. TIPS TAB                                                  */
/* ============================================================ */
.tips-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 4px;
}

.tips-sub {
  font-size: 12.5px;
  color: var(--pc-text-muted);
  margin-bottom: 16px;
}

.tips-cat-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 4px;
  scrollbar-width: none;
}

.tips-cat-chips::-webkit-scrollbar { display: none; }

.tip-cat-chip {
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--pc-paper);
  border: 1.5px solid transparent;
  color: var(--pc-text-2);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.tip-cat-chip:hover { background: var(--pc-primary-light); }

.tip-cat-chip.active {
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  box-shadow: 0 4px 10px rgba(58, 74, 58, 0.25);
}

.tips-articles-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-article-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--pc-paper);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.tip-article-card:hover {
  background: var(--pc-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--pc-shadow-sm);
}

.tip-article-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--pc-card);
}

.tip-article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tip-article-info {
  flex: 1;
  min-width: 0;
}

.tip-article-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pc-text);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tip-article-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--pc-text-muted);
}

.tip-article-tag {
  background: var(--pc-card);
  color: var(--pc-text-2);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tip-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--pc-text-muted);
}

.tip-article-arrow {
  font-size: 12px;
  color: var(--pc-text-muted);
  flex-shrink: 0;
}

/* ============================================================ */
/* 20. RESPONSIVE — CARE                                         */
/* ============================================================ */
@media (max-width: 640px) {
  .pet-chip-avatar { width: 54px; height: 54px; }
  .pet-add-btn { width: 54px; height: 54px; font-size: 18px; }
  .pet-chip-name { font-size: 11px; max-width: 60px; }

  .care-tab { padding: 9px 16px; font-size: 12.5px; }

  .concern-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .concern-chip { padding: 12px 6px; font-size: 10.5px; }
  .concern-chip i { font-size: 16px; }

  .firstaid-quick-grid { gap: 6px; }
  .firstaid-quick { padding: 12px 4px; font-size: 10px; }
  .firstaid-quick-icon { width: 36px; height: 36px; font-size: 16px; }

  .tip-article-img { width: 64px; height: 64px; }
  .tip-article-title { font-size: 12.5px; }
}

@media (max-width: 400px) {
  .pet-chip-avatar { width: 50px; height: 50px; }
  .pet-add-btn { width: 50px; height: 50px; }

  .calendar-grid { gap: 2px; }
  .cal-num { font-size: 12px; }
  .cal-dot { width: 3px; height: 3px; }

  .care-title { font-size: 13px; }
  .care-sub { font-size: 11px; }
}

/* ============================================================ */
/* AVATAR OPTIONS (Pet Add Modal)                                */
/* ============================================================ */
.avatar-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 4px;
}

.avatar-option {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pc-paper);
  border: 2px solid var(--pc-border-light);
  cursor: pointer;
  padding: 0;
  transition: all 0.22s ease;
  position: relative;
}

.avatar-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-option:hover {
  transform: scale(1.05);
  border-color: var(--pc-primary);
}

.avatar-option.active {
  border-color: var(--pc-primary);
  border-width: 3px;
  box-shadow: 0 0 0 4px rgba(58, 74, 58, 0.15);
}

.avatar-option.active::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--pc-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  border: 2px solid var(--pc-card);
}

@media (max-width: 480px) {
  .avatar-options {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================ */
/* PET CHIP WRAP + EDIT BUTTON (FIXED)                           */
/* ============================================================ */
.pet-chip-wrap {
  position: relative;
  flex-shrink: 0;
  scroll-snap-align: start;
  padding-bottom: 6px;
}

.pet-edit-btn {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  border: 2px solid var(--pc-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.22s ease;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pet-edit-btn:hover {
  background: var(--pc-primary-hover);
  transform: translateX(-50%) scale(1.15);
}

/* ============================================================ */
/* AVATAR HINT (Modal)                                           */
/* ============================================================ */
.avatar-hint {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12.5px;
  color: var(--pc-text-muted);
  padding: 16px 12px;
  background: var(--pc-paper);
  border-radius: 10px;
  font-style: italic;
  margin: 0;
}

/* ============================================================ */
/* AVATAR OPTIONS                                                */
/* ============================================================ */
.avatar-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 4px;
  min-height: 60px;
}

.avatar-option {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pc-paper);
  border: 2px solid var(--pc-border-light);
  cursor: pointer;
  padding: 0;
  transition: all 0.22s ease;
  position: relative;
}

.avatar-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-option:hover {
  transform: scale(1.05);
  border-color: var(--pc-primary);
}

.avatar-option.active {
  border-color: var(--pc-primary);
  border-width: 3px;
  box-shadow: 0 0 0 4px rgba(58, 74, 58, 0.15);
}

.avatar-option.active::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--pc-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  border: 2px solid var(--pc-card);
}

/* ============================================================ */
/* DATE / TIME INPUTS (Reminder)                                 */
/* ============================================================ */
input[type="date"],
input[type="time"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--pc-border-light);
  border-radius: var(--pc-radius-sm);
  background: var(--pc-input-bg);
  font-family: inherit;
  font-size: 14px;
  color: var(--pc-text);
  margin-bottom: 14px;
  cursor: pointer;
}

input[type="date"]:focus,
input[type="time"]:focus {
  outline: none;
  border-color: var(--pc-accent);
  box-shadow: 0 0 0 4px rgba(58, 74, 58, 0.08);
}

/* ============================================================ */
/* UPCOMING REMINDERS — with icons                               */
/* ============================================================ */
.upcoming-date {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.upcoming-date i {
  color: var(--pc-accent);
  font-size: 10px;
  margin-right: 1px;
}

/* ============================================================ */
/* MODAL FORM POLISH — bigger inputs                            */
/* ============================================================ */
#petForm label,
#healthLogForm label,
#vaxForm label,
#medForm label,
#reminderForm label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pc-text-2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
}

#petForm input,
#petForm select,
#healthLogForm input,
#healthLogForm select,
#vaxForm input,
#medForm input,
#reminderForm input,
#reminderForm select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--pc-border-light);
  border-radius: var(--pc-radius-sm);
  background: var(--pc-input-bg);
  font-family: inherit;
  font-size: 14px;
  color: var(--pc-text);
  margin-bottom: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#petForm input:focus,
#petForm select:focus,
#healthLogForm input:focus,
#healthLogForm select:focus,
#vaxForm input:focus,
#medForm input:focus,
#reminderForm input:focus,
#reminderForm select:focus {
  outline: none;
  border-color: var(--pc-accent);
  background: var(--pc-card);
  box-shadow: 0 0 0 4px rgba(58, 74, 58, 0.08);
}

#petForm input::placeholder,
#healthLogForm input::placeholder,
#vaxForm input::placeholder,
#medForm input::placeholder,
#reminderForm input::placeholder {
  color: var(--pc-placeholder);
}

@media (max-width: 480px) {
  .avatar-options {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================ */
/* 23. MEMORY (SOCIAL FEED) PAGE                                 */
/* ============================================================ */

/* ---------- BANNER ---------- */
.memories-banner {
  position: relative;
  background: linear-gradient(135deg, var(--pc-card) 0%, var(--pc-paper) 100%);
  border-radius: var(--pc-radius);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--pc-shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
  min-height: 110px;
}

.memories-banner-text {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.memories-banner-title {
  font-family: 'Caveat', cursive;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pc-text);
  line-height: 1.1;
  margin-bottom: 4px;
}

.memories-banner-sub {
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--pc-brown);
  line-height: 1.15;
  letter-spacing: 0.2px;
}

.memories-banner-illust {
  flex-shrink: 0;
  width: 130px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.memories-banner-illust img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ---------- COMPOSER ---------- */
.memory-composer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: var(--pc-card);
  border: 1.5px solid var(--pc-border-light);
  border-radius: 50px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  text-align: left;
  box-shadow: var(--pc-shadow-sm);
}

.memory-composer:hover {
  border-color: var(--pc-primary);
  box-shadow: var(--pc-shadow-md);
  transform: translateY(-1px);
}

.memory-composer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pc-primary-light);
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.memory-composer-text {
  flex: 1;
  font-size: 13.5px;
  color: var(--pc-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.memory-composer-icon {
  color: var(--pc-accent);
  font-size: 16px;
  flex-shrink: 0;
}

/* ---------- FILTERS ---------- */
.memory-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px var(--pc-page-padding) 10px;   /* ⭐ ADD horizontal padding */
  margin-bottom: 14px;
  margin-left: calc(var(--pc-page-padding) * -1);   /* ⭐ negative margin — edge to edge scroll */
  margin-right: calc(var(--pc-page-padding) * -1);
  scrollbar-width: none;
  scroll-padding-left: var(--pc-page-padding);   /* ⭐ snap padding */
  -webkit-overflow-scrolling: touch;
}

.memory-filters::-webkit-scrollbar {
  display: none;
}

.memory-filters::-webkit-scrollbar {
  display: none;
}

.mem-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--pc-card);
  color: var(--pc-text-2);
  border: 1.5px solid var(--pc-border-light);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
  font-family: inherit;
  flex-shrink: 0;
  scroll-snap-align: start;   /* ⭐ ADD snap */
}

.mem-filter-chip:first-child {
  margin-left: 0;   /* ⭐ ensure first chip no extra margin */
}

.mem-filter-chip:last-child {
  margin-right: 0;   /* ⭐ ensure last chip no extra margin */
}

.mem-filter-chip i {
  font-size: 11px;
}

.mem-filter-chip:hover {
  background: var(--pc-primary-light);
  border-color: var(--pc-primary);
}

.mem-filter-chip.active {
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  border-color: var(--pc-primary);
  box-shadow: 0 4px 10px rgba(58, 74, 58, 0.25);
}

/* ---------- FEED ---------- */
.memory-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 30px;
}

.memory-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--pc-text-muted);
}

.memory-empty i {
  font-size: 48px;
  opacity: 0.35;
  display: block;
  margin-bottom: 14px;
}

.memory-empty p {
  font-size: 14px;
  color: var(--pc-text-muted);
}

/* ---------- POST CARD ---------- */
.memory-post {
  background: var(--pc-card);
  border-radius: var(--pc-radius);
  padding: 16px;
  box-shadow: var(--pc-shadow-sm);
  border: 1px solid var(--pc-border-light);
  transition: box-shadow 0.25s ease;
}

.memory-post:hover {
  box-shadow: var(--pc-shadow-md);
}

/* ---------- POST HEADER ---------- */
.memory-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.memory-post-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--pc-card);
}

.memory-post-author-avatar.vet {
  background: linear-gradient(135deg, #10B981, #059669);
}

.memory-post-author-avatar.store {
  background: linear-gradient(135deg, #9B8BB4, #6B5443);
}

.memory-post-author-avatar.user {
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
}

.memory-post-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-post-author-info {
  flex: 1;
  min-width: 0;
}

.memory-post-author-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}

.memory-post-author-name .verified {
  color: var(--pc-success);
  font-size: 11px;
}

.memory-post-author-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--pc-text-muted);
  flex-wrap: wrap;
}

.mem-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mem-role-badge.mem-role-vet {
  background: var(--pc-success-soft);
  color: var(--pc-success);
}

.mem-role-badge.mem-role-store {
  background: var(--pc-purple-soft);
  color: var(--pc-purple);
}

.mem-role-badge.mem-role-user {
  background: var(--pc-warning-soft);
  color: var(--pc-warning);
}

.memory-post-menu {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.memory-post-menu:hover {
  background: var(--pc-paper);
  color: var(--pc-text);
}

/* ---------- POST BODY ---------- */
.memory-post-body {
  margin-bottom: 12px;
}

.memory-post-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.memory-post-content {
  font-size: 13.5px;
  color: var(--pc-text-2);
  line-height: 1.55;
  white-space: pre-line;
}

/* ---------- POST IMAGE ---------- */
.memory-post-image-wrap {
  width: 100%;
  max-height: 400px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--pc-paper);
}

.memory-post-image-wrap img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

/* ---------- POST PRODUCTS (multi-image) ---------- */
.memory-post-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.memory-post-product-img {
  aspect-ratio: 1 / 1;              /* ⭐ square — consistent */
  border-radius: 12px;
  overflow: hidden;
  background: var(--pc-paper);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.memory-post-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;                /* ⭐ crop to fill square */
  object-position: center;
  display: block;
}

/* ⭐ If only 1 product — full width */
.memory-post-products:has(.memory-post-product-img:only-child) {
  grid-template-columns: 1fr;
}

/* ⭐ If 3 products — first one spans full */
.memory-post-products:has(.memory-post-product-img:nth-child(3):last-child) .memory-post-product-img:first-child {
  grid-column: 1 / -1;
}

/* ---------- POST ACTIONS ---------- */
.memory-post-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--pc-border-light);
}

.mem-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  background: transparent;
  border: none;
  color: var(--pc-text-2);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.mem-action-btn i {
  font-size: 14px;
}

.mem-action-btn:hover {
  background: var(--pc-paper);
  color: var(--pc-text);
}

.mem-action-btn.liked {
  color: var(--pc-danger);
}

.mem-action-btn.liked i {
  animation: heartPop 0.35s ease;
}

@keyframes heartPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ---------- COMPOSER MODAL ---------- */
.mem-photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  background: var(--pc-paper);
  border: 2px dashed var(--pc-border);
  border-radius: 12px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  color: var(--pc-text-muted);
  font-size: 13px;
  font-weight: 600;
}

.mem-photo-upload i {
  font-size: 22px;
  color: var(--pc-accent);
}

.mem-photo-upload:hover {
  background: var(--pc-primary-light);
  border-color: var(--pc-primary);
  color: var(--pc-primary);
}

.mem-photo-upload.attached {
  background: var(--pc-success-soft);
  border-color: var(--pc-success);
  color: var(--pc-success);
}

.mem-photo-upload.attached i {
  color: var(--pc-success);
}

/* ---------- COMMENT MODAL ---------- */
#commentModal .modal-content {
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  padding-bottom: 0;
}

.comment-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 12px;
  margin-bottom: 0;
  min-height: 100px;
}

.comment-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pc-border-light);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-reply-item {
  padding: 8px 0 4px;
  border-bottom: none;
  margin-top: 4px;
}

.comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
}

.comment-avatar.vet {
  background: linear-gradient(135deg, #10B981, #059669);
}

.comment-avatar.user {
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-author {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.comment-author .verified {
  color: var(--pc-success);
  font-size: 10px;
}

.comment-text {
  font-size: 13px;
  color: var(--pc-text-2);
  line-height: 1.5;
  margin-bottom: 6px;
  word-wrap: break-word;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--pc-text-muted);
}

.comment-meta-btn {
  background: transparent;
  border: none;
  color: var(--pc-text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.comment-meta-btn:hover {
  background: var(--pc-paper);
  color: var(--pc-text);
}

.comment-meta-btn.liked {
  color: var(--pc-danger);
}

.comment-meta-btn.liked i {
  font-weight: 900;
}

.comment-replies {
  margin-top: 8px;
  padding-left: 6px;
  border-left: 2px solid var(--pc-border-light);
}

.comment-form {
  display: flex;
  gap: 8px;
  padding: 12px 0 16px;
  border-top: 1px solid var(--pc-border-light);
  background: var(--pc-card);
  position: sticky;
  bottom: 0;
  margin-top: 12px;
}

.comment-form input {
  flex: 1;
  padding: 11px 16px;
  border: 1.5px solid var(--pc-border-light);
  border-radius: 50px;
  font-size: 13.5px;
  font-family: inherit;
  background: var(--pc-paper);
  color: var(--pc-text);
  outline: none;
  transition: border-color 0.2s ease;
}

.comment-form input:focus {
  border-color: var(--pc-primary);
  background: var(--pc-card);
}

.comment-form button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.comment-form button:hover {
  background: var(--pc-primary-hover);
  transform: scale(1.05);
}

/* ============================================================ */
/* 24. DARK MODE — MEMORY                                        */
/* ============================================================ */
body.dark-mode .memories-banner-title,
body.dark-mode .memory-post-title,
body.dark-mode .memory-post-author-name,
body.dark-mode .comment-author {
  color: #F8FAFC;
}

body.dark-mode .memories-banner-sub {
  color: var(--pc-brown);
}

body.dark-mode .memory-composer {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .memory-composer-avatar {
  background: #2D3E2D;
}

body.dark-mode .memory-post {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .memory-post-content,
body.dark-mode .comment-text {
  color: #CBD5E1;
}

body.dark-mode .mem-filter-chip {
  background: #1e293b;
  color: #CBD5E1;
  border-color: #334155;
}

body.dark-mode .mem-filter-chip.active {
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
}

body.dark-mode .memory-post-actions,
body.dark-mode .comment-item,
body.dark-mode .comment-form {
  border-color: #334155;
}

body.dark-mode .mem-action-btn,
body.dark-mode .comment-meta-btn {
  color: #CBD5E1;
}

body.dark-mode .mem-action-btn:hover,
body.dark-mode .comment-meta-btn:hover {
  background: #334155;
}

body.dark-mode .mem-photo-upload {
  background: #1e293b;
  border-color: #334155;
  color: #94A3B8;
}

body.dark-mode .comment-form input {
  background: #1e293b;
  border-color: #334155;
  color: #F8FAFC;
}

/* ============================================================ */
/* 25. RESPONSIVE — MEMORY                                       */
/* ============================================================ */
@media (max-width: 480px) {
  .memories-banner {
    min-height: 90px;
    padding: 18px;
  }

  .memories-banner-title {
    font-size: 1.4rem;
  }

  .memories-banner-sub {
    font-size: 1.1rem;
  }

  .memories-banner-illust {
    width: 100px;
    height: 70px;
  }

  .memory-post {
    padding: 14px;
  }

  .memory-post-author-avatar {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .memory-post-title {
    font-size: 13.5px;
  }

  .memory-post-content {
    font-size: 13px;
  }

  .mem-action-btn {
    font-size: 11.5px;
    padding: 7px 4px;
  }

  .mem-action-btn i {
    font-size: 13px;
  }
}

/* ============================================================ */
/* HEALTH LOG — UPGRADE                                          */
/* ============================================================ */

/* Filter chips */
.health-filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.health-filter-chips::-webkit-scrollbar { display: none; }

.health-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 50px;
  background: var(--pc-paper);
  border: 1.5px solid transparent;
  color: var(--pc-text-2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.health-filter-chip i { font-size: 11px; }

.health-filter-chip:hover {
  background: var(--pc-primary-light);
}

.health-filter-chip.active {
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  box-shadow: 0 4px 10px rgba(58, 74, 58, 0.25);
}

/* Health log entries */
.health-log-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.health-entry {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  background: var(--pc-paper);
  border-radius: 14px;
  transition: all 0.22s ease;
  cursor: pointer;
  position: relative;
}

.health-entry:hover {
  background: var(--pc-primary-light);
}

.health-entry-type-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.health-entry-info {
  flex: 1;
  min-width: 0;
}

.health-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.health-entry-type-label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.health-entry-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--pc-text);
}

.health-entry-note {
  font-size: 13px;
  color: var(--pc-text-2);
  line-height: 1.45;
  margin-bottom: 6px;
  white-space: pre-line;
}

.health-entry-date {
  font-size: 11px;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.health-entry-date i {
  font-size: 10px;
  color: var(--pc-accent);
}

.health-entry-menu {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.health-entry-menu:hover {
  background: var(--pc-card);
  color: var(--pc-text);
}

/* Health log empty state */
.health-log-empty {
  text-align: center;
  padding: 32px 20px;
  color: var(--pc-text-muted);
}

.health-log-empty i {
  font-size: 36px;
  opacity: 0.4;
  display: block;
  margin-bottom: 12px;
}

.health-log-empty p {
  font-size: 14px;
  font-weight: 700;
  color: var(--pc-text);
  margin-bottom: 4px;
}

.health-log-empty span {
  font-size: 12px;
  display: block;
}

/* Type chips in Add/Edit modal */
.health-type-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.health-type-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 4px;
  background: var(--pc-paper);
  border: 1.5px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--pc-text-2);
}

.health-type-chip i {
  font-size: 16px;
  color: var(--pc-accent);
}

.health-type-chip:hover {
  background: var(--pc-primary-light);
}

.health-type-chip.active {
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  border-color: var(--pc-primary);
  box-shadow: 0 4px 10px rgba(58, 74, 58, 0.25);
}

.health-type-chip.active i {
  color: var(--pc-text-on-dark);
}

/* Health detail modal */
.health-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.health-detail-header i {
  font-size: 24px;
}

.health-detail-type {
  font-size: 14px;
  font-weight: 800;
}

.health-detail-date {
  font-size: 11.5px;
  opacity: 0.8;
  margin-top: 2px;
}

.health-detail-note {
  font-size: 14px;
  color: var(--pc-text);
  line-height: 1.6;
  white-space: pre-line;
}

/* Weight empty state */
.weight-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--pc-text-muted);
  background: var(--pc-paper);
  border-radius: 14px;
  border: 1.5px dashed var(--pc-border);
}

.weight-empty-state i {
  font-size: 36px;
  opacity: 0.5;
  display: block;
  margin-bottom: 12px;
}

.weight-empty-state p {
  font-size: 14px;
  font-weight: 700;
  color: var(--pc-text);
  margin-bottom: 4px;
}

.weight-empty-state span {
  font-size: 12px;
  display: block;
  line-height: 1.4;
}

/* Dark mode */
body.dark-mode .health-entry {
  background: #1e293b;
}

body.dark-mode .health-entry:hover {
  background: #334155;
}

body.dark-mode .health-entry-value,
body.dark-mode .health-detail-note {
  color: #F8FAFC;
}

body.dark-mode .health-entry-note {
  color: #CBD5E1;
}

body.dark-mode .health-filter-chip,
body.dark-mode .health-type-chip {
  background: #1e293b;
  color: #CBD5E1;
}

body.dark-mode .health-filter-chip.active,
body.dark-mode .health-type-chip.active {
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
}

body.dark-mode .weight-empty-state {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .weight-empty-state p {
  color: #F8FAFC;
}

/* Responsive */
@media (max-width: 480px) {
  .health-type-chips {
    grid-template-columns: repeat(2, 1fr);
  }

  .health-entry-value {
    font-size: 15px;
  }
}


/* ============================================================ */
/* 26. USER PROFILE VIEW — COMPACT DESIGN                        */
/* ============================================================ */

.user-profile-page {
  padding-top: 0;
  margin-top: -16px; 
}

/* ══════════ HERO CARD ══════════ */
.prof-hero-card {
  background: var(--pc-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(139, 111, 71, 0.06);
  border: 1px solid var(--pc-border-light);
  margin-bottom: 12px;
  position: relative;
}

/* ----- Cover ----- */
.prof-cover {
  position: relative;
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, #C8D4E4, #7BA3C9);
  overflow: hidden;
}

.prof-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.prof-back-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #3D2E1F;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 3;
}

.prof-back-btn:hover {
  transform: scale(1.06);
}

.prof-follow-top {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 50px;
  background: rgba(45, 62, 45, 0.92);
  color: #F5E6D3;
  border: none;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.prof-follow-top i { font-size: 10px; }

.prof-follow-top.following {
  background: rgba(255, 255, 255, 0.95);
  color: #3D2E1F;
}

/* ----- Identity Row ----- */
.prof-identity {
  display: flex;
  gap: 12px;
  padding: 0 14px 12px;
  margin-top: -38px;
  position: relative;
  z-index: 2;
  align-items: flex-start;
}

.prof-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.prof-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pc-paper);
  border: 3px solid var(--pc-card);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prof-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prof-avatar-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #2F3A5F;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
}

.prof-verified-chip {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 20px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
  white-space: nowrap;
  border: 2px solid var(--pc-card);
}

.prof-verified-chip i { font-size: 7px; }

/* ----- Identity Info ----- */
.prof-identity-info {
  flex: 1;
  min-width: 0;
  padding-top: 42px;
}

.prof-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 4px;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.prof-name-tick {
  color: var(--pc-success);
  font-size: 12px;
}

.prof-role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}

.prof-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.prof-role-chip i { font-size: 9px; }

.chip-vet   { background: var(--pc-success-soft); color: var(--pc-success); }
.chip-store { background: var(--pc-purple-soft); color: var(--pc-purple); }
.chip-owner { background: var(--pc-warning-soft); color: var(--pc-warning); }

.prof-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  margin-bottom: 6px;
}

.prof-meta-item {
  font-size: 11px;
  color: var(--pc-text-2);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.prof-meta-item i { color: var(--pc-accent); font-size: 10px; }

.prof-online-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--pc-success-soft);
  color: var(--pc-success);
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.prof-online-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pc-success);
  display: inline-block;
}

.prof-tagline {
  font-size: 11.5px;
  color: var(--pc-text-2);
  line-height: 1.45;
  font-style: italic;
  margin-top: 2px;
}

.prof-tagline i { color: var(--pc-pink); font-size: 10px; }

/* ----- Stats Row — SINGLE LINE 4 COLUMN ----- */
.prof-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 10px 8px 12px;
  border-top: 1px solid var(--pc-border-light);
  margin: 0 14px;
}

.prof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 4px;
  border-right: 1px solid var(--pc-border-light);
  min-width: 0;
  text-align: center;
}

.prof-stat:last-child { border-right: none; }

.prof-stat-icon {
  font-size: 14px;
  color: var(--pc-accent);
  flex-shrink: 0;
  margin-bottom: 1px;
}

.prof-stat-highlight .prof-stat-icon {
  color: var(--pc-caramel);
}

.prof-stat-text { min-width: 0; width: 100%; }

.prof-stat-value {
  font-size: 13px;
  font-weight: 800;
  color: var(--pc-text);
  line-height: 16px;              /* ⭐ FIXED height — no shifting */
  height: 16px;                   /* ⭐ Force exact height */
  margin-bottom: 4px;             /* ⭐ Consistent gap */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  display: flex;                  /* ⭐ Flex to align perfectly */
  align-items: center;
  justify-content: center;
}

.prof-stat-label {
  font-size: 8.5px;
  color: var(--pc-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  line-height: 11px;              /* ⭐ FIXED height */
  height: 11px;                   /* ⭐ Force exact height */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;        /* ⭐ Vertical center */
  gap: 2px;
  padding: 0 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  min-width: 0;
  position: relative;
  transition: transform 0.2s ease;
  min-height: 44px;               /* ⭐ Force consistent height */
}


/* ══════════ TABS ══════════ */
.prof-tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: var(--pc-card);
  border-radius: 50px;
  margin-bottom: 14px;
  box-shadow: var(--pc-shadow-sm);
  border: 1px solid var(--pc-border-light);
  overflow-x: auto;
  scrollbar-width: none;
}

.prof-tabs::-webkit-scrollbar { display: none; }

.prof-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 50px;
  background: transparent;
  border: none;
  color: var(--pc-text-2);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
  font-family: inherit;
  min-width: 0;
}

.prof-tab i { font-size: 12px; }

.prof-tab:hover { color: var(--pc-text); }

.prof-tab.active {
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  box-shadow: 0 4px 12px rgba(58, 74, 58, 0.25);
}

/* ══════════ SECTION CARD ══════════ */
.prof-section-card {
  background: var(--pc-card);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--pc-shadow-sm);
  border: 1px solid var(--pc-border-light);
}

.prof-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}

.prof-section-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--pc-text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.prof-section-header h3 i {
  color: var(--pc-accent);
  font-size: 14px;
}

.prof-see-all {
  font-size: 12px;
  font-weight: 800;
  color: var(--pc-accent);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.prof-see-all:hover { background: var(--pc-primary-light); }
.prof-see-all i { font-size: 10px; }

/* ══════════ POSTS FEED ══════════ */
.prof-posts-feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.prof-post-card {
  background: var(--pc-paper);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.prof-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pc-shadow-md);
  border-color: var(--pc-border-light);
}

.prof-post-head { margin-bottom: 10px; }

.prof-post-author {
  display: flex;
  align-items: center;
  gap: 9px;
}

.prof-post-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.prof-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prof-post-author-info { flex: 1; min-width: 0; }

.prof-post-author-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--pc-text);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prof-post-author-name i {
  color: var(--pc-success);
  font-size: 10px;
  flex-shrink: 0;
}

.prof-post-author-time {
  font-size: 10px;
  color: var(--pc-text-muted);
}

.prof-post-menu {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.prof-post-menu:hover { background: var(--pc-card); }

.prof-post-body { margin-bottom: 10px; flex: 1; }

.prof-post-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.prof-post-text {
  font-size: 12px;
  color: var(--pc-text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prof-post-image {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--pc-card);
}

.prof-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prof-post-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--pc-border-light);
}

.prof-post-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pc-text-2);
}

.prof-post-stat i {
  font-size: 12px;
  color: var(--pc-text-muted);
}

.prof-post-stat:first-child i { color: #E85D75; }

.prof-post-stat-right {
  margin-left: auto;
}

/* ══════════ ABOUT (2-column) ══════════ */
.prof-about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-bottom: 14px;
}

.prof-about-text {
  font-size: 13px;
  color: var(--pc-text-2);
  line-height: 1.65;
}

.prof-about-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prof-about-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.prof-about-item i {
  font-size: 14px;
  color: var(--pc-accent);
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.prof-about-key {
  font-size: 10px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.prof-about-val {
  font-size: 12.5px;
  color: var(--pc-text);
  font-weight: 700;
  line-height: 1.4;
}

.prof-online-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--pc-success-soft);
  color: var(--pc-success);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  align-self: flex-start;
  margin-top: 4px;
}

.prof-specializations {
  padding-top: 14px;
  border-top: 1px dashed var(--pc-border-light);
}

.prof-spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.prof-spec-tag {
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--pc-primary-light);
  color: var(--pc-accent);
  font-size: 11.5px;
  font-weight: 700;
}

/* ══════════ PETS GRID ══════════ */
.prof-pets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.prof-pet-card {
  background: var(--pc-paper);
  border-radius: 16px;
  padding: 16px 12px;
  border: 1px solid var(--pc-border-light);
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prof-pet-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pc-shadow-md);
  background: var(--pc-card);
}

.prof-pet-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pc-card);
  margin-bottom: 10px;
  border: 3px solid var(--pc-card);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.prof-pet-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prof-pet-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 3px;
}

.prof-pet-meta {
  font-size: 11px;
  color: var(--pc-text-muted);
  font-weight: 600;
}

/* ══════════ REVIEWS ══════════ */
.prof-reviews-hero {
  text-align: center;
  padding: 12px 0;
}

.prof-reviews-big {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--pc-text);
  line-height: 1;
  margin-bottom: 10px;
}

.prof-reviews-stars {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 8px;
}

.prof-reviews-stars i {
  color: var(--pc-caramel);
  font-size: 18px;
}

.prof-reviews-count {
  font-size: 12.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
}

.prof-community-rep {
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
}

.prof-community-stat {
  text-align: center;
  flex: 1;
}

.prof-community-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--pc-accent);
  margin-bottom: 4px;
}

.prof-community-label {
  font-size: 11px;
  color: var(--pc-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ══════════ EMPTY ══════════ */
.prof-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--pc-text-muted);
}

.prof-empty i {
  font-size: 36px;
  opacity: 0.35;
  display: block;
  margin-bottom: 10px;
}

.prof-empty p {
  font-size: 13px;
  font-weight: 600;
}

/* ══════════ POST DETAIL MODAL ══════════ */
.pd-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pc-border-light);
}

.pd-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pd-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.pd-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-author-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.pd-author-name i { color: var(--pc-success); font-size: 12px; }

.pd-author-time {
  font-size: 11.5px;
  color: var(--pc-text-muted);
}

.pd-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.pd-content {
  font-size: 14px;
  color: var(--pc-text-2);
  line-height: 1.65;
  white-space: pre-line;
  margin-bottom: 14px;
}

.pd-image {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--pc-paper);
}

.pd-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.pd-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.pd-product-img {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pc-paper);
}

.pd-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--pc-border-light);
  border-bottom: 1px solid var(--pc-border-light);
}

.pd-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: var(--pc-text-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.pd-action:hover {
  background: var(--pc-paper);
  color: var(--pc-text);
}

.pd-action i { font-size: 14px; }

.pd-comments {
  margin-top: 14px;
}

.pd-comments-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.pd-comment {
  display: flex;
  gap: 10px;
  padding: 8px 0;
}

.pd-comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.pd-comment-author {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 3px;
}

.pd-comment-text {
  font-size: 12.5px;
  color: var(--pc-text-2);
  line-height: 1.5;
}

/* ══════════ PUBLIC PET MODAL ══════════ */
.public-pet-hero {
  width: 100%;
  aspect-ratio: 1;
  max-width: 200px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pc-paper);
  border: 4px solid var(--pc-card);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.public-pet-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.public-pet-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--pc-text);
  text-align: center;
  margin-bottom: 5px;
}

.public-pet-meta {
  font-size: 12.5px;
  color: var(--pc-text-muted);
  text-align: center;
  margin-bottom: 10px;
  font-weight: 600;
}

.public-pet-health {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pc-success-soft);
  color: var(--pc-success);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  margin: 0 auto 14px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.public-pet-divider {
  height: 1px;
  background: var(--pc-border-light);
  margin: 14px 0;
}

.public-pet-owner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--pc-paper);
  border-radius: 14px;
}

.public-pet-owner-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.public-pet-owner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.public-pet-owner-info { flex: 1; min-width: 0; }

.public-pet-owner-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.public-pet-owner-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 2px;
}

.public-pet-owner-loc {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.public-pet-owner-loc i { font-size: 10px; color: var(--pc-accent); }

/* ══════════ DARK MODE ══════════ */
body.dark-mode .prof-hero-card,
body.dark-mode .prof-tabs,
body.dark-mode .prof-section-card {
  background: #2A1F18;
  border-color: #4A3A2C;
}

body.dark-mode .prof-post-card {
  background: #241A14;
}

body.dark-mode .prof-post-card:hover {
  background: #2A1F18;
}

body.dark-mode .prof-avatar-initial,
body.dark-mode .pd-avatar,
body.dark-mode .pd-comment-avatar,
body.dark-mode .prof-post-avatar,
body.dark-mode .public-pet-owner-avatar {
  color: #2F3A5F;
}

body.dark-mode .prof-follow-top {
  background: rgba(107, 158, 95, 0.9);
}

body.dark-mode .prof-follow-top.following {
  background: rgba(255, 255, 255, 0.95);
  color: #3D2E1F;
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 640px) {
  .prof-cover { height: 140px; }
  .prof-avatar { width: 90px; height: 90px; }
  .prof-avatar-initial { font-size: 34px; }
  .prof-identity { gap: 12px; padding: 0 14px 16px; margin-top: -46px; }
  .prof-identity-info { padding-top: 52px; }
  .prof-name { font-size: 1.1rem; }
  .prof-tagline { font-size: 11.5px; }
  .prof-stats-row { grid-template-columns: 1fr 1fr; gap: 12px 0; padding: 12px 6px 14px; margin: 0 14px; }
  .prof-stat { padding: 0 8px; }
  .prof-stat:nth-child(2) { border-right: none; }
  .prof-stat:nth-child(1), .prof-stat:nth-child(2) { padding-bottom: 10px; border-bottom: 1px dashed var(--pc-border-light); }
  .prof-stat:nth-child(3) { padding-top: 10px; border-right: none; }
  .prof-stat:nth-child(4) { padding-top: 10px; }
  .prof-posts-feed { grid-template-columns: 1fr; }
  .prof-about-grid { grid-template-columns: 1fr; gap: 14px; }
  .prof-tab { padding: 9px 10px; font-size: 11.5px; }
  .prof-tab i { font-size: 11px; }
}

@media (max-width: 400px) {
  .prof-avatar { width: 78px; height: 78px; }
  .prof-avatar-initial { font-size: 28px; }
  .prof-identity-info { padding-top: 44px; }
  .prof-tab span { display: none; }
  .prof-tab i { font-size: 14px; }
}


/* ============================================================ */
/* 26. USER PROFILE VIEW (Public — memory feed theke)           */
/* ============================================================ */

.user-profile-page {
  padding-top: 0;
}

/* ══════════ HERO CARD ══════════ */
.prof-hero-card {
  background: var(--pc-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--pc-shadow-sm);
  border: 1px solid var(--pc-border-light);
  margin-bottom: 14px;
}

/* Cover */
.prof-cover {
  position: relative;
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #D4DEC8, #8B9D7E);
  overflow: hidden;
}

.prof-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prof-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 60%, rgba(0,0,0,0.06) 100%);
  pointer-events: none;
}

.prof-back-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #3D2E1F;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 3;
}

.prof-back-btn:hover { transform: scale(1.06); }

.prof-follow-top {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(45, 62, 45, 0.92);
  color: #F5E6D3;
  border: none;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.prof-follow-top i { font-size: 10px; }
.prof-follow-top.following {
  background: rgba(255, 255, 255, 0.95);
  color: #3D2E1F;
}

/* Identity */
.prof-identity {
  display: flex;
  gap: 12px;
  padding: 0 14px 12px;
  margin-top: -42px;
  position: relative;
  z-index: 2;
  align-items: flex-start;
}

.prof-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.prof-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pc-paper);
  border: 3px solid var(--pc-card);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prof-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prof-avatar-initial {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800; color: #2F3A5F;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
}

.prof-verified-chip {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 20px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
  white-space: nowrap;
  border: 2px solid var(--pc-card);
}

.prof-verified-chip i { font-size: 7px; }

.prof-identity-info {
  flex: 1;
  min-width: 0;
  padding-top: 44px;
}

.prof-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 5px;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.prof-name-tick {
  color: var(--pc-success);
  font-size: 12px;
}

.prof-role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}

.prof-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.prof-role-chip i { font-size: 9px; }
.chip-vet   { background: var(--pc-success-soft); color: var(--pc-success); }
.chip-store { background: var(--pc-purple-soft);  color: var(--pc-purple); }
.chip-owner { background: var(--pc-warning-soft); color: var(--pc-warning); }

.prof-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  margin-bottom: 6px;
}

.prof-meta-item {
  font-size: 11px;
  color: var(--pc-text-2);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.prof-meta-item i { color: var(--pc-accent); font-size: 10px; }

.prof-online-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--pc-success-soft);
  color: var(--pc-success);
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.prof-online-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pc-success);
  display: inline-block;
}

.prof-tagline {
  font-size: 11.5px;
  color: var(--pc-text-2);
  line-height: 1.45;
  font-style: italic;
  margin-top: 2px;
}

.prof-tagline i { color: var(--pc-pink); font-size: 10px; }

/* Stats Row (Public — 4 col) */
.prof-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 12px 10px 14px;
  border-top: 1px solid var(--pc-border-light);
  margin: 0 14px;
}

.prof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 4px;
  border: none;
  background: transparent;
  border-right: 1px solid var(--pc-border-light);
  cursor: default;
  font-family: inherit;
  min-width: 0;
}

.prof-stat:last-child { border-right: none; }

.prof-stat-icon {
  font-size: 13px;
  color: var(--pc-accent);
  margin-bottom: 2px;
}

.prof-stat-highlight .prof-stat-icon { color: var(--pc-caramel); }

.prof-stat-text { min-width: 0; width: 100%; }

.prof-stat-value {
  font-size: 13px;
  font-weight: 800;
  color: var(--pc-text);
  line-height: 1.1;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.prof-stat-label {
  font-size: 8.5px;
  color: var(--pc-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* ══════════ TABS (Public profile) ══════════ */
.prof-tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: var(--pc-card);
  border-radius: 50px;
  margin-bottom: 14px;
  box-shadow: var(--pc-shadow-sm);
  border: 1px solid var(--pc-border-light);
  overflow-x: auto;
  scrollbar-width: none;
}

.prof-tabs::-webkit-scrollbar { display: none; }

.prof-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 50px;
  background: transparent;
  border: none;
  color: var(--pc-text-2);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
  font-family: inherit;
  min-width: 0;
}

.prof-tab i { font-size: 12px; }
.prof-tab:hover { color: var(--pc-text); }

.prof-tab.active {
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  box-shadow: 0 4px 12px rgba(58, 74, 58, 0.25);
}

/* ══════════ SECTION CARD ══════════ */
.prof-section-card {
  background: var(--pc-card);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--pc-shadow-sm);
  border: 1px solid var(--pc-border-light);
}

.prof-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}

.prof-section-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--pc-text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.prof-section-header h3 i { color: var(--pc-accent); font-size: 14px; }

.prof-see-all {
  font-size: 12px;
  font-weight: 800;
  color: var(--pc-accent);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.prof-see-all:hover { background: var(--pc-primary-light); }
.prof-see-all i { font-size: 10px; }

/* ══════════ POSTS FEED (Public) ══════════ */
.prof-posts-feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.prof-post-card {
  background: var(--pc-paper);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.prof-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pc-shadow-md);
  border-color: var(--pc-border-light);
}

.prof-post-head { margin-bottom: 10px; }

.prof-post-author {
  display: flex;
  align-items: center;
  gap: 9px;
}

.prof-post-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.prof-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prof-post-author-info { flex: 1; min-width: 0; }

.prof-post-author-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--pc-text);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prof-post-author-name i {
  color: var(--pc-success);
  font-size: 10px;
  flex-shrink: 0;
}

.prof-post-author-time {
  font-size: 10px;
  color: var(--pc-text-muted);
}

.prof-post-menu {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.prof-post-menu:hover { background: var(--pc-card); }

.prof-post-body { margin-bottom: 10px; flex: 1; }

.prof-post-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.prof-post-text {
  font-size: 12px;
  color: var(--pc-text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prof-post-image {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--pc-card);
}

.prof-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prof-post-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--pc-border-light);
}

.prof-post-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pc-text-2);
}

.prof-post-stat i { font-size: 12px; color: var(--pc-text-muted); }
.prof-post-stat:first-child i { color: #E85D75; }
.prof-post-stat-right { margin-left: auto; }

/* ══════════ ABOUT (2-column) ══════════ */
.prof-about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-bottom: 14px;
}

.prof-about-text {
  font-size: 13px;
  color: var(--pc-text-2);
  line-height: 1.65;
}

.prof-about-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prof-about-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.prof-about-item i {
  font-size: 14px;
  color: var(--pc-accent);
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.prof-about-key {
  font-size: 10px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.prof-about-val {
  font-size: 12.5px;
  color: var(--pc-text);
  font-weight: 700;
  line-height: 1.4;
}

.prof-online-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--pc-success-soft);
  color: var(--pc-success);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  align-self: flex-start;
  margin-top: 4px;
}

.prof-specializations {
  padding-top: 14px;
  border-top: 1px dashed var(--pc-border-light);
}

.prof-spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.prof-spec-tag {
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--pc-primary-light);
  color: var(--pc-accent);
  font-size: 11.5px;
  font-weight: 700;
}

/* ══════════ PETS (Public) ══════════ */
.prof-pets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.prof-pet-card {
  background: var(--pc-paper);
  border-radius: 16px;
  padding: 16px 12px;
  border: 1px solid var(--pc-border-light);
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prof-pet-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pc-shadow-md);
  background: var(--pc-card);
}

.prof-pet-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pc-card);
  margin-bottom: 10px;
  border: 3px solid var(--pc-card);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.prof-pet-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.prof-pet-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 3px;
}

.prof-pet-meta {
  font-size: 11px;
  color: var(--pc-text-muted);
  font-weight: 600;
}

/* ══════════ REVIEWS (Public) ══════════ */
.prof-reviews-hero { text-align: center; padding: 12px 0; }

.prof-reviews-big {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--pc-text);
  line-height: 1;
  margin-bottom: 10px;
}

.prof-reviews-stars {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 8px;
}

.prof-reviews-stars i { color: var(--pc-caramel); font-size: 18px; }

.prof-reviews-count {
  font-size: 12.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
}

.prof-community-rep { display: flex; justify-content: space-around; padding: 8px 0; }
.prof-community-stat { text-align: center; flex: 1; }

.prof-community-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--pc-accent);
  margin-bottom: 4px;
}

.prof-community-label {
  font-size: 11px;
  color: var(--pc-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ══════════ EMPTY ══════════ */
.prof-empty { text-align: center; padding: 32px 16px; color: var(--pc-text-muted); }
.prof-empty i { font-size: 36px; opacity: 0.35; display: block; margin-bottom: 10px; }
.prof-empty p { font-size: 13px; font-weight: 600; }

/* ══════════ PUBLIC PET MODAL ══════════ */
.public-pet-hero {
  width: 100%;
  aspect-ratio: 1;
  max-width: 200px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pc-paper);
  border: 4px solid var(--pc-card);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.public-pet-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.public-pet-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--pc-text);
  text-align: center;
  margin-bottom: 5px;
}

.public-pet-meta {
  font-size: 12.5px;
  color: var(--pc-text-muted);
  text-align: center;
  margin-bottom: 10px;
  font-weight: 600;
}

.public-pet-health {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pc-success-soft);
  color: var(--pc-success);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  margin: 0 auto 14px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.public-pet-divider { height: 1px; background: var(--pc-border-light); margin: 14px 0; }

.public-pet-owner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--pc-paper);
  border-radius: 14px;
}

.public-pet-owner-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.public-pet-owner-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.public-pet-owner-info { flex: 1; min-width: 0; }

.public-pet-owner-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.public-pet-owner-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 2px;
}

.public-pet-owner-loc {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.public-pet-owner-loc i { font-size: 10px; color: var(--pc-accent); }

/* ══════════ POST DETAIL MODAL ══════════ */
.pd-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pc-border-light);
}

.pd-author { display: flex; align-items: center; gap: 10px; }

.pd-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.pd-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pd-author-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.pd-author-name i { color: var(--pc-success); font-size: 12px; }
.pd-author-time { font-size: 11.5px; color: var(--pc-text-muted); }

.pd-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.pd-content {
  font-size: 14px;
  color: var(--pc-text-2);
  line-height: 1.65;
  white-space: pre-line;
  margin-bottom: 14px;
}

.pd-image {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--pc-paper);
}

.pd-image img { width: 100%; height: auto; max-height: 400px; object-fit: cover; display: block; }

.pd-products { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }

.pd-product-img {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pc-paper);
}

.pd-product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pd-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--pc-border-light);
  border-bottom: 1px solid var(--pc-border-light);
}

.pd-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: var(--pc-text-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.pd-action:hover { background: var(--pc-paper); color: var(--pc-text); }
.pd-action i { font-size: 14px; }

.pd-comments { margin-top: 14px; }

.pd-comments-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.pd-comment { display: flex; gap: 10px; padding: 8px 0; }

.pd-comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.pd-comment-author {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 3px;
}

.pd-comment-text {
  font-size: 12.5px;
  color: var(--pc-text-2);
  line-height: 1.5;
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 640px) {
  .prof-cover { height: 120px; }
  .prof-avatar { width: 78px; height: 78px; }
  .prof-avatar-initial { font-size: 30px; }
  .prof-identity { padding: 0 12px 12px; margin-top: -38px; }
  .prof-identity-info { padding-top: 40px; }
  .prof-name { font-size: 1rem; }
  .prof-stats-row { padding: 10px 6px 12px; margin: 0 12px; }
  .prof-stat-value { font-size: 12px; }
  .prof-stat-label { font-size: 8px; }
  .prof-posts-feed { grid-template-columns: 1fr; }
  .prof-about-grid { grid-template-columns: 1fr; gap: 14px; }
  .prof-tab { padding: 9px 10px; font-size: 11.5px; }
  .prof-tab i { font-size: 11px; }
}

@media (max-width: 400px) {
  .prof-avatar { width: 72px; height: 72px; }
  .prof-avatar-initial { font-size: 26px; }
  .prof-identity-info { padding-top: 36px; }
  .prof-tab span { display: none; }
  .prof-tab i { font-size: 14px; }
}


/* ============================================================ */
/* 27. MY PROFILE PAGE (Own — nijer profile)                     */
/* ============================================================ */

.my-profile-page {
  padding-top: 0;
}

/* ══════════ HERO CARD (Cover + Identity) ══════════ */
.mp-hero-card {
  position: relative;
  background: var(--pc-card);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--pc-shadow-sm);
  border: 1px solid var(--pc-border-light);
}

/* Cover */
.mp-cover {
  position: relative;
  width: 100%;
  height: 160px;
  background: var(--pc-paper);
  overflow: hidden;
}

.mp-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-cover-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--pc-text-muted);
  font-size: 12px;
  font-weight: 700;
  background: repeating-linear-gradient(45deg, var(--pc-paper), var(--pc-paper) 10px, var(--pc-border-light) 10px, var(--pc-border-light) 20px);
}

.mp-cover-empty i { font-size: 22px; opacity: 0.5; }

.mp-cover-edit {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #3D2E1F;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.mp-cover-edit:hover { transform: scale(1.06); }

/* Identity */
.mp-identity {
  display: flex;
  gap: 14px;
  padding: 0 16px 16px;
  margin-top: -46px;
  position: relative;
  z-index: 2;
  align-items: flex-start;
}

.mp-avatar-btn {
  position: relative;
  flex-shrink: 0;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.mp-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pc-paper);
  border: 4px solid var(--pc-card);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mp-avatar-initial {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 800; color: #2F3A5F;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
}

.mp-avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border: 3px solid var(--pc-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mp-identity-info {
  flex: 1;
  min-width: 0;
  padding-top: 52px;
}

.mp-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 8px;
  line-height: 1.15;
}

.mp-role-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.mp-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mp-role-chip i { font-size: 9px; }
.chip-vet   { background: var(--pc-success-soft); color: var(--pc-success); }
.chip-store { background: var(--pc-purple-soft);  color: var(--pc-purple); }
.chip-owner { background: var(--pc-warning-soft); color: var(--pc-warning); }

.mp-location {
  font-size: 12.5px;
  color: var(--pc-text-2);
  font-weight: 600;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mp-location i { color: var(--pc-accent); font-size: 11px; }

.mp-tagline {
  font-size: 12.5px;
  color: var(--pc-text-2);
  line-height: 1.45;
  font-style: italic;
}

.mp-tagline i { color: var(--pc-pink); font-size: 10px; }

/* Stats Row (4 col) */
.mp-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 12px 0 14px;
  border-top: 1px solid var(--pc-border-light);
  margin: 0 16px;
}

.mp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 4px;
  border: none;
  background: transparent;
  border-right: 1px solid var(--pc-border-light);
  cursor: pointer;
  font-family: inherit;
  min-width: 0;
}

.mp-stat:last-child { border-right: none; }

.mp-stat-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--pc-text);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.mp-stat-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ══════════ QUICK ACTIONS ══════════ */
.mp-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.mp-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px;
  background: var(--pc-card);
  border: 1px solid var(--pc-border-light);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  box-shadow: var(--pc-shadow-sm);
}

.mp-action-card:hover { transform: translateY(-3px); box-shadow: var(--pc-shadow-md); }

.mp-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.action-blue .mp-action-icon   { background: var(--pc-info-soft);    color: var(--pc-info); }
.action-green .mp-action-icon  { background: var(--pc-success-soft); color: var(--pc-success); }
.action-peach .mp-action-icon  { background: var(--pc-warning-soft); color: #D97706; }
.action-purple .mp-action-icon { background: var(--pc-purple-soft);  color: var(--pc-purple); }

.mp-action-label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--pc-text);
  text-align: center;
  line-height: 1.2;
}

/* ══════════ SECTION CARD ══════════ */
.mp-section-card {
  background: var(--pc-card);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--pc-shadow-sm);
  border: 1px solid var(--pc-border-light);
}

.mp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}

.mp-section-header h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--pc-text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.mp-section-header h3 i { color: var(--pc-accent); font-size: 14px; }

.mp-see-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: none;
  background: transparent;
  color: var(--pc-accent);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
  font-family: inherit;
}

.mp-see-all:hover { background: var(--pc-primary-light); }
.mp-see-all i { font-size: 10px; }

/* ══════════ MY POSTS ══════════ */
.mp-posts-feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mp-post-card {
  background: var(--pc-paper);
  border: 1px solid var(--pc-border-light);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  display: flex;
  flex-direction: column;
}

.mp-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pc-shadow-sm);
  border-color: var(--pc-caramel);
}

.mp-post-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--pc-card);
}

.mp-post-img img { width: 100%; height: 100%; object-fit: cover; }

.mp-post-text-only {
  aspect-ratio: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--pc-purple-soft);
  text-align: center;
  gap: 6px;
}

.mp-post-text-only i { font-size: 16px; color: var(--pc-purple); opacity: 0.6; }

.mp-post-text-only p {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pc-purple);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mp-post-footer {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--pc-text-muted);
}

.mp-post-footer i { font-size: 10px; margin-right: 3px; }
.mp-post-footer span:first-child i { color: #E85D75; }

.mp-posts-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px 16px;
}

.mp-posts-empty i {
  font-size: 32px;
  color: var(--pc-text-muted);
  opacity: 0.4;
  display: block;
  margin-bottom: 10px;
}

.mp-posts-empty p {
  font-size: 12.5px;
  color: var(--pc-text-muted);
  margin-bottom: 12px;
}

/* ══════════ MY PETS ══════════ */
.mp-pets-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.mp-pets-scroll::-webkit-scrollbar { display: none; }

.mp-pet-card {
  position: relative;
  min-width: 175px;
  max-width: 175px;
  flex-shrink: 0;
  background: var(--pc-paper);
  border: 1px solid var(--pc-border-light);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mp-pet-main {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.mp-pet-image {
  width: 100%;
  aspect-ratio: 1.5;
  overflow: hidden;
  background: var(--pc-card);
}

.mp-pet-image img { width: 100%; height: 100%; object-fit: cover; }

.mp-pet-info { padding: 10px 12px 12px; }

.mp-pet-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.mp-pet-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pet-gender-male   { color: #3B82F6; font-size: 12px; }
.pet-gender-female { color: #EC4899; font-size: 12px; }

.mp-pet-breed {
  font-size: 11px;
  color: var(--pc-text-muted);
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-pet-tags { display: flex; gap: 5px; flex-wrap: wrap; }

.mp-pet-tag {
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--pc-paper);
  color: var(--pc-text-2);
  border: 1px solid var(--pc-border-light);
}

.mp-pet-tag-healthy {
  background: var(--pc-success-soft);
  color: var(--pc-success);
  border-color: transparent;
}

.mp-pet-tag-healthy i { font-size: 8px; margin-right: 2px; }

.mp-pet-menu {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  color: #3D2E1F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.mp-pets-empty {
  text-align: center;
  padding: 24px 16px;
  width: 100%;
}

.mp-pets-empty i {
  font-size: 32px;
  color: var(--pc-text-muted);
  opacity: 0.4;
  display: block;
  margin-bottom: 8px;
}

.mp-pets-empty p {
  font-size: 12.5px;
  color: var(--pc-text-muted);
  margin-bottom: 10px;
}

/* ══════════ MY SHOPS ══════════ */
.mp-shops-list { display: flex; flex-direction: column; gap: 10px; }

.mp-shop-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--pc-paper);
  border: 1px solid var(--pc-border-light);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  text-align: left;
  width: 100%;
  align-items: center;
  position: relative;
}

.mp-shop-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pc-shadow-sm);
  border-color: var(--pc-caramel);
}

.mp-shop-cover {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pc-card);
  flex-shrink: 0;
}

.mp-shop-cover img { width: 100%; height: 100%; object-fit: cover; }

.mp-shop-info { flex: 1; min-width: 0; }

.mp-shop-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 5px;
}

.mp-shop-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 5px;
  font-size: 11.5px;
  color: var(--pc-brown);
  font-weight: 700;
  flex-wrap: wrap;
}

.mp-shop-meta i { color: var(--pc-caramel); font-size: 10px; }

.mp-shop-desc {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  line-height: 1.4;
}

.mp-shop-arrow {
  color: var(--pc-text-muted);
  font-size: 14px;
  flex-shrink: 0;
}

/* ══════════ APPOINTMENTS ══════════ */
.mp-appointments-list { display: flex; flex-direction: column; gap: 10px; }

.mp-appt-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--pc-paper);
  border: 1px solid var(--pc-border-light);
  border-radius: 14px;
  align-items: flex-start;
}

.mp-appt-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--pc-info-soft);
  color: var(--pc-info);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.mp-appt-info { flex: 1; min-width: 0; }

.mp-appt-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.mp-appt-clinic { font-size: 13px; font-weight: 800; color: var(--pc-text); }

.mp-appt-status {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mp-appt-status.status-confirmed { background: var(--pc-success-soft); color: var(--pc-success); }
.mp-appt-status.status-pending   { background: var(--pc-warning-soft); color: var(--pc-warning); }

.mp-appt-type { font-size: 11.5px; color: var(--pc-text-2); font-weight: 600; margin-bottom: 6px; }

.mp-appt-meta {
  font-size: 11px;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.mp-appt-meta i { font-size: 10px; color: var(--pc-accent); }

.mp-appt-menu {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--pc-border-light);
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mp-appt-menu:hover { background: var(--pc-card); color: var(--pc-text); }

.mp-appt-empty { text-align: center; padding: 24px 16px; }

.mp-appt-empty i {
  font-size: 30px;
  color: var(--pc-text-muted);
  opacity: 0.4;
  display: block;
  margin-bottom: 8px;
}

.mp-appt-empty p {
  font-size: 12.5px;
  color: var(--pc-text-muted);
  margin-bottom: 10px;
}

.mp-appt-detail-modal {
  padding: 16px;
  background: var(--pc-paper);
  border-radius: 14px;
  border: 1px solid var(--pc-border-light);
  text-align: center;
}

.mp-appt-detail-modal strong { font-size: 15px; color: var(--pc-text); }

/* ══════════ QUICK LINKS ══════════ */
.mp-quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.mp-quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 4px;
  background: var(--pc-card);
  border: 1px solid var(--pc-border-light);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  box-shadow: var(--pc-shadow-sm);
}

.mp-quick-link:hover { transform: translateY(-3px); box-shadow: var(--pc-shadow-md); }

.mp-quick-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.icon-pink   { background: var(--pc-pink-soft);    color: var(--pc-pink); }
.icon-yellow { background: var(--pc-warning-soft); color: var(--pc-warning); }
.icon-green  { background: var(--pc-success-soft); color: var(--pc-success); }
.icon-blue   { background: var(--pc-info-soft);    color: var(--pc-info); }

.mp-quick-link span {
  font-size: 10px;
  font-weight: 800;
  color: var(--pc-text);
  text-align: center;
  line-height: 1.15;
}

/* ══════════ FAVORITE STORES ══════════ */
.mp-favorites-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.mp-favorites-scroll::-webkit-scrollbar { display: none; }

.mp-fav-card-wrap {
  position: relative;
  min-width: 165px;
  max-width: 165px;
  flex-shrink: 0;
}

.mp-fav-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--pc-paper);
  border: 1px solid var(--pc-border-light);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.mp-fav-card:hover { transform: translateY(-2px); box-shadow: var(--pc-shadow-sm); }

.mp-fav-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--pc-card);
  flex-shrink: 0;
}

.mp-fav-logo img { width: 100%; height: 100%; object-fit: cover; }

.mp-fav-info { flex: 1; min-width: 0; }

.mp-fav-name {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-fav-cat {
  font-size: 10px;
  color: var(--pc-text-muted);
  font-weight: 600;
  background: var(--pc-card);
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
}

.mp-fav-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--pc-danger);
  color: #fff;
  border: 2px solid var(--pc-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(196, 90, 74, 0.35);
}

.mp-fav-empty {
  text-align: center;
  padding: 20px 16px;
  width: 100%;
}

.mp-fav-empty i {
  font-size: 28px;
  color: var(--pc-text-muted);
  opacity: 0.4;
  display: block;
  margin-bottom: 8px;
}

.mp-fav-empty p {
  font-size: 12px;
  color: var(--pc-text-muted);
  margin-bottom: 10px;
}

/* ══════════ SETTINGS ══════════ */
.mp-settings-list { display: flex; flex-direction: column; gap: 2px; }

.mp-setting-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-bottom: 1px solid var(--pc-border-light);
  font-family: inherit;
  text-align: left;
  width: 100%;
  transition: background 0.2s ease;
  border-radius: 10px;
}

.mp-setting-row:last-child { border-bottom: none; }
.mp-setting-row:hover { background: var(--pc-paper); padding-left: 8px; padding-right: 8px; }

.mp-setting-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.icon-moon   { background: #E0E7FF; color: #4F46E5; }
.icon-bell   { background: var(--pc-warning-soft); color: var(--pc-warning); }
.icon-lock   { background: var(--pc-info-soft);    color: var(--pc-info); }
.icon-info   { background: var(--pc-success-soft); color: var(--pc-success); }
.icon-danger { background: var(--pc-danger-soft);  color: var(--pc-danger); }

.mp-setting-info { flex: 1; min-width: 0; }

.mp-setting-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 2px;
}

.mp-setting-sub { font-size: 11px; color: var(--pc-text-muted); font-weight: 600; }

.mp-setting-arrow { color: var(--pc-text-muted); font-size: 12px; flex-shrink: 0; }
.mp-setting-danger .mp-setting-label { color: var(--pc-danger); }

.mp-toggle {
  width: 40px;
  height: 22px;
  border-radius: 20px;
  background: var(--pc-border);
  position: relative;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.mp-toggle.on { background: var(--pc-success); }

.mp-toggle-knob {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.mp-toggle.on .mp-toggle-knob { transform: translateX(18px); }

/* ══════════ AVATAR UPLOAD ZONE ══════════ */
.avatar-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 16px;
  background: var(--pc-paper);
  border: 2px dashed var(--pc-border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--pc-text-muted);
  text-align: center;
}

.avatar-upload-zone:hover {
  background: var(--pc-primary-light);
  border-color: var(--pc-primary);
  color: var(--pc-primary);
}

.avatar-upload-zone i { font-size: 30px; }
.avatar-upload-zone p { font-size: 13.5px; font-weight: 700; }
.avatar-upload-zone span { font-size: 11px; }

.avatar-upload-preview {
  margin-top: 12px;
  text-align: center;
}

.avatar-upload-preview img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--pc-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 0 auto;
}

/* ══════════ COVER PICKER GRID ══════════ */
.cover-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.cover-pick-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.cover-pick-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--pc-border-light);
  background: var(--pc-paper);
  transition: all 0.2s ease;
}

.cover-pick-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-pick-item span {
  font-size: 11px;
  font-weight: 700;
  color: var(--pc-text-2);
  text-align: center;
}

.cover-pick-item.active .cover-pick-img {
  border-color: var(--pc-primary);
  border-width: 3px;
  box-shadow: 0 0 0 3px rgba(58, 74, 58, 0.15);
}

.cover-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 16px;
  background: var(--pc-paper);
  border: 2px dashed var(--pc-border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--pc-text-muted);
  text-align: center;
  margin-top: 14px;
}

.cover-upload-zone:hover {
  background: var(--pc-primary-light);
  border-color: var(--pc-primary);
  color: var(--pc-primary);
}

.cover-upload-zone i { font-size: 22px; }
.cover-upload-zone p { font-size: 12.5px; font-weight: 700; }
.cover-upload-zone span { font-size: 10.5px; }

/* ══════════ WISHLIST / REMINDERS / ORDERS / SUPPORT ══════════ */
.wishlist-list, .reminder-list, .orders-list, .support-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wishlist-item, .reminder-item, .order-item, .support-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--pc-paper);
  border-radius: 14px;
  border: 1px solid var(--pc-border-light);
  text-decoration: none;
  color: inherit;
}

.wishlist-img { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.wishlist-img img { width: 100%; height: 100%; object-fit: cover; }
.wishlist-info { flex: 1; min-width: 0; }
.wishlist-name { font-size: 13px; font-weight: 800; color: var(--pc-text); margin-bottom: 4px; }
.wishlist-price { font-size: 13px; font-weight: 800; color: var(--pc-brown); }

.wishlist-actions { display: flex; gap: 6px; flex-shrink: 0; }

.wishlist-add, .wishlist-remove, .reminder-remove, .order-delete {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  flex-shrink: 0;
}

.wishlist-add { background: var(--pc-primary); color: var(--pc-text-on-dark); }
.wishlist-remove, .reminder-remove, .order-delete { background: var(--pc-danger-soft); color: var(--pc-danger); }
.wishlist-remove:hover, .reminder-remove:hover, .order-delete:hover { background: var(--pc-danger); color: #fff; }

.reminder-icon, .order-icon, .support-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.reminder-icon { background: var(--pc-warning-soft); color: var(--pc-warning); }
.order-icon    { background: var(--pc-warning-soft); color: #D97706; }
.support-icon  { background: var(--pc-primary-light); color: var(--pc-accent); }

.reminder-info, .order-info { flex: 1; min-width: 0; }

.reminder-label, .order-id, .support-label { font-size: 13.5px; font-weight: 800; color: var(--pc-text); margin-bottom: 3px; }
.reminder-date, .order-meta, .order-date, .support-sub { font-size: 11.5px; color: var(--pc-text-muted); }

.support-item:hover { background: var(--pc-primary-light); }
.support-item > div:nth-child(2) { flex: 1; min-width: 0; }

/* ══════════ HEALTH RECORDS ══════════ */
.health-record-group {
  padding: 14px;
  background: var(--pc-paper);
  border-radius: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--pc-border-light);
}

.health-record-pet {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--pc-border-light);
}

.health-record-pet img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pc-card);
}

.health-record-pet p { font-size: 14px; font-weight: 800; color: var(--pc-text); }

.health-record-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--pc-border-light);
}

.health-record-item:last-child { border-bottom: none; }

.health-record-item i {
  color: var(--pc-accent);
  font-size: 12px;
  margin-top: 3px;
  flex-shrink: 0;
}

.health-record-note { font-size: 12.5px; color: var(--pc-text); margin-bottom: 2px; }
.health-record-date { font-size: 10.5px; color: var(--pc-text-muted); }

.health-record-empty {
  font-size: 12px;
  color: var(--pc-text-muted);
  font-style: italic;
  text-align: center;
  padding: 12px 0;
}

/* ══════════ DARK MODE ══════════ */
body.dark-mode .prof-hero-card,
body.dark-mode .prof-tabs,
body.dark-mode .prof-section-card,
body.dark-mode .mp-hero-card,
body.dark-mode .mp-action-card,
body.dark-mode .mp-section-card,
body.dark-mode .mp-quick-link {
  background: #2A1F18;
  border-color: #4A3A2C;
}

body.dark-mode .prof-post-card,
body.dark-mode .prof-pet-card,
body.dark-mode .mp-pet-card,
body.dark-mode .mp-appt-card,
body.dark-mode .mp-fav-card,
body.dark-mode .mp-shop-card,
body.dark-mode .mp-post-card,
body.dark-mode .wishlist-item,
body.dark-mode .reminder-item,
body.dark-mode .order-item,
body.dark-mode .support-item,
body.dark-mode .mp-appt-detail-modal,
body.dark-mode .health-record-group {
  background: #241A14;
  border-color: #3A2C22;
}

body.dark-mode .prof-avatar-initial,
body.dark-mode .pd-avatar,
body.dark-mode .pd-comment-avatar,
body.dark-mode .prof-post-avatar,
body.dark-mode .public-pet-owner-avatar,
body.dark-mode .mp-avatar-initial {
  color: #2F3A5F;
}

body.dark-mode .icon-moon { background: #3F1F6B; color: #C4B5FD; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 480px) {
  .mp-avatar { width: 82px; height: 82px; }
  .mp-avatar-initial { font-size: 32px; }
  .mp-name { font-size: 1.15rem; }
  .mp-stat-value { font-size: 14px; }
  .mp-stat-label { font-size: 8.5px; }
  .mp-pet-card { min-width: 155px; max-width: 155px; }
  .mp-action-icon { width: 36px; height: 36px; font-size: 14px; }
  .mp-action-label { font-size: 9.5px; }
  .mp-quick-link span { font-size: 9.5px; }
  .mp-quick-icon { width: 34px; height: 34px; font-size: 14px; }
  .mp-fav-card-wrap { min-width: 150px; max-width: 150px; }
  .prof-cover { height: 120px; }
  .prof-avatar { width: 78px; height: 78px; }
}

/* ============================================================ */
/* ROLE CHOOSER MODAL                                            */
/* ============================================================ */
.role-choice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--pc-paper);
  border: 2px solid var(--pc-border-light);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.role-choice-card:hover {
  background: var(--pc-primary-light);
  border-color: var(--pc-primary);
  transform: translateX(3px);
}

.role-choice-card.active {
  background: var(--pc-primary-light);
  border-color: var(--pc-primary);
}

.role-choice-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.role-choice-owner { background: var(--pc-warning-soft); color: var(--pc-warning); }
.role-choice-store { background: var(--pc-purple-soft);  color: var(--pc-purple); }
.role-choice-vet   { background: var(--pc-success-soft); color: var(--pc-success); }

.role-choice-info { flex: 1; min-width: 0; }

.role-choice-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 3px;
}

.role-choice-sub {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  line-height: 1.35;
}

.role-choice-check {
  color: var(--pc-success);
  font-size: 18px;
  flex-shrink: 0;
}

.role-choice-arrow {
  color: var(--pc-text-muted);
  font-size: 13px;
  flex-shrink: 0;
}

/* Dark mode */
body.dark-mode .role-choice-card {
  background: #241A14;
  border-color: #3A2C22;
}

body.dark-mode .role-choice-card:hover,
body.dark-mode .role-choice-card.active {
  background: #2D3E2D;
  border-color: var(--pc-primary);
}

/* ============================================================ */
/* MEMORY SYSTEM — COMPLETE STYLES                               */
/* Append this to pages.css (after existing Memory section)      */
/* ============================================================ */

/* ============================================================ */
/* 1. ACTION SHEET (Comment/Reply Menu — Bottom Sheet)           */
/* ============================================================ */
.comment-action-sheet {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.comment-action-sheet.active {
  opacity: 1;
  visibility: visible;
}

.comment-action-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.comment-action-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--pc-card);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 12px 20px 24px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.comment-action-sheet.active .comment-action-panel {
  transform: translateY(0);
}

.comment-action-handle {
  width: 40px;
  height: 4px;
  border-radius: 20px;
  background: var(--pc-border);
  margin: 0 auto 16px;
}

.comment-action-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
  text-align: center;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.comment-action-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-bottom: 8px;
}

.comment-action-item i {
  font-size: 15px;
}

.comment-action-danger {
  background: var(--pc-danger-soft);
  color: var(--pc-danger);
}

.comment-action-danger:hover {
  background: var(--pc-danger);
  color: #fff;
}

.comment-action-cancel {
  background: var(--pc-paper);
  color: var(--pc-text-2);
  margin-bottom: 0;
}

.comment-action-cancel:hover {
  background: var(--pc-border-light);
  color: var(--pc-text);
}

/* ============================================================ */
/* 2. COMMENT MENU BUTTON (3-dot on own comments)                */
/* ============================================================ */
.comment-item {
  position: relative;
}

.comment-menu-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 4px;
  align-self: flex-start;
  margin-top: 4px;
}

.comment-menu-btn:hover {
  background: var(--pc-paper);
  color: var(--pc-text);
}

.comment-item-parent {
  position: relative;
  padding-right: 4px;
}

/* ============================================================ */
/* 3. REPLY AVATAR VARIANTS                                      */
/* ============================================================ */
.comment-reply-item .comment-avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.comment-reply-item .comment-body {
  padding-bottom: 4px;
}

.comment-reply-item .comment-text {
  font-size: 12.5px;
}

.comment-reply-item .comment-author {
  font-size: 12px;
}

/* ============================================================ */
/* 4. SEARCH SYSTEM — RESULT PANEL (if missing)                  */
/* ============================================================ */
.search-section:last-child {
  padding-bottom: 12px;
}

.search-hint-item i {
  font-size: 11px;
}

/* ============================================================ */
/* 5. PROFILE SEARCH AVATAR VARIANTS                             */
/* ============================================================ */
.search-result-avatar.petOwner {
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
}

.search-result-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  display: block;
}

/* ============================================================ */
/* 6. MEMORY POST — VERIFIED BADGE POSITION                      */
/* ============================================================ */
.memory-post-author-name .verified {
  color: var(--pc-success);
  font-size: 11px;
  flex-shrink: 0;
}

/* ============================================================ */
/* 7. MEMORY POST — LONG PRESS FEEDBACK                          */
/* ============================================================ */
.memory-post,
.comment-item {
  -webkit-user-select: none;
  user-select: none;
}

/* ============================================================ */
/* 8. NO-IMAGE POST FALLBACK                                     */
/* ============================================================ */
.memory-post-image-wrap.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pc-purple-soft);
  color: var(--pc-purple);
  font-size: 32px;
  aspect-ratio: 16/9;
}

.memory-post-image-wrap.no-img::before {
  content: '\f030';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

/* ============================================================ */
/* 9. COMMENT SCROLLBAR POLISH                                   */
/* ============================================================ */
.comment-list::-webkit-scrollbar {
  width: 5px;
}

.comment-list::-webkit-scrollbar-thumb {
  background: var(--pc-border);
  border-radius: 10px;
}

.comment-list::-webkit-scrollbar-thumb:hover {
  background: var(--pc-text-muted);
}

/* ============================================================ */
/* 10. COMPOSER MODAL — ROLE INDICATOR ANIMATION                 */
/* ============================================================ */
@keyframes rolePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.mp-active-role-btn i:first-child {
  animation: rolePulse 2s ease-in-out infinite;
}

/* ============================================================ */
/* 11. ROLE CHOICE MODAL — BOTTOM SHEET VARIANT                  */
/* ============================================================ */
@media (max-width: 480px) {
  .comment-action-panel {
    padding: 10px 16px 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }

  .comment-action-item {
    padding: 13px 14px;
    font-size: 13.5px;
  }

  .comment-action-title {
    font-size: 13px;
  }
}

/* ============================================================ */
/* 12. COMMENT META — INLINE BUTTONS                             */
/* ============================================================ */
.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--pc-text-muted);
  flex-wrap: wrap;
}

.comment-meta-time {
  font-weight: 600;
}

.comment-meta-btn {
  background: transparent;
  border: none;
  color: var(--pc-text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.comment-meta-btn:hover {
  background: var(--pc-paper);
  color: var(--pc-text);
}

.comment-meta-btn.liked {
  color: var(--pc-danger);
}

.comment-meta-btn.liked i {
  font-weight: 900;
  animation: heartPop 0.35s ease;
}

.comment-meta-btn span {
  font-size: 10.5px;
}

/* ============================================================ */
/* 13. MEMORY POST — TITLE + CONTENT SPACING                     */
/* ============================================================ */
.memory-post-title-text {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.memory-post-title-text strong {
  font-weight: 800;
}

.memory-post-content {
  font-size: 13.5px;
  color: var(--pc-text-2);
  line-height: 1.55;
  white-space: pre-line;
  word-wrap: break-word;
}

/* ============================================================ */
/* 14. MEMORIES BANNER — DECORATIVE DOTS                         */
/* ============================================================ */
.memories-banner::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 217, 102, 0.12);
  pointer-events: none;
}

.memories-banner::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 20%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(216, 139, 158, 0.1);
  pointer-events: none;
}

/* ============================================================ */
/* 15. FEED FILTER — SCROLL FADE INDICATOR                       */
/* ============================================================ */
.memory-filters {
  position: relative;
}

.memory-filters::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 10px;
  width: 40px;
  background: linear-gradient(90deg, transparent, var(--pc-bg));
  pointer-events: none;
  opacity: 0.9;
}

/* ============================================================ */
/* 16. EMPTY MEMORY STATE — ILLUSTRATION                         */
/* ============================================================ */
.memory-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.memory-empty i {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--pc-purple-soft);
  color: var(--pc-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  opacity: 0.7;
}

.memory-empty p {
  font-size: 14px;
  font-weight: 700;
  color: var(--pc-text-2);
}

/* ============================================================ */
/* 17. POST CARD — SUBTLE HOVER LIFT                             */
/* ============================================================ */
.memory-post {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.memory-post:hover {
  transform: translateY(-1px);
  box-shadow: var(--pc-shadow-md);
}

/* ============================================================ */
/* 18. POST IMAGE — CLICK ZOOM CURSOR                            */
/* ============================================================ */
.memory-post-image-wrap img {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.memory-post-image-wrap:hover img {
  transform: scale(1.02);
}

/* ============================================================ */
/* 19. SHARE BUTTON — ACTIVE FEEDBACK                            */
/* ============================================================ */
.mem-action-btn:active {
  transform: scale(0.95);
}

/* ============================================================ */
/* 20. POST ACTION — SAVED STATE                                 */
/* ============================================================ */
.mem-action-btn i.fa-bookmark.fas {
  color: var(--pc-warning);
}

.mem-action-btn i.fa-bookmark.far {
  color: var(--pc-text-muted);
}

/* ============================================================ */
/* 21. COMMENT FORM — CHAR COUNTER (optional visual)             */
/* ============================================================ */
.comment-form input:focus {
  box-shadow: 0 0 0 3px rgba(58, 74, 58, 0.08);
}

/* ============================================================ */
/* 22. REPLY INDENTATION GUIDE LINE                              */
/* ============================================================ */
.comment-replies {
  position: relative;
  padding-left: 8px;
  margin-top: 8px;
  border-left: 2px solid var(--pc-border-light);
}

.comment-reply-item:last-child {
  padding-bottom: 0;
}

/* ============================================================ */
/* 23. DARK MODE — ACTION SHEET                                  */
/* ============================================================ */
body.dark-mode .comment-action-panel {
  background: #2A1F18;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
}

body.dark-mode .comment-action-handle {
  background: #4A3A2C;
}

body.dark-mode .comment-action-title {
  color: #F8FAFC;
}

body.dark-mode .comment-action-cancel {
  background: #241A14;
  color: #CBD5E1;
}

body.dark-mode .comment-action-cancel:hover {
  background: #3A2C22;
  color: #F8FAFC;
}

body.dark-mode .comment-action-danger {
  background: #450A0A;
  color: #FCA5A5;
}

body.dark-mode .comment-action-danger:hover {
  background: #FCA5A5;
  color: #450A0A;
}

body.dark-mode .comment-menu-btn {
  color: #94A3B8;
}

body.dark-mode .comment-menu-btn:hover {
  background: #334155;
  color: #F8FAFC;
}

body.dark-mode .comment-replies {
  border-left-color: #334155;
}

body.dark-mode .memory-post-title-text {
  color: #F8FAFC;
}

body.dark-mode .memory-filters::after {
  background: linear-gradient(90deg, transparent, #1F1410);
}

/* ============================================================ */
/* 24. RESPONSIVE — MEMORY EXTRAS                                */
/* ============================================================ */
@media (max-width: 480px) {
  .comment-menu-btn {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .comment-meta {
    gap: 8px;
    font-size: 10.5px;
  }

  .comment-meta-btn {
    font-size: 10.5px;
    padding: 2px 5px;
  }

  .memory-post-title-text {
    font-size: 13.5px;
  }

  .memory-post-content {
    font-size: 13px;
  }

  .memory-empty i {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }
}

/* ============================================================ */
/* 25. ACCESSIBILITY — FOCUS RINGS                               */
/* ============================================================ */
.mem-action-btn:focus-visible,
.comment-meta-btn:focus-visible,
.comment-menu-btn:focus-visible,
.memory-post-menu:focus-visible {
  outline: 2px solid var(--pc-primary);
  outline-offset: 2px;
}

/* ============================================================ */
/* 26. REDUCED MOTION                                            */
/* ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .comment-action-sheet,
  .comment-action-panel,
  .memory-post,
  .memory-post-image-wrap img {
    transition: none !important;
  }
}

/* ============================================================ */
/* PUBLIC PROFILE — 100% COMPLETE STYLES                         */
/* Append this to the END of profile.css                         */
/* ============================================================ */

/* ============================================================ */
/* 1. FOLLOW BUTTON — LOADING + ANIMATION STATES                 */
/* ============================================================ */
.prof-follow-top {
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  min-width: 92px;
}

.prof-follow-top.loading {
  pointer-events: none;
  opacity: 0.7;
}

.prof-follow-top.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: followShimmer 1.2s infinite;
}

@keyframes followShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Follow button — just followed animation */
.prof-follow-top.just-followed {
  animation: followPop 0.4s ease;
}

@keyframes followPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Follow button icon spin */
.prof-follow-top i.fa-plus {
  transition: transform 0.3s ease;
}

.prof-follow-top.following i.fa-check {
  animation: checkPop 0.4s ease;
}

@keyframes checkPop {
  0% { transform: scale(0) rotate(-45deg); }
  60% { transform: scale(1.2) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ============================================================ */
/* 2. VERIFIED TICK — SUBTLE ANIMATION                           */
/* ============================================================ */
.prof-name-tick,
.prof-verified-chip i {
  animation: tickPulse 2.5s ease-in-out infinite;
}

@keyframes tickPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(0.95); }
}

/* ============================================================ */
/* 3. PROFILE LOADING SKELETON                                   */
/* ============================================================ */
.prof-skeleton {
  background: var(--pc-card);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--pc-border-light);
}

.prof-skel-cover {
  width: 100%;
  height: 140px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--pc-paper) 25%, var(--pc-border-light) 50%, var(--pc-paper) 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.5s infinite;
  margin-bottom: 16px;
}

.prof-skel-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--pc-paper) 25%, var(--pc-border-light) 50%, var(--pc-paper) 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.5s infinite;
  margin-top: -46px;
  border: 4px solid var(--pc-card);
}

.prof-skel-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--pc-paper) 25%, var(--pc-border-light) 50%, var(--pc-paper) 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.5s infinite;
  margin-bottom: 10px;
}

.prof-skel-line.w-60 { width: 60%; }
.prof-skel-line.w-40 { width: 40%; }
.prof-skel-line.w-80 { width: 80%; }

@keyframes skelShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================ */
/* 4. FOLLOWERS / FOLLOWING LIST MODAL                           */
/* ============================================================ */
.follow-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

.follow-list::-webkit-scrollbar { width: 5px; }
.follow-list::-webkit-scrollbar-thumb {
  background: var(--pc-border);
  border-radius: 10px;
}

.follow-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  background: transparent;
  border: none;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.follow-list-item:hover {
  background: var(--pc-paper);
}

.follow-list-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  border: 2px solid var(--pc-card);
  box-shadow: var(--pc-shadow-sm);
}

.follow-list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.follow-list-avatar.vet {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
}

.follow-list-avatar.store {
  background: linear-gradient(135deg, #9B8BB4, #6B5443);
  color: #fff;
}

.follow-list-info {
  flex: 1;
  min-width: 0;
}

.follow-list-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.follow-list-name i {
  color: var(--pc-success);
  font-size: 10px;
  flex-shrink: 0;
}

.follow-list-role {
  font-size: 11px;
  color: var(--pc-text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.follow-list-btn {
  padding: 6px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--pc-primary);
  background: transparent;
  color: var(--pc-primary);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.follow-list-btn:hover {
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
}

.follow-list-btn.following {
  background: var(--pc-primary-light);
  color: var(--pc-accent);
  border-color: transparent;
}

.follow-list-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--pc-text-muted);
}

.follow-list-empty i {
  font-size: 40px;
  opacity: 0.35;
  display: block;
  margin-bottom: 12px;
}

.follow-list-empty p {
  font-size: 13.5px;
  font-weight: 600;
}

/* ============================================================ */
/* 5. POST DETAIL MODAL — SCROLL + COMMENT SECTION FIX           */
/* ============================================================ */
#quickViewModal .modal-content:has(.pd-header) {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  padding: 0;
  overflow: hidden;
}

#quickViewModal .modal-content:has(.pd-header) .pd-header {
  padding: 18px 20px 14px;
  margin-bottom: 0;
  position: sticky;
  top: 0;
  background: var(--pc-card);
  z-index: 2;
  border-bottom: 1px solid var(--pc-border-light);
}

#quickViewModal .modal-content:has(.pd-header) .pd-title,
#quickViewModal .modal-content:has(.pd-header) .pd-content,
#quickViewModal .modal-content:has(.pd-header) .pd-image,
#quickViewModal .modal-content:has(.pd-header) .pd-products {
  padding-left: 20px;
  padding-right: 20px;
}

#quickViewModal .modal-content:has(.pd-header) .pd-title {
  padding-top: 16px;
}

#quickViewModal .modal-content:has(.pd-header) .pd-actions {
  padding-left: 20px;
  padding-right: 20px;
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 20px;
  padding-right: 20px;
}

#quickViewModal .modal-content:has(.pd-header) .pd-comments {
  padding: 14px 20px 20px;
  background: var(--pc-paper);
  margin: 0;
}

/* Post detail — comments list */
.pd-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.pd-comments-list::-webkit-scrollbar { width: 5px; }
.pd-comments-list::-webkit-scrollbar-thumb {
  background: var(--pc-border);
  border-radius: 10px;
}

.pd-comment {
  display: flex;
  gap: 10px;
  padding: 8px 0;
}

.pd-comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  overflow: hidden;
}

.pd-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-comment-avatar.vet {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
}

.pd-comment-body {
  flex: 1;
  min-width: 0;
}

.pd-comment-author {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pd-comment-author i {
  color: var(--pc-success);
  font-size: 10px;
}

.pd-comment-text {
  font-size: 12.5px;
  color: var(--pc-text-2);
  line-height: 1.5;
  word-wrap: break-word;
}

.pd-comment-time {
  font-size: 10.5px;
  color: var(--pc-text-muted);
  margin-top: 3px;
}

/* ============================================================ */
/* 6. EMPTY STATES — REVIEWS, POSTS, PETS                        */
/* ============================================================ */
.prof-empty-reviews {
  text-align: center;
  padding: 32px 20px;
}

.prof-empty-reviews-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--pc-warning-soft);
  color: var(--pc-warning);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 14px;
}

.prof-empty-reviews h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 4px;
}

.prof-empty-reviews p {
  font-size: 12.5px;
  color: var(--pc-text-muted);
  line-height: 1.5;
}

/* ============================================================ */
/* 7. VET SPECIALIZATION TAGS — POLISH                           */
/* ============================================================ */
.prof-spec-tag {
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--pc-primary-light);
  color: var(--pc-accent);
  font-size: 11.5px;
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: default;
  border: 1px solid transparent;
}

.prof-spec-tag:hover {
  background: var(--pc-accent);
  color: var(--pc-text-on-dark);
  transform: translateY(-1px);
}

/* ============================================================ */
/* 8. STORE GALLERY GRID                                         */
/* ============================================================ */
.prof-store-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.prof-store-gallery-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--pc-paper);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.prof-store-gallery-item:hover {
  transform: scale(1.04);
}

.prof-store-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================ */
/* 9. POST MENU DROPDOWN (FB-style)                              */
/* ============================================================ */
.prof-post-menu,
.memory-post-menu {
  position: relative;
}

.post-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--pc-card);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--pc-border-light);
  min-width: 160px;
  padding: 6px;
  z-index: 50;
  animation: menuFadeIn 0.18s ease;
}

@keyframes menuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.post-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--pc-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.post-menu-item:hover {
  background: var(--pc-paper);
}

.post-menu-item i {
  width: 16px;
  text-align: center;
  color: var(--pc-text-muted);
  font-size: 13px;
}

.post-menu-item.danger {
  color: var(--pc-danger);
}

.post-menu-item.danger i {
  color: var(--pc-danger);
}

.post-menu-item.danger:hover {
  background: var(--pc-danger-soft);
}

/* ============================================================ */
/* 10. PUBLIC PET MODAL — ENHANCED                               */
/* ============================================================ */
.public-pet-hero {
  position: relative;
}

.public-pet-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 -20px 30px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.public-pet-owner {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.public-pet-owner:hover {
  transform: translateY(-2px);
  box-shadow: var(--pc-shadow-md);
}

.public-pet-owner-avatar {
  border: 2px solid var(--pc-card);
  box-shadow: var(--pc-shadow-sm);
}

/* Health status pill */
.public-pet-health {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.public-pet-health.healthy {
  background: var(--pc-success-soft);
  color: var(--pc-success);
}

.public-pet-health.warning {
  background: var(--pc-warning-soft);
  color: var(--pc-warning);
}

.public-pet-health.danger {
  background: var(--pc-danger-soft);
  color: var(--pc-danger);
}

/* ============================================================ */
/* 11. PROFILE HEADER — VERIFIED CHIP HOVER                      */
/* ============================================================ */
.prof-verified-chip {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.prof-verified-chip:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.45);
}

/* ============================================================ */
/* 12. STATS ROW — ACTIVE STATE (tabbable feel)                  */
/* ============================================================ */
.prof-stat {
  transition: transform 0.2s ease;
}

.prof-stat:active {
  transform: scale(0.96);
}

.prof-stat-value {
  transition: color 0.2s ease;
}

.prof-stat:hover .prof-stat-value {
  color: var(--pc-accent);
}

/* ============================================================ */
/* 13. TABS — STICKY ON SCROLL (Public Profile)                  */
/* ============================================================ */
.prof-tabs {
  position: sticky;
  top: calc(var(--pc-topnav-height) + 8px);
  z-index: 30;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(250, 246, 240, 0.92);
}

body.dark-mode .prof-tabs {
  background: rgba(42, 31, 24, 0.92);
}

/* ============================================================ */
/* 14. ABOUT — ONLINE STATUS PULSE                               */
/* ============================================================ */
.prof-online-chip .prof-online-dot {
  position: relative;
}

.prof-online-chip .prof-online-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--pc-success);
  opacity: 0.4;
  animation: onlinePulse 1.8s ease-in-out infinite;
}

@keyframes onlinePulse {
  0% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1); opacity: 0.4; }
}

/* ============================================================ */
/* 15. PETS GRID — ENHANCED HOVER                                */
/* ============================================================ */
.prof-pet-card {
  position: relative;
  overflow: hidden;
}

.prof-pet-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pc-primary), var(--pc-caramel));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.prof-pet-card:hover::before {
  transform: scaleX(1);
}

.prof-pet-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prof-pet-card:hover .prof-pet-img {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(139, 111, 71, 0.2);
}

/* ============================================================ */
/* 16. REVIEWS HERO — STARS ANIMATION                            */
/* ============================================================ */
.prof-reviews-stars i {
  animation: starTwinkle 2s ease-in-out infinite;
}

.prof-reviews-stars i:nth-child(2) { animation-delay: 0.15s; }
.prof-reviews-stars i:nth-child(3) { animation-delay: 0.3s; }
.prof-reviews-stars i:nth-child(4) { animation-delay: 0.45s; }
.prof-reviews-stars i:nth-child(5) { animation-delay: 0.6s; }

@keyframes starTwinkle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

/* ============================================================ */
/* 17. POST CARD — IMAGE LOADING FADE                            */
/* ============================================================ */
.prof-post-image img,
.pd-image img,
.pd-product-img img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.prof-post-image img.loaded,
.pd-image img.loaded,
.pd-product-img img.loaded {
  opacity: 1;
}

/* ============================================================ */
/* 18. BACK BUTTON — RIPPLE EFFECT                               */
/* ============================================================ */
.prof-back-btn {
  position: relative;
  overflow: hidden;
}

.prof-back-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 74, 58, 0.2), transparent 70%);
  transform: scale(0);
  transition: transform 0.4s ease;
}

.prof-back-btn:active::after {
  transform: scale(2.5);
}

/* ============================================================ */
/* 19. ROLE CHIP — HOVER LIFT                                    */
/* ============================================================ */
.prof-role-chip {
  transition: transform 0.18s ease;
}

.prof-role-chip:active {
  transform: scale(0.95);
}

/* ============================================================ */
/* 20. SAFE AREA — MODAL BOTTOM                                  */
/* ============================================================ */
@supports (padding: env(safe-area-inset-bottom)) {
  .modal-content {
    padding-bottom: max(25px, calc(25px + env(safe-area-inset-bottom)));
  }
}

/* ============================================================ */
/* 21. DARK MODE — PUBLIC PROFILE POLISH                         */
/* ============================================================ */
body.dark-mode .follow-list-item:hover {
  background: #241A14;
}

body.dark-mode .follow-list-avatar {
  color: #2F3A5F;
}

body.dark-mode .follow-list-name {
  color: #F8FAFC;
}

body.dark-mode .post-menu-dropdown {
  background: #2A1F18;
  border-color: #4A3A2C;
}

body.dark-mode .post-menu-item {
  color: #F8FAFC;
}

body.dark-mode .post-menu-item:hover {
  background: #241A14;
}

body.dark-mode .pd-comments {
  background: #241A14;
}

body.dark-mode .pd-comment-author {
  color: #F8FAFC;
}

body.dark-mode .pd-comment-text {
  color: #CBD5E1;
}

body.dark-mode .prof-empty-reviews h4 {
  color: #F8FAFC;
}

body.dark-mode .prof-spec-tag {
  background: #2D3E2D;
  color: #A8B89A;
}

body.dark-mode .prof-spec-tag:hover {
  background: var(--pc-accent);
  color: #1F1410;
}

/* ============================================================ */
/* 22. RESPONSIVE — PUBLIC PROFILE EXTRAS                        */
/* ============================================================ */
@media (max-width: 640px) {
  .follow-list-avatar {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .follow-list-btn {
    padding: 5px 12px;
    font-size: 10.5px;
  }

  .prof-store-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .pd-comments-list {
    max-height: 180px;
  }

  .post-menu-dropdown {
    min-width: 140px;
  }

  .post-menu-item {
    padding: 9px 10px;
    font-size: 12.5px;
  }
}

@media (max-width: 400px) {
  .follow-list-name {
    font-size: 12.5px;
  }

  .follow-list-role {
    font-size: 10.5px;
  }
}

/* ============================================================ */
/* 23. ACCESSIBILITY — FOCUS RINGS                               */
/* ============================================================ */
.prof-follow-top:focus-visible,
.prof-back-btn:focus-visible,
.prof-tab:focus-visible,
.prof-stat:focus-visible,
.follow-list-item:focus-visible,
.follow-list-btn:focus-visible,
.post-menu-item:focus-visible,
.prof-pet-card:focus-visible {
  outline: 2px solid var(--pc-primary);
  outline-offset: 2px;
}

/* ============================================================ */
/* 24. REDUCED MOTION                                            */
/* ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .prof-follow-top,
  .prof-verified-chip,
  .prof-online-chip .prof-online-dot::after,
  .prof-reviews-stars i,
  .prof-pet-card,
  .prof-pet-img,
  .post-menu-dropdown,
  .follow-list-avatar {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================ */
/* 25. PRINT STYLES                                              */
/* ============================================================ */
@media print {
  .prof-follow-top,
  .prof-back-btn,
  .prof-tabs,
  .prof-see-all,
  .prof-post-menu,
  .prof-verified-chip,
  .post-menu-dropdown {
    display: none !important;
  }

  .prof-hero-card,
  .prof-section-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
  }
}

.prof-stat-clickable {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.prof-stat-clickable:hover .prof-stat-value {
  color: var(--pc-accent);
}

.prof-stat-clickable:active {
  transform: scale(0.96);
}

/* ============================================================ */
/* NOTIF BADGE — Hide when count is 0                            */
/* ============================================================ */
.notif-icon[data-count="0"]::after {
  display: none !important;
}

/* ============================================================ */
/* CHECKOUT MODAL                                                */
/* ============================================================ */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.payment-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: var(--pc-paper);
  border: 2px solid var(--pc-border-light);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--pc-text-2);
  text-align: center;
}

.payment-method i { font-size: 18px; color: var(--pc-accent); }
.payment-method:hover { border-color: var(--pc-primary); background: var(--pc-primary-light); }
.payment-method.active {
  background: var(--pc-primary);
  border-color: var(--pc-primary);
  color: var(--pc-text-on-dark);
}
.payment-method.active i { color: var(--pc-text-on-dark); }

.checkout-summary {
  background: var(--pc-paper);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 8px;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: var(--pc-text-2);
}

.checkout-row.checkout-total {
  border-top: 1.5px dashed var(--pc-border);
  margin-top: 6px;
  padding-top: 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--pc-text);
}

.checkout-row.checkout-total span:last-child { color: var(--pc-brown); }

/* ============================================================ */
/* TRACKING MODAL                                                */
/* ============================================================ */
.track-stages {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  position: relative;
}

.track-stage {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  position: relative;
}

.track-stage::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: -12px;
  width: 2px;
  background: var(--pc-border-light);
}

.track-stage:last-child::before { display: none; }
.track-stage.done::before { background: var(--pc-success); }

.track-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pc-paper);
  color: var(--pc-text-muted);
  border: 2px solid var(--pc-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  z-index: 1;
}

.track-stage.done .track-dot {
  background: var(--pc-success);
  color: #fff;
  border-color: var(--pc-success);
}

.track-stage.current .track-dot {
  background: var(--pc-warning);
  color: #fff;
  border-color: var(--pc-warning);
  animation: trackPulse 1.5s ease-in-out infinite;
}

@keyframes trackPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 164, 65, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(217, 164, 65, 0); }
}

.track-info { flex: 1; min-width: 0; padding-top: 4px; }

.track-label {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 3px;
}

.track-stage.done .track-label { color: var(--pc-success); }
.track-stage.current .track-label { color: var(--pc-warning); }

.track-time {
  font-size: 11.5px;
  color: var(--pc-text-muted);
}

.track-order-info {
  background: var(--pc-paper);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  text-align: center;
}

.track-order-id {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 3px;
}

.track-order-eta {
  font-size: 12px;
  color: var(--pc-brown);
  font-weight: 700;
}

/* ============================================================ */
/* NOTIFICATIONS MODAL                                           */
/* ============================================================ */
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--pc-paper);
  border-radius: 12px;
  border-left: 3px solid var(--pc-border);
  transition: all 0.2s ease;
  cursor: pointer;
}

.notif-item.unread {
  background: var(--pc-primary-light);
  border-left-color: var(--pc-primary);
}

.notif-item:hover { transform: translateX(3px); }

.notif-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pc-card);
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.notif-info { flex: 1; min-width: 0; }

.notif-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 3px;
}

.notif-message {
  font-size: 12.5px;
  color: var(--pc-text-2);
  line-height: 1.4;
  margin-bottom: 4px;
}

.notif-time {
  font-size: 10.5px;
  color: var(--pc-text-muted);
}

/* ============================================================ */
/* APPOINTMENTS PAGE                                             */
/* ============================================================ */
.appt-list { display: flex; flex-direction: column; gap: 10px; }

.appt-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--pc-paper);
  border-radius: 14px;
  border: 1px solid var(--pc-border-light);
  align-items: flex-start;
  position: relative;
}

.appt-card.past { opacity: 0.6; }

.appt-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--pc-info-soft);
  color: var(--pc-info);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.appt-info { flex: 1; min-width: 0; }

.appt-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.appt-clinic {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
}

.appt-status {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.appt-status.status-confirmed { background: var(--pc-success-soft); color: var(--pc-success); }
.appt-status.status-pending { background: var(--pc-warning-soft); color: var(--pc-warning); }

.appt-type {
  font-size: 12px;
  color: var(--pc-text-2);
  font-weight: 600;
  margin-bottom: 6px;
}

.appt-meta {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.appt-meta i { font-size: 10px; color: var(--pc-accent); }

.appt-reason {
  font-size: 11.5px;
  color: var(--pc-text-2);
  margin-top: 6px;
  padding: 6px 10px;
  background: var(--pc-card);
  border-radius: 8px;
  line-height: 1.4;
}

.appt-reason i { color: var(--pc-accent); font-size: 10px; margin-right: 4px; }

.appt-menu-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pc-danger-soft);
  color: var(--pc-danger);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.appt-menu-btn:hover { background: var(--pc-danger); color: #fff; }

.reply-cancel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--pc-primary-light);
  border-radius: 10px;
  margin: 8px 0;
  font-size: 12px;
  color: var(--pc-text-2);
  animation: replyBarSlide 0.2s ease;
}

@keyframes replyBarSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.reply-cancel-bar i { color: var(--pc-accent); font-size: 11px; }
.reply-cancel-bar strong { color: var(--pc-text); }

.reply-cancel-bar button {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pc-card);
  border: none;
  color: var(--pc-text-muted);
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reply-cancel-bar button:hover { background: var(--pc-danger); color: #fff; }


/* ============================================================ */
/* 27. ERROR BOUNDARY                                            */
/* ============================================================ */
.error-boundary-card {
  text-align: center;
  padding: 48px 24px;
  background: var(--pc-card);
  border-radius: var(--pc-radius);
  border: 1.5px dashed var(--pc-border);
  margin: 20px auto;
  max-width: 480px;
}

.error-boundary-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--pc-danger-soft);
  color: var(--pc-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 18px;
}

.error-boundary-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 8px;
}

.error-boundary-message {
  font-size: 13.5px;
  color: var(--pc-text-2);
  line-height: 1.5;
  margin-bottom: 20px;
}

.error-boundary-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-boundary-actions .btn {
  min-width: 130px;
}

body.dark-mode .error-boundary-card {
  background: #2A1F18;
  border-color: #4A3A2C;
}

body.dark-mode .error-boundary-icon {
  background: #450A0A;
  color: #FCA5A5;
}

/* ============================================================ */
/* PRODUCT CARD — WISHLIST BUTTON                                */
/* ============================================================ */
.product-wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  z-index: 3;
  backdrop-filter: blur(8px);
}

.product-wishlist-btn:hover {
  transform: scale(1.1);
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.product-wishlist-btn.active {
  background: linear-gradient(135deg, #E85D75, #C9425A);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 93, 117, 0.4);
}

.product-wishlist-btn.active:hover {
  transform: scale(1.12);
}

.product-wishlist-btn:active {
  transform: scale(0.95);
}

body.dark-mode .product-wishlist-btn {
  background: rgba(42, 31, 24, 0.95);
  color: #94A3B8;
}

body.dark-mode .product-wishlist-btn.active {
  background: linear-gradient(135deg, #E85D75, #C9425A);
  color: #fff;
}

@media (max-width: 480px) {
  .product-wishlist-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
}

/* ============================================================ */
/* PRODUCT CARD — WISHLIST BUTTON                                */
/* ============================================================ */
.product-wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  color: #8B6F47;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  z-index: 3;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.product-wishlist-btn:hover {
  transform: scale(1.1);
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.product-wishlist-btn.active {
  background: linear-gradient(135deg, #E85D75, #C9425A);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 93, 117, 0.4);
}

.product-wishlist-btn.active:hover {
  transform: scale(1.12);
}

.product-wishlist-btn:active {
  transform: scale(0.95);
}

.product-wishlist-btn i {
  transition: transform 0.2s ease;
}

.product-wishlist-btn:active i {
  transform: scale(0.9);
}

/* Dark mode */
body.dark-mode .product-wishlist-btn {
  background: rgba(42, 31, 24, 0.95);
  color: #CBD5E1;
}

body.dark-mode .product-wishlist-btn.active {
  background: linear-gradient(135deg, #E85D75, #C9425A);
  color: #fff;
}

/* Responsive */
@media (max-width: 480px) {
  .product-wishlist-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
    top: 6px;
    right: 6px;
  }
}

/* ============================================================ */
/* REMINDER MENU BUTTON                                          */
/* ============================================================ */
.upcoming-menu-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 4px;
}

.upcoming-menu-btn:hover {
  background: var(--pc-paper);
  color: var(--pc-text);
}

.upcoming-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--pc-border-light);
  user-select: none;
  -webkit-user-select: none;
}

.upcoming-row:last-child { border-bottom: none; }

body.dark-mode .upcoming-menu-btn:hover {
  background: #334155;
  color: #F8FAFC;
}

@media (max-width: 480px) {
  .upcoming-menu-btn {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
}


/* ============================================================ */
/* CUSTOM CARE — Hybrid approach styles                          */
/* ============================================================ */

/* Divider between default and custom items */
.custom-care-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 8px;
  margin-top: 4px;
}

.custom-care-divider::before,
.custom-care-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--pc-border-light);
}

.custom-care-divider span {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Custom care row — subtle differentiation */
.custom-care-row {
  background: linear-gradient(135deg, var(--pc-paper), var(--pc-primary-light));
  border-left: 3px solid var(--pc-accent);
}

.custom-care-row.done {
  background: var(--pc-success-soft);
  border-left-color: var(--pc-success);
}

/* Menu button on custom care items */
.custom-care-menu-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.custom-care-menu-btn:hover {
  background: var(--pc-card);
  color: var(--pc-text);
}

/* Add custom care button */
.add-custom-care-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  margin-top: 10px;
  background: transparent;
  border: 1.5px dashed var(--pc-border);
  border-radius: 14px;
  color: var(--pc-text-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
}

.add-custom-care-btn:hover {
  background: var(--pc-primary-light);
  border-color: var(--pc-primary);
  color: var(--pc-primary);
  border-style: solid;
}

.add-custom-care-btn i {
  font-size: 12px;
}

/* Custom care icon grid in modal */
.custom-care-icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 8px;
  margin-top: 6px;
}

.custom-care-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--pc-paper);
  border: 2px solid var(--pc-border-light);
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
}

.custom-care-icon:hover {
  transform: scale(1.05);
  border-color: var(--pc-primary);
  background: var(--pc-primary-light);
}

.custom-care-icon.active {
  background: var(--pc-primary);
  border-color: var(--pc-primary);
  color: var(--pc-text-on-dark);
  box-shadow: 0 4px 12px rgba(58, 74, 58, 0.25);
}

/* Empty state button in Today's Care */
.today-care-list .empty-state .btn {
  margin-top: 8px;
}

/* Dark mode */
body.dark-mode .custom-care-row {
  background: linear-gradient(135deg, #241A14, #2D3E2D);
  border-left-color: #A8B89A;
}

body.dark-mode .custom-care-row.done {
  background: #14532D;
  border-left-color: #86EFAC;
}

body.dark-mode .add-custom-care-btn {
  border-color: #4A3A2C;
  color: #CBD5E1;
}

body.dark-mode .add-custom-care-btn:hover {
  background: #2D3E2D;
  border-color: #6B9E5F;
  color: #A8B89A;
}

body.dark-mode .custom-care-icon {
  background: #241A14;
  border-color: #3A2C22;
  color: #A8B89A;
}

body.dark-mode .custom-care-icon.active {
  background: #6B9E5F;
  color: #1F1410;
}

body.dark-mode .custom-care-divider::before,
body.dark-mode .custom-care-divider::after {
  background: #3A2C22;
}

/* Responsive */
@media (max-width: 480px) {
  .custom-care-icon-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .custom-care-icon {
    font-size: 16px;
  }
}

/* ============================================================ */
/* SOS TRACKING MODAL                                            */
/* ============================================================ */
.sos-tracking-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #C45A4A, #8B3630);
  border-radius: 16px;
  margin-bottom: 16px;
  color: #fff;
}

.sos-tracking-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.35);
  animation: sosIconPulse 2s ease-in-out infinite;
}

.sos-tracking-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.sos-tracking-header p {
  font-size: 11.5px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

.sos-tracking-info {
  background: var(--pc-paper);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sos-tracking-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--pc-text);
  font-weight: 600;
}

.sos-tracking-row i {
  color: var(--pc-danger);
  font-size: 13px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.sos-tracking-desc {
  font-size: 13px;
  color: var(--pc-text-2);
  line-height: 1.55;
  padding: 12px 14px;
  background: var(--pc-card);
  border-left: 3px solid var(--pc-danger);
  border-radius: 10px;
  margin-bottom: 16px;
  white-space: pre-line;
}

.sos-resolved-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--pc-success-soft);
  color: var(--pc-success);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  margin-top: 16px;
  animation: sosResolvedPop 0.5s ease;
}

@keyframes sosResolvedPop {
  0% { transform: scale(0.9); opacity: 0; }
  60% { transform: scale(1.03); }
  100% { transform: scale(1); opacity: 1; }
}

/* ============================================================ */
/* SOS HISTORY LIST                                              */
/* ============================================================ */
.sos-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.sos-history-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--pc-paper);
  border-radius: 14px;
  border: 1.5px solid var(--pc-border-light);
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  text-align: left;
  width: 100%;
  align-items: flex-start;
}

.sos-history-item:hover {
  background: var(--pc-card);
  border-color: var(--pc-danger);
  transform: translateX(3px);
  box-shadow: var(--pc-shadow-sm);
}

.sos-history-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pc-danger-soft);
  color: var(--pc-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.sos-history-icon.resolved {
  background: var(--pc-success-soft);
  color: var(--pc-success);
}

.sos-history-info {
  flex: 1;
  min-width: 0;
}

.sos-history-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.sos-history-type {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
}

.sos-history-status {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sos-history-status.status-pending {
  background: var(--pc-warning-soft);
  color: var(--pc-warning);
}

.sos-history-status.status-resolved {
  background: var(--pc-success-soft);
  color: var(--pc-success);
}

.sos-history-desc {
  font-size: 12.5px;
  color: var(--pc-text-2);
  line-height: 1.45;
  margin-bottom: 6px;
}

.sos-history-meta {
  font-size: 11px;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-weight: 600;
}

.sos-history-meta i {
  color: var(--pc-accent);
  font-size: 10px;
}

.sos-dot {
  opacity: 0.5;
}

/* ============================================================ */
/* CALL MODAL                                                    */
/* ============================================================ */
.call-modal-header {
  text-align: center;
  padding: 20px 16px 24px;
  border-bottom: 1px solid var(--pc-border-light);
  margin-bottom: 16px;
}

.call-icon-pulse {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pc-primary), var(--pc-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(58, 74, 58, 0.3);
  animation: callPulse 1.8s ease-in-out infinite;
}

@keyframes callPulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(58, 74, 58, 0.3), 0 0 0 0 rgba(58, 74, 58, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 24px rgba(58, 74, 58, 0.3), 0 0 0 14px rgba(58, 74, 58, 0);
    transform: scale(1.04);
  }
}

.call-modal-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 6px;
}

.call-modal-header p {
  font-size: 14px;
  color: var(--pc-text-muted);
  font-weight: 600;
}

.call-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================ */
/* VET ITEM — ENHANCED                                           */
/* ============================================================ */
.vet-icon.open {
  position: relative;
}

.vet-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pc-success);
  border: 2px solid var(--pc-card);
  animation: vetOnlinePulse 2s ease-in-out infinite;
}

@keyframes vetOnlinePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(107, 158, 95, 0.6);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(107, 158, 95, 0);
  }
}

.vet-dot {
  opacity: 0.5;
  margin: 0 2px;
}

/* ============================================ */
/* WEEK DAY — FUTURE                             */
/* ============================================ */
.week-day.future .week-paw {
  background: transparent;
  border: 2px dashed var(--pc-border);
  color: var(--pc-text-muted);
  opacity: 1;
}

.week-day.future .week-day-name {
  color: var(--pc-text-muted);
  opacity: 0.7;
}

.week-day.future .week-day-label {
  opacity: 0.6;
}

/* ============================================================ */
/* DARK MODE — SOS + VETS + CALL                                 */
/* ============================================================ */
body.dark-mode .sos-tracking-info,
body.dark-mode .sos-history-item {
  background: #241A14;
  border-color: #3A2C22;
}

body.dark-mode .sos-history-item:hover {
  background: #2A1F18;
}

body.dark-mode .sos-history-type,
body.dark-mode .call-modal-header h3 {
  color: #F8FAFC;
}

body.dark-mode .sos-history-desc,
body.dark-mode .sos-tracking-desc {
  color: #CBD5E1;
}

body.dark-mode .sos-tracking-desc {
  background: #241A14;
}

body.dark-mode .vet-online-dot {
  border-color: #2A1F18;
}

body.dark-mode .sos-history-icon {
  background: #450A0A;
  color: #FCA5A5;
}

body.dark-mode .sos-history-icon.resolved {
  background: #14532D;
  color: #86EFAC;
}

/* ============================================================ */
/* TODAY'S CARE — MORE ITEMS                                     */
/* ============================================================ */
.today-care-item.today-care-more {
  background: var(--pc-primary-light);
  color: var(--pc-primary);
  border-color: transparent;
  font-weight: 800;
}

.today-care-item.today-care-more i:first-child {
  color: var(--pc-primary);
}

.today-care-item.today-care-more .status-icon {
  color: var(--pc-primary);
  font-size: 11px;
}

.today-care-item.today-care-more:hover {
  background: var(--pc-accent);
  color: var(--pc-text-on-dark);
}

.today-care-item.today-care-more:hover i {
  color: var(--pc-text-on-dark);
}

.today-care-progress {
  display: inline-flex;
  align-items: center;
}

.today-care-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--pc-success-soft);
  color: var(--pc-success);
  font-size: 11px;
  font-weight: 800;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.today-care-count::before {
  content: '●';
  font-size: 6px;
  opacity: 0.7;
}

/* ============================================================ */
/* AVATAR INITIAL — FIX WHITE CIRCLE                             */
/* ============================================================ */

.avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 15px;
  font-weight: 800;
  color: #2F3A5F;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  border-radius: 50%;
  text-transform: uppercase;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  display: block;
}

/* Ensure avatar container has background when empty */
.memory-post-author-avatar,
.comment-avatar,
.prof-post-avatar,
.pd-avatar,
.pd-comment-avatar,
.follow-list-avatar {
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
  overflow: hidden;
}

/* Role-specific backgrounds */
.memory-post-author-avatar.vet,
.comment-avatar.vet,
.pd-comment-avatar.vet,
.follow-list-avatar.vet {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
}

.memory-post-author-avatar.store,
.comment-avatar.store,
.follow-list-avatar.store {
  background: linear-gradient(135deg, #9B8BB4, #6B5443);
  color: #fff;
}

.memory-post-author-avatar.user,
.comment-avatar.user,
.prof-post-avatar {
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
}

/* ============================================================ */
/* COMPOSER AVATAR — GUEST STATE                                 */
/* ============================================================ */
.memory-composer-avatar.guest {
  background: linear-gradient(135deg, #E8D9BF, #C9A961) !important;
  color: #6B5443 !important;
}

.memory-composer-avatar.guest i {
  font-size: 16px;
  opacity: 0.85;
}

/* Dark mode */
body.dark-mode .memory-composer-avatar.guest {
  background: linear-gradient(135deg, #4A3A2C, #3A2C22) !important;
  color: #A89B7E !important;
}


  
/* ============================================================ */
/* FOSTER — HYBRID LITE                                          */
/* ============================================================ */

.foster-card {
  margin-bottom: 18px;
}

.foster-card .foster-scroll {
  overflow-x: auto;
  overflow-y: visible;        /* ⭐ Allow vertical overflow */
  padding-top: 10px;
  margin-top: -10px;
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.foster-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.foster-scroll::-webkit-scrollbar { height: 6px; }
.foster-scroll::-webkit-scrollbar-thumb { background: var(--pc-border); border-radius: 10px; }

.foster-empty-state {
  padding: 24px 20px;
  text-align: center;
  width: 100%;
  min-width: 250px;
}

.foster-empty-state i {
  font-size: 32px;
  color: var(--pc-text-muted);
  opacity: 0.4;
  display: block;
  margin-bottom: 10px;
}

.foster-empty-state p {
  font-size: 13px;
  color: var(--pc-text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

/* ---------- HOME CARD ---------- */
.foster-item {
  position: relative;
  min-width: 165px;
  max-width: 165px;
  flex-shrink: 0;
  border-radius: 16px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1.5px solid var(--pc-pink);
  background: var(--pc-pink-soft);
  overflow: visible;
}

.foster-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(216, 139, 158, 0.25);
}

/* Verified ribbon */
.foster-verified-ribbon {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 20px;
  color: #fff;
  letter-spacing: 0.4px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.foster-verified-ribbon i { font-size: 8px; }
/* Image */
.foster-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  background: var(--pc-pink-soft);
  position: relative;
}

.foster-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.foster-item:hover .foster-img-wrap img {
  transform: scale(1.05);
}

.foster-img-overlay {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  display: flex;
  justify-content: center;
}

.foster-medical-chip {
  font-size: 8px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.foster-medical-chip.healthy {
  background: rgba(107, 158, 95, 0.9);
  color: #fff;
}

.foster-medical-chip.medical {
  background: rgba(217, 164, 65, 0.9);
  color: #fff;
}

.foster-medical-chip i { font-size: 7px; }

/* Info */
.foster-info { padding: 0 2px; }

.foster-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.foster-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--pc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.pet-gender-male { color: #3B82F6; font-size: 11px; flex-shrink: 0; }
.pet-gender-female { color: #EC4899; font-size: 11px; flex-shrink: 0; }

.foster-meta {
  font-size: 10.5px;
  color: var(--pc-text-muted);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.foster-location {
  font-size: 10px;
  color: var(--pc-text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  flex-wrap: wrap;
}

.foster-location i { font-size: 9px; color: var(--pc-accent); }

.foster-listed-time {
  color: var(--pc-text-muted);
  font-weight: 500;
  font-style: italic;
}

.foster-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px dashed var(--pc-border-light);
  font-size: 10px;
  color: var(--pc-text-muted);
  font-weight: 700;
}

.foster-footer span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.foster-footer i { font-size: 9px; }

/* ---------- DETAIL MODAL ---------- */
.foster-modal-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--pc-pink-soft);
}

.foster-modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.foster-verified-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  color: #fff;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  backdrop-filter: blur(8px);
}

.foster-verified-badge i { font-size: 10px; }

.foster-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pc-border-light);
}

.foster-modal-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 4px;
  line-height: 1.1;
}

.foster-modal-meta {
  font-size: 12.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.foster-modal-listed {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

.foster-modal-listed i {
  color: var(--pc-accent);
  font-size: 10px;
}

.foster-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pc-paper);
  border: 1.5px solid var(--pc-border-light);
  color: var(--pc-text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.foster-icon-btn:hover {
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  border-color: var(--pc-primary);
  transform: scale(1.05);
}

/* Info grid */
.foster-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.foster-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--pc-paper);
  border-radius: 10px;
}

.foster-info-item > i {
  font-size: 16px;
  color: var(--pc-accent);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.foster-info-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--pc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.foster-info-value {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Section title */
.foster-section-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--pc-text);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.foster-section-title i {
  color: var(--pc-accent);
  font-size: 12px;
}

/* Cards */
.foster-medical-card,
.foster-description,
.foster-rescuer-card,
.foster-donation-card,
.foster-own-actions {
  padding: 14px;
  background: var(--pc-paper);
  border-radius: 12px;
  margin-bottom: 12px;
}

.foster-medical-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.foster-medical-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.2px;
}

.foster-medical-badge.done {
  background: var(--pc-success-soft);
  color: var(--pc-success);
}

.foster-medical-badge.pending {
  background: var(--pc-border-light);
  color: var(--pc-text-muted);
}

.foster-medical-badge.warning {
  background: var(--pc-warning-soft);
  color: var(--pc-warning);
}

.foster-medical-badge i { font-size: 10px; }

.foster-medical-notes {
  font-size: 12px;
  color: var(--pc-text-2);
  line-height: 1.5;
  padding: 8px 10px;
  background: var(--pc-card);
  border-radius: 8px;
  border-left: 3px solid var(--pc-accent);
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.foster-medical-notes i {
  color: var(--pc-accent);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}

.foster-modal-desc {
  font-size: 13.5px;
  color: var(--pc-text-2);
  line-height: 1.6;
}

/* Rescuer card */
.foster-rescuer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.foster-rescuer-card:hover {
  background: var(--pc-primary-light);
  transform: translateY(-1px);
}

.foster-rescuer-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pc-primary-light);
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
}

.foster-rescuer-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.foster-rescuer-info { flex: 1; min-width: 0; }

.foster-rescuer-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.foster-rescuer-name .verified {
  color: var(--pc-success);
  font-size: 12px;
}

.foster-rescuer-role {
  font-size: 11px;
  color: var(--pc-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Donation */
.foster-donation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}

.foster-donation-amount {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--pc-brown);
  white-space: nowrap;
}

.foster-donation-bar {
  height: 8px;
  background: var(--pc-border-light);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 8px;
}

.foster-donation-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pc-success), var(--pc-caramel));
  border-radius: 20px;
  transition: width 0.4s ease;
}

.foster-donation-hint {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
  font-style: italic;
}

/* Own actions */
.foster-own-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.foster-own-buttons .btn {
  padding: 10px 12px;
  font-size: 12px;
}

/* CTA */
.foster-cta-actions {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.foster-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  border: none;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(58, 74, 58, 0.25);
}

.foster-cta-primary:hover:not(:disabled) {
  background: var(--pc-primary-hover);
  transform: translateY(-1px);
}

.foster-cta-primary:disabled {
  cursor: not-allowed;
}

.foster-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 12px;
  background: var(--pc-pink-soft);
  color: var(--pc-pink);
  border: 1.5px solid var(--pc-pink);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
}

.foster-cta-secondary:hover {
  background: var(--pc-pink);
  color: #fff;
  transform: translateY(-1px);
}

.foster-cta-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: transparent;
  border: 1.5px dashed var(--pc-border);
  border-radius: 12px;
  color: var(--pc-text-2);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.foster-cta-share:hover {
  background: var(--pc-paper);
  border-color: var(--pc-accent);
  color: var(--pc-accent);
}

/* ---------- FORM ---------- */
.foster-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--pc-paper);
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--pc-text);
  font-weight: 600;
}

.foster-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--pc-success);
  cursor: pointer;
  flex-shrink: 0;
}

.foster-medical-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}

/* ---------- DONATE MODAL ---------- */
.foster-donate-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--pc-paper);
  border-radius: 14px;
  margin-bottom: 16px;
}

.foster-donate-hero img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--pc-card);
  box-shadow: var(--pc-shadow-sm);
}

.foster-donate-pet-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 2px;
}

.foster-donate-pet-meta {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
}

.foster-donate-progress {
  padding: 12px 14px;
  background: var(--pc-paper);
  border-radius: 12px;
  margin-bottom: 16px;
}

.foster-donate-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--pc-text-2);
  margin-bottom: 8px;
}

.foster-donate-bar {
  height: 6px;
  background: var(--pc-border-light);
  border-radius: 20px;
  overflow: hidden;
}

.foster-donate-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pc-success), var(--pc-caramel));
  border-radius: 20px;
}

.foster-donate-label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.foster-donate-amounts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.foster-donate-chip {
  padding: 12px 4px;
  background: var(--pc-paper);
  border: 1.5px solid var(--pc-border-light);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--pc-text-2);
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
}

.foster-donate-chip:hover {
  border-color: var(--pc-primary);
  background: var(--pc-primary-light);
  color: var(--pc-primary);
}

.foster-donate-chip.active {
  background: var(--pc-primary);
  color: var(--pc-text-on-dark);
  border-color: var(--pc-primary);
}

.foster-donate-custom-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--pc-text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.foster-donate-custom-label input {
  width: 100%;
  padding: 12px 14px;
  margin-top: 8px;
  border: 1.5px solid var(--pc-border-light);
  border-radius: 12px;
  background: var(--pc-paper);
  font-size: 14px;
  font-family: inherit;
  color: var(--pc-text);
  font-weight: 700;
}

.foster-donate-custom-label input:focus {
  outline: none;
  border-color: var(--pc-accent);
  background: var(--pc-card);
  box-shadow: 0 0 0 4px rgba(58, 74, 58, 0.08);
}

.foster-donate-disclaimer {
  font-size: 11px;
  color: var(--pc-text-muted);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.foster-donate-disclaimer i {
  color: var(--pc-accent);
  font-size: 10px;
}

/* ---------- APPLICATIONS LIST ---------- */
.foster-applications-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.foster-application-item {
  padding: 14px;
  background: var(--pc-paper);
  border-radius: 14px;
  border-left: 3px solid var(--pc-accent);
}

.foster-app-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.foster-app-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD966, #FF9B50);
  color: #2F3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.foster-app-info { flex: 1; min-width: 0; }

.foster-app-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 3px;
}

.foster-app-meta {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.foster-app-meta i {
  font-size: 10px;
  color: var(--pc-accent);
}

.foster-app-status {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.foster-app-status.status-pending { background: var(--pc-warning-soft); color: var(--pc-warning); }
.foster-app-status.status-accepted { background: var(--pc-success-soft); color: var(--pc-success); }
.foster-app-status.status-rejected { background: var(--pc-danger-soft); color: var(--pc-danger); }

.foster-app-details {
  padding: 10px 12px;
  background: var(--pc-card);
  border-radius: 10px;
  margin-bottom: 10px;
}

.foster-app-details p {
  font-size: 12.5px;
  color: var(--pc-text-2);
  line-height: 1.5;
  margin-bottom: 4px;
}

.foster-app-details p:last-child { margin-bottom: 0; }
.foster-app-details strong { color: var(--pc-text); font-weight: 800; }

.foster-app-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ---------- ORG PROFILE MODAL ---------- */
.org-profile-header {
  text-align: center;
  padding: 16px 16px 20px;
  border-bottom: 1px solid var(--pc-border-light);
  margin-bottom: 16px;
}

.org-profile-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--pc-primary-light);
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 3px solid var(--pc-card);
  box-shadow: 0 4px 14px rgba(58, 74, 58, 0.15);
}

.org-profile-logo img { width: 100%; height: 100%; object-fit: cover; }

.org-profile-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.org-profile-name .verified {
  color: var(--pc-success);
  font-size: 14px;
}

.org-profile-type {
  font-size: 11.5px;
  color: var(--pc-success);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.org-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.org-stat {
  text-align: center;
  padding: 12px 8px;
  background: var(--pc-paper);
  border-radius: 12px;
}

.org-stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--pc-accent);
  margin-bottom: 3px;
}

.org-stat-label {
  font-size: 10px;
  color: var(--pc-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.org-profile-section {
  margin-bottom: 16px;
}

.org-pets-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.org-pets-scroll::-webkit-scrollbar { display: none; }

.org-pet-mini {
  min-width: 90px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.org-pet-mini:hover { transform: translateY(-2px); }

.org-pet-mini img {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  margin-bottom: 6px;
  background: var(--pc-paper);
}

.org-pet-mini p {
  font-size: 12px;
  font-weight: 700;
  color: var(--pc-text);
  text-align: center;
}

/* ---------- PROFILE PAGE — MY FOSTER ---------- */
.mp-empty-foster {
  text-align: center;
  padding: 24px 16px;
}

.mp-empty-foster i {
  font-size: 32px;
  color: var(--pc-text-muted);
  opacity: 0.4;
  display: block;
  margin-bottom: 10px;
}

.mp-empty-foster p {
  font-size: 12.5px;
  color: var(--pc-text-muted);
  margin-bottom: 12px;
}

.mp-foster-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mp-foster-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: var(--pc-paper);
  border: 1px solid var(--pc-border-light);
  border-radius: 14px;
  align-items: center;
  position: relative;
}

.mp-foster-img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--pc-card);
  cursor: pointer;
}

.mp-foster-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-foster-info { flex: 1; min-width: 0; }

.mp-foster-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.mp-foster-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--pc-text);
}

.mp-foster-status {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mp-foster-status.status-available { background: var(--pc-success-soft); color: var(--pc-success); }
.mp-foster-status.status-fostered { background: var(--pc-info-soft); color: var(--pc-info); }
.mp-foster-status.status-adopted { background: var(--pc-purple-soft); color: var(--pc-purple); }

.mp-foster-meta {
  font-size: 11.5px;
  color: var(--pc-text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.mp-foster-stats {
  display: flex;
  gap: 10px;
  font-size: 10.5px;
  color: var(--pc-text-muted);
  font-weight: 700;
}

.mp-foster-stats span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.mp-foster-stats i { font-size: 10px; color: var(--pc-accent); }

.mp-foster-menu {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--pc-border-light);
  color: var(--pc-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mp-foster-menu:hover {
  background: var(--pc-card);
  color: var(--pc-text);
}

.mp-count-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--pc-accent);
  background: var(--pc-primary-light);
  padding: 3px 10px;
  border-radius: 20px;
}

.mp-apps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-app-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: var(--pc-paper);
  border: 1px solid var(--pc-border-light);
  border-radius: 12px;
  align-items: center;
  cursor: pointer;
  transition: all 0.22s ease;
}

.mp-app-card:hover {
  background: var(--pc-card);
  transform: translateX(2px);
}

.mp-app-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.mp-app-img img { width: 100%; height: 100%; object-fit: cover; }

.mp-app-info { flex: 1; min-width: 0; }

.mp-app-pet {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 2px;
}

.mp-app-date {
  font-size: 11px;
  color: var(--pc-text-muted);
  font-weight: 600;
}

.mp-app-status {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.mp-app-status.status-pending { background: var(--pc-warning-soft); color: var(--pc-warning); }
.mp-app-status.status-accepted { background: var(--pc-success-soft); color: var(--pc-success); }
.mp-app-status.status-rejected { background: var(--pc-danger-soft); color: var(--pc-danger); }

/* ---------- DARK MODE ---------- */
body.dark-mode .foster-item,
body.dark-mode .foster-medical-card,
body.dark-mode .foster-description,
body.dark-mode .foster-rescuer-card,
body.dark-mode .foster-donation-card,
body.dark-mode .foster-own-actions,
body.dark-mode .foster-info-item,
body.dark-mode .foster-donate-hero,
body.dark-mode .foster-donate-progress,
body.dark-mode .foster-application-item,
body.dark-mode .mp-foster-card,
body.dark-mode .mp-app-card,
body.dark-mode .org-stat {
  background: #241A14;
  border-color: #4A3A2C;
}

body.dark-mode .foster-modal-name,
body.dark-mode .foster-section-title,
body.dark-mode .foster-rescuer-name,
body.dark-mode .foster-donate-pet-name,
body.dark-mode .mp-foster-name,
body.dark-mode .mp-app-pet,
body.dark-mode .org-profile-name,
body.dark-mode .foster-app-name {
  color: #F8FAFC;
}

body.dark-mode .foster-modal-desc,
body.dark-mode .foster-medical-notes,
body.dark-mode .foster-app-details p {
  color: #CBD5E1;
}

body.dark-mode .foster-medical-notes,
body.dark-mode .foster-app-details {
  background: #2A1F18;
}

body.dark-mode .foster-icon-btn,
body.dark-mode .foster-cta-share,
body.dark-mode .mp-foster-menu {
  background: #2A1F18;
  border-color: #4A3A2C;
  color: #CBD5E1;
}

body.dark-mode .foster-checkbox-row,
body.dark-mode .foster-donate-custom-label input {
  background: #241A14;
  color: #F8FAFC;
}

body.dark-mode .foster-rescuer-card:hover {
  background: #2D3E2D;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 480px) {
  .foster-item {
    min-width: 150px;
    max-width: 150px;
  }

  .foster-cta-actions {
    grid-template-columns: 1fr;
  }

  .foster-modal-name {
    font-size: 1.25rem;
  }

  .foster-donate-amounts {
    grid-template-columns: repeat(3, 1fr);
  }

  .foster-own-buttons {
    grid-template-columns: 1fr;
  }

  .foster-medical-form {
    grid-template-columns: 1fr;
  }

  .foster-app-actions {
    grid-template-columns: 1fr;
  }
}
/* ============================================================ */
/* MODAL STACKING — Lower z-index for detail modals              */
/* ============================================================ */
.modal-stacked {
  z-index: 990;  /* ⭐ Lower than default (1000) */
}