/* ========================================================
   WEDDING INVITATION LUXE THEME SYSTEM
   Android Mobile-First Responsive Styles
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Dancing+Script:wght@600;700&family=Great+Vibes&family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  /* Dynamic Theme Variables - Overridden by Admin */
  --bg-primary: #FAF8F5;
  --bg-secondary: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-glass: rgba(255, 255, 255, 0.72);
  --primary: #B38F46;
  --primary-light: #E5C887;
  --primary-dark: #8C6A28;
  --secondary: #5C6E58;
  --accent: #D4AF37;
  --text-main: #333333;
  --text-muted: #6B7280;
  --text-gold: #9B7830;
  --border-color: rgba(179, 143, 70, 0.25);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(179, 143, 70, 0.12);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.08);

  /* Dynamic Typography */
  --font-heading: 'Great Vibes', cursive;
  --font-subheading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
  --heading-scale: 1;
  --heading-weight: normal;
  --heading-style: normal;
  --heading-shadow: 0 2px 4px rgba(179, 143, 70, 0.2);

  /* Corner Ornaments */
  --corner-style: 20px;
  --corner-display: block;
}

/* Theme Presets via data-theme attribute */
[data-theme="dusty-blue"] {
  --bg-primary: #F2F6F9;
  --bg-secondary: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.90);
  --bg-glass: rgba(240, 245, 250, 0.75);
  --primary: #52789C;
  --primary-light: #98B8D5;
  --primary-dark: #37536E;
  --secondary: #6B8299;
  --accent: #7899B8;
  --text-main: #243447;
  --text-muted: #5C728A;
  --text-gold: #3D6285;
  --border-color: rgba(82, 120, 156, 0.25);
  --shadow-md: 0 8px 24px rgba(82, 120, 156, 0.15);
  --heading-shadow: 0 2px 4px rgba(82, 120, 156, 0.2);
}

[data-theme="rose-gold"] {
  --bg-primary: #FCF7F7;
  --bg-secondary: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.90);
  --primary: #B76E79;
  --primary-light: #EBB6BD;
  --primary-dark: #8F4C56;
  --secondary: #8B7E74;
  --accent: #C7828D;
  --text-main: #3C2E30;
  --text-muted: #7E6B6E;
  --text-gold: #A25863;
  --border-color: rgba(183, 110, 121, 0.25);
  --shadow-md: 0 8px 24px rgba(183, 110, 121, 0.15);
}

[data-theme="sage-forest"] {
  --bg-primary: #F5F7F4;
  --bg-secondary: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.90);
  --primary: #4A6B56;
  --primary-light: #8CA996;
  --primary-dark: #2F4738;
  --secondary: #708A7B;
  --accent: #88A693;
  --text-main: #233128;
  --text-muted: #576D60;
  --text-gold: #3E5A48;
  --border-color: rgba(74, 107, 86, 0.25);
  --shadow-md: 0 8px 24px rgba(74, 107, 86, 0.14);
}

[data-theme="royal-dark"] {
  --bg-primary: #12161A;
  --bg-secondary: #1A2127;
  --bg-card: rgba(26, 33, 39, 0.92);
  --bg-glass: rgba(20, 26, 32, 0.85);
  --primary: #D4AF37;
  --primary-light: #F3E5AB;
  --primary-dark: #AA771C;
  --secondary: #8A9CA5;
  --accent: #E5C158;
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-gold: #E5C158;
  --border-color: rgba(212, 175, 55, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: #212529; /* Outer backdrop for desktop preview */
  overflow-x: hidden;
  line-height: 1.6;
}

/* ========================================================
   DESKTOP PREVIEW WRAPPER & PHONE FRAME
   ======================================================== */
.app-viewport {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 10px;
  background: radial-gradient(circle at 50% 30%, #343a40, #1a1e21);
}

/* Toggle mode for full desktop stretch vs phone mockup */
body.full-width-mode .app-viewport {
  padding: 0;
  background: var(--bg-primary);
}

.mobile-phone-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background-color: var(--bg-primary);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 10px #18191A;
  border-radius: 44px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

body.full-width-mode .mobile-phone-frame {
  max-width: 100% !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Phone Screen Notch / Speaker Bar */
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 20px;
  background-color: #18191A;
  border-radius: 12px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.phone-speaker {
  width: 44px;
  height: 4px;
  background-color: #333;
  border-radius: 2px;
}

.phone-camera {
  width: 7px;
  height: 7px;
  background-color: #1e293b;
  border-radius: 50%;
  border: 1px solid #334155;
}

body.full-width-mode .phone-notch {
  display: none;
}

/* Viewport Toggle Switch Floating on Desktop */
.desktop-toggle-bar {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 10001;
  background: rgba(18, 22, 26, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-toggle-device {
  background: transparent;
  color: #E2E8F0;
  border: none;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-toggle-device.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ========================================================
   CORNER BOTANICAL ORNAMENTS
   ======================================================== */
.corner-ornament {
  position: absolute;
  width: 125px;
  height: 125px;
  pointer-events: none;
  z-index: 10;
  opacity: 0.85;
  transition: all 0.3s ease;
  display: var(--corner-display);
}

.corner-top-left {
  top: 0;
  left: 0;
}

.corner-top-right {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

.corner-bottom-left {
  bottom: 60px;
  left: 0;
  transform: scaleY(-1);
}

.corner-bottom-right {
  bottom: 60px;
  right: 0;
  transform: scale(-1);
}

/* ========================================================
   COVER GATE / WELCOME ENVELOPE MODAL
   ======================================================== */
.cover-gate {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  background-image: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.08), transparent 70%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 50px 24px 40px;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
}

.cover-gate.opened {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.cover-header {
  margin-top: 20px;
}

.cover-subtitle {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cover-hero-art {
  width: 210px;
  height: 210px;
  margin: 15px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-hero-art img, .cover-hero-art svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
  animation: floatingCouple 4s ease-in-out infinite;
}

@keyframes floatingCouple {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.cover-couple-name {
  font-family: var(--font-heading);
  font-size: calc(42px * var(--heading-scale));
  font-weight: var(--heading-weight);
  font-style: var(--heading-style);
  color: var(--text-gold);
  line-height: 1.2;
  margin: 5px 0;
  text-shadow: var(--heading-shadow);
}

.cover-guest-box {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px 20px;
  width: 100%;
  max-width: 320px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}

.cover-guest-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cover-guest-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}

.btn-open-invitation {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #FFFFFF;
  border: none;
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(179, 143, 70, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  animation: pulseButton 2s infinite;
}

.btn-open-invitation:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(179, 143, 70, 0.45);
}

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

/* ========================================================
   MAIN SCROLLABLE APP CONTENT
   ======================================================== */
.invitation-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 85px; /* space for android nav bar */
  position: relative;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) transparent;
}

.invitation-content::-webkit-scrollbar {
  width: 4px;
}

.invitation-content::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

/* SECTION STRUCTURE */
.section {
  position: relative;
  padding: 45px 20px 30px;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 15px auto 25px;
}

.section-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: calc(36px * var(--heading-scale));
  font-weight: var(--heading-weight);
  color: var(--text-gold);
  line-height: 1.25;
  text-shadow: var(--heading-shadow);
}

/* ========================================================
   SCREEN 1: HERO / HOME SECTION
   (Matches Middle phone in screenshot)
   ======================================================== */
#section-home {
  padding-top: 50px;
}

.hero-subhead {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-wreath-container {
  width: 250px;
  height: 250px;
  margin: 0 auto 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-wreath-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

.hero-couple-title {
  font-family: var(--font-heading);
  font-size: calc(44px * var(--heading-scale));
  font-weight: var(--heading-weight);
  color: var(--text-gold);
  margin-top: 4px;
  margin-bottom: 4px;
  text-shadow: var(--heading-shadow);
}

.hero-date-badge {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

/* COUNTDOWN BADGES (4 Rounded Pill Boxes from Screenshot) */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 20px;
}

.countdown-box {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #FFFFFF;
  padding: 10px 4px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(179, 143, 70, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

[data-theme="dusty-blue"] .countdown-box {
  box-shadow: 0 4px 12px rgba(82, 120, 156, 0.3);
}

.countdown-number {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  font-family: var(--font-body);
}

.countdown-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: capitalize;
  opacity: 0.9;
  margin-top: 2px;
}

/* ========================================================
   SCREEN 2: MEMPELAI (BRIDE & GROOM)
   (Matches Left phone in screenshot)
   ======================================================== */
#section-couple {
  gap: 16px;
}

.person-card {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
}

.person-avatar-wrap {
  width: 140px;
  height: 140px;
  margin-bottom: 12px;
  position: relative;
}

.person-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.person-name {
  font-family: var(--font-heading);
  font-size: calc(34px * var(--heading-scale));
  font-weight: var(--heading-weight);
  color: var(--text-gold);
  line-height: 1.2;
  margin-bottom: 4px;
  text-shadow: var(--heading-shadow);
}

.person-parents {
  font-size: 12px;
  color: var(--text-main);
  max-width: 280px;
  line-height: 1.4;
}

.person-social {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 12px;
  background: rgba(179, 143, 70, 0.1);
}

.couple-ampersand {
  font-family: var(--font-heading);
  font-size: 40px;
  color: var(--primary);
  margin: -10px 0;
}

/* ========================================================
   SCREEN 3: ACARA (AKAD & RESEPSI + MAPS)
   (Matches Right phone in screenshot)
   ======================================================== */
#section-events {
  padding-top: 45px;
}

.event-intro-text {
  font-size: 13px;
  color: var(--text-main);
  max-width: 290px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.rings-icon-wrap {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
}

.rings-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.event-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 18px 16px;
  width: 100%;
  max-width: 330px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.event-type-title {
  font-family: var(--font-heading);
  font-size: calc(30px * var(--heading-scale));
  font-weight: var(--heading-weight);
  color: var(--text-gold);
  margin-bottom: 8px;
}

.event-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-main);
  margin: 4px 0;
}

.event-meta-icon {
  color: var(--primary);
  width: 14px;
  height: 14px;
}

.event-venue-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
  line-height: 1.4;
}

/* Interactive Map Card */
.map-container-card {
  width: 100%;
  max-width: 330px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
  background: var(--bg-secondary);
}

.map-iframe {
  width: 100%;
  height: 160px;
  border: none;
}

.map-action-bar {
  padding: 10px;
  display: flex;
  gap: 8px;
  justify-content: center;
  background: var(--bg-card);
}

.btn-map-action {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--primary);
  transition: all 0.2s ease;
}

.btn-map-primary {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-map-outline {
  background: transparent;
  color: var(--primary);
}

/* ========================================================
   SECTION: GALERI & KISAH CINTA (OUR STORY)
   ======================================================== */
.story-timeline {
  width: 100%;
  max-width: 320px;
  position: relative;
  margin: 15px auto;
  text-align: left;
}

.story-item {
  position: relative;
  padding-left: 28px;
  margin-bottom: 20px;
}

.story-item::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.story-item::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 18px;
  bottom: -20px;
  width: 2px;
  background: var(--border-color);
}

.story-item:last-child::after {
  display: none;
}

.story-year {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.story-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.story-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 330px;
  margin: 15px auto;
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* ========================================================
   SECTION: DYNAMIC CUSTOM SECTIONS (Superadmin Added)
   ======================================================== */
.dynamic-sections-container {
  width: 100%;
}

.custom-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px;
  width: 100%;
  max-width: 330px;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.custom-card-icon {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 8px;
}

.custom-card-title {
  font-family: var(--font-heading);
  font-size: calc(28px * var(--heading-scale));
  font-weight: var(--heading-weight);
  color: var(--text-gold);
  margin-bottom: 6px;
}

.custom-card-content {
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.6;
  white-space: pre-line;
}

/* ========================================================
   SECTION: REKENING BANK & KADO DIGITAL
   ======================================================== */
.gift-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 16px;
  width: 100%;
  max-width: 330px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.gift-bank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gift-bank-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.gift-number-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.03);
  padding: 8px 12px;
  border-radius: 10px;
  margin: 4px 0;
}

.gift-account-number {
  font-size: 15px;
  font-family: monospace;
  font-weight: 600;
  color: var(--text-main);
}

.btn-copy-account {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-copy-account:hover {
  background: var(--primary-dark);
}

.gift-holder-name {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================================================
   SECTION: KOLOM KOMENTAR & UCAPAN SELAMAT
   ======================================================== */
.wishes-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 18px;
  width: 100%;
  max-width: 330px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 12px;
  text-align: left;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
  display: block;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-secondary);
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

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

.btn-submit-wish {
  width: 100%;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(179, 143, 70, 0.25);
  transition: all 0.2s ease;
}

.btn-submit-wish:hover {
  background: var(--primary-dark);
}

/* Wishes List Scrollable */
.wishes-list {
  width: 100%;
  max-width: 330px;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.wish-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
}

.wish-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.wish-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.wish-time {
  font-size: 10px;
  color: var(--text-muted);
}

.wish-rsvp-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  margin-bottom: 5px;
}

.badge-hadir {
  background: rgba(34, 197, 94, 0.15);
  color: #16A34A;
}

.badge-ragu {
  background: rgba(234, 179, 8, 0.15);
  color: #CA8A04;
}

.badge-tidak-hadir {
  background: rgba(239, 68, 68, 0.15);
  color: #DC2626;
}

.wish-text {
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.4;
  word-break: break-word;
}

/* ========================================================
   SECTION: BAGIKAN KE MEDIA SOSIAL
   ======================================================== */
.share-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 18px;
  width: 100%;
  max-width: 330px;
  margin: 15px auto;
  box-shadow: var(--shadow-sm);
}

.share-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.btn-share {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: #FFFFFF;
  transition: all 0.2s ease;
}

.btn-share-wa {
  background: #25D366;
}

.btn-share-copy {
  background: var(--primary);
}

.btn-share-fb {
  background: #1877F2;
}

.btn-share-x {
  background: #111111;
}

/* ========================================================
   FOOTER & SECRET SUPERADMIN TRIGGER
   ======================================================== */
.app-footer {
  padding: 25px 20px 20px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

/* Hidden secret trigger on the copyright text */
.secret-admin-trigger {
  cursor: default;
  user-select: none;
  display: inline-block;
  padding: 4px 8px;
  transition: opacity 0.2s ease;
}

/* ========================================================
   ANDROID APPLICATION NAVIGATION BAR (Bottom Fixed Dock)
   (Matches Reference Screenshots)
   ======================================================== */
.android-nav-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 8px;
  z-index: 800;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

.nav-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 2px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.nav-tab-icon {
  width: 24px;
  height: 24px;
  padding: 3px;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.nav-tab-label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color 0.25s ease;
}

.nav-tab-item.active {
  color: var(--primary);
}

.nav-tab-item.active .nav-tab-icon {
  background: rgba(179, 143, 70, 0.15);
  color: var(--primary);
  transform: translateY(-2px);
}

[data-theme="dusty-blue"] .nav-tab-item.active .nav-tab-icon {
  background: rgba(82, 120, 156, 0.18);
  color: var(--primary);
}

/* ========================================================
   FLOATING MUSIC PLAYER DISC (Bottom Right)
   ======================================================== */
.floating-music-btn {
  position: absolute;
  bottom: 74px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 850;
  transition: transform 0.2s ease;
}

.floating-music-btn.playing {
  animation: rotateDisc 4s linear infinite;
}

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

/* ========================================================
   TOAST NOTIFICATION COMPONENT
   ======================================================== */
.toast-notice {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: rgba(18, 22, 26, 0.92);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* ========================================================
   SUPERADMIN HIDDEN LOGIN & MANAGEMENT MODAL
   ======================================================== */
.admin-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.admin-modal-backdrop.active {
  display: flex;
}

.admin-modal-box {
  background: #FFFFFF;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.admin-modal-header {
  padding: 16px 20px;
  background: #18191A;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-modal-title {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: #9CA3AF;
  font-size: 20px;
  cursor: pointer;
}

/* Admin Tabs */
.admin-nav-tabs {
  display: flex;
  overflow-x: auto;
  background: #F3F4F6;
  border-bottom: 1px solid #E5E7EB;
  scrollbar-width: none;
}

.admin-nav-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab-btn {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #4B5563;
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.admin-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: #FFFFFF;
}

.admin-tab-content-area {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

.admin-section-heading {
  font-size: 14px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid #E5E7EB;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Floating indicator badge when Superadmin is active */
.admin-status-indicator {
  position: fixed;
  bottom: 16px;
  left: 16px;
  background: #111827;
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  display: none;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 10002;
}

.admin-status-indicator.visible {
  display: flex;
}
