:root {
    --font-script: 'Pinyon Script', cursive;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    --color-bg: #FCFBF9;
    --color-text: #5A5A5A;
    --color-gold: #C5A059;
    --color-gold-light: #E8DCC2;
    --color-gold-faint: #F9F4E8;
    --color-overlay: rgba(255, 255, 255, 0.95);

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Global Form Styling */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
    background-color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    border-radius: 2px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px var(--color-gold-faint);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #999;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-gold);
    color: white;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    border-radius: 2px;
}





body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* Header */
.site-header {
    text-align: center;
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
}

.couple-names {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 5rem;
    color: var(--color-gold);
    line-height: 1.2;
    font-weight: 400;
}

.wedding-subtitle {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: #888;
    margin-top: var(--spacing-sm);
}

/* Responsive Header */
@media (max-width: 600px) {
    .site-header {
        padding-top: var(--spacing-lg);
    }

    .couple-names {
        font-size: 2.8rem;
    }

    .wedding-subtitle {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    padding: 2rem 0;
    margin-bottom: var(--spacing-lg);
    border-top: 1px solid #EFEFEF;
    border-bottom: 1px solid #EFEFEF;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
    margin-bottom: var(--spacing-lg);
    border-top: 1px solid #EFEFEF;
    border-bottom: 1px solid #EFEFEF;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.nav-link {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--color-text);
    padding: 0.5rem;
    position: relative;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    flex: 1;
    width: 100%;
}

/* --- Utility Classes --- */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 2px;
}

.text-muted {
    color: #999;
}

.text-gold {
    color: var(--color-gold);
}

.font-heading {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-gold);
}

.mb-xs {
    margin-bottom: var(--spacing-xs);
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

/* --- Components: Forms --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #999;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    background-color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s;
}

.form-control-sm {
    padding: 0.5rem;
    font-size: 0.9rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px var(--color-gold-faint);
}

/* --- Components: Cards --- */
.card {
    background: white;
    padding: 2rem;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border-radius: 2px;
}

@media (max-width: 600px) {
    .card {
        padding: 1rem;
    }
}

.auth-card-container {
    max-width: 500px;
    margin: 6rem auto;
    padding: 0 1rem;
}

.auth-card {
    background: white;
    padding: 3rem;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border-radius: 2px;
}

.pricing-card {
    max-width: 380px;
    margin: 2rem auto;
    padding: 2rem;
    border: 2px solid var(--color-gold);
    background: white;
    position: relative;
    border-radius: 2px;
}

/* --- Components: Buttons --- */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-gold);
    color: white;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
    border-radius: 2px;
    text-decoration: none;
}

.btn:hover {
    filter: brightness(0.85);
    transform: translateY(-1px);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-hero {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background-color: white;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
    text-decoration: none;
}

.btn-hero:hover {
    background-color: var(--color-gold);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.btn-hero-wide {
    padding: 1.2rem 4rem;
    min-width: 280px;
    text-align: center;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-link {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.cta-link:hover {
    color: var(--color-gold);
}

/* --- Components: Social Buttons --- */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
    width: 100%;
    /* Ensure full width in form */
}

.btn-social:hover {
    background-color: #f9f9f9;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-google {
    color: #333;
    border-color: #ddd;
}

.btn-github {
    color: white;
    background-color: #333;
    border-color: #333;
}

.btn-github:hover {
    background-color: #000;
}

/* --- Components: Sections --- */
.hero-section {
    text-align: center;
    padding: 3rem 1rem 4rem;
    background: linear-gradient(180deg, #f9f6f0 0%, var(--color-bg) 100%);
}

.section-title {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-gold);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.feature-grid {
    display: grid;
    gap: 1.5rem;
    margin: 4rem 0;
}

/* Default to 3 cols, can be overridden */
.feature-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .feature-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .feature-grid-3 {
        grid-template-columns: 1fr;
    }
}


/* Grid */
.gallery-grid {
    column-count: 3;
    column-gap: var(--spacing-md);
}

@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 0.5rem;
    }

    .photo-item {
        margin-bottom: 0.5rem;
    }
}

.photo-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    /* Removed border-radius for sharper, more elegant look */
    border-radius: 0;
    overflow: hidden;
    cursor: zoom-in;
    transition: opacity 0.3s ease;
    /* Fix for some browsers clipping columns */
    backface-visibility: hidden;
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Slideshow Overlay */
.slideshow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slideshow-overlay.active {
    display: flex;
    opacity: 1;
}

.slideshow-img {
    max-height: 90vh;
    max-width: 90vw;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--color-text);
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--color-gold);
}

.download-btn {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: white;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.download-btn:hover {
    background: var(--color-gold);
}

/* Mobile Bottom Nav */
.bottom-nav {
    display: none;
    /* Hidden on desktop */
}

@media (max-width: 900px) {

    /* Hide Top Nav on Mobile */
    .main-nav {
        display: none;
    }

    /* Keep Dashboard Nav visible */
    .dashboard-nav {
        display: flex;
    }

    /* Adjust Footer to not be covered */
    body {
        padding-bottom: 80px;
    }

    /* Show Bottom Nav */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-top: 1px solid #EFEFEF;
        display: flex;
        justify-content: space-around;
        padding: 0.8rem 0;
        z-index: 900;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.03);
    }

    .bottom-nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #999;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: color 0.3s;
    }

    .bottom-nav-link.active {
        color: var(--color-gold);
    }

    .nav-icon {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
        color: #ccc;
        transition: color 0.2s, transform 0.2s;
    }

    .bottom-nav-link.active .nav-icon {
        color: var(--color-gold);
        transform: scale(1.1);
    }
}

/* --- Components: Trust Badges --- */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.85rem;
}

.trust-badge span {
    font-size: 1.2rem;
}

/* --- Components: Features --- */
.features-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.features-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .features-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .features-grid-3 {
        grid-template-columns: 1fr;
    }
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-text {
    text-align: center;
}

.feature-text h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-text p {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
    margin: 0;
}

/* --- Components: Pricing Lists --- */
.feature-list {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
}

.feature-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #555;
    font-size: 0.85rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.check {
    color: var(--color-gold);
    font-weight: bold;
}

.best-value {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gold);
    color: white;
    padding: 0.3rem 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.price {
    font-size: 3.5rem;
    color: var(--color-gold);
    font-family: var(--font-heading);
    margin: 1rem 0 0.3rem;
}

.price-info {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* --- Components: FAQ --- */
.faq-section {
    max-width: 650px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.faq-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid #eee;
}

.faq-item h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.faq-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* --- Components: CTA --- */
.cta-section {
    background: #f9f6f0;
    padding: 4rem 1rem;
    text-align: center;
}


/* --- Components: Page Headers (Sub-pages) --- */
.content-page,
.guestbook-page,
.rsvp-page {
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.page-decoration {
    color: var(--color-gold);
    font-size: 1.5rem;
    opacity: 0.6;
}

.page-title {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 2.5rem;
    color: var(--color-gold);
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.page-subtitle {
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* --- Components: Content Cards (Menu/Schedule) --- */
.content-card {
    background: white;
    border: 1px solid var(--color-gold-light);
    padding: 2.5rem;
    position: relative;
    border-radius: 2px;
}

.content-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-gold);
}

.page-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    text-align: center;
}

.page-content p {
    margin-bottom: 1rem;
    margin-top: 0;
    /* Remove default top margin */
}

.page-content p:last-child {
    margin-bottom: 0;
}

.page-content strong,
.page-content b {
    color: var(--color-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.page-content h3 {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-gold);
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 0;
    line-height: 1.2;
}

.page-content h3:first-child {
    margin-top: 0;
}

/* Schedule Layout */
.schedule-item {
    margin-bottom: 2.5rem;
    line-height: 1.3;
    /* Tighter line height for schedule */
}

.schedule-time {
    display: block;
    color: var(--color-gold);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.1;
    /* Very tight line height for time */
}

.contact-block {
    line-height: 1.3;
    margin-bottom: 2rem;
}

/* Generic Content Section (Menu, Info) */
.content-section {
    margin-bottom: 2.5rem;
}

.content-section h3 {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-gold);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 0;
    /* Tight wrap to content */
    line-height: 1.2;
}

.content-section p {
    margin-top: 0;
    margin-bottom: 0.5rem;
    /* Minimal gap between items */
    line-height: 1.4;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.empty-content {
    text-align: center;
    color: #999;
    padding: 2rem;
    font-style: italic;
}

/* --- Components: Guestbook --- */
.guestbook-form-card {
    background: white;
    border: 1px solid var(--color-gold-light);
    padding: 2rem;
    margin-bottom: 3rem;
    border-radius: 2px;
}

.photo-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.photo-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: var(--color-gold-faint);
    border: 1px dashed var(--color-gold-light);
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 2px;
}

.photo-label:hover {
    background: var(--color-gold-light);
}

.photo-icon {
    font-size: 1.2rem;
}

.photo-text {
    font-size: 0.85rem;
    color: #888;
}

.file-name {
    font-size: 0.85rem;
    color: var(--color-gold);
    margin-left: 0.5rem;
}

.guestbook-entries {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.guestbook-entry {
    background: white;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    border-radius: 2px;
}

.entry-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.entry-content {
    padding: 1.5rem;
}

.entry-message {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.entry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

.entry-name {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-gold);
    font-size: 1.2rem;
}

.entry-date {
    font-size: 0.8rem;
    color: #ccc;
}

.empty-guestbook {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-style: italic;
}

/* --- Components: RSVP --- */
.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-header h1 {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 2.5rem;
    color: var(--color-gold);
    margin: 0.5rem 0;
    line-height: 1.2;
}

.card-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #777;
    font-size: 1rem;
    margin-bottom: 0;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: var(--color-gold);
    background: #fafafa;
}

.radio-option input[type="radio"] {
    accent-color: var(--color-gold);
    width: 1.2rem;
    height: 1.2rem;
}

.radio-label {
    font-size: 1rem;
    color: #333;
}

@media (max-width: 600px) {

    .content-card,
    .guestbook-form-card {
        padding: 1.5rem;
        margin-left: -1rem;
        margin-right: -1rem;
        border-left: none;
        border-right: none;
    }

    .page-title,
    .card-header h1 {
        font-size: 2rem;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: var(--spacing-lg);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #CCC;
}

/* ============================================
   AUTH PAGES (Login, Signup, Logout, Reset)
   ============================================ */
.auth-header {
    padding-bottom: 2rem;
}

.auth-title {
    font-size: 3rem;
}

.auth-title-sm {
    font-size: 2.5rem;
}

.auth-nav {
    border: none;
    justify-content: center;
    padding: 1rem 0;
    gap: 2rem;
}

.auth-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
}

.auth-card {
    padding: 2rem;
}

.auth-card-centered {
    padding: 2rem;
    text-align: center;
}

/* Form Enhancements */
.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-checkbox-group input[type="checkbox"] {
    width: auto;
    margin-bottom: 0;
}

.form-checkbox-group label {
    cursor: pointer;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--color-text);
}

.form-divider {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #eee;
}

.form-section-title {
    font-size: 1.5rem;
    text-align: center;
    font-style: normal;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.form-actions {
    text-align: center;
    margin-top: 1.5rem;
}

/* Social Login Buttons */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-btn-icon {
    margin-right: 0.5rem;
}

/* Links */
.link-gold {
    color: var(--color-gold);
    text-decoration: none;
}

.link-gold:hover {
    text-decoration: underline;
}

/* Error States */
.error-box {
    background: #fff0f0;
    border: 1px solid #ffcdd2;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    color: #c62828;
}

.error-box p {
    margin: 0;
}

/* ============================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================ */
.legal-back-link {
    text-align: right;
    padding: 2rem 0;
}

.legal-back-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

.legal-title {
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-section-title {
    margin-top: 2rem;
}

/* ============================================
   UTILITY CLASSES (Padding, Margin, Text)
   ============================================ */
.p-0 {
    padding: 0;
}

.p-xs {
    padding: var(--spacing-xs);
}

.p-sm {
    padding: var(--spacing-sm);
}

.p-md {
    padding: var(--spacing-md);
}

.pt-0 {
    padding-top: 0;
}

.pb-0 {
    padding-bottom: 0;
}

.pb-md {
    padding-bottom: var(--spacing-md);
}

.m-0 {
    margin: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-xs {
    margin-bottom: var(--spacing-xs);
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
}

.text-sm {
    font-size: 0.8rem;
}

.text-base {
    font-size: 0.9rem;
}

.text-lg {
    font-size: 1rem;
}

.text-muted {
    color: #666;
}

/* ============================================
   HERO SECTION (Landing Page)
   ============================================ */
.wedding-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gold-faint);
    background-size: cover;
    background-position: center;
    position: relative;
    margin: -2rem;
    margin-bottom: 2rem;
}

.hero-overlay {
    background: rgba(255, 255, 255, 0.9);
    padding: 4rem;
    text-align: center;
    max-width: 600px;
    margin: 2rem;
}

.wedding-hero[style*="background-image"] .hero-overlay {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.hero-title {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 4rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: 0;
}

.hero-date {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 2rem;
}

/* ============================================
   COUNTDOWN (Landing Page)
   ============================================ */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 2.5rem;
    color: var(--color-gold);
    font-weight: 600;
    min-width: 60px;
}

.countdown-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #999;
    margin-top: 0.5rem;
}

.countdown-finished {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--color-gold);
    margin: 2rem 0;
}

/* ============================================
   CONFETTI ANIMATION (Gallery Upload Success)
   ============================================ */
.confetti-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeOut 3s forwards;
    animation-delay: 1.5s;
}

.confetti-content {
    text-align: center;
    animation: popIn 0.5s ease-out;
}

.confetti-icon {
    font-size: 5rem;
    animation: heartbeat 0.8s ease-in-out infinite;
}

.confetti-content h2 {
    font-family: var(--font-script);
    font-style: italic;
    font-size: 2.5rem;
    color: var(--color-gold);
    margin: 1rem 0 0.5rem;
}

.confetti-content p {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        pointer-events: none;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ============================================
   DASHBOARD FEATURE BOXES
   ============================================ */
.feature-box {
    padding: 1rem;
    border-radius: 8px;
}

.feature-box.active {
    background: #fafafa;
    border: none;
}

.feature-box.inactive {
    background: #f0f0f0;
    border: 1px solid #ddd;
}

.feature-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.feature-disabled {
    opacity: 0.5;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upgrade-btn {
    width: 100%;
    font-size: 0.7rem;
    padding: 0.4rem;
    background: linear-gradient(135deg, #bbb, #999);
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

/* Dashboard Container */
.dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

/* Hero Mobile Responsive */
@media (max-width: 600px) {
    .wedding-hero {
        min-height: 70vh;
    }

    .hero-overlay {
        padding: 2rem;
        margin: 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .countdown {
        gap: 0.8rem;
    }

    .countdown-value {
        font-size: 1.8rem;
        min-width: 45px;
    }

    .countdown-label {
        font-size: 0.6rem;
    }
}

/* Home Hero Typography */
.home-hero-title {
    font-size: 4.5rem;
}

.cta-title {
    font-size: 3.5rem;
}

@media (max-width: 600px) {
    .home-hero-title {
        font-size: 1.8rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .btn-hero {
        padding: 0.8rem 1.5rem;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .cta-section {
        padding: 2rem 1rem;
    }

    .cta-section>div {
        flex-direction: column;
        gap: 1rem;
    }

    .dashboard-nav {
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .dashboard-nav .nav-link {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
        letter-spacing: 1px;
    }
}

/* --- Components: Content Items (Schedule, Menu, Info) --- */
.content-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.content-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Meta info: Time, Category */
.content-meta {
    font-size: 0.9rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

/* Distinctive styling for Categories (Lines) */
.content-meta.is-category {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.2rem;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.content-meta.has-spacing {
    margin-top: 1.5rem;
}

/* Titles: Activity, Dish, Info Title */
.content-title {
    font-size: 1.3rem;
    font-family: var(--font-heading);
    color: #333;
    margin-bottom: 0.3rem;
}

/* Descriptions */
.content-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.content-desc.is-italic {
    font-style: italic;
    color: #777;
}

.content-desc.is-pre-line {
    white-space: pre-line;
}

/* Explicit Category Class to fix Menu styling issues */
.content-category {
    font-size: 0.9rem;
    color: var(--color-gold) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.2rem;
    display: inline-block;
    font-weight: 700;
}

.content-category.has-spacing {
    margin-top: 1.5rem;
}

/* Ensure Info Page container also picks up styles correctly if specific selector needed */
.info-container .content-category {
    color: var(--color-gold) !important;
}

/* --- HTMX Loading Indicator --- */
.htmx-indicator-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--color-gold);
    width: 100%;
    z-index: 9999;
    display: none;
    /* Hidden by default */

    /* Animation */
    animation: loading-bar 2s infinite ease-in-out;
    transform-origin: 0% 50%;
}

/* Show the indicator when HTMX is requesting */
.htmx-request .htmx-indicator-bar,
.htmx-request.htmx-indicator-bar {
    display: block !important;
}

@keyframes loading-bar {
    0% {
        transform: scaleX(0);
    }

    50% {
        transform: scaleX(0.5);
    }

    100% {
        transform: scaleX(1);
    }
}

/* --- Dashboard Compact Forms --- */
.card-compact {
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.form-row-compact {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
}

.form-col {
    display: flex;
    flex-direction: column;
}

.form-control-compact {
    height: 34px !important;
    font-size: 0.9rem !important;
    padding: 0.2rem 0.5rem !important;
}

textarea.form-control-compact.auto-expand {
    height: auto !important;
    min-height: 34px;
    resize: none;
    overflow-y: hidden;
    padding-top: 6px !important;
    line-height: 1.4;
}

.btn-icon-action {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-icon-action:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.btn-icon-action.delete {
    color: #e53935;
}

.btn-icon-action.delete:hover {
    background-color: #ffebee;
}

.btn-icon-action.save {
    color: var(--color-gold);
}

.btn-icon-action.save:hover {
    background-color: rgba(197, 160, 89, 0.1);
}

.btn-primary-action {
    background-color: var(--color-gold);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-action:hover {
    background-color: #a0804b;
    /* Slightly darker gold */
}

.btn-primary-action:active {
    transform: translateY(1px);
}

/* --- Compact Form Row (Restored) --- */
.form-row-compact {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin-bottom: 0;
}

/* Reduce size of inputs in compact rows */
.form-row-compact .form-control {
    margin-bottom: 0;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    height: auto;
}

.form-row-compact textarea.form-control {
    min-height: 36px;
    height: 36px;
    resize: vertical;
    padding-top: 0.4rem;
}

.form-row-compact label {
    margin-bottom: 0.2rem;
    font-size: 0.7rem;
}

.btn-icon-action {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    height: 36px;
    /* Match input height */
    width: 36px;
}

.btn-icon-action:hover {
    color: var(--color-gold);
    background: #f9f9f9;
    border-radius: 4px;
}

.btn-icon-action.delete:hover {
    color: #e53935;
    background: #fee;
}

@media (max-width: 600px) {
    .form-row-compact {
        display: grid !important;
        grid-template-columns: 1fr 1.5fr;
        /* Category | Title */
        gap: 0.5rem;
        align-items: start;
        position: relative;
        padding-bottom: 2.5rem;
        /* Space for buttons */
    }

    /* Description takes full width on new row */
    .form-row-compact .form-col-full-mobile {
        grid-column: 1 / -1;
        width: 100%;
        flex: none;
    }

    /* Force other columns to auto width/flex match grid */
    .form-row-compact .form-col {
        flex: none !important;
        width: auto !important;
    }

    /* Buttons absolute positioned at bottom right */
    .form-row-compact .btn-icon-action {
        /* Icons are inside a flex container div in HTML */
    }

    /* Target the button container div */
    .form-row-compact>div:last-child {
        position: absolute;
        bottom: 0;
        right: 0;
        background: #f9f9f9;
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
        display: flex;
        gap: 1rem;
    }

    /* Restore labels but make them tiny */
    .form-row-compact label {
        font-size: 0.65rem;
        margin-bottom: 0.1rem;
    }
}