body::before {
  content: "";
  position: fixed;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #2563eb33, transparent 70%);
  z-index: -1;
}

/* ========== GLOBAL ========== */
body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #eef2f7, #f9fbff);
  margin: 0;
  color: #1e293b;
}

/* ========== NAVBAR ========== */
nav {
  padding: 18px 60px;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

nav strong {
  font-size: 20px;
}

nav a {
  text-decoration: none;
  font-weight: 500;
  margin-left: 25px;
  color: #1e293b;
  transition: 0.3s ease;
}

nav a:hover {
  color: #2563eb;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  height: 32px;
  width: auto;
}

/* ========== LAYOUT ========== */
.profile-container {
  max-width: 1200px;
  margin: 60px auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
}

/* ========== PROFILE SIDEBAR ========== */
.profile-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(25px);
  border-radius: 30px;
  padding: 50px 30px;
  text-align: center;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  transition: 0.4s ease;
}

.avatar-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-card:hover {
  transform: translateY(-5px);
}

.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 600;
  color: white;
  letter-spacing: 2px;
}

.profile-card h2 {
  margin: 10px 0 5px;
  font-size: 22px;
}

.profile-card p {
  color: #64748b;
  font-size: 14px;
}

.logout-btn {
  margin-top: 25px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s ease;
}

.logout-btn:hover {
  transform: scale(1.05);
}

/* ========== MAIN CONTENT ========== */
.profile-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* SECTION CARD */
.section {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.05);
  transition: 0.4s ease;
}

.section:hover {
  transform: translateY(-3px);
}

.section h3 {
  margin-bottom: 25px;
  font-size: 18px;
  font-weight: 600;
}

/* INFO GRID */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-box {
  background: #f8fafc;
  padding: 18px;
  border-radius: 14px;
}

.info-box span {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 5px;
}

.info-box strong {
  font-size: 15px;
}

/* PET CARDS */
.pet-card {
  background: linear-gradient(135deg, #f1f5f9, #ffffff);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: 0.3s ease;
}

.pet-card:hover {
  transform: translateX(5px);
}

.pet-name {
  font-weight: 600;
}

.pet-type {
  font-size: 13px;
  color: #64748b;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .profile-container {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.edit-btn {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  font-size: 13px;
  transition: 0.3s ease;
}

.edit-btn:hover {
  transform: scale(1.05);
}

.info-box input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 15px;
  outline: none;
}

.save-container {
  margin-top: 20px;
  display: none;
}

.save-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  font-weight: 500;
}

.hidden {
  display: none;
}

/* =========================
   MY PETS PREMIUM SECTION
========================= */

.myPetsSection {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
}

.myPetsSection h2 {
  font-size: 26px;
  margin-bottom: 25px;
  font-weight: 600;
}

/* =========================
   ADD PET CARD
========================= */

.addPetBox {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  margin-bottom: 35px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.addPetBox h3 {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* FORM GRID */

.petFormGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.petFormGrid input,
.petFormGrid select {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  transition: 0.25s;
  background: #fff;
}

.petFormGrid input:focus,
.petFormGrid select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ADD PET BUTTON */

.addPetBtn {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: white;
  border: none;
  padding: 12px 26px;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.addPetBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(37, 99, 235, 0.35);
}

/* =========================
   PET CARDS GRID
========================= */

.petContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 25px;
}

/* PET CARD */

.petCard {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 20px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  transition: 0.35s;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.petCard:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* PET ICON */

.petCard::before {
  content: "🐾";
  position: absolute;
  top: -10px;
  right: 15px;
  font-size: 70px;
  opacity: 0.06;
}

/* PET NAME */

.petCard h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* PET INFO */

.petInfo {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 6px;
}

/* PET TAG */

.petTypeTag {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 500;
}
