﻿:root {
    --primary-color: #8d6e63;
    --secondary-color: #d7ccc8;
    --accent-color: #a1887f;
    --bg-color: #fdfbf7;
    --text-color: #4e342e;
    --white: #ffffff;
    --transition-speed: 0.6s;
    --font-main: 'Noto Serif KR', serif;
    --section-spacing: 6rem;
    --title-content-spacing: 3rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
    font-weight: 300;
}

/* Scroll Animation Classes */
.fade-in-section {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease-out;
}

#splash-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomOut 4s ease-out forwards;
}

@keyframes zoomOut {
    0% {
        transform: scale(1.15);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.splash-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    text-align: center;
}

#typing-text {
    font-family: 'Nanum Pen Script', cursive;
    font-size: 4rem;
    color: #ffffff;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.6);
    margin: 0;
    letter-spacing: 0.08em;
}

#underline-svg {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    height: auto;
    opacity: 0;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

#underline-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

#underline-svg.draw {
    opacity: 1;
}

#underline-svg.draw #underline-path {
    animation: drawUnderline 0.8s ease-out forwards;
}

@keyframes drawUnderline {
    to {
        stroke-dashoffset: 0;
    }
}

/* Container */
#container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.03);
    opacity: 0;
    transition: opacity 1.5s ease-in;
}

/* Hero Section */
#hero {
    position: relative;
    height: 70vh;
    max-height: 850px;
    overflow: hidden;
}

#hero-slideshow {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 2s ease-in-out;
    transform: translate3d(0, 0, 0) scale(1.05);
    will-change: opacity, transform;
}

.slide.active {
    opacity: 1;
    animation: zoomSlide 5s linear forwards;
}

@keyframes zoomSlide {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(0, 0, 0) scale(1.05);
    }
}

/* Music Control Button */
.music-btn {
    position: fixed;
    top: 20px;
    left: calc(50% + 310px);
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.music-btn:hover {
    transform: scale(1.1);
}

.music-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.music-btn:hover .music-icon {
    opacity: 0.8;
}

.music-btn.muted .music-icon {
    opacity: 0.7;
}

/* Sections */
.section {
    padding: var(--section-spacing) 2rem;
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: var(--title-content-spacing);
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    line-height: 1.2;
}

.eng-title {
    display: block;
    font-size: 0.7rem;
    color: var(--accent-color);
    margin-top: 0.5rem;
    letter-spacing: 0.3em;
    font-weight: 400;
    font-family: sans-serif;
    opacity: 0.8;
}

h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--secondary-color);
    margin: 1rem auto 0;
}

/* Info Section */
#info {
    padding-top: 2rem;
}

.couple-names {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.header-time {
    text-align: center;
    font-size: 1rem;
    color: #6d4c41;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.venue-brief {
    text-align: center;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.greeting {
    margin-top: var(--section-spacing);
    margin-bottom: var(--section-spacing);
}

.greeting p {
    font-size: 1rem;
    color: #6d4c41;
    line-height: 2.2;
    word-break: keep-all;
}

.parent-info {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: #4e342e;
    line-height: 1.8;
}

.parent-row {
    margin-bottom: 0.5rem;
}

.parent-name {
    font-weight: 500;
}

.relation {
    color: #8d6e63;
    font-size: 0.95rem;
    margin: 0 0.3rem;
}

.date-text {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.time-text {
    font-size: 0.9rem;
    color: var(--accent-color);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Calendar */
#calendar-container {
    margin: var(--title-content-spacing) auto var(--section-spacing);
    max-width: 90%;
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    position: relative;
}

#calendar-container::before {
    content: '🌸';
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.2rem;
    opacity: 0.6;
}

.calendar-header {
    text-align: center;
    margin-bottom: var(--title-content-spacing);
    /* Updated to use variable */
    padding-bottom: 1rem;
}

.calendar-month {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: #666;
    letter-spacing: 0.3em;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.calendar-year {
    display: block;
    font-size: 1.4rem;
    color: #333;
    letter-spacing: 0.05em;
    font-weight: 300;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day-header {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 500;
    color: #999;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #666;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 300;
}

.calendar-day.empty {
    visibility: hidden;
}

.calendar-day:not(.empty):not(.highlight) {
    background: transparent;
}

.calendar-day:not(.empty):not(.highlight):hover {
    background-color: #f5f5f5;
    color: #333;
}

.calendar-day.highlight {
    background-color: transparent;
    color: #ffffff;
    font-weight: 500;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.calendar-day.highlight::before {
    content: '';
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-image: url('icon/heart.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
    opacity: 1;
}

.calendar-day.highlight:hover {
    transform: scale(1.08);
}

.calendar-day.sunday:not(.highlight) {
    color: #ff4757;
}

.calendar-day.saturday:not(.highlight) {
    color: #3742fa;
}

.calendar-day.holiday {
    color: #ff4757;
    position: relative;
}

.calendar-day.holiday>div:first-child {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.calendar-day-label {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 400;
    white-space: nowrap;
}

/* Countdown Timer */
.d-day-counter {
    text-align: center;
    margin-top: var(--section-spacing);
    padding: 2rem 1.5rem;
}

.d-day-title,
.d-day-subtitle {
    font-size: 1rem;
    color: #4e342e;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.heart-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    vertical-align: middle;
}

.d-day-subtitle {
    margin: 1.5rem 0 0 0;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.3rem;
    margin: 0 auto;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    position: relative;
}

.countdown-label {
    font-size: 1rem;
    color: #999;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    order: 2;
    margin-top: -0.5rem;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 300;
    color: #4e342e;
    font-family: 'Noto Serif KR', serif;
    min-width: 50px;
    text-align: center;
    order: 1;
}

.countdown-timer .countdown-item:not(:last-child)::after {
    content: ':';
    position: absolute;
    right: auto;
    left: calc(100% + 0.5rem);
    transform: translateX(-50%);
    top: 0.8rem;
    font-size: 2rem;
    color: #333;
    font-weight: 300;
}

/* Gallery */
#gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.5s ease, opacity 0.6s ease;
    border-radius: 2px;
    opacity: 0;
    animation: fadeInGallery 0.6s ease-out forwards;
}

@keyframes fadeInGallery {
    to {
        opacity: 1;
    }
}

.gallery-item:nth-child(1) {
    animation-delay: 0.1s;
}

.gallery-item:nth-child(2) {
    animation-delay: 0.15s;
}

.gallery-item:nth-child(3) {
    animation-delay: 0.2s;
}

.gallery-item:nth-child(4) {
    animation-delay: 0.25s;
}

.gallery-item:nth-child(5) {
    animation-delay: 0.3s;
}

.gallery-item:nth-child(6) {
    animation-delay: 0.35s;
}

.gallery-item:nth-child(7) {
    animation-delay: 0.4s;
}

.gallery-item:nth-child(8) {
    animation-delay: 0.45s;
}

.gallery-item:nth-child(9) {
    animation-delay: 0.5s;
}

.gallery-item:hover {
    transform: scale(1.03);
}

/* Map */
.map-container {
    width: 100%;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#map-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.location-text {
    font-size: 1rem;
    color: #5d4037;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Contact */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-main-btn {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: 1px solid #d7ccc8;
    color: #4e342e;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-main-btn:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-column {
    background-color: #fafafa;
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.contact-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.contact-person {
    margin-bottom: 1.5rem;
}

.contact-person:last-child {
    margin-bottom: 0;
}

.contact-name {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.contact-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-color);
    letter-spacing: 0.1em;
}

.contact-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn {
    flex: 1;
    padding: 0.8rem 0;
    background-color: var(--white);
    border: 1px solid var(--secondary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #f5f5f5;
    color: #9e9e9e;
    text-align: center;
    padding: 4rem 2rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* Lightbox */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(5px);
}

#lightbox.visible {
    opacity: 1;
    pointer-events: auto;
}

#lightbox-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    cursor: grab;
}

#lightbox-image-wrapper.grabbing {
    cursor: grabbing;
}

.lightbox-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
    transition: transform 0.3s ease-out;
}

.lightbox-image.dragging {
    transition: none;
}

#close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}

#close-lightbox:hover {
    color: var(--white);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s;
    z-index: 1001;
}

.nav-btn:hover {
    color: var(--white);
}

#prev-btn {
    left: 0;
}

#next-btn {
    right: 0;
}

/* Transport Info */
.transport-info {
    text-align: left;
    margin-top: 2rem;
    padding: 0 1rem;
}

.transport-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.transport-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.transport-icon {
    width: 50px;
    height: 50px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.transport-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    letter-spacing: 0.05em;
    text-align: left;
}

.transport-details h3::after {
    display: none;
}

.transport-details p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
    line-height: 1.6;
}

.transport-sub-title {
    font-weight: 500;
    color: #5d4037 !important;
    margin-bottom: 0.2rem !important;
}

.mt-2 {
    margin-top: 0.8rem !important;
}

/* Music Tooltip (Global) */
.music-tooltip {
    position: absolute;
    top: 20px;
    /* Center with music button vertically */
    right: 70px;
    /* Left of the music button */
    background-color: rgba(255, 255, 255, 0.95);
    color: #5d4037;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: right;
    opacity: 0;
    transform: translateX(-20px);
    /* Start from left */
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
}

.music-tooltip span {
    font-size: 0.8rem;
    color: #8d6e63;
    font-weight: 500;
    display: block;
    margin-top: 4px;
}

.music-tooltip.visible {
    opacity: 1;
    transform: translateX(0);
}

.music-tooltip::after {
    content: '';
    position: absolute;
    top: 15px;
    /* Adjust vertical center */
    right: -6px;
    /* Right edge */
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.95);
    transform: rotate(45deg);
}

/* Media Queries */
@media (max-width: 600px) {
    #typing-text {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }



    .countdown-timer {
        gap: 1rem;
    }

    .countdown-value {
        min-width: 45px;
    }

    .countdown-timer .countdown-item:not(:last-child)::after {
        font-size: 1.5rem;
        right: auto;
        left: calc(100% + 0.5rem);
        transform: translateX(-50%);
        top: 0.8rem;
    }

    .music-btn {
        left: auto;
        right: 20px;
    }

    .transport-item {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }

    .transport-details h3 {
        text-align: center;
    }

    .transport-info {
        text-align: center;
    }

    .calendar-day-label {
        bottom: -4px;
        /* Move label down on mobile to separate from date */
        font-size: 0.6rem;
    }
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

#load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 40px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    color: #8d6e63;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

#load-more-btn::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-bottom: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
}

#load-more-btn:hover {
    background-color: #fafafa;
    border-color: #d7ccc8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.hidden {
    display: none !important;
}

/* Contact Popup Styles */
.contact-btn-wrapper {
    margin-top: 2rem;
    text-align: center;
}

.contact-main-btn {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 12px 40px;
    border-radius: 50px;
    font-size: 1rem;
    color: #5d4037;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-main-btn:hover {
    background-color: #fff;
    border-color: #d7ccc8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.popup-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.popup-content {
    background-color: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.popup-overlay.visible .popup-content {
    transform: translateY(0);
}

.popup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.popup-eng-title {
    display: block;
    font-size: 0.7rem;
    color: #d7ccc8;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    font-family: 'Noto Serif KR', serif;
}

.popup-title {
    font-size: 1.3rem;
    color: #5d4037;
    margin: 0;
}

.popup-close-btn {
    width: 100%;
    padding: 15px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 8px;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background-color 0.3s;
}

.popup-close-btn:hover {
    background-color: #e0e0e0;
}

/* Contact List Styles inside Popup */
.contact-group {
    margin-bottom: 1.5rem;
}

.contact-group-title {
    font-size: 0.9rem;
    color: #8d6e63;
    margin-bottom: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-group-title::before,
.contact-group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #eee;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.contact-row>div:first-child {
    justify-self: start;
}

.contact-name {
    color: #333;
}

.contact-relation {
    font-size: 0.8rem;
    color: #999;
    margin-left: 0.3rem;
}

.contact-phone {
    font-size: 0.9rem;
    color: #5d4037;
    letter-spacing: 0;
    font-weight: 500;
    justify-self: center;
}

.contact-actions {
    display: flex;
    gap: 0.5rem;
    justify-self: end;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: scale(1.1);
}

.btn-call {
    background-color: #e3f2fd;
    color: #1e88e5;
}

.btn-msg {
    background-color: #f3e5f5;
    color: #8e24aa;
}

/* Account Accordion Styles */
.account-accordion {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.accordion-header {
    background-color: #f9f9f9;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #f0f0f0;
}

.accordion-title {
    flex: 1;
    font-size: 0.95rem;
    text-align: center;
    color: #5d4037;
    font-weight: 500;
}

.accordion-icon {
    font-size: 0.8rem;
    color: #999;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fff;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    /* Arbitrary large height */
    transition: max-height 0.5s ease-in;
}

.account-row {
    padding: 1rem;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-row:last-child {
    border-bottom: none;
}

.account-info {
    text-align: left;
}

.bank-name {
    font-size: 0.85rem;
    color: #8d6e63;
    margin-right: 0.5rem;
}

.account-number {
    font-size: 0.9rem;
    color: #333;
    letter-spacing: 0;
}

.account-owner {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.2rem;
}

.copy-btn {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.copy-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.pay-btn {
    background-color: #ffeb00;
    border: none;
    color: #3c1e1e;
    font-weight: bold;
    margin-top: 0.3rem;
    width: 100%;
    justify-content: center;
}

.pay-btn:hover {
    background-color: #fdd835;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-end;
}



/* Lightbox Slide Animations */
.lightbox-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
    transition: transform 0.4s ease-in-out;
    backface-visibility: hidden;
    touch-action: pan-y;
    /* Disable pinch zoom */
}

/* Next Slide (Right to Left) */
.slide-next-enter {
    transform: translateX(100%);
}

.slide-next-enter-active {
    transform: translateX(0);
}

.slide-next-exit {
    transform: translateX(0);
}

.slide-next-exit-active {
    transform: translateX(-100%);
}

/* Previous Slide (Left to Right) */
.slide-prev-enter {
    transform: translateX(-100%);
}

.slide-prev-enter-active {
    transform: translateX(0);
}

.slide-prev-exit {
    transform: translateX(0);
}

.slide-prev-exit-active {
    transform: translateX(100%);
}