/* ============================================
   15th Graduation Monarch Bali - AI Futuristik Theme
   ============================================ */

/* CSS Variables - AI Futuristik Palette */
:root {
    --primary: #6c5ce7;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --primary-glow: rgba(108, 92, 231, 0.3);
    --secondary-glow: rgba(0, 206, 201, 0.3);
    --bg-primary: #050518;
    --bg-secondary: #08082a;
    --bg-section: rgba(5, 5, 24, 0.2);
    --bg-card: rgba(13, 13, 59, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gradient-main: linear-gradient(135deg, #6c5ce7, #00cec9);
    --gradient-alt: linear-gradient(135deg, #6c5ce7, #fd79a8);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px rgba(108, 92, 231, 0.15);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Body wrapper - fixed background so particles show */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-primary);
}

/* All sections: transparent so particle bg shows through */
section {
    position: relative;
    z-index: 1;
}

.section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-section);
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
    position: relative;
    z-index: 2;
}

.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 50px; font-size: 12px; font-weight: 700;
    color: #ffffff; text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 16px;
    background: rgba(5, 5, 24, 0.6);
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700; margin-bottom: 12px; line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.section-desc {
    color: #ffffff; max-width: 550px;
    margin: 0 auto; font-size: 1rem;
    text-shadow: 0 1px 15px rgba(0,0,0,0.7);
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card backgrounds remain semi-transparent */
.schedule-card, .rundown-card, .countdown-item, .gallery-item {
    background: var(--bg-card);
}

/* ============================================
   PARTICLE BACKGROUND
   ============================================ */
.particle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    will-change: transform; /* GPU layer */
    transform: translateZ(0);
}

.particle-bg canvas {
    display: block;
    width: 100vw !important;
    height: 100vh !important;
    position: absolute;
    top: 0;
    left: 0;
}

/* ============================================
   NEURAL GRID OVERLAY
   ============================================ */
.neural-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(108, 92, 231, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* ============================================
   PARALLAX EFFECT
   ============================================ */
.parallax-section {
    transform: translateZ(0);
    will-change: transform;
}

.parallax-slow {
    transition: transform 0.1s linear;
}

.parallax-medium {
    transition: transform 0.05s linear;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10, 10, 46, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    height: 100px;
    will-change: transform;
}
.navbar.scrolled {
    background: rgba(10, 10, 46, 0.97);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.navbar-container {
    max-width: 1280px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
    height: 100%;
    gap: 12px;
}
.nav-logo-left {
    flex: 0 1 auto;
    max-width: 45%;
}

.nav-logo-right {
    flex: 0 1 auto;
    max-width: 45%;
    text-align: right;
}

.nav-logo-img {
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.nav-logo-img.logo-g {
    height: 100px;
}

.nav-logo-img.logo-m {
    height: 60px;
}
.nav-logo-placeholder {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border: 2px dashed var(--glass-border);
    border-radius: 8px; color: var(--text-muted); font-size: 12px;
}
.nav-logo-placeholder i { font-size: 18px; color: var(--secondary); }
.nav-brand-center { text-align: center; }
.nav-brand-text {
    font-family: var(--font-display); font-size: 20px; font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; letter-spacing: 1px;
}
.nav-brand-text sup { font-size: 10px; }
.nav-brand-sub {
    display: block; font-size: 11px; text-transform: uppercase;
    letter-spacing: 4px; color: var(--text-muted); margin-top: 2px;
}
.navbar-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.navbar-toggle span {
    width: 24px; height: 2px; background: var(--secondary);
    border-radius: 2px; transition: all 0.3s ease;
}

/* ============================================
   HERO / BANNER
   ============================================ */
.hero-section {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 100px 24px 60px; overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-section);
    z-index: 1;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(108, 92, 231, 0.2) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(0, 206, 201, 0.12) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute; inset: 0;
    z-index: 2;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 206, 201, 0.015) 2px, rgba(0, 206, 201, 0.015) 3px);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 3; text-align: center; max-width: 900px; }

.hero-ai-icon {
    font-size: 42px;
    margin-bottom: 20px;
    animation: floatAI 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(108, 92, 231, 0.3));
}
@keyframes floatAI {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.05); }
}

.hero-pre-title {
    font-family: var(--font-display); font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #ffffff; margin-bottom: 16px; letter-spacing: 4px;
    text-transform: uppercase;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4.2rem);
    font-weight: 700; line-height: 1.15; margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0,0,0,0.9), 0 2px 10px rgba(0,0,0,0.5);
}
.hero-highlight {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.hero-highlight sup { font-size: 0.5em; }
.hero-monarch {
    color: #ffffff;
    font-size: 1.1em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.hero-divider {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; margin: 24px 0;
}
.hero-divider-line {
    width: 80px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.hero-divider i { color: #ffffff; font-size: 14px; }
.hero-date {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: #ffffff; margin-bottom: 8px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.hero-location {
    color: rgba(255,255,255,0.7); font-size: 14px;
    letter-spacing: 2px; text-transform: uppercase;
}
.hero-location i { color: #ffffff; margin-right: 6px; }
.hero-scroll-btn {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 48px; padding: 12px 28px;
    border: 1px solid rgba(255,255,255,0.15); border-radius: 50px;
    background: rgba(5,5,24,0.4);
    color: rgba(255,255,255,0.9); text-decoration: none;
    font-size: 14px; transition: all 0.3s ease;
    animation: fadeInUp 1s ease 1s both;
    backdrop-filter: blur(5px);
}
.hero-scroll-btn:hover {
    border-color: var(--primary); color: var(--primary);
    transform: translateY(-2px); box-shadow: var(--shadow-glow);
}
.hero-scroll-btn i { animation: bounceDown 2s ease-in-out infinite; }
@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown-section {
    border-top: 1px solid var(--glass-border);
}
.countdown-grid {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; max-width: 700px; margin: 0 auto;
}
.countdown-item {
    text-align: center; background: var(--bg-card);
    border: 1px solid var(--card-border); border-radius: 16px;
    padding: 32px 24px; min-width: 130px;
    backdrop-filter: blur(10px); transition: all 0.3s ease;
}
.countdown-item:hover {
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: var(--shadow-glow); transform: translateY(-4px);
}
.countdown-number {
    display: block; font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; line-height: 1; margin-bottom: 8px;
    text-shadow: 0 0 30px rgba(108, 92, 231, 0.3);
}
.countdown-label {
    font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
    color: #ffffff; font-weight: 500;
}
.countdown-sep {
    font-size: 2.5rem; color: #ffffff;
    padding: 0 4px; margin-top: -30px;
}

/* ============================================
   SCHEDULE
   ============================================ */
.schedule-section {}
.schedule-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; max-width: 1100px; margin: 0 auto;
}
.schedule-card {
    background: var(--bg-card); border: 1px solid var(--card-border);
    border-radius: 20px; padding: 40px 32px; text-align: center;
    transition: all 0.4s ease; position: relative; overflow: hidden;
}
.schedule-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0; transition: opacity 0.3s ease;
}
.schedule-card:hover::before { opacity: 1; }
.schedule-card:hover {
    transform: translateY(-8px);
    border-color: rgba(108, 92, 231, 0.25);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.schedule-day-badge {
    display: inline-block; padding: 6px 20px; border-radius: 50px;
    background: var(--gradient-main); color: white;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 24px;
}
.schedule-card > div {
    margin-bottom: 16px; display: flex; align-items: center;
    justify-content: center; gap: 10px;
    font-size: 15px; color: var(--text-secondary);
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.schedule-card i { color: var(--secondary); width: 18px; text-align: center; }
.schedule-desc {
    margin-top: 16px; padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}
.schedule-desc p {
    font-family: var(--font-display); font-size: 16px;
    color: var(--text-primary);
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-section {}
.gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; max-width: 1100px; margin: 0 auto;
}
.gallery-item {
    position: relative; border-radius: 14px; overflow: hidden;
    display: block; cursor: pointer; aspect-ratio: 3/2;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10,10,46,0.85));
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 8px; opacity: 0;
    transition: all 0.4s ease; color: white;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i {
    font-size: 28px; color: var(--secondary);
    filter: drop-shadow(0 0 10px rgba(0, 206, 201, 0.4));
}
.gallery-overlay span { font-size: 14px; font-weight: 500; color: #ffffff; }
.fancybox__container {
    --fancybox-bg: rgba(10,10,46,0.95);
    --fancybox-color: #ffffff;
    --fancybox-thumbs-width: 80px;
}

/* ============================================
   RUNDOWN - TIMELINE ZIG-ZAG
   ============================================ */
.rundown-section {}

.rundown-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, var(--primary), var(--secondary), var(--primary), transparent);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 14px 0;
}

.timeline-item.left {
    left: 0;
    padding-right: 50px;
    text-align: right;
}

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

.timeline-dot {
    position: absolute;
    top: 26px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    z-index: 2;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
}

.timeline-item.left .timeline-dot {
    right: -17px;
}

.timeline-item.right .timeline-dot {
    left: -17px;
}

.rundown-timeline .rundown-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 22px 24px;
    transition: all 0.3s ease;
    position: relative;
}

.rundown-timeline .rundown-card:hover {
    border-color: rgba(108, 92, 231, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.rundown-day-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 4px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.rundown-time {
    font-size: 13px;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-item.left .rundown-time {
    justify-content: flex-end;
}

.rundown-time i { font-size: 12px; }

.rundown-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.rundown-venue {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-item.left .rundown-venue {
    justify-content: flex-end;
}

.rundown-venue i { color: var(--secondary); font-size: 11px; }

/* Responsive: mobile collapse */
@media (max-width: 768px) {
    .timeline-line {
        left: 22px;
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
        width: 100%;
        left: 0;
        padding: 10px 0 10px 56px;
        text-align: left;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 5px;
        right: auto;
    }

    .timeline-item.left .rundown-time,
    .timeline-item.left .rundown-venue {
        justify-content: flex-start;
    }
}

/* ============================================
   VIP SECTION
   ============================================ */
.vip-section {}
.vip-form-container { max-width: 680px; margin: 0 auto; }

/* ─── Special Guest Card (Direct Access Mode) ─── */
.special-guest-info { margin-bottom: 0.5rem; }
.special-guest-card {
    background: linear-gradient(135deg, rgba(108,92,231,0.15), rgba(0,206,201,0.1));
    border: 1px solid rgba(108,92,231,0.3);
    border-radius: 20px; padding: 30px 28px; text-align: center;
    backdrop-filter: blur(10px);
}
.special-guest-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff; padding: 6px 18px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 16px;
}
.special-guest-badge i { font-size: 1rem; }
.special-guest-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem; font-weight: 700; color: #fff;
    margin: 0 0 6px 0;
}
.special-guest-position {
    font-size: 0.95rem; color: rgba(255,255,255,0.7);
    margin: 0;
}
.vip-form {
    background: var(--bg-card); border: 1px solid var(--card-border);
    border-radius: 20px; padding: 40px 36px; backdrop-filter: blur(10px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-label {
    display: block; font-size: 13px; font-weight: 500;
    color: var(--text-secondary); margin-bottom: 8px; letter-spacing: 0.5px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.form-input {
    width: 100%; padding: 14px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border); border-radius: 12px;
    color: var(--text-primary); font-family: var(--font-body);
    font-size: 14px; transition: all 0.3s ease; outline: none;
}
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.1);
    background: rgba(255,255,255,0.06);
}
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-select {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c5ce7' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
    padding-right: 44px;
}
.form-select option { background: var(--bg-secondary); color: var(--text-primary); }
.vip-actions { display: flex; gap: 16px; margin-top: 8px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px; border-radius: 12px;
    font-family: var(--font-body); font-size: 15px;
    font-weight: 600; text-decoration: none; cursor: pointer;
    transition: all 0.3s ease; border: none;
}
.btn-primary {
    background: var(--gradient-main); color: white;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
}
.btn-outline {
    background: transparent; color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}
.btn-outline:hover {
    border-color: var(--primary); color: var(--primary);
    transform: translateY(-2px);
}

/* VIP RESPONSE */
.vip-response {
    margin-top: 20px; padding: 20px; border-radius: 12px;
    text-align: center; font-size: 14px;
}
.vip-response.success {
    background: rgba(0, 206, 201, 0.08);
    border: 1px solid rgba(0, 206, 201, 0.2);
    color: var(--secondary);
}
.vip-response.error {
    background: rgba(255,77,77,0.08);
    border: 1px solid rgba(255,77,77,0.2);
    color: #ff6b6b;
}

/* ============================================
   MAPS
   ============================================ */
.maps-section {
    border-top: 1px solid var(--glass-border);
}
.maps-wrapper {
    max-width: 1000px; margin: 0 auto; border-radius: 16px;
    overflow: hidden; border: 1px solid var(--card-border);
    box-shadow: var(--shadow-card);
}

/* ============================================
   GUEST BOOK
   ============================================ */
.guestbook-section {}

.guestbook-form-wrapper {
    max-width: 680px;
    margin: 0 auto 36px;
    background: rgba(20, 20, 70, 0.55);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 40px 36px;
    backdrop-filter: blur(10px);
}

.guestbook-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 680px;
    margin: 0 auto;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 6px;
}
.guestbook-messages::-webkit-scrollbar { width: 4px; }
.guestbook-messages::-webkit-scrollbar-track { background: transparent; }
.guestbook-messages::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }
.guestbook-msg {
    background: rgba(20, 20, 70, 0.6); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 20px; animation: msgSlideIn 0.4s ease;
}
@keyframes msgSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.guestbook-msg-header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.guestbook-msg-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gradient-main); display: flex; align-items: center;
    justify-content: center; font-size: 14px; color: white;
    font-weight: 700; flex-shrink: 0;
}
.guestbook-msg-name {
    font-weight: 600; font-size: 14px; color: var(--text-primary);
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.guestbook-msg-time { margin-left: auto; font-size: 11px; color: var(--text-muted); }
.guestbook-msg-text {
    font-size: 14px; color: var(--text-secondary); line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.guestbook-empty {
    text-align: center; padding: 60px 24px; color: var(--text-muted);
}
.guestbook-empty i { font-size: 48px; margin-bottom: 16px; opacity: 0.3; }
.guestbook-empty p { font-size: 14px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px; overflow: hidden;
}
.footer-bg-pattern {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(108, 92, 231, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 206, 201, 0.03) 0%, transparent 50%);
    pointer-events: none;
}
.footer-content {
    position: relative; z-index: 1; text-align: center; max-width: 650px; margin: 0 auto;
}
.footer-logo { margin-bottom: 20px; }
.footer-logo-img { height: 100px; width: auto; max-width: 100%; }
.footer-logo-placeholder {
    display: inline-flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; border: 2px dashed var(--glass-border);
    border-radius: 12px; color: var(--text-muted); font-size: 28px;
}
.footer-logo-placeholder i { color: var(--secondary); }
.footer-title {
    font-family: var(--font-display); font-size: 22px;
    background: var(--gradient-main);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 12px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}
.footer-title sup { font-size: 10px; }
.footer-desc { color: #ffffff; font-size: 14px; line-height: 1.7; margin-bottom: 28px; }
.footer-contact-info {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-bottom: 28px;
}
.footer-contact-item {
    display: flex; align-items: center; gap: 8px; font-size: 13px; color: #ffffff;
}
.footer-contact-item i { color: #ffffff; font-size: 14px; }
.footer-social { display: flex; justify-content: center; gap: 12px; margin-bottom: 32px; }
.footer-social-link {
    width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--card-border); display: flex;
    align-items: center; justify-content: center;
    color: var(--text-secondary); text-decoration: none;
    transition: all 0.3s ease; font-size: 18px;
}
.footer-social-link:hover {
    background: var(--gradient-main); color: white;
    border-color: var(--primary); transform: translateY(-3px);
}
.footer-bottom {
    padding-top: 24px; border-top: 1px solid var(--glass-border);
    font-size: 13px; color: #ffffff;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .schedule-grid { grid-template-columns: 1fr; max-width: 450px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-logo-left, .nav-logo-right { max-width: 40%; }
    .nav-logo-img.logo-g { height: 70px; }
    .nav-logo-img.logo-m { height: 40px; }
    .nav-brand-text { font-size: 15px; }
    .nav-logo-placeholder {
        padding: 4px 10px;
        font-size: 10px;
        gap: 4px;
    }
    .nav-logo-placeholder i { font-size: 14px; }
    .countdown-grid { gap: 4px; }
    .countdown-item { padding: 20px 16px; min-width: 80px; }
    .countdown-number { font-size: 2rem; }
    .countdown-sep { font-size: 1.5rem; margin-top: -20px; }
    .form-row { grid-template-columns: 1fr; }
    .rundown-card { padding: 18px 16px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .vip-actions { flex-direction: column; }
    .vip-actions .btn { width: 100%; justify-content: center; }
    .footer-contact-info { flex-direction: column; align-items: center; gap: 12px; }
}
@media (max-width: 480px) {
    .nav-logo-left, .nav-logo-right { max-width: 35%; }
    .nav-logo-img.logo-g { height: 50px; }
    .nav-logo-img.logo-m { height: 30px; }
    .nav-brand-text { font-size: 12px; }
    .nav-brand-sub { font-size: 8px; letter-spacing: 1px; }
    .nav-logo-placeholder {
        padding: 3px 8px;
        font-size: 9px;
        gap: 3px;
    }
    .nav-logo-placeholder i { font-size: 12px; }
    .countdown-grid { flex-wrap: wrap; justify-content: center; }
    .countdown-item { min-width: 70px; padding: 16px 12px; }
    .countdown-number { font-size: 1.6rem; }
    .countdown-sep { display: none; }
    .gallery-grid { grid-template-columns: 1fr; }
    .vip-form { padding: 24px 20px; }
    .guestbook-form-wrapper { padding: 24px 20px; }
}

/* ============================================
   SEARCHABLE COMPANY DROPDOWN
   ============================================ */
.searchable-select-group {
    position: relative;
}

.searchable-select-wrapper {
    position: relative;
}

.searchable-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    background: var(--bg-secondary, #13133a);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 12px;
    margin-top: 4px;
    z-index: 100;
    display: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.searchable-dropdown.show {
    display: block;
}

.searchable-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    cursor: pointer;
    color: var(--text-primary, #e0e0f0);
    font-size: 14px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.searchable-option .option-name {
    flex: 1;
    min-width: 0;
}

.searchable-option .option-day-badge {
    flex-shrink: 0;
    background: rgba(0,206,201,0.15);
    color: #00cec9;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(0,206,201,0.25);
    white-space: nowrap;
}

.searchable-option:last-child {
    border-bottom: none;
}

.searchable-option:hover,
.searchable-option.highlighted {
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary, #6c5ce7);
}

.searchable-option.disabled {
    color: var(--text-muted, #666);
    cursor: default;
}

.searchable-option.hidden {
    display: none;
}

.searchable-dropdown::-webkit-scrollbar {
    width: 6px;
}

.searchable-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.searchable-dropdown::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.3);
    border-radius: 3px;
}

/* ============================================
   SESSION INFO CARD — REDESIGNED
   ============================================ */
.session-info-card {
    background: linear-gradient(135deg, rgba(108,92,231,0.08) 0%, rgba(0,206,201,0.04) 100%);
    border: 1px solid rgba(108,92,231,0.25);
    border-radius: 16px;
    margin-top: 18px;
    overflow: hidden;
    animation: fadeSlideIn 0.4s ease;
    box-shadow: 0 4px 24px rgba(108,92,231,0.08);
}

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

.session-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    background: linear-gradient(90deg, rgba(108,92,231,0.15) 0%, rgba(108,92,231,0.05) 100%);
    font-weight: 700;
    font-size: 15px;
    color: var(--primary, #6c5ce7);
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(108,92,231,0.12);
}

.session-info-header i {
    font-size: 18px;
    color: var(--secondary, #00cec9);
}

.session-info-body {
    padding: 18px 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
}

/* Seating number row spans full width */
.session-info-body .session-info-row.seat-row {
    grid-column: 1 / -1;
}

.session-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.session-info-row:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(108,92,231,0.08);
}

.session-info-row .row-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    flex-shrink: 0;
}

.session-info-row .row-icon.icon-session   { background: rgba(108,92,231,0.15); color: #6c5ce7; }
.session-info-row .row-icon.icon-day       { background: rgba(0,206,201,0.15);  color: #00cec9; }
.session-info-row .row-icon.icon-date      { background: rgba(253,121,168,0.15); color: #fd79a8; }
.session-info-row .row-icon.icon-time      { background: rgba(255,204,0,0.15);   color: #ffcc00; }
.session-info-row .row-icon.icon-venue     { background: rgba(255,107,107,0.15); color: #ff6b6b; }
.session-info-row .row-icon.icon-seat      { background: rgba(0,206,201,0.2);    color: #00cec9; }
.session-info-row .row-icon.icon-dresscode { background: rgba(255,215,0,0.2);     color: #ffd700; }

.session-info-row .row-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.session-info-row .row-label {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
    line-height: 1.2;
}

.session-info-row .row-value {
    font-size: 15px;
    color: var(--text-primary, #e0e0f0);
    font-weight: 600;
    line-height: 1.3;
    margin-top: 2px;
}

.session-info-row.seat-row {
    margin-top: 6px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(0,206,201,0.1) 0%, rgba(0,206,201,0.02) 100%);
    border: 1px solid rgba(0,206,201,0.2);
    border-radius: 12px;
}

.session-info-row.seat-row .row-label {
    font-size: 12px;
    color: rgba(0,206,201,0.7);
    letter-spacing: 1px;
}

.session-info-row.seat-row .row-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary, #00cec9);
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(0,206,201,0.3);
}

/* ───── Dress Code Row (gold highlight) ───── */
.session-info-row.dresscode-row {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255,215,0,0.12) 0%, rgba(255,215,0,0.03) 100%);
    border: 1.5px solid rgba(255,215,0,0.25);
    border-radius: 12px;
    animation: dresscodeGlow 2.5s ease-in-out infinite;
}

.session-info-row.dresscode-row .row-label {
    font-size: 11px;
    color: rgba(255,215,0,0.7);
    letter-spacing: 1.2px;
    font-weight: 600;
}

.session-info-row.dresscode-row .row-value {
    font-size: 18px;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 0.5px;
    text-shadow: 0 0 15px rgba(255,215,0,0.25);
}

@keyframes dresscodeGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(255,215,0,0.08), inset 0 0 8px rgba(255,215,0,0.02); }
    50%      { box-shadow: 0 0 22px rgba(255,215,0,0.2),  inset 0 0 12px rgba(255,215,0,0.05); }
}

/* ───── Multi-Day Session Card (institution invited on all days) ───── */
.multi-day-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: linear-gradient(90deg, rgba(255,215,0,0.14) 0%, rgba(0,206,201,0.08) 100%);
    border-bottom: 1px solid rgba(255,215,0,0.15);
    color: #ffd700;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.multi-day-banner i {
    color: #ffd700;
    font-size: 15px;
}

.multi-day-body {
    display: block;
    padding: 18px 22px;
}

.day-block {
    border: 1px solid rgba(108,92,231,0.2);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: rgba(255,255,255,0.02);
}

.day-block:last-child { margin-bottom: 0; }

.day-block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(255,255,255,0.12);
}

.day-block-title .day-badge {
    background: rgba(0,206,201,0.15);
    color: #00cec9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0,206,201,0.25);
    text-transform: uppercase;
}

.day-block-title .day-block-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #e0e0f0);
}

.day-block-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
}

/* Multi-day rows are slightly more compact than the single-day card */
.day-block-grid .session-info-row { padding: 8px 10px; }
.day-block-grid .session-info-row .row-value { font-size: 14px; }
.day-block-grid .session-info-row.dresscode-row {
    grid-column: 1 / -1;
    margin-top: 0;
    padding: 10px 12px;
    animation: none;
}
.day-block-grid .session-info-row.dresscode-row .row-value { font-size: 15px; }
.day-block-grid .session-info-row.seat-row {
    grid-column: 1 / -1;
    margin-top: 0;
    padding: 10px 12px;
}
.day-block-grid .session-info-row.seat-row .row-value { font-size: 20px; letter-spacing: 1.5px; }

@media (max-width: 600px) {
    .multi-day-body { padding: 14px 16px; }
    .multi-day-banner { padding: 10px 16px; font-size: 12px; }
    .day-block { padding: 12px; }
    .day-block-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .session-info-body {
        grid-template-columns: 1fr;
        padding: 14px 16px;
    }
    .session-info-header {
        padding: 14px 16px;
        font-size: 14px;
    }
    .session-info-row {
        padding: 8px 10px;
    }
    .session-info-row .row-value {
        font-size: 14px;
    }
    .session-info-row.seat-row .row-value {
        font-size: 24px;
    }
}

/* ============================================
   VIP CARD
   ============================================ */
.vipcard-section {
    margin-top: 18px;
    animation: fadeSlideIn 0.4s ease;
}

.vipcard-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(108,92,231,0.2);
    background: rgba(108,92,231,0.04);
    transition: all 0.3s ease;
    max-width: 320px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(108,92,231,0.06);
}

.vipcard-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.vipcard-card:hover {
    transform: translateY(-3px);
    border-color: rgba(108,92,231,0.4);
    box-shadow: 0 8px 40px rgba(108,92,231,0.15);
}

.vipcard-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(108,92,231,0.3);
    text-transform: uppercase;
}

.vipcard-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 400 / 560;
    overflow: hidden;
}

.vipcard-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.vipcard-card:hover .vipcard-preview img {
    transform: scale(1.05);
}

.vipcard-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(10,10,46,0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.vipcard-card:hover .vipcard-overlay {
    opacity: 1;
}

.vipcard-overlay i {
    font-size: 28px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.vipcard-overlay span {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* --- VIP Card uses Fancybox (same as gallery) --- */
@media (max-width: 480px) {
    .vipcard-card {
        max-width: 260px;
    }
}

@media (max-width: 480px) {
    .searchable-dropdown {
        max-height: 180px;
    }
    .session-info-body {
        padding: 12px 16px;
    }
    .session-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .session-info-value {
        text-align: left;
    }
}

/* ============================================
   BODY LOCK — disable scroll before opening
   ============================================ */
.body-locked {
    overflow: hidden !important;
    height: 100% !important;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

/* ============================================
   OPENING MODAL — Full-screen Futuristik
   ============================================ */
.opening-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh; /* dynamic viewport height — fixes cut-off button on iOS/Android browser chrome */
    z-index: 99999;
    background:
        /* Deep space base */
        radial-gradient(ellipse at 50% 20%, #0b0b42 0%, #060624 40%, #020212 100%);
    display: flex;
    overflow-y: auto;             /* if content is taller than the viewport, it can still be reached */
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* --- Galaxy canvas starfield --- */
.galaxy-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.opening-modal.opening-closing {
    opacity: 0;
    transform: scale(1.08);
    pointer-events: none;
}

/* --- Animated floating particles --- */
.opening-bg-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.opening-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108,92,231,0.15) 0%, transparent 70%);
    animation: floatParticle 8s ease-in-out infinite;
}

.opening-p1 { width: 300px; height: 300px; top: -5%; left: -5%; animation-delay: 0s; }
.opening-p2 { width: 200px; height: 200px; top: 60%; left: 80%; animation-delay: 2s; }
.opening-p3 { width: 250px; height: 250px; top: 20%; left: 70%; animation-delay: 4s; }
.opening-p4 { width: 180px; height: 180px; top: 70%; left: 10%; animation-delay: 1s; }
.opening-p5 { width: 120px; height: 120px; top: 40%; left: 40%; animation-delay: 3s;
    background: radial-gradient(circle, rgba(0,206,201,0.1) 0%, transparent 70%); }
.opening-p6 { width: 160px; height: 160px; top: 10%; left: 85%; animation-delay: 5s;
    background: radial-gradient(circle, rgba(253,121,168,0.1) 0%, transparent 70%); }

@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(40px, 30px) scale(1.05); }
}

/* --- Grid overlay --- */
.opening-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(108, 92, 231, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
    pointer-events: none;
}

/* --- Animated rings --- */
.opening-ring-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
}

.opening-ring {
    position: absolute;
    border-radius: 50%;
    border: 2.5px solid;
    animation: pulseRing 4s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(108,92,231,0.08), inset 0 0 15px rgba(108,92,231,0.04);
}

.opening-ring-1 {
    width: 500px;
    height: 500px;
    margin-left: -250px;
    margin-top: -250px;
    border-color: rgba(108,92,231,0.30);
    animation-delay: 0s;
}

.opening-ring-2 {
    width: 400px;
    height: 400px;
    margin-left: -200px;
    margin-top: -200px;
    border-color: rgba(0,206,201,0.25);
    animation-delay: 1s;
}

.opening-ring-3 {
    width: 300px;
    height: 300px;
    margin-left: -150px;
    margin-top: -150px;
    border-color: rgba(253,121,168,0.20);
    animation-delay: 2s;
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.18); opacity: 1; box-shadow: 0 0 30px rgba(108,92,231,0.2), inset 0 0 20px rgba(108,92,231,0.08); }
}

/* --- Content --- */
.opening-content {
    position: relative;
    z-index: 2;
    margin: auto; /* centers in viewport when it fits; stays scrollable when it doesn't */
    width: 100%;
    text-align: center;
    padding: 40px 24px;
    padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
             max(32px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    max-width: 600px;
    animation: openingFadeIn 1.2s ease 0.3s both;
}

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

/* --- Icon --- */
.opening-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.opening-icon-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108,92,231,0.3) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
}

.opening-logo {
    width: 360px;
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 40px rgba(108,92,231,0.5));
    animation: iconFloat 3s ease-in-out infinite;
}

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

/* --- Recipient name (below Bali, Indonesia) --- */
.opening-recipient-wrap {
    margin-top: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.opening-dear-label {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    letter-spacing: 1px;
}

.opening-recipient {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    font-weight: 600;
    background: linear-gradient(135deg, #00cec9, #6c5ce7, #fd79a8);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    line-height: 1.3;
    word-break: break-word;
}

/* --- Typography --- */
.opening-greeting {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: rgba(255,255,255,0.6);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 300;
}

.opening-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 4px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.8), 0 0 60px rgba(108,92,231,0.15);
}

.opening-title sup {
    font-size: 0.5em;
}

.opening-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 2.8rem);
    font-weight: 700;
    background: linear-gradient(135deg, #6c5ce7, #00cec9, #6c5ce7);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    margin-bottom: 20px;
    line-height: 1.2;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.opening-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 20px 0;
}

.opening-divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108,92,231,0.6), transparent);
}

.opening-divider i {
    color: #ffffff;
    font-size: 12px;
    animation: starPulse 2s ease-in-out infinite;
}

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

.opening-date {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: #ffffff;
    margin-bottom: 6px;
    text-shadow: 0 1px 20px rgba(0,0,0,0.5);
}

.opening-location {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.opening-location i {
    color: #00cec9;
    margin-right: 6px;
}

/* --- Button --- */
.opening-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 44px;
    border: none;
    border-radius: 60px;
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(108,92,231,0.3);
    letter-spacing: 0.5px;
}

.opening-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(108,92,231,0.45);
}

.opening-btn:active {
    transform: translateY(0);
}

.opening-btn-ring {
    position: absolute;
    inset: -2px;
    border-radius: 62px;
    border: 2px solid rgba(255,255,255,0.2);
    animation: btnRingPulse 2s ease-in-out infinite;
}

@keyframes btnRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.04); opacity: 0; }
}

.opening-btn-text {
    position: relative;
    z-index: 1;
}

.opening-btn-icon {
    position: relative;
    z-index: 1;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.opening-btn:hover .opening-btn-icon {
    transform: translateX(4px) scale(1.1);
}

.opening-hint {
    margin-top: 24px;
    font-size: 12px;
    color: rgba(255,255,255,0.25);
    letter-spacing: 1px;
    animation: hintBlink 2.5s ease-in-out infinite;
}

@keyframes hintBlink {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.6; }
}

/* ============================================
   MUSIC TOGGLE — Floating control button
   ============================================ */
.music-toggle {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    background: rgba(10,10,46,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.music-toggle-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.music-toggle:hover {
    border-color: rgba(108,92,231,0.4);
    background: rgba(10,10,46,0.95);
    box-shadow: 0 6px 30px rgba(108,92,231,0.2);
    transform: translateY(-2px);
}

.music-toggle-icon {
    font-size: 16px;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.music-toggle-icon.music-spin {
    animation: musicSpin 3s linear infinite;
    color: var(--primary);
}

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

.music-toggle-text {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* --- Mobile adjustments --- */
@media (max-width: 768px) {
    .opening-ring-1 { width: 350px; height: 350px; margin-left: -175px; margin-top: -175px; border-width: 2px; }
    .opening-ring-2 { width: 280px; height: 280px; margin-left: -140px; margin-top: -140px; border-width: 2px; }
    .opening-ring-3 { width: 210px; height: 210px; margin-left: -105px; margin-top: -105px; border-width: 2px; }
    .opening-btn { padding: 16px 36px; }
    .opening-logo { width: 130px; }
    .music-toggle { bottom: 20px; right: 20px; padding: 10px 18px; font-size: 12px; }
}

@media (max-width: 480px) {
    .opening-content { padding: 24px 16px; }
    .opening-ring-1 { width: 260px; height: 260px; margin-left: -130px; margin-top: -130px; border-width: 2px; }
    .opening-ring-2 { width: 210px; height: 210px; margin-left: -105px; margin-top: -105px; border-width: 2px; }
    .opening-ring-3 { width: 160px; height: 160px; margin-left: -80px; margin-top: -80px; border-width: 2px; }
    .opening-btn { padding: 14px 28px; font-size: 0.95rem; gap: 10px; }
    .opening-logo { width: 120px; } /* was 310px (typo/regression) — oversized logo pushed the button off-screen */
    .opening-location { margin-bottom: 20px; }
    .music-toggle { bottom: 16px; right: 16px; padding: 8px 16px; font-size: 11px; gap: 8px; }
}

/* --- Short screens (small phones, landscape, browser chrome open) --- */
@media (max-height: 700px) {
    .opening-logo { width: 110px; }
    .opening-icon-wrap { margin-bottom: 2px; }
    .opening-greeting { margin-bottom: 8px; }
    .opening-title { font-size: clamp(1.5rem, 5vw, 2.2rem); margin-bottom: 2px; }
    .opening-subtitle { font-size: clamp(1.05rem, 3.5vw, 1.5rem); margin-bottom: 10px; }
    .opening-divider { margin: 10px 0; }
    .opening-date { margin-bottom: 4px; }
    .opening-location { margin-bottom: 14px; }
    .opening-recipient-wrap { margin-top: 10px; margin-bottom: 8px; }
    .opening-btn { padding: 14px 30px; }
    .opening-hint { margin-top: 10px; }
}

/* --- Short desktop/laptop windows (1280x720, 1366x768, browser chrome open) --- */
@media (max-height: 840px) and (min-width: 769px) {
    .opening-logo { width: min(360px, 26vh); }
    .opening-icon-wrap { margin-bottom: 4px; }
    .opening-greeting { margin-bottom: 10px; }
    .opening-divider { margin: 12px 0; }
    .opening-location { margin-bottom: 18px; }
    .opening-recipient-wrap { margin-top: 12px; margin-bottom: 8px; }
    .opening-hint { margin-top: 14px; }
}

/* --- Landscape phones (short + wide) --- */
@media (orientation: landscape) and (max-height: 480px) {
    .opening-content { padding: 16px; }
    .opening-logo { width: 72px; }
    .opening-greeting { font-size: 0.8rem; margin-bottom: 4px; letter-spacing: 2px; }
    .opening-title { font-size: 1.4rem; }
    .opening-subtitle { font-size: 1.05rem; margin-bottom: 6px; }
    .opening-divider { margin: 6px 0; }
    .opening-date { font-size: 0.9rem; }
    .opening-location { font-size: 11px; margin-bottom: 8px; }
    .opening-recipient-wrap { margin-top: 6px; margin-bottom: 4px; }
    .opening-btn { padding: 12px 26px; font-size: 0.9rem; }
    .opening-hint { margin-top: 6px; }
}
