/* ============================================================
   Team Coconut – Summer Camp 2026 · Custom Styles
   Fonts: Mali (handwritten Vietnamese ✓) + Nunito (body Vietnamese ✓)
   ============================================================ */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --coconut-white: #fdf6ec;
  --sand-beige: #f5e6ca;
  --sand-dark: #d4a96a;
  --palm-green: #2d6a4f;
  --palm-light: #52b788;
  --ocean-blue: #0077b6;
  --ocean-light: #90e0ef;
  --ocean-deep: #023e8a;
  --sunset-orange: #f77f00;
  --sunset-pink: #ff5c8a;
  --coconut-brown: #6b4226;

  --font-handwritten: "Mali", "Patrick Hand", cursive;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    sans-serif;

  --radius-card: 1.25rem;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.18);

  --navbar-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: #1a1a2e;
  background: var(--coconut-white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(253, 246, 236, 0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-handwritten);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.navbar.scrolled .navbar__brand {
  color: var(--coconut-brown);
  text-shadow: none;
}

.navbar__brand-icon {
  font-size: 1.6rem;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.navbar__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar.scrolled .navbar__links a {
  color: var(--palm-green);
  text-shadow: none;
}

.navbar__links a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.navbar.scrolled .navbar__links a:hover {
  background: rgba(45, 106, 79, 0.1);
}

/* Mobile hamburger */
.navbar__toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.4s ease;
}

.navbar.scrolled .navbar__toggle {
  color: var(--coconut-brown);
}

@media (max-width: 768px) {
  .navbar__toggle {
    display: block;
  }

  .navbar__links {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(253, 246, 236, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 1rem 1rem;
  }

  .navbar__links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .navbar__links a {
    color: var(--palm-green) !important;
    text-shadow: none !important;
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  .navbar__links a:hover {
    background: rgba(45, 106, 79, 0.1) !important;
  }
}

/* ── Preloader ───────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fdf6ec 0%, #f5e6ca 50%, #e0c9a6 100%);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.coconut-loader {
  position: relative;
  width: 120px;
  height: 140px;
}

.coconut-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 90px;
  background: var(--coconut-brown);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  overflow: hidden;
  box-shadow: inset 0 -8px 20px rgba(0, 0, 0, 0.2);
}

.coconut-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to top, #ffffff 0%, #e0f4ff 100%);
  animation: fillUp 2s ease-in-out infinite;
  border-radius: 0 0 50% 50%;
}

.coconut-fill::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  animation: wave 1.2s ease-in-out infinite;
  border-radius: 50%;
}

@keyframes fillUp {
  0%, 100% { height: 15%; }
  50% { height: 85%; }
}

@keyframes wave {
  0%, 100% { transform: translateX(-3px) scaleY(1); }
  50% { transform: translateX(3px) scaleY(1.5); }
}

.coconut-straw {
  position: absolute;
  top: 10px;
  left: 62%;
  width: 6px;
  height: 80px;
  background: linear-gradient(to bottom, var(--sunset-orange), var(--sunset-pink));
  border-radius: 3px;
  transform: rotate(12deg);
  transform-origin: bottom center;
}

.coconut-straw::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -3px;
  width: 12px;
  height: 12px;
  background: var(--sunset-orange);
  border-radius: 50%;
}

.coconut-umbrella {
  position: absolute;
  top: 8px;
  left: 18%;
  width: 44px;
  height: 22px;
  background: var(--sunset-pink);
  border-radius: 44px 44px 0 0;
  transform: rotate(-8deg);
}

.coconut-umbrella::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 50px;
  background: #3d2010;
  border-radius: 2px;
}

.preloader-text {
  margin-top: 2rem;
  font-family: var(--font-handwritten);
  font-size: 1.8rem;
  color: var(--coconut-brown);
  animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ── Falling Coconuts ────────────────────────────────────── */
.falling-coconuts-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.falling-coconut {
  position: absolute;
  top: -60px;
  opacity: 0.12;
  animation: fall linear infinite;
  font-size: 1.5rem;
  will-change: transform;
}

@keyframes fall {
  0% { transform: translateY(-60px) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(720deg); }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(107, 66, 38, 0.55) 0%,
    rgba(45, 106, 79, 0.45) 40%,
    rgba(0, 119, 182, 0.5) 100%
  );
  z-index: 1;
}

/* Palm leaves */
.palm-leaf {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.palm-leaf--left {
  top: -20px;
  left: -30px;
  font-size: 8rem;
  color: var(--palm-green);
  transform-origin: top left;
  animation: sway-left 4s ease-in-out infinite;
  opacity: 0.55;
}

.palm-leaf--right {
  top: -20px;
  right: -30px;
  font-size: 8rem;
  color: var(--palm-green);
  transform-origin: top right;
  animation: sway-right 5s ease-in-out infinite;
  opacity: 0.55;
  transform: scaleX(-1);
}

@keyframes sway-left {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(8deg); }
}

@keyframes sway-right {
  0%, 100% { transform: scaleX(-1) rotate(-5deg); }
  50% { transform: scaleX(-1) rotate(8deg); }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem 1rem;
  padding-top: calc(var(--navbar-height) + 2rem);
}

.hero-coconut-icon {
  font-size: 4rem;
  animation: bounce-coconut 2s ease-in-out infinite;
  display: inline-block;
  margin-bottom: 0.5rem;
}

@keyframes bounce-coconut {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-18px) rotate(-8deg); }
  60% { transform: translateY(-6px) rotate(4deg); }
}

.hero-title {
  font-family: var(--font-handwritten);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  max-width: 900px;
  margin: 0 auto 2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.4rem;
  background: linear-gradient(135deg, var(--palm-light), var(--palm-green));
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 6px 24px rgba(45, 106, 79, 0.35);
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 36px rgba(45, 106, 79, 0.5);
}

.hero-cta:active {
  transform: translateY(0) scale(0.98);
}

/* Wave divider */
.wave-divider {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 4;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Decorative Coconut BG Images ────────────────────────── */
.coconut-decor {
  position: absolute;
  pointer-events: none;
  width: 60px;
  opacity: 0.15;
  z-index: 0;
}

/* ── Toast Notification ────────────────────────────────────── */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ocean-blue);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 100000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.deco-coconut {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
  z-index: 0;
  max-width: 350px;
}

.deco-coconut--1 {
  top: 8%;
  right: -60px;
  transform: rotate(15deg);
}

.deco-coconut--2 {
  bottom: 12%;
  left: -80px;
  transform: rotate(-10deg) scaleX(-1);
}

.deco-coconut--3 {
  top: 50%;
  right: -40px;
  transform: rotate(8deg);
  max-width: 280px;
}

/* ── Section Shared ──────────────────────────────────────── */
.section-heading {
  font-family: var(--font-handwritten);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--palm-green);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtext {
  text-align: center;
  color: #555;
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 3rem;
}

/* ── Team Cards ──────────────────────────────────────────── */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.team-grid > .team-card {
  width: 100%;
  max-width: 380px;
}

@media (min-width: 640px) {
  .team-grid > .team-card { width: calc(50% - 1rem); }
}

@media (min-width: 1024px) {
  .team-grid > .team-card { width: calc(33.333% - 1.334rem); }
}

.team-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 2.25rem 1.5rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--palm-light), var(--ocean-light), var(--sunset-orange));
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.team-card__avatar-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 1rem;
}

.team-card__avatar {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--palm-light);
  transition: transform 0.35s ease;
}

.team-card:hover .team-card__avatar {
  transform: scale(1.08);
}

.team-card__role {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  background: linear-gradient(135deg, var(--ocean-light), var(--palm-light));
  color: var(--palm-green);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.team-card__name {
  font-family: var(--font-handwritten);
  font-size: 1.6rem;
  color: var(--coconut-brown);
  margin-bottom: 0.15rem;
}

.team-card__nickname {
  font-size: 0.95rem;
  color: var(--ocean-blue);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-card__quote {
  font-style: italic;
  color: #666;
  font-size: 0.92rem;
  line-height: 1.55;
  position: relative;
  padding: 0 0.5rem;
}

.team-card__quote::before {
  content: "❝";
  font-size: 1.6rem;
  color: var(--palm-light);
  position: absolute;
  top: -0.5rem;
  left: -0.3rem;
}

/* ── Gallery ─────────────────────────────────────────────── */
.gallery-masonry {
  columns: 1;
  column-gap: 1rem;
}

@media (min-width: 640px) {
  .gallery-masonry { columns: 2; }
}

@media (min-width: 1024px) {
  .gallery-masonry { columns: 3; }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.35s ease;
}

.gallery-item:hover { transform: scale(1.02); }

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: var(--radius-card);
  transition: filter 0.4s ease, opacity 0.6s ease;
  background: var(--sand-beige);
  min-height: 180px;
}

.gallery-item img.lazy-placeholder {
  filter: blur(12px);
  opacity: 0.6;
}

.gallery-item img.lazy-loaded {
  filter: blur(0);
  opacity: 1;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1rem 0.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ── Locket Widget Section ───────────────────────────────── */
.locket-section {
  position: relative;
  overflow: hidden;
}

.locket-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.locket-logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #FFD700, #FF6B6B, #FF69B4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.locket-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .locket-feed { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .locket-feed { grid-template-columns: repeat(3, 1fr); }
}

.locket-widget {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s ease;
}

.locket-widget:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.locket-widget__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.locket-widget__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.1) 35%,
    transparent 60%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

.locket-widget__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.locket-widget__sender-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  object-fit: cover;
}

.locket-widget__sender-name {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.locket-widget__time {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.locket-widget__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.locket-widget__caption {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  display: inline-block;
  align-self: flex-start;
}

.locket-widget__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.locket-widget__heart-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  border-radius: 50px;
  padding: 0.4rem 0.75rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.locket-widget__heart-btn:hover {
  background: rgba(255, 92, 138, 0.5);
  transform: scale(1.08);
}

.locket-widget__heart-btn.hearted {
  background: rgba(255, 92, 138, 0.6);
}

.locket-widget__heart-btn i {
  transition: transform 0.3s ease;
}

.locket-widget__heart-btn.hearted i {
  transform: scale(1.2);
}

/* Double-tap heart animation */
.locket-widget__big-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 5rem;
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.locket-widget__big-heart.animate {
  animation: bigHeart 0.8s ease-out forwards;
}

@keyframes bigHeart {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  20% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 1;
  }
  40% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
  }
}

/* Locket phone mockup frame */
.locket-phone-frame {
  position: relative;
  max-width: 380px;
  margin: 0 auto 3rem;
  padding: 12px;
  background: #1a1a2e;
  border-radius: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.locket-phone-frame__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1a1a2e;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.locket-phone-frame__screen {
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9 / 16;
  background: #000;
}

.locket-phone-frame__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.locket-phone-frame__ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 1.25rem 1.5rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5) 0%,
    transparent 40%,
    transparent 70%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.locket-phone-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.locket-phone-topbar__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}

.locket-phone-topbar__info {
  color: #fff;
  text-align: left;
}

.locket-phone-topbar__name {
  font-size: 0.85rem;
  font-weight: 700;
}

.locket-phone-topbar__time {
  font-size: 0.65rem;
  opacity: 0.7;
}

.locket-phone-bottombar {
  text-align: center;
}

.locket-phone-bottombar__caption {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.locket-phone-bottombar__actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.locket-phone-bottombar__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.locket-phone-bottombar__btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}

/* Locket carousel slider */
.locket-carousel {
  position: relative;
  overflow: hidden;
}

.locket-carousel__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem 0 2rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.locket-carousel__track::-webkit-scrollbar {
  display: none;
}

.locket-carousel__item {
  flex: 0 0 280px;
  scroll-snap-align: center;
}

@media (max-width: 640px) {
  .locket-carousel__item {
    flex: 0 0 85vw;
  }
}

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox.active img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.lightbox-caption {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 16px;
  border-radius: 20px;
  font-family: var(--font-handwritten);
  font-size: 1.4rem;
  text-align: center;
  backdrop-filter: blur(4px);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: linear-gradient(135deg, var(--palm-green) 0%, var(--ocean-deep) 100%);
  color: rgba(255, 255, 255, 0.85);
}

.footer a {
  color: var(--ocean-light);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer a:hover { color: #fff; }

.footer-heart {
  color: var(--sunset-pink);
  animation: heartbeat 1.2s ease-in-out infinite;
  display: inline-block;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
}

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > .reveal {
  transition-delay: calc(var(--i, 0) * 0.1s);
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--coconut-white); }
::-webkit-scrollbar-thumb { background: var(--palm-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--palm-green); }

/* ── Section Coconut Dividers ────────────────────────────── */
.section-divider {
  width: 100%;
  text-align: center;
  padding: 1rem 0;
  font-size: 1.5rem;
  opacity: 0.3;
  letter-spacing: 1rem;
  user-select: none;
}

/* ── Trees Board ──────────────────────────────────── */
.trees-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 0;
}

.tree-owner-container {
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
}

.trees-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
}

@media (min-width: 768px) {
  .trees-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .trees-grid { grid-template-columns: repeat(4, 1fr); }
}

.coconut-tree {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border-radius: 20px;
  padding: 20px 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.coconut-tree:hover {
  transform: translateY(-5px);
}

.coconut-tree.tree-owner {
  background: linear-gradient(to bottom, #f0fdf4, #ffffff);
  border: 2px solid var(--ocean-blue);
  box-shadow: 0 15px 40px rgba(14, 165, 233, 0.2);
}

.coconut-tree-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: -15px;
  position: relative;
  z-index: 1;
}

.coconut-tree.tree-owner .coconut-tree-img {
  width: 220px;
  height: 220px;
}

.coconut-tree-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  position: relative;
}

.coconut-tree-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  object-fit: cover;
}

.coconut-tree.tree-owner .coconut-tree-avatar {
  width: 80px;
  height: 80px;
}

.coconut-tree-name {
  font-weight: bold;
  color: var(--coconut-brown);
  font-size: 1.1rem;
  text-align: center;
}

.coconut-tree.tree-owner .coconut-tree-name {
  font-size: 1.5rem;
}

.btn-toggle-privacy {
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-toggle-privacy.public {
  background: #dcfce7;
  color: #166534;
}

.btn-toggle-privacy.private {
  background: #fee2e2;
  color: #991b1b;
}

.coconut-tree-notes {
  margin-top: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ── Sticky Notes on Tree ──────────────────────────────────── */

.sticky-note {
  position: relative;
  padding: 2rem 1.5rem 1.5rem;
  min-height: 180px;
  border-radius: 2px 2px 2px 2px;
  box-shadow:
    2px 3px 12px rgba(0, 0, 0, 0.12),
    inset 0 0 40px rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s ease;
  cursor: default;
}

.sticky-note:hover {
  transform: rotate(0deg) scale(1.05) !important;
  box-shadow: 4px 6px 24px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* Tape / pin at top */
.sticky-note::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 18px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Folded corner */
.sticky-note::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 22px 22px;
  border-color: transparent transparent rgba(0, 0, 0, 0.06) transparent;
}

.sticky-note__message {
  font-family: var(--font-handwritten);
  font-size: 1.15rem;
  line-height: 1.6;
  color: #333;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.sticky-note__author {
  font-family: var(--font-handwritten);
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.45);
  text-align: right;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.sticky-note__author::before {
  content: "— ";
}

@media (max-width: 480px) {
  .trees-board {
    gap: 1.5rem;
  }
  .trees-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .sticky-note {
    min-height: 140px;
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .sticky-note__message {
    font-size: 1rem;
  }
}

/* ── Edit Mode ──────────────────────────────────────────── */
.edit-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: linear-gradient(135deg, #ff6b6b, #f77f00);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  flex-wrap: wrap;
}

.edit-banner__export {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.edit-banner__export:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Editable fields */
.editable {
  outline: none;
  border: 1.5px dashed transparent;
  border-radius: 6px;
  padding: 2px 6px;
  transition: border-color 0.3s ease, background 0.3s ease;
  min-height: 1.4em;
  cursor: text;
}

.edit-mode .editable:hover {
  border-color: var(--palm-light);
  background: rgba(82, 183, 136, 0.05);
}

.edit-mode .editable:focus {
  border-color: var(--sunset-orange);
  background: rgba(247, 127, 0, 0.05);
  box-shadow: 0 0 0 3px rgba(247, 127, 0, 0.1);
}

/* Placeholder text for empty editable fields */
.editable:empty::after {
  content: attr(data-placeholder);
  color: #bbb;
  font-style: normal;
  font-size: 0.9em;
  font-weight: normal;
  pointer-events: none;
}

/* Clickable avatar */
.lightbox-trigger {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lightbox-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ── Thematic Team Cards ─────────────────────────────────── */
/* 1. LEADER */
.team-card[data-subject="leader"] {
  background: linear-gradient(135deg, #fff0f5 0%, #ffe4e1 100%);
  border: 2px solid #ffb6c1;
  box-shadow: 0 8px 32px rgba(255, 182, 193, 0.4);
}
.team-card[data-subject="leader"]::before {
  background: linear-gradient(90deg, #ff69b4, #ffd700, #ff69b4);
}
.team-card[data-subject="leader"]::after {
  content: "✨";
  position: absolute;
  top: 15px; right: 15px;
  font-size: 1.8rem;
  animation: pulse-text 1s ease-in-out infinite alternate;
}
.team-card[data-subject="leader"] .team-card__avatar {
  border-color: #ff69b4;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
  border-radius: 50%;
  clip-path: none;
}
.team-card[data-subject="leader"] .team-card__role {
  background: linear-gradient(45deg, #ffd700, #ff8c00, #ff69b4);
  color: white;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  animation: pulse-border 2s infinite alternate;
}

/* 2. ENGLISH */
.team-card[data-subject="english"] {
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
  border: 2px solid #cbd5e1;
}
.team-card[data-subject="english"]::before {
  background: linear-gradient(90deg, #00247d, #cf142b, #ffffff);
}
.team-card[data-subject="english"] .team-card__role {
  background: #cf142b;
  color: white;
  box-shadow: 0 2px 8px rgba(207, 20, 43, 0.4);
}
.team-card[data-subject="english"] .team-card__name {
  color: #00247d;
}
.team-card[data-subject="english"] .team-card__avatar {
  border-color: #00247d;
  border-radius: 50%;
  clip-path: none;
}

/* 3. LITERATURE 1 */
.team-card[data-subject="literature-1"] {
  background: #fdf5e6;
  border: 1px dashed #deb887;
}
.team-card[data-subject="literature-1"]::before {
  background: #deb887;
}
.team-card[data-subject="literature-1"] .team-card__name {
  font-family: var(--font-handwritten);
  color: #8b4513;
}
.team-card[data-subject="literature-1"] .team-card__quote {
  color: #a0522d;
}
.team-card[data-subject="literature-1"] .team-card__role {
  background: #8b4513;
  color: #fdf5e6;
}
.team-card[data-subject="literature-1"] .team-card__avatar {
  border-color: #deb887;
  border-radius: 50%;
  clip-path: none;
}

/* 4. IT */
.team-card[data-subject="it"] {
  background: #f0f9ff;
  border: 1px solid #7dd3fc;
  box-shadow: 0 4px 15px rgba(125, 211, 252, 0.2);
}
.team-card[data-subject="it"]::before {
  background: linear-gradient(90deg, #38bdf8, #0284c7);
}
.team-card[data-subject="it"] .team-card__name,
.team-card[data-subject="it"] .team-card__nickname,
.team-card[data-subject="it"] .team-card__quote {
  color: #0c4a6e;
}
.team-card[data-subject="it"] .team-card__role {
  background: #0ea5e9;
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}
.team-card[data-subject="it"] .team-card__avatar {
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
  border-radius: 50%;
  clip-path: none;
}

/* 5. PHYSICS */
.team-card[data-subject="physics"] {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}
.team-card[data-subject="physics"]::before {
  background: linear-gradient(90deg, #00d2ff, #3a7bd5);
}
.team-card[data-subject="physics"] .team-card__name,
.team-card[data-subject="physics"] .team-card__nickname,
.team-card[data-subject="physics"] .team-card__quote {
  color: #e0e0e0;
}
.team-card[data-subject="physics"] .team-card__avatar {
  border-color: #00d2ff;
  box-shadow: 0 0 15px #3a7bd5;
  border-radius: 50%;
  clip-path: none;
}
.team-card[data-subject="physics"] .team-card__role {
  background: #3a7bd5;
  color: white;
  box-shadow: 0 0 10px #00d2ff;
}

/* 6. BIOLOGY */
.team-card[data-subject="biology"] {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
}
.team-card[data-subject="biology"]::before {
  background: #43a047;
}
.team-card[data-subject="biology"] .team-card__avatar {
  border-color: #4caf50;
  border-radius: 50%;
  clip-path: none;
}
.team-card[data-subject="biology"] .team-card__name {
  color: #2e7d32;
}
.team-card[data-subject="biology"] .team-card__role {
  background: #2e7d32;
  color: white;
}

/* 7. CHEMISTRY */
.team-card[data-subject="chemistry"] {
  background: #e0f7fa;
  border: 2px dotted #00bcd4;
}
.team-card[data-subject="chemistry"]::before {
  background: linear-gradient(90deg, #00bcd4, #e91e63);
}
.team-card[data-subject="chemistry"] .team-card__avatar {
  border-color: #00bcd4;
  border-radius: 50%;
  clip-path: none;
}
.team-card[data-subject="chemistry"] .team-card__name {
  color: #00838f;
}
.team-card[data-subject="chemistry"] .team-card__role {
  background: #00bcd4;
  color: white;
}

/* 8. LITERATURE 2 */
.team-card[data-subject="literature-2"] {
  background: #f3e5f5;
  border: 1px double #ce93d8;
}
.team-card[data-subject="literature-2"]::before {
  background: #8e24aa;
}
.team-card[data-subject="literature-2"] .team-card__name {
  color: #6a1b9a;
  font-family: var(--font-handwritten);
}
.team-card[data-subject="literature-2"] .team-card__quote {
  color: #8e24aa;
  font-style: italic;
}
.team-card[data-subject="literature-2"] .team-card__avatar {
  border-color: #ce93d8;
  border-radius: 50%;
  clip-path: none;
}
.team-card[data-subject="literature-2"] .team-card__role {
  background: #8e24aa;
  color: white;
}

/* ── Team Card Details ───────────────────────────────────── */
.team-card__details {
  font-size: 0.9rem;
  color: #555;
  margin-top: 1rem;
  text-align: left;
  padding: 0.8rem;
  background: rgba(0,0,0,0.02);
  border-radius: 8px;
  line-height: 1.6;
}

.team-card[data-subject="physics"] .team-card__details {
  color: #e0e0e0;
  background: rgba(255, 255, 255, 0.08);
}

/* ── Utilities ──────────────────────────────────────────── */
input[type=number].no-spin::-webkit-inner-spin-button, 
input[type=number].no-spin::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number].no-spin {
  appearance: textfield;
  -moz-appearance: textfield;
}

/* ── Gatekeeper Overlay ────────────────────────────────────── */
body.locked {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.gatekeeper-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

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

.gatekeeper-modal {
  background: var(--coconut-white);
  border-radius: 24px;
  width: 100%;
  max-width: 600px;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.gatekeeper-header {
  text-align: center;
  margin-bottom: 2rem;
}

.gatekeeper-header h2 {
  font-family: var(--font-handwritten);
  font-size: 2.5rem;
  color: var(--coconut-brown);
  margin-bottom: 0.5rem;
}

.gatekeeper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.gatekeeper-identity-card {
  background: white;
  border-radius: 16px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.gatekeeper-identity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  border-color: var(--palm-green);
}

.gatekeeper-identity-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.5rem;
  border: 2px solid var(--sand-beige);
}

.gatekeeper-identity-card span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--coconut-brown);
  display: block;
}

.gatekeeper-guest {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #ccc;
}

.btn-guest {
  background: var(--ocean-blue);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 99px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-guest:hover {
  background: #0277bd;
  transform: scale(1.05);
}

.gatekeeper-quiz .quiz-question {
  margin-bottom: 1.5rem;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #eaeaea;
}

.gatekeeper-quiz .quiz-question p {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--coconut-brown);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quiz-option-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.8rem;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: all 0.2s;
}

.quiz-option-label:hover {
  border-color: var(--palm-green);
  background: #f0fdf4;
}

.quiz-option-label input[type="radio"] {
  accent-color: var(--palm-green);
  width: 1.2rem;
  height: 1.2rem;
}

.gatekeeper-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.btn-secondary {
  background: #e2e8f0;
  color: #475569;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 99px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #cbd5e1;
}

.shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* ── Custom Modals (Locket & Note) ────────────────────────── */
.custom-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.custom-modal-content {
  background: white;
  border-radius: 24px;
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  position: relative;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.custom-modal.active .custom-modal-content {
  transform: translateY(0);
}

.custom-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s;
}

.custom-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #334155;
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--palm-green);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.color-picker-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.color-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.color-option input {
  display: none;
}

.color-option:has(input:checked) {
  border-color: #0f172a;
  transform: scale(1.1);
}

body.is-guest .hidden-for-guest {
  display: none !important;
}

/* ── Tutorial ──────────────────────────────────────── */
.tutorial-spotlight {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
  z-index: 100000;
  pointer-events: none;
  transition: all 0.4s ease;
}

.tutorial-tooltip {
  position: absolute;
  background: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 100001;
  max-width: 300px;
  text-align: center;
  color: var(--coconut-brown);
  font-weight: 600;
  transition: all 0.4s ease;
}

.tutorial-tooltip::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;
}


