/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile-first responsive foundation */
.container {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section base styles */
section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Typography base */
h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

/* Button reset */
button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Image base styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animation base classes */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}

.slide-up {
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.slide-up.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Cover Section Styles */
.cover-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    z-index: 1000;
    overflow: hidden;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 128, 128, 0.8);
    z-index: 1;
    transition: opacity 1s ease;
}

.cover-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.cover-content {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    z-index: 2;
}

/* Status Bar */
.cover-status-bar {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    padding: 8px 16px;
}

.status-message {
    color: white;
    font-size: 0.8rem;
    font-weight: 400;
}

/* Main Title */
.cover-main-title {
    position: absolute;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 6px;
    color: #666;
    margin: 0;
    text-align: center;
    opacity: 0;
    animation: fadeInTitle 1s ease 0.5s forwards;
}

@keyframes fadeInTitle {
    to {
        opacity: 1;
    }
}

/* Door-shaped Image Container */
.door-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 400px;
}

.door-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 140px 140px 20px 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInDoor 1s ease 1s forwards;
}

@keyframes fadeInDoor {
    to {
        opacity: 1;
    }
}

.door-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Dots */
.floating-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
    animation: floatDot 3s ease-in-out infinite;
}

.dot-1 {
    top: 20%;
    left: 15%;
    animation-delay: 2s;
}

.dot-2 {
    top: 35%;
    right: 20%;
    animation-delay: 2.5s;
}

.dot-3 {
    top: 60%;
    left: 25%;
    animation-delay: 3s;
}

.dot-4 {
    top: 45%;
    right: 15%;
    animation-delay: 3.5s;
}

.dot-5 {
    top: 75%;
    right: 30%;
    animation-delay: 4s;
}

.dot-6 {
    top: 25%;
    left: 35%;
    animation-delay: 4.5s;
}

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

/* Handwriting Animation */
.handwriting-container {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 80px;
}

.handwriting-svg {
    width: 100%;
    height: 100%;
}

.handwriting-path {
    animation: drawPath 4s ease-in-out forwards;
    animation-delay: 2.5s;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

/* Bottom Buttons */
.cover-bottom-buttons {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 12px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: calc(100% - 40px);
    max-width: 320px;
    opacity: 0;
    animation: fadeInButtons 1s ease 1.5s forwards;
}

@keyframes fadeInButtons {
    to {
        opacity: 1;
    }
}

.cover-bottom-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.cover-bottom-btn:hover {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
}

/* Hide cover section after animation */
.cover-section.hidden {
    transform: translateY(-100%);
    transition: transform 1s ease;
}

/* Ensure body scroll is disabled during cover animation */
body.cover-active {
    overflow: hidden;
}

/* Legacy styles for compatibility */
.typing-text {
    display: none;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Calendar Section Styles */
.calendar-section {
    background-color: #fefefe;
    padding: 60px 0;
}

.calendar-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.date-text {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #666;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #333;
    position: relative;
}

.calendar-day.highlighted {
    background-color: #f0f0f0;
    border-radius: 50%;
}

/* Family Section Styles */
.family-section {
    background-color: #f8f8f8;
    padding: 60px 0;
    min-height: auto;
}

.invitation-text {
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 50px;
    color: #666;
    font-weight: 400;
}

.family-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 320px;
    margin: 0 auto 40px auto;
}

.family-card {
    background: white;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.family-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.family-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.family-icon {
    font-size: 0.8rem;
    color: #999;
    margin: 0 4px;
}

.family-subtitle {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.main-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f5f5f5;
}

.korean-name {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.english-name {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 16px 24px;
    background: #d4b5a0;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 181, 160, 0.3);
}

.contact-button:hover {
    background: #c9a892;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 181, 160, 0.4);
}

.contact-button:active {
    transform: translateY(0);
}

.arrow-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Contact Modal Styles */
.contact-modal-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 320px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.contact-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.contact-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.contact-modal-close:hover {
    background: #f5f5f5;
    color: #666;
}

.contact-options {
    padding: 16px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 20px;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.contact-option:last-child {
    margin-bottom: 0;
}

.contact-option:hover {
    background: #f8f9fa;
    border-color: #e0e0e0;
    transform: translateY(-1px);
}

.contact-option:active {
    transform: translateY(0);
}

.contact-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.contact-text {
    color: #333;
    font-weight: 400;
}

/* Gallery Section Styles */
.gallery-section {
    background-color: #fff;
    padding: 60px 0;
}

.gallery-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
    letter-spacing: 3px;
}

.gallery-container {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.gallery-image-container {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 8px;
}

/*
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: fill; 
    background-color: #fff;
}

*/


.gallery-image.loading {
    opacity: 0.7;
}

/*
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 50%;

    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
*/

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    
    background: none;      /* 동그란 배경 제거 */
    border: none;          /* 테두리 제거 */
    box-shadow: none;
    border-radius: 0;

    font-size: 28px;
    color: #333;
    cursor: pointer;
    padding: 0;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.95);
}

.nav-prev {
    left: -30px;   /* 컨테이너 안쪽으로 */
}

.nav-next {
    right: -30px;
}
/*
.nav-prev {
    left: -50px;
}

.nav-next {
    right: -50px;
}
*/

/* Gallery Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.gallery-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    transition: opacity 350ms ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: -10px;
    color: white;
    font-size: 2.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-close:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Modal navigation arrows */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.modal-nav-prev {
    left: 20px;
}

.modal-nav-next {
    right: 20px;
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .modal-content {
        max-width: 98%;
        max-height: 98%;
    }
    
    .modal-close {
        top: -45px;
        right: -5px;
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }
    
    .modal-nav {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .modal-nav-prev {
        left: 10px;
    }
    
    .modal-nav-next {
        right: 10px;
    }
}

/* Location Section Styles */
.location-section {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.location-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    letter-spacing: 3px;
}

.venue-info {
    text-align: center;
    margin-bottom: 30px;
}

.venue-info h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.4;
}

.venue-info p {
    color: #666;
    font-size: 0.9rem;
}

.map-container {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.kakao-map {
    width: 100%;
    height: 250px;
    background-color: #f0f0f0;
}

.map-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 30px;
}

.map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 110px;
    height: 44px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-btn:hover {
    background-color: #f8f8f8;
    border-color: #ccc;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.map-btn.naver-map:hover {
    background-color: #f0f8ff;
    border-color: #03c75a;
}

.map-btn.tmap:hover {
    background-color: #fff5f0;
    border-color: #ff6b35;
}

.map-btn.kakao-map:hover {
    background-color: #fffbf0;
    border-color: #ffe500;
}

.map-logo {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.location-details {
    display: flex;
    justify-content: space-around;
    max-width: 280px;
    margin: 0 auto;
}

.detail-item {
    text-align: center;
    flex: 1;
}

.detail-item h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #333;
}

.detail-item p {
    font-size: 0.8rem;
    color: #666;
}

/* Map error overlay styles */
.image-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 245, 245, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 10;
}

.image-error-overlay span {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

/* Transportation Section Styles */
.transportation-section {
    background-color: #fff;
    padding: 60px 0;
}

.transportation-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
    letter-spacing: 3px;
}

.transport-options {
    max-width: 320px;
    margin: 0 auto;
}

.transport-item {
    margin-bottom: 30px;
    text-align: center;
}

.transport-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
}

.transport-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Account Section Styles */
.account-section {
    background-color: #f8f8f8;
    padding: 60px 0;
    min-height: auto;
}

.account-section h2 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 500;
}

.account-description {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
    padding: 0 20px;
}

/* Tab Navigation */
.account-tabs {
    display: flex;
    max-width: 320px;
    margin: 0 auto 30px auto;
    background: white;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.account-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    font-size: 0.95rem;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 400;
}

.account-tab.active {
    background: #333;
    color: white;
    font-weight: 500;
}

/* Tab Content */
.account-tab-content {
    max-width: 320px;
    margin: 0 auto;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* New Account Card Design */
.account-card-new {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

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

.account-role {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.account-name {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.account-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bank-name {
    font-size: 0.85rem;
    color: #888;
}

.account-number {
    font-size: 0.9rem;
    color: #333;
    font-weight: 400;
}

.pay-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pay-button:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.pay-icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

/* Bottom Action Buttons */
.account-bottom-actions {
    display: flex;
    justify-content: space-around;
    max-width: 320px;
    margin: 40px auto 0 auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 12px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(51, 51, 51, 0.1);
    color: #333;
}

/* Final Section Styles */
.final-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f8f8;
}

.final-background {
    position: relative;
    flex: 1;
    min-height: 60vh;
    overflow: hidden;
}

.final-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.final-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.final-content {
    position: relative;
    z-index: 2;
    background: #f8f8f8;
    padding: 40px 20px;
}

/* Quote Section */
.final-quote-container {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    top: -60px;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px 20px;
    border-radius: 0;
    margin-left: -20px;
    margin-right: -20px;
}

.final-quote {
    font-size: 1rem;
    color: white;
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-weight: 400;
    font-style: normal;
}

.final-quote::before,
.final-quote::after {
    content: '"';
    font-size: 1.1rem;
    color: white;
}

.final-quote-author {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: normal;
    margin-top: 10px;
}

/* Share Buttons Section */
.final-share-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 320px;
    margin: 0 auto 40px auto;
}

.final-share-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.kakao-btn {
    background: #fee500;
    color: #333;
}

.kakao-btn:hover {
    background: #fdd835;
    transform: translateY(-1px);
}

.invitation-btn {
    background: #d4b5a0;
    color: white;
}

.invitation-btn:hover {
    background: #c9a892;
    transform: translateY(-1px);
}

.btn-text {
    flex: 1;
    text-align: left;
}

.btn-arrow,
.btn-copy {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Bottom Navigation */
.final-bottom-nav {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 12px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 320px;
    margin: 0 auto;
}

.nav-item {
    background: none;
    border: none;
    color: #666;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(51, 51, 51, 0.1);
    color: #333;
}

/* Toast Message Styles */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast.show {
    opacity: 1;
}

.toast.success {
    background-color: rgba(76, 175, 80, 0.9);
}

.toast.error {
    background-color: rgba(244, 67, 54, 0.9);
}

/* Responsive Design */
@media (max-width: 390px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-prev {
        left: -35px;
    }
    
    .nav-next {
        right: -35px;
    }
    
    .map-buttons {
        gap: 6px;
    }
    
    .map-btn {
        width: 90px;
        height: 40px;
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .map-logo {
        width: 16px;
        height: 16px;
    }
    
    .family-cards {
        max-width: 300px;
        gap: 16px;
    }
    
    .family-card {
        padding: 20px 16px;
    }
    
    .contact-button {
        max-width: 300px;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .contact-modal-content {
        width: 95%;
        max-width: 300px;
    }
    
    .main-title {
        font-size: 2.2rem;
        letter-spacing: 6px;
        margin-bottom: 40px;
    }
    
    .cover-image-circle {
        width: 240px;
        height: 240px;
    }
    
    .happily-text {
        font-size: 2.5rem;
    }
    
    .cover-buttons {
        padding: 10px 16px;
    }
    
    .cover-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .account-tabs {
        max-width: 300px;
    }
    
    .account-tab-content {
        max-width: 300px;
    }
    
    .account-card-new {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .account-header {
        margin-bottom: 12px;
    }
    
    .pay-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .account-bottom-actions {
        max-width: 300px;
        padding: 10px 16px;
    }
    
    .action-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    /* Cover Section Mobile */
    .cover-main-title {
        font-size: 2rem;
        letter-spacing: 4px;
        top: 120px;
    }
    
    .door-image-container {
        width: 240px;
        height: 340px;
    }
    
    .handwriting-container {
        width: 200px;
        height: 60px;
    }
    
    .cover-bottom-buttons {
        width: calc(100% - 30px);
        padding: 10px 16px;
    }
    
    .cover-bottom-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    /* Final Section Mobile */
    .final-quote-container {
        padding: 25px 15px;
        top: -40px;
    }
    
    .final-quote {
        font-size: 0.95rem;
    }
    
    .final-quote-author {
        font-size: 0.8rem;
    }
    
    .final-share-section {
        max-width: 300px;
        gap: 12px;
    }
    
    .final-share-btn {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    .final-bottom-nav {
        max-width: 300px;
        padding: 10px 16px;
    }
    
    .nav-item {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

@media (min-width: 391px) {
    body {
        max-width: 390px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
}

/* Print Styles */
@media print {
    .nav-arrow,
    .share-buttons,
    .account-buttons {
        display: none;
    }
}