/* EasyArtBook - Landing Page Styles */
/* Kids artwork memory book theme */

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

:root {
    --primary: #764ba2;
    --primary-dark: #5a3a7e;
    --secondary: #667eea;
    --accent: #f093fb;
    --accent-light: #ffecd2;
    --dark: #1a1a2e;
    --light: #ffffff;
    --gray: #6b7280;
    --gray-light: #f3f4f6;
    /* Pastel rainbow gradient colors */
    --rainbow-red: #FFB5BA;
    --rainbow-orange: #FFCBA4;
    --rainbow-yellow: #FFF3B0;
    --rainbow-green: #B5EAD7;
    --rainbow-blue: #A0C4FF;
    --rainbow-purple: #CBC3E3;
    --rainbow-gradient: linear-gradient(90deg, #FFB5BA, #FFCBA4, #FFF3B0, #B5EAD7, #A0C4FF, #CBC3E3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 20px;
}

.logo svg {
    width: 40px;
    height: 40px;
}

/* Gradient Bar Logo */
.gradient-logo {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, #FFB5BA, #FFCBA4, #FFF3B0, #B5EAD7, #A0C4FF, #CBC3E3);
    color: #2D3436;
    font-family: 'Fredoka One', 'Nunito', Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gradient-logo:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (max-width: 600px) {
    .gradient-logo {
        padding: 6px 12px;
        font-size: 16px;
        border-radius: 6px;
    }
}

/* Footer gradient logo */
.footer-brand.gradient-logo {
    margin-bottom: 16px;
    color: #2D3436;
}

.header-login {
    display: none;
    align-items: center;
    gap: 10px;
}

@media (min-width: 900px) {
    .header-login {
        display: flex;
    }
}

.header-login input {
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    width: 180px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.header-login input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

.btn-signin {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-signin:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-signup {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-signup:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

@media (min-width: 900px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.2s;
}

.mobile-menu {
    display: none;
    padding: 16px 24px;
    gap: 12px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.mobile-menu.active {
    display: flex;
}

@media (min-width: 900px) {
    .mobile-menu {
        display: none !important;
    }
}

.btn-signup-mobile,
.btn-signin-mobile {
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-signup-mobile {
    background: linear-gradient(90deg, var(--rainbow-red), var(--rainbow-green), var(--rainbow-blue));
    color: white;
    border: none;
}

.btn-signin-mobile {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 100px 24px 60px;
    background: linear-gradient(135deg, #FFB5BA 0%, #FFCBA4 20%, #FFF3B0 40%, #B5EAD7 60%, #A0C4FF 80%, #CBC3E3 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    gap: 20px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('./artbook-background.png') center top / cover no-repeat;
    opacity: 0.5;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 50%);
}

.hero-content {
    max-width: 600px;
    text-align: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 1000px) {
    .hero {
        flex-direction: row;
        gap: 80px;
        padding: 100px 60px;
    }

    .hero-content {
        text-align: left;
    }
}

/* On mobile, show visual above content */
@media (max-width: 999px) {
    .hero {
        padding-top: 80px;
    }

    .hero-visual {
        order: -1; /* Move visual before content on mobile */
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 10px 24px 20px;
        margin: 0;
        overflow: visible;
        width: 100%;
        max-width: 320px;
    }

    /* First card spans full width, centered */
    .hero-visual .card-1 {
        grid-column: 1 / -1;
        justify-self: center;
        width: 140px;
    }

    /* Second and third cards side by side below */
    .hero-visual .card-2,
    .hero-visual .card-3 {
        width: 140px;
        justify-self: center;
    }

    .floating-card {
        animation: none; /* Disable floating animation on mobile for cleaner look */
    }
}

.hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    color: #2D3436;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(90deg, #e07a5f, #d45d79);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

@media (min-width: 1000px) {
    .hero-cta {
        align-items: flex-start;
    }
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.btn-primary-large svg {
    width: 20px;
    height: 20px;
}

.cta-note {
    font-size: 14px;
    color: #6b7280;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 20px 0 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hero-visual::-webkit-scrollbar {
    display: none;
}

/* Mobile: horizontal row of cards */
@media (max-width: 999px) {
    .hero-visual {
        padding: 20px 16px 40px;
        margin: 0 -16px;
        justify-content: flex-start;
    }

    .floating-card {
        flex-shrink: 0;
    }
}

/* Desktop: absolute positioned floating cards */
@media (min-width: 1000px) {
    .hero-visual {
        position: relative;
        width: 400px;
        height: 400px;
        z-index: 2;
        display: block;
        padding: 0;
        overflow: visible;
    }

    .floating-card {
        position: absolute;
    }

    .card-1 {
        width: 200px;
        top: 20px;
        left: 0;
    }

    .card-2 {
        width: 180px;
        top: 100px;
        right: 0;
    }

    .card-3 {
        width: 160px;
        bottom: 40px;
        left: 60px;
    }
}

.floating-card {
    background: white;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
    width: 160px;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: -2s;
}

.card-3 {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.card-image {
    width: 100%;
    height: 100px;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

@media (min-width: 1000px) {
    .card-image {
        height: 120px;
    }
}

.card-image svg {
    width: 100%;
    height: 100%;
}

.card-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
}

/* Section Subtitle */
.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 18px;
    max-width: 600px;
    margin: -40px auto 60px;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 24px;
    background: var(--light);
}

.how-it-works h2 {
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--dark);
}

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

.step-card {
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--rainbow-red), var(--rainbow-green), var(--rainbow-blue));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary);
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.step-card p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 100px 24px;
    background: linear-gradient(180deg, #f0f8ff 0%, #fff5f8 100%);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('./artbook-background.png') center center / cover no-repeat;
    opacity: 0.2;
}

.features h2 {
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--dark);
    position: relative;
    z-index: 1;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 100px 24px;
    background: var(--light);
}

.pricing h2 {
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--dark);
}

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

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    border: 2px solid #e5e7eb;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card-featured {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(118, 75, 162, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--rainbow-red), var(--rainbow-green), var(--rainbow-blue));
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 16px 0 20px;
    color: var(--dark);
}

.pricing-amount {
    margin-bottom: 28px;
}

.price {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.price-note {
    display: block;
    font-size: 14px;
    color: var(--gray);
    margin-top: 6px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 15px;
    color: var(--gray);
    border-bottom: 1px solid #f3f4f6;
    padding-left: 28px;
    position: relative;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 50%;
    opacity: 0.2;
}

.pricing-features li::after {
    content: '\2713';
    position: absolute;
    left: 3px;
    top: 9px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
}

.btn-pricing {
    width: 100%;
    padding: 16px;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-pricing-featured {
    background: linear-gradient(90deg, var(--rainbow-red), var(--rainbow-green), var(--rainbow-blue));
    color: white;
    border-color: transparent;
}

.btn-pricing-featured:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.pricing-note {
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    margin-top: 30px;
}

/* FAQ Section */
.faq {
    padding: 100px 24px;
    background: var(--gray-light);
}

.faq h2 {
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--dark);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.faq-question {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.faq-answer {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 100px 24px;
    background: linear-gradient(135deg, #FFB5BA 0%, #FFCBA4 20%, #FFF3B0 40%, #B5EAD7 60%, #A0C4FF 80%, #CBC3E3 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('./artbook-background.png') center center / cover no-repeat;
    opacity: 0.4;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

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

.btn-white:hover {
    background: var(--accent-light);
}

/* Footer */
.footer {
    padding: 40px 24px;
    background: var(--dark);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.footer-brand svg {
    width: 36px;
    height: 36px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-light);
    border-radius: 50%;
    font-size: 24px;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e5e7eb;
    color: var(--dark);
}

.modal-content h2 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--dark);
}

.modal-content > p {
    text-align: center;
    color: var(--gray);
    margin-bottom: 28px;
}

/* Google Sign-In Button */
.google-signin-container {
    margin-bottom: 20px;
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    background: white;
    color: #3c4043;
    border: 2px solid #dadce0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #d2e3fc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-google:active {
    background: #f1f3f4;
}

.btn-google svg {
    flex-shrink: 0;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--gray);
    font-size: 13px;
}

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

.auth-divider span {
    padding: 0 16px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.1);
}

.password-hint {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-top: 6px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, var(--rainbow-red), var(--rainbow-green), var(--rainbow-blue));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.modal-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--gray);
}

.modal-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Forgot Password Link */
.forgot-password-link {
    display: block;
    text-align: right;
    font-size: 13px;
    color: var(--secondary);
    text-decoration: none;
    margin-top: 6px;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Header Password Wrapper */
.header-password-wrapper {
    position: relative;
}

.header-password-wrapper input {
    width: 100%;
}

/* Header Forgot Password Link */
.header-forgot-link {
    position: absolute;
    top: 100%;
    right: 0;
    font-size: 10px;
    color: var(--gray);
    text-decoration: none;
    white-space: nowrap;
    margin-top: 2px;
}

.header-forgot-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Header Login Error */
.header-login-error {
    display: block;
    width: 100%;
    font-size: 12px;
    color: #dc2626;
    background: #fee2e2;
    padding: 6px 10px;
    border-radius: 4px;
    margin-top: 4px;
    text-align: center;
}

/* Messages */
.error-message {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.success-message {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

/* Payment Success Banner */
.payment-success-banner {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    animation: slideDown 0.5s ease-out;
}

.payment-success-banner svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.payment-success-banner .close-banner {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.payment-success-banner .close-banner:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========================================
   ANIMATED PROMO VIDEO SECTION
   ======================================== */

.promo-video-section {
    padding: 80px 24px;
    background: linear-gradient(180deg, #fff5f8 0%, #f5f0ff 50%, #f0f8ff 100%);
    overflow: hidden;
    position: relative;
}

.promo-video-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('./artbook-background.png') center center / cover no-repeat;
    opacity: 0.3;
}

.promo-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

@media (min-width: 1000px) {
    .promo-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 80px;
    }
}

/* Promo Text Side */
.promo-text {
    flex: 1;
    max-width: 500px;
    text-align: center;
}

@media (min-width: 1000px) {
    .promo-text {
        text-align: left;
    }
}

.promo-text h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.1;
}

.promo-text > p {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Promo Features with step indicators */
.promo-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.promo-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: 12px;
    background: white;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.promo-feature.active {
    opacity: 1;
    border-color: var(--rainbow-blue);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(59, 130, 246, 0.1));
    transform: scale(1.05);
}

.promo-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--rainbow-red), var(--rainbow-green), var(--rainbow-blue));
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.promo-feature span {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
}

.promo-cta {
    background: linear-gradient(90deg, var(--rainbow-red), var(--rainbow-green), var(--rainbow-blue));
    color: white;
}

.promo-cta:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

/* Phone Frame Animation */
.promo-animation {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #1a1a2e;
    border-radius: 40px;
    padding: 12px;
    position: relative;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.25),
        0 25px 50px rgba(0, 0, 0, 0.15),
        inset 0 -2px 6px rgba(255, 255, 255, 0.1);
}

@media (min-width: 400px) {
    .phone-frame {
        width: 320px;
        height: 640px;
    }
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #1a1a2e;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

/* App Header inside phone */
.app-header {
    background: linear-gradient(90deg, #FFB5BA, #FFCBA4, #FFF3B0, #B5EAD7, #A0C4FF, #CBC3E3);
    padding: 40px 16px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    color: #1a1a2e;
}

.app-logo svg {
    width: 28px;
    height: 28px;
}

/* Promo Scenes */
.promo-scene {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    flex-direction: column;
}

.promo-scene.active {
    opacity: 1;
    visibility: visible;
}

.scene-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 16px;
}

/* Scene 1: Upload Zone */
.upload-zone {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px dashed #ccc;
    border-radius: 20px;
    background: white;
    margin: 0 8px;
    position: relative;
    overflow: hidden;
}

.upload-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFB5BA, #B5EAD7, #A0C4FF);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.upload-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
    stroke-width: 3;
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

/* Dropping Images Animation */
.dropping-images {
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
}

.drop-image {
    position: absolute;
    width: 60px;
    height: 70px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
}

.scene-upload.active .drop-image.img-1 {
    animation: dropIn 0.8s ease-out 0.5s forwards;
    left: 20%;
}

.scene-upload.active .drop-image.img-2 {
    animation: dropIn 0.8s ease-out 0.9s forwards;
    left: 50%;
}

.scene-upload.active .drop-image.img-3 {
    animation: dropIn 0.8s ease-out 1.3s forwards;
    left: 35%;
}

.scene-upload.active .drop-image.img-4 {
    animation: dropIn 0.8s ease-out 1.7s forwards;
    left: 65%;
}

@keyframes dropIn {
    0% {
        top: -80px;
        opacity: 0;
        transform: rotate(-10deg) scale(0.8);
    }
    60% {
        top: 50%;
        opacity: 1;
        transform: rotate(5deg) scale(1.1);
    }
    100% {
        top: 45%;
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Scene 2: Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 8px;
    flex: 1;
}

.gallery-image {
    border-radius: 12px;
    aspect-ratio: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    opacity: 0;
}

.scene-gallery.active .gallery-image {
    animation: popIn 0.4s ease-out forwards;
}

.scene-gallery.active .gallery-image:nth-child(1) { animation-delay: 0.1s; }
.scene-gallery.active .gallery-image:nth-child(2) { animation-delay: 0.2s; }
.scene-gallery.active .gallery-image:nth-child(3) { animation-delay: 0.3s; }
.scene-gallery.active .gallery-image:nth-child(4) { animation-delay: 0.4s; }

@keyframes popIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery-count {
    text-align: center;
    padding: 12px;
}

.count-badge {
    display: inline-block;
    background: linear-gradient(90deg, #FFB5BA, #B5EAD7, #A0C4FF);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

/* Scene 3: Theme Selection */
.theme-cards {
    display: flex;
    gap: 12px;
    padding: 8px;
    overflow-x: auto;
    flex: 1;
    align-items: center;
}

.theme-card {
    flex-shrink: 0;
    width: 80px;
    height: 100px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 8px;
    position: relative;
    transition: all 0.3s ease;
    transform: scale(0.95);
    opacity: 0.7;
}

.theme-card span {
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.theme-card.selected {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.theme-check {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    animation: checkPop 0.3s ease-out;
}

@keyframes checkPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 16px);
    margin: 0 8px 8px;
    padding: 14px;
    background: linear-gradient(90deg, #FFB5BA, #B5EAD7, #A0C4FF);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.generate-btn svg {
    width: 18px;
    height: 18px;
}

.scene-theme.active .generate-btn {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(118, 75, 162, 0.6); }
}

/* Scene 4: Generating */
.generating-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.generating-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    animation: spin 2s linear infinite;
}

.generating-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary);
}

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

.generating-text {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFB5BA, #FFCBA4, #FFF3B0, #B5EAD7, #A0C4FF, #CBC3E3);
    background-size: 200% 100%;
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s ease;
    animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.scene-generating.active .progress-fill {
    animation: fillProgress 2.5s ease-out forwards, shimmer 1.5s linear infinite;
}

@keyframes fillProgress {
    0% { width: 0%; }
    20% { width: 25%; }
    50% { width: 60%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

.progress-percent {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

/* Scene 5: Complete */
.complete-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.book-preview {
    position: relative;
    perspective: 1000px;
    margin-bottom: 24px;
    transform: scale(0.8);
    opacity: 0;
}

.scene-complete.active .book-preview {
    animation: bookReveal 0.8s ease-out forwards;
}

@keyframes bookReveal {
    0% {
        transform: scale(0.5) rotateY(-30deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.1) rotateY(10deg);
    }
    100% {
        transform: scale(1) rotateY(0deg);
        opacity: 1;
    }
}

.book-cover {
    width: 140px;
    height: 180px;
    border-radius: 4px 12px 12px 4px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    box-shadow:
        8px 8px 20px rgba(0, 0, 0, 0.2),
        inset -2px 0 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.book-spine {
    position: absolute;
    left: -8px;
    top: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
    border-radius: 4px 0 0 4px;
}

.book-title {
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 4px;
}

.book-author {
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    text-align: center;
    margin-bottom: auto;
}

.book-images {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.mini-img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.complete-text {
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 16px;
    opacity: 0;
}

.scene-complete.active .complete-text {
    animation: fadeInUp 0.5s ease-out 0.6s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    opacity: 0;
}

.download-btn svg {
    width: 18px;
    height: 18px;
}

.scene-complete.active .download-btn {
    animation: fadeInUp 0.5s ease-out 0.8s forwards, pulse 1.5s ease-in-out 1.3s infinite;
}

/* Progress Dots */
.promo-progress {
    display: flex;
    gap: 10px;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: linear-gradient(135deg, var(--rainbow-red), var(--rainbow-blue));
    transform: scale(1.3);
}

.progress-dot:hover {
    background: #9ca3af;
}

.progress-dot.active:hover {
    background: linear-gradient(135deg, var(--rainbow-red), var(--rainbow-blue));
}

/* ========================================
   ARTWORK IMAGES IN PROMO
   ======================================== */

.drop-image img,
.gallery-image img,
.mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

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

.gallery-image {
    border-radius: 8px;
    aspect-ratio: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    opacity: 0;
    overflow: hidden;
}

/* ========================================
   3D BOOK FLIP SCENE
   ======================================== */

.scene-book-flip {
    background: linear-gradient(180deg, #f5f0e8 0%, #e8e0d5 100%);
}

.open-book-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    padding: 12px;
}

.open-book {
    display: flex;
    width: 100%;
    max-width: 280px;
    height: 180px;
    position: relative;
    transform-style: preserve-3d;
}

.book-page-left,
.book-page-right {
    flex: 1;
    background: #fffef5;
    padding: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.book-page-left {
    border-radius: 4px 0 0 4px;
    background: linear-gradient(90deg, #f0ebe0 0%, #fffef5 100%);
    box-shadow: inset -2px 0 6px rgba(0,0,0,0.05);
}

.book-page-right {
    border-radius: 0 4px 4px 0;
    background: linear-gradient(90deg, #fffef5 0%, #f0ebe0 100%);
    box-shadow: inset 2px 0 6px rgba(0,0,0,0.05);
}

.book-spine-center {
    width: 8px;
    background: linear-gradient(90deg, #c9b896 0%, #a08060 50%, #c9b896 100%);
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.page-artwork {
    flex: 1;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.page-artwork img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.page-caption {
    font-family: 'Caveat', cursive;
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Page Flip Animation */
.page-flip-overlay {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: left center;
    transition: transform 0.8s ease-in-out;
    z-index: 10;
}

.page-flip-overlay.flipping {
    transform: rotateY(-180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: #fffef5;
    padding: 8px;
    display: flex;
    flex-direction: column;
    border-radius: 0 4px 4px 0;
}

.flip-front {
    background: linear-gradient(90deg, #fffef5 0%, #f0ebe0 100%);
}

.flip-back {
    transform: rotateY(180deg);
    background: linear-gradient(90deg, #f0ebe0 0%, #fffef5 100%);
    border-radius: 4px 0 0 4px;
}

/* Page turn shadow effect */
.page-flip-overlay::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.page-flip-overlay.flipping::after {
    opacity: 1;
}

/* Floating Contact Us Button */
.floating-contact-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.floating-contact-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
}

.floating-contact-btn .contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
}

.floating-contact-btn .contact-text {
    display: inline;
}

@media (max-width: 480px) {
    .floating-contact-btn {
        padding: 12px 16px;
        font-size: 13px;
        bottom: 16px;
        right: 16px;
    }

    .floating-contact-btn .contact-text {
        display: none;
    }

    .floating-contact-btn .contact-icon {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}

/* Contact Modal - textarea styling */
#contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#contact-form textarea::placeholder {
    color: #9ca3af;
}
