/* Massage Lộc Phụng Trảng Bom — BioLink CSS Design System (Refined with Liquid Glass & Ambient Orbs) */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@1,500;1,600;1,700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  /* Color Tokens */
  --color-cream:       #FAF5EE; /* page background */
  --color-cream-deep:  #F1E8DA; /* card/button surface */
  --color-gold:        #C9A96E; /* primary accent: icons, borders, ring */
  --color-gold-deep:   #B08D4F; /* hover/active accent */
  --color-charcoal:    #2B2620; /* primary text */
  --color-sage:        #8B9A82; /* decorative accent, glow */
  --color-sage-text:    #5F6E57; /* tagline text, AA-safe on cream */
  --text-dim:          #7A6B5D;

  /* Type Tokens */
  --font-display: 'Cormorant Garamond', serif;
  --font-ui: 'Manrope', sans-serif;

  /* Spacing */
  --space-1: 8px;  --space-2: 16px; --space-3: 24px;
  --space-4: 32px; --space-6: 48px;

  /* Radius */
  --radius-card: 20px;
  --radius-pebble: 28px;
  --radius-pill: 999px;

  /* Motion */
  --ease-breath: cubic-bezier(0.45, 0, 0.55, 1);
  --duration-breath: 4s;
  --ease-out-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-ui);
  background-color: var(--color-cream);
  color: var(--color-charcoal);
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: var(--color-cream);
  position: relative;
  overflow-x: hidden;
}

/* ───── Ambient Gradient BG & Drifting Orbs ───── */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(165deg, #FAF5EE 0%, #F5EBDC 45%, #EFE1CE 100%);
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.o1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(232, 208, 176, 0.8), rgba(201, 169, 110, 0.4));
  top: -160px;
  left: -150px;
  animation-duration: 22s;
}

.o2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(139, 154, 130, 0.5), rgba(95, 110, 87, 0.3));
  bottom: -100px;
  right: -120px;
  animation-duration: 26s;
  animation-delay: -5s;
}

.o3 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(241, 232, 218, 0.9), rgba(201, 169, 110, 0.35));
  top: 40%;
  left: 50%;
  animation-duration: 18s;
  animation-delay: -10s;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(25px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(15px, -15px) scale(1.02); }
}

/* Falling Ambient Leaf/Petal Particles */
.petals {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.petal {
  position: absolute;
  border-radius: 50% 0 50% 50%;
  background: rgba(139, 154, 130, 0.28);
  animation: fall linear infinite;
}

.petal:nth-child(1) { left: 8%;  width: 8px;  height: 12px; animation-duration: 14s; animation-delay: 0s; }
.petal:nth-child(2) { left: 22%; width: 6px;  height: 9px;  animation-duration: 17s; animation-delay: -3s; opacity: 0.35; }
.petal:nth-child(3) { left: 38%; width: 10px; height: 14px; animation-duration: 12s; animation-delay: -7s; opacity: 0.4; }
.petal:nth-child(4) { left: 55%; width: 7px;  height: 10px; animation-duration: 15s; animation-delay: -2s; opacity: 0.3; }
.petal:nth-child(5) { left: 70%; width: 9px;  height: 13px; animation-duration: 13s; animation-delay: -9s; opacity: 0.45; }
.petal:nth-child(6) { left: 85%; width: 6px;  height: 8px;  animation-duration: 18s; animation-delay: -5s; opacity: 0.28; }

@keyframes fall {
  0% { transform: translateY(-40px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.5; }
  100% { transform: translateY(110vh) rotate(360deg) translateX(30px); opacity: 0; }
}

/* ───── Page Layout (Max 420px, Mobile Centered) ───── */
.page-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 44px 20px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Top Ornament */
.ornament {
  font-size: 16px;
  color: var(--color-gold);
  letter-spacing: 6px;
  margin-bottom: 16px;
  opacity: 0.8;
  animation: fadeUp 0.8s var(--ease-out-smooth) both;
}

/* ───── Profile Header & Signature Breathing Avatar ───── */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.avatar-wrapper {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.9s var(--ease-out-smooth) 0.08s both;
}

@keyframes breathe {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50%      { opacity: 0.38; transform: scale(1.08); }
}

.avatar-glow {
  position: absolute;
  top: -14px;
  left: -14px;
  right: -14px;
  bottom: -14px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, var(--color-gold) 0%, var(--color-sage) 60%, transparent 85%);
  filter: blur(16px);
  animation: breathe var(--duration-breath) var(--ease-breath) infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .avatar-glow {
    animation: none;
    opacity: 0.25;
  }
}

.avatar-ring {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-pill);
  padding: 3px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(201, 169, 110, 0.6), rgba(139, 154, 130, 0.4));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 8px 24px rgba(43, 38, 32, 0.12);
  position: relative;
  z-index: 2;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-pill);
  object-fit: cover;
  border: 2px solid var(--color-gold);
}

.brand-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  font-weight: 600;
  color: var(--color-charcoal);
  line-height: 1.15;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
  animation: fadeUp 0.9s var(--ease-out-smooth) 0.16s both;
}

.brand-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--color-gold-deep);
  letter-spacing: 3px;
  margin-top: 2px;
  animation: fadeUp 0.9s var(--ease-out-smooth) 0.22s both;
}

.thin-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
  margin: 12px auto 18px;
  animation: fadeUp 0.9s var(--ease-out-smooth) 0.26s both;
}

/* ───── Quick Action Social Bar (MOVED TO TOP) ───── */
.socials-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  justify-content: center;
  animation: fadeUp 0.9s var(--ease-out-smooth) 0.32s both;
}

.sp {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(43, 38, 32, 0.05), 0 4px 16px rgba(43, 38, 32, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out-smooth), box-shadow 0.25s;
}

.sp::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
  z-index: 2;
}

.sp:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.95), 0 10px 24px rgba(43, 38, 32, 0.15);
}

.sp svg {
  position: relative;
  z-index: 4;
  width: 20px;
  height: 20px;
}

/* ───── Liquid Glass Link Cards Section ───── */
.links-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

/* Base Liquid Glass Card */
.glass-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(201, 169, 110, 0.35);
  box-shadow: 0 4px 20px rgba(43, 38, 32, 0.06), inset 0 1.5px 0 rgba(255, 255, 255, 0.85);
  text-decoration: none;
  color: var(--color-charcoal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-smooth), box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
  user-select: none;
  animation: fadeUp 0.9s var(--ease-out-smooth) both;
}

.glass-card:nth-child(1) { animation-delay: 0.38s; }
.glass-card:nth-child(2) { animation-delay: 0.44s; }
.glass-card:nth-child(3) { animation-delay: 0.50s; }
.glass-card:nth-child(4) { animation-delay: 0.56s; }
.glass-card:nth-child(5) { animation-delay: 0.62s; }
.glass-card:nth-child(6) { animation-delay: 0.68s; }

/* Glare & Shimmer overlays */
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 60%, rgba(201, 169, 110, 0.05) 100%);
}

.glass-card::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -70%;
  width: 65%;
  height: 160%;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: rotate(20deg);
  transition: left 0.65s ease;
  pointer-events: none;
}

.glass-card:hover::after {
  left: 150%;
}

.glass-card:hover {
  transform: translateY(-3px) scale(1.015);
  border-color: rgba(201, 169, 110, 0.65);
  box-shadow: 0 12px 32px rgba(201, 169, 110, 0.2), inset 0 1.5px 0 rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.6);
}

.glass-card:active {
  transform: scale(0.98);
}

.glass-card:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* ───── Liquid Glass Icon Bubble ───── */
.lgi {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(18px) saturate(200%);
  -webkit-backdrop-filter: blur(18px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(43, 38, 32, 0.05), 0 4px 14px rgba(43, 38, 32, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out-smooth), box-shadow 0.25s;
}

.lgi::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
  z-index: 2;
}

.lgi svg {
  position: relative;
  z-index: 4;
  width: 22px;
  height: 22px;
}

.glass-card:hover .lgi {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.95), 0 6px 18px rgba(43, 38, 32, 0.12);
}

/* Specific brand icon bubble tints */
.lgi-phone {
  background: rgba(201, 169, 110, 0.25);
  border-color: rgba(201, 169, 110, 0.55);
}
.lgi-phone svg { stroke: var(--color-gold-deep); }

.lgi-zalo {
  background: rgba(0, 104, 255, 0.14);
  border-color: rgba(0, 104, 255, 0.35);
}
.lgi-zalo svg { fill: #0068FF; stroke: none; }

.lgi-msg {
  background: rgba(0, 132, 255, 0.14);
  border-color: rgba(0, 132, 255, 0.35);
}
.lgi-msg svg { stroke: #0084FF; }

.lgi-fb {
  background: rgba(24, 119, 242, 0.14);
  border-color: rgba(24, 119, 242, 0.35);
}
.lgi-fb svg { stroke: #1877F2; }

.lgi-tt {
  background: rgba(43, 38, 32, 0.12);
  border-color: rgba(43, 38, 32, 0.3);
}
.lgi-tt svg { stroke: var(--color-charcoal); }

.lgi-loc {
  background: rgba(201, 169, 110, 0.22);
  border-color: rgba(201, 169, 110, 0.5);
}
.lgi-loc svg { stroke: var(--color-gold-deep); }

/* Card Content Text */
.card-text {
  flex: 1;
  text-align: left;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-charcoal);
  line-height: 1.3;
}

.card-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
  font-weight: 400;
}

/* Right Arrow Hover Motion */
.card-arr {
  font-size: 14px;
  color: var(--color-gold);
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

.glass-card:hover .card-arr {
  transform: translateX(4px);
  opacity: 1;
}

/* ───── Footer ───── */
.profile-footer {
  text-align: center;
  width: 100%;
  animation: fadeUp 0.9s var(--ease-out-smooth) 0.76s both;
}

.footer-info {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

.hotline-link {
  color: var(--color-gold-deep);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hotline-link:hover {
  text-decoration: underline;
}

/* ───── Modal Windows (Location Overview) ───── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(43, 38, 32, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 390px;
  background: var(--color-cream);
  border: 1px solid rgba(201, 169, 110, 0.45);
  border-radius: 24px;
  padding: var(--space-4) var(--space-3);
  position: relative;
  box-shadow: 0 20px 45px rgba(43, 38, 32, 0.18);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.3s var(--ease-out-smooth);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--color-charcoal);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background-color: rgba(201, 169, 110, 0.15);
}

.modal-heading {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 4px;
}

.modal-sub {
  font-size: 13px;
  color: var(--color-sage-text);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  text-align: left;
}

.loc-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 14px;
  line-height: 1.4;
}

.loc-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.loc-item strong {
  color: var(--color-charcoal);
  font-weight: 600;
}

.loc-item p {
  color: var(--color-sage-text);
  font-size: 13px;
}

.phone-link {
  color: var(--color-gold-deep);
  font-weight: 600;
  text-decoration: none;
}

.modal-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background-color: var(--color-gold);
  color: #FFF;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pebble);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.modal-submit-btn:hover {
  background-color: var(--color-gold-deep);
  transform: scale(0.98);
}

.modal-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background-color: transparent;
  color: var(--color-charcoal);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: var(--radius-pebble);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.modal-secondary-btn:hover {
  background-color: rgba(241, 232, 218, 0.8);
}

/* Entrance Animation Keyframe */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Toast */
.toast-message {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--color-charcoal);
  color: var(--color-cream);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-out-smooth), opacity 0.3s ease;
}

.toast-message.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
