:root {
    --bg: #635f4d;
    --nav-bg: #4e4d3e;
    --accent: #C6B2AB;
    --interactive: #5a5948;
    --text: #E8E2D9;
    --heading: #fff;
    --muted: rgba(255,255,255,0.45);
    --shadow-warm: 0 8px 32px rgba(78, 77, 62, 0.3);
    --shadow-soft: 0 4px 16px rgba(78, 77, 62, 0.25);
    --radius-card: 16px;
    --radius-img: 12px;
    --text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    /* Font families */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Cormorant Garamond', serif;
    --font-ui: 'Lora', serif;
}

@font-face {
    font-family: 'Aston Script Bold';
    src: url('../fonts/AstonScriptBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
body {
    font-family: var(--font-body);
    background-image: url('../images/Assets/paper-texture.png');
    background-blend-mode: overlay;
    background-size: 300px 300px;
    line-height: 1.5;
    font-size: 18px;
    font-weight: 500;
}
.aston-font {
    font-family: 'Aston Script Bold', cursive;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 800ms ease-out both;
}

/* Tab entrance animation keyframes */
@keyframes slideFromLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideFromRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideFromBottom {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes floatUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes dateSlideIn {
    from { opacity: 0; transform: translateX(-80px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes dateDriftRight {
    from { transform: translateX(0); }
    to { transform: translateX(40px); }
}

/* Animation utility classes — hidden until parent tab is active */
.anim-from-left, .anim-from-right, .anim-from-bottom,
.anim-float-up, .anim-date-slide { opacity: 0; }

.tab-content.active .anim-from-left   { animation: slideFromLeft 700ms ease-out both; }
.tab-content.active .anim-from-right  { animation: slideFromRight 700ms ease-out both; }
.tab-content.active .anim-from-bottom { animation: slideFromBottom 700ms ease-out both; }
.tab-content.active .anim-float-up    { animation: floatUp 1200ms ease-out both; }
.tab-content.active .anim-date-slide  { animation: dateSlideIn 700ms ease-out both, dateDriftRight 25s 700ms linear forwards; }

/* Staggered delay classes */
.delay-1 { animation-delay: 100ms !important; }
.delay-2 { animation-delay: 250ms !important; }
.delay-3 { animation-delay: 400ms !important; }
.delay-4 { animation-delay: 600ms !important; }
.delay-5 { animation-delay: 800ms !important; }

/* For anim-date-slide (two animations), shift both delays */
.tab-content.active .anim-date-slide.delay-1 { animation-delay: 100ms, 800ms !important; }
.tab-content.active .anim-date-slide.delay-2 { animation-delay: 250ms, 950ms !important; }
.tab-content.active .anim-date-slide.delay-3 { animation-delay: 400ms, 1100ms !important; }
.tab-content.active .anim-date-slide.delay-4 { animation-delay: 600ms, 1300ms !important; }
.tab-content.active .anim-date-slide.delay-5 { animation-delay: 800ms, 1500ms !important; }

/* Tab Navigation Styles */
.tab-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--nav-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.tab-button {
    color: rgba(255, 255, 255, 0.6);
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: all 0.25s ease;
    border-bottom: 2px solid transparent;
    font-family: var(--font-heading);
}
@media (hover: hover) {
    .tab-button:hover {
        color: rgba(255, 255, 255, 0.95);
        background-color: rgba(255, 255, 255, 0.05);
    }
}
.tab-button.active {
    color: white;
    border-bottom-color: var(--accent);
    text-shadow: 0 0 12px rgba(198, 178, 171, 0.3);
}
@media (max-width: 640px) {
    .tab-nav > div {
        flex-wrap: nowrap;
        justify-content: space-between;
        width: 100%;
        padding: 0 0.25rem;
    }
    .tab-button {
        padding: 0.875rem 0.25rem;
        font-size: 0.7rem;
        letter-spacing: 0.02em;
        flex: 1;
        text-align: center;
        white-space: nowrap;
    }
}

/* Tab Content Styles */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* RSVP Form Styles */
#rsvpForm {
    display: none;
}
#rsvpForm.show {
    display: block;
}
.side-image {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-img);
    box-shadow: var(--shadow-soft);
    transition: opacity 1s ease-in-out;
}
.side-image.fade {
    opacity: 0;
}

/* Hide mobile-specific elements on desktop */
.mobile-only {
    display: none;
}

/* Hide desktop-specific elements on mobile */
.desktop-only {
    display: block;
}

/* RSVP hero image cropping (desktop) */
.hero-image {
    object-fit: cover;
    object-position: center 15%;
}

/* RSVP header size (desktop) */
.rsvp-header {
    font-size: 2.2rem;
}

/* Desktop: Hide side images below 1280px */
@media (max-width: 1280px) {
    .side-images {
        display: none !important;
    }
}

/* Mobile-specific styles (completely separate from desktop) */
@media (max-width: 768px) {
    /* Show mobile elements, hide desktop elements */
    .mobile-only {
        display: block;
    }
    .desktop-only {
        display: none;
    }

    /* Remove body padding for full-width content */
    body {
        padding: 0 !important;
    }

    /* Main flex container should not constrain on mobile */
    .flex.justify-center {
        display: block !important;
        padding: 0 !important;
    }

    /* Container should use more width on mobile */
    .container {
        max-width: 100% !important;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Increase header font size */
    h1:not(.aston-font) {
        font-size: 2.5rem !important;
    }

    /* Hero image should be larger and more prominent */
    .hero-image {
        max-height: 50vh !important;
        min-height: 280px;
        width: 100%;
        object-fit: cover;
        object-position: center 55%;
        border-radius: 0 !important;
        margin-bottom: 1.5rem;
    }

    /* Mobile horizontal gallery */
    .mobile-gallery {
        display: flex;
        gap: 0.75rem;
        overflow-x: auto;
        padding: 1rem 1.5rem;
        margin: 0 -1.5rem 1.5rem -1.5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .mobile-gallery::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .mobile-gallery-image {
        flex: 0 0 auto;
        width: 140px;
        height: 200px;
        object-fit: cover;
        border-radius: var(--radius-img);
        box-shadow: var(--shadow-soft);
        scroll-snap-align: start;
        transition: opacity 1s ease-in-out;
    }

    .mobile-gallery-image.fade {
        opacity: 0;
    }

    /* Mobile text sizes - smaller and tighter */
    .text-xl {
        font-size: 1.1rem !important;
        line-height: 1.45 !important;
    }

    .text-lg {
        font-size: 1.05rem !important;
        line-height: 1.45 !important;
    }

    /* Tighter paragraph margins on mobile */
    .tab-page .mb-6 {
        margin-bottom: 1.25rem !important;
    }
}

/* Tablet text sizes */
@media (min-width: 641px) and (max-width: 1024px) {
    .text-xl {
        font-size: 1.2rem !important;
        line-height: 1.5 !important;
    }

    .text-lg {
        font-size: 1.15rem !important;
        line-height: 1.5 !important;
    }
}

/* Placeholder page styles */
.placeholder-content {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

/* Consistent tab page styling */
.tab-page {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem 1.5rem 4rem;
}

@media (min-width: 641px) and (max-width: 1024px) {
    .tab-page {
        padding: 3rem 2.5rem 5rem;
    }
}

@media (min-width: 1025px) {
    .tab-page {
        padding: 3.5rem 4rem 6rem;
    }
}

/* Global content typography */
.tab-page p,
.tab-page li {
    color: #E8E2D9;
    line-height: 1.55;
    text-shadow: var(--text-shadow);
}

.tab-page h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 1.25rem;
}

/* Section divider — botanical SVG */
.section-divider {
    border: none;
    margin: 3.5rem 0;
    display: flex;
    justify-content: center;
    height: auto;
}
.section-divider::after {
    content: '';
    display: block;
}

/* Botanical ornament */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto;
}

/* Registry Styles */
.registry-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem 1rem;
}

.registry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.registry-card {
    background-color: var(--accent);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.registry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-warm);
}

.registry-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.registry-card-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.registry-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f0f0f0;
    transform-origin: center center;
}

.registry-card-content {
    padding: 1rem;
    flex: 1;
}

.registry-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    line-height: 1.35;
    font-family: var(--font-heading);
}

.registry-card-price {
    font-size: 1rem;
    color: #5a4a44;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.registry-card-claim {
    padding: 1rem;
    padding-top: 0;
}

.claim-button {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease-out;
    border: 2px solid transparent;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.claim-button.available {
    background-color: #5a5948;
    color: white;
    border-color: #5a5948;
}

.claim-button.available:hover {
    background-color: #4a4938;
}

.claim-button.claimed {
    background-color: transparent;
    color: #6B6A58;
    border-color: #6B6A58;
    cursor: default;
}

.claim-button.claimed::before {
    content: "✓ ";
}

@media (max-width: 640px) {
    .registry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.5rem;
    }

    .registry-card-image-wrapper,
    .registry-card-image {
        height: 120px;
    }

    .registry-card-image {
        object-fit: cover !important;
        transform: none !important;
        object-position: center center;
    }

    .registry-card-title {
        font-size: 0.9rem;
    }

    .registry-card-content {
        padding: 0.6rem;
    }
}

/* Registry Filter Styles */
.registry-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-label {
    color: #d4d4d4;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Price Sort Button */
.price-sort-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #5a5948;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: var(--font-ui);
    transition: background-color 0.3s ease;
}

.price-sort-btn:hover {
    background-color: #4a4938;
}

.price-sort-btn .sort-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.price-sort-btn.ascending .sort-arrow {
    transform: rotate(180deg);
}

/* Status Toggle */
.status-toggle {
    display: flex;
    background-color: #4a4938;
    border-radius: 8px;
    overflow: hidden;
}

.status-toggle-btn {
    padding: 0.375rem 0.75rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: var(--font-ui);
    transition: all 0.3s ease;
}

.status-toggle-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.status-toggle-btn.active {
    background-color: #5a5948;
    color: white;
}

/* Hidden card for filtering */
.registry-card.hidden {
    display: none;
}

@media (max-width: 640px) {
    .registry-filters {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .filter-group {
        gap: 0.375rem;
    }

    .filter-label {
        display: none;
    }

    .price-sort-btn,
    .status-toggle-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8125rem;
    }
}

/* Loading spinner for registry */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Small loading spinner for refresh indicator */
.loading-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Refresh indicator bar */
.registry-refresh-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    background-color: rgba(90, 89, 72, 0.8);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Manufacturer inline with title */
.registry-card-manufacturer {
    font-size: 0.85em;
    color: #7a6660;
    font-weight: 400;
    font-style: italic;
}

/* RSVP Form improved styles */
#rsvpForm input[type="text"],
#rsvpForm textarea {
    font-family: var(--font-ui);
    font-size: 1rem;
    border: 1px solid rgba(90, 73, 68, 0.4);
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#rsvpForm input[type="text"]:focus,
#rsvpForm textarea:focus {
    outline: none;
    border-color: #5a5948;
    box-shadow: 0 0 0 3px rgba(90, 89, 72, 0.18);
}

#rsvpForm label.block {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #2a2318;
}

#rsvpForm .radio-label,
#rsvpForm .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0;
    color: #3a2f28;
    font-size: 1.05rem;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s ease;
}

#rsvpForm .radio-label:hover,
#rsvpForm .checkbox-label:hover {
    color: #1a1208;
}

/* Ensure all radio buttons are consistently sized */
#rsvpForm input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    flex-shrink: 0;
    accent-color: #5a5948;
}

.form-section-divider {
    border: none;
    border-top: 1px solid rgba(90, 73, 68, 0.2);
    margin: 1.5rem 0;
}

/* Registry container bottom padding */
.registry-container {
    padding-bottom: 5rem;
}

/* Gift Item Modal Styles */
.registry-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

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

.registry-modal-content {
    background-color: var(--accent);
    border-radius: var(--radius-card);
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-warm);
    text-align: center;
}

.registry-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #5a4a44;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.registry-modal-close:hover {
    color: #2a1f1a;
}

.registry-modal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #2a1f1a;
    margin-bottom: 1rem;
}

.registry-modal-content p {
    color: #3a2f28;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.shipping-address {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(90, 73, 68, 0.25);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.shipping-address p {
    margin-bottom: 0.5rem;
    color: #2a1f1a;
}

.shipping-address p strong {
    font-weight: 600;
}

#shippingAddressText {
    font-size: 1.05rem;
    line-height: 1.5;
}

.copy-address-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--interactive);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0.5rem;
}

.copy-address-btn:hover {
    background-color: #4a4938;
}

.copy-address-btn.copied {
    background-color: #4a7c59;
}

.continue-btn {
    display: inline-block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: var(--interactive);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: background-color 0.2s ease;
}

.continue-btn:hover {
    background-color: #4a4938;
}

/* Registry card button container */
.registry-card-buttons {
    padding: 1rem;
    padding-top: 0;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.gift-item-btn,
.contribute-btn {
    flex: 1;
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease-out;
    border: 2px solid transparent;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background-color: #5a5948;
    color: white;
    border-color: #5a5948;
}

.gift-item-btn:hover,
.contribute-btn:hover {
    background-color: #4a4938;
}

.contribute-btn.fully-funded {
    background-color: transparent;
    color: #4a7c59;
    border-color: #4a7c59;
    cursor: default;
}

.contribute-btn.fully-funded:hover {
    background-color: transparent;
}

.contribute-btn.fully-funded::before {
    content: "✓ ";
}

/* Progress bar styles */
.progress-bar-container {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    height: 16px;
    margin: 0 1rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #4a7c59;
    border-radius: 6px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.95rem;
    color: #5a4a44;
    text-align: right;
    padding: 0.35rem 1rem 0.5rem;
    font-weight: 600;
}

/* Mobile adjustments for modal */
@media (max-width: 640px) {
    .registry-modal-content {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .registry-modal-content h3 {
        font-size: 1.25rem;
    }

    .gift-item-btn,
    .contribute-btn {
        min-height: 40px;
        padding: 0.5rem 0.25rem;
        font-size: 0.65rem;
    }

    .registry-card-buttons {
        padding: 0.5rem;
        padding-top: 0;
    }
}

/* Gift Claim Form Styles */
.gift-claim-form {
    margin-top: 1rem;
}

/* Shared form field styles (gift + contribute) */
.gift-form-field,
.contribute-form-field {
    margin-bottom: 1rem;
    text-align: left;
}

.gift-form-field label,
.contribute-form-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2a1f1a;
    margin-bottom: 0.35rem;
    font-family: var(--font-heading);
}

.gift-form-field input,
.contribute-form-field input {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 1px solid rgba(90, 73, 68, 0.3);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-ui);
    background-color: white;
    color: #2a1f1a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gift-form-field input:focus,
.contribute-form-field input:focus {
    outline: none;
    border-color: #5a5948;
    box-shadow: 0 0 0 3px rgba(90, 89, 72, 0.15);
}

.gift-form-field input::placeholder,
.contribute-form-field input::placeholder {
    color: rgba(90, 73, 68, 0.5);
}

.gift-form-hint {
    font-size: 0.8rem;
    color: rgba(90, 73, 68, 0.6);
    margin-top: 0.25rem;
    font-style: italic;
}

.continue-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Confirmation View Styles */
.confirmation-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    background-image: url('../images/Assets/paper-texture.png');
    background-blend-mode: overlay;
    background-size: 300px 300px;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.confirmation-container {
    background-color: var(--accent);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-warm);
    text-align: center;
}

.confirmation-loading {
    padding: 2rem 0;
}

.confirmation-loading p {
    margin-top: 1rem;
    color: #3a2f28;
}

.confirmation-content h2,
.confirmation-result h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #2a1f1a;
    margin-bottom: 0.75rem;
}

.confirm-item-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #5a4a44;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.confirm-question {
    font-size: 1.05rem;
    color: #3a2f28;
    margin-bottom: 1.5rem;
}

.confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.confirm-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.confirm-yes {
    background-color: #4a7c59;
    color: white;
    border-color: #4a7c59;
}

.confirm-yes:hover {
    background-color: #3d6a4b;
}

.confirm-no {
    background-color: transparent;
    color: #5a4a44;
    border-color: rgba(90, 73, 68, 0.4);
}

.confirm-no:hover {
    background-color: rgba(90, 73, 68, 0.1);
}

.confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.confirmation-result {
    padding: 1rem 0;
}

.confirmation-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.confirmation-icon.success {
    background-color: #4a7c59;
    color: white;
}

.confirmation-icon.cancelled {
    background-color: #5a5948;
    color: white;
}

.confirmation-icon.error {
    background-color: #c44;
    color: white;
}

.confirmation-result p {
    color: #3a2f28;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.confirm-back-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--interactive);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: background-color 0.2s ease;
}

.confirm-back-link:hover {
    background-color: #4a4938;
}

/* Confirmation note section */
.confirmation-note-section {
    margin: 1.5rem 0;
    text-align: left;
}

.confirmation-note-section label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2a1f1a;
    margin-bottom: 0.5rem;
    text-align: center;
}

.confirmation-note-section textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(90, 73, 68, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-ui);
    resize: vertical;
    min-height: 80px;
    background-color: white;
    color: #2a1f1a;
}

.confirmation-note-section textarea:focus {
    outline: none;
    border-color: #5a5948;
    box-shadow: 0 0 0 3px rgba(90, 89, 72, 0.15);
}

.save-note-btn {
    margin-top: 0.75rem;
    padding: 0.6rem 1.25rem;
    background-color: var(--interactive);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.save-note-btn:hover {
    background-color: #4a4938;
}

.save-note-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.note-saved-msg {
    margin-top: 0.5rem;
    color: #4a7c59;
    font-size: 0.95rem;
    text-align: center;
}

@media (max-width: 640px) {
    .confirmation-container {
        padding: 1.5rem;
    }

    .confirmation-content h2,
    .confirmation-result h2 {
        font-size: 1.4rem;
    }

    .confirm-btn {
        min-height: 44px;
    }
}

/* Contribution Modal Styles (WED-28) */
.contribute-modal-content {
    background-color: var(--accent);
    border-radius: var(--radius-card);
    padding: 2rem;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-warm);
}

.contribute-step {
    display: none;
}

.contribute-step.active {
    display: block;
}

.contribute-item-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.contribute-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.contribute-item-info {
    flex: 1;
    text-align: left;
}

.contribute-item-info h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: #2a1f1a;
    margin: 0;
    line-height: 1.3;
}

.contribute-item-info p {
    font-size: 0.9rem;
    color: #5a4a44;
    margin: 0.25rem 0 0 0;
}

.amount-input-wrapper {
    position: relative;
}

.amount-input-wrapper::before {
    content: '$';
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #5a4a44;
    font-size: 1rem;
    font-family: var(--font-ui);
}

.amount-input-wrapper input {
    padding-left: 1.75rem;
}

/* Payment method selection */
.payment-method-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.payment-method-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(90, 73, 68, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.payment-method-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(90, 73, 68, 0.4);
}

.payment-method-btn.selected {
    background-color: white;
    border-color: #5a5948;
    box-shadow: 0 0 0 3px rgba(90, 89, 72, 0.15);
}

.payment-method-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.payment-method-info {
    flex: 1;
}

.payment-method-info strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #2a1f1a;
}

.payment-method-info span {
    font-size: 0.85rem;
    color: #5a4a44;
}

/* Payment instructions screen */
.payment-instructions {
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    margin: 1rem 0;
}

.payment-instructions p {
    margin: 0.5rem 0;
    color: #3a2f28;
    font-size: 1rem;
    line-height: 1.6;
}

.payment-instructions .payment-account {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2a1f1a;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    margin: 0.75rem 0;
    word-break: break-all;
    text-align: center;
}

.payment-instructions .payment-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a7c59;
}

.open-payment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: #5a5948;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.open-payment-btn:hover {
    background-color: #4a4938;
}

.zelle-instructions {
    font-style: italic;
    font-size: 0.95rem;
    color: #5a4a44;
    margin-top: 1rem;
}

/* Modal navigation buttons */
.modal-nav-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.modal-back-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background-color: transparent;
    color: #5a4a44;
    border: 2px solid rgba(90, 73, 68, 0.3);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-back-btn:hover {
    background-color: rgba(90, 73, 68, 0.1);
}

.modal-next-btn {
    flex: 2;
    padding: 0.75rem 1rem;
    background-color: #5a5948;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modal-next-btn:hover {
    background-color: #4a4938;
}

.modal-next-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .contribute-modal-content {
        padding: 1.5rem;
    }

    .contribute-item-preview {
        flex-direction: column;
        text-align: center;
    }

    .contribute-item-info {
        text-align: center;
    }

    .payment-method-btn {
        padding: 0.875rem;
    }
}

/* Home tab hero styling */
.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 1.5rem 5rem;
}

.home-hero-image-wrap {
    width: 100%;
    max-width: 720px;
}

.home-hero-image-wrap img {
    display: block;
    width: 100%;
    border-radius: var(--radius-img);
    box-shadow: var(--shadow-warm);
    border: 1px solid rgba(255,255,255,0.08);
}

.home-date-block {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.5rem 2.5rem;
    position: relative;
    z-index: 2;
    margin-top: -1.5rem;
}

/* ===========================================
   MOBILE-SPECIFIC OVERRIDES (max-width: 768px)
   Home & Registry tab polish
   =========================================== */
@media (max-width: 768px) {
    /* --- HOME TAB --- */
    .home-hero {
        padding: 1.5rem 1rem 2rem;
    }

    .home-hero h1 {
        font-size: clamp(2.5rem, 12vw, 3.5rem) !important;
        margin-bottom: 0.25rem !important;
    }

    /* Tighter vertical spacing on mobile hero */
    .home-hero > p:first-of-type {
        margin-bottom: 0.5rem !important;
    }

    .home-hero .ornament {
        margin-bottom: 0.5rem !important;
    }

    .home-hero > p[style*="italic"] {
        margin-bottom: 1.5rem !important;
    }

    .home-hero-image-wrap {
        max-width: 100%;
    }

    .home-date-block {
        padding: 1.25rem 1.5rem;
        margin-top: -1.25rem;
    }

    .home-date-block p:nth-child(2) {
        font-size: 1.25rem !important;
    }

    /* Body text on home */
    .home-hero > p {
        font-size: 1.05rem !important;
        max-width: 100% !important;
        padding: 0 0.5rem;
    }

    /* Tighter spacing for all tab pages on mobile */
    .tab-page {
        padding: 1.5rem 1rem 3rem !important;
    }

    .tab-page h1 {
        margin-bottom: 0.75rem !important;
    }

    .tab-page h2 {
        margin-bottom: 0.75rem !important;
        margin-top: 1.5rem !important;
    }

    .tab-page h2:first-child {
        margin-top: 0 !important;
    }

    /* Reduce margins on common spacing classes */
    .tab-page .mb-10,
    .home-hero .mb-10 {
        margin-bottom: 1.5rem !important;
    }

    .tab-page .mb-8,
    .home-hero .mb-8 {
        margin-bottom: 1.25rem !important;
    }

    .tab-page .mb-6,
    .home-hero .mb-6 {
        margin-bottom: 1rem !important;
    }

    .tab-page .mb-4,
    .home-hero .mb-4 {
        margin-bottom: 0.5rem !important;
    }

    /* --- REGISTRY TAB --- */
    .registry-container {
        padding: 0 0.75rem 3rem;
    }

    .registry-container > h1 {
        padding-top: 1.5rem;
        font-size: clamp(2.2rem, 10vw, 3rem) !important;
    }

    /* Intro text */
    .registry-container > p {
        font-size: 1rem !important;
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }

    /* Registry cards - better mobile proportions */
    .registry-grid {
        gap: 0.75rem;
        padding: 0.5rem;
    }

    .registry-card-image-wrapper,
    .registry-card-image {
        height: 140px;
    }

    .registry-card-content {
        padding: 0.75rem;
    }

    .registry-card-title {
        font-size: 1rem;
    }

    /* Compact filter buttons */
    .registry-filters {
        gap: 0.375rem;
        padding: 0 0.5rem;
    }

    .price-sort-btn,
    .status-toggle-btn {
        padding: 0.1875rem 0.375rem;
        font-size: 0.75rem;
    }

    /* --- GENERAL MOBILE POLISH --- */
    /* Ornament scaling */
    .ornament svg {
        width: 160px;
        height: auto;
    }

    /* Section divider spacing */
    .section-divider {
        margin: 2.5rem 0;
    }

    /* Better touch targets for tab nav */
    .tab-button {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Music toggle button */
.music-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--nav-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}
.music-toggle:hover {
    background: var(--interactive);
    transform: scale(1.05);
}
.music-toggle svg {
    width: 20px;
    height: 20px;
    fill: var(--text);
}
