/* ToBeWed - Wedding Pages Application Styles */

:root {
    --primary-color: #8b5a6b;
    --primary-hover: #6d4555;
    --secondary-color: #d4a5a5;
    --accent-color: #f5e6e0;
    --text-color: #333;
    --text-muted: #666;
    --bg-color: #faf8f7;
    --white: #fff;
    --border-color: #e0d5d0;
    --success: #5a8b6b;
    --warning: #c9a227;
    --danger: #a85a5a;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 8px;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--primary-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(139, 90, 107, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(139, 90, 107, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(139, 90, 107, 0.15);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(139, 90, 107, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #8a4848;
    color: var(--white);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

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

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-color);
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 90, 107, 0.1);
}

.form-control::placeholder {
    color: #aaa;
}

/* Date and Time inputs */
input[type="date"].form-control,
input[type="time"].form-control,
input[type="datetime-local"].form-control {
    padding: 12px 16px;
    min-height: 50px;
    cursor: pointer;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator,
input[type="time"].form-control::-webkit-calendar-picker-indicator,
input[type="datetime-local"].form-control::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator:hover,
input[type="time"].form-control::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"].form-control::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

textarea.form-control.form-control-inline {
    min-height: 0;
    resize: none;
    overflow: hidden;
    line-height: 1.4;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form-check label {
    margin-bottom: 0;
    cursor: pointer;
}

.form-help {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

.section-description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-dismissible {
    position: relative;
    padding-right: 40px;
}

.alert-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    padding: 0;
    color: inherit;
}

.alert-close:hover {
    opacity: 1;
}

.alert-success {
    background: #e8f5eb;
    color: var(--success);
    border: 1px solid #c3e6cb;
}

.alert-error, .alert-danger {
    background: #f8e8e8;
    color: var(--danger);
    border: 1px solid #f5c6c6;
}

.alert-warning {
    background: #fef9e7;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    background: var(--accent-color);
    color: var(--text-color);
}

.badge-success {
    background: #e8f5eb;
    color: var(--success);
}

.badge-warning {
    background: #fef9e7;
    color: #856404;
}

/* Frontend Layout */
.frontend-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background: linear-gradient(135deg, rgba(139, 90, 107, 0.95) 0%, rgba(109, 69, 85, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px 0;
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

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

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
}

.brand-logo {
    height: 50px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links .btn-primary {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.nav-links .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-hover);
}

.main-content {
    flex: 1;
}

/* ==========================================
   FOOTER - Comprehensive SEO-Optimized Design
   ========================================== */
.site-footer {
    background: linear-gradient(180deg, #1a1518 0%, #0f0d0e 100%);
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 90, 107, 0.5), transparent);
}

.footer-main {
    padding: 80px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 50px;
}

/* Brand Column */
.footer-brand-column {
    padding-right: 30px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
    opacity: 0.8;
}

.footer-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.social-link:hover svg {
    color: #fff;
}

/* Footer Columns */
.footer-column h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #fff;
    transform: translateX(3px);
}

/* Trust Badges */
.footer-trust {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding-top: 50px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.trust-item svg {
    width: 22px;
    height: 22px;
    color: var(--primary-light);
    opacity: 0.8;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright p {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-copyright p:first-child {
    margin-bottom: 4px;
}

.footer-address {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.35) !important;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Nav link muted */
.nav-link-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.nav-link-muted:hover {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Footer Responsive */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1.2fr repeat(4, 1fr);
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .footer-brand-column {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-trust {
        flex-wrap: wrap;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 60px 0 40px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .footer-trust {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column ul li a:hover {
        transform: none;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 42px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features */
.features {
    padding: 60px 20px;
    text-align: center;
}

.features h2 {
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.feature p {
    color: var(--text-muted);
}

/* Auth Pages - Elegant Design */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #faf8f7 0%, #f5e6e0 50%, #f0ece7 100%);
}

.auth-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
}

.auth-decoration-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 90, 107, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.auth-decoration-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 90, 107, 0.1) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px 45px;
    box-shadow: 0 25px 80px rgba(139, 90, 107, 0.15), 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.auth-card-register {
    max-width: 540px;
}

.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-eyebrow {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.auth-header h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 38px;
    font-weight: 400;
    color: #2a2a2a;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.auth-header h1 em {
    font-family: 'Great Vibes', cursive;
    font-style: normal;
    color: var(--primary-color);
}

.auth-header p {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: #6a6a6a;
    margin: 0;
}

/* Auth Alerts */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.auth-alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.auth-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

/* Auth Form Fields */
.auth-form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-field label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #4a4a4a;
}

.auth-field input {
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: #2a2a2a;
    background: #fafafa;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(139, 90, 107, 0.1);
}

.auth-field input::placeholder {
    color: #aaa;
}

.auth-field .form-errors,
.auth-field ul {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
}

.auth-field .form-errors li,
.auth-field ul li {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #b91c1c;
}

/* Auth Options (Remember Me) */
.auth-options {
    margin-top: 4px;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #5a5a5a;
}

.auth-checkbox input {
    display: none;
}

.checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #d0d0d0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: #fff;
}

.auth-checkbox input:checked + .checkbox-mark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-checkbox input:checked + .checkbox-mark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

/* Auth Button */
.btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-auth:hover {
    background: #6d4a55;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 90, 107, 0.3);
}

.btn-auth svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-auth:hover svg {
    transform: translateX(4px);
}

/* Auth Terms */
.auth-terms {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #888;
    text-align: center;
    margin: 16px 0 0 0;
    line-height: 1.6;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #999;
    text-transform: lowercase;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
}

.auth-footer p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #6a6a6a;
    margin: 0 0 8px 0;
}

.auth-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #6d4a55;
    text-decoration: underline;
}

/* Auth Features */
.auth-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #6a6a6a;
}

.auth-feature svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

/* Auth Page Responsive */
@media (max-width: 640px) {
    .auth-section {
        padding: 30px 16px;
    }

    .auth-card {
        padding: 36px 28px;
        border-radius: 20px;
    }

    .auth-header h1 {
        font-size: 32px;
    }

    .auth-field-row {
        grid-template-columns: 1fr;
    }

    .auth-features {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .auth-decoration-1 {
        width: 400px;
        height: 400px;
        top: -150px;
        right: -150px;
    }

    .auth-decoration-2 {
        width: 350px;
        height: 350px;
        bottom: -100px;
        left: -100px;
    }
}

/* App Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

.sidebar .brand {
    padding: 25px;
    min-height: 95px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar .brand a {
    color: var(--white);
    font-size: 22px;
}

.sidebar .brand-logo {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
}

.sidebar-nav {
    padding: 20px 0 10px 0;
}

.sidebar-nav .nav-item {
    display: block;
    padding: 12px 25px;
    color: rgba(255,255,255,0.8);
    transition: all 0.2s;
}

.sidebar-nav .nav-item:hover,
.sidebar-nav .nav-item.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.sidebar-content-wrapper {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-section {
    padding: 0 15px;
}

.sidebar-section-title {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 10px 10px 10px;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.user-info {
    margin-bottom: 10px;
    font-weight: 500;
}

.logout-link {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.main-wrapper {
    flex: 1;
    margin-left: 260px;
}

.app-header {
    background: var(--white);
    padding: 25px 30px;
    min-height: 95px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
}

.app-content {
    padding: 30px;
}

/* Dashboard */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card h3 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--text-muted);
}

.dashboard-recent h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.wedding-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.wedding-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.wedding-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.wedding-date, .wedding-status {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.wedding-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Data Table */
.data-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-collapse: collapse;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--accent-color);
    font-weight: 600;
    color: var(--text-color);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table code {
    background: var(--accent-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
}

/* Form Container */
.form-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 25px;
    padding-bottom: 0;
}

.form-section h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-actions {
    display: flex;
    gap: 15px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.form-actions .btn {
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Wedding View */
.wedding-view {
    display: grid;
    gap: 30px;
}

.wedding-overview .overview-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.overview-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.overview-card dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
}

.overview-card dt {
    font-weight: 600;
    color: var(--text-muted);
}

.overview-card dd {
    color: var(--text-color);
}

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

.section-header h2 {
    font-size: 20px;
}

.pages-list, .qrcode-list {
    display: grid;
    gap: 15px;
}

.page-card, .qrcode-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.page-info h4, .qrcode-info h4 {
    margin-bottom: 8px;
    color: var(--text-color);
}

.page-info code {
    background: var(--accent-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    margin-left: 10px;
}

.page-url {
    display: inline-block;
    background: var(--accent-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-family: monospace;
    color: var(--primary-color);
    margin-top: 8px;
    transition: all 0.2s;
}

.page-url:hover {
    background: var(--primary-color);
    color: var(--white);
}

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

/* Public Wedding Pages - Elegant Invitation Style */
.wedding-public {
    height: 100vh;
    height: 100dvh;
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-page-background, #f0ece7);
    padding: 20px;
    box-sizing: border-box;
}

.wedding-nav-minimal {
    display: none;
}

.wedding-footer-minimal {
    display: none;
}

/* Page Navigation Arrows - All Devices */
.page-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 70px;
    text-decoration: none;
    color: var(--color-text-secondary, #a0a0a0);
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.2s ease;
    opacity: 0.5;
    -webkit-tap-highlight-color: transparent;
}

.page-nav:hover {
    color: var(--color-text-primary, #5a5a5a);
    opacity: 1;
}

.page-nav:active {
    transform: translateY(-50%) scale(0.9);
}

.page-nav-prev {
    left: 8px;
}

.page-nav-next {
    right: 8px;
}

.page-nav .nav-arrow {
    font-family: var(--theme-heading, 'Cormorant Garamond', Georgia, serif);
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
}

@media (min-width: 768px) {
    .page-nav {
        width: 50px;
        height: 80px;
        opacity: 0.6;
    }

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

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

    .page-nav .nav-arrow {
        font-size: 72px;
    }
}

@media (min-width: 1024px) {
    .page-nav-prev {
        left: 40px;
    }

    .page-nav-next {
        right: 40px;
    }

    .page-nav .nav-arrow {
        font-size: 96px;
    }
}

/* Page Slider - Carousel Style */
.page-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.page-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.page-slide-current {
    z-index: 2;
    transform: translateX(0);
}

.page-slide-prev {
    z-index: 1;
    transform: translateX(-100%);
}

.page-slide-next {
    z-index: 1;
    transform: translateX(100%);
}

.page-slide .invitation-card {
    animation: none !important;
}

/* During swipe - no transitions */
.page-slider.swiping .page-slide {
    transition: none !important;
}

/* During animated transition */
.page-slider.animating .page-slide {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* During crossfade transition (for guest book pages) */
.page-slider.crossfading .page-slide {
    transition: opacity 0.3s ease-in-out !important;
}

.page-slider.crossfading .page-slide .invitation-card {
    transition: none !important;
}

/* Guest book slide should align to top during transitions */
.page-slide.align-top {
    align-items: flex-start !important;
    padding-top: 20px;
}

/* ================================================
   Guest Book Mode - Normal Scrolling Layout
   ================================================ */
.guest-book-mode {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
    overflow-y: scroll !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    display: block !important;
}

.guest-book-mode .wedding-main {
    flex: none;
    height: auto !important;
    min-height: auto;
    padding: 0;
    display: block !important;
    overflow: visible !important;
}

.guest-book-mode .page-slider {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
}

.guest-book-mode .page-slide {
    position: relative !important;
    height: auto !important;
    display: block !important;
}

.guest-book-mode .page-slide-current {
    position: relative !important;
    height: auto !important;
}

.guest-book-mode .page-slide-prev,
.guest-book-mode .page-slide-next {
    display: none !important;
}

.guest-book-mode .invitation-card {
    transform: none !important;
    max-width: 100%;
    width: 100%;
    margin: 0;
    min-height: 100vh;
    height: auto !important;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(20px, 5vw, 100px) clamp(20px, 6vw, 120px);
}

.guest-book-mode .page-nav {
    position: fixed;
}

.guest-book-mode .wedding-footer-minimal {
    position: relative;
    margin-top: auto;
}

/* ================================================
   Expanded Mode - Full-page Scrolling for All Pages
   ================================================ */
.expanded-mode {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
    overflow-y: scroll !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    display: block !important;
}

.expanded-mode .wedding-main {
    flex: none;
    height: auto !important;
    min-height: auto;
    padding: 0;
    display: block !important;
    overflow: visible !important;
}

.expanded-mode .page-slider {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
}

.expanded-mode .page-slide {
    position: relative !important;
    height: auto !important;
    display: block !important;
}

.expanded-mode .page-slide-current {
    position: relative !important;
    height: auto !important;
}

.expanded-mode .page-slide-prev,
.expanded-mode .page-slide-next {
    display: none !important;
}

.expanded-mode .invitation-card {
    transform: none !important;
    margin-bottom: 0 !important;
    max-width: 100%;
    width: 100%;
    margin: 0;
    min-height: 100vh;
    height: auto !important;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(20px, 5vw, 100px) clamp(20px, 6vw, 120px);
}

/* Fluid typography scaling in expanded/guest-book mode based on viewport */
.expanded-mode .partner-name,
.guest-book-mode .partner-name {
    font-size: clamp(24px, 5vw, 60px);
    letter-spacing: clamp(8px, 1.5vw, 20px);
}

.expanded-mode .and-text,
.guest-book-mode .and-text {
    font-size: clamp(32px, 6vw, 80px);
}

.expanded-mode .invitation-text,
.guest-book-mode .invitation-text {
    font-size: clamp(10px, 1.5vw, 18px);
    letter-spacing: clamp(3px, 0.6vw, 8px);
}

.expanded-mode .date-day,
.guest-book-mode .date-day {
    font-size: clamp(60px, 12vw, 160px);
}

.expanded-mode .date-month,
.guest-book-mode .date-month {
    font-size: clamp(14px, 2.5vw, 32px);
    letter-spacing: clamp(6px, 1.2vw, 16px);
}

.expanded-mode .date-year,
.guest-book-mode .date-year {
    font-size: clamp(12px, 2vw, 28px);
    letter-spacing: clamp(5px, 1vw, 14px);
}

.expanded-mode .script-text,
.expanded-mode .welcome-script,
.guest-book-mode .script-text,
.guest-book-mode .welcome-script {
    font-size: clamp(20px, 4vw, 50px);
}

.expanded-mode .venue-name,
.guest-book-mode .venue-name {
    font-size: clamp(11px, 1.6vw, 20px);
    letter-spacing: clamp(3px, 0.6vw, 8px);
}

.expanded-mode .venue-time,
.expanded-mode .venue-address,
.guest-book-mode .venue-time,
.guest-book-mode .venue-address {
    font-size: clamp(11px, 1.6vw, 20px);
}

.expanded-mode .rsvp-title,
.guest-book-mode .rsvp-title {
    font-size: clamp(18px, 3vw, 40px);
}

.expanded-mode .form-section h3,
.guest-book-mode .form-section h3 {
    font-size: clamp(14px, 2vw, 26px);
}

.expanded-mode .form-group label,
.guest-book-mode .form-group label {
    font-size: clamp(12px, 1.4vw, 18px);
}

.expanded-mode .form-group input,
.expanded-mode .form-group select,
.expanded-mode .form-group textarea,
.guest-book-mode .form-group input,
.guest-book-mode .form-group select,
.guest-book-mode .form-group textarea {
    font-size: clamp(14px, 1.6vw, 20px);
    padding: clamp(8px, 1.2vw, 16px);
}

.expanded-mode .btn,
.guest-book-mode .btn {
    font-size: clamp(12px, 1.4vw, 18px);
    padding: clamp(10px, 1.5vw, 20px) clamp(20px, 3vw, 40px);
}

.expanded-mode .page-nav {
    position: fixed;
}

.expanded-mode .wedding-footer-minimal {
    position: relative;
    margin-top: auto;
}

/* ================================================
   Hamburger Menu & Navigation Drawer
   ================================================ */

/* Hamburger Button */
.hamburger-menu-btn {
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    z-index: 200 !important;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--color-background, #fff);
    border: 1px solid var(--color-border, #ddd);
    border-radius: 4px;
    cursor: pointer;
    display: flex !important;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hamburger-menu-btn:hover {
    background: var(--color-background, #fff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hamburger-icon,
.hamburger-close {
    font-size: 24px;
    color: var(--color-text-primary, #3a3a3a);
    line-height: 1;
    transition: opacity 0.2s ease;
}

.hamburger-icon {
    display: block;
}

/* Hide hamburger when menu is open */
.hamburger-menu-btn.open {
    opacity: 0;
    pointer-events: none;
}

/* Expand/Collapse View Button */
.expand-view-btn {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 200 !important;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--color-background, #fff);
    border: 1px solid var(--color-border, #ddd);
    border-radius: 4px;
    cursor: pointer;
    display: flex !important;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.expand-view-btn:hover {
    background: var(--color-background, #fff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.expand-view-btn svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-primary, #3a3a3a);
}

.expand-view-btn .expand-icon {
    display: block;
}

.expand-view-btn .collapse-icon {
    display: none;
}

.expanded-mode .expand-view-btn .expand-icon {
    display: none;
}

.expanded-mode .expand-view-btn .collapse-icon {
    display: block;
}

/* Hide expand button on guest book page - it's always full-page */
.guest-book-mode .expand-view-btn {
    display: none !important;
}

/* Menu Overlay */
.nav-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Navigation Drawer */
.nav-menu-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    max-width: 85%;
    height: 100%;
    background: var(--color-background, #faf9f8);
    z-index: 175;
    transform: translateX(0);
    transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    visibility: hidden;
}

.nav-menu-drawer.open {
    left: 0;
    visibility: visible;
}

/* Menu Header */
.nav-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
}

.nav-menu-title {
    font-family: var(--theme-heading, 'Cormorant Garamond', Georgia, serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text-primary, #3a3a3a);
    letter-spacing: 1px;
}

.nav-menu-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--color-text-secondary, #5a5a5a);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    line-height: 1;
}

.nav-menu-close:hover {
    color: var(--color-text-primary, #3a3a3a);
}

/* Menu List */
.nav-menu-list {
    list-style: none;
    margin: 0;
    padding: 20px 0;
    overflow-y: auto;
    flex: 1;
}

.nav-menu-list li {
    margin: 0;
}

.nav-menu-link {
    display: block;
    padding: 15px 25px;
    font-family: var(--theme-body, 'Montserrat', sans-serif);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-secondary, #5a5a5a);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-menu-link:hover {
    background: var(--color-divider, rgba(0, 0, 0, 0.03));
    color: var(--color-text-primary, #3a3a3a);
}

.nav-menu-link.active {
    color: var(--color-text-primary, #3a3a3a);
    border-left-color: var(--color-accent, #3a3a3a);
    background: var(--color-divider, rgba(0, 0, 0, 0.02));
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .hamburger-menu-btn {
        top: 25px;
        left: 25px;
    }

    .nav-menu-drawer {
        width: 320px;
    }
}

@media (min-width: 1024px) {
    .hamburger-menu-btn {
        top: 30px;
        left: 40px;
    }
}

.wedding-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.invitation-card {
    background: #faf9f8;
    max-width: 520px;
    width: 100%;
    padding: 45px 45px;
    text-align: center;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transform-origin: top center;
    animation: pageEnter 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    transition: transform 0.3s ease-out, margin-bottom 0.3s ease-out;
}

/* Disable transition during measurement */
.invitation-card.measuring {
    transition: none !important;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.invitation-content {
    max-width: 420px;
    margin: 0 auto;
}

/* Expand inner content width in expanded/guest-book mode on desktop */
@media (min-width: 768px) {
    .expanded-mode .invitation-content,
    .guest-book-mode .invitation-content {
        max-width: 560px;
    }
}

@media (min-width: 1024px) {
    .expanded-mode .invitation-content,
    .guest-book-mode .invitation-content {
        max-width: 620px;
    }
}

@media (min-width: 1400px) {
    .expanded-mode .invitation-content,
    .guest-book-mode .invitation-content {
        max-width: 700px;
    }
}

.partner-name {
    font-family: var(--element-font, var(--theme-heading, 'Cormorant Garamond', Georgia, serif));
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 10px;
    color: var(--color-text-primary, #3a3a3a);
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.and-text {
    font-family: var(--theme-accent, 'Allura', cursive);
    font-size: 28px;
    color: var(--color-accent, #4a4a4a);
    margin: 2px 0;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    display: block;
    width: 100%;
    padding-right: 8px;
}

.invitation-text {
    font-family: var(--element-font, var(--theme-body, 'Montserrat', sans-serif));
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--color-text-secondary, #5a5a5a);
    line-height: 2.4;
    margin: 25px 0;
    text-transform: uppercase;
}

.divider {
    width: 30px;
    height: 1px;
    background: var(--color-divider, #9a9a9a);
    margin: 25px auto;
}

.date-display {
    margin: 35px 0;
    text-align: center;
}

.date-day {
    display: block;
    font-family: var(--theme-heading, 'Cormorant Garamond', Georgia, serif);
    font-size: 72px;
    font-weight: 300;
    color: var(--color-text-primary, #3a3a3a);
    line-height: 1;
    letter-spacing: 2px;
    text-align: center;
}

.date-month {
    display: block;
    font-family: var(--theme-accent, 'Allura', cursive);
    font-size: 90px;
    color: var(--color-text-primary, #3a3a3a);
    margin: -5px 0 -10px 0;
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
    padding-right: 15px;
}

.date-year {
    display: block;
    font-family: var(--theme-heading, 'Cormorant Garamond', Georgia, serif);
    font-size: 52px;
    font-weight: 300;
    letter-spacing: 10px;
    color: var(--color-text-primary, #3a3a3a);
    line-height: 1;
    text-align: center;
}


.venue-display {
    margin: 30px 0;
    text-align: center;
}

.venue-display .venue-label {
    font-family: var(--theme-accent, 'Allura', cursive);
    font-size: 32px;
    color: var(--color-accent, #4a4a4a);
    margin-bottom: 0;
    text-align: center;
}

.venue-display .venue-time {
    font-family: var(--theme-body, 'Montserrat', sans-serif);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--color-text-secondary, #5a5a5a);
    margin-bottom: 12px;
    text-transform: uppercase;
    text-align: center;
}

.venue-display .venue-name {
    font-family: var(--theme-heading, 'Cormorant Garamond', Georgia, serif);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--color-text-primary, #3a3a3a);
    margin-bottom: 6px;
    text-transform: uppercase;
    text-align: center;
}

.venue-display .venue-address {
    font-family: var(--theme-body, 'Montserrat', sans-serif);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--color-text-secondary, #5a5a5a);
    text-transform: uppercase;
    text-align: center;
}

.welcome-script,
.script-text {
    font-family: var(--element-font, var(--theme-script, 'Great Vibes', cursive));
    font-size: 26px;
    color: var(--color-text-secondary, #4a4a4a);
    margin: 25px 0;
}

.page-heading {
    font-family: var(--element-font, var(--theme-heading, 'Cormorant Garamond', Georgia, serif));
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--color-text-primary, #3a3a3a);
    margin-bottom: 5px;
}

.page-body {
    margin-top: 20px;
}

.page-body p {
    font-family: var(--theme-body, 'Montserrat', sans-serif);
    font-size: 10px;
    line-height: 2.2;
    letter-spacing: 2px;
    color: #5a5a5a;
    margin-bottom: 15px;
}

.additional-content {
    margin-top: 30px;
    font-family: var(--theme-body, 'Montserrat', sans-serif);
    font-size: 10px;
    line-height: 2.2;
    letter-spacing: 2px;
    color: #5a5a5a;
}

/* ================================================
   Font Size Scaling for Frontend
   ================================================ */

/* Small size - 85% of base */
[data-font-size="small"] { --font-scale: 0.85; }
/* Medium size - default 100% */
[data-font-size="medium"] { --font-scale: 1; }
/* Large size - 125% of base */
[data-font-size="large"] { --font-scale: 1.25; }
/* Extra Large size - 150% of base */
[data-font-size="extra-large"] { --font-scale: 1.5; }

/* Apply font scaling to partner names */
.partner-name[data-font-size] {
    font-size: calc(28px * var(--font-scale, 1));
    letter-spacing: calc(10px * var(--font-scale, 1));
}

/* Apply font scaling to invitation text */
.invitation-text[data-font-size] {
    font-size: calc(9px * var(--font-scale, 1));
    letter-spacing: calc(4px * var(--font-scale, 1));
}

/* Apply font scaling to date display elements */
.date-display[data-font-size] .date-day {
    font-size: calc(72px * var(--font-scale, 1));
}
.date-display[data-font-size] .date-month {
    font-size: calc(90px * var(--font-scale, 1));
}
.date-display[data-font-size] .date-year {
    font-size: calc(52px * var(--font-scale, 1));
    letter-spacing: calc(10px * var(--font-scale, 1));
}

/* Apply font scaling to venue elements */
.venue-time[data-font-size] {
    font-size: calc(10px * var(--font-scale, 1));
    letter-spacing: calc(3px * var(--font-scale, 1));
}
.venue-name[data-font-size] {
    font-size: calc(16px * var(--font-scale, 1));
    letter-spacing: calc(4px * var(--font-scale, 1));
}
.venue-address[data-font-size] {
    font-size: calc(9px * var(--font-scale, 1));
    letter-spacing: calc(3px * var(--font-scale, 1));
}
.venue-label[data-font-size] {
    font-size: calc(32px * var(--font-scale, 1));
}

/* Apply font scaling to welcome message */
.welcome-script[data-font-size] {
    font-size: calc(26px * var(--font-scale, 1));
}

/* Clickable links in content */
.content-link {
    color: var(--color-text-secondary, #5a5a5a);
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--color-text-secondary, #5a5a5a);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.content-link:hover {
    color: var(--color-text-primary, #333);
    border-color: var(--color-text-primary, #333);
}

.wedding-footer-minimal {
    text-align: center;
    padding: 25px 20px;
}

.footer-names {
    font-family: var(--theme-heading, 'Cormorant Garamond', Georgia, serif);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 6px;
    color: var(--color-text-secondary, #6a6a6a);
    text-transform: uppercase;
}

.footer-names .script {
    font-family: var(--theme-script, 'Great Vibes', cursive);
    font-size: 20px;
    text-transform: lowercase;
    letter-spacing: 0;
    margin: 0 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 25px;
    }

    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .page-card, .qrcode-card {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Wedding Invitation Responsive */
    .wedding-public {
        padding: 15px;
    }

    .invitation-card {
        padding: 35px 25px;
    }

    .partner-name {
        font-size: 20px;
        letter-spacing: 6px;
    }

    .and-text {
        font-size: 24px;
    }

    .invitation-text {
        font-size: 8px;
        letter-spacing: 3px;
    }

    .date-day {
        font-size: 52px;
        letter-spacing: 1px;
    }

    .date-month {
        font-size: 65px;
        margin: -3px 0 -8px 0;
    }

    .date-year {
        font-size: 40px;
        letter-spacing: 6px;
    }

    .venue-display .venue-time {
        font-size: 9px;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }

    .venue-display .venue-name {
        font-size: 13px;
        letter-spacing: 3px;
    }

    .venue-display .venue-address {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .page-heading {
        font-size: 20px;
        letter-spacing: 6px;
    }

    .welcome-script,
    .script-text {
        font-size: 22px;
    }

}

/* ================================================
   Visual Page Editor Styles
   ================================================ */

.visual-editor-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.visual-editor-preview {
    flex: 1;
    min-width: 0;
}

.visual-editor-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.visual-editor-sidebar .form-section {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.visual-editor-sidebar .form-section h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.visual-editor-sidebar .section-description {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.visual-editor-sidebar .form-text,
.visual-editor-sidebar .form-text.text-muted,
.visual-editor-sidebar small.form-text,
.visual-editor-sidebar .section-content .form-text {
    font-size: 12px !important;
    color: #666 !important;
    margin-top: 4px;
    display: block;
    line-height: 1.5;
}

/* Section Header with Toggle (Color Theme) */
.section-header-with-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-header-with-toggle h3 {
    margin-bottom: 0 !important;
}

.intensity-toggle {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.intensity-toggle .intensity-btn {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #fff;
    border: none;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.intensity-toggle .intensity-btn:first-child {
    border-right: 1px solid #ddd;
}

.intensity-toggle .intensity-btn:hover {
    background: #f5f5f5;
}

.intensity-toggle .intensity-btn.active {
    background: var(--primary-color);
    color: #fff;
}

.intensity-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.intensity-toggle-row .intensity-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Collapsible Sections */
.form-section.collapsible .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    transition: margin-bottom 0.2s ease;
}

.form-section.collapsible:not(.collapsed) .section-header {
    margin-bottom: 14px;
}

.form-section.collapsible .section-header h3 {
    margin-bottom: 0;
}

.section-header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-toggle {
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.section-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.section-toggle .toggle-icon {
    width: 10px;
    height: 10px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -3px;
}

.form-section.collapsed .section-toggle .toggle-icon {
    transform: rotate(-45deg);
    margin-top: 2px;
}

.form-section.collapsible .section-content {
    transition: max-height 0.25s ease, opacity 0.2s ease, visibility 0s;
    max-height: 1000px;
    opacity: 1;
}

.form-section.collapsed .section-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease, visibility 0s 0.25s;
}

.visual-editor-hidden-fields {
    display: none;
}

/* Page Type Warning */
.page-type-warning {
    margin-top: 8px;
    padding: 10px;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: var(--radius);
}

.page-type-warning .form-text {
    display: block;
    margin-bottom: 8px;
}

.page-type-warning-buttons {
    display: flex;
    gap: 8px;
}

.page-type-warning-buttons .btn {
    flex: 1;
    padding: 6px 12px;
    font-size: 12px;
}

/* Unsaved changes indicator */
.visual-editor-status {
    margin-bottom: 15px;
}

.unsaved-indicator {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 500;
    width: 100%;
    text-align: center;
    border: 1px solid #ffc107;
}

/* Visual Editor Actions */
.visual-editor-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.visual-editor-actions .btn-block {
    width: 100%;
    text-align: center;
}

.visual-editor-actions .btn-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Editor Preview - Mimics Frontend Invitation */
.editor-invitation-wrapper {
    background: var(--color-page-background, #f0ece7);
    border-radius: var(--radius);
    padding: 40px 20px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.editor-invitation-card {
    background: #faf9f8;
    max-width: 520px;
    width: 100%;
    padding: 65px 55px;
    text-align: center;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.editor-invitation-content {
    max-width: 420px;
    margin: 0 auto;
}

/* Editable Field Styling */
.editable-field {
    position: relative;
    cursor: text;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: -4px;
    padding: 4px;
}

.editable-field:hover {
    background: rgba(139, 90, 107, 0.08);
    outline: 2px dashed rgba(139, 90, 107, 0.3);
}

.editable-field:focus-within {
    background: rgba(139, 90, 107, 0.12);
    outline: 2px solid var(--primary-color);
}

.editable-field::before {
    content: attr(data-label);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.editable-field:hover::before,
.editable-field:focus-within::before {
    opacity: 1;
}

/* Editable input that inherits invitation styling */
.editable-input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    text-align: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    color: inherit;
    text-transform: inherit;
    padding: 0;
    margin: 0;
    resize: none;
    overflow: hidden;
    /* Ensure all inputs are interactive */
    pointer-events: auto;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.editable-input::placeholder {
    color: #bbb;
    opacity: 1;
}

.editable-input:focus {
    outline: none;
}

/* Page title input */
.editor-page-title {
    margin-bottom: 20px;
}

.editor-page-title .editable-input {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 4px;
    color: #888;
    text-transform: uppercase;
    text-align: center;
}

/* Partner name inputs */
.editor-partner-name .editable-input {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 10px;
    color: var(--color-text-primary, #3a3a3a);
    text-transform: uppercase;
}

/* Partner name textarea - allow multi-line names */
.editor-partner-name textarea.editable-input {
    min-height: 1.2em;
    line-height: 1.2;
    display: block;
}

/* And text - editable connector between partner names */
.editor-and-text-wrapper {
    text-align: center;
    margin: 2px 0;
}

.editor-and-text-input {
    font-family: 'Allura', cursive;
    font-size: 28px;
    color: var(--color-accent, #4a4a4a);
    font-weight: 400;
    line-height: 1;
    text-align: center;
    width: auto;
    min-width: 50px;
    max-width: 150px;
}

/* Time text wrapper - centers the prefix + time as a block */
.time-text-wrapper {
    display: inline-block;
}

/* Time prefix input - styled to match the time visual text, auto-sized via JS */
.time-prefix-input {
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    color: inherit;
    text-transform: inherit;
    padding: 0;
    margin: 0;
    width: auto;
    min-width: 20px;
    box-sizing: content-box;
}

/* Invitation text input */
.editor-invitation-text {
    margin: 25px 0;
}

.editor-invitation-text .editable-input {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--color-text-secondary, #5a5a5a);
    line-height: 2.4;
    text-transform: uppercase;
}

/* Welcome message */
.editor-welcome-message {
    margin: 25px 0;
}

/* Custom page title */
.editor-page-title {
    margin: 15px 0;
}

.editor-page-title-input {
    font-family: var(--theme-serif, 'Cormorant Garamond', serif);
    font-size: 24px;
    font-weight: 500;
    color: #4a4a4a;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: center;
}

/* Custom page content */
.editor-content {
    margin: 20px 0;
}

.editor-content .editable-input {
    font-family: var(--theme-body, 'Montserrat', sans-serif);
    font-size: 14px;
    color: #5a5a5a;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 2;
    text-align: center;
}

/* Date display - clickable to edit */
.editor-date-display {
    margin: 35px 0;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.editor-date-picker {
    display: block;
    width: 180px;
    margin: 0 auto 15px auto;
    padding: 8px 12px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-align: center;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    color: #666;
}

.editor-date-picker:hover {
    border-color: var(--primary-color);
    background: rgba(139, 90, 107, 0.05);
}

.editor-date-picker:focus {
    outline: none;
    border-color: var(--primary-color);
    border-style: solid;
}

.editor-date-visual {
    cursor: pointer;
    transition: opacity 0.2s;
}

.editor-date-display:hover .editor-date-visual {
    opacity: 0.8;
}

.editor-date-day {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 72px;
    font-weight: 300;
    color: #3a3a3a;
    line-height: 1;
    letter-spacing: 2px;
}

.editor-date-month {
    display: block;
    font-family: 'Allura', cursive;
    font-size: 90px;
    color: #3a3a3a;
    margin: -5px 0 -10px 0;
    font-weight: 400;
    line-height: 1.1;
    padding-right: 15px;
}

.editor-date-year {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 52px;
    font-weight: 300;
    letter-spacing: 10px;
    color: #3a3a3a;
    line-height: 1;
}

/* Venue display */
.editor-venue-display {
    margin: 30px 0;
    text-align: center;
}

.editor-venue-label {
    font-family: 'Allura', cursive;
    font-size: 32px;
    color: #4a4a4a;
    margin-bottom: 0;
}

.venue-label-input {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    color: inherit;
    background: transparent;
    border: none;
    border-bottom: 1px dashed transparent;
    text-align: center;
    padding: 0;
    margin: 0;
    width: auto;
    min-width: 40px;
    box-sizing: content-box;
    outline: none;
    transition: border-color 0.2s;
}

.venue-label-input:hover {
    border-bottom-color: rgba(0, 0, 0, 0.2);
}

.venue-label-input:focus {
    border-bottom-color: rgba(139, 90, 107, 0.5);
}

.venue-label-input::placeholder {
    color: #bbb;
    opacity: 1;
}

/* Time picker - clickable visual */
.editor-venue-time {
    position: relative;
    margin-bottom: 12px;
    display: block;
    text-align: center;
}

.editor-time-picker {
    display: inline-block;
    width: 120px;
    padding: 6px 10px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-align: center;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    color: #666;
    margin-bottom: 8px;
}

.editor-time-picker:hover {
    border-color: var(--primary-color);
    background: rgba(139, 90, 107, 0.05);
}

.editor-time-picker:focus {
    outline: none;
    border-color: var(--primary-color);
    border-style: solid;
}

.editor-time-visual {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--color-text-secondary, #5a5a5a);
    text-transform: uppercase;
    padding: 4px 8px;
}

.editor-venue-name .editable-input {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--color-text-primary, #3a3a3a);
    text-transform: uppercase;
}

.editor-venue-address .editable-input {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--color-text-secondary, #5a5a5a);
    text-transform: uppercase;
}

/* Welcome message */
.editor-welcome-message .editable-input {
    font-family: 'Great Vibes', cursive;
    font-size: 26px;
    color: var(--color-text-secondary, #4a4a4a);
    /* Ensure input is fully interactive */
    pointer-events: auto;
    user-select: text;
    cursor: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* RSVP Intro message - unique styling to avoid conflicts */
.editor-rsvp-intro {
    margin: 25px 0;
}

.editor-rsvp-intro .editable-input,
.editor-rsvp-intro .rsvp-intro-field {
    font-family: var(--theme-script);
    font-size: 26px;
    color: var(--color-text-secondary, #4a4a4a);
    pointer-events: auto !important;
    user-select: text !important;
    cursor: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    text-align: center;
}

/* Page heading */
.editor-page-heading .editable-input {
    font-family: var(--theme-heading);
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--color-text-primary, #3a3a3a);
}

/* Divider */
.editor-divider {
    width: 30px;
    height: 1px;
    background: var(--color-divider, #9a9a9a);
    margin: 25px auto;
}

/* Empty field indicator */
.editable-field.is-empty .editable-input {
    color: #ccc;
}


/* ================================================
   Toggleable Fields - Hide/Show Functionality
   ================================================ */

.toggleable-field {
    position: relative;
}

/* Field toggle button - now inside .field-controls */
.field-controls .field-toggle-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(139, 90, 107, 0.9);
    color: white;
    border: none;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.field-controls .field-toggle-btn:hover {
    background: var(--danger);
    transform: scale(1.1);
}

.toggleable-field.is-hidden {
    display: none !important;
}

/* Hidden Fields Section in Sidebar */
.hidden-fields-section {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hidden-fields-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hidden-field-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--accent-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.hidden-field-item:hover {
    background: rgba(139, 90, 107, 0.15);
    border-color: var(--primary-color);
}

.hidden-field-item .field-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
}

/* Pages Navigation in Left Sidebar */
.sidebar-section .pages-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.sidebar-section .page-nav-item {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.sidebar-section .page-nav-item:hover {
    background: rgba(255,255,255,0.15);
}

.sidebar-section .page-nav-item.active {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

.sidebar-section .page-nav-item.is-hidden {
    opacity: 0.5;
}

.sidebar-section .page-nav-item.is-hidden .page-nav-title::after {
    content: ' (hidden)';
    font-size: 9px;
    color: rgba(255,255,255,0.5);
}

.sidebar-section .page-nav-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.3;
}

.sidebar-section .page-nav-type {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

.sidebar-section .add-page-link {
    display: block;
    text-align: center;
    padding: 8px;
    background: transparent;
    border-radius: 6px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px dashed rgba(255,255,255,0.3);
}

.sidebar-section .add-page-link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

/* Page Navigation - Drag and Drop Styles */
.sidebar-section .page-nav-item {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.sidebar-section .page-nav-item .drag-handle {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
    padding: 4px 2px;
    letter-spacing: -2px;
    border-radius: 3px;
    transition: background-color 0.15s, color 0.15s;
}

.sidebar-section .page-nav-item .drag-handle:hover {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.1);
}

.sidebar-section .page-nav-item .drag-handle.is-grabbing {
    cursor: grabbing;
    color: var(--white);
    background: rgba(255,255,255,0.2);
}

.sidebar-section .page-nav-item .lock-icon {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
    padding: 4px 2px;
    cursor: pointer;
}

.sidebar-section .page-nav-item.is-dragging {
    opacity: 0.5;
    background: rgba(255,255,255,0.05);
}

.sidebar-section .page-nav-item.drag-over-top {
    border-top: 2px solid var(--white);
    margin-top: -2px;
}

.sidebar-section .page-nav-item.drag-over-bottom {
    border-bottom: 2px solid var(--white);
    margin-bottom: -2px;
}

.sidebar-section .pages-nav.save-success .page-nav-item {
    border-color: var(--success);
    transition: border-color 0.3s;
}

.sidebar-section .page-nav-item .page-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.hidden-field-item .restore-icon {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .visual-editor-container {
        flex-direction: column;
    }

    .visual-editor-sidebar {
        width: 100%;
        order: 2;
    }

    .visual-editor-preview {
        order: 1;
    }
}

@media (max-width: 768px) {
    .editor-invitation-wrapper {
        padding: 20px 10px;
    }

    .editor-invitation-card {
        padding: 45px 30px;
    }

    .editor-partner-name .editable-input {
        font-size: 20px;
        letter-spacing: 6px;
    }

    .editor-and-text-input {
        font-size: 24px;
    }

    .editor-invitation-text .editable-input {
        font-size: 8px;
        letter-spacing: 3px;
    }

    .editor-date-day {
        font-size: 52px;
    }

    .editor-date-month {
        font-size: 65px;
    }

    .editor-date-year {
        font-size: 40px;
        letter-spacing: 6px;
    }
}

/* ================================================
   Theme Selector UI (Dropdown)
   ================================================ */

.theme-dropdown-wrapper {
    position: relative;
}

.theme-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.theme-dropdown-trigger:hover {
    border-color: var(--primary-color);
}

.theme-dropdown-trigger .selected-theme-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40px;
    flex-shrink: 0;
}

.theme-dropdown-trigger .selected-theme-preview .preview-heading {
    font-size: 16px;
    color: #3a3a3a;
    line-height: 1.2;
}

.theme-dropdown-trigger .selected-theme-preview .preview-script {
    font-size: 14px;
    color: #5a5a5a;
    line-height: 1.2;
}

.theme-dropdown-trigger .selected-theme-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
}

.theme-dropdown-trigger .dropdown-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.theme-dropdown-menu.open + .theme-dropdown-trigger .dropdown-arrow,
.theme-dropdown-wrapper:has(.theme-dropdown-menu.open) .dropdown-arrow {
    transform: rotate(180deg);
}

.theme-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.theme-dropdown-menu.open {
    display: block;
}

.theme-dropdown-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.15s;
    border-bottom: 1px solid var(--border-color);
}

.theme-dropdown-option:last-child {
    border-bottom: none;
}

.theme-dropdown-option:hover {
    background: rgba(139, 90, 107, 0.08);
}

.theme-dropdown-option.active {
    background: rgba(139, 90, 107, 0.12);
}

.theme-dropdown-option.active::after {
    content: '✓';
    margin-left: auto;
    color: var(--primary-color);
    font-weight: bold;
}

.theme-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40px;
    flex-shrink: 0;
}

.theme-preview .preview-heading {
    font-size: 16px;
    color: #3a3a3a;
    line-height: 1.2;
}

.theme-preview .preview-script {
    font-size: 14px;
    color: #5a5a5a;
    line-height: 1.2;
}

/* Theme-specific preview fonts */
.theme-preview-classic .preview-heading { font-family: 'Cormorant Garamond', Georgia, serif; }
.theme-preview-classic .preview-script { font-family: 'Allura', cursive; }

.theme-preview-romantic_script .preview-heading { font-family: 'Playfair Display', serif; }
.theme-preview-romantic_script .preview-script { font-family: 'Great Vibes', cursive; }

.theme-preview-delicate_serif .preview-heading { font-family: 'Crimson Text', Georgia, serif; }
.theme-preview-delicate_serif .preview-script { font-family: 'Petit Formal Script', cursive; }

.theme-preview-smooth_cursive .preview-heading { font-family: 'Lora', serif; }
.theme-preview-smooth_cursive .preview-script { font-family: 'Alex Brush', cursive; }

.theme-preview-friendly_calligraphy .preview-heading { font-family: 'Merriweather', serif; }
.theme-preview-friendly_calligraphy .preview-script { font-family: 'Dancing Script', cursive; }

.theme-preview-vintage_chic .preview-heading { font-family: 'Libre Baskerville', serif; }
.theme-preview-vintage_chic .preview-script { font-family: 'Parisienne', cursive; }

.theme-preview-classy_modern .preview-heading { font-family: 'Montserrat', sans-serif; }
.theme-preview-classy_modern .preview-script { font-family: 'Great Vibes', cursive; }

.theme-preview-light_stylish .preview-heading { font-family: 'Raleway', sans-serif; }
.theme-preview-light_stylish .preview-script { font-family: 'Sacramento', cursive; }

.theme-preview-playful_script .preview-heading { font-family: 'Open Sans', sans-serif; }
.theme-preview-playful_script .preview-script { font-family: 'Satisfy', cursive; }

.theme-preview-energetic_serif .preview-heading { font-family: 'Quattrocento', serif; }
.theme-preview-energetic_serif .preview-script { font-family: 'Kaushan Script', cursive; }

.theme-preview-distinctive_flourish .preview-heading { font-family: 'Poppins', sans-serif; }
.theme-preview-distinctive_flourish .preview-script { font-family: 'Herr Von Muellerhoff', cursive; }

.theme-preview-hand_lettered .preview-heading { font-family: 'Cardo', serif; }
.theme-preview-hand_lettered .preview-script { font-family: 'Rouge Script', cursive; }

.theme-preview-high_contrast .preview-heading { font-family: 'Source Serif Pro', serif; }
.theme-preview-high_contrast .preview-script { font-family: 'Tangerine', cursive; }

.theme-info {
    flex: 1;
}

.theme-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

.theme-desc {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}


/* ================================================
   Page Style Selector UI (Dropdown)
   ================================================ */

.layout-dropdown-wrapper {
    position: relative;
}

.layout-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.layout-dropdown-trigger:hover {
    border-color: var(--primary-color);
}

.layout-dropdown-trigger .selected-layout-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 30px;
    flex-shrink: 0;
}

.layout-dropdown-trigger .selected-layout-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
}

.layout-dropdown-trigger .dropdown-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.layout-dropdown-wrapper:has(.layout-dropdown-menu.open) .dropdown-arrow {
    transform: rotate(180deg);
}

.layout-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
    max-height: 350px;
    overflow-y: auto;
}

.layout-dropdown-menu.open {
    display: block;
}

.layout-dropdown-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.15s;
    border-bottom: 1px solid var(--border-color);
}

.layout-dropdown-option:last-child {
    border-bottom: none;
}

.layout-dropdown-option:hover {
    background: rgba(139, 90, 107, 0.08);
}

.layout-dropdown-option.active {
    background: rgba(139, 90, 107, 0.12);
}

.layout-dropdown-option.active::after {
    content: '✓';
    margin-left: auto;
    color: var(--primary-color);
    font-weight: bold;
}

.layout-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 30px;
    flex-shrink: 0;
}

.layout-preview-card {
    width: 24px;
    height: 22px;
    background: #faf9f8;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    position: relative;
}

/* Layout preview styles for dropdown */
.layout-preview-classic .layout-preview-card {
    border: 1px solid #9a9a9a;
}

.layout-preview-ornate_frame .layout-preview-card {
    border: 2px double #8b6914;
    box-shadow: inset 0 0 0 2px #faf9f8, inset 0 0 0 3px #d4af37;
}

.layout-preview-gilded_edge .layout-preview-card {
    border: 1px solid #e0e0e0;
    border-left: 3px solid #d4af37;
    background: #fff;
}

.layout-preview-soft_edges .layout-preview-card {
    border-radius: 8px;
    border: 1px solid #e0d5d0;
}

.layout-preview-botanical_border .layout-preview-card {
    border: 2px solid #5a7a5a;
}

.layout-preview-art_deco .layout-preview-card {
    border: 2px solid #2a2a2a;
    background: linear-gradient(135deg, #faf9f8 25%, #f0ede8 25%, #f0ede8 50%, #faf9f8 50%, #faf9f8 75%, #f0ede8 75%);
    background-size: 8px 8px;
}

.layout-preview-elegant_arch .layout-preview-card {
    border: 1px solid #c8b8a0;
    border-radius: 12px 12px 2px 2px;
    background: linear-gradient(180deg, #f8f4ef 0%, #fdfcfa 30%);
}

.layout-preview-modern_luxe .layout-preview-card {
    border: 1px solid #d4af37;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.layout-preview-romantic_flourish .layout-preview-card {
    border: 1px solid #c8a0a8;
    border-radius: 4px;
}

.layout-preview-bold_statement .layout-preview-card {
    border: 3px solid #1a1a1a;
    background: #fff;
}

.layout-info {
    flex: 1;
}

.layout-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

.layout-desc {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ================================================
   Invitation Card Style Variations
   ================================================ */

/* Layout: Classic (default) - timeless elegance with clean lines */
.invitation-card.layout-classic,
.editor-invitation-card.layout-classic {
    background: var(--color-background, #faf9f8);
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.03));
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
}

/* Layout: Ornate Frame - decorative double border with accent colors */
.invitation-card.layout-ornate_frame,
.editor-invitation-card.layout-ornate_frame {
    background: var(--color-background, #fffef9);
    border: 3px double var(--color-accent, #d4af37);
    box-shadow:
        inset 0 0 0 8px var(--color-background, #fffef9),
        inset 0 0 0 9px var(--color-accent, #d4af37),
        inset 0 0 0 12px var(--color-background, #fffef9),
        inset 0 0 0 13px var(--color-border, rgba(212, 175, 55, 0.3)),
        0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 55px 50px;
}

.invitation-card.layout-ornate_frame .divider,
.editor-invitation-card.layout-ornate_frame .editor-divider {
    background: var(--color-accent, #d4af37);
    width: 50px;
    height: 1px;
}

/* Layout: Gilded Edge - modern with accent bar */
.invitation-card.layout-gilded_edge,
.editor-invitation-card.layout-gilded_edge {
    background: var(--color-background, #ffffff);
    border: 1px solid var(--color-border, #e8e8e8);
    border-left: 5px solid var(--color-accent, #d4af37);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    padding: 50px 50px 50px 55px;
    position: relative;
}

.invitation-card.layout-gilded_edge::before,
.editor-invitation-card.layout-gilded_edge::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--color-accent, rgba(212, 175, 55, 0.4)), transparent);
}

.invitation-card.layout-gilded_edge .divider,
.editor-invitation-card.layout-gilded_edge .editor-divider {
    background: var(--color-accent, #d4af37);
    width: 50px;
    height: 1px;
}

/* Layout: Soft Edges - gentle rounded corners */
.invitation-card.layout-soft_edges,
.editor-invitation-card.layout-soft_edges {
    background: var(--color-background, #fdfcfb);
    border: 1px solid var(--color-border, #e8e0d8);
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    padding: 50px 45px;
}

.invitation-card.layout-soft_edges .divider,
.editor-invitation-card.layout-soft_edges .editor-divider {
    background: linear-gradient(90deg, transparent, var(--color-divider, #c8b8a8), transparent);
    width: 80px;
    height: 1px;
}

/* Layout: Botanical Border - nature-inspired frame */
.invitation-card.layout-botanical_border,
.editor-invitation-card.layout-botanical_border {
    background: var(--color-background, #fdfdf8);
    border: 2px solid var(--color-accent, #5a7a5a);
    box-shadow:
        inset 0 0 0 6px var(--color-background, #fdfdf8),
        inset 0 0 0 8px var(--color-border, rgba(90, 122, 90, 0.2)),
        0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 50px 45px;
    position: relative;
}

.invitation-card.layout-botanical_border::before,
.editor-invitation-card.layout-botanical_border::before,
.invitation-card.layout-botanical_border::after,
.editor-invitation-card.layout-botanical_border::after {
    content: '❧';
    position: absolute;
    font-size: 20px;
    color: var(--color-accent, #5a7a5a);
    opacity: 0.6;
}

.invitation-card.layout-botanical_border::before,
.editor-invitation-card.layout-botanical_border::before {
    top: 15px;
    left: 15px;
}

.invitation-card.layout-botanical_border::after,
.editor-invitation-card.layout-botanical_border::after {
    bottom: 15px;
    right: 15px;
    transform: rotate(180deg);
}

.invitation-card.layout-botanical_border .divider,
.editor-invitation-card.layout-botanical_border .editor-divider {
    background: var(--color-accent, #5a7a5a);
    width: 40px;
}

/* Layout: Art Deco - bold geometric styling */
.invitation-card.layout-art_deco,
.editor-invitation-card.layout-art_deco {
    background: var(--color-background, #faf9f6);
    border: 3px solid var(--color-text-primary, #2a2a2a);
    box-shadow:
        inset 0 0 0 3px var(--color-background, #faf9f6),
        inset 0 0 0 4px var(--color-accent, #d4af37),
        0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 50px 45px;
    position: relative;
}

.invitation-card.layout-art_deco::before,
.editor-invitation-card.layout-art_deco::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid var(--color-accent, rgba(212, 175, 55, 0.4));
    pointer-events: none;
}

.invitation-card.layout-art_deco .divider,
.editor-invitation-card.layout-art_deco .editor-divider {
    background: var(--color-accent, #d4af37);
    width: 60px;
    height: 2px;
}

/* Layout: Elegant Arch - arched frame with flourishes */
.invitation-card.layout-elegant_arch,
.editor-invitation-card.layout-elegant_arch {
    background: var(--color-background, #fdfcfa);
    border: 1px solid var(--color-border, #d0c4b0);
    border-radius: 80px 80px 4px 4px;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.08);
    padding: 60px 50px 50px 50px;
    position: relative;
}

.invitation-card.layout-elegant_arch::before,
.editor-invitation-card.layout-elegant_arch::before {
    content: '✦';
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: var(--color-accent, #b8a080);
    letter-spacing: 20px;
    padding-left: 20px;
}

.invitation-card.layout-elegant_arch .divider,
.editor-invitation-card.layout-elegant_arch .editor-divider {
    background: linear-gradient(90deg, transparent, var(--color-divider, #c8b8a0), transparent);
    width: 100px;
    height: 1px;
}

/* Layout: Modern Luxe - sleek with accent colors */
.invitation-card.layout-modern_luxe,
.editor-invitation-card.layout-modern_luxe {
    background: var(--color-background, #ffffff);
    border: 1px solid var(--color-accent, #d4af37);
    box-shadow:
        0 0 0 4px var(--color-background, #ffffff),
        0 0 0 5px var(--color-border, rgba(212, 175, 55, 0.3)),
        0 15px 50px rgba(0, 0, 0, 0.1);
    padding: 50px 45px;
}

.invitation-card.layout-modern_luxe .divider,
.editor-invitation-card.layout-modern_luxe .editor-divider {
    background: var(--color-accent, #d4af37);
    width: 70px;
    height: 1px;
}

/* Layout: Romantic Flourish - soft with decorative swirls */
.invitation-card.layout-romantic_flourish,
.editor-invitation-card.layout-romantic_flourish {
    background: var(--color-background, #fdf9f7);
    border: 1px solid var(--color-border, #e0c8c8);
    border-radius: 8px;
    box-shadow:
        0 0 0 4px var(--color-border, rgba(224, 200, 200, 0.15)) inset,
        0 12px 45px rgba(0, 0, 0, 0.08);
    padding: 50px 45px;
    position: relative;
}

.invitation-card.layout-romantic_flourish::before,
.editor-invitation-card.layout-romantic_flourish::before {
    content: '~';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: var(--color-accent, #c8a0a8);
    font-family: serif;
    letter-spacing: 8px;
}

.invitation-card.layout-romantic_flourish::after,
.editor-invitation-card.layout-romantic_flourish::after {
    content: '~';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    font-size: 24px;
    color: var(--color-accent, #c8a0a8);
    font-family: serif;
    letter-spacing: 8px;
}

.invitation-card.layout-romantic_flourish .divider,
.editor-invitation-card.layout-romantic_flourish .editor-divider {
    background: var(--color-accent, #c8a0a8);
    width: 40px;
    height: 1px;
}

/* Layout: Bold Statement - strong borders, high contrast */
.invitation-card.layout-bold_statement,
.editor-invitation-card.layout-bold_statement {
    background: var(--color-background, #ffffff);
    border: 4px solid var(--color-text-primary, #1a1a1a);
    box-shadow:
        8px 8px 0 0 rgba(0, 0, 0, 0.08),
        0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 50px 45px;
}

.invitation-card.layout-bold_statement .divider,
.editor-invitation-card.layout-bold_statement .editor-divider {
    background: var(--color-text-primary, #1a1a1a);
    width: 80px;
    height: 3px;
}


/* ================================================
   Color Theme Selector UI (Dropdown)
   ================================================ */

.color-theme-dropdown-wrapper {
    position: relative;
}

.color-theme-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.color-theme-dropdown-trigger:hover {
    border-color: var(--primary-color);
}

.color-theme-dropdown-trigger .selected-color-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 40px;
    height: 24px;
    flex-shrink: 0;
}

.color-theme-dropdown-trigger .color-swatch {
    width: 10px;
    height: 18px;
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,0.1);
}

.color-theme-dropdown-trigger .selected-color-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
}

.color-theme-dropdown-trigger .dropdown-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.color-theme-dropdown-wrapper:has(.color-theme-dropdown-menu.open) .dropdown-arrow {
    transform: rotate(180deg);
}

.color-theme-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
    max-height: 350px;
    overflow-y: auto;
}

.color-theme-dropdown-menu.open {
    display: block;
}

.color-theme-dropdown-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.15s;
    border-bottom: 1px solid var(--border-color);
}

.color-theme-dropdown-option:last-child {
    border-bottom: none;
}

.color-theme-dropdown-option:hover {
    background: rgba(139, 90, 107, 0.08);
}

.color-theme-dropdown-option.active {
    background: rgba(139, 90, 107, 0.12);
}

.color-theme-dropdown-option.active::after {
    content: '✓';
    margin-left: auto;
    color: var(--primary-color);
    font-weight: bold;
}

.color-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 40px;
    height: 24px;
    flex-shrink: 0;
}

.color-preview .color-swatch {
    width: 10px;
    height: 18px;
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,0.1);
}

.color-swatch-row {
    display: flex;
    gap: 2px;
}

/* Color preview swatches for each theme */
.color-preview-classic .color-swatch.primary { background-color: #3a3a3a; }
.color-preview-classic .color-swatch.accent { background-color: #4a4a4a; }

.color-preview-midnight_gold .color-swatch.primary { background-color: #1a2744; }
.color-preview-midnight_gold .color-swatch.accent { background-color: #b8960c; }

.color-preview-sage_garden .color-swatch.primary { background-color: #4a5548; }
.color-preview-sage_garden .color-swatch.accent { background-color: #7d8b74; }

.color-preview-dusty_rose .color-swatch.primary { background-color: #5c4a4a; }
.color-preview-dusty_rose .color-swatch.accent { background-color: #b8908a; }

.color-preview-slate_copper .color-swatch.primary { background-color: #3d4248; }
.color-preview-slate_copper .color-swatch.accent { background-color: #b87333; }

.color-preview-burgundy_blush .color-swatch.primary { background-color: #5c2a3a; }
.color-preview-burgundy_blush .color-swatch.accent { background-color: #8b3a4c; }

.color-preview-navy_blush .color-swatch.primary { background-color: #2c3e50; }
.color-preview-navy_blush .color-swatch.accent { background-color: #d4a5a5; }

.color-preview-eucalyptus .color-swatch.primary { background-color: #3f4f4a; }
.color-preview-eucalyptus .color-swatch.accent { background-color: #6b8b7b; }

.color-preview-terracotta .color-swatch.primary { background-color: #5c4033; }
.color-preview-terracotta .color-swatch.accent { background-color: #c67b5c; }

.color-preview-lavender_mist .color-swatch.primary { background-color: #4a4454; }
.color-preview-lavender_mist .color-swatch.accent { background-color: #9688a4; }

.color-theme-info {
    flex: 1;
}

.color-theme-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

.color-theme-desc {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.color-info {
    flex: 1;
}

.color-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

.color-desc {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ================================================
   Color Theme CSS Variables & Application
   ================================================ */

/* Define CSS variables for color themes - applied via inline styles from JS/backend */
.invitation-card,
.editor-invitation-card {
    --color-background: #faf9f8;
    --color-text-primary: #3a3a3a;
    --color-text-secondary: #5a5a5a;
    --color-accent: #4a4a4a;
    --color-divider: #9a9a9a;
    --color-border: rgba(0, 0, 0, 0.03);
}

/* Apply color theme variables to card elements */
.invitation-card,
.editor-invitation-card {
    background-color: var(--color-background);
    border-color: var(--color-border);
}

.invitation-card .partner-name,
.editor-invitation-card .editor-partner-name {
    color: var(--color-text-primary);
}

.invitation-card .and-text,
.editor-invitation-card .editor-and-text {
    color: var(--color-accent);
}

.invitation-card .invitation-text,
.editor-invitation-card .editor-invitation-text {
    color: var(--color-text-secondary);
}

.invitation-card .wedding-date,
.editor-invitation-card .editor-wedding-date {
    color: var(--color-text-primary);
}

.invitation-card .divider,
.editor-invitation-card .editor-divider {
    background-color: var(--color-divider);
}

.invitation-card .venue-name,
.editor-invitation-card .editor-venue-name {
    color: var(--color-text-primary);
}

.invitation-card .venue-address,
.editor-invitation-card .editor-venue-address {
    color: var(--color-text-secondary);
}

.invitation-card .venue-time,
.editor-invitation-card .editor-venue-time {
    color: var(--color-text-secondary);
}

.invitation-card .welcome-message,
.editor-invitation-card .editor-welcome-message {
    color: var(--color-text-secondary);
}

.invitation-card .section-title,
.editor-invitation-card .editor-section-title {
    color: var(--color-text-primary);
}

/* ================================================
   Drag and Drop Reordering
   ================================================ */

.sortable-field {
    position: relative;
    transition: transform 0.2s ease;
    cursor: grab;
}

.sortable-field:active {
    cursor: grabbing;
}

/* Allow text cursor on inputs/textareas within sortable fields */
.sortable-field .editable-input,
.sortable-field textarea.editable-input,
.sortable-field input.editable-input {
    cursor: text;
    pointer-events: auto;
    user-select: text;
    -webkit-user-select: text;
    position: relative;
    z-index: 5;
}

/* Field Controls Container - Inside editable-field as overlay on right side */
.field-controls {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(calc(100% + 8px));
    display: flex;
    flex-direction: column;
    gap: 3px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.editable-field:hover .field-controls,
.editable-field:focus-within .field-controls {
    opacity: 1;
}

.field-controls .font-size-decrease,
.field-controls .font-size-increase {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(90, 139, 107, 0.9);
    color: white;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.field-controls .font-size-decrease:hover,
.field-controls .font-size-increase:hover {
    background: var(--success);
    transform: scale(1.1);
}

/* Element font override button */
.field-controls .element-font-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(130, 100, 160, 0.9);
    color: white;
    border: none;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    position: relative;
}

.field-controls .element-font-btn:hover {
    background: rgba(130, 100, 160, 1);
    transform: scale(1.1);
}

/* Element font dropdown */
.element-font-dropdown {
    display: none;
    position: absolute;
    top: 0;
    right: 100%;
    margin-right: 6px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    width: 200px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 100;
}

.element-font-dropdown.open {
    display: block;
}

/* Elevate entire field wrapper when font dropdown is open so it appears above sibling fields */
.toggleable-field.font-dropdown-active,
.sortable-field.font-dropdown-active {
    z-index: 200;
    position: relative;
}

.element-font-option {
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    transition: background 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.element-font-option:hover {
    background: #f0f0f0;
}

.element-font-option.active {
    background: rgba(130, 100, 160, 0.12);
    font-weight: 600;
}

.element-font-option.element-font-default {
    border-bottom: 1px solid #eee;
    font-style: italic;
    color: #666;
    font-family: inherit;
}

.custom-fonts-badge {
    font-size: 10px;
    font-weight: 500;
    color: rgba(130, 100, 160, 1);
    background: rgba(130, 100, 160, 0.12);
    padding: 2px 7px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 6px;
}

.custom-fonts-alert {
    background: rgba(130, 100, 160, 0.1);
    border: 1px solid rgba(130, 100, 160, 0.3);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.5;
    color: #4a3a5c;
}

.custom-fonts-alert strong {
    font-weight: 600;
}

.custom-fonts-clear-btn {
    display: block;
    margin-top: 6px;
    background: none;
    border: none;
    color: rgba(130, 100, 160, 1);
    font-size: 12px;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}

.custom-fonts-clear-btn:hover {
    color: #4a3a5c;
}

/* Dragging State */
.sortable-field.is-dragging {
    opacity: 0.4;
    transform: scale(1.02);
    z-index: 100;
    outline: 3px dashed var(--primary-color);
    outline-offset: 4px;
    background: rgba(139, 90, 107, 0.1);
}

.sortable-field.drag-over-top {
    position: relative;
}

.sortable-field.drag-over-top::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -20px;
    right: -20px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(139, 90, 107, 0.5);
    z-index: 50;
}

.sortable-field.drag-over-bottom {
    position: relative;
}

.sortable-field.drag-over-bottom::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -20px;
    right: -20px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(139, 90, 107, 0.5);
    z-index: 50;
}

/* ================================================
   Theme Font CSS Variables and Application
   ================================================ */

.editor-invitation-card {
    --theme-heading: 'Cormorant Garamond', Georgia, serif;
    --theme-body: 'Montserrat', sans-serif;
    --theme-accent: 'Allura', cursive;
    --theme-script: 'Great Vibes', cursive;
}

/* Apply theme fonts to editor elements */
.editor-invitation-card .editor-partner-name .editable-input {
    font-family: var(--theme-heading);
}

.editor-invitation-card .editor-and-text-input {
    font-family: var(--theme-accent);
}

.editor-invitation-card .editor-invitation-text .editable-input {
    font-family: var(--theme-body);
}

.editor-invitation-card .editor-date-day,
.editor-invitation-card .editor-date-year {
    font-family: var(--theme-heading);
}

.editor-invitation-card .editor-date-month {
    font-family: var(--theme-accent);
}

.editor-invitation-card .editor-venue-label,
.editor-invitation-card .editor-venue-label .venue-label-input {
    font-family: var(--theme-accent);
}

.editor-invitation-card .editor-venue-name .editable-input {
    font-family: var(--theme-heading);
}

.editor-invitation-card .editor-venue-address .editable-input,
.editor-invitation-card .editor-time-visual {
    font-family: var(--theme-body);
}

.editor-invitation-card .editor-welcome-message .editable-input {
    font-family: var(--theme-script);
}

.editor-invitation-card .editor-content .editable-input {
    font-family: var(--theme-body);
    letter-spacing: 4px;
}

.editor-invitation-card .editor-page-title-input {
    font-family: var(--theme-heading);
}

/* ================================================
   Font Size Scaling
   ================================================ */

.toggleable-field[data-font-size],
.sortable-field[data-font-size] {
    --font-scale: 1;
}

.toggleable-field[data-font-size="small"],
.sortable-field[data-font-size="small"] {
    --font-scale: 0.85;
}

.toggleable-field[data-font-size="medium"],
.sortable-field[data-font-size="medium"] {
    --font-scale: 1;
}

.toggleable-field[data-font-size="large"],
.sortable-field[data-font-size="large"] {
    --font-scale: 1.25;
}

.toggleable-field[data-font-size="extra-large"],
.sortable-field[data-font-size="extra-large"] {
    --font-scale: 1.5;
}

/* Apply font scale to editable field wrapper (not the input directly to avoid focus/caret issues) */
.toggleable-field[data-font-size] .editable-field,
.sortable-field[data-font-size] .editable-field {
    transform: scale(var(--font-scale));
    transform-origin: center center;
}

/* Apply font scale to date and time visuals */
.toggleable-field[data-font-size] .editor-date-visual,
.sortable-field[data-font-size] .editor-date-visual,
.toggleable-field[data-font-size] .editor-time-visual,
.sortable-field[data-font-size] .editor-time-visual {
    transform: scale(var(--font-scale));
    transform-origin: center center;
}

/* ================================================
   RSVP Button Styles
   ================================================ */

.rsvp-button-container {
    margin-top: 35px;
    text-align: center;
}

.rsvp-link-button {
    display: inline-block;
    font-family: var(--theme-body, 'Montserrat', sans-serif);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #3a3a3a;
    background: transparent;
    border: 1px solid #3a3a3a;
    padding: 14px 40px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.rsvp-link-button:hover {
    background: #3a3a3a;
    color: #faf9f8;
}

/* RSVP Form Styles */
.rsvp-form-container {
    margin-top: 25px;
    text-align: left;
}

.rsvp-form {
    max-width: 320px;
    margin: 0 auto;
}

/* Expand form width in expanded/guest-book mode on desktop */
@media (min-width: 768px) {
    .expanded-mode .rsvp-form,
    .guest-book-mode .rsvp-form {
        max-width: 420px;
    }
}

@media (min-width: 1024px) {
    .expanded-mode .rsvp-form,
    .guest-book-mode .rsvp-form {
        max-width: 500px;
    }
}

@media (min-width: 1400px) {
    .expanded-mode .rsvp-form,
    .guest-book-mode .rsvp-form {
        max-width: 560px;
    }
}

/* Guest book form responsive width - override inline styles */
@media (min-width: 768px) {
    .guest-book-mode .guest-book-form {
        max-width: 500px !important;
    }
}

@media (min-width: 1024px) {
    .guest-book-mode .guest-book-form {
        max-width: 580px !important;
    }
}

@media (min-width: 1400px) {
    .guest-book-mode .guest-book-form {
        max-width: 650px !important;
    }
}

/* Collapsible RSVP sections with smooth transitions */
.rsvp-field.rsvp-collapsible {
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin-bottom 0.3s ease-out;
    max-height: 300px;
    opacity: 1;
}

.rsvp-field.rsvp-collapsible.rsvp-hidden {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

.rsvp-field {
    margin-bottom: 20px;
}

.rsvp-field label {
    display: block;
    font-family: var(--theme-body, 'Montserrat', sans-serif);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #5a5a5a;
    margin-bottom: 8px;
}

.rsvp-field .rsvp-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d0d0d0;
    font-family: var(--theme-body, 'Montserrat', sans-serif);
    font-size: 14px;
    color: #3a3a3a;
    background: #fff;
    transition: border-color 0.2s;
}

.rsvp-field .rsvp-input:focus {
    outline: none;
    border-color: #3a3a3a;
}

.rsvp-field .rsvp-input::placeholder {
    color: #aaa;
}

/* Radio button styling for RSVP form - styled as buttons */
.rsvp-field .rsvp-attendance,
.rsvp-field .rsvp-plusone {
    display: flex;
    flex-direction: row;
    gap: 0;
    width: 100%;
}

.rsvp-field .rsvp-attendance > div,
.rsvp-field .rsvp-plusone > div {
    flex: 1;
    display: flex;
    align-items: stretch;
}

/* Hide the actual radio input */
.rsvp-field input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Style the label as a button */
.rsvp-field input[type="radio"] + label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    font-family: var(--theme-body, 'Montserrat', sans-serif);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #3a3a3a;
    background: #fff;
    border: 1px solid #d0d0d0;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

/* Remove double borders between buttons */
.rsvp-field .rsvp-attendance > div:first-child label,
.rsvp-field .rsvp-plusone > div:first-child label {
    border-right: none;
}

/* Hover state */
.rsvp-field input[type="radio"] + label:hover {
    background: #f5f5f5;
    border-color: #3a3a3a;
}

/* Selected state - when radio is checked */
.rsvp-field input[type="radio"]:checked + label {
    background: #3a3a3a;
    color: #fff;
    border-color: #3a3a3a;
}

/* Focus state for accessibility */
.rsvp-field input[type="radio"]:focus + label {
    outline: 2px solid rgba(58, 58, 58, 0.3);
    outline-offset: 2px;
}

.rsvp-submit {
    margin-top: 25px;
    text-align: center;
}

.rsvp-button {
    width: 100%;
    font-family: var(--theme-body, 'Montserrat', sans-serif);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #faf9f8;
    background: #3a3a3a;
    border: 1px solid #3a3a3a;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rsvp-button:hover {
    background: transparent;
    color: #3a3a3a;
}

.rsvp-thank-you {
    margin-top: 20px;
    padding: 20px;
    background: rgba(90, 139, 107, 0.1);
    border-radius: 4px;
}

.rsvp-thank-you .invitation-text {
    margin-bottom: 10px;
}

.rsvp-thank-you .script-text {
    margin: 0;
}

/* RSVP Form Preview (Editor) */
.rsvp-form-preview {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed #ccc;
    border-radius: 4px;
}

.rsvp-field-preview {
    margin-bottom: 20px;
    text-align: left;
}

.rsvp-field-preview label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #5a5a5a;
    margin-bottom: 8px;
}

.rsvp-field-preview .preview-input {
    width: 100%;
    height: 44px;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #d0d0d0;
    box-sizing: border-box;
}

.rsvp-field-preview .preview-radio {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rsvp-field-preview .preview-radio span {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #666;
}

/* Preview buttons - matching frontend button style exactly */
.rsvp-field-preview .preview-buttons {
    display: flex;
    flex-direction: row;
    gap: 0;
    width: 100%;
}

.rsvp-field-preview .preview-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #3a3a3a;
    background: #fff;
    border: 1px solid #d0d0d0;
}

.rsvp-field-preview .preview-btn:first-child {
    border-right: none;
}

.rsvp-field-preview .preview-btn.selected {
    background: #3a3a3a;
    color: #fff;
    border-color: #3a3a3a;
}

/* Editable question input in preview */
.rsvp-field-preview .rsvp-question-input {
    display: block;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #5a5a5a;
    background: transparent;
    border: none;
    border-bottom: 1px dashed transparent;
    padding: 0 0 4px 0;
    margin-bottom: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.rsvp-field-preview .rsvp-question-input:hover,
.rsvp-field-preview .rsvp-question-input:focus {
    border-bottom-color: var(--primary-color);
}

.rsvp-field-preview .rsvp-question-input::placeholder {
    color: #aaa;
}

.rsvp-form-preview .preview-button {
    width: 100%;
    margin-top: 25px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #faf9f8;
    background: #3a3a3a;
    border: 1px solid #3a3a3a;
    padding: 14px 20px;
    display: block;
    box-sizing: border-box;
}

/* ================================================
   Landing Page Styles
   ================================================ */

/* Button Variants */
.btn-lg {
    padding: 18px 42px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 8px;
}

.btn-ghost {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-ghost:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ================================================
   REDESIGNED LANDING PAGE STYLES
   ================================================ */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #faf8f7 0%, #f5e6e0 50%, #f0ece7 100%);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(250, 248, 247, 0.85) 0%,
        rgba(250, 248, 247, 0.7) 50%,
        rgba(250, 248, 247, 0.85) 100%
    );
}


.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 680px;
    text-align: center;
    margin: 0 auto;
    padding: 60px 20px;
}

.hero-eyebrow {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-section h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 64px;
    font-weight: 400;
    line-height: 1.1;
    color: #2a2a2a;
    margin-bottom: 28px;
    letter-spacing: -0.5px;
}

.hero-section h1 em {
    font-family: 'Great Vibes', cursive;
    font-style: normal;
    color: var(--primary-color);
}

.hero-lead {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #5a5a5a;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-note {
    font-size: 13px;
    color: #888;
    letter-spacing: 0.5px;
}

/* Social Proof Bar */
.social-proof {
    background: var(--white);
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
}

.proof-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.proof-item {
    text-align: center;
}

.proof-number {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 42px;
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.proof-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.proof-divider {
    width: 1px;
    height: 50px;
    background: var(--border-color);
}

/* Section Intro (shared) */
.section-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.section-intro h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 44px;
    font-weight: 400;
    color: #2a2a2a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-intro p {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #5a5a5a;
}

/* Template Customizer Bar */
.template-customizer-bar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 248, 247, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(139, 90, 107, 0.1);
    border-bottom: 1px solid rgba(139, 90, 107, 0.1);
    padding: 20px 0;
    margin: 40px 0 50px;
}

.customizer-bar-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 20px;
}

.customizer-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    gap: 8px;
}

.customizer-group > label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888;
}

.customizer-names {
    display: flex;
    align-items: center;
    gap: 8px;
}

.customizer-names input,
.customizer-group > input {
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #2a2a2a;
    background: #fff;
    transition: all 0.2s ease;
    width: 130px;
    text-align: center;
}

.customizer-names input:focus,
.customizer-group > input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 90, 107, 0.1);
}

.customizer-names input::placeholder {
    color: #aaa;
}

.customizer-group > input[type="date"] {
    width: 180px;
}

.customizer-amp {
    font-family: 'Great Vibes', cursive;
    font-size: 24px;
    color: var(--primary-color);
}

.font-carousel {
    display: flex;
    align-items: center;
    justify-self: center;
    gap: 10px;
}

.font-nav {
    width: 32px;
    height: 32px;
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.font-nav:hover {
    border-color: var(--primary-color);
    background: rgba(139, 90, 107, 0.05);
}

.font-nav span {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px;
    color: #666;
    line-height: 1;
    margin-top: -2px;
}

.font-nav:hover span {
    color: var(--primary-color);
}

.font-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    width: 260px;
    min-height: 85px;
    box-sizing: border-box;
}

.font-preview-names {
    font-size: 20px;
    color: #3a3a3a;
    white-space: nowrap;
    line-height: 1.3;
}

.font-preview-text {
    font-size: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #888;
    white-space: nowrap;
}

.font-preview-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary-color);
}

@media (max-width: 900px) {
    .customizer-bar-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .template-customizer-bar {
        padding: 16px 0;
    }

    .customizer-bar-inner {
        gap: 16px;
    }

    .customizer-names input {
        width: 110px;
    }

    .customizer-group > input[type="date"] {
        width: 160px;
    }

    .font-preview {
        width: 240px;
        min-height: 80px;
    }

    .font-preview-names {
        font-size: 18px;
    }
}

/* Template Showcase Section */
.templates-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.template-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Template Cards - Full Invitation Previews */
.template-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.template-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
}

.card-preview-wrapper {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px 12px 0 0;
}

.template-card:hover .card-hover-overlay {
    opacity: 1;
}

.hover-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hover-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.hover-text {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.card-invitation {
    background: var(--preview-bg);
    color: var(--preview-text);
    padding: 28px 22px;
    text-align: center;
    width: 100%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-name {
    font-size: 28px;
    margin: 0;
    line-height: 1.2;
    color: var(--preview-text);
}

.card-and {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 14px;
    font-style: italic;
    color: var(--preview-accent);
    margin: 6px 0;
}

.card-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--preview-text);
    opacity: 0.7;
    margin: 14px 0;
}

.card-divider {
    width: 40px;
    height: 1px;
    background: var(--preview-accent);
    margin: 14px auto;
}

.card-date {
    margin-top: 12px;
}

.card-date-day {
    display: block;
    font-family: 'Great Vibes', cursive;
    font-size: 36px;
    font-weight: 400;
    color: var(--preview-text);
    line-height: 1;
}

.card-date-month {
    display: block;
    font-family: 'Great Vibes', cursive;
    font-size: 18px;
    color: var(--preview-text);
    margin: 4px 0;
}

.card-date-year {
    display: block;
    font-family: 'Great Vibes', cursive;
    font-size: 18px;
    color: var(--preview-text);
    opacity: 0.7;
}

/* Card Layout Styles */
.preview-layout-classic {
    border: 1px solid var(--preview-border);
}

.preview-layout-ornate_frame {
    border: 3px double var(--preview-accent);
    box-shadow: inset 0 0 0 6px var(--preview-bg), inset 0 0 0 7px var(--preview-accent), 0 8px 30px rgba(0, 0, 0, 0.12);
}

.preview-layout-art_deco {
    border: 2px solid var(--preview-text);
    box-shadow: inset 0 0 0 2px var(--preview-bg), inset 0 0 0 3px var(--preview-accent), 0 8px 30px rgba(0, 0, 0, 0.12);
    position: relative;
}

.preview-layout-art_deco::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid var(--preview-accent);
    pointer-events: none;
}

.preview-layout-elegant_arch {
    border: 1px solid var(--preview-border);
    border-radius: 60px 60px 4px 4px;
    padding-top: 36px !important;
    position: relative;
}

.preview-layout-elegant_arch::before {
    content: '✦';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--preview-accent);
    letter-spacing: 14px;
    padding-left: 14px;
}

.preview-layout-soft_edges {
    border-radius: 20px;
    border: 1px solid var(--preview-border);
}

.preview-layout-romantic_flourish {
    border: 1px solid var(--preview-border);
    position: relative;
}

.preview-layout-romantic_flourish::after {
    content: '~❦~';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--preview-accent);
    background: inherit;
    padding: 0 8px;
}

/* Template Info */
.template-info {
    padding: 18px 20px;
    text-align: center;
    background: var(--white);
}

.template-info h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    color: #2a2a2a;
    margin: 0 0 4px 0;
}

.template-info p {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.template-cta {
    text-align: center;
}

.template-cta p {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Template Preview Modal - Enhanced */
.template-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

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

.template-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 380px;
    overflow: hidden;
    position: relative;
    max-height: 95vh;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.modal-preview-side {
    display: flex;
    flex-direction: column;
}

.modal-preview-container {
    flex: 1;
    padding: 30px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Card slider wrapper for animations */
.modal-card-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Modal Page Navigation Arrows - same style as real invites */
.modal-page-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 60px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--nav-arrow-color, #5a5a5a);
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.2s ease, color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.modal-page-nav:hover {
    opacity: 1;
}

.modal-page-nav:active {
    transform: translateY(-50%) scale(0.9);
}

.modal-page-nav-prev {
    left: 8px;
}

.modal-page-nav-next {
    right: 8px;
}

.modal-nav-arrow {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
}


.modal-invitation-card {
    width: 100%;
    max-width: 300px;
    background: var(--preview-bg, #faf9f8);
    padding: 28px 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, opacity 0.25s ease;
    flex-shrink: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.modal-card-inner {
    color: var(--preview-text);
}

.modal-partner-name {
    font-size: 26px;
    margin: 0;
    line-height: 1.2;
    color: var(--preview-text);
}

.modal-and-text {
    font-size: 15px;
    font-style: italic;
    color: var(--preview-accent);
    margin: 8px 0;
}

.modal-invitation-text {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--preview-text);
    opacity: 0.7;
    margin: 16px 0;
    line-height: 1.8;
}

.modal-divider {
    width: 50px;
    height: 1px;
    background: var(--preview-accent);
    margin: 16px auto;
}

.modal-date-display {
    margin: 16px 0;
}

.modal-date-day {
    display: block;
    font-size: 42px;
    font-weight: 400;
    color: var(--preview-text);
    line-height: 1;
}

.modal-date-month {
    display: block;
    font-size: 22px;
    color: var(--preview-text);
    margin: 4px 0;
}

.modal-date-year {
    display: block;
    font-size: 22px;
    color: var(--preview-text);
    opacity: 0.7;
}

.modal-venue {
    margin-top: 20px;
}

.modal-venue-time {
    font-size: 11px;
    font-style: italic;
    color: var(--preview-text);
    opacity: 0.8;
    margin: 0 0 6px 0;
}

.modal-venue-name {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--preview-text);
    margin: 0 0 4px 0;
}

.modal-venue-address {
    font-size: 10px;
    color: var(--preview-text);
    opacity: 0.7;
    margin: 0;
}

.modal-welcome {
    font-size: 16px;
    color: var(--preview-accent);
    margin-top: 20px;
}

/* Modal Page-Specific Content */
.modal-page-heading {
    font-size: 24px;
    color: var(--preview-text);
    margin: 12px 0 8px;
}

.modal-script-text {
    font-size: 14px;
    color: var(--preview-accent);
    margin: 8px 0 16px;
}

.modal-venue-label {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--preview-accent);
    margin: 0 0 4px 0;
    padding-top: 12px;
}

.modal-rsvp-button {
    margin-top: 20px;
}

.rsvp-btn-preview {
    display: inline-block;
    padding: 10px 28px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--preview-text);
    color: var(--preview-bg);
    border: none;
}

/* RSVP Form Preview */
.modal-rsvp-form,
.modal-guestbook-form {
    margin-top: 16px;
    text-align: left;
}

.modal-form-field {
    margin-bottom: 12px;
}

.modal-form-field label {
    display: block;
    font-size: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--preview-text);
    opacity: 0.7;
    margin-bottom: 6px;
}

.modal-input-preview {
    height: 32px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.modal-textarea-preview {
    height: 60px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.modal-radio-group {
    display: flex;
    width: 100%;
    gap: 0;
}

.modal-radio-option {
    flex: 1;
    padding: 10px 16px;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--preview-text);
    opacity: 0.6;
}

.modal-radio-option:first-child {
    border-right: none;
}

.modal-radio-option.active {
    background: var(--preview-text);
    color: var(--preview-bg);
    border-color: var(--preview-text);
    opacity: 1;
}

.modal-form-button {
    margin-top: 16px;
    width: 100%;
}

.modal-form-button span {
    display: block;
    width: 100%;
    padding: 12px 24px;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    background: var(--preview-text);
    color: var(--preview-bg);
    box-sizing: border-box;
}

/* Guest Book Entries */
.modal-guestbook-page {
    text-align: center;
}

.modal-guestbook-page .modal-form-field {
    text-align: center;
}

.modal-guestbook-page .modal-input-preview,
.modal-guestbook-page .modal-textarea-preview {
    margin: 0 auto;
}

.modal-guestbook-entries {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-guestbook-entry {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.modal-guestbook-entry:last-child {
    border-bottom: none;
}

.modal-guestbook-entry .entry-content {
    font-size: 11px;
    font-style: italic;
    color: var(--preview-text);
    margin: 0 0 4px 0;
    line-height: 1.5;
}

.modal-guestbook-entry .entry-author {
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--preview-text);
    opacity: 0.6;
    margin: 0;
}

/* Modal Layout Styles */
.modal-layout-classic {
    border: 1px solid var(--preview-accent);
}

.modal-layout-ornate_frame {
    border: 3px double var(--preview-accent);
    box-shadow: inset 0 0 0 8px var(--preview-bg), inset 0 0 0 9px var(--preview-accent), 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-layout-art_deco {
    border: 3px solid var(--preview-text);
    box-shadow: inset 0 0 0 3px var(--preview-bg), inset 0 0 0 4px var(--preview-accent), 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-layout-art_deco::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid var(--preview-accent);
    pointer-events: none;
}

.modal-layout-elegant_arch {
    border: 1px solid var(--preview-accent);
    border-radius: 70px 70px 4px 4px;
    padding-top: 46px !important;
    position: relative;
}

.modal-layout-elegant_arch::before {
    content: '✦';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--preview-accent);
    letter-spacing: 16px;
    padding-left: 16px;
}

.modal-layout-soft_edges {
    border-radius: 24px;
    border: 1px solid var(--preview-accent);
}

.modal-layout-romantic_flourish {
    border: 1px solid var(--preview-accent);
    position: relative;
}

.modal-layout-romantic_flourish::after {
    content: '~❦~';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: var(--preview-accent);
    background: inherit;
    padding: 0 10px;
}

.modal-layout-gilded_edge {
    border: 1px solid var(--preview-accent);
    border-left: 5px solid var(--preview-accent);
    position: relative;
}

.modal-layout-gilded_edge::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--preview-accent), transparent);
}

.modal-layout-botanical_border {
    border: 1px solid var(--preview-accent);
    position: relative;
}

.modal-layout-botanical_border::before,
.modal-layout-botanical_border::after {
    content: '❧';
    position: absolute;
    font-size: 18px;
    color: var(--preview-accent);
}

.modal-layout-botanical_border::before {
    top: 12px;
    left: 12px;
}

.modal-layout-botanical_border::after {
    bottom: 12px;
    right: 12px;
    transform: rotate(180deg);
}

.modal-layout-modern_luxe {
    border: 1px solid var(--preview-accent);
    position: relative;
}

.modal-layout-modern_luxe::before,
.modal-layout-modern_luxe::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--preview-accent);
    left: 50%;
    transform: translateX(-50%);
}

.modal-layout-modern_luxe::before {
    top: 0;
}

.modal-layout-modern_luxe::after {
    bottom: 0;
}

.modal-layout-bold_statement {
    border: 4px solid var(--preview-text);
}

/* Modal Controls Side */
.modal-controls-side {
    background: #fafafa;
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-left: 1px solid #eee;
}

.modal-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    color: #2a2a2a;
    margin: 0 0 6px 0;
}

.modal-header p {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #888;
    margin: 0;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 12px;
}

.modal-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-inputs-row {
    display: flex;
    gap: 8px;
}

.modal-inputs-row input {
    flex: 1;
    min-width: 0;
}

.modal-inputs input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-inputs input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 90, 107, 0.1);
}

.modal-inputs input[type="date"] {
    width: auto;
    max-width: 140px;
}

/* Section header with toggle */
.modal-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.modal-section-header .modal-section-label {
    margin-bottom: 0;
}

/* Intensity Toggle */
.intensity-toggle {
    display: flex;
    gap: 4px;
    background: #eee;
    border-radius: 6px;
    padding: 3px;
}

.intensity-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 4px;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.intensity-btn:hover {
    color: #333;
}

.intensity-btn.active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Color Palette Grid */
.modal-color-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
}

.color-swatch-btn {
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 2px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.color-swatch-btn:hover {
    transform: scale(1.08);
}

.color-swatch-btn.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(139, 90, 107, 0.2);
}

.swatch-preview {
    display: block;
    height: 10px;
    border-radius: 2px;
}

.swatch-preview:first-child {
    border-radius: 2px 2px 0 0;
}

.swatch-preview:last-child {
    border-radius: 0 0 2px 2px;
}

/* Layout Grid */
.modal-layout-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.layout-btn {
    padding: 6px 4px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.layout-btn:hover {
    border-color: #999;
    background: #f8f8f8;
}

.layout-btn.active {
    border-color: var(--primary-color);
    background: rgba(139, 90, 107, 0.08);
    color: var(--primary-color);
    font-weight: 500;
}

/* Modal Actions */
.modal-actions {
    margin-top: auto;
    padding-top: 20px;
}

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

.modal-note {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-top: 10px;
}

/* Editor Hero Section - Full Width Background */
/* Editor Showcase Section - Clean Split Layout */
.editor-showcase-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #2d232a 0%, #3d2d35 50%, #2a2025 100%);
    position: relative;
    overflow: hidden;
}

.editor-showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.editor-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.editor-showcase-content {
    color: #fff;
}

.editor-showcase-content .section-tag {
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 20px;
}

.editor-showcase-content h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 44px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.editor-showcase-content > p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
}

.editor-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 36px;
}

.editor-stat {
    text-align: center;
}

.editor-stat .stat-number {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 42px;
    font-weight: 600;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 6px;
}

.editor-stat .stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}

.editor-showcase-content .btn-primary {
    background: var(--primary-color);
    box-shadow: 0 8px 30px rgba(139, 90, 107, 0.4);
}

.editor-showcase-content .btn-primary:hover {
    box-shadow: 0 12px 40px rgba(139, 90, 107, 0.5);
}

/* Editor Browser Frame */
.editor-showcase-image {
    position: relative;
}

.editor-browser-frame {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.editor-browser-frame:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.browser-bar {
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f57;
}

.browser-dot:nth-child(2) {
    background: #febc2e;
}

.browser-dot:nth-child(3) {
    background: #28c840;
}

.editor-browser-frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* Legacy editor grid styles - keeping for backwards compatibility */
.editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.editor-content .section-tag {
    text-align: left;
}

.editor-content h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 40px;
    font-weight: 400;
    color: #2a2a2a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.editor-content > p {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #5a5a5a;
    margin-bottom: 40px;
}

.editor-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.editor-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon-sm {
    width: 44px;
    height: 44px;
    background: var(--accent-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-sm svg {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
}

.editor-feature h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 4px;
}

.editor-feature p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.editor-preview {
    display: flex;
    justify-content: center;
}

.editor-screenshot {
    width: 100%;
    max-width: 650px;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f7f5 0%, var(--white) 50%, #f8f7f5 100%);
}

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

.feature-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border: 1px solid rgba(139, 90, 107, 0.08);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(139, 90, 107, 0.15);
    border-color: rgba(139, 90, 107, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 25px rgba(139, 90, 107, 0.3);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(139, 90, 107, 0.4);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.feature-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background: var(--white);
}

.process-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.process-step {
    flex: 0 0 280px;
    text-align: center;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 32px;
    font-weight: 600;
    margin: 0 auto 24px;
    box-shadow: 0 8px 25px rgba(139, 90, 107, 0.3);
    transition: all 0.4s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(139, 90, 107, 0.4);
}

.step-content h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    color: #2a2a2a;
    margin-bottom: 12px;
}

.step-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}

.process-connector {
    flex: 0 0 80px;
    padding-top: 30px;
    color: var(--secondary-color);
}

.process-connector svg {
    width: 100%;
    height: 24px;
}

.process-connector svg path {
    stroke: var(--secondary-color);
    stroke-width: 2;
}

/* Colours Section */
.colours-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.colour-swatches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.colour-swatch {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.colour-swatch:hover {
    transform: translateY(-4px);
}

.swatch-colors {
    display: flex;
    width: 140px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    margin-bottom: 12px;
}

.swatch-colors span {
    flex: 1;
}

.swatch-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: 0.3px;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border: 1px solid rgba(139, 90, 107, 0.1);
    border-radius: 20px;
    padding: 44px 32px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(139, 90, 107, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(139, 90, 107, 0.12);
    border-color: rgba(139, 90, 107, 0.2);
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 12px 40px rgba(139, 90, 107, 0.2);
    transform: scale(1.05);
    background: linear-gradient(180deg, var(--white) 0%, #fdfbfa 100%);
}

.pricing-card.featured::before {
    opacity: 1;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color), var(--primary-light));
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-6px);
    box-shadow: 0 25px 60px rgba(139, 90, 107, 0.25);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
}

.pricing-header h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 500;
    color: #2a2a2a;
    margin-bottom: 6px;
}

.pricing-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.pricing-amount {
    margin-bottom: 30px;
}

.pricing-amount .amount {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 56px;
    font-weight: 500;
    color: #2a2a2a;
    line-height: 1;
}

.pricing-amount .period {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    text-align: left;
}

.pricing-list li {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.pricing-list .check::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: var(--success);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20,6 9,17 4,12'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.pricing-list .x::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #e0d5d0;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='3'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
    background-size: 10px;
    background-position: center;
    background-repeat: no-repeat;
}

.pricing-list li.excluded {
    color: #999;
}

.pricing-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
}

.pricing-guarantee svg {
    width: 20px;
    height: 20px;
    color: var(--success);
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(139, 90, 107, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 24px;
    font-size: 60px;
    font-family: Georgia, serif;
    color: rgba(139, 90, 107, 0.1);
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(139, 90, 107, 0.12);
    border-color: rgba(139, 90, 107, 0.15);
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-rating svg {
    width: 18px;
    height: 18px;
    fill: #c9a227;
}

.testimonial-card blockquote {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-style: italic;
    line-height: 1.6;
    color: #3a3a3a;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-initials {
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.author-details strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 2px;
}

.author-details span {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 50px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 500;
    color: #2a2a2a;
    margin-bottom: 10px;
}

.faq-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* CTA Section */
/* CTA Section - Final conversion push */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #2d232a 0%, #3d2d35 50%, #2a2025 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(139, 90, 107, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-decoration {
    position: absolute;
    width: 400px;
    height: 400px;
    color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.cta-decoration-left {
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
}

.cta-decoration-right {
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
}

.cta-card {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-card-inner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 60px 50px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.cta-eyebrow {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #d4a5b0;
    margin-bottom: 20px;
}

.cta-section h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 46px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.15;
}

.cta-card-inner > p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.cta-feature svg {
    width: 18px;
    height: 18px;
    color: #6dbf6d;
    flex-shrink: 0;
}

.cta-actions {
    margin-bottom: 28px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #2d232a;
    background: linear-gradient(135deg, #fff 0%, #f0e8ea 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.btn-cta svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.15);
}

.btn-cta:hover svg {
    transform: translateX(4px);
}

.cta-trust {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.cta-trust strong {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Landing Page Responsive */
@media (max-width: 1200px) {
    .template-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 48px;
    }

    .template-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .editor-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .editor-content {
        text-align: center;
    }

    .editor-showcase-section {
        padding: 70px 0;
    }

    .editor-showcase-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .editor-showcase-content {
        text-align: center;
    }

    .editor-showcase-content h2 {
        font-size: 36px;
    }

    .editor-stats {
        justify-content: center;
    }

    .editor-browser-frame {
        transform: none;
    }

    .editor-browser-frame:hover {
        transform: translateY(-5px);
    }

    .editor-content .section-tag {
        text-align: center;
    }

    .editor-features {
        max-width: 400px;
        margin: 0 auto;
    }

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

    .process-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .process-connector {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card.featured {
        transform: none;
        order: -1;
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 80px 0;
    }

    .hero-section h1 {
        font-size: 36px;
    }

    .hero-lead {
        font-size: 16px;
    }

    .section-intro h2 {
        font-size: 32px;
    }

    .proof-grid {
        flex-direction: column;
        gap: 30px;
    }

    .proof-divider {
        width: 60px;
        height: 1px;
    }

    .template-showcase {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto 50px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .colour-swatches {
        gap: 15px;
    }

    .swatch-colors {
        width: 80px;
        height: 55px;
    }

    .cta-section h2 {
        font-size: 32px;
    }

    .cta-card-inner {
        padding: 40px 25px;
    }

    .cta-features {
        gap: 16px;
    }

    .cta-feature {
        font-size: 12px;
    }

    .btn-cta {
        padding: 16px 28px;
        font-size: 14px;
    }

    .cta-decoration {
        display: none;
    }

    .templates-section,
    .editor-section,
    .features-section,
    .process-section,
    .colours-section,
    .pricing-section,
    .testimonials-section,
    .faq-section,
    .cta-section {
        padding: 70px 0;
    }

    /* Modal responsive */
    .template-modal {
        padding: 10px;
        align-items: flex-start;
    }

    .template-modal-content {
        grid-template-columns: 1fr;
        max-height: none;
        margin: 10px 0;
    }

    .modal-preview-side {
        order: 1;
    }

    .modal-controls-side {
        order: 2;
        border-left: none;
        border-top: 1px solid #eee;
    }

    .modal-preview-container {
        min-height: 320px;
        padding: 20px 40px;
    }

    .modal-invitation-card {
        max-width: 240px;
        padding: 22px 16px;
        max-height: calc(100vh - 200px);
    }

    .modal-partner-name {
        font-size: 22px;
    }

    .modal-date-day {
        font-size: 30px;
    }

    .modal-controls-side {
        padding: 25px 20px;
    }

    .modal-header h3 {
        font-size: 24px;
    }

    .modal-color-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .modal-layout-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .layout-btn {
        padding: 5px 3px;
        font-size: 9px;
    }

    .modal-inputs-row {
        flex-direction: column;
    }

    .modal-inputs-row input {
        flex: none;
    }

    .modal-close {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    /* Modal navigation arrows - mobile */
    .modal-page-nav {
        width: 32px;
        height: 50px;
    }

    .modal-nav-arrow {
        font-size: 36px;
    }

    .modal-page-nav-prev {
        left: 4px;
    }

    .modal-page-nav-next {
        right: 4px;
    }

    /* Page content - mobile */
    .modal-page-heading {
        font-size: 20px;
    }

    .modal-script-text {
        font-size: 12px;
    }

    .modal-guestbook-entry .entry-content {
        font-size: 10px;
    }
}


.hero-tagline {
    display: inline-block;
    font-family: 'Allura', cursive;
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.landing-hero h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1.15;
    color: #2a2a2a;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: #5a5a5a;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-note {
    font-size: 13px;
    color: #888;
}

/* Hero Preview Card */
.hero-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-card {
    background: #faf9f8;
    border-radius: 12px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.12),
        0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 380px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.4s ease;
}

.preview-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.preview-header {
    background: #e8e4e0;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0ccc8;
}

.preview-dot:nth-child(1) { background: #e8a4a4; }
.preview-dot:nth-child(2) { background: #e8d4a4; }
.preview-dot:nth-child(3) { background: #a4e8b4; }

.preview-content {
    padding: 50px 40px;
    text-align: center;
}

.preview-names {
    margin-bottom: 30px;
}

.preview-name {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 8px;
    color: #3a3a3a;
    text-transform: uppercase;
}

.preview-and {
    display: block;
    font-family: 'Allura', cursive;
    font-size: 32px;
    color: #5a5a5a;
    margin: 4px 0;
}

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

.preview-day {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 64px;
    font-weight: 300;
    color: #3a3a3a;
    line-height: 1;
}

.preview-month {
    display: block;
    font-family: 'Allura', cursive;
    font-size: 48px;
    color: #3a3a3a;
    margin: -5px 0;
}

.preview-year {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 8px;
    color: #3a3a3a;
}

.preview-venue {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    color: #888;
    text-transform: uppercase;
    margin-top: 25px;
}

/* Trust Section */
.landing-trust {
    padding: 50px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.trust-text {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.trust-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trust-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 42px;
    font-weight: 400;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: #666;
    letter-spacing: 0.5px;
}

.trust-divider {
    width: 1px;
    height: 50px;
    background: var(--border-color);
}

/* Section Header - Landing Page (scoped to frontend layout) */
.frontend-layout .section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.frontend-layout .section-label {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.frontend-layout .section-header h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 40px;
    font-weight: 400;
    color: #2a2a2a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.frontend-layout .section-header p {
    font-size: 17px;
    color: #666;
    line-height: 1.7;
}

/* Features Section */
.landing-features {
    padding: 100px 0;
    background: var(--bg-color);
}

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

.feature-card {
    background: var(--white);
    padding: 40px 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    border-radius: 12px;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    color: #2a2a2a;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

/* How It Works */
.landing-how-it-works {
    padding: 100px 0;
    background: var(--white);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step-card {
    flex: 0 0 280px;
    text-align: center;
    padding: 0 20px;
}

.step-number {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--white);
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 24px;
}

.step-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    color: #2a2a2a;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

.step-connector {
    flex: 0 0 80px;
    padding-top: 32px;
    color: var(--border-color);
}

.step-connector svg {
    width: 100%;
    height: 20px;
}

/* Themes Showcase */
.landing-themes {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, #f0ece7 100%);
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.theme-showcase {
    text-align: center;
}

.theme-preview {
    background: #faf9f8;
    border-radius: 12px;
    padding: 30px 15px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.theme-preview:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.theme-sample-heading {
    font-size: 16px;
    color: #3a3a3a;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.theme-sample-script {
    font-size: 18px;
    color: #5a5a5a;
}

/* Theme-specific fonts */
.theme-preview.classic .theme-sample-heading { font-family: 'Cormorant Garamond', Georgia, serif; }
.theme-preview.classic .theme-sample-script { font-family: 'Allura', cursive; }

.theme-preview.modern .theme-sample-heading { font-family: 'Montserrat', sans-serif; font-weight: 300; letter-spacing: 4px; }
.theme-preview.modern .theme-sample-script { font-family: 'Great Vibes', cursive; }

.theme-preview.romantic .theme-sample-heading { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; }
.theme-preview.romantic .theme-sample-script { font-family: 'Allura', cursive; font-size: 22px; }

.theme-preview.rustic .theme-sample-heading { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; }
.theme-preview.rustic .theme-sample-script { font-family: 'Great Vibes', cursive; }

.theme-preview.vintage .theme-sample-heading { font-family: 'Cormorant Garamond', Georgia, serif; letter-spacing: 5px; }
.theme-preview.vintage .theme-sample-script { font-family: 'Allura', cursive; }

.theme-preview.contemporary .theme-sample-heading { font-family: 'Montserrat', sans-serif; font-weight: 600; letter-spacing: 2px; }
.theme-preview.contemporary .theme-sample-script { font-family: 'Great Vibes', cursive; }

.theme-showcase h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    color: #2a2a2a;
    margin-bottom: 4px;
}

.theme-showcase p {
    font-size: 13px;
    color: #888;
}

/* Pricing Section */
.landing-pricing {
    padding: 100px 0;
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 40px 35px;
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 15px 50px rgba(139, 90, 107, 0.15);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 20px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 500;
    color: #2a2a2a;
    margin-bottom: 4px;
}

.pricing-subtitle {
    font-size: 14px;
    color: #888;
}

.pricing-price {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.price-amount {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 56px;
    font-weight: 400;
    color: var(--primary-color);
    line-height: 1;
}

.price-period {
    display: block;
    font-size: 14px;
    color: #888;
    margin-top: 4px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: #444;
}

.pricing-features li strong {
    font-weight: 600;
}

.pricing-features li.feature-disabled {
    color: #aaa;
}

.check-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--success);
    stroke-width: 2.5;
    fill: none;
}

.x-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #ccc;
    stroke-width: 2;
    fill: none;
}

.pricing-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    font-size: 15px;
    color: #666;
}

.pricing-guarantee svg {
    width: 22px;
    height: 22px;
    color: var(--success);
}

/* Testimonials */
.landing-testimonials {
    padding: 100px 0;
    background: linear-gradient(180deg, #f0ece7 0%, var(--bg-color) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: #f5c842;
    stroke: none;
}

.testimonial-card blockquote {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin: 0 0 24px 0;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    border-radius: 50%;
    font-family: 'Allura', cursive;
    font-size: 18px;
    color: var(--primary-color);
}

.author-info strong {
    display: block;
    font-size: 15px;
    color: #2a2a2a;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 13px;
    color: #888;
}

/* FAQ Section */
.landing-faq {
    padding: 100px 0;
    background: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    color: #2a2a2a;
    margin-bottom: 12px;
}

.faq-item p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

/* CTA Section */
.landing-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6d4555 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.landing-cta h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 42px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 16px;
}

.landing-cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.cta-actions .btn-primary {
    background: var(--white);
    color: var(--primary-color);
    padding: 18px 40px;
    font-size: 16px;
}

.cta-actions .btn-primary:hover {
    background: var(--accent-color);
}

.cta-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
}

/* Landing Page Responsive */
@media (max-width: 1200px) {
    .themes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .landing-hero .container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .landing-hero h1 {
        font-size: 42px;
    }

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

    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .step-connector {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card.featured {
        transform: none;
        order: -1;
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .landing-hero {
        padding: 60px 0;
    }

    .landing-hero h1 {
        font-size: 32px;
    }

    .hero-tagline {
        font-size: 24px;
    }

    .hero-description {
        font-size: 16px;
    }

    .preview-card {
        width: 100%;
        max-width: 320px;
        transform: none;
    }

    .preview-card:hover {
        transform: none;
    }

    .trust-stats {
        flex-direction: column;
        gap: 30px;
    }

    .trust-divider {
        width: 60px;
        height: 1px;
    }

    .frontend-layout .section-header h2 {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .landing-cta h2 {
        font-size: 32px;
    }
}

/* ================================================
   Coming Soon Page Styles
   ================================================ */

/* ==========================================
   COMING SOON PAGE - Matches Landing Page Design
   ========================================== */
.coming-soon-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.coming-soon-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #faf8f7 0%, #f5e6e0 50%, #f0ece7 100%);
}

.coming-soon-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(250, 248, 247, 0.88) 0%,
        rgba(250, 248, 247, 0.75) 50%,
        rgba(250, 248, 247, 0.88) 100%
    );
}

.coming-soon-container {
    position: relative;
    z-index: 1;
    max-width: 680px;
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.coming-soon-header {
    text-align: center;
    padding: 20px 0 40px;
}

.coming-soon-logo img {
    height: 70px;
    width: auto;
}

.coming-soon-content {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coming-soon-eyebrow {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.coming-soon-page h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 56px;
    font-weight: 400;
    color: #2a2a2a;
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.coming-soon-page h1 em {
    font-family: 'Great Vibes', cursive;
    font-style: normal;
    color: var(--primary-color);
}

.coming-soon-lead {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    color: #5a5a5a;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Preview Invitation Card - Matches actual app invitation styling */
.coming-soon-preview {
    margin-bottom: 50px;
    perspective: 1000px;
}

.preview-invitation-card {
    display: inline-block;
    background: #faf9f8;
    padding: 40px 50px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transform: rotateX(2deg);
    transition: transform 0.4s ease;
}

.preview-invitation-card:hover {
    transform: rotateX(0deg) translateY(-5px);
}

.preview-invitation-content {
    max-width: 280px;
    margin: 0 auto;
}

.preview-partner-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 8px;
    color: #3a3a3a;
    margin: 0;
    line-height: 1.3;
}

.preview-and-text {
    font-family: 'Allura', 'Great Vibes', cursive;
    font-size: 26px;
    color: #6a6a6a;
    margin: 4px 0;
    font-weight: 400;
}

.preview-invitation-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 3px;
    color: #777;
    line-height: 2.2;
    margin: 20px 0;
}

.preview-divider {
    width: 30px;
    height: 1px;
    background: #9a9a9a;
    margin: 20px auto;
}

.preview-date-display {
    margin: 25px 0 10px;
    text-align: center;
}

.preview-date-day {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 56px;
    font-weight: 300;
    color: #3a3a3a;
    line-height: 1;
    letter-spacing: 2px;
}

.preview-date-month {
    display: block;
    font-family: 'Allura', 'Great Vibes', cursive;
    font-size: 42px;
    color: #3a3a3a;
    margin: -2px 0 -5px;
    line-height: 1.2;
}

.preview-date-year {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 4px;
    color: #888;
    margin-top: 5px;
}

/* Feature Stat Cards Grid */
.coming-soon-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-stat-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 90, 107, 0.1);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(139, 90, 107, 0.15);
    border-color: rgba(139, 90, 107, 0.2);
}

.feature-stat-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    color: var(--primary-color);
    opacity: 0.7;
}

.feature-stat-icon svg {
    width: 100%;
    height: 100%;
}

.feature-stat-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 36px;
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 6px;
}

.feature-stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #666;
}

/* Form Section */
.coming-soon-form-section {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.form-intro {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: #444;
    margin-bottom: 24px;
}

.coming-soon-form .form-row {
    display: flex;
    gap: 12px;
}

.coming-soon-form input[type="email"] {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.coming-soon-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 90, 107, 0.1);
}

.coming-soon-form button {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.coming-soon-form button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.coming-soon-form button:hover svg {
    transform: translateX(4px);
}

.coming-soon-form .form-error,
.coming-soon-form ul {
    color: var(--danger);
    font-size: 14px;
    margin-top: 12px;
    text-align: left;
    list-style: none;
    padding: 0;
}

.form-note {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #888;
    margin-top: 16px;
}

/* Success / Info States */
.coming-soon-success,
.coming-soon-info {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.coming-soon-success {
    border: 2px solid var(--success);
}

.coming-soon-info {
    border: 2px solid var(--primary-color);
}

.success-icon,
.info-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon {
    background: rgba(90, 139, 107, 0.1);
}

.info-icon {
    background: rgba(139, 90, 107, 0.1);
}

.success-icon svg {
    width: 32px;
    height: 32px;
    color: var(--success);
}

.info-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.coming-soon-success h3,
.coming-soon-info h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 500;
    color: #2a2a2a;
    margin-bottom: 12px;
}

.coming-soon-success p,
.coming-soon-info p {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* Footer */
.coming-soon-footer {
    text-align: center;
    padding: 30px 0 20px;
}

.coming-soon-footer p {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .coming-soon-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-stat-card {
        padding: 20px 12px;
    }

    .feature-stat-number {
        font-size: 30px;
    }

    .feature-stat-label {
        font-size: 9px;
    }
}

@media (max-width: 640px) {
    .coming-soon-page h1 {
        font-size: 40px;
    }

    .coming-soon-lead {
        font-size: 15px;
    }

    .preview-invitation-card {
        padding: 30px 35px;
        transform: none;
    }

    .preview-partner-name {
        font-size: 20px;
        letter-spacing: 6px;
    }

    .preview-and-text {
        font-size: 22px;
    }

    .preview-invitation-text {
        font-size: 7px;
        letter-spacing: 2px;
    }

    .preview-date-day {
        font-size: 44px;
    }

    .preview-date-month {
        font-size: 34px;
    }

    .coming-soon-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 320px;
    }

    .feature-stat-card {
        padding: 16px 10px;
        border-radius: 12px;
    }

    .feature-stat-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 8px;
    }

    .feature-stat-number {
        font-size: 26px;
    }

    .feature-stat-label {
        font-size: 8px;
    }

    .coming-soon-form .form-row {
        flex-direction: column;
    }

    .coming-soon-form button {
        justify-content: center;
        width: 100%;
    }

    .coming-soon-form-section,
    .coming-soon-success,
    .coming-soon-info {
        padding: 30px 24px;
    }
}

/* ================================================
   Admin Interface Consistency Styles
   ================================================ */

/* Table Styles - Unified styling for all tables */
.table,
.table-responsive table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-collapse: collapse;
    overflow: hidden;
}

.table th,
.table td,
.table-responsive table th,
.table-responsive table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th,
.table-responsive table th {
    background: var(--accent-color);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
}

.table tr:last-child td,
.table-responsive table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: rgba(139, 90, 107, 0.03);
}

.table code,
.table-responsive table code {
    background: var(--accent-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--primary-color);
}

.table .actions {
    white-space: nowrap;
}

.table .actions .btn {
    margin-right: 6px;
}

.table .actions .btn:last-child {
    margin-right: 0;
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Wedding Sidebar Navigation */
.wedding-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 15px;
}

.wedding-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.8);
}

.wedding-nav-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.wedding-nav-item.active {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.wedding-nav-item .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.wedding-nav-item:hover .nav-icon,
.wedding-nav-item.active .nav-icon {
    opacity: 1;
}

.wedding-nav-item .nav-icon svg {
    width: 16px;
    height: 16px;
}

.wedding-nav-item .nav-text {
    font-size: 13px;
    font-weight: 500;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

/* Pages Navigation - Improved styling */
.no-pages-message {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 10px;
}

.page-nav-item .visibility-icon {
    margin-left: auto;
    opacity: 0.5;
}

/* Stats Cards - Unified styling */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-detail {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Stat card color variants */
.stat-attending .stat-number,
.stat-approved .stat-number,
.stat-invited-attending .stat-number {
    color: var(--success);
}

.stat-not-attending .stat-number,
.stat-invited-declined .stat-number {
    color: var(--danger);
}

.stat-pending .stat-number,
.stat-invited-pending .stat-number {
    color: var(--warning);
}

.stat-total-guests .stat-number,
.stat-ceremony .stat-number {
    color: var(--primary-color);
}

.stat-reception .stat-number,
.stat-invited-total .stat-number {
    color: var(--text-color);
}

/* Stats subtitle */
.stats-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 24px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section headers - improved */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.section-header .btn {
    flex-shrink: 0;
}

/* Card improvements */
.overview-card,
.setting-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.overview-card h3,
.setting-card h3 {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.overview-card dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px 16px;
    margin: 0;
}

.overview-card dt {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-muted);
}

.overview-card dd {
    font-size: 14px;
    color: var(--text-color);
    margin: 0;
}

/* Page cards - improved */
.page-card,
.qrcode-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.page-card:hover,
.qrcode-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.page-info {
    flex: 1;
    min-width: 0;
}

.page-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 6px 0;
}

.page-status {
    flex-shrink: 0;
}

.page-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Wedding cards - dashboard */
.wedding-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.wedding-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.2s;
}

.wedding-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.wedding-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 12px 0;
}

.wedding-card .wedding-date {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.wedding-card .wedding-status {
    margin-bottom: 16px;
}

.wedding-card .wedding-actions {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* Empty state improvements */
.empty-state {
    text-align: center;
    padding: 50px 30px;
    background: var(--white);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
}

.empty-state p {
    color: var(--text-muted);
    margin: 0 0 8px 0;
    font-size: 14px;
}

.empty-state p:last-of-type {
    margin-bottom: 20px;
}

/* Badge improvements */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-success {
    background: rgba(90, 139, 107, 0.12);
    color: var(--success);
}

.badge-warning {
    background: rgba(201, 162, 39, 0.12);
    color: #9a7b00;
}

.badge-danger {
    background: rgba(168, 90, 90, 0.12);
    color: var(--danger);
}

.badge-info {
    background: rgba(90, 107, 139, 0.12);
    color: #5a6b8b;
}

.badge-secondary {
    background: rgba(102, 102, 102, 0.12);
    color: #666;
}

.badge-primary {
    background: rgba(139, 90, 107, 0.12);
    color: var(--primary-color);
}

.badge-light {
    background: var(--accent-color);
    color: var(--text-color);
}

/* Form section header in sidebar */
.visual-editor-sidebar .form-section h3,
.form-container .form-section h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* Header actions improvements */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-actions .btn {
    white-space: nowrap;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .page-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .table-responsive {
        margin: 0 -15px;
        border-radius: 0;
    }

    .overview-card dl {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .overview-card dt {
        margin-bottom: -4px;
    }
}

/* Share URL display */
.share-url-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--accent-color);
    border-radius: var(--radius);
    margin-bottom: 8px;
}

.share-url-display code {
    flex: 1;
    font-size: 13px;
    color: var(--primary-color);
    word-break: break-all;
}

/* Copy button styling */
.copy-btn {
    padding: 4px 10px;
    font-size: 12px;
}

/* Row styling for table highlighting */
.rsvp-attending {
    background-color: rgba(90, 139, 107, 0.06);
}

.rsvp-not-attending {
    background-color: rgba(168, 90, 90, 0.06);
}

.comment-approved {
    background-color: rgba(90, 139, 107, 0.06);
}

.comment-pending {
    background-color: rgba(201, 162, 39, 0.08);
}

/* Access code styling */
.access-code {
    font-family: 'Monaco', 'Consolas', monospace;
    background: var(--accent-color);
    padding: 6px 12px;
    border-radius: 4px;
    letter-spacing: 0.15em;
    font-weight: 600;
}

/* Pages cell in guest links table */
.pages-cell {
    max-width: 280px;
}

.pages-cell .badge {
    display: inline-block;
    margin: 2px;
    font-size: 11px;
}

/* Comment content cell */
.comment-content-cell {
    max-width: 400px;
    word-wrap: break-word;
}

/* Button group */
.btn-group {
    display: flex;
    gap: 8px;
}

/* Setting card improvements */
.setting-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.setting-info {
    flex: 1;
    min-width: 200px;
}

.setting-info h3 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: none;
    padding-bottom: 0;
}

.setting-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

/* Approval setting section */
.approval-setting {
    margin-bottom: 24px;
}

/* Pages list improvements */
.pages-list {
    display: grid;
    gap: 12px;
}

/* Expanded Wedding Cards for Dashboard */
.dashboard .wedding-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wedding-card-expanded {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.2s;
}

.wedding-card-expanded:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.wedding-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.wedding-card-title h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 8px 0;
}

.wedding-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wedding-date-inline {
    font-size: 14px;
    color: var(--text-muted);
}

.wedding-status-inline {
    display: inline-flex;
}

.wedding-card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.wedding-card-stats {
    display: flex;
    gap: 32px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.wedding-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.wedding-stat-number {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: var(--text-color);
}

.wedding-stat-number.stat-success {
    color: var(--success);
}

.wedding-stat-number.stat-danger {
    color: var(--danger);
}

.wedding-stat-number.stat-warning {
    color: var(--warning);
}

.wedding-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 4px;
    text-align: center;
}

.wedding-card-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.wedding-card-links a {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.wedding-card-links a:hover {
    border-bottom-color: var(--primary-color);
}

@media (max-width: 768px) {
    .wedding-card-header {
        flex-direction: column;
        gap: 12px;
    }

    .wedding-card-actions {
        width: 100%;
    }

    .wedding-card-actions .btn {
        flex: 1;
        text-align: center;
    }

    .wedding-card-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .wedding-stat {
        min-width: 70px;
    }

    .wedding-stat-number {
        font-size: 20px;
    }
}
