* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gowun Batang', serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* 브라우저 우측 스크롤바 (핑크 테마) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: #fff0f3;
}

::-webkit-scrollbar-thumb {
    background-color: #ff85a1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #e66a85;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #ff85a1 #fff0f3;
}

img {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    pointer-events: auto;
}

input, textarea {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

html, body {
    width: 100%;
    min-height: 100%;
    background-color: #f7f7f7;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    height: calc(var(--vh, 1vh) * 100) !important;
    position: fixed;
    width: 100%;
    touch-action: none;
}

body.no-scroll .bgm-btn {
    display: none !important;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.mobile-frame {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    background-color: #ffffff;
    position: relative;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

@media (max-width: 480px) {
    body { background-color: #ffffff; }
    .mobile-frame { box-shadow: none; }
    
    /* 모바일 화면 토스트 알림 크기 최적화 */
    .toast-msg {
        font-size: 0.76rem;
        padding: 8px 16px;
        bottom: 30px;
        border-radius: 20px;
    }
}

.admin-lock-btn {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: transparent;
    opacity: 0;
    cursor: pointer;
    touch-action: manipulation;
}

/* 배경음악 토글 버튼 */
.bgm-btn {
    position: fixed;
    top: 16px;
    left: max(16px, calc(50% - 240px + 16px));
    right: auto;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.bgm-btn:active {
    transform: scale(0.92);
    background: rgba(0, 0, 0, 0.6);
}

.toast-msg {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: rgba(30, 30, 30, 0.85);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

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

/* INTRO OVERLAY */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    background-color: #ffccd5;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#intro-fireworks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.intro-overlay.zoom-into-heart {
    animation: zoomIntoHeart 0.9s cubic-bezier(0.7, 0, 0.84, 0) forwards;
    pointer-events: none;
}

@keyframes zoomIntoHeart {
    0% { opacity: 1; transform: scale(1); transform-origin: center 42%; }
    40% { opacity: 0.95; }
    100% { opacity: 0; transform: scale(15); transform-origin: center 42%; visibility: hidden; }
}

.intro-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 420px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.beating-heart {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 12px;
    display: inline-block;
    animation: heartBeat 1.2s infinite ease-in-out;
    text-shadow: 0 3px 12px rgba(230, 80, 110, 0.3);
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

.intro-typing-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 90px;
}

.typing-text {
    font-family: 'Yeon Sung', cursive;
    font-size: 2rem;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(220, 80, 110, 0.3);
    border-right: 2px solid rgba(255, 255, 255, 0.85);
    animation: blinkCaret 0.75s step-end infinite;
    white-space: nowrap;
    min-height: 2.4rem;
    display: inline-block;
}

.typing-text.done { border-right: none; }

.typing-text-sub {
    font-family: 'Yeon Sung', cursive;
    font-size: 1.35rem;
    color: #fff0f3;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 8px rgba(220, 80, 110, 0.35);
    border-right: 2px solid rgba(255, 255, 255, 0.85);
    animation: blinkCaret 0.75s step-end infinite;
    white-space: nowrap;
    min-height: 1.8rem;
    display: inline-block;
}

.typing-text-sub.done { border-right: none; }

@keyframes blinkCaret {
    from, to { border-color: transparent; }
    50% { border-color: rgba(255, 255, 255, 0.85); }
}

/* HERO SECTION */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0 24px 30px;
    text-align: center;
    overflow: hidden;
}

#sakura-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0.15) 0%, 
        rgba(0, 0, 0, 0.2) 40%, 
        rgba(0, 0, 0, 0.78) 100%
    );
    z-index: 2;
}

.hero-text-container {
    position: relative;
    z-index: 4;
    color: #ffffff;
    margin-bottom: 20px;
    animation: fadeInUp 1.2s ease-out forwards;
}

.hero-subtitle {
    font-family: 'Yeon Sung', cursive;
    font-size: 1.25rem;
    letter-spacing: 1.5px;
    color: #fff0f3;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-names {
    font-family: 'Yeon Sung', cursive;
    font-size: 1.85rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-names .heart {
    font-size: 1.1rem;
    color: #ff9ebb;
    display: inline-block;
    animation: pulse 2s infinite ease-in-out;
}

.hero-date {
    font-size: 0.92rem;
    letter-spacing: 0.5px;
    color: #f7f7f7;
    margin-bottom: 4px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero-venue {
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    color: #eaeaea;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.scroll-indicator {
    position: relative;
    z-index: 4;
    color: #ffffff;
    font-size: 0.72rem;
    letter-spacing: 1px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}

.scroll-indicator.show {
    opacity: 0.8;
    visibility: visible;
}

.scroll-arrow {
    width: 1px;
    height: 16px;
    background: linear-gradient(to bottom, #ffffff, transparent);
    margin: 6px auto 0;
    animation: bounce 2s infinite;
}

/* SECTION GENERAL & SECTION 2 (INVITATION - 핑크 톤 적용) */
.section {
    padding: 70px 24px;
    text-align: center;
    background-color: #ffffff;
}

.section-tag {
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: #d18b95;
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.divider-line {
    width: 24px;
    height: 1px;
    background-color: #fad2da;
    margin: 0 auto 32px;
}

.greeting-body {
    font-size: 0.92rem;
    line-height: 2.15;
    color: #555555;
    margin-bottom: 40px;
    word-break: keep-all;
}

.family-info {
    background-color: #fff5f7;
    padding: 24px 20px;
    border-radius: 12px;
    border: 1px solid #fae1e6;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

/* 3열 고정 그리드 정렬 */
.family-row {
    font-size: 0.95rem;
    color: #333333;
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    gap: 6px;
}

.family-row .parents {
    color: #777777;
    font-size: 0.9rem;
    text-align: right;
    white-space: nowrap;
}

.family-row .relation {
    font-size: 0.85rem;
    color: #888888;
    text-align: center;
    white-space: nowrap;
}

.family-row .name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222222;
    text-align: center;
    white-space: nowrap;
}

.contact-trigger-btn {
    width: 100%;
    padding: 14px;
    background-color: #fff0f3;
    border: 1px solid #fad2da;
    border-radius: 10px;
    color: #8c5a63;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-trigger-btn:active {
    background-color: #fce1e6;
    transform: scale(0.99);
}

/* SECTION 3: DATE & COUNTDOWN (FLIP CLOCK - 로맨틱 핑크 톤 적용) */
.date-section {
    width: 100%;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background-color: #fff8f9;
    border-top: 1px solid #f7e6e9;
}

.date-header { margin-bottom: 20px; }

.date-big-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #222222;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.date-sub-info { font-size: 0.95rem; color: #666666; }

.calendar-card {
    width: 100%;
    max-width: 330px;
    background-color: #ffffff;
    border: 1px solid #fae6ea;
    border-radius: 16px;
    padding: 22px 18px;
    box-shadow: 0 4px 20px rgba(220, 150, 165, 0.05);
    margin-bottom: 26px;
}

.calendar-header, .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.calendar-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: #777777;
    padding-bottom: 12px;
    border-bottom: 1px solid #faecef;
    margin-bottom: 12px;
}

.calendar-header .sun { color: #d9534f; }

.calendar-days span {
    font-size: 0.88rem;
    padding: 9px 0;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-days .other-month { color: #d8d8d8; }

.calendar-days .wedding-day {
    background-color: #ff758f;
    color: #ffffff;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(255, 117, 143, 0.4);
}

/* 플립 시계 컨테이너 & 카드 박스 */
.countdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 370px;
}

.flip-card-box {
    background-color: #ffffff;
    border: 1px solid #fcedf0;
    border-radius: 16px;
    padding: 8px 6px 9px;
    flex: 1;
    min-width: 62px;
    max-width: 78px;
    box-shadow: 0 3px 12px rgba(220, 150, 165, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flip-card {
    position: relative;
    width: 100%;
    height: 56px;
    perspective: 450px;
    border-radius: 10px;
    overflow: visible;
}

.flip-card-panel,
.flip-card-leaf {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* 상단 패널 */
.flip-panel-top,
.leaf-top {
    top: 0;
    height: 50%;
    background-color: #fff5f7;
    border-radius: 10px 10px 0 0;
    transform-origin: bottom center;
}

/* 하단 패널 */
.flip-panel-bottom,
.leaf-bottom {
    bottom: 0;
    height: 50%;
    background-color: #fde8ec;
    border-radius: 0 0 10px 10px;
    transform-origin: top center;
}

/* 숫자 표시 */
.flip-panel-top .num,
.leaf-top .num {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c95b73;
    font-family: 'Gowun Batang', serif;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.3px;
}

.flip-panel-bottom .num,
.leaf-bottom .num {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c95b73;
    font-family: 'Gowun Batang', serif;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.3px;
}

#flip-days .num {
    font-size: 1.42rem;
    letter-spacing: -0.8px;
}

.flip-card-crease {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #f2d4db;
    z-index: 5;
    transform: translateY(-50%);
    pointer-events: none;
}

.leaf-top {
    z-index: 3;
    backface-visibility: hidden;
}

.leaf-bottom {
    z-index: 2;
    transform: rotateX(90deg);
    backface-visibility: hidden;
}

.flip-panel-top {
    z-index: 1;
}

.flip-panel-bottom {
    z-index: 1;
}

.flip-card.flipping .leaf-top {
    animation: flipLeafTop 0.28s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.flip-card.flipping .leaf-bottom {
    animation: flipLeafBottom 0.28s cubic-bezier(0, 0, 0.2, 1) 0.25s forwards;
}

@keyframes flipLeafTop {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(-90deg); }
}

@keyframes flipLeafBottom {
    0% { transform: rotateX(90deg); }
    100% { transform: rotateX(0deg); }
}

.flip-card-box .label {
    display: block;
    font-family: 'Gowun Batang', serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: #8c6e75;
    letter-spacing: 1.5px;
    margin-top: 8px;
    line-height: 1;
}

.timer-colon {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e57b93;
    margin-top: -18px;
    user-select: none;
}

.dday-counter-box {
    background-color: #fdf0f2;
    border: 1px solid #f7d5dc;
    padding: 12px 22px;
    border-radius: 30px;
    color: #5a3d45;
    font-size: 0.9rem;
}

.dday-counter-box strong {
    color: #d86079;
    font-size: 1.05rem;
    font-weight: 700;
}

.dday-heart { color: #ff85a1; font-size: 0.85rem; }

/* SECTION 4: COUPLE INTRO (소프트 핑크 톤 적용) */
.couple-section {
    background-color: #faeaed;
    padding: 60px 24px;
    border-top: 1px solid #f3d7dc;
}

.couple-section .about-us-tag {
    font-family: 'Gowun Batang', serif;
    font-size: 1.7rem;
    letter-spacing: 5px;
    color: #593e44;
    font-weight: 400;
    display: block;
    margin-bottom: 14px;
}

.couple-section .couple-main-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #422f34;
    margin-bottom: 4px;
}

.couple-section .couple-subtitle {
    font-size: 0.88rem;
    color: #8c6e75;
    margin-bottom: 28px;
    font-weight: 400;
}

.couple-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.couple-card {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 16px 14px 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 280px;
}

.couple-photo-frame {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background-color: #faecef;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.couple-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.couple-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.couple-name-row {
    font-size: 1.02rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.couple-name-row .role { font-size: 0.92rem; font-weight: 700; }
.couple-name-row .role.groom-role { color: #c96d80; }
.couple-name-row .role.bride-role { color: #c96d80; }

.couple-name-row .name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222222;
}

.couple-desc {
    font-size: 0.86rem;
    color: #555555;
    line-height: 1.7;
    word-break: keep-all;
    white-space: pre-line;
}

/* SECTION 5: OUR STORY */
.story-section {
    width: 100%;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 60px;
    background-color: #fbfaf8;
    border-top: 1px solid #f0eae1;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    transition: background-color 0.5s ease;
}

.story-section.pink-bg {
    background-color: #ffe6ea !important;
}

.story-hearts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.floating-heart {
    position: absolute;
    bottom: -30px;
    color: #ff758f;
    opacity: 0;
    animation: floatUpHeart linear forwards;
    filter: drop-shadow(0 2px 5px rgba(255, 117, 143, 0.3));
}

@keyframes floatUpHeart {
    0% { transform: translateY(0) scale(0.8) rotate(0deg); opacity: 0; }
    15% { opacity: 0.85; }
    85% { opacity: 0.85; }
    100% { transform: translateY(-105vh) scale(1.3) rotate(25deg); opacity: 0; }
}

.story-scroll-indicator {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: #c95b73;
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.story-scroll-indicator.show {
    opacity: 1;
    visibility: visible;
}

.story-scroll-indicator .scroll-arrow {
    width: 1px;
    height: 16px;
    background: linear-gradient(to bottom, #c95b73, transparent);
    margin: 6px auto 0;
    animation: bounce 2s infinite;
}

/* 3D 책 넘김(Book Flip) 효과 컨테이너 */
.story-book-flipper {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1200px;
    position: relative;
    z-index: 3;
}

.story-view-wrapper {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

/* 책장 넘김 키프레임 애니메이션 */
@keyframes bookFlipOut {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
        filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.08));
    }
    40% {
        filter: drop-shadow(-15px 12px 28px rgba(0, 0, 0, 0.22));
    }
    100% {
        transform: rotateY(-90deg);
        opacity: 0;
        filter: drop-shadow(0 0 0 transparent);
    }
}

@keyframes bookFlipIn {
    0% {
        transform: rotateY(90deg);
        opacity: 0;
        filter: drop-shadow(15px 12px 28px rgba(0, 0, 0, 0.22));
    }
    60% {
        opacity: 1;
    }
    100% {
        transform: rotateY(0deg);
        opacity: 1;
        filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.08));
    }
}

@keyframes bookFlipBackOut {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
        filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.08));
    }
    40% {
        filter: drop-shadow(15px 12px 28px rgba(0, 0, 0, 0.22));
    }
    100% {
        transform: rotateY(90deg);
        opacity: 0;
        filter: drop-shadow(0 0 0 transparent);
    }
}

@keyframes bookFlipBackIn {
    0% {
        transform: rotateY(-90deg);
        opacity: 0;
        filter: drop-shadow(-15px 12px 28px rgba(0, 0, 0, 0.22));
    }
    60% {
        opacity: 1;
    }
    100% {
        transform: rotateY(0deg);
        opacity: 1;
        filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.08));
    }
}

.book-flip-out {
    animation: bookFlipOut 0.42s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    transform-origin: left center !important;
}

.book-flip-in {
    animation: bookFlipIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
    transform-origin: left center !important;
}

.book-flip-back-out {
    animation: bookFlipBackOut 0.42s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    transform-origin: left center !important;
}

.book-flip-back-in {
    animation: bookFlipBackIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
    transform-origin: left center !important;
}

.story-cover-tag {
    font-family: 'Gowun Batang', serif;
    font-size: 1.15rem;
    color: #d18b95;
    letter-spacing: 2px;
    margin-bottom: 6px;
    font-weight: 400;
}

.story-cover-dday {
    font-family: 'Gowun Batang', serif;
    font-size: 1.85rem;
    font-weight: 400;
    color: #222222;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.story-cover-img-box {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    background-color: #f4ede4;
    margin-bottom: 22px;
}

.story-cover-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.story-cover-meta-grid {
    width: 100%;
    border-top: 1px solid #e0dad0;
    border-bottom: 1px solid #e0dad0;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 12px;
}

.story-meta-left {
    border-right: 1px solid #e0dad0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 8px;
    text-align: left;
}

.story-meta-left .meta-label {
    font-size: 0.8rem;
    color: #777777;
    font-family: sans-serif;
    font-weight: 600;
}

.story-meta-left .meta-sub {
    font-size: 0.7rem;
    color: #aaaaaa;
    font-family: sans-serif;
}

.story-meta-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-meta-right .meta-cursive {
    font-family: 'Alex Brush', cursive;
    font-size: 2.3rem;
    color: #1a1a1a;
    line-height: 1;
    padding-top: 4px;
}

.story-cover-subtext {
    font-size: 0.65rem;
    color: #999999;
    line-height: 1.4;
    letter-spacing: 0.2px;
    margin-bottom: 22px;
    word-break: keep-all;
}

.story-cover-action {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.story-cover-action span {
    font-size: 0.95rem;
    color: #222222;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.story-circle-arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.story-cover-action:active .story-circle-arrow-btn {
    transform: scale(0.92);
    background-color: #333333;
}

.story-inline-topbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
    margin-bottom: 20px;
}

.story-inline-no {
    font-size: 1.1rem;
    color: #999999;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
}

.story-inline-page {
    font-size: 0.9rem;
    color: #444444;
    letter-spacing: 2px;
    font-family: sans-serif;
}

.story-card-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    margin-bottom: 20px;
}

.story-page-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    will-change: transform, opacity;
}

.story-inline-img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    background-color: #f4f0e8;
}

.story-inline-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.story-inline-title {
    font-family: 'Gowun Batang', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #222222;
    letter-spacing: -0.3px;
    margin-top: 4px;
}

.story-inline-desc {
    font-size: 0.92rem;
    color: #666666;
    line-height: 1.85;
    word-break: keep-all;
    white-space: pre-line;
    min-height: 52px;
}

.story-inline-nav-bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    margin-top: 10px;
}

.story-arrow-btn {
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.story-arrow-btn:active {
    color: #222222;
    transform: scale(0.9);
}

.story-arrow-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

@keyframes slideOutLeft { to { transform: translateX(-100%); opacity: 0; } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutRight { to { transform: translateX(100%); opacity: 0; } }
@keyframes slideInLeft { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.story-page-card.slide-out-left { animation: slideOutLeft 0.22s forwards cubic-bezier(0.4, 0, 0.2, 1); }
.story-page-card.slide-in-right { animation: slideInRight 0.25s forwards cubic-bezier(0.215, 0.61, 0.355, 1); }
.story-page-card.slide-out-right { animation: slideOutRight 0.22s forwards cubic-bezier(0.4, 0, 0.2, 1); }
.story-page-card.slide-in-left { animation: slideInLeft 0.25s forwards cubic-bezier(0.215, 0.61, 0.355, 1); }

/* SECTION 6: WEDDING GALLERY */
.gallery-section {
    background-color: #fcfbfa;
    padding: 60px 20px;
    border-top: 1px solid #f0eae1;
}

.gallery-section-tag {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: #d18b95;
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
}

.gallery-section-title {
    font-size: 1.35rem;
    font-weight: 400;
    color: #a86b75;
    margin-bottom: 28px;
    letter-spacing: -0.3px;
}

.gallery-grid {
    column-count: 2;
    column-gap: 12px;
    width: 100%;
}

.gallery-item {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease;
    content-visibility: auto;
    contain-intrinsic-size: 200px;
}

.gallery-item.hidden-item { display: none !important; }
.gallery-item:active { transform: scale(0.97); }

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.gallery-empty-text {
    font-size: 0.9rem;
    color: #888888;
    padding: 30px 0;
}

.gallery-more-btn-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-more-btn {
    background: none;
    border: none;
    color: #777777;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.gallery-more-btn:active {
    transform: scale(0.95);
    color: #222222;
}

.gallery-more-btn svg { color: #777777; }

/* SECTION 7: LOCATION */
.location-section {
    background-color: #faf9f7;
    padding: 60px 20px 70px;
    border-top: 1px solid #f0eae1;
}

.location-section-tag {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: #c98b95;
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
}

.location-section-title {
    font-family: 'Gowun Batang', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #a86b75;
    margin-bottom: 30px;
    letter-spacing: -0.3px;
}

.location-info-box {
    margin-bottom: 24px;
}

.location-venue {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222222;
    margin-bottom: 8px;
    word-break: keep-all;
}

.location-address {
    font-size: 1.02rem;
    color: #666666;
    letter-spacing: -0.2px;
    word-break: keep-all;
    white-space: pre-line;
}

.map-iframe-container {
    width: 100%;
    height: 280px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.map-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-image-btn-wrap {
    margin-bottom: 40px;
}

.btn-map-image {
    width: 100%;
    padding: 14px;
    background-color: #ffffff;
    border: 1px solid #f2dbe0;
    border-radius: 12px;
    color: #a86b75;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(168, 107, 117, 0.05);
    transition: all 0.2s ease;
}

.btn-map-image:active {
    background-color: #fff5f7;
    transform: scale(0.99);
}

.navigation-box {
    text-align: left;
    padding-top: 10px;
}

.nav-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 4px;
}

.nav-subtitle {
    font-size: 0.82rem;
    color: #888888;
    margin-bottom: 16px;
    word-break: keep-all;
}

.nav-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.nav-app-btn {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 12px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.nav-app-btn:active {
    background-color: #f8f8f8;
    transform: scale(0.97);
}

.app-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    color: #ffffff;
    font-family: sans-serif;
    overflow: hidden;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.naver-icon { background-color: #03cf5d; }
.kakao-icon { background-color: transparent; }

.app-name {
    font-size: 0.85rem;
    color: #333333;
    font-weight: 700;
    font-family: sans-serif;
}

/* SECTION 8: ACCOUNT (마음 전하실 곳) */
.account-section {
    background-color: #f7f6f4;
    padding: 60px 20px 70px;
    border-top: 1px solid #eee8df;
}

.account-section-tag {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: #c98b95;
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
}

.account-section-title {
    font-family: 'Gowun Batang', serif;
    font-size: 1.45rem;
    font-weight: 400;
    color: #222222;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.account-subtitle {
    font-size: 0.88rem;
    color: #777777;
    line-height: 1.6;
    margin-bottom: 28px;
    word-break: keep-all;
}

.account-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.account-accordion-item {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #eae5dc;
    transition: all 0.3s ease;
}

.account-accordion-header {
    width: 100%;
    padding: 18px 20px;
    background-color: #ffffff;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    color: #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.account-accordion-header .accordion-arrow {
    transition: transform 0.3s ease;
    color: #888888;
}

.account-accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
}

.account-accordion-body {
    display: none;
    padding: 16px 14px;
}

#account-accordion-groom .account-accordion-body {
    background-color: #eaf3fb;
}

#account-accordion-bride .account-accordion-body {
    background-color: #fcebf0;
}

.account-accordion-item.open .account-accordion-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px 16px 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    text-align: left;
}

.account-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.account-card-header .role {
    font-size: 0.92rem;
    color: #333333;
    font-weight: 500;
}

.account-card-header .name {
    font-size: 0.98rem;
    color: #222222;
    font-weight: 700;
}

.account-box {
    background-color: #f2f2f2;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-info-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-info-left .bank-name {
    font-size: 0.78rem;
    color: #888888;
    font-family: sans-serif;
}

.account-info-left .account-number {
    font-size: 0.95rem;
    color: #222222;
    font-weight: 700;
    font-family: sans-serif;
    letter-spacing: 0.3px;
}

.account-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-account-copy {
    background: none;
    border: none;
    color: #555555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: transform 0.15s ease, color 0.15s ease;
}

.btn-account-copy:active {
    transform: scale(0.9);
    color: #111111;
}

.btn-account-pay {
    background: transparent;
    border: none;
    color: #191919;
    font-size: 0.9rem;
    font-weight: 900;
    font-family: sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 6px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-account-pay:active {
    transform: scale(0.92);
    opacity: 0.7;
}

/* SECTION 9: GUESTBOOK (방명록) */
.guestbook-section {
    background-color: #faf8f6;
    padding: 60px 0 70px;
    border-top: 1px solid #f0eae1;
    overflow: hidden;
}

.guestbook-section-tag {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: #c98b95;
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
}

.guestbook-section-title {
    font-family: 'Gowun Batang', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #a86b75;
    margin-bottom: 28px;
    letter-spacing: -0.3px;
}

.guestbook-slider-container {
    width: 100%;
    overflow-x: auto;
    padding: 10px 20px 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.guestbook-slider-container::-webkit-scrollbar {
    display: none;
}

.guestbook-slider-track {
    display: flex;
    gap: 16px;
    width: max-content;
}

.guestbook-card {
    flex: 0 0 250px;
    width: 250px;
    height: 310px;
    background-color: #fffafb;
    border: 1px solid #f7eaed;
    border-radius: 18px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 6px 18px rgba(220, 150, 165, 0.08);
    scroll-snap-align: center;
    position: relative;
    text-align: center;
}

.guestbook-card-flower {
    font-size: 1.2rem;
    color: #c98b95;
    margin-bottom: 10px;
}

.guestbook-card-content {
    font-size: 0.88rem;
    color: #444444;
    line-height: 1.8;
    word-break: break-all;
    word-wrap: break-word;
    white-space: pre-line;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guestbook-card-author {
    font-size: 0.9rem;
    color: #666666;
    margin-top: 14px;
    font-weight: 500;
}

/* 방명록 2단 버튼 레이아웃 */
.guestbook-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}

.guestbook-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.guestbook-refresh-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-guestbook-action {
    background: none;
    border: none;
    font-size: 0.95rem;
    color: #444444;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 12px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-guestbook-action:active {
    color: #a86b75;
    transform: scale(0.95);
}

/* 방명록 새로고침 버튼 (서브 액션 스타일) */
.btn-guestbook-refresh {
    font-size: 0.82rem;
    font-weight: 500;
    color: #888888;
    padding: 4px 8px;
    gap: 4px;
}

.btn-guestbook-refresh .refresh-icon {
    display: inline-block;
    color: #888888;
    transition: transform 0.3s ease, color 0.2s ease;
}

.btn-guestbook-refresh:active,
.btn-guestbook-refresh:active .refresh-icon {
    color: #a86b75;
}

.btn-guestbook-refresh.spinning .refresh-icon {
    animation: spinRefresh 0.8s linear infinite;
}

.btn-guestbook-refresh:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

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

/* 방명록 모달 & 폼 UI */
.guestbook-modal-content {
    max-width: 100%;
}

.guestbook-write-body {
    padding: 24px 20px;
    text-align: left;
}

.guestbook-field {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
}

.guestbook-field label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #222222;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.guestbook-field label .req {
    color: #e53935;
}

.guestbook-field input[type="text"],
.guestbook-field input[type="password"] {
    width: 100%;
    border: none;
    border-bottom: 1px solid #cccccc;
    border-radius: 0;
    padding: 10px 0;
    font-size: 0.95rem;
    color: #333333;
    background: transparent;
    outline: none;
    transition: border-color 0.2s ease;
}

.guestbook-field input:focus {
    border-bottom-color: #333333;
}

.guestbook-field textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #cccccc;
    border-radius: 0;
    padding: 10px 0;
    font-size: 0.95rem;
    color: #333333;
    background: transparent;
    outline: none;
    resize: none;
    height: 120px;
    line-height: 1.6;
    transition: border-color 0.2s ease;
}

.guestbook-field textarea:focus {
    border-bottom-color: #333333;
}

.guestbook-btn-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-guestbook-submit {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #555555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-guestbook-submit:active {
    background-color: #f5f5f5;
    transform: scale(0.97);
}

/* 방명록 전체보기 모달 UI */
.guestbook-list-body {
    padding: 20px;
    text-align: left;
}

.guestbook-list-item {
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 20px;
    margin-bottom: 20px;
    position: relative;
}

.guestbook-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.guestbook-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.guestbook-item-author {
    font-size: 1rem;
    font-weight: 700;
    color: #222222;
}

.btn-guestbook-option {
    background: none;
    border: none;
    color: #999999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.guestbook-item-content {
    font-size: 0.92rem;
    color: #444444;
    line-height: 1.7;
    word-break: break-all;
    word-wrap: break-word;
    white-space: pre-line;
}

.guestbook-item-date {
    font-size: 0.75rem;
    color: #aaaaaa;
    margin-top: 8px;
}

/* 게시글 옵션 바텀시트 모달 */
.option-bottom-modal {
    align-items: flex-end !important;
}

.option-modal-content {
    height: auto !important;
    max-height: 60vh !important;
    border-radius: 20px 20px 0 0 !important;
    animation: slideUpBottom 0.25s ease-out forwards !important;
}

@keyframes slideUpBottom {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.option-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-option-item {
    width: 100%;
    padding: 16px;
    background-color: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-option-item:active {
    background-color: #f0f0f0;
}

.btn-option-item.btn-danger {
    color: #e53935;
    background-color: #fff5f5;
    border-color: #ffe0e0;
}

.btn-option-item.btn-danger:active {
    background-color: #ffeaea;
}

/* 관리자 모드 - 체크박스 라벨 UI */
.admin-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #555555;
    font-weight: 700;
    margin-top: 6px;
    margin-bottom: 4px;
    cursor: pointer;
}

.admin-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* SECTION 10: RSVP (참석 의사 전달) */
.rsvp-section {
    background-color: #fcfbfa;
    padding: 70px 24px;
    border-top: 1px solid #f0eae1;
    text-align: center;
}

.rsvp-section-tag {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: #c98b95;
    display: block;
    margin-bottom: 12px;
    font-weight: 400;
}

.rsvp-section-title {
    font-family: 'Gowun Batang', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: #8c5a63;
    margin-bottom: 22px;
    letter-spacing: -0.3px;
}

.rsvp-section-desc {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 32px;
    word-break: keep-all;
}

.rsvp-btn-wrap {
    display: flex;
    justify-content: center;
}

.btn-rsvp-open {
    background-color: #ffffff;
    border: 1px solid #f0dbe0;
    border-radius: 16px;
    padding: 16px 36px;
    font-size: 1.02rem;
    font-weight: 700;
    color: #a86b75;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(168, 107, 117, 0.08);
    transition: all 0.2s ease;
}

.btn-rsvp-open .chair-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-rsvp-open .chair-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    display: block;
}

.btn-rsvp-open:active {
    transform: scale(0.97);
    background-color: #fff8f9;
}

/* RSVP MODAL UI */
.rsvp-modal-content {
    max-width: 100%;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.rsvp-modal-content.side-groom {
    background-color: #f2f7fc;
}

.rsvp-modal-content.side-bride {
    background-color: #fcf2f5;
}

.rsvp-modal-header {
    border-bottom: none;
    padding: 22px 20px 10px;
    background: transparent;
}

.rsvp-modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222222;
    text-align: center;
    width: 100%;
}

.rsvp-modal-body {
    padding: 10px 24px 30px;
    text-align: left;
}

.rsvp-notice-text {
    text-align: center;
    font-size: 0.88rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 28px;
    word-break: keep-all;
}

.rsvp-status-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.btn-rsvp-status {
    flex: 1;
    padding: 16px 14px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-rsvp-status .status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}

.btn-rsvp-status .status-icon svg {
    width: 22px;
    height: 22px;
    fill: #333333;
    display: block;
}

.btn-rsvp-status .status-label {
    font-size: 1rem;
    font-weight: 700;
    color: #333333;
    flex: 1;
    text-align: left;
}

.btn-rsvp-status .check-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #cccccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: transparent;
    transition: all 0.2s ease;
}

.btn-rsvp-status.active {
    border: 1.5px solid #222222;
    background-color: #ffffff;
}

.btn-rsvp-status.active .check-circle {
    background-color: #222222;
    border-color: #222222;
    color: #ffffff;
}

.rsvp-side-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.btn-rsvp-side {
    flex: 1;
    padding: 16px 14px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-rsvp-side .side-icon {
    font-size: 1.1rem;
    margin-right: 6px;
}

.btn-rsvp-side .side-label {
    font-size: 1rem;
    font-weight: 700;
    color: #333333;
    flex: 1;
    text-align: left;
}

.btn-rsvp-side .check-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #cccccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: transparent;
    transition: all 0.2s ease;
}

.btn-rsvp-side.active {
    border: 1.5px solid #222222;
    background-color: #ffffff;
}

.btn-rsvp-side.active .check-circle {
    background-color: #222222;
    border-color: #222222;
    color: #ffffff;
}

.rsvp-field {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
}

.rsvp-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #222222;
    margin-bottom: 8px;
    display: block;
}

.rsvp-label .req {
    color: #e53935;
    margin-right: 2px;
}

.rsvp-field input[type="text"],
.rsvp-field input[type="tel"] {
    width: 100%;
    border: none;
    border-bottom: 1px solid #cccccc;
    border-radius: 0;
    padding: 10px 0;
    font-size: 0.95rem;
    color: #333333;
    background: transparent;
    outline: none;
    transition: border-color 0.2s ease;
}

.rsvp-field input:focus {
    border-bottom-color: #222222;
}

.rsvp-counter-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.rsvp-counter-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-counter {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #cccccc;
    background-color: #ffffff;
    color: #555555;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}

.btn-counter:active {
    background-color: #f0f0f0;
    transform: scale(0.92);
}

.counter-num {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222222;
    min-width: 18px;
    text-align: center;
}

.rsvp-privacy-box {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.privacy-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 8px;
}

.privacy-checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid #cccccc;
    background-color: #ffffff;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.privacy-checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #222222;
    border-color: #222222;
}

.privacy-checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 900;
}

.privacy-title {
    font-size: 0.9rem;
    color: #222222;
}

.privacy-desc {
    font-size: 0.78rem;
    color: #666666;
    line-height: 1.55;
    word-break: keep-all;
}

.rsvp-submit-wrap {
    margin-top: 10px;
}

.btn-rsvp-submit {
    width: 100%;
    padding: 16px;
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #555555;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.btn-rsvp-submit:active {
    background-color: #f7f7f7;
    transform: scale(0.99);
}

/* SECTION 11: 마음껏 축하해주기 */
.congrats-section {
    width: 100%;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 35px 20px 65px;
    box-sizing: border-box;
    overflow: hidden;
    background-color: #0b0c10;
    background-size: cover;
    background-position: center;
    transition: background-image 0.8s ease-in-out;
}

.congrats-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 12, 24, 0.75) 0%, rgba(5, 6, 15, 0.88) 100%);
    z-index: 1;
    pointer-events: none;
}

#congrats-fireworks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.congrats-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.congrats-section-tag {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: #ff9ebb;
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.congrats-section-title {
    font-family: 'Gowun Batang', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 12px rgba(255, 158, 187, 0.4);
}

.congrats-section-desc {
    font-size: 0.85rem;
    color: #e0e0e0;
    line-height: 1.65;
    margin-bottom: 20px;
    word-break: keep-all;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.congrats-count-box {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    padding: 12px 24px;
    margin-bottom: 100px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.congrats-count-box.hit-shake {
    animation: hitShake 0.25s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.congrats-count-box.highlight-n00 {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.22);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.85), inset 0 0 20px rgba(255, 215, 0, 0.5);
    animation: n00Glow 1.2s infinite alternate ease-in-out;
}

.congrats-label {
    font-size: 0.78rem;
    color: #ffccd5;
    letter-spacing: 1px;
    font-weight: 700;
}

.congrats-num-wrapper {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.congrats-number {
    font-family: 'Gowun Batang', serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.congrats-count-box.highlight-n00 .congrats-number {
    color: #fffbdf;
    text-shadow: 0 0 12px #ffd700;
}

.congrats-unit {
    font-size: 0.9rem;
    color: #e0e0e0;
    font-weight: 700;
}

.congrats-btn-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-congrats-firework {
    background: linear-gradient(135deg, #ff758f 0%, #ff4d6d 50%, #c9184a 100%);
    border: none;
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(255, 77, 109, 0.45);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    touch-action: manipulation;
}

.btn-congrats-firework:active {
    transform: scale(0.92);
    box-shadow: 0 2px 10px rgba(255, 77, 109, 0.3);
}

.firework-icon {
    font-size: 1.25rem;
}

@keyframes hitShake {
    0% { transform: translate(0, 0) scale(1); }
    20% { transform: translate(-3px, 2px) scale(1.03); }
    40% { transform: translate(3px, -2px) scale(1.02); }
    60% { transform: translate(-2px, -1px) scale(1.01); }
    80% { transform: translate(1px, 1px) scale(1); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes n00Glow {
    from {
        transform: scale(1);
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.7), inset 0 0 15px rgba(255, 215, 0, 0.4);
    }
    to {
        transform: scale(1.04);
        box-shadow: 0 0 40px rgba(255, 215, 0, 1), inset 0 0 25px rgba(255, 215, 0, 0.7);
    }
}

/* SECTION 12: ENDING (딥 로즈 핑크 테마 적용) */
.ending-section {
    position: relative;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0 24px 90px;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
    background-color: #753545;
}

.ending-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ending-bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ending-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0) 25%, 
        rgba(135, 65, 80, 0.75) 65%, 
        rgba(105, 40, 55, 0.98) 100%
    );
    z-index: 2;
}

.ending-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.ending-quote {
    font-family: 'Gowun Batang', serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #ffffff;
    letter-spacing: -0.2px;
    word-break: keep-all;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.ending-source {
    font-family: 'Gowun Batang', serif;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: -0.2px;
    font-weight: 400;
}

/* SECTION 13: SHARE (청첩장 공유하기 - 복사 버튼 아주 연한 핑크 적용) */
.share-section {
    background-color: #ffffff;
    padding: 50px 24px 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.share-btn-wrap {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 45px;
}

.btn-share-kakao {
    width: 100%;
    padding: 18px 24px;
    background-color: #ffe66d;
    border: none;
    border-radius: 16px;
    font-size: 0.98rem;
    font-weight: 500;
    color: #3b3113;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.btn-share-kakao:active {
    transform: scale(0.98);
    background-color: #f5dc5f;
}

.btn-share-link {
    width: 100%;
    padding: 18px 24px;
    background-color: #fff0f3;
    border: 1px solid #fad5de;
    border-radius: 16px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #8c5a63;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
    box-shadow: 0 2px 8px rgba(220, 150, 165, 0.08);
}

.btn-share-link:active {
    transform: scale(0.98);
    background-color: #fce4ea;
}

.share-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.powered-by {
    font-family: sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #333333;
    letter-spacing: -0.2px;
}

.footer-emoji {
    font-size: 1.2rem;
    line-height: 1;
}

/* LIGHTBOX & MAP MODAL */
.lightbox-modal, .map-img-modal {
    background-color: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(5px) !important;
    padding: 0 !important;
}

.lightbox-content {
    width: 100vw;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 20px 0 25px;
    box-sizing: border-box;
}

.map-modal-content {
    background-color: #f7f7f7;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.lightbox-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    padding: 6px;
}

.map-modal-content .lightbox-close-btn {
    color: #222222;
}

.lightbox-img-wrapper {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 16px;
    box-sizing: border-box;
    overflow: hidden;
    touch-action: pan-y;
}

.map-img-scroll-wrapper {
    overflow: hidden;
    touch-action: none;
    padding: 0 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.lightbox-img-wrapper img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    will-change: transform, opacity;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-img-wrapper img.slide-out-left { animation: slideOutLeft 0.22s forwards cubic-bezier(0.4, 0, 0.2, 1); }
.lightbox-img-wrapper img.slide-in-right { animation: slideInRight 0.25s forwards cubic-bezier(0.215, 0.61, 0.355, 1); }
.lightbox-img-wrapper img.slide-out-right { animation: slideOutRight 0.22s forwards cubic-bezier(0.4, 0, 0.2, 1); }
.lightbox-img-wrapper img.slide-in-left { animation: slideInLeft 0.25s forwards cubic-bezier(0.215, 0.61, 0.355, 1); }

.map-img-scroll-wrapper img {
    max-height: 80vh;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transform-origin: center center;
    will-change: transform;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.lightbox-nav-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 0;
    z-index: 10001;
}

.lightbox-nav-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-counter {
    font-size: 0.95rem;
    color: #ffffff;
    font-family: sans-serif;
    letter-spacing: 2px;
}

/* 관리자 모드 - 갤러리 업로드 */
.admin-gallery-upload-box {
    background-color: #faf8f5;
    border: 1px dashed #d8c29d;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 12px;
}

.admin-file-label {
    display: inline-block;
    padding: 10px 16px;
    background-color: #bfa15f;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
}

.admin-file-label input { display: none; }

.admin-upload-status {
    font-size: 0.8rem;
    color: #bfa15f;
    margin-top: 6px;
    font-weight: 700;
}

.admin-gallery-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 4px 16px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.admin-gallery-thumb {
    flex: 0 0 100px;
    height: 100px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    background-color: #f4efe6;
    touch-action: pan-x;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.admin-gallery-thumb.dragging {
    touch-action: none;
    opacity: 0.6;
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.admin-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.admin-gallery-thumb .thumb-idx {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background-color: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.admin-gallery-thumb .btn-thumb-del {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: rgba(217, 83, 79, 0.88);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MODALS */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 0;
    backdrop-filter: blur(3px);
    animation: fadeIn 0.25s ease-out forwards;
    touch-action: none;
}

.modal-overlay.closing { animation: fadeOut 0.25s ease-in forwards; }

.modal-content {
    width: 100vw;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    max-width: 100%;
    max-height: 100%;
    background-color: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    animation: modalPop 0.25s ease-out forwards;
    touch-action: auto;
}

.modal-content.closing { animation: modalPopOut 0.25s ease-in forwards; }

.modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    z-index: 10;
}

.modal-header h3 { font-size: 1.1rem; color: #333333; font-weight: 700; }

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999999;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.modal-body {
    padding: 24px 20px;
    flex: 1;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.contact-group { display: flex; flex-direction: column; gap: 12px; }

.group-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 2px;
}

.group-title.groom-title { color: #5a7b9c; }
.group-title.bride-title { color: #d68798; }

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafafa;
    padding: 12px 16px;
    border-radius: 10px;
}

.contact-item .role { font-size: 0.9rem; color: #666666; }
.contact-item .person-name { color: #222222; margin-left: 4px; }

.action-btns { display: flex; gap: 10px; }

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.2s ease;
}

.btn-icon:active { transform: scale(0.92); }
.btn-call { background-color: #edf4fa; color: #3a6b98; }
.btn-sms { background-color: #fcf0f2; color: #c95b73; }

.modal-divider { height: 1px; background-color: #eee; margin: 20px 0; }

.admin-modal-content { max-width: 100%; }

.admin-body {
    max-height: none;
    flex: 1;
    overflow-y: auto;
    text-align: left;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.admin-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #bfa15f;
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0eae1;
}

.admin-field {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-field label { font-size: 0.8rem; color: #666; font-weight: 700; }

.admin-field input,
.admin-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    box-sizing: border-box;
}

.admin-field textarea {
    resize: vertical;
    line-height: 1.5;
}

.admin-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.admin-save-btn {
    width: 100%;
    padding: 14px;
    background-color: #bfa15f;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin: 20px 0 30px;
}

.admin-save-btn:disabled { background-color: #cccccc; }

/* ANIMATIONS & REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.85s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.85s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: opacity, transform;
}

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

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes modalPop { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
@keyframes modalPopOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.98); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(8px); } 60% { transform: translateY(4px); } }
