﻿* {
    cursor: auto;
}
/* === MAIN LAYOUT === */
.container {
    max-width: 1400px;
    margin: 120px auto 40px;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* === LEFT PANEL === */
.editor-panel {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 120px;
}

.section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1rem;
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 2px solid #F3F4F6;
}

    .form-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.section-header {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
}

input[type="text"], input[type="date"], textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s;
    color: var(--text-main);
    background: #FAFAFA;
}

    input[type="text"]:focus, input[type="date"]:focus, textarea:focus {
        outline: none;
        border-color: var(--primary);
        background: white;
        box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
    }

/* Theme Selector */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.theme-option {
    aspect-ratio: 1;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

    .theme-option:hover {
        transform: scale(1.05);
    }

    .theme-option.selected {
        border-color: var(--text-main);
        box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
    }

        .theme-option.selected::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-weight: bold;
            font-size: 1.5rem;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

.t-pink {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8FAB 100%);
}

.t-blue {
    background: linear-gradient(135deg, #60A5FA 0%, #93C5FD 100%);
}

.t-purple {
    background: linear-gradient(135deg, #A78BFA 0%, #C4B5FD 100%);
}

.t-mint {
    background: linear-gradient(135deg, #34D399 0%, #6EE7B7 100%);
}

.t-peach {
    background: linear-gradient(135deg, #FBBF24 0%, #FCD34D 100%);
}

/* Profile Photo Upload */
.profile-photo-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 2px dashed var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    background: #FAFAFA;
}

    .profile-photo-upload:hover {
        border-color: var(--primary);
        background: white;
    }

.profile-photo-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    .profile-photo-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.profile-photo-text {
    flex: 1;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.btn-secondary {
    background: #F3F4F6;
    color: var(--text-main);
}

    .btn-secondary:hover {
        background: #E5E7EB;
    }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 8px 16px;
}

    .btn-ghost:hover {
        background: #F3F4F6;
    }

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

    .events-list::-webkit-scrollbar {
        width: 6px;
    }

    .events-list::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 3px;
    }

.event-item {
    background: #FAFAFA;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

    .event-item:hover {
        border-color: var(--primary);
        background: white;
    }

.event-info {
    flex: 1;
}

.event-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.event-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.event-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
}

    .icon-btn:hover {
        background: var(--primary);
        color: white;
        transform: scale(1.1);
    }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Photo Gallery Section */
.photo-upload-area {
    border: 3px dashed var(--border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #FAFAFA;
}

    .photo-upload-area:hover {
        border-color: var(--primary);
        background: white;
    }

.upload-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.photo-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #F3F4F6;
}

    .photo-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .photo-item .remove-photo {
        position: absolute;
        top: 6px;
        right: 6px;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: rgba(239, 68, 68, 0.95);
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        opacity: 0;
        transition: all 0.2s;
    }

    .photo-item:hover .remove-photo {
        opacity: 1;
    }

.photo-count {
    margin-top: 15px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* CTA */
.cta-box {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #F3F4F6;
}

.btn-cta {
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

    .btn-cta:hover {
        transform: translateY(-3px);
        box-shadow: 0 25px 50px -12px rgba(255, 107, 157, 0.5);
    }

.features-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === RIGHT PANEL - PREVIEW === */
.preview-panel {
    position: sticky;
    top: 120px;
}

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

.preview-label {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fullscreen-btn {
    background: white;
    border: 2px solid var(--border);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    color: var(--text-main);
}

    .fullscreen-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
        transform: translateY(-2px);
    }

.preview-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.preview-content {
    width: 100%;
    min-height: 800px;
    background: #FDFBF7;
}

.phone-frame {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    background: var(--text-main);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
}

.phone-screen {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    height: 700px;
    display: flex;
    flex-direction: column;
}

.phone-header {
    background: var(--primary);
    color: white;
    padding: 40px 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    transition: all 0.5s;
}

    .phone-header::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: rgba(255,255,255,0.3);
        border-radius: 2px;
    }


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

.baby-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

.baby-birth {
    font-size: 0.85rem;
    opacity: 0.9;
}

.phone-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #FAFAFA;
}

    .phone-content::-webkit-scrollbar {
        width: 4px;
    }

    .phone-content::-webkit-scrollbar-thumb {
        background: #DDD;
        border-radius: 2px;
    }

/* Age Counter */
.age-counter {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: center;
}

.age-counter-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.age-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.age-stat {
    text-align: center;
}

.age-number {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.age-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Milestone Stats */
.milestone-stats {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.milestone-title {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.milestone-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.milestone-item {
    background: white;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.milestone-number {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.milestone-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Reels Section */
.reels-section {
    margin-bottom: 25px;
}

.reels-header {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.reels-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

    .reels-scroll::-webkit-scrollbar {
        height: 4px;
    }

    .reels-scroll::-webkit-scrollbar-thumb {
        background: #DDD;
        border-radius: 2px;
    }

.reel-item {
    flex: 0 0 90px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: #E5E7EB;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

    .reel-item:hover {
        transform: scale(1.05);
    }

    .reel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.reel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Highlight Viewer Modal */
.highlight-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

    .highlight-viewer.show {
        display: flex;
    }

.highlight-content {
    width: 90%;
    max-width: 400px;
    height: 80vh;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.highlight-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.highlight-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 2px solid white;
    overflow: hidden;
}

    .highlight-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.highlight-info {
    flex: 1;
}

.highlight-name {
    font-weight: 700;
    font-size: 1rem;
}

.highlight-time {
    font-size: 0.8rem;
    opacity: 0.9;
}

.highlight-image-container {
    width: 100%;
    height: calc(80vh - 80px);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.highlight-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.highlight-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-main);
    transition: all 0.2s;
    z-index: 10;
}

    .highlight-nav:hover {
        background: white;
        transform: translateY(-50%) scale(1.1);
    }

    .highlight-nav.prev {
        left: 15px;
    }

    .highlight-nav.next {
        right: 15px;
    }

    .highlight-nav:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

.highlight-counter {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.close-highlight {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.2s;
    z-index: 10;
}

    .close-highlight:hover {
        background: rgba(0,0,0,0.8);
        transform: scale(1.1);
    }

/* Timeline */
.timeline-section {
    margin-bottom: 25px;
}

.timeline-header {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline {
    position: relative;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 18px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #E5E7EB;
    }

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
}

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #E5E7EB;
    z-index: 1;
}

.timeline-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.timeline-card-image {
    width: 100%;
    height: 180px;
    background: #F3F4F6;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    font-size: 2rem;
    overflow: hidden;
}

    .timeline-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.timeline-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.timeline-card-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.timeline-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Photo Gallery in Phone */
.gallery-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #E5E7EB;
}

.gallery-title {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gallery-item {
    aspect-ratio: 1;
    background: #F3F4F6;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

    .gallery-item:hover {
        transform: scale(1.05);
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Enhanced Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

    .modal.show {
        display: flex;
    }

.modal-content {
    background: white;
    border-radius: 28px;
    padding: 0;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px 40px;
    border-radius: 28px 28px 0 0;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

    .modal-close:hover {
        background: rgba(255,255,255,0.3);
        transform: rotate(90deg);
    }

.modal-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    margin: 0;
}

.modal-subtitle {
    margin-top: 5px;
    opacity: 0.9;
    font-size: 0.95rem;
}

.modal-body {
    padding: 40px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section-title {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
}

.photo-upload-box {
    border: 3px dashed var(--border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #FAFAFA;
    position: relative;
}

    .photo-upload-box:hover {
        border-color: var(--primary);
        background: white;
    }

    .photo-upload-box.has-image {
        padding: 0;
        border: none;
        overflow: hidden;
        height: 250px;
    }

    .photo-upload-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .photo-upload-box .change-photo-btn {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0,0,0,0.7);
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 20px;
        cursor: pointer;
        font-weight: 600;
        opacity: 0;
        transition: all 0.3s;
    }

    .photo-upload-box.has-image:hover .change-photo-btn {
        opacity: 1;
    }

.modal-actions {
    display: flex;
    gap: 15px;
    padding: 30px 40px;
    background: #F9FAFB;
    border-radius: 0 0 28px 28px;
}

    .modal-actions .btn {
        flex: 1;
        justify-content: center;
        padding: 16px;
        font-size: 1.05rem;
    }

/* Fullscreen Preview */
.fullscreen-preview {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

    .fullscreen-preview.show {
        display: flex;
    }

.fullscreen-phone {
    width: 90%;
    max-width: 450px;
    height: 90vh;
    background: var(--text-main);
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

    .fullscreen-phone .phone-screen {
        height: 100%;
    }

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s;
}

    .close-fullscreen:hover {
        transform: scale(1.1) rotate(90deg);
        background: var(--primary);
        color: white;
    }

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--text-main);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

    .toast.show {
        display: flex;
    }

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--error);
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        margin: 100px auto 40px;
    }

    .preview-panel {
        position: relative;
        top: 0;
    }

    .editor-panel {
        position: relative;
        top: 0;
    }
}

@media (max-width: 640px) {
    .container {
        margin: 80px auto 20px;
        padding: 20px 10px;
    }

    .top-header {
        padding: 15px 20px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .price-tag {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .editor-panel {
        padding: 30px 20px;
    }

    .theme-grid {
        grid-template-columns: repeat(5, 1fr);
    }

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

    .modal-body {
        padding: 30px 20px;
    }

    .modal-actions {
        padding: 20px;
    }

    .age-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .milestone-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    *{
        box-sizing: border-box;
        max-width: 100%;
    }
}

/* === EMAIL MODAL ENHANCEMENTS === */
.email-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.email-icon {
    position: absolute;
    left: 18px;
    font-size: 1.3rem;
    pointer-events: none;
    z-index: 1;
}

#emailInput {
    width: 100%;
    padding: 16px 20px 16px 50px !important;
    font-size: 1.05rem !important;
    border: 2px solid var(--border);
    border-radius: 14px;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s;
    color: var(--text-main);
    background: #FAFAFA;
}

#emailInput:focus {
    outline: none;
    border-color: var(--primary) !important;
    background: white !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1) !important;
}

#emailInput::placeholder {
    color: #9CA3AF;
}

.modal-body ul {
    list-style: none;
}

.modal-body ul li {
    position: relative;
    padding-left: 8px;
    margin-bottom: 6px;
}

.modal-body ul li::before {
    content: "✓";
    position: absolute;
    left: -12px;
    color: var(--primary);
    font-weight: bold;
}



/* Desativa custom cursor no mobile touch */
#magic-cursor, #magic-cursor-follower, .cursor-sparkle {
    display: none;
}

/* Mobile Preview Button - Hidden on Desktop */
.mobile-preview-btn {
    display: none; /* Hidden by default (desktop) */
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #E85A8A 100%);
    border: none;
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

/* Preview Tooltip - First Time Only */
.preview-tooltip {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 45px;
    right: 100px;
    background: white;
    color: var(--text-main);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 1000;
    white-space: nowrap;
    animation: tooltipBounce 0.6s ease-out;
}

.preview-tooltip.show {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-tooltip .tooltip-arrow {
    font-size: 1.2rem;
    animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes tooltipBounce {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateX(5px) scale(1.05);
    }
    100% {
        transform: translateX(0) scale(1);
    }
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

.mobile-preview-btn:active {
    transform: scale(0.95);
}

.mobile-preview-btn .preview-icon {
    font-size: 28px;
    display: block;
}

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

/* Mobile Preview Modal - Hidden by Default */
.mobile-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.mobile-preview-modal.active {
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mobile-preview-header {
    background: linear-gradient(135deg, var(--primary) 0%, #E85A8A 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-preview-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    color: white;
    font-weight: 600;
}

.mobile-preview-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
}

.mobile-preview-close:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.3);
}

.mobile-preview-content {
    flex: 1;
    overflow-y: auto;
    background: white;
    padding: 20px;
}

.mobile-preview-content iframe {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 100px);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Show mobile preview button only on mobile */
@media (max-width: 1024px) {
    .mobile-preview-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Show tooltip only on mobile when activated */
    .preview-tooltip {
        display: none; /* Will be shown via .show class */
    }

    /* Hide desktop preview on mobile */
    .preview-panel {
        display: none !important;
    }
}



/* --- Hero Section --- */

.hero-section {
    /* Garante que o fundo blur fique dentro da seção */
    position: relative;
    overflow: hidden;
    padding: 6rem 1.5rem; /* Padding superior/inferior para espaço */
    background-color: var(--bg-page);
    color: var(--text-main);
    padding-top: 10vh;

    min-height: 100vh;
    text-align: center; /* Centraliza o conteúdo por padrão */
}

    /* Efeito de Fundo Desfocado (Blur).hero-content */
    .hero-section::before {
        content: '';
        position: absolute;
        top: -50px;
        left: -50px;
        right: -50px;
        bottom: -50px;
        /* Gradiente suave de amarelo/pêssego */
        background: radial-gradient(circle at top left, var(--secondary) 0%, transparent 40%), radial-gradient(circle at bottom right, var(--primary) 0%, transparent 40%);
        opacity: 0.3; /* Torna o efeito sutil */
        /* Aplica o desfoque */
        filter: blur(80px);
        z-index: 0; /* Coloca o desfoque atrás do conteúdo */
    }

.hero-content {
    /* Garante que o conteúdo fique acima do fundo blur */
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column-reverse; /* Padrão em telas menores */
    align-items: center;
    gap: 3rem; /* Espaçamento entre texto e imagem */
}

@media (min-width: 1024px) {
    .hero-content {
        flex-direction: row; /* Layout em linha para telas maiores */
        text-align: left;
        align-items: flex-start;
    }

    .hero-section {
        padding: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-image{
        display: flex;
        justify-content: center;
        align-items: center;
    }
   
}

/* Estilos de Tipografia */

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px; /* Limita a largura para melhor leitura */
}

/* Área de Texto */

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza itens em telas menores */
}

@media (min-width: 1024px) {
    .hero-text {
        align-items: flex-start; /* Alinha à esquerda em telas maiores */
    }
}

/* Imagem da Hero Section */

.hero-image {
    flex: 1;

}

    .hero-image img {
        max-width: 100%;
        height: auto;
        max-height:30vh;
        display: block;
    }

/* Botão de Chamada para Ação (CTA) */

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    /* Estilo Amarelo */
    background-color: var(--primary);
    color: var(--text-main);
    font-weight: 700;
    padding: 1rem 2rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    /* Estilo "Emojizado" */
    border-radius: 50px; /* Borda bem arredondada (pill shape) */
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4); /* Sombra amarela */
}

    .hero-cta-btn:hover {
        background-color: var(--primary-dark);
        transform: translateY(-2px); /* Efeito de elevação sutil */
        color: var(--white);
    }

/* --- Features (Recursos) --- */

.hero-features {
    display: flex;
    flex-wrap: wrap; /* Permite quebrar em várias linhas */
    justify-content: center; /* Centraliza em telas menores */
    gap: 1.5rem 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .hero-features {
        justify-content: flex-start; /* Alinha à esquerda em telas maiores */
    }
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

.feature-icon {
    /* Faz o emoji se destacar um pouco mais */
    font-size: 1.5rem;
    line-height: 1;
    /* Adiciona um fundo para o ícone (opcional, para um visual mais "badge") */
    /*
    background-color: var(--secondary);
    border-radius: 50%;
    padding: 0.25rem;
    */
}