/* ===== BASE ===== */
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: #0D0008; color: #F3F4F6; }
.font-script { font-family: 'Great Vibes', cursive; }
.font-serif-custom { font-family: 'Cormorant Infant', serif; }

/* ===== KEYFRAMES ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes scrollDot {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

.anim-fade-up   { animation: fadeInUp 0.75s ease-out both; }
.anim-fade-in   { animation: fadeIn 1s ease-out both; }
.anim-float     { animation: floatY 6s ease-in-out infinite; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.30s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.60s; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== GRADIENT TEXT ===== */
.text-gradient {
  background: linear-gradient(135deg, #E91E8C 0%, #FBCFE8 40%, #BE185D 70%, #F9A8D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 14px; left: 14px; right: 14px;
  z-index: 50;
  border-radius: 18px;
  background: rgba(15, 0, 10, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(233, 30, 140, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  padding: 13px 24px;
  transition: box-shadow 0.3s ease;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #E91E8C, #BE185D);
  color: #fff; padding: 14px 28px; border-radius: 50px;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 15px;
  cursor: pointer; border: none; text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(233, 30, 140, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #FBCFE8, #DB2777);
  color: #fff;
  box-shadow: 0 8px 28px rgba(233, 30, 140, 0.45);
  transform: translateY(-2px);
}
.btn-primary:focus-visible { outline: 3px solid #E91E8C; outline-offset: 3px; }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #E91E8C;
  padding: 13px 28px; border-radius: 50px;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 2px solid #E91E8C; text-decoration: none;
  transition: all 0.25s ease;
}
.btn-outline:hover { background: rgba(233, 30, 140, 0.1); color: #FBCFE8; }
.btn-outline:focus-visible { outline: 3px solid #E91E8C; outline-offset: 3px; }

/* ===== HERO ===== */
.hero-bg {
  background: linear-gradient(155deg, #080005 0%, #120010 45%, #0D0008 100%);
}

/* ===== PHOTO FRAME ===== */
.photo-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.photo-frame::before {
  content: '';
  position: absolute; inset: -3px;
  background: linear-gradient(135deg, #E91E8C, #FBCFE8, #BE185D);
  border-radius: 31px;
  z-index: -1;
}
.photo-frame-inner {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #1A0818 0%, #0D0008 60%, #08000A 100%);
  display: flex; align-items: flex-end; padding: 24px;
}

/* ===== FLOATING BADGES ===== */
.badge-float {
  position: absolute;
  background: rgba(20, 0, 15, 0.95);
  border: 1px solid rgba(233, 30, 140, 0.3);
  border-radius: 16px;
  padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  color: #F3F4F6;
}
.badge-float .text-xs.font-semibold { color: #FBCFE8 !important; }

/* ===== CARDS ===== */
.card {
  background: rgba(20, 0, 14, 0.6); border-radius: 20px;
  border: 1px solid rgba(233, 30, 140, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(233, 30, 140, 0.5);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4), 0 0 15px rgba(233, 30, 140, 0.12);
}

/* ===== STEP CIRCLE ===== */
.step-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #E91E8C, #BE185D);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Infant', serif; font-size: 1.5rem; font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
}

/* ===== LO TRINH TIMELINE ===== */
.lo-trinh-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
}
.lo-trinh-step::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: -20px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(233,30,140,0.4), rgba(233,30,140,0.05));
}
.lo-trinh-step:last-child::before { display: none; }

.lo-trinh-badge {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #E91E8C, #BE185D);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Infant', serif; font-size: 1.5rem; font-weight: 700;
  box-shadow: 0 4px 15px rgba(233,30,140,0.35);
  z-index: 1; position: relative;
}
.lo-trinh-badge.success {
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 4px 15px rgba(16,185,129,0.35);
}
.lo-trinh-badge.warning {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  box-shadow: 0 4px 15px rgba(245,158,11,0.35);
}
.lo-trinh-content {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(233,30,140,0.15);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.lo-trinh-content h3 {
  font-family: 'Cormorant Infant', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #F3F4F6;
  margin-bottom: 6px;
}
.lo-trinh-content p {
  font-size: 0.875rem;
  color: #9CA3AF;
  line-height: 1.7;
}

/* ===== BENEFIT ICON ===== */
.benefit-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(233, 30, 140, 0.2), rgba(190, 24, 93, 0.1));
  border: 1px solid rgba(233, 30, 140, 0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ===== SEPARATOR ===== */
.rose-sep {
  width: 56px; height: 2.5px;
  background: linear-gradient(90deg, #E91E8C, #FBCFE8);
  border-radius: 2px;
}

/* ===== STATS ===== */
.stat-num {
  font-family: 'Cormorant Infant', serif;
  font-size: 3rem; font-weight: 700; line-height: 1;
  color: #E91E8C;
}

/* ===== AVATAR GRADIENTS ===== */
.avatar-a { background: linear-gradient(135deg, #2A0020, #130010); border-color: #E91E8C !important; }
.avatar-b { background: linear-gradient(135deg, #330025, #1A0018); border-color: #BE185D !important; }
.avatar-c { background: linear-gradient(135deg, #440030, #220018); border-color: #FBCFE8 !important; }

/* ===== FORM ===== */
.form-input {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid rgba(255,255,255,0.1); border-radius: 10px;
  font-family: 'Outfit', sans-serif; font-size: 15px;
  background: rgba(13,0,8,0.8); color: #F3F4F6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: #E91E8C;
  box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.2);
}
.form-input::placeholder { color: #6B7280; }

/* ===== FAQ ===== */
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
.faq-plus {
  transition: transform 0.25s ease;
  display: inline-flex; flex-shrink: 0;
  color: #E91E8C;
}
details[open] .faq-plus { transform: rotate(45deg); }

/* ===== COMMUNITY TABS ===== */
.community-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: 50px; border: none;
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.22s ease;
  color: #9CA3AF; background: transparent;
}
.community-tab-active {
  background: linear-gradient(135deg, #E91E8C, #BE185D); color: #fff;
  box-shadow: 0 4px 12px rgba(233, 30, 140, 0.35);
}
.community-tab:hover:not(.community-tab-active) { color: #FBCFE8; }
.tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(233,30,140,0.15); color: #E91E8C;
  border-radius: 50px; padding: 1px 8px; font-size: 12px; font-weight: 700;
}
.community-tab-active .tab-count { background: rgba(0,0,0,0.2); color: #fff; }

/* ===== PROFILE GRID ===== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px 16px;
}
@media (max-width: 1023px) { .community-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 639px)  { .community-grid { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; } }

/* ===== PROFILE CARD ===== */
.profile-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; cursor: default;
}
.profile-ring {
  position: relative; width: 96px; height: 96px;
  border-radius: 50%; padding: 3px;
  margin-bottom: 10px; flex-shrink: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.profile-card:hover .profile-ring {
  transform: scale(1.07);
  box-shadow: 0 8px 24px rgba(233,30,140,0.3);
}
.profile-ring-women { background: linear-gradient(135deg, #E91E8C, #FBCFE8); }
.profile-ring-men   { background: linear-gradient(135deg, #4B5563, #1F2937); }
.profile-card:hover .profile-ring-men { background: linear-gradient(135deg, #E91E8C, #BE185D); }

.profile-photo {
  width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
  display: block;
  border: 3px solid #1A0818;
}
.profile-badge {
  position: absolute; bottom: 2px; right: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #1A0818;
}
.profile-badge-women { background: #E91E8C; }
.profile-badge-men   { background: #FBCFE8; }
.profile-badge-men svg { stroke: #0D0008 !important; }

.profile-name {
  font-weight: 600; font-size: 14px; color: #F3F4F6; line-height: 1.3;
}
.profile-meta {
  font-size: 12px; color: #9CA3AF; margin-top: 2px;
}
.profile-tag {
  font-size: 11px; color: #E91E8C; margin-top: 3px;
  font-style: italic; line-height: 1.4;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 240px 240px 260px;
}

/* Desktop bento: 7-card asymmetric layout
   Row 1+2: card-1 tall left | card-2 top-mid | card-3 top-right
                               card-4 bot-mid  | card-5 bot-right
   Row 3:   card-6 wide (spans 2 cols)          | card-7 right
*/
.gallery-card-1 { grid-column: 1;     grid-row: 1 / 3; }
.gallery-card-2 { grid-column: 2;     grid-row: 1; }
.gallery-card-3 { grid-column: 3;     grid-row: 1; }
.gallery-card-4 { grid-column: 2;     grid-row: 2; }
.gallery-card-5 { grid-column: 3;     grid-row: 2; }
.gallery-card-6 { grid-column: 1 / 3; grid-row: 3; }
.gallery-card-7 { grid-column: 3;     grid-row: 3; }

/* Mobile: 2-column grid, cards 1-6 uniform, card-7 full width */
@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 220px) 240px;
  }
  .gallery-card-1,
  .gallery-card-2,
  .gallery-card-3,
  .gallery-card-4,
  .gallery-card-5,
  .gallery-card-6 { grid-column: unset; grid-row: unset; }
  .gallery-card-7 { grid-column: 1 / 3; grid-row: unset; }
}

.gallery-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  border: 2px solid rgba(255, 77, 166, 0.3);
  box-shadow: 0 4px 18px rgba(255, 77, 166, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(255, 77, 166, 0.25), 0 0 0 3px rgba(168, 85, 247, 0.18);
}

.gallery-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
  opacity: 1;
}
.gallery-card:hover .gallery-img { transform: scale(1.07); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(233, 30, 140, 0.88) 0%,
    rgba(168, 85, 247, 0.45) 55%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-card:hover .gallery-overlay,
.gallery-card:focus-within .gallery-overlay { opacity: 1; }

/* Always show overlay on touch devices */
@media (hover: none) {
  .gallery-overlay { opacity: 1; }
}

.gallery-heart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FF6B9D, #A855F7);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  width: fit-content;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(255,107,157,0.4);
}
.gallery-heart svg { fill: #fff; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0D0008; }
::-webkit-scrollbar-thumb { background: #E91E8C; border-radius: 5px; }

/* ===== SCROLL ANIMATE (JS adds class) ===== */
.scroll-hidden {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ADMIN PANEL ===== */
#admin-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65);
  z-index: 9999; overflow-y: auto; padding: 2rem 1rem;
  backdrop-filter: blur(4px);
}
.adm-box {
  max-width: 680px; margin: 0 auto; background: #fff;
  border-radius: 16px; padding: 2rem; box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.adm-title {
  font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 700;
  color: #1A0018; margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.adm-input {
  width: 100%; padding: 0.55rem 0.75rem; border: 1.5px solid #E5E7EB;
  border-radius: 8px; font-family: 'Outfit', sans-serif; font-size: 0.9rem;
  color: #1A0018; outline: none; transition: border-color 0.2s;
  box-sizing: border-box;
}
.adm-input:focus { border-color: #E91E8C; }
.adm-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.5rem 1.1rem; border: none; border-radius: 8px;
  font-family: 'Outfit', sans-serif; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: opacity 0.2s;
}
.adm-btn:hover { opacity: 0.85; }
.adm-btn-primary { background: #E91E8C; color: #fff; }
.adm-btn-ghost  { background: #F3F4F6; color: #374151; }
.adm-btn-danger { background: #FCE7F3; color: #DC2626; }
.adm-profile-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0; border-bottom: 1px solid #F3F4F6;
}
.adm-profile-row:last-child { border-bottom: none; }
.adm-thumb {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid #FBCFE8; flex-shrink: 0;
}
.adm-profile-info { flex: 1; min-width: 0; }
.adm-profile-info strong { font-size: 0.9rem; color:#1A0018; }
.adm-profile-info span { font-size: 0.78rem; color:#9CA3AF; display:block; }
.adm-edit-form {
  background: #FFF0F7; border-radius: 12px; padding: 1rem;
  margin-top: 0.5rem; display: none;
}
.adm-form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.6rem; margin-bottom: 0.75rem;
}
.adm-form-grid .full { grid-column: 1/-1; }
.adm-label {
  font-size: 0.72rem; font-weight: 600; color: #6B7280;
  text-transform: uppercase; letter-spacing: 0.04em;
  display: block; margin-bottom: 3px;
}
.adm-img-preview {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 2px solid #FBCFE8; display: block; margin: 0.5rem 0;
}
