/* iPhone-inspired 3D profile — My Bookings / Profile */

.profile-ios {
  --prof-ink: #1c1917;
  --prof-muted: #78716c;
  --prof-orange: #ea580c;
  --prof-teal: #0d9488;
  font-family: Outfit, Nunito, system-ui, sans-serif;
}

.profile-ios.bookings-atmosphere {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(251, 146, 60, 0.28), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(45, 212, 191, 0.22), transparent 50%),
    linear-gradient(180deg, #fff7ed 0%, #f8fafc 42%, #ecfeff 100%);
  min-height: 100vh;
}

.profile-top-header .nav {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.profile-main {
  max-width: 520px;
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
}

.profile-loading {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  min-height: 40vh;
  color: var(--prof-muted);
  font-weight: 800;
}

.profile-loading-orb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, #fb923c, #2dd4bf, #fb923c);
  animation: profSpin 1s linear infinite;
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 0);
}

@keyframes profSpin {
  to { transform: rotate(360deg); }
}

.profile-shell {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.profile-hero-3d {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.2rem 1.25rem;
  border-radius: 28px;
  background: linear-gradient(145deg, #ffffff 0%, #fff7ed 48%, #ecfeff 100%);
  border: 1px solid rgba(253, 186, 116, 0.65);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 40px rgba(234, 88, 12, 0.14),
    0 6px 0 rgba(251, 146, 60, 0.35);
  transform: perspective(900px) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.3, 1.1), box-shadow 0.35s ease;
}

.profile-hero-3d:hover {
  transform: perspective(900px) rotateX(0deg) translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 24px 48px rgba(234, 88, 12, 0.18),
    0 8px 0 rgba(251, 146, 60, 0.4);
}

.profile-hero-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(circle at 30% 40%, rgba(251, 146, 60, 0.35), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.28), transparent 50%);
  pointer-events: none;
  animation: profGlow 6s ease-in-out infinite alternate;
}

@keyframes profGlow {
  from { opacity: 0.7; transform: translateY(0); }
  to { opacity: 1; transform: translateY(8px); }
}

.profile-avatar-wrap {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  margin-bottom: 0.85rem;
  transform: translateZ(24px);
}

.profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(145deg, #fb923c 0%, #ea580c 45%, #0d9488 100%);
  box-shadow:
    0 12px 24px rgba(234, 88, 12, 0.35),
    0 2px 0 rgba(255, 255, 255, 0.35) inset;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.profile-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c2410c;
}

.profile-name {
  position: relative;
  z-index: 1;
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--prof-ink);
  line-height: 1.15;
}

.profile-sub {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--prof-muted);
  word-break: break-word;
}

.profile-dot { margin: 0 0.25rem; opacity: 0.5; }

.profile-quick {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pq-btn:active { transform: scale(0.96); }

.pq-primary {
  color: #fff;
  background: linear-gradient(180deg, #fb923c, #ea580c);
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.35), 0 1px 0 rgba(255,255,255,0.3) inset;
}

.pq-teal {
  color: #fff;
  background: linear-gradient(180deg, #2dd4bf, #0d9488);
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.3);
}

.pq-ghost {
  color: #9a3412;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(253, 186, 116, 0.8);
}

.profile-wallet-3d {
  padding: 1.15rem 1.2rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #1c1917 0%, #292524 40%, #134e4a 100%);
  color: #fff;
  box-shadow:
    0 16px 36px rgba(28, 25, 23, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  transform: perspective(800px) rotateX(1.5deg);
}

.pw3-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.pw3-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.pw3-chip {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.2);
  color: #99f6e4;
}

.profile-wallet-3d strong {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}

.pw3-note {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.72;
}

.profile-wallet-hist {
  margin: 0;
  max-height: 220px;
  overflow: auto;
}

.profile-panel {
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(253, 186, 116, 0.45);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.profile-panel h2,
.profile-section-head .bookings-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--prof-ink);
}

.profile-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.profile-count {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--prof-muted);
}

.profile-ios .my-booking {
  border-radius: 18px;
  border: 1px solid rgba(253, 186, 116, 0.55);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  background: #fff;
}

.profile-ios .my-booking .mb-shots img {
  width: 56px;
  height: 56px;
}

.load-more-btn {
  margin-top: 0.75rem;
}

.profile-legal {
  margin: 0.5rem 0 0;
  text-align: center;
}

.profile-ios .account-card,
.profile-ios .bookings-card,
.profile-ios .brand-lockup {
  /* old card chrome removed on profile page */
}

@media (max-width: 768px) {
  .profile-main {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .profile-hero-3d {
    transform: none;
  }
  .profile-hero-3d:hover {
    transform: translateY(-2px);
  }
  .profile-wallet-3d {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-hero-3d,
  .profile-loading-orb,
  .profile-hero-glow {
    animation: none;
    transition: none;
  }
}
