/* CSS VARIABLES - DESIGN SYSTEM */
:root {
    --primary-sage: #4E6551;
    --primary-sage-hover: #3C503F;
    --primary-light-sage: #8EA893;
    --accent-gold: #C5A880;
    --accent-gold-hover: #B3956D;
    --accent-gold-light: #F4EFE6;
    --bg-cream: #F8F9F6;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-dark: #1E2520;
    --text-dark: #2C3530;
    --text-muted: #6B7C70;
    --white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(78, 101, 81, 0.08);
    --shadow-card: 0 15px 40px rgba(0, 0, 0, 0.05);
    --border-glass: rgba(255, 255, 255, 0.4);
    --border-gold: rgba(197, 168, 128, 0.3);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-accent: 'Pinyon Script', cursive;
}

/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body.locked {
    overflow: hidden;
    height: 100vh;
}

/* BACKGROUND DECORATION GLOBAL */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(142, 168, 147, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(197, 168, 128, 0.08) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* UTILITY CLASSES */
.text-center { text-align: center; }
.hidden { display: none !important; }
.divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
    margin: 25px auto;
    width: 60%;
}

/* BUTTONS */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-sage);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(78, 101, 81, 0.2);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
}

.btn-primary:hover {
    background-color: var(--primary-sage-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 101, 81, 0.3);
}

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

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--primary-sage);
    border: 2px solid var(--primary-sage);
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline:hover {
    background-color: var(--primary-sage);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: scale(1.1);
}

/* FLOATING MUSIC CONTROLLER */
.music-control-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.music-control-btn:hover {
    transform: scale(1.1);
}

.icon-music {
    width: 22px;
    height: 22px;
    color: var(--primary-sage);
}

.music-control-btn.playing {
    animation: rotateMusic 4s linear infinite;
    background-color: var(--primary-sage);
}

.music-control-btn.playing .icon-music {
    color: var(--white);
}

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

/* COVER SECTION */
.cover-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F4F6F4 0%, #E8ECE8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    overflow: hidden;
}

.cover-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0l40 40-40 40L0 40z' fill='%23c5a880' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.cover-section.fade-out {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
}

.cover-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 450px;
    width: 100%;
}

.cover-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.cover-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-sage);
    margin-bottom: 20px;
}

.accent-title {
    font-family: var(--font-accent);
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--accent-gold);
    display: block;
    margin-top: -5px;
    text-transform: none;
}

.cover-frame {
    width: 180px;
    height: 180px;
    margin: 0 auto 25px auto;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, transparent 100%);
    box-shadow: var(--shadow-card);
    position: relative;
}

.cover-frame::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px dashed var(--accent-gold);
    animation: rotateMusic 25s linear infinite;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: var(--white);
}

.cover-parent {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.guest-box {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 15px 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
}

.guest-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.guest-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-sage);
    font-weight: 600;
}

/* MAIN CONTENT */
.main-content {
    opacity: 0;
    transition: opacity 1s ease;
}

.main-content:not(.locked) {
    opacity: 1;
}

/* SECTION CONTAINER & GLASS CARD */
.section-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 80px 20px;
    position: relative;
}

.card-glass {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

/* SCROLL REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* DECORATIVE ELEMENTS */
.decoration-leaf {
    position: absolute;
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.12;
    pointer-events: none;
}

.decoration-leaf.top-left {
    top: 15px;
    left: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E6551' stroke-width='1.5'%3E%3Cpath d='M2 22C2 22 6 12 12 12C18 12 22 2 22 2'%3E%3C/path%3E%3Cpath d='M12 12C12 12 15 7 19 6'%3E%3C/path%3E%3Cpath d='M12 12C12 12 9 17 5 18'%3E%3C/path%3E%3C/svg%3E");
}

.decoration-leaf.bottom-right {
    bottom: 15px;
    right: 15px;
    transform: rotate(180deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E6551' stroke-width='1.5'%3E%3Cpath d='M2 22C2 22 6 12 12 12C18 12 22 2 22 2'%3E%3C/path%3E%3Cpath d='M12 12C12 12 15 7 19 6'%3E%3C/path%3E%3Cpath d='M12 12C12 12 9 17 5 18'%3E%3C/path%3E%3C/svg%3E");
}

/* SECTION 1: MUKADIMAH */
.greeting-arabic {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--primary-sage);
    font-weight: 500;
}

.greeting-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.7;
}

.quote-source {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro-paragraph {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-top: 15px;
}

/* SECTION 2: PROFILE ANAK */
.avatar-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, transparent 100%);
    position: relative;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: var(--white);
    box-shadow: var(--shadow-soft);
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-sage);
    margin-bottom: 15px;
}

.profile-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.parents-info {
    border-top: 1px solid var(--border-gold);
    padding-top: 20px;
    display: inline-block;
}

.parent-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.parent-names {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-sage);
    font-weight: 600;
    margin-top: 5px;
}

.location-origin {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 1px;
    display: block;
    margin-top: 5px;
}

/* SECTION 3: EVENT DETAILS & COUNTDOWN */
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-sage);
    font-weight: 700;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-gold);
    margin-bottom: 30px;
    font-weight: 600;
}

/* Countdown */
.countdown-wrapper {
    background-color: var(--accent-gold-light);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 35px;
    border: 1px solid rgba(197, 168, 128, 0.2);
}

.countdown-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-sage);
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 360px;
    margin: 0 auto;
}

.countdown-item {
    background-color: var(--white);
    border-radius: 12px;
    padding: 10px 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(142, 168, 147, 0.1);
}

.countdown-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-sage);
}

.countdown-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Event Details Grid */
.event-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.event-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 25px 15px;
    border: 1px solid rgba(142, 168, 147, 0.15);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-icon {
    width: 45px;
    height: 45px;
    background-color: var(--accent-gold-light);
    color: var(--primary-sage);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

.event-icon svg {
    width: 22px;
    height: 22px;
}

.event-type {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-sage);
    margin-bottom: 8px;
}

.event-day {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

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

/* Location Card */
.location-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 30px 20px;
    border: 1px solid rgba(142, 168, 147, 0.15);
    box-shadow: var(--shadow-soft);
}

.map-icon {
    background-color: rgba(78, 101, 81, 0.1);
}

.location-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-sage);
    margin-bottom: 5px;
}

.location-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.location-address {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* SECTION 4: RSVP & BUKU TAMU */
.rsvp-form {
    text-align: left;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-sage);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(78, 101, 81, 0.25);
    background-color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    outline: none;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-sage);
    box-shadow: 0 0 0 3px rgba(78, 101, 81, 0.1);
}

.btn-block {
    width: 100%;
}

/* Guestbook List */
.guestbook-wrapper {
    border-top: 1px solid var(--border-gold);
    padding-top: 30px;
    text-align: left;
}

.guestbook-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-sage);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.title-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    color: var(--accent-gold);
}

.wishes-container {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Scrollbar for Wishes Container */
.wishes-container::-webkit-scrollbar {
    width: 5px;
}
.wishes-container::-webkit-scrollbar-track {
    background: transparent;
}
.wishes-container::-webkit-scrollbar-thumb {
    background-color: rgba(78, 101, 81, 0.2);
    border-radius: 10px;
}

.wish-item {
    background-color: var(--white);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 3px solid var(--accent-gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
    animation: slideInUp 0.5s ease-out;
}

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

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

.wish-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-sage);
}

.wish-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.badge-hadir {
    background-color: rgba(78, 101, 81, 0.1);
    color: var(--primary-sage);
}
.badge-ragu {
    background-color: rgba(197, 168, 128, 0.15);
    color: var(--accent-gold-hover);
}
.badge-tidak {
    background-color: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

.wish-body {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.wish-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 5px;
}

.empty-wishes {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 20px 0;
    font-style: italic;
}

/* SECTION 5: KADO DIGITAL */
.gift-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.gift-cards-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.gift-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: left;
}

.card-bri {
    background-color: #001D39;
    border-left: 5px solid var(--accent-gold);
    color: var(--white);
}

.card-bri .bank-name,
.card-bri .account-number {
    color: var(--white);
}

.card-bri .account-holder {
    color: rgba(255, 255, 255, 0.7);
}

.card-bri .bank-header {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.card-bri .btn-copy {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-bri .btn-copy:hover {
    background-color: var(--accent-gold);
    color: #001D39;
    border-color: var(--accent-gold);
}

.card-dana {
    background-color: #0A4174;
    border-left: 5px solid #00E3FF;
    color: var(--white);
}

.card-dana .bank-name,
.card-dana .account-number {
    color: var(--white);
}

.card-dana .account-holder {
    color: rgba(255, 255, 255, 0.7);
}

.card-dana .bank-header {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.card-dana .btn-copy {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-dana .btn-copy:hover {
    background-color: var(--white);
    color: #0A4174;
    border-color: var(--white);
}

.bank-header {
    padding: 18px 20px 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

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

.bank-body {
    padding: 20px;
}

.account-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.account-holder {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    background-color: var(--white);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background-color: var(--primary-sage);
    color: var(--white);
    border-color: var(--primary-sage);
}

/* SECTION 6: PENUTUP */
.closing-card {
    background: linear-gradient(to bottom, var(--bg-card) 0%, rgba(255,255,255,0.95) 100%);
}

.closing-quote {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--primary-sage);
    margin-bottom: 10px;
}

.closing-text {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.closing-thanks {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-gold-hover);
    margin: 15px 0;
}

.family-signature {
    margin-top: 30px;
    border-top: 1px dashed var(--border-gold);
    padding-top: 25px;
}

.sig-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.sig-family {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-sage);
}

.sig-child {
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-top: 3px;
}

/* WATERMARK */
.footer-watermark {
    text-align: center;
    padding: 30px 20px 120px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.watermark-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    padding: 22px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-width: 320px;
    width: 100%;
}

.watermark-content:hover {
    transform: translateY(-3px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 25px rgba(197, 168, 128, 0.15);
}

.watermark-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.watermark-team {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.watermark-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.watermark-brand {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-sage);
    letter-spacing: 0.5px;
    text-transform: lowercase;
}

.watermark-separator {
    color: var(--accent-gold);
    font-size: 0.8rem;
}

.watermark-ig {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.watermark-ig:hover {
    color: var(--primary-sage);
}

.watermark-ig .ig-icon {
    stroke-width: 2px;
}

/* STICKY BOTTOM NAVIGATION */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 480px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    padding: 0 10px;
    transition: all 0.5s ease;
}

.bottom-nav.hidden-nav {
    transform: translate(-50%, 100px);
    opacity: 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s ease;
    flex: 1;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    margin-bottom: 3px;
    transition: transform 0.3s ease;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

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

.nav-item.active svg {
    transform: translateY(-2px);
    stroke-width: 2.5;
}

/* TOAST MESSAGE */
.toast {
    position: fixed;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-card);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
    .section-container {
        padding: 50px 15px;
    }
    
    .card-glass {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .cover-title {
        font-size: 2.1rem;
    }
    .accent-title {
        font-size: 2.8rem;
    }
    .cover-frame {
        width: 155px;
        height: 155px;
    }
    
    .event-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .countdown-grid {
        gap: 8px;
    }
    
    .countdown-value {
        font-size: 1.35rem;
    }
    
    .account-number {
        font-size: 1.35rem;
    }
}

/* GALLERY FOTO SECTION */
.gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

/* THUMBNAILS ON TOP */
.gallery-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light-sage) rgba(0, 0, 0, 0.03);
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 5px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-light-sage);
    border-radius: 10px;
}

@media (min-width: 768px) {
    .gallery-thumbnails {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.thumb-btn {
    flex: 0 0 65px;
    width: 65px;
    height: 65px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
}

.thumb-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.thumb-btn.active {
    opacity: 1;
    border-color: var(--accent-gold);
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.35);
    transform: scale(1.08);
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .thumb-btn {
        flex: 0 0 75px;
        width: 75px;
        height: 75px;
    }
}

/* LARGE SLIDER BELOW */
.gallery-slider {
    position: relative;
    width: 100%;
    height: clamp(350px, 120vw, 900px); /* Fallback height for 1:1.2 portrait ratio compatibility */
    aspect-ratio: 1 / 1.2;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-card);
    background: rgba(255, 255, 255, 0.02);
}

@supports (aspect-ratio: 1 / 1.2) {
    .gallery-slider {
        height: auto; /* Let aspect-ratio define height on modern browsers */
    }
}

@media (max-width: 480px) {
    .gallery-slider {
        height: clamp(320px, 120vw, 550px); /* Fallback height for mobile portrait ratio */
        aspect-ratio: 1 / 1.2;
    }
    @supports (aspect-ratio: 1 / 1.2) {
        .gallery-slider {
            height: auto; /* Let aspect-ratio define height on modern browsers */
        }
    }
}

.gallery-slides-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-slides-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    pointer-events: none;
}

.gallery-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(78, 101, 81, 0);
    transition: background-color 0.3s ease;
}

.gallery-slide:hover::after {
    background-color: rgba(78, 101, 81, 0.1);
}

/* SLIDER ARROWS */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(30, 37, 32, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.slider-arrow:hover {
    background: var(--primary-sage);
    border-color: var(--primary-light-sage);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 15px;
}

.slider-arrow.next {
    right: 15px;
}

.slider-arrow svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

@media (max-width: 480px) {
    .slider-arrow {
        width: 34px;
        height: 34px;
    }
    
    .slider-arrow.prev {
        left: 10px;
    }
    
    .slider-arrow.next {
        right: 10px;
    }
}

/* LIGHTBOX MODAL */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(30, 37, 32, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 38px;
    color: var(--white);
    cursor: pointer;
    font-weight: 300;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--accent-gold);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 10001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--primary-sage);
    border-color: var(--primary-sage);
    transform: translateY(-50%) scale(1.05);
}

@media (max-width: 600px) {
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-close {
        top: 15px;
        right: 20px;
    }
}
