/* ==========================================================================
   Elephant Pang-Boon Family — Sylva Living Green Theme
   Architecture: Lightweight High-Performance Vanilla CSS
   Optimized for: Mobile 4G/5G, High-DPI screens, Zero GPU lag (No WebGL)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Cinzel:wght@600;700;800&family=Great+Vibes&family=Lexend:wght@200;300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
  /* Design Tokens — Natural Soft Green (Organic Pale Sage & Bamboo Mist) */
  --bg-canvas: #e3ebd9;           /* Natural soft light green canvas */
  --bg-canvas-warm: #d5e2cb;      /* Gentle earthy bamboo-moss green */
  --bg-canvas-light: #eff5ea;     /* Soft matcha-mist highlight */
  --bg-card: #ffffff;             /* Pure card surface */
  
  --ink: #061408;                 /* Deepest Rich Forest Pine (Headings - crisp, highest contrast) */
  --ink-soft: #0b1f0f;            /* Rich deep pine (Subtitles/Lead) */
  --ink-faint: #102614;           /* Solid deep forest moss (Body paragraphs, 100% legibility) */
  --ink-dim: #18331d;             /* Crisp medium-dark pine (Details & captions, never washed out) */
  
  --card-paper: #ffffff;
  --card-ink: #061408;
  --card-label: #0c2710;
  --card-border: rgba(11, 26, 14, 0.12);
  
  --accent-leaf: #39662e;         /* Vibrant living forest leaf */
  --accent-leaf-bright: #497e3c;  /* Fresh leaf highlight */
  --accent-leaf-soft: rgba(57, 102, 46, 0.10);
  --accent-gold: #b38434;         /* Warm Thai teakwood amber */
  --accent-gold-soft: rgba(179, 132, 52, 0.14);
  
  --dock-bg: rgba(255, 255, 255, 0.90);
  --dock-border: rgba(22, 40, 26, 0.12);
  --dock-hover: rgba(57, 102, 46, 0.08);
  
  /* Legacy alias mappings for seamless component compatibility */
  --bg-moss-deep: var(--bg-canvas);
  --bg-moss-base: var(--bg-canvas-warm);
  --bg-moss-light: #cde0c2;
  --bg-moss-floor: #bfd4b3;

  --ease-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-pill: 999px;
  --radius-card: 32px;
  --radius-inner: 22px;
}

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

html {
  background-color: var(--bg-canvas);
  color: var(--ink-faint);
  font-family: 'Plus Jakarta Sans', 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(circle at 12% 20%, rgba(57, 102, 46, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 88% 60%, rgba(85, 136, 75, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(57, 102, 46, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.6;
  color: var(--ink-faint);
}

/* Typography Classes */
.font-heading {
  font-family: 'Lexend', 'Sarabun', sans-serif;
}

h1, h2, h3, h4 {
  font-family: 'Lexend', 'Sarabun', sans-serif;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   Floating Glass Dock Navigation (Sylva Signature)
   ========================================================================== */
.dock-wrap {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
  padding: 0 16px;
  transition: transform 0.4s var(--ease-smooth);
}

.dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 20px;
  border: 1px solid var(--dock-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 12px 32px rgba(22, 40, 26, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.3s var(--ease-smooth);
}

.dock-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(22, 40, 26, 0.08);
  background: rgba(22, 40, 26, 0.05);
  color: #223724;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.22s var(--ease-smooth);
}

.dock-item:hover {
  color: #0d1e10;
  background: rgba(57, 102, 46, 0.14);
  border-color: rgba(57, 102, 46, 0.28);
  transform: translateY(-1px);
}

.dock-item:active {
  transform: scale(0.96);
}

.dock-item.is-active {
  background: linear-gradient(135deg, #1d3e16, #0e240b) !important;
  border-color: #0e240b !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(14, 36, 11, 0.45), 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  font-weight: 700 !important;
}

.dock-item.is-active span,
.dock-item.is-active [data-i18n] {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.dock-item.is-active .glyph svg {
  stroke: #ffffff !important;
  opacity: 1 !important;
}

.dock-mark {
  width: 40px;
  padding: 0;
  background: rgba(22, 40, 26, 0.05);
  border-color: rgba(22, 40, 26, 0.1);
  color: #203523;
  border-radius: 14px;
}

.dock-mark:hover {
  background: rgba(57, 102, 46, 0.14);
  color: #16281a;
}

.dock-mark.is-active {
  background: linear-gradient(135deg, #1d3e16, #0e240b) !important;
  border-color: #0e240b !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(14, 36, 11, 0.45) !important;
}

.dock-mark svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.dock-item .glyph {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.dock-item .glyph svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Language Pill Switcher in Dock */
.dock-lang {
  display: inline-flex;
  align-items: center;
  background: rgba(22, 40, 26, 0.06);
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
  border: 1px solid rgba(22, 40, 26, 0.12);
}

.lang-pill-btn {
  padding: 4px 10px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  color: #243e28;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.lang-pill-btn:hover {
  color: #0b1a0e;
  background: rgba(22, 40, 26, 0.08);
}

.lang-pill-btn.active {
  background: linear-gradient(135deg, #24461c, #162f11) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(22, 47, 17, 0.38);
}

/* Enter/Book CTA Pill in Dock */
.dock-item--cta {
  background: linear-gradient(135deg, #39662e, #27471f);
  border-color: #39662e;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(57, 102, 46, 0.3);
}

.dock-item--cta:hover {
  background: linear-gradient(135deg, #467939, #2f5425);
  box-shadow: 0 6px 18px rgba(57, 102, 46, 0.45);
}

.dock-item--cta.is-active {
  background: linear-gradient(135deg, #1d3e16, #0e240b) !important;
  border-color: #0e240b !important;
  box-shadow: 0 4px 18px rgba(11, 26, 10, 0.55), 0 0 0 2px rgba(82, 153, 64, 0.5) !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   Hero Section (Cinematic Sanctuary & Sylva Atmospheric Layout)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #1b261d;
  padding: 120px 5% 80px;
}

/* Hero Multi-Layer Backgrounds (Zero GPU overhead, super fast) */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0 -6% 0 0;
  background-image: url('images/hero_home.jpg');
  background-size: cover;
  background-position: var(--hero-bg-pos, center 36%);
  filter: brightness(0.70) contrast(1.08) saturate(0.96);
  transform: scale(var(--hero-bg-scale, 1.28)) translate(var(--hero-bg-trans-x, 0%), var(--hero-bg-trans-y, 0%));
  transition: opacity 0.8s ease, filter 0.8s ease, transform 0.2s ease, background-position 0.2s ease;
}

/* Mode: Moss Sanctuary Atmosphere vs Pure Elephant View */
.hero.mode-moss .hero-bg-image {
  opacity: 0.52;
  filter: brightness(0.55) contrast(1.15) saturate(0.88);
}

.hero.mode-elephant .hero-bg-image {
  opacity: 0.95;
  filter: brightness(0.85) contrast(1.10) saturate(1.12);
}

/* Ambient Radial Light Pool (Smooth transition into Natural Soft Green canvas) */
.hero-light-pool {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 30% 80%, rgba(227, 235, 217, 0.18) 0%, rgba(227, 235, 217, 0) 70%),
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(15, 22, 16, 0.45) 0%, rgba(15, 22, 16, 0) 65%),
    linear-gradient(180deg, rgba(20, 28, 21, 0.60) 0%, rgba(20, 28, 21, 0.12) 48%, var(--bg-canvas) 100%);
}

.hero-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

/* Left Column: Headlines, Lead, Liquid Button, Controls, Counters */
.hero-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Theme Variant Switcher Widget */
.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(11, 22, 13, 0.88);
  border: 1px solid rgba(196, 242, 179, 0.45);
  font-size: 12px;
  font-weight: 700;
  color: #dcfce7;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-pill-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #72e057;
  box-shadow: 0 0 8px #72e057;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(11, 22, 13, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.view-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* Headline Styling */
.hero-headline {
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
}

.hero-headline .highlight {
  font-weight: 400;
  background: linear-gradient(180deg, #ffffff 40%, #e2ecd9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-headline .subline {
  display: block;
  font-size: 0.65em;
  font-weight: 600;
  color: #dcfce7;
  margin-top: 8px;
  -webkit-text-fill-color: initial;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

/* Lede Paragraph */
.hero-lede {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  max-width: 620px;
  font-weight: 400;
}

/* Actions Row: Explore Pill + Play Video Button */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Pure CSS Liquid-Metal Explore Button (Ultra Fast, No WebGL) */
.liquid-pill-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 36px 16px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 48%, rgba(0, 0, 0, 0.12) 100%),
    rgba(28, 33, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 8px 24px rgba(10, 14, 8, 0.4),
    0 1px 2px rgba(255, 255, 255, 0.18) inset,
    0 -1px 2px rgba(0, 0, 0, 0.3) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: all 0.3s var(--ease-smooth);
}

.liquid-pill-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 220%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 65%);
  opacity: 0;
  transform: rotate(25deg);
  transition: opacity 0.4s ease, transform 0.6s ease;
  pointer-events: none;
}

.liquid-pill-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow:
    0 14px 34px rgba(10, 14, 8, 0.5),
    0 0 20px rgba(137, 177, 108, 0.32);
}

.liquid-pill-btn:hover::before {
  opacity: 1;
  transform: rotate(25deg) translateY(10%);
}

.liquid-pill-btn .btn-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.liquid-pill-btn .btn-icon svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
}

/* Play Video Ring Button */
.play-action-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.play-ring-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(30, 35, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  transition: all 0.3s var(--ease-smooth);
}

.play-ring-btn::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 0.6;
  animation: ripple-ring 2.8s infinite var(--ease-smooth);
}

@keyframes ripple-ring {
  0% { transform: scale(0.92); opacity: 0.7; }
  60% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

.play-action-wrap:hover .play-ring-btn {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.08);
}

.play-action-label {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Video Edit Badge (Visible only in CMS Edit Mode) */
.video-edit-badge {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: #e74c3c;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 14px rgba(231, 76, 60, 0.45);
  cursor: pointer;
  transition: all 0.2s ease;
  animation: pulseEditBadge 1.8s infinite alternate ease-in-out;
}

.video-edit-badge:hover {
  background: #ff5e4d;
  transform: scale(1.05);
}

@keyframes pulseEditBadge {
  from { transform: scale(0.96); box-shadow: 0 4px 10px rgba(231, 76, 60, 0.35); }
  to { transform: scale(1.04); box-shadow: 0 6px 18px rgba(231, 76, 60, 0.6); }
}

body.cms-edit-mode .video-edit-badge {
  display: inline-flex;
}

body.cms-edit-mode .play-action-wrap {
  border: 1.5px dashed #e74c3c;
  background: rgba(231, 76, 60, 0.12);
  border-radius: var(--radius-pill);
  padding: 4px 14px 4px 6px;
  box-shadow: 0 0 16px rgba(231, 76, 60, 0.25);
  cursor: pointer;
}

body.cms-edit-mode .elephant-video-pill {
  border: 1.5px dashed #e74c3c !important;
  background: rgba(231, 76, 60, 0.18) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(231, 76, 60, 0.3) !important;
  cursor: pointer !important;
}

/* Hero Conservation Telemetry Counters */
.hero-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  max-width: 680px;
}

.counter-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.counter-stat .num {
  font-family: 'Lexend', sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.counter-stat .num span {
  color: #72e057;
}

.counter-stat .label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.90);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
  line-height: 1.35;
}

/* ==========================================================================
   Right Column: Sylva-Styled Floating Glass Cards
   ========================================================================== */
.hero-cards-cluster {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

/* Sylva Glass Card */
.sylva-card {
  position: relative;
  background: var(--card-paper);
  border-radius: var(--radius-card);
  padding: 24px;
  color: var(--card-ink);
  box-shadow: 
    0 24px 54px rgba(12, 16, 10, 0.35),
    0 2px 6px rgba(255, 255, 255, 0.5) inset;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  max-width: 440px;
}

.sylva-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 32px 70px rgba(12, 16, 10, 0.48),
    0 2px 8px rgba(255, 255, 255, 0.7) inset;
}

.sylva-card--ethos {
  align-self: flex-start;
  width: 100%;
}

.sylva-card--giant {
  align-self: flex-end;
  width: 100%;
  margin-top: -16px;
}

/* Portal Photo Window */
.portal-window {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: var(--radius-inner);
  overflow: hidden;
  background: var(--bg-canvas-warm);
  margin-bottom: 18px;
}

.portal-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.8s var(--ease-out);
}

/* Center elephant & river splash nicely in the frame */
.sylva-card--ethos .portal-window img {
  object-position: center 80%;
  transform-origin: center 80%;
}

.sylva-card:hover .portal-window img {
  transform: scale(1.08);
}

.portal-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(26, 30, 24, 0.68);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sylva-card-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.sylva-card-info .label {
  font-size: 12px;
  font-weight: 700;
  color: #0b240e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.sylva-card-info h3 {
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--card-ink);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.sylva-card-info p {
  font-size: 13px;
  color: #182f1c;
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.45;
}

/* Circular Interactive Knob Button */
.card-knob-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(18, 22, 16, 0.15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #383e32;
  transition: all 0.3s var(--ease-out);
}

.card-knob-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  transition: transform 0.3s ease;
}

.sylva-card:hover .card-knob-btn {
  transform: rotate(45deg) scale(1.06);
  background: var(--ink);
  color: #ffffff;
}

/* ==========================================================================
   Section Common Styling
   ========================================================================== */
main,
.section {
  position: relative;
  z-index: 2;
  background-color: var(--bg-canvas);
  padding: 100px 5%;
  max-width: 1520px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  border-radius: var(--radius-pill);
  background: #143312; /* Deep solid pine evergreen */
  border: 1.5px solid #234f20;
  color: #ffffff !important; /* Crisp pure white text, 100% readable */
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(20, 51, 18, 0.22);
  transition: all 0.25s ease;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #061408; /* Deepest black-pine ink */
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #0d2412; /* Deep forest pine */
  line-height: 1.68;
  font-weight: 500;
}

/* ==========================================================================
   Section: Sanctuary Story & Ethical Charter
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.story-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.story-lead {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.55;
  color: #061408;
}

.story-body {
  color: #0e2212;
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 450;
}

.charter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.charter-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.charter-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #143312;
  border: 1.5px solid #234f20;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 3px 8px rgba(20, 51, 18, 0.20);
}

.charter-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #061408;
  margin-bottom: 4px;
}

.charter-text p {
  font-size: 0.98rem;
  color: #122816;
  line-height: 1.6;
  font-weight: 450;
}

.story-media-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(22, 40, 26, 0.12);
  border: 1px solid rgba(22, 40, 26, 0.08);
}

.story-media-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.story-media-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding: 18px 24px;
  border-radius: var(--radius-inner);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(22, 40, 26, 0.10);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(22, 40, 26, 0.10);
}

.story-media-badge h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0b1a0e;
  margin-bottom: 4px;
}

.story-media-badge p {
  font-size: 0.92rem;
  color: #1a331c;
  font-weight: 500;
}

/* ==========================================================================
   Section: Meet The Herd (Elephant Roster)
   ========================================================================== */
.elephants-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.elephant-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(22, 40, 26, 0.08);
  box-shadow: 0 16px 44px rgba(22, 40, 26, 0.06);
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
  display: flex;
  flex-direction: column;
}

.elephant-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(22, 40, 26, 0.12);
  border-color: rgba(57, 102, 46, 0.24);
}

.elephant-card-media {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--bg-canvas-warm);
}

.elephant-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.elephant-card:hover .elephant-card-media img {
  transform: scale(1.06);
}

.elephant-age-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: #0b1a0e;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(11, 26, 14, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.elephant-card-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.elephant-name {
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.elephant-personality {
  font-size: 12px;
  color: #996212;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.elephant-bio {
  font-size: 0.95rem;
  color: var(--ink-faint);
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.elephant-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(22, 40, 26, 0.07);
}

.elephant-story-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #0c240b;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}

.elephant-story-btn:hover {
  color: #000000;
  transform: translateX(2px);
}

.elephant-video-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1.5px solid #143312;
  color: #0e290d;
  font-size: 12px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.elephant-video-pill:hover {
  background: #143312;
  color: #ffffff;
  border-color: #143312;
}

/* ==========================================================================
   Section: Sanctuary Eco Programs
   ========================================================================== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}

.program-card {
  background: #ffffff;
  border: 1px solid rgba(22, 40, 26, 0.09);
  border-radius: var(--radius-card);
  padding: 34px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease-smooth);
  position: relative;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 16px 40px rgba(22, 40, 26, 0.06);
}

.program-card:hover {
  transform: translateY(-5px);
  border-color: rgba(57, 102, 46, 0.35);
  box-shadow: 0 22px 48px rgba(22, 40, 26, 0.11);
}

.program-card.featured {
  border-color: rgba(179, 132, 52, 0.35);
  background: 
    linear-gradient(180deg, rgba(254, 252, 245, 0.9) 0%, #ffffff 35%),
    #ffffff;
  box-shadow: 0 18px 44px rgba(179, 132, 52, 0.10);
}

/* Selected Program State (Preserving Phase 1 behavior with Sylva Design) */
.program-card.selected {
  border-color: #39662e !important;
  background: #f4f8f1 !important;
  box-shadow: 
    0 0 0 2px #39662e,
    0 20px 48px rgba(57, 102, 46, 0.18) !important;
  transform: translateY(-3px);
}

.program-selected-tag {
  display: none;
  position: absolute;
  top: -14px;
  right: 24px;
  background: #39662e;
  color: #ffffff;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(57, 102, 46, 0.35);
  z-index: 10;
  align-items: center;
  gap: 6px;
  animation: badgePop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes badgePop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.program-card.selected .program-selected-tag {
  display: inline-flex;
}

.program-card.selected .btn-book-now {
  background: #39662e;
  color: #ffffff;
  font-weight: 700;
  border-color: #39662e;
  box-shadow: 0 6px 20px rgba(57, 102, 46, 0.35);
}

.program-badge {
  position: absolute;
  top: 20px;
  right: 24px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: #b38434;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.program-duration {
  font-size: 13px;
  font-weight: 800;
  color: #0b2b09;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.program-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #061408;
  margin-bottom: 12px;
}

.program-desc {
  font-size: 0.98rem;
  color: #122816;
  line-height: 1.65;
  margin-bottom: 24px;
  font-weight: 450;
}

.program-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.program-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  color: #0c2110;
  font-weight: 550;
}

.program-features li svg {
  width: 16px;
  height: 16px;
  stroke: #143312;
  fill: none;
  stroke-width: 2.5;
  flex-shrink: 0;
}

.program-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(22, 40, 26, 0.08);
}

.program-price {
  display: flex;
  flex-direction: column;
}

.price-val {
  font-family: 'Lexend', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ink);
}

.price-sub {
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.btn-book-now {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: rgba(11, 26, 14, 0.08);
  color: #0b1a0e;
  border: 1px solid rgba(11, 26, 14, 0.20);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
}

.btn-book-now:hover {
  background: #39662e;
  color: #ffffff;
  border-color: #39662e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(57, 102, 46, 0.28);
}

/* ==========================================================================
   Pricing Structure (Rack Rates) New Card Badges, Icons & Dark Luxury Theme
   ========================================================================== */
.rate-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #fef3c7;
  color: #d97706;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.12);
}

.rate-card-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.rate-card-icon--crown {
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  color: #f59e0b !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.22) !important;
}

.rate-group-tag {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4b5563;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rate-group-tag--gold {
  color: #f59e0b !important;
}

.program-card .program-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.program-card .price-val {
  font-family: 'Lexend', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: #c77a16;
  line-height: 1.15;
}

.program-card .price-sub {
  font-size: 13px;
  color: #64748b;
  font-weight: 550;
  text-transform: none;
  letter-spacing: normal;
  margin-top: 4px;
}

/* Card 3: Deep Dark Luxury Private Group Card */
.program-card--private {
  background: #0f172a !important;
  border: 1px solid rgba(212, 169, 100, 0.3) !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35) !important;
}

.program-card--private:hover {
  border-color: rgba(245, 158, 11, 0.6) !important;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.5) !important;
  transform: translateY(-5px);
}

.program-card--private .program-title {
  color: #ffffff !important;
}

.program-card--private .program-desc {
  color: #cbd5e1 !important;
}

.program-card--private .program-features li {
  color: #e2e8f0 !important;
}

.program-card--private .program-features li svg {
  stroke: #f59e0b !important;
}

.program-card--private .program-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.program-card--private .price-val {
  color: #f59e0b !important;
}

.program-card--private .price-sub {
  color: #94a3b8 !important;
}

.program-card--private .btn-book-now {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #f59e0b !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
}

.program-card--private .btn-book-now:hover {
  background: #f59e0b !important;
  color: #0f172a !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35) !important;
}

/* Selected state for Private card */
.program-card--private.selected {
  border-color: #f59e0b !important;
  background: #131d31 !important;
  box-shadow: 
    0 0 0 2px #f59e0b,
    0 22px 50px rgba(245, 158, 11, 0.28) !important;
}

.program-card--private.selected .btn-book-now {
  background: #f59e0b !important;
  color: #0f172a !important;
  font-weight: 700;
  border-color: #f59e0b !important;
}

/* ==========================================================================
   Section: Direct Booking Engine (Phase 2 Fast Reservation)
   ========================================================================== */
.booking-section-wrap {
  background: 
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(57, 102, 46, 0.06) 0%, transparent 70%),
    #ffffff;
  border: 1px solid rgba(22, 40, 26, 0.09);
  border-radius: var(--radius-card);
  padding: 60px 8%;
  box-shadow: 0 28px 70px rgba(22, 40, 26, 0.08);
  margin-top: 40px;
}

.booking-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0b1a0e;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.field-input, .field-select, .field-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--bg-canvas-light);
  border: 1.5px solid rgba(22, 40, 26, 0.12);
  color: #0b1a0e;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: #39662e;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(57, 102, 46, 0.18);
}

.field-select option {
  background: #ffffff;
  color: #0b1a0e;
}

/* Availability Status Indicator Badge */
.availability-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  transition: all 0.25s ease;
  line-height: 1.4;
}
.availability-status-pill.open {
  background: rgba(46, 125, 50, 0.1);
  border: 1px solid rgba(46, 125, 50, 0.35);
  color: #1b5e20;
}
.availability-status-pill.busy {
  background: rgba(230, 81, 0, 0.1);
  border: 1px solid rgba(230, 81, 0, 0.35);
  color: #b73e00;
}
.availability-status-pill.full {
  background: rgba(198, 40, 40, 0.1);
  border: 1px solid rgba(198, 40, 40, 0.35);
  color: #b71c1c;
}
.availability-status-pill.closed {
  background: rgba(97, 97, 97, 0.12);
  border: 1px solid rgba(97, 97, 97, 0.35);
  color: #424242;
}
.availability-status-pill .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.availability-status-pill.open .pill-dot { background: #2e7d32; box-shadow: 0 0 6px rgba(46,125,50,0.6); }
.availability-status-pill.busy .pill-dot { background: #e65100; box-shadow: 0 0 6px rgba(230,81,0,0.6); }
.availability-status-pill.full .pill-dot { background: #c62828; box-shadow: 0 0 6px rgba(198,40,40,0.6); }
.availability-status-pill.closed .pill-dot { background: #616161; }

/* Dynamic Live Price & Reservation Summary Banner */
.booking-price-banner {
  background: 
    radial-gradient(ellipse 70% 80% at 80% 50%, rgba(57, 102, 46, 0.08) 0%, transparent 70%),
    #f4f3ea;
  border: 1.5px solid rgba(57, 102, 46, 0.24);
  border-radius: var(--radius-inner);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 10px 28px rgba(22, 40, 26, 0.06);
  transition: all 0.35s ease;
  margin-bottom: 8px;
}

.price-banner-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.price-banner-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a4a15;
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-banner-title {
  font-family: 'Lexend', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #0b1a0e;
  line-height: 1.25;
}

.price-banner-details {
  font-size: 13px;
  color: #142a17;
  font-weight: 500;
  margin-top: 2px;
}

.price-banner-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.price-banner-total-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #1a4218;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.price-banner-amount {
  font-family: 'Lexend', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #11380d;
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease;
}

.price-banner-sub {
  font-size: 11px;
  color: var(--ink-dim);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .booking-price-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }
  .price-banner-right {
    text-align: left;
    align-items: flex-start;
    border-top: 1px solid rgba(22, 40, 26, 0.08);
    padding-top: 14px;
    width: 100%;
  }
  .price-banner-amount {
    font-size: 1.9rem;
  }
}

.btn-submit-booking {
  width: 100%;
  padding: 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #39662e, #24441c);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 28px rgba(57, 102, 46, 0.35);
  transition: all 0.3s var(--ease-smooth);
}

.btn-submit-booking:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(57, 102, 46, 0.45);
  background: linear-gradient(135deg, #447738, #2a4f21);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 80px 5% 40px;
  background: #152217;
  color: #ffffff;
}

.footer-inner {
  max-width: 1520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.94);
  max-width: 420px;
  line-height: 1.65;
  font-size: 0.98rem;
}

.footer-contact-highlight {
  display: none !important; /* ซ่อนไว้ก่อนชั่วคราวตามคำขอของผู้ใช้ */
  margin-top: 16px;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-pill);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #a3f78b;
  transform: translateX(3px);
}

.footer-bottom {
  max-width: 1520px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #ffffff;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.footer-bottom > div {
  color: rgba(255, 255, 255, 0.94);
}

/* ==========================================================================
   Video / Story Modal Component
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 18, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 860px;
  background: #ffffff;
  border: 1px solid rgba(22, 40, 26, 0.12);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(22, 40, 26, 0.28);
  transform: scale(0.94);
  transition: transform 0.3s var(--ease-out);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(22, 40, 26, 0.7);
  color: #ffffff;
  display: grid;
  place-items: center;
  z-index: 10;
  font-size: 18px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.modal-close-btn:hover {
  background: var(--ink);
  transform: scale(1.08);
}

.modal-video-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.modal-video-box iframe, .modal-video-box video {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   Edit YouTube Link Modal Dialog (CMS Admin Mode)
   ========================================================================== */
.modal-edit-video-box {
  padding: 34px 30px;
  color: var(--ink);
  background: #ffffff;
  border-radius: var(--radius-card);
}

.modal-edit-video-box .edit-video-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.modal-edit-video-box .edit-video-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.3);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #e74c3c;
  box-shadow: 0 8px 22px rgba(231, 76, 60, 0.15);
  flex-shrink: 0;
}

.modal-edit-video-box h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--ink);
  margin: 0 0 4px 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.modal-edit-video-box p.edit-subtitle {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin: 0;
  line-height: 1.45;
}

.modal-edit-video-box .edit-video-input-group {
  margin: 20px 0 16px 0;
}

.modal-edit-video-box label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent-leaf);
  margin-bottom: 8px;
}

.modal-edit-video-box input[type="text"] {
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--bg-canvas);
  border: 1.5px solid rgba(22, 40, 26, 0.16);
  color: var(--ink);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.modal-edit-video-box input[type="text"]:focus {
  border-color: var(--accent-leaf);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(57, 102, 46, 0.18);
}

.modal-edit-video-box .url-hint {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 8px;
  line-height: 1.4;
}

.modal-edit-video-box .edit-video-preview-wrap {
  margin: 18px 0 20px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(22, 40, 26, 0.12);
}

.modal-edit-video-box .preview-header {
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-leaf);
  background: var(--bg-canvas-warm);
  border-bottom: 1px solid rgba(22, 40, 26, 0.08);
}

.modal-edit-video-box .preview-frame-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 240px;
  background: #000000;
}

.modal-edit-video-box .preview-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-edit-video-box .edit-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.modal-edit-video-box .btn-cancel-video {
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--bg-canvas-warm);
  color: var(--ink-soft);
  border: 1px solid rgba(22, 40, 26, 0.15);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-edit-video-box .btn-cancel-video:hover {
  background: #e2dfd2;
  transform: translateY(-1px);
}

.modal-edit-video-box .btn-save-video {
  padding: 11px 26px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #39662e, #294c20);
  color: #ffffff;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(57, 102, 46, 0.3);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.modal-edit-video-box .btn-save-video:hover {
  background: linear-gradient(135deg, #447738, #305725);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(57, 102, 46, 0.45);
}

/* ==========================================================================
   Responsive Adaptations (Mobile-First Polish)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-stage {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-top: 20px;
  }
  
  .hero-cards-cluster {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .sylva-card {
    max-width: 100%;
    flex: 1 1 calc(50% - 12px);
  }
  
  .sylva-card--giant {
    margin-top: 0;
  }
  
  .story-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Screens (Phones & Small Tablets) */
@media (max-width: 768px) {
  /* Keep backdrop strictly inside hero section so it never leaks onto following sections */
  .hero {
    position: relative;
    overflow: hidden;
    min-height: auto;
    padding: calc(76px + env(safe-area-inset-top, 0px)) 5% 42px;
  }

  .hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: clamp(580px, 86vh, 680px) !important;
    max-height: 90vh !important;
    overflow: hidden;
    z-index: 0;
  }

  /* ELEPHANT BACKGROUND ON MOBILE:
     Photographer + Elephant Herd in full dimensional harmony.
     Positions the photographer on the left in the bright clearing, 
     the meadow in the middle, and the majestic elephant on the right.
     Gives the viewer a true deep perspective just like on desktop! */
  .hero-bg-image {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    background-image: url('images/hero_home.jpg');
    background-size: cover !important;
    background-position: var(--hero-bg-pos-x, 45%) 76% !important;
    background-repeat: no-repeat !important;
    transform-origin: center center !important;
    transform: none !important;
    filter: brightness(0.92) contrast(1.08) saturate(1.15) !important;
    opacity: 0.98 !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    transition: opacity 0.6s ease, filter 0.6s ease;
  }

  .hero.mode-elephant .hero-bg-image {
    opacity: 1 !important;
    filter: brightness(0.94) contrast(1.10) saturate(1.18) !important;
  }

  .hero.mode-moss .hero-bg-image {
    opacity: 0.82 !important;
    filter: brightness(0.82) contrast(1.12) saturate(1.02) !important;
  }

  /* Precision Light Pool Scrim on Mobile:
     Dark at top to guarantee white headline legibility,
     Crystal clear in the center where the elephants and photographer are,
     Smooth natural mist fade into canvas green at the bottom. */
  .hero-light-pool {
    position: absolute !important;
    inset: 0 !important;
    background:
      radial-gradient(circle at 55% 55%, rgba(255, 255, 255, 0.05) 0%, transparent 65%),
      linear-gradient(180deg, 
        rgba(8, 16, 10, 0.70) 0%, 
        rgba(8, 16, 10, 0.35) 20%, 
        rgba(8, 16, 10, 0.06) 42%, 
        rgba(8, 16, 10, 0.00) 65%, 
        rgba(14, 24, 16, 0.32) 84%, 
        var(--bg-canvas) 100%) !important;
    pointer-events: none;
  }

  .hero-stage {
    gap: 24px;
  }

  .hero-main {
    gap: 18px;
  }

  .hero-badge-row {
    gap: 8px;
    flex-wrap: wrap;
  }

  .hero-pill-badge {
    padding: 5px 12px;
    font-size: 11px;
    background: rgba(10, 20, 12, 0.82);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(196, 242, 179, 0.5);
  }

  .view-toggle-btn {
    padding: 5px 12px;
    font-size: 11px;
    background: rgba(10, 20, 12, 0.82);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(196, 242, 179, 0.5);
  }

  .hero-headline {
    font-size: clamp(1.85rem, 6.8vw, 2.35rem);
    line-height: 1.18;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9);
  }

  .hero-headline .subline {
    font-size: 0.88em;
    color: #cbf5bd;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
  }

  .hero-lede {
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.8);
    max-width: 100%;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 2px;
  }

  .liquid-pill-btn {
    padding: 12px 22px 12px 16px;
    font-size: 13.5px;
    width: 100%;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(22, 47, 17, 0.5);
  }

  .play-action-wrap {
    width: 100%;
    justify-content: center;
    padding: 6px 14px;
    background: rgba(10, 20, 12, 0.45);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.16);
  }

  /* Compact, semi-transparent 3-column stats ribbon:
     Leaves the elephant's body and forest ground clearly visible! */
  .hero-counters {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 12px 8px !important;
    background: rgba(10, 20, 12, 0.40) !important;
    border: 1px solid rgba(196, 242, 179, 0.30) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    margin-top: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }

  .counter-stat {
    text-align: center;
    gap: 2px;
  }

  .counter-stat .num {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  }

  .counter-stat .num span {
    color: #83f76f !important;
  }

  .counter-stat .label {
    font-size: 0.68rem !important;
    line-height: 1.25 !important;
    color: rgba(240, 248, 238, 0.92) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  }

  .sylva-card {
    flex: 1 1 100%;
    padding: 20px;
    border-radius: 28px;
  }

  .portal-window {
    height: 168px;
  }

  .sylva-card-info h3 {
    font-size: 1.25rem;
  }

  /* Top Floating Dock Navigation on Mobile (Moved to Top) */
  .dock-wrap {
    top: calc(12px + env(safe-area-inset-top, 0px));
    bottom: auto;
    padding: 0 12px;
    width: 100%;
  }
  
  .dock {
    width: 100%;
    max-width: 440px;
    justify-content: space-around;
    border-radius: var(--radius-pill);
    gap: 2px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(22, 40, 26, 0.12);
    box-shadow: 0 8px 30px rgba(22, 40, 26, 0.16);
  }
  
  .dock-item {
    height: 38px;
    padding: 0 10px;
    font-size: 11px;
    border-radius: 12px;
  }
  
  .dock-item span:not(.glyph) {
    display: none;
  }
  
  .dock-item .glyph {
    margin: 0;
    width: 18px;
    height: 18px;
  }

  .dock-mark {
    width: 38px;
  }

  .dock-lang {
    padding: 2px;
    border-radius: 10px;
  }

  .lang-pill-btn {
    padding: 3px 7px;
    font-size: 10px;
  }
  
  .booking-form-grid {
    grid-template-columns: 1fr;
  }

  .booking-section-wrap {
    padding: 40px 6%;
    border-radius: 28px;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer {
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  }
}

/* ==========================================================================
   E-Certificate Showcase & Interactive Diploma Engine (Checkpoint 15 / TOR Section 6)
   ========================================================================== */
.e-cert-section {
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 50% 10%, rgba(212, 169, 100, 0.12) 0%, transparent 70%),
              radial-gradient(ellipse 70% 50% at 80% 90%, rgba(137, 177, 108, 0.15) 0%, transparent 65%),
              linear-gradient(165deg, #132417 0%, #0d1710 100%);
  color: #f1f5f0;
  border-top: 1px solid rgba(212, 169, 100, 0.25);
  border-bottom: 1px solid rgba(137, 177, 108, 0.2);
  padding: 100px 5% 110px;
  overflow: hidden;
}

.e-cert-container {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.e-cert-info-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.e-cert-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.e-cert-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(212, 169, 100, 0.14);
  border: 1px solid rgba(212, 169, 100, 0.45);
  border-radius: 999px;
  color: #f2e1bd;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cert-sparkle {
  color: #d4a964;
}

.cert-auto-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(137, 177, 108, 0.16);
  border: 1px solid rgba(137, 177, 108, 0.4);
  border-radius: 999px;
  color: #a8cf88;
  font-size: 0.8rem;
  font-weight: 500;
}

.e-cert-heading {
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 300;
  line-height: 1.25;
  color: #ffffff;
  margin: 0;
}

.e-cert-heading strong,
.e-cert-heading .highlight {
  font-weight: 600;
  color: #f2e1bd;
}

.e-cert-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #c9d8c6;
  margin: 0;
}

.e-cert-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.e-cert-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 14px 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.e-cert-feat-item:hover {
  transform: translateX(4px);
  border-color: rgba(212, 169, 100, 0.35);
  background: rgba(212, 169, 100, 0.06);
}

.e-cert-feat-icon {
  font-size: 1.4rem;
  line-height: 1;
  padding: 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.e-cert-feat-item strong {
  display: block;
  font-size: 0.96rem;
  color: #ffffff;
  margin-bottom: 3px;
}

.e-cert-feat-item p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #a4bca2;
  margin: 0;
}

/* Customizer Box */
.e-cert-customizer-box {
  background: rgba(10, 18, 12, 0.85);
  border: 1px solid rgba(212, 169, 100, 0.35);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  margin-top: 4px;
}

.customizer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #f2e1bd;
  font-weight: 600;
  font-size: 0.92rem;
}

.customizer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.customizer-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.customizer-field label {
  font-size: 0.76rem;
  color: #a0baa0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.customizer-input,
.customizer-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 9px 12px;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.customizer-select {
  cursor: pointer;
}

.customizer-select option {
  background-color: #142416 !important;
  color: #ffffff !important;
  padding: 10px 14px;
}

.customizer-input:focus,
.customizer-select:focus {
  border-color: #d4a964;
  background: rgba(255, 255, 255, 0.12);
}

.customizer-actions {
  display: flex;
  gap: 10px;
}

.btn-cert-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #d4a964, #b88636);
  color: #1a1608;
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(212, 169, 100, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cert-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 169, 100, 0.35);
}

.btn-cert-action--subtle {
  background: rgba(255, 255, 255, 0.08);
  color: #e2ede0;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-cert-action--subtle:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Certificate Preview Card (Authentic Diploma Style) */
.e-cert-preview-col {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.cert-card-frame {
  width: 100%;
  max-width: 650px;
  background: #ffffff;
  padding: 14px;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(212, 169, 100, 0.4),
              0 0 40px rgba(212, 169, 100, 0.15);
  transform: rotate(0.4deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cert-card-frame:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 36px 70px rgba(0, 0, 0, 0.55),
              0 0 0 1px rgba(212, 169, 100, 0.6),
              0 0 50px rgba(212, 169, 100, 0.25);
}

.cert-paper {
  background: #fbf9f2;
  border: 3px double #d4a964;
  border-radius: 12px;
  padding: 30px 34px 24px;
  position: relative;
  color: #1f2d20;
  text-align: center;
  background-image: radial-gradient(circle at 50% 50%, rgba(212, 169, 100, 0.04) 0%, transparent 80%);
}

.cert-ornament-border {
  position: relative;
}

.cert-paper::before,
.cert-paper::after {
  content: '❖';
  position: absolute;
  color: #d4a964;
  font-size: 14px;
}
.cert-paper::before { top: 8px; left: 10px; }
.cert-paper::after { top: 8px; right: 10px; }

.cert-crest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.cert-crest-emblem {
  width: 48px;
  height: 48px;
  background: #182f1c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px #d4a964;
  margin-bottom: 2px;
}

.cert-org-name {
  font-family: 'Cinzel', serif, Georgia;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #142918;
}

.cert-org-loc {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: #8c734b;
  font-weight: 600;
  text-transform: uppercase;
}

.cert-main-title {
  font-family: 'Cinzel', serif, Georgia;
  font-size: 1.65rem;
  font-weight: 700;
  color: #14331a;
  letter-spacing: 0.04em;
  margin-top: 8px;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.cert-sub-title {
  font-size: 0.84rem;
  color: #6d624a;
  margin-bottom: 12px;
  font-weight: 500;
}

.cert-intro {
  font-size: 0.86rem;
  color: #555e54;
  font-style: italic;
  margin-bottom: 6px;
}

.cert-recipient-name {
  font-family: 'Cinzel', serif, Georgia;
  font-size: 2.05rem;
  font-weight: 700;
  color: #112816;
  border-bottom: 2px solid #d4a964;
  padding-bottom: 6px;
  margin: 0 auto 12px;
  max-width: 440px;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  text-shadow: 0 1px 2px rgba(212, 169, 100, 0.2);
}

.cert-citation {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #3b473a;
  margin: 0 auto 14px;
  max-width: 480px;
}

/* Companion Elephant Badge */
.cert-elephant-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(24, 47, 28, 0.05);
  border: 1px solid rgba(212, 169, 100, 0.5);
  padding: 5px 16px 5px 6px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.cert-elephant-avatar-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #d4a964;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.cert-elephant-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cert-elephant-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.cert-elephant-label {
  font-size: 0.66rem;
  color: #7d6b49;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.cert-elephant-name {
  font-size: 0.92rem;
  color: #14331a;
  font-weight: 700;
}

/* Signatures & Seal Row */
.cert-signatures-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 10px;
  padding: 0 6px;
  gap: 12px;
}

.cert-sign-col {
  min-width: 140px;
  max-width: 195px;
  text-align: center;
  flex: 1;
}

.cert-sign-script {
  font-family: 'Great Vibes', 'Caveat', 'Brush Script MT', cursive, serif;
  font-size: 1.55rem;
  color: #17381e;
  min-height: 34px;
  line-height: 1.2;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cert-sign-line {
  height: 1px;
  background: #a89f8b;
  margin: 3px 0 5px;
  width: 100%;
}

.cert-sign-title {
  font-size: 0.72rem;
  color: #555e54;
  line-height: 1.35;
  font-weight: 500;
}

.cert-seal-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cert-gold-seal {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, #f3d89d 0%, #d4a964 70%, #aa7c30 100%);
  border: 3px double #ffffff;
  box-shadow: 0 4px 12px rgba(170, 124, 48, 0.4), inset 0 0 6px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #4a340b;
  font-weight: 800;
  text-align: center;
  transform: rotate(-8deg);
}

.seal-star {
  font-size: 8px;
  line-height: 1;
}

.seal-text {
  font-size: 7.2px;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.seal-sub {
  font-size: 6.2px;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

.cert-footer-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 14px;
  padding-top: 8px;
  font-size: 0.7rem;
  color: #7b887a;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .e-cert-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cert-card-frame {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .cert-paper {
    padding: 22px 18px 18px;
  }
  .cert-main-title {
    font-size: 1.35rem;
  }
  .cert-recipient-name {
    font-size: 1.6rem;
  }
  .cert-signatures-row {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .cert-sign-col {
    width: 100%;
  }
  .cert-gold-seal {
    margin: 4px 0;
  }
  .customizer-grid {
    grid-template-columns: 1fr;
  }
}

/* Hide print mount on normal screen at all times */
#certPrintMount {
  display: none !important;
}

/* Unified 1-Page Print Engine for E-Certificate & Sanctuary Booking Voucher */
@media print {
  @page {
    margin: 8mm;
  }

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  /* Unconditionally hide all website sections, docks, overlays and modals except #certPrintMount so 33-page flow is impossible */
  body > *:not(#certPrintMount) {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
  }

  .modal-overlay,
  .sponsor-modal-overlay,
  #clientVoucherModal,
  #bookingModal,
  #sponsorModal {
    display: none !important;
  }

  #certPrintMount,
  #certPrintMount * {
    visibility: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  #certPrintMount {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #ffffff !important;
    page-break-inside: avoid !important;
    page-break-after: avoid !important;
    break-inside: avoid !important;
  }

  #certPrintMount .cert-card-frame {
    display: block !important;
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    background: transparent !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  #certPrintMount .cert-paper {
    background: #fbf9f2 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    border: 3.5px double #d4a964 !important;
    border-radius: 12px !important;
    padding: 18px 26px 16px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  #certPrintMount .cert-signatures-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
  }

  #certPrintMount .cert-gold-seal {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    background: radial-gradient(circle, #f3d89d 0%, #d4a964 70%, #aa7c30 100%) !important;
    color: #4a340b !important;
  }

  #certPrintMount .cert-crest-emblem {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  #certPrintMount .cert-elephant-badge {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    background: rgba(24, 47, 28, 0.05) !important;
  }
}

/* ==========================================================================
   Section: Moments of Pang-Boon (Masonry Grid & Fullscreen Lightbox)
   ========================================================================== */
.gallery-section {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(32, 65, 38, 0.25) 0%, rgba(13, 26, 16, 0) 70%),
              linear-gradient(180deg, var(--sylva-bg-deep) 0%, rgba(15, 30, 19, 0.98) 100%);
  padding: 100px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-filter-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto 40px;
  max-width: 800px;
}

.gallery-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1.5px solid rgba(38, 77, 31, 0.24);
  color: #1a3a17 !important;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 47, 17, 0.09), 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
}

.gallery-chip span {
  color: inherit;
  font-weight: inherit;
}

.gallery-chip:hover {
  background: #f0f7ee;
  color: #0e240c !important;
  border-color: #3d7936;
  box-shadow: 0 6px 20px rgba(26, 54, 20, 0.16);
  transform: translateY(-2px);
}

.gallery-chip.active {
  background: linear-gradient(135deg, #244b1e 0%, #153211 100%) !important;
  color: #ffffff !important;
  border-color: #5ca94f !important;
  box-shadow: 0 8px 24px rgba(21, 50, 17, 0.38), 0 2px 6px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px) scale(1.02);
}

.gallery-chip.active span {
  color: #ffffff !important;
}

.gallery-chip:active {
  transform: translateY(0) scale(0.98);
}

/* Dynamic Masonry-like Grid */
.gallery-masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(18, 35, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.35s ease,
              opacity 0.3s ease;
  will-change: transform;
}

.gallery-item.is-hidden {
  display: none !important;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  border-color: rgba(164, 240, 157, 0.35);
}

.gallery-item:focus-visible {
  outline: 3px solid #7be472;
  outline-offset: 3px;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-thumb-box {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
  display: flex;
}

.gallery-item--wide .gallery-thumb-box {
  min-height: 340px;
}

.gallery-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.gallery-item:hover .gallery-thumb-box img {
  transform: scale(1.06);
}

.gallery-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(11, 24, 13, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #a4f09d;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(164, 240, 157, 0.28);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 22px;
  background: linear-gradient(180deg, rgba(8, 16, 9, 0) 35%, rgba(8, 16, 9, 0.88) 100%);
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  background: linear-gradient(180deg, rgba(8, 16, 9, 0) 25%, rgba(8, 16, 9, 0.94) 100%);
}

.gallery-meta {
  color: #ffffff;
  max-width: calc(100% - 48px);
  padding-right: 12px;
}

.gallery-item-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.gallery-item-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.gallery-zoom-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-zoom-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-item:hover .gallery-zoom-btn {
  background: #3e8536;
  border-color: #72cc65;
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(62, 133, 54, 0.5);
}

/* ==========================================================================
   Moments of Pang-Boon: Lightbox Modal
   ========================================================================== */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 7, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: zoom-out;
}

.lightbox-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content-box {
  background: rgba(14, 28, 17, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.75);
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  animation: lightboxPop 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes lightboxPop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-img-holder {
  position: relative;
  width: 100%;
  max-height: 66vh;
  min-height: 260px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060e07;
}

.lightbox-img {
  max-width: 100%;
  max-height: 66vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease;
  user-select: none;
}

.lightbox-caption {
  padding: 20px 28px;
  background: rgba(11, 23, 14, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox-caption-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.lightbox-tag {
  color: #79dd72;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 600;
  font-family: monospace;
}

.lightbox-title {
  font-size: 1.32rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.3;
}

.lightbox-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
  margin: 0;
}

/* Lightbox Nav Buttons */
.lightbox-btn-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 28, 17, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox-btn-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-btn-close:hover {
  background: #bb3333;
  border-color: #ff6666;
  transform: scale(1.08) rotate(90deg);
}

.lightbox-btn-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(14, 28, 17, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox-btn-nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-btn-prev {
  left: 16px;
}

.lightbox-btn-next {
  right: 16px;
}

.lightbox-btn-nav:hover {
  background: #3e8536;
  border-color: #72cc65;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 10px 28px rgba(62, 133, 54, 0.5);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .gallery-masonry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .gallery-section {
    padding: 70px 16px;
  }

  .gallery-masonry-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-item--wide {
    grid-column: span 1;
  }

  .gallery-thumb-box {
    min-height: 250px;
  }

  .gallery-item--wide .gallery-thumb-box {
    min-height: 260px;
  }

  .gallery-lightbox {
    padding: 12px;
  }

  .lightbox-content-box {
    border-radius: 18px;
  }

  .lightbox-img-holder {
    max-height: 52vh;
    min-height: 200px;
  }

  .lightbox-img {
    max-height: 52vh;
  }

  .lightbox-caption {
    padding: 16px 18px;
  }

  .lightbox-title {
    font-size: 1.15rem;
  }

  .lightbox-desc {
    font-size: 0.88rem;
  }

  .lightbox-btn-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .lightbox-btn-nav {
    width: 42px;
    height: 42px;
    top: 50%;
    transform: translateY(-50%);
  }

  .lightbox-btn-prev {
    left: 10px;
  }

  .lightbox-btn-next {
    right: 10px;
  }

  .lightbox-btn-nav:hover {
    transform: translateY(-50%) scale(1.05);
  }
}

/* ==========================================================================
   Sponsorship & Guardian Donation Module (Checkpoint 21 / Customer TOR Section 6 & 1(3))
   ========================================================================== */
.sponsorship-section {
  position: relative;
  padding: 100px 0 80px;
  background: radial-gradient(circle at 50% 20%, rgba(30, 60, 36, 0.28) 0%, rgba(10, 17, 10, 0.95) 75%);
  border-top: 1px solid rgba(212, 169, 100, 0.15);
  border-bottom: 1px solid rgba(212, 169, 100, 0.15);
  overflow: hidden;
}

.sponsorship-section::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(56, 239, 125, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.sponsor-header-content {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}

.sponsor-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 169, 100, 0.12);
  border: 1px solid rgba(212, 169, 100, 0.35);
  color: var(--accent-gold, #d4a964);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.sponsor-freq-toggle-wrap,
.sponsor-freq-container {
  display: flex;
  justify-content: center;
  margin: 28px 0 10px;
}

.sponsor-freq-toggle {
  display: inline-flex;
  background: rgba(10, 24, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(212, 169, 100, 0.45);
  padding: 6px;
  border-radius: 999px;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.sponsor-freq-btn,
.freq-btn {
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff !important;
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  outline: none;
}

.sponsor-freq-btn span,
.freq-btn span {
  color: inherit;
}

.sponsor-freq-btn:hover,
.freq-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
}

.sponsor-freq-btn.active,
.freq-btn.active {
  color: #0c180e !important;
  background: linear-gradient(135deg, #d4a964 0%, #f7e7b4 100%) !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 16px rgba(212, 169, 100, 0.5);
}

.sponsor-freq-btn.active span,
.freq-btn.active span {
  color: #0c180e !important;
}

.freq-badge-pulse {
  color: #ffd875 !important;
  font-size: 0.95rem;
  display: inline-block;
  animation: starPulse 2s infinite ease-in-out;
}

.sponsor-freq-btn.active .freq-badge-pulse,
.freq-btn.active .freq-badge-pulse {
  color: #0c180e !important;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.25); opacity: 1; }
}

.freq-badge,
.freq-pill-highlight {
  font-size: 0.72rem;
  background: rgba(56, 239, 125, 0.22);
  color: #38ef7d !important;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.sponsor-freq-btn.active .freq-badge,
.sponsor-freq-btn.active .freq-pill-highlight,
.freq-btn.active .freq-badge,
.freq-btn.active .freq-pill-highlight {
  background: rgba(12, 24, 14, 0.25) !important;
  color: #0c180e !important;
}

/* Frequency Description Hint */
.sponsor-freq-hint-wrap {
  display: flex;
  justify-content: center;
  margin: 14px 0 20px;
}

.sponsor-freq-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 30, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 169, 100, 0.32);
  border-radius: 999px;
  padding: 8px 22px;
  font-size: 13.5px;
  color: #e2ede0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.sponsor-freq-hint strong {
  color: #f7e7b4;
  font-weight: 700;
}

.sponsor-freq-hint.is-monthly {
  background: rgba(22, 50, 28, 0.95);
  border-color: rgba(212, 169, 100, 0.65);
  box-shadow: 0 4px 20px rgba(212, 169, 100, 0.25);
  color: #ffffff;
}

@keyframes freqPulseAnim {
  0% { opacity: 0.88; transform: translateY(3px); }
  100% { opacity: 1; transform: translateY(0); }
}

.grid-freq-pulse {
  animation: freqPulseAnim 0.35s ease-out;
}

/* 4 Fund Cards Grid */
.sponsor-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.sponsor-cards-grid.is-monthly-mode .sponsor-card {
  border-color: rgba(212, 169, 100, 0.55);
}

.sponsor-cards-grid.is-monthly-mode .btn-sponsor-act {
  background: linear-gradient(135deg, #1f431b, #0f260d) !important;
  border-color: rgba(212, 169, 100, 0.6) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 12px rgba(212, 169, 100, 0.28) !important;
}

.sponsor-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(20, 36, 22, 0.94) 0%, rgba(12, 22, 14, 0.98) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(212, 169, 100, 0.35);
  border-radius: 24px;
  padding: 28px 22px;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.sponsor-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 169, 100, 0.75);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 169, 100, 0.25);
}

.sponsor-card.featured {
  border-color: rgba(212, 169, 100, 0.65);
  background: linear-gradient(180deg, rgba(28, 50, 30, 0.96) 0%, rgba(14, 26, 16, 0.98) 100%);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 169, 100, 0.15);
}

.sponsor-card-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #d4a964, #f7e7b4);
  color: #0c180e !important;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(212, 169, 100, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.sponsor-card-badge--foster {
  background: linear-gradient(135deg, #56ab2f, #a8e063);
  color: #0c180e !important;
}

.sponsor-icon-bubble,
.sponsor-card-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(212, 169, 100, 0.14);
  border: 1.5px solid rgba(212, 169, 100, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 18px;
}

.sponsor-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 10px;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.sponsor-card-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.6;
  margin: 0 0 18px;
  flex-grow: 1;
}

/* Foster Companion Selector */
.foster-select-wrap {
  margin: 0 0 14px;
}

.foster-select-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffd875 !important;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.custom-select-container {
  position: relative;
}

.foster-select {
  width: 100%;
  padding: 10px 38px 10px 14px;
  background: rgba(10, 22, 12, 0.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23d4a964' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: #ffffff !important;
  border: 1.5px solid rgba(212, 169, 100, 0.45);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.foster-select:focus {
  border-color: #ffd875;
  box-shadow: 0 0 14px rgba(212, 169, 100, 0.35);
}

.foster-select option {
  background: #142817;
  color: #ffffff;
  padding: 8px;
}

/* Quick Amount Selection Chips (Redesigned with Tactile Feedback) */
.amount-chips-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 14px 0 10px;
}

.amount-chip {
  padding: 10px 4px;
  font-size: 0.92rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: center;
  user-select: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.amount-chip:hover {
  background: rgba(212, 169, 100, 0.25);
  border-color: rgba(212, 169, 100, 0.75);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.amount-chip.active {
  background: linear-gradient(135deg, #d4a964 0%, #f7e7b4 100%) !important;
  color: #0c180e !important;
  font-weight: 800 !important;
  border-color: #ffe082 !important;
  box-shadow: 0 4px 18px rgba(212, 169, 100, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  transform: translateY(-2px) scale(1.05);
}

.amount-chip:active,
.amount-chip.chip-pop {
  animation: chipPop 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes chipPop {
  0% { transform: scale(0.92); }
  50% { transform: scale(1.1); }
  100% { transform: translateY(-2px) scale(1.05); }
}

/* Custom Amount Box (Redesigned from scratch) */
.custom-amount-box {
  margin: 12px 0;
  animation: customSlideDown 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes customSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-input-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffd875 !important;
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.3px;
}

.custom-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(8, 18, 10, 0.95);
  border: 1.5px solid rgba(212, 169, 100, 0.5);
  border-radius: 14px;
  padding: 5px 6px;
  gap: 6px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.custom-input-wrap:focus-within {
  border-color: #ffd875;
  box-shadow: 0 0 16px rgba(212, 169, 100, 0.4), inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.currency-prefix {
  background: linear-gradient(135deg, rgba(212, 169, 100, 0.28), rgba(212, 169, 100, 0.12));
  color: #ffd875;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid rgba(212, 169, 100, 0.4);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  letter-spacing: 0.5px;
}

.custom-amount-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff !important;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 6px 6px;
  font-family: inherit;
  box-sizing: border-box;
}

.custom-amount-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.88rem;
  font-weight: 500;
}

/* Remove default number spin buttons cleanly */
.custom-amount-input::-webkit-outer-spin-button,
.custom-amount-input::-webkit-inner-spin-button,
.sponsor-input[type="number"]::-webkit-outer-spin-button,
.sponsor-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.custom-amount-input,
.sponsor-input[type="number"] {
  -moz-appearance: textfield;
}

.quick-step-btns {
  display: flex;
  gap: 4px;
}

.btn-quick-step {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 169, 100, 0.35);
  color: #ecd599;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  outline: none;
}

.btn-quick-step:hover {
  background: rgba(212, 169, 100, 0.3);
  color: #ffffff;
  border-color: #ffd875;
}

/* Card Impact Statement Badge */
.sponsor-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

.sponsor-card-impact {
  background: rgba(56, 239, 125, 0.12);
  border: 1px solid rgba(56, 239, 125, 0.35);
  color: #78f5a6 !important;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  margin: 14px 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  line-height: 1.45;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

/* Card CTA Button */
.btn-sponsor-card,
.btn-sponsor-act {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #d4a964 0%, #fce29d 100%);
  color: #0c180e !important;
  font-weight: 800;
  font-size: 0.98rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 6px 20px rgba(212, 169, 100, 0.35);
  outline: none;
  user-select: none;
}

.btn-sponsor-card span,
.btn-sponsor-act span,
.btn-sponsor-text {
  color: #0c180e !important;
}

.btn-sponsor-card:hover,
.btn-sponsor-act:hover {
  background: linear-gradient(135deg, #f7e7b4 0%, #d4a964 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 169, 100, 0.55);
}

.btn-sponsor-card:active,
.btn-sponsor-act:active {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(212, 169, 100, 0.4);
}

.btn-heart-icon {
  display: inline-block;
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.btn-sponsor-card:hover .btn-heart-icon,
.btn-sponsor-act:hover .btn-heart-icon {
  transform: scale(1.25);
}

.btn-sponsor-card .btn-arrow,
.btn-sponsor-act .btn-arrow {
  transition: transform 0.2s ease;
  font-weight: 800;
  font-size: 1.05rem;
}

.btn-sponsor-card:hover .btn-arrow,
.btn-sponsor-act:hover .btn-arrow {
  transform: translateX(4px);
}

/* Transparency & Governance Banner */
.transparency-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(14, 25, 16, 0.85);
  border: 1px solid rgba(212, 169, 100, 0.25);
  border-radius: 20px;
  padding: 24px 32px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.transparency-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.transparency-content {
  flex-grow: 1;
}

.transparency-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold, #d4a964);
  margin: 0 0 6px;
}

.transparency-content p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Sponsorship Modal (Glassmorphic 2-Step Checkout & Slip Dropzone)
   ========================================================================== */
.sponsor-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sponsor-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sponsor-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 6, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sponsor-modal-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(165deg, rgba(20, 35, 22, 0.98) 0%, rgba(10, 18, 11, 0.98) 100%);
  border: 1px solid rgba(212, 169, 100, 0.35);
  border-radius: 28px;
  padding: 36px 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(212, 169, 100, 0.15);
  animation: modalSlideUp 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sponsor-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sponsor-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.sponsor-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.sponsor-badge-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 169, 100, 0.14);
  border: 1px solid rgba(212, 169, 100, 0.35);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.sponsor-badge-icon {
  font-size: 1.15rem;
}

.sponsor-badge-name {
  color: var(--accent-gold, #d4a964);
  font-size: 0.88rem;
  font-weight: 700;
}

.sponsor-modal-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
}

.sponsor-modal-subtitle {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0;
}

/* Modal Frequency Toggle */
.sponsor-modal-freq-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(8, 16, 9, 0.6);
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 22px;
}

.sponsor-modal-freq-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.25s ease;
}

.sponsor-modal-freq-btn input {
  display: none;
}

.sponsor-modal-freq-btn.active {
  background: linear-gradient(135deg, #d4a964 0%, #ecd599 100%);
  color: #0c180e;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(212, 169, 100, 0.35);
}

.freq-badge-mini {
  font-size: 0.7rem;
  background: #38ef7d;
  color: #0c180e;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 800;
}

/* Form Styles */
.sponsor-form-group {
  margin-bottom: 18px;
}

.sponsor-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sponsor-form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 7px;
}

.sponsor-form-label.required::after {
  content: ' *';
  color: #ff6b6b;
}

.sponsor-input,
.sponsor-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(10, 20, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.94rem;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.sponsor-input:focus,
.sponsor-select:focus {
  border-color: var(--accent-gold, #d4a964);
  background: rgba(12, 24, 14, 0.9);
  box-shadow: 0 0 12px rgba(212, 169, 100, 0.25);
}

.sponsor-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23d4a964' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.sponsor-select option {
  background: #101c12;
  color: #ffffff;
}

/* Modal Amount Chips */
.sponsor-modal-amounts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.sponsor-amount-chip {
  padding: 10px 4px;
  font-size: 0.92rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sponsor-amount-chip:hover {
  border-color: rgba(212, 169, 100, 0.45);
  color: #ffffff;
}

.sponsor-amount-chip.active {
  background: linear-gradient(135deg, #d4a964 0%, #f7e7b4 100%) !important;
  color: #0c180e !important;
  font-weight: 800 !important;
  border-color: #ffe082 !important;
  box-shadow: 0 4px 16px rgba(212, 169, 100, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  transform: translateY(-2px) scale(1.04);
}

.sponsor-custom-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.currency-prefix {
  position: absolute;
  left: 16px;
  color: var(--accent-gold, #d4a964);
  font-weight: 700;
  font-size: 1.1rem;
}

.sponsor-custom-input-wrap .sponsor-input {
  padding-left: 36px;
}

/* Anonymous Checkbox */
.sponsor-anonymous-wrap {
  margin: 14px 0 24px;
}

.sponsor-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.sponsor-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-gold, #d4a964);
  cursor: pointer;
}

/* Payment Section */
.sponsor-payment-section {
  background: rgba(8, 16, 9, 0.55);
  border: 1px solid rgba(212, 169, 100, 0.2);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 24px;
}

.sponsor-payment-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 14px;
}

.sponsor-pay-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.sponsor-pay-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: all 0.25s ease;
}

.sponsor-pay-tab:hover {
  border-color: rgba(212, 169, 100, 0.35);
  color: #ffffff;
}

.sponsor-pay-tab.active {
  background: rgba(212, 169, 100, 0.18);
  border-color: var(--accent-gold, #d4a964);
  color: #ffffff;
  font-weight: 700;
}

.sponsor-pay-content {
  display: none;
}

.sponsor-pay-content.active {
  display: block;
}

/* PromptPay Card Layout */
.promptpay-card-box {
  display: flex;
  gap: 20px;
  background: rgba(14, 26, 16, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}

.promptpay-qr-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 170px;
}

.promptpay-qr-frame {
  width: 168px;
  height: auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.promptpay-qr-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.promptpay-scan-hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  margin-top: 8px;
  line-height: 1.3;
}

.promptpay-info-side {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.bank-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 169, 80, 0.15);
  border: 1px solid rgba(0, 169, 80, 0.4);
  color: #00e676;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
  align-self: flex-start;
}

.bank-dot, .kbank-dot, .ktb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00a4e4;
  box-shadow: 0 0 10px rgba(0, 164, 228, 0.85);
  display: inline-block;
  flex-shrink: 0;
}

.test-account-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(0, 164, 228, 0.15);
  color: #00c0f8;
  border: 1px solid rgba(0, 164, 228, 0.35);
  letter-spacing: 0.02em;
}

.bank-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bank-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bank-val-copy {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bank-acc-no {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  font-family: monospace;
}

.btn-copy-acc {
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(212, 169, 100, 0.2);
  border: 1px solid rgba(212, 169, 100, 0.4);
  color: var(--accent-gold, #d4a964);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-acc:hover {
  background: rgba(212, 169, 100, 0.4);
  color: #ffffff;
}

.bank-acc-name {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
}

.bank-branch-name {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Slip Upload Dropzone */
.slip-upload-container {
  margin-top: 14px;
}

.slip-upload-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

.slip-dropzone {
  position: relative;
  background: rgba(10, 20, 12, 0.6);
  border: 2px dashed rgba(212, 169, 100, 0.4);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.slip-dropzone:hover,
.slip-dropzone.dragover {
  background: rgba(14, 28, 16, 0.85);
  border-color: var(--accent-gold, #d4a964);
}

.slip-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.slip-drop-placeholder {
  pointer-events: none;
}

.drop-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.drop-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.drop-subtitle {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.slip-preview-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 30, 18, 0.9);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(212, 169, 100, 0.35);
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.slip-preview-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid rgba(212, 169, 100, 0.55);
}

.slip-file-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 68px);
  overflow: hidden;
}

.slip-file-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #78f5a6;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  display: block;
}

.btn-remove-slip {
  padding: 4px 12px;
  background: rgba(255, 80, 80, 0.18);
  border: 1px solid rgba(255, 80, 80, 0.4);
  color: #ff8080;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 10;
}

.btn-remove-slip:hover {
  background: rgba(255, 80, 80, 0.35);
  color: #ffffff;
}

/* Card Mock Form */
.card-mock-form {
  padding: 10px 0;
}

.card-security-badge {
  font-size: 0.78rem;
  color: rgba(56, 239, 125, 0.85);
  text-align: center;
  margin-top: 14px;
}

/* Modal Footer Actions */
.sponsor-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
}

.btn-sponsor-cancel {
  padding: 14px 22px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sponsor-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn-sponsor-submit {
  padding: 14px 28px;
  background: linear-gradient(135deg, #d4a964 0%, #ecd599 100%);
  border: none;
  border-radius: 14px;
  color: #0c180e;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(212, 169, 100, 0.35);
}

.btn-sponsor-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 169, 100, 0.5);
}

/* ==========================================================================
   Sponsorship Success View Screen
   ========================================================================== */
.sponsor-success-screen {
  text-align: center;
  padding: 20px 10px;
}

.success-icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(56, 239, 125, 0.25);
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

.success-check-badge {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 8px 24px rgba(56, 239, 125, 0.4);
}

.success-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
}

.success-subtitle {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto 24px;
}

.success-detail-card {
  background: rgba(10, 20, 12, 0.7);
  border: 1px solid rgba(212, 169, 100, 0.3);
  border-radius: 18px;
  padding: 18px 24px;
  max-width: 460px;
  margin: 0 auto 28px;
  text-align: left;
}

.success-info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.success-info-row:last-child {
  border-bottom: none;
}

.success-info-row .lbl {
  color: rgba(255, 255, 255, 0.6);
}

.success-info-row .val {
  color: #ffffff;
}

.ref-val {
  font-family: monospace;
  color: var(--accent-gold, #d4a964) !important;
  font-size: 1.05rem;
}

.gold-text {
  color: var(--accent-gold, #d4a964) !important;
  font-size: 1.15rem;
}

.success-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.btn-download-cert {
  padding: 14px 24px;
  background: linear-gradient(135deg, #d4a964 0%, #ecd599 100%);
  color: #0c180e;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(212, 169, 100, 0.4);
  transition: all 0.25s ease;
}

.btn-download-cert:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 169, 100, 0.55);
}

.btn-close-success {
  padding: 14px 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-success:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints for Sponsorship Module
   ========================================================================== */
@media (max-width: 1200px) {
  .sponsor-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .sponsorship-section {
    padding: 70px 0 50px;
  }

  .sponsor-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sponsor-modal-container {
    padding: 24px 18px;
    max-height: 94vh;
  }

  .sponsor-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sponsor-modal-amounts {
    grid-template-columns: repeat(3, 1fr);
  }

  .promptpay-card-box {
    flex-direction: column;
    align-items: center;
  }

  .promptpay-qr-side {
    width: 100%;
  }

  .promptpay-info-side {
    width: 100%;
    margin-top: 10px;
  }

  .transparency-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 12px;
  }

  .sponsor-modal-footer {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .btn-sponsor-cancel,
  .btn-sponsor-submit {
    width: 100%;
    justify-content: center;
  }

  .success-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-download-cert,
  .btn-close-success {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Checkpoint 22: Sanctuary Tour Reservation & Payment Checkout Styles
   ========================================================================== */
.booking-payment-modal-box {
  max-width: 680px;
  width: 95%;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 26px;
  padding: 34px 30px;
  background: linear-gradient(180deg, #132415 0%, #0a160d 100%);
  border: 1.5px solid rgba(212, 169, 100, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(212, 169, 100, 0.18);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 169, 100, 0.4) transparent;
}

.booking-payment-modal-box::-webkit-scrollbar {
  width: 6px;
}
.booking-payment-modal-box::-webkit-scrollbar-thumb {
  background: rgba(212, 169, 100, 0.35);
  border-radius: 999px;
}

/* Header */
.checkout-header {
  margin-bottom: 20px;
  text-align: center;
}

.checkout-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 169, 100, 0.15);
  border: 1px solid rgba(212, 169, 100, 0.4);
  color: #ffd875;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.checkout-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 8px;
  line-height: 1.3;
}

.checkout-subtitle {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82) !important;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 540px;
}

/* Trip Summary Card */
.checkout-summary-card {
  background: rgba(8, 18, 10, 0.88);
  border: 1.5px solid rgba(212, 169, 100, 0.3);
  border-radius: 18px;
  padding: 18px 20px;
  margin: 18px 0 22px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.summary-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.summary-ref-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.85);
}

.summary-ref-pill strong {
  background: linear-gradient(135deg, #d4a964, #f7e7b4);
  color: #0c180e;
  padding: 3px 10px;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.summary-secure-tag {
  font-size: 0.74rem;
  color: #78f5a6;
  font-weight: 700;
}

.summary-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.summary-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-detail-item .item-label {
  font-size: 0.72rem;
  color: #ecd599;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.summary-detail-item .item-val {
  font-size: 0.92rem;
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Payment Option Switcher (Full vs Deposit) */
.payment-option-section {
  margin-bottom: 22px;
}

.section-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffd875;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.payment-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.plan-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  user-select: none;
}

.plan-card:hover {
  background: rgba(212, 169, 100, 0.1);
  border-color: rgba(212, 169, 100, 0.5);
  transform: translateY(-2px);
}

.plan-card.active {
  background: rgba(212, 169, 100, 0.14) !important;
  border-color: #ffd875 !important;
  box-shadow: 0 6px 20px rgba(212, 169, 100, 0.25), inset 0 0 12px rgba(212, 169, 100, 0.15) !important;
}

.plan-card input[type="radio"] {
  display: none;
}

.plan-badge-tag {
  position: absolute;
  top: -10px;
  right: 14px;
  background: linear-gradient(135deg, #d4a964, #f7e7b4);
  color: #0c180e;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.plan-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.plan-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
}

.plan-amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffd875;
  font-family: 'Outfit', sans-serif;
}

.plan-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
  margin: 0;
}

/* Payment Channels Tabs */
.checkout-channels-section {
  margin-bottom: 24px;
}

.checkout-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.chk-tab {
  padding: 12px 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  outline: none;
}

.chk-tab .tab-icon {
  font-size: 1.35rem;
}

.chk-tab .tab-text {
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff !important;
  text-align: center;
  line-height: 1.2;
}

.chk-tab:hover {
  background: rgba(212, 169, 100, 0.2);
  border-color: rgba(212, 169, 100, 0.6);
  transform: translateY(-2px);
}

.chk-tab.active {
  background: linear-gradient(135deg, #d4a964 0%, #f7e7b4 100%) !important;
  border-color: #ffe082 !important;
  box-shadow: 0 4px 18px rgba(212, 169, 100, 0.5);
  transform: translateY(-2px);
}

.chk-tab.active .tab-text {
  color: #0c180e !important;
  font-weight: 800 !important;
}

/* Channel Contents */
.chk-content {
  background: rgba(10, 22, 12, 0.92);
  border: 1.5px solid rgba(212, 169, 100, 0.35);
  border-radius: 18px;
  padding: 20px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* PromptPay Layout */
.promptpay-box {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.promptpay-qr-col {
  flex: 0 0 160px;
  text-align: center;
}

.promptpay-qr-wrapper {
  background: #ffffff;
  padding: 6px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.chk-qr-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.qr-scan-text {
  font-size: 0.72rem;
  color: #ffd875;
  margin-top: 8px;
  font-weight: 600;
  line-height: 1.35;
}

.promptpay-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bank-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  color: #ffffff;
}

.kbank-dot, .ktb-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00a4e4;
  box-shadow: 0 0 10px rgba(0, 164, 228, 0.85);
}

.bank-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bank-row .b-lbl {
  font-size: 0.72rem;
  color: #ecd599;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bank-row .b-val {
  font-size: 0.88rem;
  color: #ffffff;
  font-weight: 600;
}

.b-val-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.b-val-group .b-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffd875;
  letter-spacing: 1px;
  font-family: 'Outfit', monospace;
}

.btn-copy-mini {
  background: rgba(212, 169, 100, 0.2);
  border: 1px solid rgba(212, 169, 100, 0.5);
  color: #ffd875;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-mini:hover {
  background: #d4a964;
  color: #0c180e;
}

/* Slip Upload Zone */
.slip-upload-field {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

.slip-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffd875;
  margin-bottom: 8px;
}

.slip-drop-area {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 2px dashed rgba(212, 169, 100, 0.45);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.slip-drop-area:hover,
.slip-drop-area.dragover {
  background: rgba(212, 169, 100, 0.12);
  border-color: #ffd875;
}

.slip-hidden-file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.slip-empty-view .upload-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 6px;
}

.upload-main-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.upload-sub-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.slip-filled-view {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  background: rgba(16, 30, 18, 0.9);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(212, 169, 100, 0.35);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  z-index: 6;
}

.slip-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid #ffd875;
}

.slip-name-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 68px);
  overflow: hidden;
}

.slip-name-wrap .file-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #78f5a6;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  display: block;
}

.slip-notice {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
  line-height: 1.4;
}

/* Card Checkout Form */
.card-checkout-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-brand-logos {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.brand-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-row-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card-field-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffd875;
  letter-spacing: 0.4px;
}

.card-field-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(8, 18, 10, 0.95);
  border: 1.5px solid rgba(212, 169, 100, 0.45);
  border-radius: 12px;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.card-field-input:focus {
  border-color: #ffd875;
  box-shadow: 0 0 14px rgba(212, 169, 100, 0.35);
}

.card-num-wrap {
  position: relative;
}

.card-type-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  pointer-events: none;
}

.card-trust-guarantee {
  font-size: 0.74rem;
  color: #78f5a6;
  text-align: center;
  margin-top: 6px;
  padding: 8px;
  background: rgba(56, 239, 125, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(56, 239, 125, 0.25);
}

/* PayPal Box */
.paypal-checkout-box {
  text-align: center;
  padding: 10px;
}

.paypal-badge {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.pp-p { color: #003087; background: #ffffff; padding: 2px 6px; border-radius: 6px 0 0 6px; }
.pp-aypal { color: #0079C1; background: #ffffff; padding: 2px 6px 2px 0; border-radius: 0 6px 6px 0; }

.paypal-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 460px;
  margin: 0 auto 16px;
  line-height: 1.5;
}

.paypal-exchange-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 169, 100, 0.3);
  border-radius: 12px;
  padding: 12px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.pp-lbl { font-size: 0.76rem; color: #ecd599; font-weight: 600; }
.pp-val { font-size: 1.4rem; color: #ffd875; font-family: 'Outfit', sans-serif; font-weight: 800; }
.pp-rate { font-size: 0.72rem; color: rgba(255, 255, 255, 0.6); }

.btn-paypal-gold {
  background: #ffc439;
  color: #111111;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 196, 57, 0.4);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-paypal-gold:hover {
  background: #f4b41a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 196, 57, 0.6);
}

/* Alipay Box */
.alipay-checkout-box {
  text-align: center;
  padding: 10px;
}

.alipay-logos {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ali-badge {
  background: #1677ff;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.88rem;
}

.wechat-badge {
  background: #07c160;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.88rem;
}

.alipay-desc {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  max-width: 480px;
  margin: 0 auto 16px;
}

.alipay-qr-preview {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 169, 100, 0.3);
  border-radius: 14px;
  padding: 20px 30px;
}

.qr-placeholder-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffd875;
  margin-bottom: 6px;
}

.alipay-note {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* Checkout Footer */
.checkout-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.btn-chk-cancel {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-chk-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-chk-confirm {
  flex: 1;
  background: linear-gradient(135deg, #d4a964 0%, #f7e7b4 100%);
  color: #0c180e !important;
  font-size: 1rem;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 22px rgba(212, 169, 100, 0.45);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
}

.btn-chk-confirm:hover {
  background: linear-gradient(135deg, #f7e7b4 0%, #d4a964 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 169, 100, 0.65);
}

.btn-chk-confirm:active {
  transform: scale(0.98);
}

/* Success Stage */
.checkout-success-stage {
  text-align: center;
  padding: 20px 10px;
}

.success-seal-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed #d4a964;
  animation: rotateRing 15s linear infinite;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.success-seal {
  font-size: 2.4rem;
  background: linear-gradient(135deg, #d4a964, #f7e7b4);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(212, 169, 100, 0.5);
}

.success-h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
}

.success-p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto 20px;
}

.success-receipt-card {
  background: rgba(8, 18, 10, 0.92);
  border: 1.5px solid rgba(212, 169, 100, 0.35);
  border-radius: 18px;
  padding: 18px 24px;
  max-width: 480px;
  margin: 0 auto 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.receipt-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.receipt-row .r-lbl { color: rgba(255, 255, 255, 0.75); }
.receipt-row .r-val { color: #ffffff; font-weight: 700; }
.receipt-row .r-val.gold { color: #ffd875; }
.receipt-row .r-val.green { color: #78f5a6; font-size: 1.1rem; }
.receipt-row .r-val.orange { color: #ffb86c; font-size: 1.05rem; }

.r-status-badge {
  background: #27ae60;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.success-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.btn-voucher-action {
  background: linear-gradient(135deg, #d4a964 0%, #f7e7b4 100%);
  color: #0c180e !important;
  font-size: 1.02rem;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(212, 169, 100, 0.45);
  transition: all 0.25s ease;
}

.btn-voucher-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(212, 169, 100, 0.65);
}

.btn-whatsapp-action {
  background: #25d366;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-whatsapp-action:hover {
  background: #20ba5a;
  transform: translateY(-2px);
}

.btn-done-action {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-done-action:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* ==========================================================================
   Client Official Sanctuary Voucher Modal Styles (Print & Mobile)
   ========================================================================== */
.client-voucher-modal-box {
  max-width: 720px;
  width: 95%;
  max-height: 94vh;
  overflow-y: auto;
  border-radius: 22px;
  padding: 24px;
  background: #0f1c11;
  border: 2px solid #d4a964;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
  scrollbar-width: thin;
}

.voucher-paper {
  background: #fbf8f1;
  color: #1a2215;
  border-radius: 14px;
  padding: 24px 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1.5px solid #e2d7c3;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.v-paper-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 2px solid #1a2215;
  padding-bottom: 14px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.v-paper-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.v-paper-brand > div:last-child {
  min-width: 0;
  flex: 1;
}

.v-paper-logo {
  font-size: 2.1rem;
  background: #1a2215;
  color: #fbf8f1;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v-brand-title {
  font-size: 1.22rem;
  font-weight: 900;
  color: #1a2215;
  margin: 0;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.v-brand-sub {
  font-size: 0.75rem;
  color: #556050;
  font-weight: 600;
  line-height: 1.3;
}

.v-paper-ref-box {
  text-align: right;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 0;
}

.v-ref-tag {
  font-size: 0.68rem;
  font-weight: 900;
  background: #1a2215;
  color: #ffd875;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  letter-spacing: 0.6px;
}

.v-ref-num {
  font-size: 1rem;
  font-weight: 800;
  color: #8b6b23;
  margin-top: 3px;
  font-family: monospace;
  word-break: break-all;
}

.v-ref-date {
  font-size: 0.72rem;
  color: #777777;
}

.v-stamp-banner {
  background: #e8f5e9;
  border: 1.5px solid #2e7d32;
  color: #2e7d32;
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.v-paper-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
  background: #f4eee2;
  padding: 16px;
  border-radius: 10px;
}

.v-col-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #8b6b23;
  border-bottom: 1px solid #dcd1be;
  padding-bottom: 6px;
  margin: 0 0 10px;
}

.v-info-line {
  font-size: 0.82rem;
  margin-bottom: 6px;
  line-height: 1.4;
  color: #333333;
}

.v-info-line span { color: #666666; }
.v-info-line strong { color: #1a2215; }
.v-info-line .highlight-date { color: #b45309; font-size: 0.95rem; }

.v-elephants-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #e9f0e6;
  border: 1px solid #c2d6bc;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 0.85rem;
}

.v-ele-icon { font-size: 1.4rem; }
.v-ele-names { color: #2e7d32; font-weight: 800; margin-top: 2px; }

.v-payment-breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: #1a2215;
  color: #fbf8f1;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.v-pay-col { display: flex; flex-direction: column; gap: 3px; }
.v-pay-lbl { font-size: 0.68rem; color: #dcd1be; text-transform: uppercase; }
.v-pay-val { font-size: 0.98rem; font-weight: 800; font-family: 'Outfit', sans-serif; }
.v-pay-val.green { color: #78f5a6; }
.v-pay-val.orange { color: #ffb86c; }

.v-guidelines-box {
  background: #ffffff;
  border: 1px solid #e5ded0;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.v-guidelines-box h5 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #1a2215;
}

.v-guidelines-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.78rem;
  color: #555555;
  line-height: 1.5;
}

.v-paper-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1.5px solid #dcd1be;
  padding-top: 14px;
  font-size: 0.76rem;
  color: #666666;
}

.v-contact-text { max-width: 440px; line-height: 1.4; }
.v-contact-text strong { color: #1a2215; }

.v-qr-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.v-verify-qr {
  width: 48px;
  height: 48px;
  background: #ffffff;
  padding: 2px;
  border: 1px solid #cccccc;
  border-radius: 4px;
}

.v-qr-stamp span { font-size: 0.64rem; font-weight: 700; color: #888888; }

.v-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.btn-print-voucher {
  background: linear-gradient(135deg, #d4a964 0%, #f7e7b4 100%);
  color: #0c180e !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 169, 100, 0.4);
  transition: all 0.2s ease;
}

.btn-print-voucher:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 169, 100, 0.6);
}

.btn-close-voucher {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
}

.btn-close-voucher:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* Responsive & Print Rules */
@media (max-width: 768px) {
  .booking-payment-modal-box {
    padding: 24px 18px;
  }
  .summary-details-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .payment-plan-grid {
    grid-template-columns: 1fr;
  }
  .checkout-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .promptpay-box {
    flex-direction: column;
    text-align: center;
  }
  .b-val-group {
    justify-content: center;
  }
  .form-row-card {
    grid-template-columns: 1fr;
  }
  .checkout-footer {
    flex-direction: column-reverse;
  }
  .btn-chk-cancel, .btn-chk-confirm {
    width: 100%;
    justify-content: center;
  }
  .client-voucher-modal-box {
    padding: 12px;
    width: 96%;
    position: relative;
  }
  .client-voucher-modal-box .modal-close-btn {
    top: 8px !important;
    right: 8px !important;
    z-index: 20 !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 18px !important;
  }
  .voucher-paper {
    padding: 20px 14px 16px;
    margin-top: 4px;
  }
  .v-paper-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .v-paper-brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    padding-right: 36px !important;
    box-sizing: border-box !important;
  }
  .v-brand-title {
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
  }
  .v-brand-sub {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
  }
  .v-paper-ref-box {
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px 10px !important;
    background: rgba(26, 34, 21, 0.06) !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }
  .v-ref-tag {
    font-size: 0.65rem !important;
    padding: 3px 8px !important;
    flex-shrink: 0 !important;
  }
  .v-ref-num {
    margin-top: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .v-ref-date {
    font-size: 0.70rem !important;
    color: #4a5d4e !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }
  .v-paper-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .v-payment-breakdown {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .v-paper-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

.btn-whatsapp-action,
.slip-notice {
  display: none !important;
}

@media print {
  #certPrintMount .voucher-paper {
    background: #fbf8f1 !important;
    border: 1.5px solid #1a2215 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 720px !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
    page-break-after: avoid !important;
    break-inside: avoid !important;
  }
  #certPrintMount .v-paper-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
  }
  #certPrintMount .v-paper-ref-box {
    width: auto !important;
    text-align: right !important;
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
  }
  #certPrintMount .v-stamp-banner {
    padding: 6px 12px !important;
    margin-bottom: 10px !important;
  }
  #certPrintMount .v-paper-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    margin-bottom: 10px !important;
  }
  #certPrintMount .v-elephants-row {
    padding: 8px 12px !important;
    margin-bottom: 10px !important;
  }
  #certPrintMount .v-payment-breakdown {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    margin-bottom: 10px !important;
  }
  #certPrintMount .v-guidelines-box {
    padding: 10px 14px !important;
    margin-bottom: 10px !important;
  }
  #certPrintMount .v-paper-footer {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 8px !important;
  }
  .modal-close-btn,
  .v-modal-actions {
    display: none !important;
  }
}

/* ==========================================================================
   Payment Gateway Transparency Tooltip & Popover System
   ========================================================================== */
.pay-dev-badge-wrap,
.pay-ready-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.pay-dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(234, 179, 8, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(234, 179, 8, 0.4);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 4px;
  cursor: help;
  transition: all 0.2s ease;
}

.pay-dev-badge:hover,
.pay-dev-badge-wrap:hover .pay-dev-badge {
  background: rgba(234, 179, 8, 0.35);
  border-color: #facc15;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.4);
}

.pay-ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 4px;
  cursor: help;
  transition: all 0.2s ease;
}

.pay-ready-badge:hover,
.pay-ready-badge-wrap:hover .pay-ready-badge {
  background: rgba(34, 197, 94, 0.35);
  border-color: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.pay-badge-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 300px;
  max-width: 85vw;
  background: linear-gradient(145deg, #102414, #08140a);
  border: 1px solid rgba(234, 179, 8, 0.5);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(234, 179, 8, 0.2);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999;
  text-align: left;
  white-space: normal;
  line-height: 1.45;
}

.pay-badge-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px;
  border-style: solid;
  border-color: rgba(234, 179, 8, 0.5) transparent transparent transparent;
}

.pay-badge-tooltip--ready {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(34, 197, 94, 0.2);
}

.pay-badge-tooltip--ready::after {
  border-color: rgba(34, 197, 94, 0.5) transparent transparent transparent;
}

.pay-dev-badge-wrap:hover .pay-badge-tooltip,
.pay-ready-badge-wrap:hover .pay-badge-tooltip,
.pay-dev-badge-wrap.is-active .pay-badge-tooltip,
.pay-ready-badge-wrap.is-active .pay-badge-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-header strong {
  font-size: 13px;
  color: #fbbf24;
  font-weight: 700;
}

.pay-badge-tooltip--ready .tooltip-header strong {
  color: #4ade80;
}

.tooltip-body p {
  font-size: 11px;
  color: #e5e7eb;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.tooltip-body p strong {
  color: #fff;
}

.tooltip-rec {
  margin-top: 8px;
  padding: 6px 8px;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 6px;
  border: 1px dashed rgba(34, 197, 94, 0.35);
  font-size: 11px;
  color: #86efac;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Visual Edit Mode & Image Editor Upgrades (Checkpoint 42)
   ========================================================================== */
.cms-image-edit-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 30px;
  background: rgba(12, 24, 14, 0.92);
  color: #f7e7b4;
  border: 1.5px solid #d4a964;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, color 0.2s, box-shadow 0.2s;
  user-select: none;
}

.cms-image-edit-badge:hover {
  transform: scale(1.06);
  background: #d4a964;
  color: #0c180e;
  box-shadow: 0 6px 24px rgba(212, 169, 100, 0.55);
}

.hero-img-badge {
  position: absolute;
  top: 92px;
  right: 28px;
  left: auto;
  z-index: 120;
}

.hero-drag-badge {
  position: absolute;
  top: 92px;
  right: 245px;
  left: auto;
  z-index: 120;
  background: rgba(22, 40, 26, 0.88);
  border: 1px solid rgba(212, 169, 100, 0.55);
  color: #f5eedc;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-drag-badge:hover {
  background: rgba(34, 62, 40, 0.95);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 6px 20px rgba(212, 169, 100, 0.35);
}

/* Hero Drag Mode HUD Toolbar */
.hero-drag-hud {
  position: fixed;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10002;
  background: rgba(18, 30, 20, 0.96);
  border: 1.5px solid rgba(212, 169, 100, 0.7);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 25px rgba(212, 169, 100, 0.25);
  border-radius: 50px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  backdrop-filter: blur(16px);
  animation: hudSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 95vw;
  flex-wrap: wrap;
}

@keyframes hudSlideDown {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.hero-drag-hud .hud-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.hero-drag-hud .hud-coords {
  display: block;
  font-size: 11px;
  color: var(--accent-gold);
  font-family: monospace;
}

.hero-drag-hud .hud-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hero-drag-hud .hud-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-drag-hud .hud-btn:hover, .hero-drag-hud .hud-btn.active {
  background: rgba(212, 169, 100, 0.30);
  border-color: var(--accent-gold);
  color: #f5eedc;
}

.hero-drag-hud .hud-zoom-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-drag-hud .hud-btn-sm {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.hero-drag-hud .hud-btn-sm:hover {
  background: rgba(212, 169, 100, 0.3);
  border-color: var(--accent-gold);
}

.hero-drag-hud .hud-btn-save {
  background: linear-gradient(135deg, #27ae60, #1e8449);
  border: none;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
  transition: all 0.2s;
}

.hero-drag-hud .hud-btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(39, 174, 96, 0.5);
}

.hero-drag-hud .hud-btn-cancel {
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #ff7675;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.hero-drag-canvas {
  position: absolute;
  inset: 0;
  z-index: 10001;
  cursor: grab;
  user-select: none;
  background: rgba(0, 0, 0, 0.05);
}

.hero-drag-canvas.grabbing {
  cursor: grabbing;
}

/* Modal Position & Focal Point Controller */
.modal-edit-image-box .img-position-section {
  background: rgba(22, 40, 26, 0.05);
  border: 1px solid rgba(22, 40, 26, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.modal-edit-image-box .position-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.modal-edit-image-box .alignment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.modal-edit-image-box .align-btn {
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid rgba(22, 40, 26, 0.16);
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.modal-edit-image-box .align-btn:hover {
  background: rgba(137, 177, 108, 0.15);
  border-color: #89b16c;
}

.modal-edit-image-box .align-btn.active {
  background: linear-gradient(135deg, #2a5a20, #1b3d14);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(42, 90, 32, 0.3);
}

.modal-edit-image-box .sliders-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.modal-edit-image-box .slider-item label {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.modal-edit-image-box .slider-item input[type="range"] {
  width: 100%;
  accent-color: #2a5a20;
  cursor: pointer;
}

.preview-drag-hint {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.focal-point-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
  transition: top 0.1s ease, left 0.1s ease;
}

.elephant-img-badge {
  top: 14px;
  left: 14px;
}

.gallery-img-badge {
  top: 12px;
  left: 12px;
}

body.cms-edit-mode .dock-item {
  cursor: text;
}

body.cms-edit-mode .dock-item [data-i18n],
body.cms-edit-mode .view-toggle-btn [data-i18n],
body.cms-edit-mode .hero-pill-badge [data-i18n] {
  border: 1.5px dashed #d4a964 !important;
  background: rgba(212, 169, 100, 0.25) !important;
  border-radius: 6px;
  padding: 3px 8px;
  cursor: text;
  outline: none;
}

.elephant-video-pill.is-empty-video {
  border: 1.5px dashed #d4a964 !important;
  background: rgba(212, 169, 100, 0.18) !important;
  color: #8b6214 !important;
  font-weight: 700;
  cursor: pointer;
}

.elephant-video-pill.is-empty-video:hover {
  background: #d4a964 !important;
  color: #0c180e !important;
}

/* Modal: Website Image Editor */
.modal-edit-image-box {
  padding: 32px 28px;
  color: var(--ink);
  background: #ffffff;
  border-radius: var(--radius-card);
  max-width: 640px;
  width: 94%;
  margin: 0 auto;
  box-shadow: 0 25px 70px rgba(12, 28, 16, 0.35);
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-edit-image-box .edit-img-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-edit-image-box .edit-img-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(137, 177, 108, 0.18);
  border: 1.5px solid rgba(137, 177, 108, 0.35);
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
}

.modal-edit-image-box h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--ink);
  margin: 0 0 4px 0;
  font-weight: 500;
}

.modal-edit-image-box .edit-subtitle {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-faint);
}

.modal-edit-image-box .img-preview-box {
  width: 100%;
  height: 210px;
  border-radius: 14px;
  overflow: hidden;
  background: #0f1c11;
  border: 1.5px solid rgba(22, 40, 26, 0.15);
  margin-bottom: 18px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-edit-image-box .img-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.modal-edit-image-box .form-group {
  margin-bottom: 16px;
}

.modal-edit-image-box label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.modal-edit-image-box input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(22, 40, 26, 0.2);
  background: #fbfbfa;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.modal-edit-image-box input[type="text"]:focus {
  border-color: #2e5f22;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(46, 95, 34, 0.12);
}

.modal-edit-image-box .presets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0 8px 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
}

.modal-edit-image-box .presets-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px 2px;
  margin-bottom: 14px;
  scrollbar-width: thin;
}

.modal-edit-image-box .preset-thumb-btn {
  width: 72px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(22, 40, 26, 0.15);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  background: #112213;
  transition: all 0.2s ease;
  position: relative;
}

.modal-edit-image-box .preset-thumb-btn:hover,
.modal-edit-image-box .preset-thumb-btn.active {
  border-color: #d4a964;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 169, 100, 0.4);
}

.modal-edit-image-box .preset-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-edit-image-box .file-upload-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(137, 177, 108, 0.10);
  border: 1px dashed rgba(46, 95, 34, 0.35);
  margin-bottom: 22px;
}

.modal-edit-image-box .file-upload-row span {
  font-size: 12.5px;
  color: #1a3a17;
  font-weight: 600;
}

.modal-edit-image-box .edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.modal-edit-image-box .btn-cancel {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--bg-canvas-warm);
  color: var(--ink-soft);
  border: 1px solid rgba(22, 40, 26, 0.15);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-edit-image-box .btn-cancel:hover {
  background: #e2dfd2;
}

.modal-edit-image-box .btn-save {
  padding: 11px 26px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #2a5a20, #1b3d14);
  color: #ffffff;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(42, 90, 32, 0.35);
  transition: all 0.2s;
}

.modal-edit-image-box .btn-save:hover {
  background: linear-gradient(135deg, #36722a, #234c1b);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(42, 90, 32, 0.45);
}





