/* ==========================================================================
   KAWAII GRADUATION CELEBRATION - STYLESHEET
   Aesthetics: Sweet Pastel Pink, Cream Vanilla, Sparkling Gold, Lavender
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-creamy: #FFFDF9;
  --bg-pink-soft: #FFF0F5;
  --bg-pink-card: rgba(255, 255, 255, 0.85);
  --pink-primary: #FF7096;
  --pink-deep: #FF477E;
  --pink-bubblegum: #FF85A1;
  --pink-subtle: #FFE3EC;
  --pink-border: #FFB3C6;
  --peach-accent: #FFCAD4;
  --gold-sparkle: #FFD166;
  --lavender-accent: #E8D7F1;
  --mint-accent: #D8F3DC;
  
  /* Text Colors */
  --text-dark: #4A3043;
  --text-muted: #7E6377;
  --text-light: #A78B9F;
  --text-white: #FFFFFF;

  /* Typography */
  --font-heading: 'Fredoka', 'Quicksand', sans-serif;
  --font-body: 'Quicksand', sans-serif;
  --font-script: 'Pacifico', cursive;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(255, 112, 150, 0.12);
  --shadow-md: 0 10px 25px rgba(255, 112, 150, 0.18);
  --shadow-lg: 0 20px 45px rgba(255, 112, 150, 0.25);
  --shadow-card: 0 12px 32px rgba(230, 80, 130, 0.12);

  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  --trans-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-bounce: 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #FFF0F5 0%, #FFF5F7 50%, #FDEBF2 100%);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Ambient Floating Particles
   -------------------------------------------------------------------------- */
.floating-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-item {
  position: absolute;
  bottom: -60px;
  user-select: none;
  opacity: 0.7;
  animation: floatUpward 14s linear infinite;
}

@keyframes floatUpward {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-115vh) rotate(360deg) scale(1.1);
    opacity: 0;
  }
}

.floating-item.floating-lily-item {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.floating-lily-graphic {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(255, 117, 143, 0.45));
  pointer-events: none;
  user-select: none;
  animation: lilyPetalSway 3.5s ease-in-out infinite alternate;
}

@keyframes lilyPetalSway {
  0% { transform: rotate(-14deg) scale(0.95); }
  100% { transform: rotate(14deg) scale(1.05); }
}

body.midnight-mode .floating-lily-graphic {
  filter: drop-shadow(0 0 10px rgba(255, 133, 161, 0.65)) brightness(1.08);
}

/* --------------------------------------------------------------------------
   1. Interactive Gift Envelope Overlay
   -------------------------------------------------------------------------- */
.envelope-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #FFF2F6 0%, #FCD3DE 100%);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  backdrop-filter: blur(8px);
}

.envelope-overlay.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: gentleBob 3s ease-in-out infinite alternate;
}

@keyframes gentleBob {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.envelope-sparkles {
  font-size: 1.8rem;
  display: flex;
  gap: 1rem;
  animation: sparkleFlash 2s ease-in-out infinite;
}

@keyframes sparkleFlash {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.15); }
}

.envelope-box {
  width: 320px;
  height: 220px;
  background: linear-gradient(135deg, #FFAAA6 0%, #FF85A1 100%);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(255, 71, 126, 0.35), 0 0 0 8px #FFF0F5;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  perspective: 1000px;
  transition: transform 0.4s var(--trans-bounce);
}

.envelope-box:hover {
  transform: scale(1.04) rotate(-1deg);
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 160px solid transparent;
  border-right: 160px solid transparent;
  border-top: 110px solid #FF7096;
  transform-origin: top;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 4;
}

.envelope-box.untying .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

.envelope-ribbon {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.5s ease;
}

.ribbon-vertical {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 36px;
  transform: translateX(-50%);
  background: linear-gradient(to right, #FFE57F, #FFD166, #FFB703);
  box-shadow: 0 2px 10px rgba(255, 209, 102, 0.5);
}

.ribbon-horizontal {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 36px;
  transform: translateY(-50%);
  background: linear-gradient(to bottom, #FFE57F, #FFD166, #FFB703);
  box-shadow: 0 2px 10px rgba(255, 209, 102, 0.5);
}

.ribbon-bow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.2rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
  animation: bowWiggle 2.5s ease-in-out infinite;
}

@keyframes bowWiggle {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  25% { transform: translate(-50%, -50%) rotate(6deg); }
  75% { transform: translate(-50%, -50%) rotate(-6deg); }
}

.envelope-letter-preview {
  position: absolute;
  width: 80%;
  height: 70%;
  background: #FFFFFF;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.envelope-box.untying .envelope-letter-preview {
  transform: translateY(-80px);
}

.letter-stamp {
  font-size: 2.2rem;
}

.letter-text {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--pink-deep);
  font-size: 1rem;
}

.open-gift-btn {
  position: relative;
  margin-top: 1.2rem;
  background: linear-gradient(135deg, #FF477E 0%, #FF7096 100%);
  color: white;
  border: none;
  padding: 0.95rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 25px rgba(255, 71, 126, 0.45);
  transition: all 0.3s var(--trans-bounce);
  z-index: 999;
  pointer-events: auto !important;
}

.open-gift-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 16px 35px rgba(255, 71, 126, 0.65);
}

.open-gift-btn:active {
  transform: scale(0.96) translateY(0);
}

.envelope-hint {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   2. Main Layout & Top Navbar
   -------------------------------------------------------------------------- */
.main-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
}

.top-nav {
  position: sticky;
  top: 16px;
  margin: 0 auto;
  width: 92%;
  max-width: 1200px;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 182, 193, 0.6);
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  font-size: 1.5rem;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink-deep), #FF85A1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-item {
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: var(--pink-deep);
  background: var(--pink-subtle);
  transform: translateY(-2px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.music-toggle-btn {
  background: linear-gradient(135deg, #FFE8F0 0%, #FFD6E5 100%);
  border: 2px solid var(--pink-border);
  color: var(--pink-deep);
  border-radius: 50px;
  padding: 0.45rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s var(--trans-bounce);
}

.music-toggle-btn:hover {
  background: var(--pink-primary);
  color: white;
  border-color: var(--pink-primary);
  transform: scale(1.05);
}

.music-toggle-btn.playing {
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-primary));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(255, 71, 126, 0.4);
}

.sound-waves {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}

.sound-waves span {
  width: 3px;
  height: 100%;
  background-color: currentColor;
  border-radius: 2px;
  transform-origin: bottom;
  animation: waveDance 1s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.music-toggle-btn.playing .sound-waves span {
  animation-play-state: running;
}

.sound-waves span:nth-child(2) { animation-delay: 0.2s; }
.sound-waves span:nth-child(3) { animation-delay: 0.4s; }

@keyframes waveDance {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}

.theme-toggle-btn {
  background: linear-gradient(135deg, #FFF0F5 0%, #FFE0EC 100%);
  border: 2px solid var(--pink-border);
  color: var(--pink-deep);
  border-radius: 50px;
  padding: 0.45rem 0.95rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.3s var(--trans-bounce);
}

.theme-toggle-btn:hover {
  background: var(--pink-subtle);
  border-color: var(--pink-deep);
  transform: scale(1.05);
}

body.midnight-mode .theme-toggle-btn {
  background: linear-gradient(135deg, #2A1B3D 0%, #3D265A 100%);
  border-color: #A27BDB;
  color: #FFD166;
  box-shadow: 0 0 12px rgba(162, 123, 219, 0.4);
}

/* ==========================================================================
   MIDNIGHT LAW MODE (Dark Mode Pastel)
   Aesthetics: Deep Twilight Indigo, Neon Pastel Rose, Golden Amber Starlight
   ========================================================================== */
body.midnight-mode {
  background: linear-gradient(135deg, #181124 0%, #201335 40%, #150D21 100%) !important;
  color: #F3E8EE !important;
}

body.midnight-mode .top-nav {
  background: rgba(32, 19, 53, 0.88);
  border-color: rgba(162, 123, 219, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body.midnight-mode .nav-item {
  color: #D3BFDC;
}

body.midnight-mode .nav-item:hover {
  color: #FF85A1;
  background: rgba(255, 112, 150, 0.15);
}

body.midnight-mode .music-toggle-btn {
  background: rgba(42, 27, 61, 0.9);
  border-color: #A27BDB;
  color: #FFCAD4;
}

body.midnight-mode .music-toggle-btn:hover {
  background: #A27BDB;
  color: white;
}

body.midnight-mode .hero-badge-pill {
  background: rgba(42, 27, 61, 0.85);
  border-color: #FF85A1;
  color: #FFD166;
  box-shadow: 0 0 15px rgba(255, 133, 161, 0.25);
}

body.midnight-mode .hero-title {
  color: #FFFFFF;
}

body.midnight-mode .hero-campus {
  color: #D8B4E2;
}

body.midnight-mode .hero-quote-card {
  background: rgba(35, 21, 56, 0.85);
  border-color: rgba(255, 133, 161, 0.35);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

body.midnight-mode .quote-text {
  color: #EBDCE6;
}

body.midnight-mode .quote-sender .sender-text {
  color: #D8B4E2;
}

body.midnight-mode .cta-secondary-btn {
  background: rgba(42, 27, 61, 0.8);
  border-color: #FF85A1;
  color: #FFCAD4;
}

body.midnight-mode .mascot-frame {
  background: radial-gradient(circle, #3D2459 0%, #201335 100%);
  border-color: #FF85A1;
  box-shadow: 0 15px 40px rgba(255, 112, 150, 0.25);
}

/* Certificate in Midnight Mode */
body.midnight-mode .section-title {
  color: #FFFFFF;
}

body.midnight-mode .section-desc {
  color: #CBAECF;
}

body.midnight-mode .certificate-card {
  background: linear-gradient(135deg, #25163D 0%, #1A0F2C 100%);
  border-color: #FFD166;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 25px rgba(255, 209, 102, 0.2);
}

body.midnight-mode .cert-inner {
  background: rgba(26, 15, 44, 0.95);
  border-color: rgba(255, 209, 102, 0.4);
}

body.midnight-mode .cert-main-title {
  color: #FFD166;
}

body.midnight-mode .cert-code {
  color: #D8B4E2;
}

body.midnight-mode .cert-intro {
  color: #CBAECF;
}

body.midnight-mode .cert-recipient-name {
  color: #FFFFFF;
  text-shadow: 0 0 15px rgba(255, 112, 150, 0.5);
}

body.midnight-mode .cert-achievement {
  color: #D8B4E2;
}

body.midnight-mode .cert-badge-rank {
  background: rgba(255, 209, 102, 0.12);
  border-color: #FFD166;
}

body.midnight-mode .rank-title {
  color: #FFD166;
}

body.midnight-mode .detail-box {
  background: rgba(45, 27, 72, 0.7);
  border-color: rgba(162, 123, 219, 0.35);
}

body.midnight-mode .detail-label {
  color: #CBAECF;
}

body.midnight-mode .detail-val {
  color: #FFFFFF;
}

body.midnight-mode .cert-footer .sign-title {
  color: #CBAECF;
}

body.midnight-mode .cert-footer .sign-name {
  color: #FFCAD4;
}

/* Timeline in Midnight Mode */
body.midnight-mode .timeline-content-card {
  background: rgba(36, 21, 58, 0.9);
  border-color: rgba(162, 123, 219, 0.35);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

body.midnight-mode .timeline-heading {
  color: #FFFFFF;
}

body.midnight-mode .timeline-text {
  color: #DBC7DC;
}

body.midnight-mode .timeline-tags span {
  background: rgba(255, 133, 161, 0.15);
  border-color: rgba(255, 133, 161, 0.3);
  color: #FFCAD4;
}

/* Polaroid & Gallery in Midnight Mode */
body.midnight-mode .polaroid-card {
  background: #25163D;
  border-color: #3D265A;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

body.midnight-mode .caption-handwritten {
  color: #FFFFFF;
}

body.midnight-mode .caption-date {
  color: #CBAECF;
}

/* Wishes Wall in Midnight Mode */
body.midnight-mode .sticky-note {
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* Long Letter in Midnight Mode */
body.midnight-mode .letter-paper {
  background: #211438;
  background-image: radial-gradient(rgba(162, 123, 219, 0.3) 1px, transparent 1px);
  border-color: rgba(255, 133, 161, 0.35);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}

body.midnight-mode .salutation-recipient {
  color: #FFFFFF;
}

body.midnight-mode .letter-date {
  background: #2D1B4B;
  border-color: #3D265A;
  color: #D8B4E2;
}

body.midnight-mode .letter-lead {
  background: rgba(255, 112, 150, 0.12);
  color: #F6EDF3;
  border-color: #FF7096;
}

body.midnight-mode .letter-subhead {
  color: #FFD166;
}

body.midnight-mode .letter-paragraph p {
  color: #E2D3E3;
}

body.midnight-mode .letter-quote-callout {
  background: rgba(45, 27, 72, 0.7);
  border-color: rgba(255, 133, 161, 0.4);
}

body.midnight-mode .letter-quote-callout p {
  color: #FFCAD4;
}

body.midnight-mode .letter-closing {
  background: rgba(255, 112, 150, 0.15);
}

body.midnight-mode .letter-closing p {
  color: #FFD166;
}

body.midnight-mode .signature-name {
  color: #FFCAD4;
}

body.midnight-mode .signature-seal {
  background: #2D1B4B;
  border-color: #FFD166;
}

body.midnight-mode .signature-seal .seal-caption {
  color: #FFD166;
}

/* Modals in Midnight Mode */
body.midnight-mode .modal-card {
  background: #24153E;
  border-color: #4A2E6E;
  color: #F3E8EE;
}

body.midnight-mode .modal-title {
  color: #FFD166;
}

body.midnight-mode .form-group label {
  color: #D8B4E2;
}

body.midnight-mode .form-group input,
body.midnight-mode .form-group textarea {
  background: #1B0F2F;
  border-color: #4A2E6E;
  color: #FFFFFF;
}

body.midnight-mode .lily-modal-card {
  background: radial-gradient(circle at top center, #2A1945 40%, #1A0E2E 100%);
  border-color: rgba(255, 133, 161, 0.4);
}

body.midnight-mode .lily-modal-title {
  color: #FFFFFF;
}

body.midnight-mode .lily-modal-subtitle {
  color: #CBAECF;
}

body.midnight-mode .lily-card-message {
  background: rgba(45, 27, 72, 0.7);
  border-color: rgba(255, 133, 161, 0.35);
}

body.midnight-mode .lily-quote-head {
  color: #FFD166;
}

body.midnight-mode .lily-body-text {
  color: #EBDCE6;
}

body.midnight-mode .lily-congrats-tag {
  color: #FFCAD4;
}

body.midnight-mode .site-footer {
  background: linear-gradient(to top, #140C20, transparent);
  border-color: rgba(162, 123, 219, 0.3);
}

body.midnight-mode .footer-text {
  color: #E2D3E3;
}

body.midnight-mode .footer-sub {
  color: #A78B9F;
}

body.midnight-mode .back-to-top-btn {
  background: #25163D;
  border-color: #4A2E6E;
  color: #FFCAD4;
}

/* Floating Lily Button in Midnight Mode */
body.midnight-mode .lily-float-btn {
  background: linear-gradient(135deg, #2E1B48 0%, #46266E 100%);
  border-color: #FFD166;
  box-shadow: 0 8px 25px rgba(255, 209, 102, 0.35);
}

body.midnight-mode .lily-btn-tooltip {
  background: #24153E;
  color: #FFD166;
  border-color: #4A2E6E;
}

/* Cat Mascot Widget in Midnight Mode */
body.midnight-mode .cat-speech-bubble {
  background: #25163D;
  border-color: #5D378D;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(255, 209, 102, 0.15);
}

body.midnight-mode .cat-badge-tag {
  background: #3B2160;
  color: #FFD166;
  border-color: #6C3EB0;
}

body.midnight-mode .cat-speech-text {
  color: #F3E8FF;
}

body.midnight-mode .cat-bubble-actions .cat-action-chip {
  background: #341D54;
  border-color: #6C3EB0;
  color: #FFCAD4;
}

body.midnight-mode .cat-bubble-actions .cat-action-chip:hover {
  background: #FF85A1;
  color: #1A0F2E;
  border-color: #FFD166;
}

body.midnight-mode .cat-bubble-arrow {
  border-top-color: #25163D;
}

body.midnight-mode .cat-avatar-btn {
  background: linear-gradient(135deg, #2E1B48 0%, #46266E 100%);
  border-color: #FFD166;
  box-shadow: 0 8px 25px rgba(255, 209, 102, 0.35);
}

body.midnight-mode .cat-status-dot {
  border-color: #2E1B48;
}

/* Courtroom in Midnight Mode */
body.midnight-mode .court-bench-card {
  background: #1F1333;
  border-color: #4A2E6E;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 25px rgba(162, 123, 219, 0.15);
}

body.midnight-mode .court-gavel-badge {
  background: #3B2160;
  border-color: #6C3EB0;
  color: #FFD166;
}

body.midnight-mode .court-case-title {
  color: #FFFFFF;
}

body.midnight-mode .court-case-number {
  color: #FFCAD4;
}

body.midnight-mode .court-meta-text {
  color: #A78B9F;
}

body.midnight-mode .party-box {
  background: #281742;
  border-color: #4E2E78;
}

body.midnight-mode .party-name {
  color: #FFFFFF;
}

body.midnight-mode .party-status {
  color: #C8B9D6;
}

body.midnight-mode .court-vs-badge {
  background: #381E5C;
  border-color: #FFD166;
  color: #FFD166;
}

body.midnight-mode .indictment-card {
  background: #25163D;
  border-color: #4B2B73;
}

body.midnight-mode .indictment-content h5 {
  color: #FFFFFF;
}

body.midnight-mode .indictment-content p {
  color: #D3C5E5;
}

body.midnight-mode .exhibit-pill {
  background: #2E1B48;
  border-color: #5D378D;
  color: #F0E6FF;
}

body.midnight-mode .court-verdict-box {
  background: linear-gradient(135deg, #2A1744 0%, #1D1030 100%);
  border-color: #FFD166;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body.midnight-mode .verdict-title {
  color: #FFFFFF;
}

body.midnight-mode .verdict-list {
  color: #E8DCF8;
}

body.midnight-mode .court-copy-verdict-btn {
  background: #2A1744;
  color: #FFCAD4;
  border-color: #6C3EB0;
}

/* --------------------------------------------------------------------------
   3. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 4rem 1.5rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-badge-pill {
  background: rgba(255, 255, 255, 0.95);
  border: 2px dashed var(--pink-primary);
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-sm);
  animation: pulseBadge 2.5s infinite;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.badge-dot {
  width: 10px;
  height: 10px;
  background-color: #06D6A0;
  border-radius: 50%;
  box-shadow: 0 0 8px #06D6A0;
}

.badge-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: var(--pink-deep);
}

.hero-card-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: center;
  width: 100%;
}

/* Hero Visual & Mascot Frame */
.hero-visual {
  display: flex;
  justify-content: center;
}

.mascot-frame {
  position: relative;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #FFF0F5 0%, #FFD6E5 100%);
  border-radius: 35px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 10px rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.4s var(--trans-bounce);
}

.mascot-frame:hover {
  transform: scale(1.03) rotate(-1deg);
}

.mascot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
  border: 3px solid white;
}

.frame-decorations .decor {
  position: absolute;
  font-size: 2rem;
  animation: spinSlow 8s linear infinite;
}

.decor-tl { top: -14px; left: -14px; }
.decor-tr { top: -14px; right: -14px; animation-duration: 6s; }
.decor-bl { bottom: -14px; left: -14px; animation-duration: 7s; }
.decor-br { bottom: -14px; right: -14px; }

@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.toga-float-badge {
  position: absolute;
  bottom: -18px;
  background: linear-gradient(135deg, #FFE57F 0%, #FFD166 100%);
  color: #4A3043;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border: 3px solid white;
  box-shadow: var(--shadow-md);
  animation: badgeBob 2.5s ease-in-out infinite alternate;
}

@keyframes badgeBob {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero-subtitle {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--pink-deep);
  transform: rotate(-2deg);
  display: inline-block;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

.highlight-name {
  background: linear-gradient(135deg, #FF477E 0%, #FF85A1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 4px 15px rgba(255, 71, 126, 0.15);
}

.hero-campus {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-quote-card {
  background: var(--bg-pink-card);
  backdrop-filter: blur(12px);
  border: 2px solid var(--pink-subtle);
  border-radius: 24px;
  padding: 1.6rem 2rem;
  position: relative;
  box-shadow: var(--shadow-card);
}

.quote-icon {
  position: absolute;
  top: -12px;
  left: 20px;
  font-family: serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--pink-bubblegum);
  opacity: 0.6;
}

.quote-text {
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.quote-sender {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--pink-deep);
  font-size: 0.95rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.cta-confetti-btn {
  background: linear-gradient(135deg, #FF477E 0%, #FF7096 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 12px 28px rgba(255, 71, 126, 0.45);
  transition: all 0.3s var(--trans-bounce);
  position: relative;
}

.cta-confetti-btn:hover {
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 16px 36px rgba(255, 71, 126, 0.6);
}

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

.btn-bounce-icon {
  font-size: 1.4rem;
  animation: iconBounce 1.5s infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px) rotate(15deg); }
}

.btn-sparkle-count {
  background: rgba(255, 255, 255, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

.cta-secondary-btn {
  text-decoration: none;
  background: white;
  color: var(--pink-deep);
  border: 2px solid var(--pink-border);
  padding: 0.9rem 1.6rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.cta-secondary-btn:hover {
  background: var(--pink-subtle);
  border-color: var(--pink-deep);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Section Shared Headers
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--pink-deep);
  background: #FFE5EE;
  padding: 0.35rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   4. Section: Certificate of Cuteness & Pride
   -------------------------------------------------------------------------- */
.certificate-section {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.certificate-card-wrapper {
  display: flex;
  justify-content: center;
}

.certificate-card {
  position: relative;
  width: 100%;
  max-width: 820px;
  background: linear-gradient(135deg, #FFFDF9 0%, #FFF5F8 100%);
  border: 12px solid #FFFFFF;
  border-radius: 30px;
  padding: 15px;
  box-shadow: 0 25px 60px rgba(255, 112, 150, 0.22), 0 0 0 4px var(--pink-border);
}

.cert-corner {
  position: absolute;
  font-size: 1.8rem;
  z-index: 5;
}

.corner-tl { top: 12px; left: 12px; }
.corner-tr { top: 12px; right: 12px; }
.corner-bl { bottom: 12px; left: 12px; }
.corner-br { bottom: 12px; right: 12px; }

.cert-inner {
  border: 2px dashed #FFB3C6;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  background: rgba(255, 255, 255, 0.6);
}

.cert-ribbon-top {
  display: inline-block;
  background: linear-gradient(135deg, #FFD166 0%, #FFB703 100%);
  color: #4A3043;
  padding: 0.4rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 12px rgba(255, 183, 3, 0.3);
}

.cert-main-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--pink-deep);
  margin-bottom: 0.4rem;
}

.cert-code {
  font-size: 0.85rem;
  font-family: monospace;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.cert-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.cert-recipient-name {
  font-family: var(--font-script);
  font-size: 3.2rem;
  color: var(--pink-deep);
  margin-bottom: 0.8rem;
  text-shadow: 0 3px 10px rgba(255, 71, 126, 0.2);
}

.cert-achievement {
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.cert-badge-rank {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #FFF0F5;
  border: 2px solid var(--pink-bubblegum);
  padding: 0.6rem 1.6rem;
  border-radius: 50px;
  margin-bottom: 2.5rem;
}

.rank-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--pink-deep);
}

.cert-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.detail-box {
  background: white;
  border: 1px solid var(--pink-subtle);
  padding: 1.2rem 1rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.detail-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.detail-val {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 1rem;
}

.cert-sign {
  width: 180px;
  text-align: center;
}

.sign-line {
  width: 100%;
  height: 2px;
  background: #FFCAD4;
  margin-bottom: 0.6rem;
}

.sign-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sign-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.cert-seal-box {
  cursor: pointer;
  transition: transform 0.3s var(--trans-bounce);
}

.cert-seal-box:hover {
  transform: scale(1.1) rotate(5deg);
}

.wax-seal {
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, #FF477E 0%, #D81159 100%);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(216, 17, 89, 0.45), inset 0 2px 5px rgba(255,255,255,0.4);
  border: 3px dashed #FFE5EC;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  animation: sealPulse 3s ease-in-out infinite alternate;
}

@keyframes sealPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.wax-seal span:first-child {
  font-size: 1.4rem;
}

.seal-text {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   5. Section: Journey Timeline (Road to Wisuda)
   -------------------------------------------------------------------------- */
.timeline-section {
  padding: 5rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-container {
  position: relative;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6px;
  background: linear-gradient(to bottom, #FFCAD4, #FF7096, #FF477E);
  transform: translateX(-50%);
  border-radius: 10px;
}

.timeline-item {
  position: relative;
  width: 50%;
  margin-bottom: 3.5rem;
}

.timeline-item.left {
  left: 0;
  padding-right: 3.5rem;
}

.timeline-item.right {
  left: 50%;
  padding-left: 3.5rem;
}

.timeline-marker {
  position: absolute;
  top: 15px;
  width: 48px;
  height: 48px;
  background: white;
  border: 4px solid var(--pink-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(255, 112, 150, 0.3);
  z-index: 10;
}

.timeline-item.left .timeline-marker {
  right: -24px;
}

.timeline-item.right .timeline-marker {
  left: -24px;
}

.timeline-content-card {
  background: var(--bg-pink-card);
  backdrop-filter: blur(10px);
  border: 2px solid var(--pink-subtle);
  border-radius: 24px;
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--trans-bounce), box-shadow 0.3s ease;
}

.timeline-content-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--pink-bubblegum);
}

.timeline-content-card.highlight-card {
  background: linear-gradient(135deg, #FFF0F5 0%, #FFE5EE 100%);
  border: 2px solid var(--pink-primary);
  box-shadow: 0 15px 35px rgba(255, 71, 126, 0.22);
}

.timeline-step {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--pink-deep);
  margin-bottom: 0.5rem;
}

.timeline-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.timeline-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.timeline-text code {
  background: #FFF0F5;
  color: var(--pink-deep);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.timeline-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.timeline-tags span {
  font-size: 0.8rem;
  font-weight: 600;
  background: white;
  color: var(--pink-deep);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  border: 1px solid var(--pink-subtle);
}

/* --------------------------------------------------------------------------
   6. Section: Polaroid Scrapbook Memories
   -------------------------------------------------------------------------- */
.gallery-section {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.scrapbook-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 2.5rem 1.5rem;
}

.polaroid-card {
  position: relative;
  background: #FFFFFF;
  padding: 16px 16px 28px;
  border-radius: 12px;
  box-shadow: 0 16px 35px rgba(74, 48, 67, 0.12), 0 0 0 1px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.4s var(--trans-bounce);
  transform-origin: center;
}

.polaroid-card.tilt-left {
  transform: rotate(-3deg);
}

.polaroid-card.tilt-straight {
  transform: rotate(1deg) translateY(-8px);
}

.polaroid-card.tilt-right {
  transform: rotate(4deg);
}

.polaroid-card:hover {
  transform: scale(1.06) rotate(0deg) translateY(-10px);
  box-shadow: 0 24px 50px rgba(255, 71, 126, 0.25);
  z-index: 20;
}

.polaroid-img-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 6px;
  background: #FCEFF4;
  margin-bottom: 1rem;
}

.polaroid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.polaroid-card:hover .polaroid-img-wrap img {
  transform: scale(1.05);
}

.polaroid-caption {
  text-align: center;
}

.caption-handwritten {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.caption-date {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
}

/* Washi Tape Details */
.washi-tape {
  position: absolute;
  top: -12px;
  width: 100px;
  height: 26px;
  background: rgba(255, 182, 193, 0.75);
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border-left: 2px dashed rgba(255,255,255,0.6);
  border-right: 2px dashed rgba(255,255,255,0.6);
  z-index: 5;
}

.tape-top-center {
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
}

.tape-top-right {
  right: 20px;
  transform: rotate(6deg);
  background: rgba(255, 229, 127, 0.75);
}

.tape-top-left {
  left: 20px;
  transform: rotate(-7deg);
  background: rgba(232, 215, 241, 0.75);
}

.polaroid-sticker {
  position: absolute;
  font-size: 1.8rem;
  bottom: 8px;
  right: 12px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* --------------------------------------------------------------------------
   7. Section: Interactive Wish Wall (Sticky Notes)
   -------------------------------------------------------------------------- */
.wishes-section {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.wishes-action-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.add-wish-btn {
  background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-deep) 100%);
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s var(--trans-bounce);
}

.add-wish-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.sticky-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.sticky-note {
  position: relative;
  padding: 2.2rem 1.8rem 1.6rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s var(--trans-bounce);
}

.sticky-note:nth-child(even) { transform: rotate(1.5deg); }
.sticky-note:nth-child(odd) { transform: rotate(-1.5deg); }

.sticky-note:hover {
  transform: scale(1.05) rotate(0deg) translateY(-6px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.12);
  z-index: 10;
}

.note-pink { background: #FFD6E5; }
.note-peach { background: #FFE5D9; }
.note-lavender { background: #E8D7F1; }
.note-mint { background: #D8F3DC; }

.pin-icon {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

.note-content {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-dark);
}

.note-author {
  margin-top: 1.2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(74, 48, 67, 0.8);
  text-align: right;
}

/* --------------------------------------------------------------------------
   7b. Special Long Letter & Heartfelt Message Section
   -------------------------------------------------------------------------- */
.long-letter-section {
  padding: 5rem 1.5rem;
  position: relative;
}

.long-letter-container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.letter-paper {
  background: #FFFDF9;
  background-image: radial-gradient(#F3D1DC 0.75px, transparent 0.75px);
  background-size: 24px 24px;
  border-radius: 28px;
  border: 2px solid #FCD4DE;
  box-shadow: 0 18px 45px rgba(255, 112, 150, 0.15), 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 3.5rem 3.2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.letter-paper:hover {
  box-shadow: 0 22px 55px rgba(255, 112, 150, 0.22);
}

/* Decorative Letter Badges & Postmarks */
.letter-decorations {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.letter-postmark {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--pink-deep);
  border: 1.5px dashed var(--pink-border);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  background: #FFF0F5;
}

.letter-badge-toga {
  font-size: 1.8rem;
  animation: gentleBob 3s ease-in-out infinite alternate;
}

.letter-envelope-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.salutation-prefix {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  color: var(--pink-deep);
  display: block;
  margin-bottom: 0.3rem;
}

.salutation-recipient {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--pink-dark);
  line-height: 1.2;
}

.letter-date {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--pink-border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.letter-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
  color: var(--pink-accent);
  font-size: 1.1rem;
  opacity: 0.85;
}

.letter-body {
  position: relative;
  z-index: 2;
}

.letter-lead {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.8;
  color: #4A2E3B;
  background: linear-gradient(135deg, rgba(255, 235, 240, 0.7), rgba(255, 245, 248, 0.4));
  border-left: 4px solid var(--pink-accent);
  padding: 1.2rem 1.6rem;
  border-radius: 0 16px 16px 0;
  margin-bottom: 2rem;
}

.letter-paragraph {
  margin-bottom: 2.2rem;
}

.letter-subhead {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pink-dark);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.letter-paragraph p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.letter-quote-callout {
  margin: 2.2rem 0;
  position: relative;
  background: #FFF7F9;
  border: 2px dashed var(--pink-border);
  border-radius: 20px;
  padding: 1.8rem 2.2rem;
  text-align: center;
}

.callout-quote-mark {
  font-family: var(--font-accent);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--pink-accent);
  opacity: 0.4;
  position: absolute;
  top: 6px;
  left: 18px;
}

.letter-quote-callout p {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--pink-dark);
  position: relative;
  z-index: 2;
  margin: 0;
}

.letter-closing {
  margin: 2rem 0;
  padding: 1.2rem 1.6rem;
  background: #FFE8EF;
  border-radius: 16px;
  text-align: center;
}

.letter-closing p {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pink-dark);
  margin: 0;
}

.letter-signature-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px dashed #FCD4DE;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.signature-stamp {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.signature-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.signature-name {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  color: var(--pink-deep);
  margin: 0;
}

.signature-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: #FFF0F4;
  border: 2px solid #FF85A1;
  border-radius: 50%;
  width: 75px;
  height: 75px;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 133, 161, 0.25);
  transform: rotate(-8deg);
}

.signature-seal span:first-child {
  font-size: 1.5rem;
}

.seal-caption {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--pink-deep);
}

.letter-actions {
  display: flex;
  justify-content: center;
  margin-top: 2.8rem;
}

.letter-celebrate-btn {
  background: linear-gradient(135deg, var(--pink-accent), var(--pink-deep));
  color: white;
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 71, 126, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.letter-celebrate-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(255, 71, 126, 0.45);
}

.letter-celebrate-btn:active {
  transform: translateY(0) scale(0.98);
}

/* --------------------------------------------------------------------------
   7b. Ruang Sidang Kasih Sayang (The Cute Courtroom)
   -------------------------------------------------------------------------- */
.courtroom-section {
  padding: 5rem 1.5rem 6rem;
  max-width: 1050px;
  margin: 0 auto;
}

.courtroom-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.court-bench-card {
  width: 100%;
  background: #FFFFFF;
  border-radius: 32px;
  padding: 3.5rem 3rem;
  box-shadow: 0 20px 60px rgba(255, 112, 150, 0.18), 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 3px solid #FFCAD4;
  position: relative;
  overflow: hidden;
}

.court-bench-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(90deg, #FF758F, #FFB703, #A27BDB, #FF4D6D);
}

.court-bench-header {
  text-align: center;
  margin-bottom: 2.8rem;
}

.court-gavel-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FFF0F5, #FFE5EC);
  color: #C9184A;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  border: 1.5px solid #FFB3C6;
  margin-bottom: 0.9rem;
}

.court-case-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  color: #2B2D42;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.court-case-number {
  font-family: monospace;
  font-size: 0.95rem;
  color: #D81B60;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.court-meta-text {
  font-size: 0.82rem;
  letter-spacing: 1px;
  color: #8D99AE;
  font-weight: 700;
  text-transform: uppercase;
}

/* Court Parties Grid */
.court-parties-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.8rem;
}

.party-box {
  background: #FFF7F9;
  border: 2px solid #FFCCD5;
  border-radius: 20px;
  padding: 1.6rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.party-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(255, 112, 150, 0.15);
}

.party-box.accused {
  background: linear-gradient(135deg, #FFF5F7 0%, #FFEBF0 100%);
  border-color: #FF85A1;
}

.party-role-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 0.6rem;
  background: #FFFFFF;
  border: 1px solid #FFCCD5;
  color: #C9184A;
}

.party-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #2B2D42;
  margin-bottom: 0.4rem;
}

.party-status {
  font-size: 0.85rem;
  color: #6C757D;
  margin: 0;
  line-height: 1.4;
}

.court-vs-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  color: #FF758F;
  background: #FFF0F5;
  border: 2px solid #FFCAD4;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  box-shadow: 0 4px 12px rgba(255, 112, 150, 0.2);
}

/* Court Subheadings */
.court-subheading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #C9184A;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 1.2rem;
  text-align: center;
}

/* Indictments */
.court-indictments-section {
  margin-bottom: 2.8rem;
}

.indictment-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.indictment-card {
  background: #FAF8F9;
  border: 1.5px solid #F0D9E2;
  border-radius: 20px;
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.indictment-card:hover {
  transform: translateY(-4px);
  border-color: #FF85A1;
  box-shadow: 0 8px 20px rgba(255, 112, 150, 0.15);
}

.indictment-num {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  background: #FFCAD4;
  color: #800F2F;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
}

.indictment-content h5 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #2B2D42;
  margin-bottom: 0.55rem;
}

.indictment-content p {
  font-size: 0.88rem;
  color: #4A5568;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.verdict-pill {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  text-align: center;
}

.verdict-pill.guilty {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}

/* Court Evidence Exhibits */
.court-exhibits-section {
  margin-bottom: 2.8rem;
}

.exhibits-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.exhibit-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFF0F5;
  border: 1.5px solid #FFCAD4;
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  font-size: 0.88rem;
  color: #3D4552;
}

.exhibit-icon {
  font-size: 1.15rem;
}

/* Final Verdict Box */
.court-verdict-box {
  background: linear-gradient(135deg, #FFF9FA 0%, #FFF0F4 100%);
  border: 2.5px solid #FF758F;
  border-radius: 24px;
  padding: 2.4rem 2.2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(255, 117, 143, 0.15);
}

.verdict-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FF4D6D, #C9184A);
  color: white;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.4rem 1.4rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(201, 24, 74, 0.3);
  margin-bottom: 1.2rem;
}

.verdict-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #2B2D42;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.verdict-list {
  text-align: left;
  max-width: 750px;
  margin: 0 auto 1.5rem;
  padding-left: 1.5rem;
  font-size: 0.98rem;
  line-height: 1.75;
  color: #3D4552;
}

.verdict-list li {
  margin-bottom: 0.8rem;
}

.verdict-foot-note {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: #D81B60;
  margin-top: 1rem;
}

/* Interactive Gavel Buttons */
.court-interactive-actions {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.court-gavel-strike-btn {
  background: linear-gradient(135deg, #FF4D6D, #D81B60);
  color: white;
  border: none;
  padding: 0.95rem 2.4rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(216, 27, 96, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.court-gavel-strike-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(216, 27, 96, 0.45);
}

.court-gavel-strike-btn:active,
.court-gavel-strike-btn.slamming {
  animation: gavelSlam 0.4s ease;
}

@keyframes gavelSlam {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-22deg) translateY(-8px); }
  65% { transform: scale(1.05) rotate(15deg) translateY(4px); }
  100% { transform: scale(1) rotate(0deg) translateY(0); }
}

.gavel-strike-icon {
  font-size: 1.4rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.gavel-strike-count {
  background: rgba(255, 255, 255, 0.25);
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-size: 0.78rem;
}

.court-copy-verdict-btn {
  background: #FFFFFF;
  color: #C9184A;
  border: 2px solid #FF85A1;
  padding: 0.95rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 112, 150, 0.15);
  transition: all 0.25s ease;
}

.court-copy-verdict-btn:hover {
  background: #FFF0F5;
  border-color: #FF4D6D;
  transform: translateY(-2px);
}

/* Gavel Status Toast */
.gavel-status-toast {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #D81B60;
  margin-top: 1.2rem;
  min-height: 1.5rem;
  transition: opacity 0.3s ease;
}

/* --------------------------------------------------------------------------
   8. Footer & Back To Top
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(to top, #FFF0F5, transparent);
  border-top: 2px dashed var(--pink-subtle);
  margin-top: 4rem;
}

.footer-heart {
  font-size: 2rem;
  margin-bottom: 1rem;
  animation: heartFloat 2s ease-in-out infinite alternate;
}

@keyframes heartFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.footer-text {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.footer-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.back-to-top-btn {
  background: white;
  border: 2px solid var(--pink-border);
  color: var(--pink-deep);
  border-radius: 50px;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-to-top-btn:hover {
  background: var(--pink-subtle);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   9. Modals (Customizer, Wish, Lightbox)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(74, 48, 67, 0.4);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1.5rem;
}

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

.modal-card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.18);
  border: 3px solid var(--pink-subtle);
  transform: scale(0.9);
  transition: transform 0.3s var(--trans-bounce);
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pink-deep);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--pink-deep);
}

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--pink-subtle);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--pink-primary);
}

.color-picker-group {
  display: flex;
  gap: 0.8rem;
}

.color-option {
  cursor: pointer;
}

.color-option input {
  display: none;
}

.color-swatch {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.color-option input:checked + .color-swatch {
  border-color: var(--pink-deep);
  transform: scale(1.08);
}

.swatch-pink { background: #FFD6E5; }
.swatch-peach { background: #FFE5D9; }
.swatch-lavender { background: #E8D7F1; }
.swatch-mint { background: #D8F3DC; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.btn-cancel {
  background: #F0EDEE;
  border: none;
  padding: 0.65rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
}

.btn-save {
  background: linear-gradient(135deg, var(--pink-primary), var(--pink-deep));
  color: white;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 71, 126, 0.35);
}

/* --------------------------------------------------------------------------
   9b. Floating Lily Bouquet Button & Modal
   -------------------------------------------------------------------------- */
.floating-gift-launcher {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 990;
}

.lily-float-btn {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF0F5 50%, #FFCAD4 100%);
  border: 2.5px solid #FF85A1;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(255, 112, 150, 0.4), 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lily-float-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 14px 30px rgba(255, 112, 150, 0.55);
}

.lily-btn-icon {
  font-size: 1.9rem;
  filter: drop-shadow(0 2px 4px rgba(255, 105, 180, 0.3));
  animation: lilyWobble 3s ease-in-out infinite;
}

@keyframes lilyWobble {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-8deg) scale(1.08); }
  75% { transform: rotate(8deg) scale(1.08); }
}

.lily-btn-pulse {
  position: absolute;
  inset: -6px;
  border: 2px solid #FF7096;
  border-radius: 50%;
  animation: pulseOut 2s ease-out infinite;
  pointer-events: none;
}

@keyframes pulseOut {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

.lily-btn-tooltip {
  position: absolute;
  left: 75px;
  background: white;
  color: var(--pink-dark);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 1px solid #FFD1DC;
  pointer-events: none;
  opacity: 0.95;
  animation: tooltipFloat 2s ease-in-out infinite alternate;
}

@keyframes tooltipFloat {
  0% { transform: translateX(0); }
  100% { transform: translateX(5px); }
}

/* Lily Modal Styling */
.lily-modal-card {
  max-width: 520px;
  text-align: center;
  padding: 2.2rem 2rem 2.4rem;
  border-radius: 30px;
  border: 3px solid #FFD1DC;
  background: radial-gradient(circle at top center, #FFFFFF 50%, #FFF5F8 100%);
  position: relative;
  overflow: hidden;
}

.lily-card-header {
  margin-bottom: 1.2rem;
}

.lily-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pink-deep);
  background: #FFE8EF;
  border: 1px dashed #FF85A1;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.6rem;
  letter-spacing: 1px;
}

.lily-modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pink-dark);
  margin-bottom: 0.3rem;
}

.lily-modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.lily-visual-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.2rem 0;
  min-height: 220px;
}

.lily-svg-container {
  width: 210px;
  height: 210px;
  filter: drop-shadow(0 10px 20px rgba(255, 112, 150, 0.25));
  animation: lilyBreathe 4s ease-in-out infinite alternate;
}

@keyframes lilyBreathe {
  0% { transform: scale(0.96) rotate(-2deg); }
  100% { transform: scale(1.03) rotate(2deg); }
}

.lily-svg {
  width: 100%;
  height: 100%;
}

.lily-card-message {
  background: #FFF0F4;
  border-radius: 20px;
  padding: 1.3rem 1.4rem;
  margin: 1.2rem 0 1.5rem;
  border: 1.5px solid #FFD6E0;
}

.lily-quote-head {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  color: var(--pink-deep);
  margin-bottom: 0.7rem;
  line-height: 1.4;
}

.lily-body-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.lily-congrats-tag {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pink-dark);
  margin: 0;
}

.lily-modal-actions {
  display: flex;
  justify-content: center;
}

.lily-sprinkle-btn {
  background: linear-gradient(135deg, var(--pink-accent), var(--pink-deep));
  color: white;
  border: none;
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 71, 126, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lily-sprinkle-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 25px rgba(255, 71, 126, 0.45);
}

/* --------------------------------------------------------------------------
   9c. Interactive Grey Cat Mascot Pet (Cats si Kucing Sarjana)
   -------------------------------------------------------------------------- */
.cat-pet-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

/* Speech Bubble */
.cat-speech-bubble {
  pointer-events: auto;
  background: #FFFFFF;
  border: 2px solid #FFCAD4;
  border-radius: 20px;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 10px 30px rgba(255, 112, 150, 0.22), 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 275px;
  margin-bottom: 12px;
  position: relative;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom right;
  animation: catBubblePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-speech-bubble.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.7) translateY(15px);
  pointer-events: none;
}

@keyframes catBubblePop {
  0% { transform: scale(0.6) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.cat-bubble-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 1.15rem;
  line-height: 1;
  color: #A0AAB2;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.cat-bubble-close:hover {
  color: #FF4D6D;
  background: #FFF0F3;
}

.cat-badge-tag {
  display: inline-block;
  background: #FFF0F5;
  color: #D81B60;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  border: 1px solid #FFCCD5;
  margin-bottom: 0.4rem;
}

.cat-speech-text {
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: #3D4552;
  line-height: 1.45;
  margin: 0 0 0.65rem 0;
  font-weight: 600;
}

.cat-bubble-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.cat-action-chip {
  background: #FFF5F7;
  border: 1.5px solid #FFB3C6;
  color: #C9184A;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.cat-action-chip:hover {
  background: #FF758F;
  color: white;
  border-color: #FF4D6D;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(255, 77, 109, 0.3);
}

.cat-bubble-arrow {
  position: absolute;
  bottom: -9px;
  right: 28px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid #FFFFFF;
  filter: drop-shadow(0 2px 2px rgba(255, 112, 150, 0.15));
}

/* Cat Avatar Button */
.cat-avatar-btn {
  pointer-events: auto;
  background: linear-gradient(135deg, #FFFFFF 0%, #F5F7FA 50%, #E2E7EE 100%);
  border: 2.5px solid #8895A5;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(107, 119, 135, 0.35), 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
}

.cat-avatar-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 14px 30px rgba(107, 119, 135, 0.5), 0 0 15px rgba(255, 133, 161, 0.4);
  border-color: #FF85A1;
}

.cat-avatar-btn:active,
.cat-avatar-btn.purring {
  animation: catPurrBounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes catPurrBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.18) translateY(-8px) rotate(-5deg); }
  60% { transform: scale(1.12) translateY(-4px) rotate(5deg); }
  100% { transform: scale(1) translateY(0) rotate(0); }
}

.cat-svg-box {
  width: 58px;
  height: 58px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cat-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

/* Cat Animations */
.cat-tail {
  transform-origin: 32px 92px;
  animation: catTailWag 2.5s ease-in-out infinite alternate;
}

@keyframes catTailWag {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-14deg); }
}

.cat-waving-paw {
  transform-origin: 77px 105px;
  animation: catPawWave 3s ease-in-out infinite;
}

@keyframes catPawWave {
  0%, 80%, 100% { transform: translateY(0) rotate(0deg); }
  85% { transform: translateY(-5px) rotate(12deg); }
  90% { transform: translateY(-3px) rotate(-6deg); }
  95% { transform: translateY(-5px) rotate(10deg); }
}

.cat-eyes-group {
  transform-origin: 60px 54px;
  animation: catBlink 4.5s infinite;
}

@keyframes catBlink {
  0%, 92%, 98%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

.cat-toga-cap .cat-tassel {
  transform-origin: 60px 24.5px;
  animation: tasselSwing 3s ease-in-out infinite alternate;
}

@keyframes tasselSwing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-10deg); }
}

/* Green Status Dot */
.cat-status-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #52B788;
  border: 2.5px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(82, 183, 136, 0.8);
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.cat-btn-pulse {
  position: absolute;
  inset: -6px;
  border: 2px solid #8895A5;
  border-radius: 50%;
  animation: catPulseOut 2.5s ease-out infinite;
  pointer-events: none;
}

@keyframes catPulseOut {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Floating Emoji Particles when clicked */
.cat-floating-emojis {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  width: 100px;
  height: 100px;
}

.cat-float-emoji {
  position: absolute;
  font-size: 1.4rem;
  animation: floatEmojiUp 1.2s forwards cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  user-select: none;
}

@keyframes floatEmojiUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-40px) scale(1.1) rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-75px) scale(1.3) rotate(-15deg);
  }
}

/* Lightbox Modal */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 2rem;
}

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

.lightbox-container {
  max-width: 600px;
  width: 100%;
  text-align: center;
  position: relative;
}

.lightbox-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  border: 4px solid white;
}

.lightbox-caption {
  color: white;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-top: 1rem;
}

.lightbox-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close-btn:hover {
  background: rgba(255,255,255,0.4);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-card-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-subtitle {
    margin: 0 auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-quote-card {
    text-align: left;
  }
  .scrapbook-board {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline-line {
    left: 30px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 70px !important;
    padding-right: 0 !important;
    left: 0 !important;
  }
  .timeline-marker {
    left: 6px !important;
  }
}

@media (max-width: 768px) {
  .top-nav {
    padding: 0.6rem 1rem;
  }
  .nav-links {
    display: none; /* Keep clean on small mobile */
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .mascot-frame {
    width: 280px;
    height: 280px;
  }
  .cert-inner {
    padding: 2rem 1.2rem;
  }
  .cert-recipient-name {
    font-size: 2.2rem;
  }
  .cert-details-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .cert-footer {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .scrapbook-board {
    grid-template-columns: 1fr;
  }
  .letter-paper {
    padding: 2.2rem 1.4rem;
  }
  .salutation-recipient {
    font-size: 1.6rem;
  }
  .letter-lead {
    font-size: 1.05rem;
    padding: 1rem 1.2rem;
  }
  .letter-quote-callout {
    padding: 1.4rem 1.2rem;
  }
  .letter-signature-block {
    flex-direction: column;
    align-items: flex-start;
  }
  .floating-gift-launcher {
    bottom: 20px;
    left: 15px;
  }
  .lily-float-btn {
    width: 54px;
    height: 54px;
  }
  .lily-btn-icon {
    font-size: 1.6rem;
  }
  .lily-btn-tooltip {
    display: none; /* Hide tooltip on small mobile to avoid overflow */
  }
  .lily-svg-container {
    width: 170px;
    height: 170px;
  }
  .cat-pet-widget {
    bottom: 20px;
    right: 15px;
  }
  .cat-avatar-btn {
    width: 54px;
    height: 54px;
  }
  .cat-svg-box {
    width: 44px;
    height: 44px;
  }
  .cat-speech-bubble {
    max-width: 220px;
    padding: 0.75rem 0.95rem;
  }
  .cat-speech-text {
    font-size: 0.8rem;
  }
  .cat-action-chip {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
  .court-bench-card {
    padding: 2.2rem 1.2rem;
  }
  .court-case-title {
    font-size: 1.25rem;
  }
  .court-parties-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .court-vs-badge {
    margin: 0 auto;
    width: 48px;
    height: 48px;
    font-size: 0.75rem;
  }
  .indictment-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .court-verdict-box {
    padding: 1.8rem 1.2rem;
  }
  .verdict-list {
    padding-left: 1.1rem;
    font-size: 0.9rem;
  }
  .court-interactive-actions {
    flex-direction: column;
  }
  .court-gavel-strike-btn,
  .court-copy-verdict-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
