/**
 * Inveed WeddingKit Pro — Ultra-Luxury Frontend & Motion Stylesheet
 * File: inveed-plugin-undangan/assets/css/inveed-frontend.css
 * Version: 3.0.0 (Heritage & 3D Motion Architecture Parity)
 */

/* ==========================================================================
   0. RESET & ROOT VARIABLES
   ========================================================================== */
:root {
  --inveed-primary: #1C281E;
  --inveed-primary-dark: #121C14;
  --inveed-gold: #C9A227;
  --inveed-gold-light: #F7E8B5;
  --inveed-gold-grad: linear-gradient(135deg, #FDF2D0 0%, #D4AF37 45%, #9E7418 80%, #DFBD54 100%);
  --inveed-gold-metallic: linear-gradient(135deg, #FBF2D5 0%, #D4AF37 35%, #AA7A1E 70%, #E5C158 100%);
  --inveed-emerald-grad: linear-gradient(135deg, #1C2D20 0%, #0F1A12 100%);
  --inveed-sage-light: #F3F6F3;
  --inveed-paper-bg: #FAF8F5;
  --inveed-emerald: #10B981;
  --inveed-rose: #E11D48;
  --inveed-amber: #F59E0B;
  --inveed-radius: 16px;
  --inveed-font-display: 'Italiana', 'Cinzel', serif;
  --inveed-font-heading: 'Cinzel', 'Playfair Display', serif;
  --inveed-font-serif: 'Cormorant Garamond', 'Cinzel', serif;
  --inveed-font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --inveed-font-script: 'Alex Brush', cursive;
}

body.inveed-locked {
  overflow: hidden !important;
  height: 100vh !important;
}

/* ==========================================================================
   1. INTRO PRELOADER COUNTER (0% - 100%)
   ========================================================================== */
#intro-awal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #1E2D20 0%, #0B130D 100%);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.1s cubic-bezier(0.77, 0, 0.175, 1), visibility 1.1s ease;
}

#intro-awal.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-preloader-inner {
  text-align: center;
  padding: 30px;
}

.intro-preloader-monogram {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1.5px solid var(--inveed-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--inveed-font-heading);
  font-size: 1.8rem;
  color: var(--inveed-gold-light);
  background: rgba(201, 162, 39, 0.1);
  box-shadow: 0 0 25px rgba(201, 162, 39, 0.35);
  animation: inveedPulseRing 2.5s infinite;
}

.intro-preloader-title {
  font-family: var(--inveed-font-display);
  font-size: 1.8rem;
  letter-spacing: 4px;
  color: var(--inveed-gold-light);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.intro-preloader-couples {
  font-family: var(--inveed-font-script);
  font-size: 2.8rem;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.intro-preloader-counter {
  font-family: var(--inveed-font-body);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--inveed-gold);
}

/* ==========================================================================
   2. COVER OPENING & 3D WAX SEAL MOTION
   ========================================================================== */
.cover-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.9s ease, filter 0.9s ease;
  will-change: transform, opacity;
}

.cover-overlay.opened,
.inveed-cover-overlay.opened,
#coverOverlay.opened {
  transform: translateY(-100%) scale(1.05);
  opacity: 0 !important;
  visibility: hidden !important;
  filter: blur(8px);
  pointer-events: none !important;
}

.cover-card-inner {
  position: relative;
  width: 90%;
  max-width: 480px;
  background: rgba(18, 28, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(201, 162, 39, 0.45);
  border-radius: 24px;
  padding: 44px 30px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(201, 162, 39, 0.25);
  animation: inveedCardFloat 4s ease-in-out infinite alternate;
}

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

.cover-monogram {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 2px solid var(--inveed-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--inveed-font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--inveed-gold-light);
  background: rgba(201, 162, 39, 0.15);
  box-shadow: 0 0 22px rgba(201, 162, 39, 0.35);
  animation: inveedPulseRing 2.5s infinite;
}

@keyframes inveedPulseRing {
  0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.5); }
  70% { box-shadow: 0 0 0 18px rgba(201, 162, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}

.cover-title-couples {
  font-family: var(--inveed-font-script);
  font-size: 3.2rem;
  color: var(--inveed-gold-light);
  margin: 12px 0 8px;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.btn-open-wax {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--inveed-gold-grad);
  color: #121C14 !important;
  font-family: var(--inveed-font-body);
  font-weight: 800;
  font-size: 0.96rem;
  padding: 14px 36px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.45);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 22px;
  text-decoration: none;
}

.btn-open-wax:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 32px rgba(201, 162, 39, 0.65);
  filter: brightness(1.08);
}

/* ==========================================================================
   3. ARCH DOME MASKING & HERITAGE PORTRAITS
   ========================================================================== */
.inveed-arch-wrapper {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  max-width: 280px;
}

.inveed-arch-portrait {
  width: 240px;
  height: 330px;
  border-radius: 140px 140px 16px 16px;
  overflow: hidden;
  position: relative;
  border: 2px solid var(--inveed-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18), 0 0 20px rgba(201, 162, 39, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.inveed-arch-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.inveed-arch-portrait:hover img {
  transform: scale(1.06);
}

.inveed-arch-gold-frame {
  position: absolute;
  inset: -12px;
  pointer-events: none;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 2;
}

/* Floating Gunungan & Ornaments */
.inveed-gunungan-bg {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 380px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* Swing Slow Animation */
.swing-slow {
  animation: inveedSwing 6s ease-in-out infinite alternate;
  transform-origin: top center;
}

@keyframes inveedSwing {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(3deg); }
}

/* ==========================================================================
   4. REALISTIC ATM BANKING CARD UI (GIFT REGISTRY)
   ========================================================================== */
.inveed-atm-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 15px auto;
  border-radius: 20px;
  padding: 24px;
  background: var(--inveed-emerald-grad);
  border: 1.5px solid rgba(201, 162, 39, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 20px rgba(201, 162, 39, 0.2);
  color: #FFFFFF;
  text-align: left;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.inveed-atm-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(201, 162, 39, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.inveed-atm-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45), 0 0 28px rgba(201, 162, 39, 0.35);
}

.inveed-atm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.inveed-atm-chip {
  width: 44px;
  height: 34px;
}

.inveed-atm-bank-logo {
  height: 28px;
  max-width: 90px;
  object-fit: contain;
}

.inveed-atm-number {
  font-family: 'Courier New', monospace, var(--inveed-font-body);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #F7E8B5;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.inveed-atm-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.inveed-atm-holder-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
}

.inveed-atm-holder-name {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #FFFFFF;
  text-transform: uppercase;
}

.btn-copy-atm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--inveed-gold-grad);
  color: #121C14 !important;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.4);
}

.btn-copy-atm:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* ==========================================================================
   5. FLOATING MUSIC DISC & ANIMATED EQUALIZER
   ========================================================================== */
.inveed-music-dock,
#musicContainer {
  position: fixed;
  bottom: 95px;
  right: 22px;
  z-index: 9998;
  display: none;
}

.inveed-music-dock.active,
#musicContainer.active {
  display: block;
  animation: inveedPopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.inveed-disc-outer,
#musicWidget {
  width: 52px;
  height: 52px;
  background: #111812;
  border: 2px solid var(--inveed-gold);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(201, 162, 39, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s ease;
}

.inveed-disc-outer:hover,
#musicWidget:hover {
  transform: scale(1.12);
}

.inveed-disc-inner {
  width: 24px;
  height: 24px;
  background: var(--inveed-gold-grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.disc-spinning {
  animation: inveedSpin 4s linear infinite;
}

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

.inveed-equalizer {
  position: absolute;
  top: -14px;
  right: 0;
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.eq-bar {
  width: 3px;
  background: var(--inveed-gold);
  border-radius: 2px;
  animation: inveedEq 0.8s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 9px; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { height: 12px; animation-delay: 0.4s; }

@keyframes inveedEq {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* ==========================================================================
   6. SMART BOTTOM DOCK NAVIGATOR
   ========================================================================== */
.bottom-dock-nav {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  background: rgba(18, 28, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(201, 162, 39, 0.4);
  border-radius: 99px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(201, 162, 39, 0.25);
  z-index: 9997;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.bottom-dock-nav.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dock-item {
  color: #D1D5DB;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  transition: all 0.25s ease;
  padding: 6px 8px;
  border-radius: 12px;
  position: relative;
}

.dock-item svg,
.dock-item i {
  font-size: 1.25rem;
  margin-bottom: 2px;
  transition: transform 0.25s ease, color 0.25s ease;
}

.dock-item:hover,
.dock-item.current {
  color: var(--inveed-gold-light);
}

.dock-item.current svg,
.dock-item.current i {
  transform: translateY(-2px) scale(1.15);
  color: var(--inveed-gold);
}

.dock-item.current::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 3px;
  background: var(--inveed-gold);
  border-radius: 99px;
  box-shadow: 0 0 8px var(--inveed-gold);
}

/* ==========================================================================
   7. LUXURY KOMENKIT PRO & RSVP STYLES
   ========================================================================== */
.komenkit-stats-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.komenkit-stat-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(209, 213, 219, 0.8);
  border-radius: 16px;
  padding: 16px 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.komenkit-stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.komenkit-stat-card.stat-hadir .komenkit-stat-number { color: #10B981; }
.komenkit-stat-card.stat-ragu .komenkit-stat-number { color: #F59E0B; }
.komenkit-stat-card.stat-tidak .komenkit-stat-number { color: #E11D48; }

.komenkit-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6B7280;
  margin-top: 4px;
}

/* Attendance 3-Pill Radio */
.komenkit-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.pill-option {
  position: relative;
  cursor: pointer;
}

.pill-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.pill-box {
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #4B5563;
  transition: all 0.25s ease;
  background: #FFFFFF;
}

.pill-option input:checked + .pill-box {
  border-color: var(--inveed-gold);
  background: rgba(201, 162, 39, 0.12);
  color: #121C14;
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.3);
}

/* Wishes dynamic stream */
.wishes-stream-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.wish-item-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  gap: 12px;
  text-align: left;
}

.wish-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--inveed-gold-grad);
  color: #121C14;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wish-content-box {
  flex-grow: 1;
}

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

.wish-author {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--inveed-primary);
}

.wish-admin-reply-box {
  margin-top: 10px;
  background: rgba(201, 162, 39, 0.08);
  border-left: 3px solid var(--inveed-gold);
  border-radius: 0 12px 12px 0;
  padding: 10px 12px;
  font-size: 0.85rem;
}

.wish-admin-title {
  font-weight: 800;
  color: #AA7A1E;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   8. TOAST NOTIFICATIONS & MICRO-ANIMATIONS
   ========================================================================== */
.toast-msg {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: rgba(18, 28, 20, 0.94);
  color: #F7E8B5;
  border: 1px solid var(--inveed-gold);
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 100000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes inveedFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes inveedPopIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   9. ELEMENTOR EDITOR MODE SANITIZATION
   ========================================================================== */
.elementor-editor-active #intro-awal {
  display: none !important;
}

.elementor-editor-active .cover-overlay,
.elementor-editor-preview .cover-overlay {
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  display: block !important;
  min-height: 460px !important;
}

.elementor-editor-active body.inveed-locked {
  overflow: auto !important;
  height: auto !important;
}

.elementor-editor-active .bottom-dock-nav {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  opacity: 1 !important;
  margin: 20px auto !important;
  display: inline-flex !important;
}

.elementor-editor-active .inveed-music-dock {
  position: relative !important;
  bottom: auto !important;
  right: auto !important;
  display: inline-block !important;
  margin: 15px auto !important;
}
