:root {
    /* Color Palette - Premium & Soft */
    --primary-color: #5D5C61;
    --secondary-color: #379683;
    --bg-color: #FDFBF7;
    --font-body: 'Lato', sans-serif;

    /* Transitions */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --font-accent: 'Great Vibes', cursive;
    --border-radius: 10px;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.8s ease;
    --gold: #D4AF37;
    --red: #e74c3c;
    --card-bg: #ffffff;
}

/* Scroll Animation Utilities */
.anim-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.anim-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Soft transition for all elements to catch borders/shadows */
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.8s ease, color 0.8s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Helper Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--text-on-primary, #ffffff);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    /* Reverse on hover for effect */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-on-secondary, #ffffff);
}

.btn-secondary:hover {
    background-color: #bfa05d;
    color: white;
}

/* Animation Utilities */
.anim-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.anim-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* --- SECTIONS --- */

/* Cover / Splash */
#cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Default Desktop */
    background: var(--cover-bg, url('../assets/img/cover-bg.svg')) no-repeat center center/cover;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.8s ease-in-out;
}

#cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cover-overlay-bg, rgba(0, 0, 0, 0.4));
}

/* Mobile Background Override */
@media (max-width: 768px) {
    #cover {
        background-image: var(--cover-bg-mobile, var(--cover-bg, url('../assets/img/cover-bg.svg')));
    }
}

.cover-content {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.open #cover {
    transform: translateY(-100%);
}

/* Hero */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../assets/img/hero-bg.svg') no-repeat center center/cover;
    position: relative;
}

/* Couple */
#couple {
    padding: 5rem 0;
    background-color: white;
}

.couple-combined-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    border: 5px solid var(--gold);
    margin: 0 auto 3rem auto;
    /* Centered, with bottom margin */
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.couple-grid {
    display: flex;
    flex-direction: column;
    /* Mobile first: Stack vertically */
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .couple-grid {
        flex-direction: row;
        /* Desktop: Row */
        gap: 4rem;
        /* More space on desktop */
    }

    .couple-card {
        flex: 1;
        /* Equal width */
    }
}

/* --- GALLERY MODES --- */
.gallery-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-img-grid {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.gallery-img-grid:hover {
    transform: scale(1.02);
}

/* Masonry */
.gallery-masonry-container {
    column-count: 3;
    column-gap: 10px;
}

.gallery-img-masonry {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 10px;
    display: block;
    cursor: zoom-in;
    transition: opacity 0.3s;
}

.gallery-img-masonry:hover {
    opacity: 0.9;
}

/* Bento (Simple Variation) */
.gallery-bento-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    grid-auto-rows: 200px;
}

.gallery-img-bento {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.gallery-bento-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-bento-item:nth-child(7n) {
    grid-column: span 2;
}

.gallery-bento-item:nth-child(8n) {
    grid-row: span 2;
}

/* Responsive Grid/Masonry */
@media (max-width: 768px) {
    .gallery-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-masonry-container {
        column-count: 2;
    }

    .gallery-bento-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- LIGHTBOX --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 2rem;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.couple-card {
    text-align: center;
}

.couple-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 5px solid var(--gold);
    padding: 5px;
}

/* Love Story Timeline */
#story {
    padding: 5rem 0;
    background-color: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--gold);
    transform: translateX(-50%);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: var(--bg-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-year {
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.5rem;
    font-family: var(--font-secondary);
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
        right: auto;
    }
}

/* Event */
#event {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

/* Circular Countdown */
.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.countdown-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* SVG Circle Styles */
.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 5;
}

.circle {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
    stroke: var(--gold);
    /* Or var(--primary-color) based on preference */
    transition: stroke-dashoffset 1s linear;
}

.countdown-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.countdown-text span {
    display: block;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-family: var(--font-secondary);
    color: #999;
    font-weight: 400;
    line-height: 1;
}

.countdown-text p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    margin-top: 5px;
}

@media (max-width: 480px) {
    .countdown-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .countdown-text span {
        font-size: 2rem;
    }
}

.event-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.event-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 1rem;
    flex: 1;
    min-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* Gallery */
#gallery {
    padding: 5rem 0;
}

/* Gallery Carousel */
.gallery-carousel-wrapper {
    position: relative;
    max-width: 900px;
    margin: 2rem auto 0;
    overflow: hidden;
    padding: 0 1rem;
}

.gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    /* Space for shadow if needed */
    scrollbar-width: none;
    /* Firefox */
}

.gallery-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.gallery-img {
    scroll-snap-align: center;
    flex: 0 0 100%;
    /* Mobile: 1 image */
    width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (min-width: 768px) {
    .gallery-img {
        flex: 0 0 45%;
        /* Desktop: ~2 images */
    }
}

/* Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--text-on-primary, #ffffff);
}

.carousel-btn.prev {
    left: 0px;
}

.carousel-btn.next {
    right: 0px;
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

/* RSVP */
#rsvp {
    padding: 5rem 0;
    background-color: var(--secondary-color);
    color: var(--text-on-secondary, #ffffff);
}

.rsvp-form-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
}

/* Gift */
#gift {
    padding: 5rem 0;
    text-align: center;
}

.bank-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    margin: 1rem;
    position: relative;
    overflow: hidden;
}

/* Hero Names */
#hero h1 {
    font-family: var(--font-accent);
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Flexbox for stacking names */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

@media (max-width: 768px) {
    #hero h1 {
        flex-direction: column;
        font-size: 3rem;
        gap: 5px;
    }

    .name-block {
        display: block;
    }

    .amp {
        font-size: 2rem;
        margin: 5px 0;
    }
}

.amper {
    font-family: var(--font-accent);
    font-size: 4rem;
    color: var(--gold);
    align-self: center;
}

.bank-logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.copy-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 1rem;
}

footer {
    padding: 2rem;
    background: var(--primary-color);
    color: var(--text-on-primary, #ffffff);
    font-size: 0.9rem;
}

footer h2 {
    color: inherit;
}

/* Comment Card */
.comment-card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- GLOBAL MODAL & UI COMPONENTS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

/* User Requested Border Standardization */
#comment-name,
#reception-user,
#reception-pass,
#comment-template,
#comment-message {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 10px;
    box-shadow: none;
    transition: border-color 0.3s ease;
}

#comment-name:focus,
#reception-user:focus {
    border-color: var(--gold) !important;
    outline: none;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

/* RSVP */
#rsvp {
    padding: 5rem 0;
    background-color: var(--secondary-color);
    color: var(--text-on-secondary, #ffffff);
}

.rsvp-form-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
}

/* Gift */
#gift {
    padding: 5rem 0;
    text-align: center;
}

.bank-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    margin: 1rem;
    position: relative;
    overflow: hidden;
}

/* Hero Names */
#hero h1 {
    font-family: var(--font-accent);
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Flexbox for stacking names */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

@media (max-width: 768px) {
    #hero h1 {
        flex-direction: column;
        font-size: 3rem;
        gap: 5px;
    }

    .name-block {
        display: block;
    }

    .amp {
        font-size: 2rem;
        margin: 5px 0;
    }
}

.amper {
    font-family: var(--font-accent);
    font-size: 4rem;
    color: var(--gold);
    align-self: center;
}

.bank-logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.copy-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 1rem;
}

footer {
    padding: 2rem;
    background: var(--primary-color);
    color: var(--text-on-primary, #ffffff);
    font-size: 0.9rem;
}

footer h2 {
    color: inherit;
}

/* Comment Card */
.comment-card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- GLOBAL MODAL & UI COMPONENTS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

/* User Requested Border Standardization */
#comment-name,
#reception-user,
#reception-pass,
#comment-template,
#comment-message {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 10px;
    box-shadow: none;
    transition: border-color 0.3s ease;
}

#comment-name:focus,
#reception-user:focus,
#reception-pass:focus,
#comment-template:focus,
#comment-message:focus {
    border-color: var(--gold) !important;
    outline: none;
}

/* REMOVED OLD CARD STYLES TO AVOID CONFLICT, ADDING NEW CLEAN ONES */

/* --- NEW GUEST LIST UI (Admin & Checkin) --- */

/* Header & Stats */
.header-gold-bar {
    background: linear-gradient(90deg, #d4af37, #f2d06b);
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stats-row-new {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: space-between;
}

.stat-box-new {
    background: white;
    border: 2px solid #333;
    border-radius: 8px;
    flex: 1;
    text-align: center;
    padding: 15px;
    box-shadow: 0 4px 0 #333;
    /* Hard shadow for pop effect */
}

.stat-box-title {
    font-size: 0.9rem;
    color: #0d47a1;
    /* Dark Blue */
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-box-val {
    font-size: 2rem;
    font-weight: 900;
    color: #0d47a1;
}

/* Search & Filter */
.search-filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input-big {
    flex: 4;
    padding: 0 15px;
    /* Adjust padding for fixed height */
    font-size: 1.1rem;
    border: 2px solid #333;
    border-radius: 8px;
    outline: none;
    text-transform: uppercase;
    height: 50px;
    /* Explicit height */
}

.btn-filter-big {
    flex: 1;
    background: white;
    border: 2px solid #333;
    border-radius: 8px;
    font-weight: bold;
    color: #0d47a1;
    cursor: pointer;
    box-shadow: 0 4px 0 #333;
}

.btn-filter-big:active {
    transform: translateY(4px);
    box-shadow: none;
}

/* Guest List */
.guest-list-new {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guest-card-new {
    background: white;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    /* Stretch to equal height */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.guest-info {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.guest-code {
    color: #0d47a1;
    font-weight: bold;
    font-size: 1rem;
}

.guest-name {
    color: #0d47a1;
    font-weight: 900;
    font-size: 1.4rem;
    line-height: 1.2;
}

.guest-meta {
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
    margin-top: 5px;
}

.guest-date {
    font-size: 0.75rem;
    color: #0d47a1;
    margin-top: 8px;
}

/* Actions Grid */
.guest-actions {
    flex: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    max-width: 300px;
}

/* QR Button (Span 2 rows if needed, or just left column) 
   Reference Image: QR is big on left of the actions block? 
   Actually it looks like:
   [QR BUTTON] [CHECK IN]
   [QR BUTTON] [EDIT | HAPUS]
   
   Let's try a layout: 
   Left: Info
   Right: Grid
     [QR (rowspan 2)]  [CHECK IN (colspan 2?)] -> No
     
   Looking at image:
   Right side:
   [ QR CODE BUTTON (Green) ]   [ CHECK IN (Green) ]
                                [ EDIT (Grey) ] [ HAPUS (Red) ]
                                
   So it's 2 columns.
   Col 1: QR Code Button (Rowspan 2?) -> Looks like it.
   Col 2 Row 1: Check In
   Col 2 Row 2: Edit & Hapus (split)
*/

.guest-actions {
    display: grid;
    grid-template-columns: 100px 1fr;
    /* QR fixed width, rest flexible */
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    width: 280px;
    /* Fixed width for consistency */
}

.btn-act-qr {
    grid-row: 1 / 3;
    /* Span 2 rows */
    background: #4CAF50;
    /* Green */
    color: white;
    border: 2px solid #333;
    border-radius: 8px;
    font-weight: 900;
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 3px 0 #1b5e20;
    padding: 5px;
}

.btn-act-qr:active {
    transform: translateY(3px);
    box-shadow: none;
}

.btn-act-checkin {
    grid-column: 2 / 3;
    background: #4CAF50;
    color: white;
    border: 2px solid #333;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 0 #1b5e20;
}

.btn-act-checkin.checked {
    background: #FFC107;
    /* Yellow/Orange for CANCEL */
    color: #333;
    box-shadow: 0 3px 0 #bbb;
}

.btn-act-checkin:active {
    transform: translateY(3px);
    box-shadow: none;
}

/* Wrapper for Edit/Delete to split the cell */
/* Wait, grid is easier if we have 3 columns? 
   No, let's use flex for the last cell if we can't do subgrid easily.
   Or make grid 3 columns?
   QR | CheckIn | CheckIn
   QR | Edit    | Hapus
*/
.guest-actions {
    grid-template-columns: 100px 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.btn-act-qr {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.btn-act-checkin {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
}

/* Full width top */
.btn-act-edit {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    background: #757575;
    color: white;
    border: 2px solid #333;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 0 #424242;
}

.btn-act-del {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    background: #d32f2f;
    color: white;
    border: 2px solid #333;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 0 #8b0000;
}

.btn-act-edit:active,
.btn-act-del:active {
    transform: translateY(3px);
    box-shadow: none;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .guest-card-new {
        flex-direction: column;
        gap: 15px;
    }

    .guest-actions {
        width: 100%;
        max-width: none;
        grid-template-columns: 1fr 1fr 1fr;
        /* QR takes 1, others take 2 */
        /* QR is taking too much height if 1fr/1fr.
           Let's just stack:
           [Check In]
           [QR] [Edit] [Del]
        */
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .btn-act-qr {
        height: 60px;
        flex-direction: row;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* --- CALENDAR MODAL (OPTIMIZED) --- */
#calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    animation: fadeIn 0.3s forwards;
    padding: 1rem;
    /* Ensure padding on small screens */
}

.calendar-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    /* Smooth corners */
    width: 100%;
    max-width: 380px;
    /* Slightly wider */
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    animation: slideUp 0.3s forwards;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.calendar-modal-header {
    margin-bottom: 0.5rem;
}

.calendar-modal-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: var(--font-primary);
}

.calendar-modal-subtitle {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

.calendar-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.calendar-close-btn:hover {
    background: #e0e0e0;
}

.calendar-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Left align content usually looks better in list */
    gap: 15px;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    color: #444;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.calendar-btn:hover,
.calendar-btn:active {
    background: #f8f9fa;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.calendar-btn i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.btn-cal-google {
    border-left: 5px solid #DB4437;
}

.btn-cal-outlook {
    border-left: 5px solid #0078D4;
}

.btn-cal-yahoo {
    border-left: 5px solid #410093;
}

.btn-cal-ics {
    border-left: 5px solid #333;
    background: #fdfdfd;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

/* --- SIMPLE PAYMENT GRID --- */
#payment-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    padding: 1rem 0;
}

/* Mobile 2-Column Override */
@media (max-width: 480px) {
    #payment-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pay-card-simple {
        padding: 1rem;
        /* Smaller padding */
    }

    .pay-card-icon {
        font-size: 2rem;
        /* Smaller icon */
        height: 40px;
    }

    .pay-card-icon img {
        max-height: 35px;
    }

    .pay-card-title {
        font-size: 1rem;
        /* Smaller text */
    }
}

.pay-card-simple {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.pay-card-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pay-card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.pay-card-icon img {
    max-height: 50px;
    width: auto;
}

.pay-card-title {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.pay-card-cat {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- PAYMENT DETAILS MODAL --- */
.pay-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    backdrop-filter: blur(5px);
}

.pay-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.pay-modal-card {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);

    /* Lighter Animation: Zoom In */
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s ease;
}

.pay-modal-overlay.show .pay-modal-card {
    transform: scale(1);
    opacity: 1;
}

.pay-modal-header {
    background: var(--primary-color);
    color: #fff;
    /* Fallback text color */
    padding: 1.5rem;
    position: relative;
    text-align: left;
}

/* Ensure header text contrasts with primary color, assuming primary is dark/gold */
.pay-modal-header * {
    color: #fff;
}

.pay-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
}

.pay-modal-close:hover {
    color: #fff;
}

.pay-modal-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.pay-modal-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 1px;
    margin-top: 5px;
    display: block;
}

.pay-modal-body {
    padding: 2rem;
    text-align: center;
    background: #fff;
    color: #333;
}

/* QR Box */
.pay-qr-box {
    border: 1px dashed #ddd;
    padding: 1rem;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 1rem;
    position: relative;
    background: #fafafa;
}

.pay-qr-label {
    font-size: 0.7rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 1px;
}

.pay-qr-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.pay-download-link {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #3498db;
    text-decoration: none;
}

.pay-download-link:hover {
    text-decoration: underline;
}

.pay-number {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0.5rem 0;
    color: #333;
    letter-spacing: 1px;
    word-break: break-all;
}

.pay-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 1.5rem 0;
    width: 100%;
}

.pay-footer-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.pay-copy-area {
    margin-top: 5px;
    cursor: pointer;
    display: inline-block;
}

.pay-copy-text {
    font-size: 0.75rem;
    color: #999;
}

/* --- GALLERY OPTIMIZATIONS --- */

/* Base Image Styles */
.gallery-img,
.gallery-img-grid,
.gallery-img-masonry,
.gallery-img-bento {
    border-radius: 12px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, filter 0.3s ease;
    cursor: pointer;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Remove inline spacing */
}

.gallery-img:hover,
.gallery-img-grid:hover,
.gallery-img-masonry:hover,
.gallery-img-bento:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    filter: brightness(1.05);
    z-index: 2;
    /* Bring forward */
    position: relative;
}

/* 1. Carousel Mode */
.gallery-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    /* Space for shadow */
}

.gallery-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 20px 40px;
    /* Internal padding */

    /* Scroll Snap */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery-track::-webkit-scrollbar {
    height: 6px;
}

.gallery-track::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.gallery-img {
    height: 300px;
    width: auto;
    /* Maintain aspect ratio */
    flex-shrink: 0;
    scroll-snap-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 2. Grid Mode (Auto Responsive) */
.gallery-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    padding: 10px;
}

.gallery-img-grid {
    height: 200px;
    /* Fixed height for uniformity */
    width: 100%;
}

/* 3. Masonry Mode (CSS Columns) */
.gallery-masonry-container {
    column-count: 3;
    column-gap: 1.5rem;
    padding: 10px;
}

.gallery-img-masonry {
    width: 100%;
    margin-bottom: 1.5rem;
    break-inside: avoid;
    height: auto;
    /* Let content define height */
}

@media (max-width: 900px) {
    .gallery-masonry-container {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-masonry-container {
        column-count: 2;
        column-gap: 10px;
    }
}

/* 4. Bento Mode (CSS Grid Dense) */
.gallery-bento-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    grid-auto-flow: dense;
    /* Fill holes */
    padding: 10px;
}

/* Bento Item Wrappers (Generated by JS or applied to IMG directly) */
/* If applying directly to IMG */
.gallery-img-bento {
    height: 100%;
    /* Fill cell */
}

/* Patterns: Repeat every 8 items approx */
.gallery-bento-item {
    display: contents;
}

/* If wrapper used */

/* Or if using nth-child on images directly (assuming wrapper) */
/* Using :nth-child on direct children of container */
.gallery-bento-container>*:nth-child(8n + 1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-bento-container>*:nth-child(8n + 4) {
    grid-column: span 2;
}

.gallery-bento-container>*:nth-child(8n + 5) {
    grid-row: span 2;
}

@media (max-width: 768px) {
    .gallery-bento-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-bento-container>*:nth-child(8n + 1) {
        grid-column: span 2;
        /* Full width on mobile */
        grid-row: span 2;
    }

    /* Reset others or keep custom */
}

/* --- WRAPPER UPDATES FOR ANIMATION --- */
/* Ensure wrappers handle layout so images can handle hover effects without conflict */

.gallery-masonry-item {
    margin-bottom: 1.5rem;
    break-inside: avoid;
    width: 100%;
}

.gallery-masonry-item img {
    margin-bottom: 0;
    /* Wrapper handles margin */
}

.gallery-grid-item {
    width: 100%;
    height: 200px;
}

.gallery-grid-item img {
    height: 100%;
}

/* Bento Item already defined but ensure it works with wrapper */
.gallery-bento-item {
    display: block;
    /* Override contents if set previously, we need block for animation transform */
    width: 100%;
    height: 100%;
}

.gallery-bento-item img {
    height: 100%;
    object-fit: cover;
}

/* Override Bento Grid assignments to target Wrapper instead of direct children if needed? */
/* CSS was: .gallery-bento-container > *:nth-child(...) */
/* The * will now match the wrapper div. This is CORRECT. */

/* --- LOADING STATE (Prevent FOUC) --- */
body.loading-config .dynamic-text,
body.loading-config #hero-names,
body.loading-config #cover-names,
body.loading-config #page-title,
body.loading-config #footer-names,
body.loading-config #txt-hero-date,
body.loading-config #txt-hero-date-2,
body.loading-config #bride-name,
body.loading-config #groom-name {
    visibility: hidden;
    opacity: 0;
}

body.loading-config::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    z-index: 9999;

    /* Spinner Style */
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--gold, #D4AF37);
    border-radius: 50%;

    /* Animation */
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* --- COVER REDESIGN (Glassmorphism) --- */
.cover-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    /* Rounded corners */
    padding: 40px 20px;
    margin: 0 auto 10px;
    width: 90%;
    /* Consistent width */
    max-width: 450px;
    /* Standardize max-width to match desktop usage */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.guest-wrapper {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    /* Match cover-card */
    padding: 30px 20px;
    margin: 10px auto 20px;
    width: 90%;
    /* Consistent width */
    max-width: 450px;
    /* Standardize max-width */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    display: none;
    /* JS toggles this */
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* Fix Date Pill Dimensions */
#txt-hero-date {
    display: inline-block !important;
    padding: 7px 20px !important;
    border-radius: 50px !important;
    margin-top: 15px !important;
    font-size: 1rem !important;
    /* Matches typical prefix size */
    font-weight: normal !important;
    /* Prefix typically normal weight */
    font-family: var(--font-primary) !important;
    /* Ensure consistent font */
    background: var(--primary-color, #2C3E50) !important;
    color: var(--text-on-primary, #ffffff) !important;
}

.guest-name-pill {
    background: white;
    color: var(--primary-color, #333);
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: bold;
    font-size: 1.3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
    min-width: 220px;
    margin-top: 5px;
    max-width: 90%;
    overflow: hidden;
    vertical-align: middle;
}

/* Marquee Effect */
.marquee-active {
    white-space: nowrap;
    text-align: left;
    /* Start scroll from right */
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 12s linear infinite;
    min-width: 100%;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* Cover Typography Refinement */
#cover-names {
    font-family: var(--font-accent, serif);
    font-size: 3.5rem;
    color: var(--primary-color, #2C3E50);
    /* Config L467 */
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    /* Stacked always */
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    line-height: 1.2;
}

#cover-names .amp {
    font-size: 2rem;
    color: var(--primary-color, #2C3E50);
    /* Config L467 */
    font-style: italic;
    margin: 5px 0;
}

#txt-cover-prefix {
    color: var(--primary-color, #2C3E50);
    /* Config L467 */
}

#txt-visitor-label {
    color: var(--primary-color, #2C3E50) !important;
    /* Config L467 */
}

/* Date Pill Specifics */
#txt-hero-date {
    background: var(--primary-color, #2C3E50) !important;
    /* Config L467 */
    color: var(--text-on-primary, #ffffff) !important;
    /* Config L471 */
}

/* Ensure guest name pill uses primary color for text */
.guest-name-pill {
    color: var(--primary-color, #2C3E50) !important;
    /* Config L467 */
}

/* Mobile Responsiveness (Already preserved by default logic above, no overrides needed) */
@media (max-width: 768px) {
    #cover-names {
        font-size: 2.5rem;
    }
}

/* --- MODAL & GLASS PANEL (Restored for Popups) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .modal-overlay {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(0, 0, 0, 0.85);
        /* Darker to compensate */
    }
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    /* High opacity for readability */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 25px;
}

/* Ensure modal content fits */
.modal-content {
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- Custom Event Selector (Light Theme) --- */
.event-selector-wrapper {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 400px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.event-selector-header {
    padding: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    background: #fdfbf7;
}

.event-selector-title {
    color: var(--primary-color, #2c3e50);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.25rem;
}

.event-selector-subtitle {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 400;
}

.event-search-container {
    position: relative;
    margin-bottom: 1rem;
    margin-top: 1.25rem;
}

.event-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    pointer-events: none;
}

.event-search-input {
    display: block;
    width: 100%;
    padding-left: 2.5rem;
    padding-right: 0.75rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    color: var(--primary-color, #2c3e50);
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: all 0.2s;
}

.event-search-input:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--secondary-color, #D4AF37);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.event-select-all-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 0.5rem 0;
    cursor: pointer;
    text-align: left;
}

.event-select-all-label {
    color: var(--primary-color, #2c3e50);
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.2s;
}

.event-select-all-btn:hover .event-select-all-label {
    color: var(--secondary-color, #D4AF37);
}

.event-select-all-icon {
    color: #adb5bd;
    transition: color 0.2s;
}

.event-select-all-btn:hover .event-select-all-icon {
    color: var(--secondary-color, #D4AF37);
}

.event-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    padding-bottom: 1.5rem;
    background: #fff;
}

/* Scrollbar Styling */
.event-list::-webkit-scrollbar {
    width: 6px;
}

.event-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.event-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.event-list::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.event-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.event-item:hover {
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

.event-item.selected {
    background-color: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.event-item-label {
    color: var(--primary-color, #2c3e50);
    font-size: 1rem;
    font-weight: 500;
}

.event-item:hover .event-item-label {
    color: var(--primary-color, #2c3e50);
}

.event-item.selected .event-item-label {
    color: var(--primary-color, #2c3e50);
    font-weight: 600;
}

.event-item-icon {
    color: #adb5bd;
}

.event-item:hover .event-item-icon {
    color: #6c757d;
}

.event-item.selected .event-item-icon {
    color: var(--secondary-color, #D4AF37);
}


/* --- MultiSelect Box (Light/Glass Theme) --- */
.multi-select-container {
    position: relative;
    width: 100%;
    font-family: var(--font-primary, sans-serif);
}

.multi-select-trigger {
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color, #2c3e50);
    transition: all 0.3s ease;
    min-height: 42px;
}

.multi-select-trigger:hover {
    border-color: #bfa05d;
}

.multi-select-trigger.active {
    border-color: var(--gold, #D4AF37);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.multi-select-trigger span {
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}

.multi-select-trigger .arrow {
    font-size: 0.8rem;
    color: #999;
    transition: transform 0.3s;
}

.multi-select-trigger.active .arrow {
    transform: rotate(180deg);
    color: var(--gold, #D4AF37);
}

.multi-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    margin-top: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--gold, #D4AF37);
    overflow: hidden;
}

.multi-select-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.multi-select-search {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    background: #fdfbf7;
}

.multi-select-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.multi-select-search input:focus {
    border-color: var(--gold, #D4AF37);
}

.multi-select-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 5px 0;
}

/* Scrollbar */
.multi-select-list::-webkit-scrollbar {
    width: 6px;
}

.multi-select-list::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.multi-select-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.multi-select-option {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
    font-size: 0.95rem;
    color: #444;
}

.multi-select-option:hover {
    background: #f8f9fa;
    color: var(--primary-color, #333);
}

.multi-select-option.selected {
    background: rgba(212, 175, 55, 0.08);
    /* Gold tint */
    font-weight: 600;
    color: #333;
}

.multi-select-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--gold, #D4AF37);
}