        :root {
            /* Font Defaults (English) */
            --app-font-family: 'Poppins', sans-serif;
            --app-font-weight-light: 300;
            --app-font-weight-regular: 400;
            --app-font-weight-medium: 500;
            --app-font-weight-semibold: 600;
            --app-font-weight-bold: 700;
            --app-font-weight-default: 400;
            --font-family-en: 'Poppins', sans-serif;

            /* Title Typography Configuration */
            --title-font-family: var(--app-font-family);
            --title-font-weight: var(--app-font-weight-default);
        }

        /* Utility Classes */
        .font-light { font-weight: var(--app-font-weight-light) !important; }
        .font-medium { font-weight: var(--app-font-weight-medium) !important; }
        .font-bold { font-weight: var(--app-font-weight-bold) !important; }
        .lang-en-font { font-family: var(--font-family-en) !important; }

        /* Critical above-the-fold styles only */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        /* Prevent layout shift from scrollbar appearing/disappearing */
        html {
            overflow-y: scroll;
        }
        
        body {
            font-family: var(--app-font-family);
            font-weight: var(--app-font-weight-default);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            min-height: 100vh;
            background-color: #f4f6f8;
            display: flex;
            flex-direction: column;
            align-items: center;
            overflow-x: hidden; /* Prevent horizontal scroll from 100vw elements */
        }
        
        .container {
            flex: 1;
            max-width: 1000px;
            width: 100%;
            text-align: center;
            margin-top: 150px;
            padding: 0 20px;
        }

        /* Hide elements immediately in critical CSS for /app route */
        /* Hide logged-in elements by default on normal index */
        
        .title {
            font-size: 72px;
            line-height: 1.1;
            margin-bottom: 16px;
            color: #333;
            letter-spacing: -0.02em;
            font-family: var(--title-font-family);
            font-weight: var(--title-font-weight);
        }
        
        .gradient-word {
            background: linear-gradient(135deg, #E1306C 0%, #C13584 25%, #833AB4 50%, #5851DB 75%, #405DE6 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: var(--app-font-weight-semibold);
        }
        
        .subtitle {
            font-size: 20.4px;
            font-weight: 400;
            color: #000;
            line-height: 1.5;
        }
        
        .form-container {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border-radius: 20px;
            padding: 32px;
            margin-bottom: 40px;
        }
        
        .skeleton-loader {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #f4f6f8;
            z-index: 9999;
            opacity: 1;
            transition: opacity 0.3s ease;
        }
        
        .skeleton-loader.hidden {
            opacity: 0;
            pointer-events: none;
        }
        
        body:not(.ui-ready) .container {
            opacity: 0;
        }
        
        body.ui-ready .container {
            opacity: 1;
            transition: opacity 0.3s ease;
        }
        
        /* Reduce animations on initial load for faster LCP */
        body:not(.animations-ready) * {
            animation-duration: 0.01s !important;
            animation-delay: 0s !important;
            transition-duration: 0.01s !important;
        }
        
        @media (max-width: 768px) {
            .title { font-size: 48px; }
            .subtitle { font-size: 17px; }
            .container { margin-top: 130px; }
        }
        /* Rubik Font Family - Optimized for fast loading */
        @font-face {
            font-family: 'Rubik';
            src: url('../fonts/Rubik-Regular.ttf') format('truetype');
            font-weight: 400;
            font-style: normal;
            font-display: swap;
            unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
        }
        
        @font-face {
            font-family: 'Rubik';
            src: url('../fonts/Rubik-Medium.ttf') format('truetype');
            font-weight: 500;
            font-style: normal;
            font-display: swap;
            unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
        }
        
        @font-face {
            font-family: 'Rubik';
            src: url('../fonts/Rubik-SemiBold.ttf') format('truetype');
            font-weight: 600;
            font-style: normal;
            font-display: swap;
            unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
        }
        
        @font-face {
            font-family: 'Rubik';
            src: url('../fonts/Rubik-Bold.ttf') format('truetype');
            font-weight: 700;
            font-style: normal;
            font-display: swap;
            unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
        }
        
        /* Reset and base styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: var(--app-font-family);
            font-weight: var(--app-font-weight-default);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            min-height: 100vh;
            background-color: #f4f6f8; /* A professional, slightly cool off-white */
            background-image: 
                radial-gradient(circle min(1200px, 140vw) at 0% 0%, hsla(225, 85%, 70%, 1) 0%, hsla(225, 85%, 70%, 0.5) 40%, transparent 100%),
                radial-gradient(circle min(1200px, 140vw) at 115% 130vh, hsla(280, 180%, 70%, 1) 0%, hsla(280, 180%, 70%, 0.5) 40%, transparent 100%);
            background-repeat: no-repeat;
            background-position: top left, top right;
            background-attachment: fixed; /* Optimize repainting */
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0;
            margin: 0;
            will-change: auto; /* Let browser optimize */
        }
        
        /* Ensure footer stays at bottom */
        .container {
            flex: 1;
        }
        
        /* Top banner like base44 - FLOATING AND ROUNDED */
        .top-banner {
            position: fixed;
            top: 20px;
            left: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 60px;
            z-index: 1000;
            height: 60px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 32px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
            transition: all 0.3s ease;
        }
        
        .top-banner:hover {
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
            transform: translateY(-1px);
        }
        
        .banner-left {
            display: flex;
            align-items: center;
            gap: 32px;
        }
        
        .banner-logo {
            font-size: 24px;
            font-weight: 800;
            background: linear-gradient(135deg, #E1306C 0%, #C13584 25%, #833AB4 50%, #5851DB 75%, #405DE6 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-decoration: none;
        }
        
        .banner-nav {
            display: flex;
            gap: 24px;
        }
        
        .banner-nav a {
            color: #666;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: color 0.2s ease;
            padding: 8px 12px;
            border-radius: 20px;
        }
        
        .banner-nav a:hover {
            color: #E1306C;
            background: rgba(225, 48, 108, 0.1);
        }
        
        .banner-right {
            display: flex;
            align-items: center;
            gap: 12px;
            height: 100%;
        }
        
        /* Menu button (hamburger) - mobile only */
        .menu-button {
            display: none;
            align-items: center;
            justify-content: center;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: all 0.2s ease;
            color: #666;
            width: 36px;
            height: 36px;
        }
        
        .menu-button:hover {
            background: rgba(0, 0, 0, 0.05);
            color: #E1306C;
        }
        
        .menu-button svg {
            width: 20px;
            height: 20px;
        }
        
        /* ========================================
           SLIDE-IN DRAWER NAVIGATION
           Full-height drawer from right side
           ======================================== */
        
        /* Backdrop overlay */
        .menu-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0);
            backdrop-filter: blur(0px);
            -webkit-backdrop-filter: blur(0px);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .menu-backdrop.show {
            opacity: 1;
            visibility: visible;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }
        
        /* Slide-in drawer */
        .menu-dropdown {
            position: fixed;
            top: 0;
            right: 0;
            height: 100vh;
            height: 100dvh;
            width: min(320px, 85vw);
            background: #fff;
            box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
            z-index: 1001;
            transform: translateX(100%);
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            overscroll-behavior: contain;
        }
        
        .menu-dropdown.show {
            transform: translateX(0);
        }
        
        /* Drawer close button */
        .menu-drawer-close {
            position: absolute;
            top: 12px;
            right: 16px;
            width: 32px;
            height: 32px;
            border: none;
            background: #f5f5f5;
            border-radius: 8px;
            z-index: 1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            transition: all 0.2s ease;
        }
        
        .menu-drawer-close:hover {
            background: #eee;
            color: #333;
        }
        
        .menu-drawer-close svg {
            width: 16px;
            height: 16px;
        }
        
        /* Drawer content */
        .menu-drawer-content {
            flex: 1;
            padding: 8px 0;
            padding-top: 52px;
            padding-bottom: 16px;
            overflow-y: auto;
            position: relative;
            display: flex;
            flex-direction: column;
        }
        
        /* Menu items */
        .menu-dropdown a,
        .menu-item {
            display: flex;
            align-items: center;
            gap: 14px;
            color: #222;
            text-decoration: none;
            padding: 16px 24px;
            font-size: 16px;
            font-weight: 500;
            transition: all 0.2s ease;
            background: none;
            border: none;
            width: 100%;
            text-align: left;
            cursor: pointer;
            position: relative;
        }
        
        .menu-dropdown a::before,
        .menu-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 0;
            background: linear-gradient(180deg, #E1306C, #C13584);
            border-radius: 0 2px 2px 0;
            transition: height 0.2s ease;
        }
        
        .menu-dropdown a:hover,
        .menu-item:hover {
            background: rgba(225, 48, 108, 0.04);
            color: #E1306C;
        }
        
        .menu-dropdown a:hover::before,
        .menu-item:hover::before {
            height: 24px;
        }
        
        .menu-item.sign-out {
            color: #dc3545;
        }
        
        .menu-item.sign-out::before {
            background: #dc3545;
        }
        
        .menu-item.sign-out:hover {
            background: rgba(220, 53, 69, 0.06);
            color: #dc3545;
        }
        
        /* Menu divider */
        .menu-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
            margin: 12px 24px;
        }
        
        /* Menu user section */
        .menu-user-section {
            padding: 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        }
        
        .menu-user-info {
            padding: 0 24px 16px;
        }
        
        .menu-user-info .user-email {
            font-size: 14px;
            color: #333;
            font-weight: 600;
            margin-bottom: 12px;
            white-space: nowrap;
            overflow: hidden;
            mask-image: linear-gradient(to right, black 85%, transparent 100%);
            -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
        }
        
        .menu-status-row {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .menu-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
            border: 2px solid rgba(225, 48, 108, 0.2);
            vertical-align: middle;
        }
        
        .menu-avatar-fallback {
            background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
            font-size: 16px;
            color: #888;
            line-height: 32px;
            text-align: center;
        }
        
        .menu-status-row .subscription-status {
            flex: 1;
            font-size: 13px;
            color: #666;
        }
        
        /* Language picker in menu - same style as header */
        .menu-language-picker {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 6px 12px;
            margin: 16px 20px;
            background: rgba(255, 255, 255, 0.5);
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 20px;
            font-size: 11px;
            color: #666;
            transition: all 0.3s ease;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            height: 36px;
            min-width: fit-content;
        }
        
        .menu-language-picker:hover {
            background: rgba(255, 255, 255, 0.8);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        
        .menu-language-picker .globe-icon,
        .menu-language-picker .selected-flag {
            font-size: 22px;
            line-height: 1;
        }
        
        /* Hamburger to X animation */
        .menu-button.open svg path {
            transition: all 0.3s ease;
        }
        
        /* Body scroll lock when drawer is open */
        body.drawer-open {
            overflow: hidden;
            touch-action: none;
        }
        
        /* Desktop drawer width */
        @media (min-width: 769px) {
            .menu-dropdown {
                width: 320px;
            }
            
            /* Hide nav links in drawer on desktop - they're already in the header */
            .menu-dropdown a.menu-nav-link {
                display: none;
            }
        }
        
        /* Mobile optimizations */
        @media (max-width: 768px) {
            .menu-dropdown {
                width: min(300px, 80vw);
            }
            
            
            .menu-dropdown a,
            .menu-item {
                padding: 14px 20px;
                font-size: 15px;
            }
            
            .menu-user-info {
                padding: 0 20px 14px;
            }
            
            .menu-divider {
                margin: 10px 20px;
            }
        }
        
        /* Move login button closer to right edge */
        .banner-right .login-button {
            margin-right: -4px;
        }
        
        /* Login button styles */
        .login-button {
            padding: 8px 20px;
            background: linear-gradient(45deg, #E1306C 0%, #C13584 25%, #833AB4 50%);
            color: white;
            border: none;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            box-shadow: 0 2px 8px rgba(225, 48, 108, 0.3);
        }
        
        .login-button:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
        }
        
        /* Avatar container */
        .avatar-container {
            position: relative;
            height: 36px;
            width: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .user-dropdown {
            position: relative;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 36px;
        }
        
        /* Fixed avatar styling matching original */
        .avatar-small {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.3s ease;
            display: block;
            text-align: center;
            line-height: 36px;
            font-size: 18px;
        }
        
        .avatar-small:hover {
            transform: scale(1.1);
            box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.5);
        }
        
        .dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
            min-width: 240px;
            z-index: 1000;
            margin-top: 5px;
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.2s ease;
            display: none;
        }
        
        .dropdown-menu[style*="display: block"] {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        .dropdown-item {
            padding: 12px 16px;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
            cursor: pointer;
            color: #333;
            font-size: 14px;
            transition: background-color 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .dropdown-item:hover {
            background: #f5f5f5;
        }
        
        .dropdown-item.user-info {
            cursor: default;
            flex-direction: column;
            align-items: flex-start;
            gap: 4px;
            padding-bottom: 8px;
        }
        
        .dropdown-item.user-info:hover {
            background: transparent;
        }
        
        .user-email {
            font-size: 13px;
            color: #666;
            font-weight: 500;
        }
        
        .subscription-status {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .status-badge {
            font-size: 12px;
            padding: 8px 12px;
            border-radius: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
            cursor: default;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 4px;
        }
        
        .status-badge.clickable {
            cursor: pointer;
            transition: opacity 0.2s ease;
        }
        
        .status-badge.clickable:hover {
            opacity: 0.8;
        }
        
        .status-badge.subscribed {
            background: rgba(40, 167, 69, 0.1);
            color: #28a745;
        }
        
        .status-badge.free {
            background: rgba(102, 126, 234, 0.1);
            color: #0095f6;
        }
        
        #subscription-type-text {
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        #subscription-posts-text {
            font-weight: 400;
            text-transform: none;
            letter-spacing: 0;
            font-size: 11px;
            opacity: 0.8;
        }
        
        .dropdown-divider {
            height: 1px;
            background: #dbdbdb;
            margin: 4px 0;
        }
        
        /* Main container */
        .container {
            max-width: 1000px;
            width: 100%;
            text-align: center;
            margin-top: 150px;
            padding: 0 20px;
        }
        
        /* Header */
        .header {
            margin-bottom: 24px;
        }
        
        .title {
            font-size: 72px;
            line-height: 1.1;
            margin-bottom: 16px;
            color: #333;
            letter-spacing: -0.02em;
            font-family: var(--title-font-family);
            font-weight: var(--title-font-weight);
        }
        
        .gradient-word {
            background: linear-gradient(135deg, #E1306C 0%, #C13584 25%, #833AB4 50%, #5851DB 75%, #405DE6 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: var(--app-font-weight-semibold);
        }
        
        @media (max-width: 768px) {
            .title {
                font-size: 48px;
            }
            
            .subtitle {
                font-size: 14.5px;
            }
            
            .form-container {
                padding: 24px;
            }
            
            /* Banner responsive */
            .top-banner {
                top: 12px;
                left: 16px;
                right: 16px;
                padding: 0 24px;
                height: 56px;
                border-radius: 28px;
            }
            
            .banner-nav {
                display: none;
            }
            
            .banner-logo {
                font-size: 20px;
            }
            
            .menu-button {
                display: flex;
                width: 32px;
                height: 32px;
            }
            
            .banner-right {
                position: relative;
            }
            
            .container {
                margin-top: 130px;
            }
        }
        
        @media (max-width: 600px) {
            .title {
                font-size: 44px;
            }
        }
        
        @media (max-width: 480px) {
            .title {
                font-size: 38px;
            }
            
            .subtitle {
                font-size: 14.5px;
            }
            
            .container {
                margin-top: 110px;
                padding: 0 16px;
            }
            
            .form-container {
                padding: 20px;
                margin: 0 -10px;
            }
            
            /* Banner mobile */
            .top-banner {
                top: 8px;
                left: 12px;
                right: 12px;
                padding: 0 20px;
                height: 52px;
                border-radius: 26px;
            }
            
            .banner-logo {
                font-size: 18px;
            }
            
            .login-button {
                padding: 6px 16px;
                font-size: 13px;
            }
            
            .avatar-small {
                width: 28px;
                height: 28px;
            }
        }
        
        /* Small screens - minimal adjustments */
        @media (max-width: 400px) {
            .form-container {
                padding: 16px;
                margin: 0 -8px;
            }
        }
        
        /* On very narrow screens, hide upload instruction text and show only icon */
        @media (max-width: 340px) {
            .combined-upload-wrapper .upload-instruction {
                display: none;
            }
            
            .combined-upload-wrapper {
                padding: 8px;
            }
        }
        
        .subtitle {
            font-size: 20.4px;
            font-weight: 400;
            color: #000;
            line-height: 1.5;
        }
        
        /* Form container with enhanced glassmorphic background */
        .form-container {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border-radius: 20px;
            padding: 32px;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.12),
                0 2px 16px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.18);
            margin-bottom: 40px;
            position: relative;
            z-index: 100;
        }
        
        .form-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.25) 0%, 
                rgba(255, 255, 255, 0.1) 50%, 
                rgba(255, 255, 255, 0.05) 100%);
            border-radius: 20px;
            pointer-events: none;
            z-index: -1;
        }
        
        /* Form elements */
        .form-group {
            margin-bottom: 16px;
            text-align: left;
            position: relative;
        }
        
        /* Upload and Generate Button Row
         * The buttons are positioned inside the textarea at the bottom
         * See .textarea-container .upload-generate-row for specific positioning
         */
        .upload-generate-row {
            margin-bottom: 0;
            direction: ltr; /* Always left-to-right, regardless of language */
        }
        
        .form-label {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
            font-size: 13px;
            color: #333;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .form-input, .form-select {
            width: 100%;
            padding: 12px 16px;
            font-size: 15px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            outline: none;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 1);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            font-family: inherit;
            box-shadow: 
                0 4px 16px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }
        
        .form-textarea {
            resize: none;
            height: 132px; /* Actual text input area - ends above buttons */
            line-height: 1.4;
            text-align: start; /* Use logical property that adapts to direction */
            word-break: break-word; /* Prevent cursor from causing line breaks */
            overflow-wrap: break-word;
            overflow-y: auto; /* Enable scrolling when text exceeds area */
            width: 100%;
            padding: 0;
            font-size: 15px;
            border: none; /* No border - container provides visual styling */
            outline: none;
            background: transparent; /* Transparent - container provides background */
            font-family: inherit;
        }
        
        /* Textarea container provides the visual white box styling */
        .textarea-container {
            position: relative;
            padding: 12px 16px 64px 16px; /* Extra bottom padding for buttons (12px gap + 40px button + 12px padding) */
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            background: rgba(255, 255, 255, 1);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 
                0 4px 16px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }
        
        /* Position upload-generate-row inside the container visual box, below the textarea */
        .textarea-container .upload-generate-row {
            position: absolute;
            bottom: 12px; /* Match container padding */
            left: 16px; /* Match container padding */
            right: 16px; /* Match container padding */
            margin-top: 12px; /* Space between textarea and buttons */
            margin-bottom: 0;
            z-index: 10;
            display: flex;
            justify-content: space-between; /* Photo box left, generate button right */
            align-items: center;
            gap: 12px;
            pointer-events: none; /* Allow clicking through the container */
            direction: ltr; /* Always left-to-right, regardless of parent RTL */
            height: 48px; /* Fixed height to prevent movement when items change */
        }
        
        /* Make upload-generate-row positioned for overlay */
        .upload-generate-row {
            position: relative;
        }
        
        /* Re-enable pointer events on the actual interactive elements */
        .textarea-container .upload-generate-row > * {
            pointer-events: auto;
        }
        
        .form-input:focus, .form-select:focus {
            border-color: rgba(225, 48, 108, 0.5);
            box-shadow: 
                0 4px 20px rgba(0, 0, 0, 0.15),
                0 0 0 3px rgba(225, 48, 108, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
            background: rgba(255, 255, 255, 1);
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
        }
        
        /* Focus state for textarea container when textarea is focused */
        .textarea-container:focus-within {
            border-color: rgba(225, 48, 108, 0.5);
            box-shadow: 
                0 4px 20px rgba(0, 0, 0, 0.15),
                0 0 0 3px rgba(225, 48, 108, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
            background: rgba(255, 255, 255, 1);
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
        }
        
        .form-input::placeholder, .form-textarea::placeholder {
            color: #666;
        }
        
        /* Trusted By Section - Exact Base44 Style */
        .trusted-by-section {
            display: flex;
            justify-content: center;
            margin: 20px auto;
            padding: 0 20px;
            position: relative;
            z-index: 1;
        }
        
        .trusted-by-container {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .company-avatars {
            display: flex;
            align-items: center;
        }
        
        .company-avatar {
            position: relative;
            aspect-ratio: 1;
            width: 32px;
            height: 32px;
        }
        
        .company-avatar:not(:first-child) {
            margin-left: -8px;
        }
        
        .company-avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: contain;
            border: 2px solid white;
            box-sizing: border-box;
        }
        
        .trusted-by-text {
            font-size: 14px;
            color: #888;
            font-weight: 400;
            margin: 0;
            white-space: nowrap;
        }
        
        @media (max-width: 1099px) {
            .company-avatar {
                width: 31px;
                height: 31px;
            }
        }
        
        @media (max-width: 768px) {
            .trusted-by-section {
                margin: 16px auto;
                padding: 0 16px;
            }
            
            .trusted-by-text {
                font-size: 13px;
            }
        }
        
        @media (max-width: 480px) {
            .trusted-by-section {
                margin: 16px -10px;
                padding: 0;
            }
        }
        
        @media (max-width: 400px) {
            .trusted-by-section {
                margin: 16px -8px;
                padding: 0;
            }
        }
        
        /* Layout CSS Variables - Single Source of Truth */
        .textarea-container {
            --text-direction: rtl;
            direction: var(--text-direction);
        }

        .textarea-container.ltr {
            --text-direction: ltr;
        }

        
        /* Language Picker Styles - Header */
        .header-language-picker {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 6px 12px;
            background: rgba(255, 255, 255, 0.5);
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 20px;
            font-size: 11px;
            color: #666;
            transition: all 0.3s ease;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            height: 36px;
            min-width: fit-content;
        }
        
        .header-language-picker:hover {
            background: rgba(255, 255, 255, 0.8);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        
        .mobile-language-picker {
            display: block;
            color: #333;
            text-decoration: none;
            padding: 16px 20px;
            font-size: 18px;
            font-weight: 500;
            transition: all 0.2s ease;
            cursor: pointer;
            position: relative;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .mobile-language-picker:hover {
            background: rgba(225, 48, 108, 0.1);
            color: #E1306C;
        }
        
        .globe-icon, .selected-flag {
            font-size: 22px;
            line-height: 1;
        }
        
        .mobile-language-picker .globe-icon,
        .mobile-language-picker .selected-flag {
            font-size: 24px;
        }
        
        /* Language dropdown - single source of truth */
        .language-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
            padding: 8px 0;
            display: none;
            z-index: 1001;
            margin-top: 6px;
            min-width: 160px;
            white-space: nowrap;
            direction: ltr;
        }
        
        .language-dropdown.show {
            display: block;
        }
        
        .language-option {
            padding: 12px 20px;
            font-size: 14px;
            color: #333;
            cursor: pointer;
            transition: background 0.2s ease;
            display: flex;
            align-items: center;
            gap: 10px;
            direction: ltr;
        }
        
        .language-option:hover {
            background: rgba(225, 48, 108, 0.08);
            color: #E1306C;
        }
        
        .language-option:first-child {
            border-radius: 10px 10px 0 0;
        }
        
        .language-option:last-child {
            border-radius: 0 0 10px 10px;
        }
        
        .language-option .flag-emoji {
            font-size: 20px;
        }
        
        /* Hide desktop language picker on mobile, show mobile version */
        @media (max-width: 768px) {
            .header-language-picker {
                display: none;
            }
        }
        
        /* Hide mobile language picker on desktop */
        @media (min-width: 769px) {
            .mobile-language-picker {
                display: none;
            }
        }
        
        /* Combined upload wrapper - shown when no images - unified single button */
        .combined-upload-wrapper {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 0 1 auto; /* Allow shrinking */
            min-width: 44px; /* Minimum: just the + button */
            max-width: 100%;
            padding: 8px 12px 8px 6px;
            border: 2px dashed rgba(225, 48, 108, 0.3);
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
            height: 40px;
            margin-bottom: 0;
            overflow: hidden;
        }
        
        .combined-upload-wrapper:hover {
            transform: translateY(-2px);
            border-color: #E1306C;
            background: rgba(255, 255, 255, 0.8);
            box-shadow: 0 4px 12px rgba(225, 48, 108, 0.1);
        }
        
        /* Plus Button inside combined wrapper - no separate border */
        .combined-upload-wrapper .plus-upload-btn {
            flex: 0 0 auto;
            width: 24px;
            height: 24px;
            border: none;
            background: transparent;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            transition: transform 0.2s ease;
        }
        
        .combined-upload-wrapper:hover .plus-upload-btn {
            transform: scale(1.1);
        }
        
        .combined-upload-wrapper .plus-upload-btn svg {
            width: 20px;
            height: 20px;
        }
        
        /* Upload instruction wrapper inside combined wrapper - no separate border */
        .combined-upload-wrapper .upload-instruction-wrapper {
            display: flex;
            align-items: center;
            gap: 4px;
            border: none;
            background: transparent;
            cursor: pointer;
            padding: 0;
            justify-content: space-between;
            flex: 1 1 0;
            min-width: 0; /* Enable text truncation in flex child */
            overflow: hidden;
        }
        
        /* Standalone plus button - shown when images are attached */
        .plus-upload-btn-standalone {
            flex: 0 0 auto;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.9);
            border: 2px solid rgba(225, 48, 108, 0.3);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            margin-bottom: 0;
        }
        
        .plus-upload-btn-standalone:hover {
            border-color: #E1306C;
            background: rgba(255, 255, 255, 1);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(225, 48, 108, 0.2);
        }
        
        .plus-upload-btn-standalone:active {
            transform: translateY(0px);
        }
        
        .upload-icon {
            display: inline-block;
            width: 18px;
            height: 18px;
            flex-shrink: 0;
        }
        
        .upload-instruction {
            font-weight: 600;
            margin: 0;
            color: #555;
            font-size: 12px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            min-width: 0; /* Enable truncation in flex context */
            flex: 1 1 0;
        }
        
        /* Photo Gallery Container - horizontal scrollable - stretches to fill space */
        .photo-gallery-container {
            flex: 1;
            position: relative;
            overflow: hidden;
            height: 48px;
            margin-left: 0px;
            margin-bottom: 0;
        }
        
        /* Image Upload Loading Indicator - Minimal and Beautiful */
        .upload-loading-spinner {
            width: 20px;
            height: 20px;
            border: 2.5px solid rgba(225, 48, 108, 0.2);
            border-top-color: rgba(225, 48, 108, 0.9);
            border-radius: 50%;
            animation: uploadSpin 0.8s linear infinite;
            display: none;
        }
        
        @keyframes uploadSpin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Overlay for photo gallery only during loading */
        .photo-gallery-container .upload-loading-overlay {
            position: absolute;
            inset: 0;
            background: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
            z-index: 50;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            pointer-events: none;
        }
        
        .photo-gallery-container .upload-loading-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        /* Loading state for upload buttons - hide content, show spinner */
        .plus-upload-btn.loading svg,
        .plus-upload-btn-standalone.loading svg {
            display: none;
        }
        
        .combined-upload-wrapper.loading .upload-instruction-wrapper {
            opacity: 0.4;
        }
        
        .plus-upload-btn.loading .upload-loading-spinner,
        .plus-upload-btn-standalone.loading .upload-loading-spinner {
            display: block;
        }
        
        /* Position spinner inside buttons */
        .plus-upload-btn,
        .plus-upload-btn-standalone {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .photo-gallery {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-behavior: smooth;
            padding: 2px 0;
            align-items: center;
            height: 100%;
            
            /* Hide scrollbar but keep functionality */
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE/Edge */
        }
        
        .photo-gallery::-webkit-scrollbar {
            display: none; /* Chrome/Safari */
        }
        
        /* Fade effect on the left side of gallery */
        .photo-gallery::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 30px;
            background: linear-gradient(to right, rgba(248, 250, 252, 0.9) 0%, rgba(248, 250, 252, 0.5) 40%, transparent 100%);
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 1;
        }
        
        .photo-gallery-container.has-overflow-left .photo-gallery::before {
            opacity: 1;
        }
        
        /* Fade effect on the right side of gallery */
        .photo-gallery::after {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 30px;
            background: linear-gradient(to left, rgba(248, 250, 252, 0.9) 0%, rgba(248, 250, 252, 0.5) 40%, transparent 100%);
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 1;
        }
        
        .photo-gallery-container.has-overflow-right .photo-gallery::after {
            opacity: 1;
        }
        
        /* Photo items in gallery */
        .gallery-photo-item {
            position: relative;
            width: 48px;
            height: 48px;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            transition: all 0.2s ease;
            background: #f0f0f0;
            flex-shrink: 0;
        }
        
        .gallery-photo-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        .gallery-photo {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        
        .remove-photo {
            position: absolute;
            top: 2px;
            right: 2px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            border: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 1;
            transition: all 0.2s ease;
            font-size: 12px;
            line-height: 1;
            z-index: 2;
        }
        
        .remove-photo:hover {
            background: #ff3b30;
            transform: scale(1.1);
        }
        
        .remove-photo:disabled {
            cursor: not-allowed;
            pointer-events: none;
        }
        
        /* Legacy styles for backward compatibility */
        .photo-upload {
            display: none !important;
        }
        
        .photo-preview-container {
            margin-top: 12px;
        }
        
        .photo-previews {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .photo-preview-item {
            position: relative;
            width: 60px;
            height: 60px;
            border-radius: 6px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            transition: all 0.2s ease;
            background: #f0f0f0;
        }
        
        .photo-preview {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        
        /* For subscribed users: hide the regular generate button */
        .upload-generate-row.subscribed-user .generate-btn {
            display: none;
        }
        
        /* Generate button */
        .generate-btn {
            flex: 0 0 auto; /* Size based on content */
            padding: 10px;
            background: linear-gradient(45deg, #E1306C 0%, #C13584 25%, #833AB4 50%, #5851DB 75%, #405DE6 100%);
            background-size: 200% 100%;
            color: white;
            border: none;
            border-radius: 16px; /* Curved square */
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 16px rgba(225, 48, 108, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            width: 44px; /* Fixed width for square shape */
            height: 44px; /* Fixed height for square shape */
            margin-bottom: 0;
        }
        
        .generate-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(225, 48, 108, 0.5);
            background-position: 100% 0;
        }
        
        .generate-btn:active {
            transform: translateY(0px);
        }
        
        .generate-btn:disabled {
            transform: translateY(0px);
            box-shadow: 0 2px 8px rgba(225, 48, 108, 0.3);
            cursor: not-allowed;
            opacity: 0.7;
        }
        
        .generate-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.6s ease;
        }
        
        .generate-btn:hover::before {
            left: 100%;
        }
        
        .generate-btn svg {
            transition: transform 0.2s ease;
            width: 22px;
            height: 22px;
        }
        
        .generate-btn:hover svg {
            transform: scale(1.1) translateY(-2px);
        }
        
        /* Generate Buttons Row - container for both buttons */
        .generate-buttons-row {
            display: flex;
            gap: 16px;
            align-items: stretch;
            justify-content: center;
            width: 100%;
            max-width: 700px;
            margin: 0 auto 20px auto;
        }

        /* Generate Reel button - now matches integrated container height */
        .generate-reel-btn {
            flex: 1 1 0;
            padding: 18px 24px;
            background: linear-gradient(45deg, #833AB4 0%, #5851DB 25%, #405DE6 50%, #E1306C 75%, #C13584 100%);
            background-size: 200% 100%;
            color: white;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(131, 58, 180, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-size: 18px;
            font-weight: 600;
            position: relative;
            overflow: hidden;
            min-height: 68px;
            white-space: nowrap;
            animation: gradientShimmer 6s ease-in-out infinite;
        }
        
        .generate-reel-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(131, 58, 180, 0.5);
            background-position: 100% 0;
        }
        
        .generate-reel-btn:active {
            transform: translateY(-1px);
        }
        
        .generate-reel-btn:disabled {
            transform: translateY(1px);
            box-shadow: 0 2px 8px rgba(131, 58, 180, 0.3);
            cursor: not-allowed;
            opacity: 0.7;
        }
        
        .generate-reel-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.6s ease;
        }
        
        .generate-reel-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -120%;
            width: 100%;
            height: 100%;
            background: linear-gradient(120deg,
                        rgba(255,255,255,0) 0%,
                        rgba(255,255,255,0.55) 50%,
                        rgba(255,255,255,0) 100%);
            transform: skewX(-20deg);
            transition: left 0.7s ease;
            pointer-events: none;
            opacity: 0.65;
        }

        .generate-reel-btn:hover::before {
            left: 200%;
        }
        
        .generate-reel-btn svg {
            transition: transform 0.2s ease;
        }
        
        .generate-reel-btn:hover svg {
            transform: scale(1.1) rotate(15deg);
        }
        
        /* Footer */
        .footer {
            text-align: center;
            margin-top: 40px;
            font-size: 16px;
            color: #666;
            font-weight: 500;
        }
        
        .trusted-count {
            font-weight: 700;
            color: #E1306C;
        }
        
        /* Progress System - Single Source of Truth */
        :root {
            /* Progress Design Tokens */
            --progress-container-spacing: 50px 0 40px;
            --progress-phase-padding: 12px 20px;
            --progress-phase-radius: 16px;
            --progress-bar-height: 11.2px;
            --progress-bar-radius: 10px;
            --progress-bar-spacing: 20px;
            
            /* Progress Colors */
            --progress-phase-bg: rgba(255, 255, 255, 0.95);
            --progress-phase-border: rgba(255, 255, 255, 0.3);
            --progress-phase-text: #1e293b;
            --progress-bar-bg: rgba(255, 255, 255, 0.4);
            --progress-bar-border: rgba(255, 255, 255, 0.2);
            --progress-fill-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
            
            /* Progress Shadows */
            --progress-phase-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 16px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
            --progress-bar-shadow: 
                inset 0 2px 4px rgba(0, 0, 0, 0.06),
                0 1px 2px rgba(0, 0, 0, 0.04);
            --progress-fill-shadow: 
                0 0 20px rgba(102, 126, 234, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
                
            /* Progress Animations */
            --progress-transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            --progress-transition-width: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .progress-container {
            display: none;
            margin: var(--progress-container-spacing);
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            padding: 0 20px;
        }
        
        .progress-phase {
            font-family: var(--app-font-family);
            font-size: 16px;
            font-weight: 600;
            letter-spacing: -0.01em;
            line-height: 1.4;
            color: var(--progress-phase-text);
            text-align: center;
            
            display: inline-block;
            width: fit-content;
            margin-left: auto;
            margin-right: auto;
            
            background: var(--progress-phase-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--progress-phase-border);
            border-radius: var(--progress-phase-radius);
            padding: var(--progress-phase-padding);
            margin-top: var(--progress-bar-spacing);
            
            box-shadow: var(--progress-phase-shadow);
            transition: var(--progress-transition-smooth);
            position: relative;
            overflow: hidden;
        }
        
        .progress-phase::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(255, 255, 255, 0.4) 50%, 
                transparent 100%);
            transition: left 2s ease-in-out;
            animation: phaseShimmer 3s ease-in-out infinite;
        }
        
        @keyframes phaseShimmer {
            0% { left: -100%; }
            50% { left: 100%; }
            100% { left: 100%; }
        }
        
        .progress-bar {
            height: var(--progress-bar-height);
            background: var(--progress-bar-bg);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid var(--progress-bar-border);
            border-radius: var(--progress-bar-radius);
            overflow: hidden;
            position: relative;
            box-shadow: var(--progress-bar-shadow);
        }
        
        .progress-fill {
            height: 100%;
            background: var(--progress-fill-gradient);
            background-size: 300% 100%;
            width: 0%;
            border-radius: var(--progress-bar-radius);
            position: relative;
            box-shadow: var(--progress-fill-shadow);
            transition: var(--progress-transition-width);
            animation: progressFlow 2.5s ease-in-out infinite;
        }
        
        .progress-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 50%;
            background: linear-gradient(to bottom, 
                rgba(255, 255, 255, 0.8) 0%, 
                transparent 100%);
            border-radius: var(--progress-bar-radius) var(--progress-bar-radius) 0 0;
        }
        
        @keyframes progressFlow {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            :root {
                --progress-phase-padding: 16px 24px;
                --progress-container-spacing: 40px 0 30px;
            }
            
            .progress-phase {
                font-size: 13.5px;
            }
            
            .progress-container {
                padding: 0 16px;
            }
        }
        
        .status-message {
            text-align: center;
            font-size: 16px;
            color: var(--text-muted);
            margin-bottom: 16px;
        }
        
        #result-section {
            display: none;
            margin-top: 30px;
            content-visibility: auto; /* Defer rendering when hidden */
        }
        
        .result-header {
            text-align: center;
            margin-bottom: 40px;
        }
        
        .result-title {
            font-family: var(--app-font-family);
            font-size: 48px;
            font-weight: 400;
            color: #333;
            letter-spacing: -0.02em;
            margin-bottom: 8px;
        }
        
        .result-title .gradient-word {
            font-weight: 500;
        }
        
        /* CSS Variables for theming - Shared across all pages */
        :root {
            --like-red: #ed4956;
            --surface: #fff;
            --dark: #333;
            --light-gray: #ddd;
            --transition-fast: 0.15s;
            --primary: #0095f6;
            --primary-light: #b2dffc;
            --text-muted: #666;
            --card-shadow: 0 8px 30px rgba(0,0,0,0.12);
            --gradient: linear-gradient(45deg,#feda75,#fa7e1e,#d62976,#962fbf,#4f5bd5);
            
            /* Reel Play Button Variables - Single Source of Truth */
            --reel-overlay-bg: rgba(255, 255, 255, 0.15);
            --reel-overlay-blur: blur(10px);
            --reel-triangle-color: rgba(255, 255, 255, 0.9);
            --reel-overlay-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            --reel-transition: all 0.2s ease;
            
            /* Size variants */
            --reel-large-size: 80px;
            --reel-large-triangle-size: 24px;
            --reel-large-triangle-offset: calc(var(--reel-large-triangle-size) / 6);
            
            --reel-small-size: 40px;
            --reel-small-triangle-size: 12px;
            --reel-small-triangle-offset: calc(var(--reel-small-triangle-size) / 6);
        }
        
        /* Instagram-style bottom navigation bar */
        .ig-bottom-nav {
            position: relative;
            height: 56px;
            background: var(--surface);
            border-top: 1px solid var(--light-gray);
            display: flex;
            justify-content: space-around;
            align-items: center;
            z-index: 100;
            transition: background var(--transition-fast) ease;
            border-radius: 0 0 28px 28px;
            flex-shrink: 0;
            flex-grow: 0;
            width: 100%;
        }
        
        /* anchor resets */
        .ig-bottom-nav .nav-item {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            text-decoration: none;
            -webkit-tap-highlight-color: transparent;
        }
        
        /* base icon styling */
        .ig-bottom-nav svg {
            width: 26px;
            height: 26px;
            stroke: var(--dark);
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            transition: 0.2s stroke, 0.2s fill;
        }
        
        /* active (filled) state */
        .nav-item.active svg {
            fill: var(--dark);
            stroke: var(--dark);
        }
        
        /* hover / focus for desktop accessibility */
        .ig-bottom-nav .nav-item:hover svg,
        .ig-bottom-nav .nav-item:focus svg {
            stroke: var(--dark);
            opacity: 0.7;
        }
        
        
        /* Instagram post button styling */
        .instagram-post-btn {
            background: linear-gradient(45deg, #E1306C 0%, #C13584 25%, #833AB4 50%, #5851DB 75%, #405DE6 100%);
            color: white;
            border: none;
            border-radius: 20px;
            padding: 8px 16px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s ease;
            box-shadow: 0 2px 8px rgba(225, 48, 108, 0.3);
        }
        
        .instagram-post-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
        }
        
        .instagram-post-btn.posted {
            background: #34c759;
            box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
        }
        
        .instagram-post-btn.posted:hover {
            box-shadow: 0 4px 12px rgba(52, 199, 89, 0.4);
        }
        
        .instagram-post-btn.scheduled {
            background: #ff9500;
            box-shadow: 0 2px 8px rgba(255, 149, 0, 0.3);
        }
        
        .instagram-post-btn.scheduled:hover {
            box-shadow: 0 4px 12px rgba(255, 149, 0, 0.4);
        }
        
        /* Post actions container - row of action buttons */
        .post-actions {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 12px 16px;
            flex-wrap: nowrap;
        }
        
        /* Download button styling */
        .download-post-btn {
            background: rgba(0, 0, 0, 0.04);
            border: none;
            padding: 6px;
            cursor: pointer;
            color: #262626;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            opacity: 0.85;
            width: 36px;
            height: 36px;
        }
        
        .download-post-btn:hover {
            opacity: 1;
            background: rgba(0, 0, 0, 0.08);
            transform: translateY(-1px);
        }
        
        .download-post-btn:active {
            transform: scale(0.95);
        }
        
        /* Edit speech button styling - pill button with icon and text */
        .regenerate-audio-btn {
            background: linear-gradient(135deg, #0099ff 0%, #0066cc 100%);
            border: none;
            padding: 6px 14px;
            cursor: pointer;
            color: white;
            border-radius: 18px;
            display: none;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: all 0.2s ease;
            height: 36px;
            box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
            flex-shrink: 0;
            font-size: 13px;
            font-weight: 600;
            white-space: nowrap;
        }
        
        .regenerate-audio-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
        }
        
        .regenerate-audio-btn:active {
            transform: scale(0.95);
        }
        
        /* Responsive: On small screens, adjust button */
        @media (max-width: 380px) {
            .post-actions {
                padding: 10px 12px;
            }
            
            .download-post-btn {
                width: 32px;
                height: 32px;
            }
            
            .regenerate-audio-btn {
                padding: 5px 10px;
                font-size: 12px;
                height: 32px;
            }
            
            .regenerate-audio-btn svg {
                width: 16px;
                height: 16px;
            }
            
            .download-post-btn svg {
                width: 20px;
                height: 20px;
            }
        }
        



        /* Integrated Generate Container - unified button-like object for subscribed users */
        .integrated-generate-container {
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: linear-gradient(45deg, #E1306C 0%, #C13584 25%, #833AB4 50%, #5851DB 75%, #405DE6 100%);
            background-size: 300% 100%;
            color: white;
            border: none;
            border-radius: 12px;
            padding: 18px 24px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.45), 0 0 25px rgba(118, 75, 162, 0.35);
            transition: all 0.3s ease-in-out;
            white-space: nowrap;
            animation: gradientShimmer 6s ease-in-out infinite;
            will-change: transform;
            min-height: 68px;
            flex: 1 1 0;
        }
        
        /* Sweeping light beam for integrated container */
        .integrated-generate-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: -120%;
            width: 100%;
            height: 100%;
            background: linear-gradient(120deg,
                        rgba(255,255,255,0) 0%,
                        rgba(255,255,255,0.55) 50%,
                        rgba(255,255,255,0) 100%);
            transform: skewX(-20deg);
            transition: left 0.7s ease;
            pointer-events: none;
            opacity: 0.65;
        }
        
        /* On hover – sweep the shine across and transform */
        .integrated-generate-container:hover::before {
            left: 200%;
        }
        
        /* Enhanced hover lift / shadow */
        .integrated-generate-container:hover {
            transform: translateY(-3px) scale(1.05);
            background-position: 100% 0;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
        }
        
        /* Generate Text - clean inline design */
        .generate-text {
            color: white;
            font-size: 18px;
            font-weight: 600;
            pointer-events: none;
            user-select: none;
        }
        
        /* Posts Count Group - inline with text */
        .posts-count-group {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            pointer-events: none;
            position: relative;
        }
        
        /* Post count badge - clean clickable pill with modern affordances */
        .post-count-slider {
            position: relative;
            min-width: 42px;
            height: 42px;
            padding: 0 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            user-select: none;
            border-radius: 21px;
            background: rgba(255, 255, 255, 0.7);
            border: 2px solid rgba(255, 255, 255, 0.8);
            overflow: visible;
            touch-action: manipulation;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 2;
            pointer-events: auto;
            box-shadow: 
                0 2px 8px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
        }
        
        /* Subtle pulsing animation to draw attention */
        @keyframes gentlePulse {
            0%, 100% { 
                box-shadow: 
                    0 2px 8px rgba(0, 0, 0, 0.15),
                    inset 0 1px 0 rgba(255, 255, 255, 0.5),
                    0 0 0 0 rgba(255, 255, 255, 0);
            }
            50% { 
                box-shadow: 
                    0 2px 8px rgba(0, 0, 0, 0.15),
                    inset 0 1px 0 rgba(255, 255, 255, 0.5),
                    0 0 0 4px rgba(255, 255, 255, 0.3);
            }
        }
        
        .post-count-slider {
            animation: gentlePulse 3s ease-in-out infinite;
        }
        
        .post-count-slider:hover {
            transform: translateY(-2px) scale(1.05);
            background: rgba(255, 255, 255, 0.9);
            border-color: rgba(255, 255, 255, 0.9);
            box-shadow: 
                0 4px 16px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.8),
                0 0 0 6px rgba(255, 255, 255, 0.25);
            animation: none;
        }
        
        .post-count-slider:active {
            transform: translateY(0) scale(1.02);
            box-shadow: 
                0 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
        }
        
        /* Prevent sticky hover on touch devices */
        .post-count-slider.no-hover:hover {
            transform: none;
            background: rgba(255, 255, 255, 0.7);
            border-color: rgba(255, 255, 255, 0.8);
            box-shadow: 
                0 2px 8px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
            animation: gentlePulse 3s ease-in-out infinite;
        }
        
        .slider-number {
            color: transparent;
            background: linear-gradient(135deg, #E1306C 0%, #C13584 50%, #833AB4 100%);
            -webkit-background-clip: text;
            background-clip: text;
            font-size: 18px;
            font-weight: 800;
            line-height: 1;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            user-select: none;
            position: relative;
            padding: 0 4px;
        }
        
        /* Subtle arrows that appear on hover */
        .slider-number::before,
        .slider-number::after {
            content: '';
            position: absolute;
            width: 0;
            height: 0;
            border-left: 3px solid transparent;
            border-right: 3px solid transparent;
            opacity: 0;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .slider-number::before {
            top: -8px;
            left: 50%;
            transform: translateX(-50%);
            border-bottom: 4px solid rgba(225, 48, 108, 0.8);
        }
        
        .slider-number::after {
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            border-top: 4px solid rgba(225, 48, 108, 0.8);
        }
        
        .post-count-slider:hover .slider-number::before,
        .post-count-slider:hover .slider-number::after {
            opacity: 1;
        }
        
        .post-count-slider:hover .slider-number::before {
            top: -10px;
        }
        
        .post-count-slider:hover .slider-number::after {
            bottom: -10px;
        }
        
        .post-count-slider:hover .slider-number {
            transform: scale(1.1);
        }
        
        @keyframes numberPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.3); }
            100% { transform: scale(1); }
        }
        
        .integrated-generate-container:disabled,
        .integrated-generate-container.disabled,
        .integrated-generate-container.generating {
            opacity: 0.7;
            cursor: not-allowed;
            transform: scale(0.98);
            pointer-events: none;
            transition: all 0.2s ease-out;
        }
        
        .integrated-generate-container:disabled::before,
        .integrated-generate-container.disabled::before,
        .integrated-generate-container.generating::before {
            display: none;
        }
        
        /* Generate button generating state */
        .generate-btn.generating,
        .generate-reel-btn.generating {
            opacity: 0.7;
            cursor: not-allowed;
            transform: scale(0.98);
            pointer-events: none;
            transition: all 0.2s ease-out;
        }
        
        .generate-btn.generating::before,
        .generate-reel-btn.generating::before {
            display: none;
        }

        /* Payment success notification */
        .payment-notification {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 10000;
            max-width: 400px;
            overflow: hidden;
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(40, 167, 69, 0.3);
            animation: slideInRight 0.5s ease-out;
        }

        .payment-success {
            background: linear-gradient(135deg, #28a745, #20c997);
            color: white;
        }

        .payment-notification-content {
            display: flex;
            align-items: center;
            padding: 16px 20px;
            gap: 12px;
        }

        .payment-icon {
            font-size: 24px;
            flex-shrink: 0;
        }

        .payment-text {
            flex: 1;
        }

        .payment-text strong {
            display: block;
            margin-bottom: 4px;
            font-size: 16px;
        }

        .payment-text p {
            margin: 0;
            font-size: 14px;
            opacity: 0.9;
        }

        .payment-close {
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
            padding: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background 0.2s ease;
        }

        .payment-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes slideOutRight {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(100%);
                opacity: 0;
            }
        }

        @keyframes gradientShimmer {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        /* Responsive styling for generate buttons row */
        @media (max-width: 768px) {
            .generate-buttons-row {
                flex-direction: column;
                gap: 12px;
                max-width: 100%;
            }
            
            .generate-reel-btn {
                width: 100%;
                font-size: 17px;
                min-height: 64px;
            }
            
            .integrated-generate-container {
                width: 100%;
                font-size: 17px;
                min-height: 64px;
                padding: 16px 20px;
            }
        }

        @media (max-width: 480px) {
            .generate-buttons-row {
                gap: 10px;
            }
            
            .generate-reel-btn {
                font-size: 16px;
                min-height: 60px;
                padding: 14px 18px;
            }
            
            .integrated-generate-container {
                font-size: 16px;
                min-height: 60px;
                padding: 14px 18px;
            }
            
            .post-count-slider {
                min-width: 36px;
                height: 36px;
                padding: 0 10px;
            }
            
            .slider-number {
                font-size: 16px;
            }
            
            .generate-text {
                font-size: 16px;
            }
        }
        
        /* Responsive design - simplified */
        @media (max-width: 768px) {
            .title {
                font-size: 40px;
            }
            
            .subtitle {
                font-size: 17.8px;
            }
            
            .form-container {
                padding: 24px;
            }
            
            /* Banner responsive */
            .top-banner {
                left: 16px;
                right: 16px;
                padding: 0 24px;
                height: 56px;
                border-radius: 28px;
            }
            
            .banner-nav {
                display: none;
            }
            
            .banner-logo {
                font-size: 20px;
            }
            
            .container {
                margin-top: 130px;
            }
        }
        

        
        @media (max-width: 480px) {
            .title {
                font-size: 38px;
            }
            
            .subtitle {
                font-size: 17.5px;
            }
            
            .container {
                margin-top: 100px;
                padding: 0 16px;
            }
            
            .form-container {
                padding: 20px;
                margin: 0 -10px;
            }
            
            /* Banner mobile */
            .top-banner {
                top: 8px;
                left: 12px;
                right: 12px;
                padding: 0 20px;
                height: 52px;
                border-radius: 26px;
            }
            
            .banner-logo {
                font-size: 18px;
            }
            
            .login-button {
                padding: 6px 16px;
                font-size: 13px;
            }
            
            .avatar-small {
                width: 28px;
                height: 28px;
            }
        }
        
        /* Small screens - minimal adjustments */
        @media (max-width: 400px) {
            .form-container {
                padding: 16px;
                margin: 0 -8px;
            }
        }
        
        /* Error states and animations */
        .upload-error {
            border-color: #ff3b30 !important;
            background: rgba(255, 59, 48, 0.05) !important;
        }
        
        .input-error {
            border-color: #ff3b30 !important;
            background: rgba(255, 59, 48, 0.05) !important;
        }
        
        .error-message {
            color: #ffffff;
            font-weight: 500;
            font-size: 14px;
            padding: 10px 16px;
            border-radius: 8px;
            background-color: #ff3b30;
            box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
            display: block;
            position: fixed;
            left: 50%;
            transform: translateX(-50%) translateY(-120%);
            z-index: 10000;
            min-width: 300px;
            max-width: 500px;
            text-align: center;
            animation: slideDown 0.4s ease-out forwards;
            /* Top position will be set dynamically via JavaScript */
        }
        
        /* Slide down animation */
        @keyframes slideDown {
            0% {
                transform: translateX(-50%) translateY(-120%);
                opacity: 0;
            }
            100% {
                transform: translateX(-50%) translateY(0);
                opacity: 1;
            }
        }
        
        /* Slide up animation for hiding */
        @keyframes slideUp {
            0% {
                transform: translateX(-50%) translateY(0);
                opacity: 1;
            }
            100% {
                transform: translateX(-50%) translateY(-120%);
                opacity: 0;
            }
        }
        
        .error-message.hiding {
            animation: slideUp 0.3s ease-in forwards;
        }
        
        /* Mobile responsive for error messages */
        @media (max-width: 768px) {
            .error-message {
                min-width: calc(100% - 40px);
                max-width: calc(100% - 40px);
                padding: 10px 16px;
                font-size: 13px;
            }
        }
        
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }
        
        .shake {
            animation: shake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
        }
        
        .all-criteria-met {
            border-color: #34c759 !important;
            box-shadow: 0 0 15px rgba(52, 199, 89, 0.3), 0 0 0 2px rgba(52, 199, 89, 0.15) !important;
            animation: softGlow 2s infinite alternate;
        }
        
        @keyframes softGlow {
            from { box-shadow: 0 0 15px rgba(52, 199, 89, 0.2), 0 0 0 2px rgba(52, 199, 89, 0.1); }
            to { box-shadow: 0 0 20px rgba(52, 199, 89, 0.4), 0 0 0 3px rgba(52, 199, 89, 0.2); }
        }
        

        
        /* Instagram Post Modal Styles */
        .instagram-modal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .instagram-modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 1;
        }
        
        .instagram-modal-content {
            background: white;
            border-radius: 16px;
            width: 90%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }
        
        .instagram-modal.active .instagram-modal-content {
            transform: scale(1);
        }
        
        .instagram-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px;
            border-bottom: 1px solid #eee;
        }
        
        .instagram-modal-header h3 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
            color: #333;
        }
        
        .instagram-modal-close {
            background: none;
            border: none;
            font-size: 24px;
            color: #666;
            cursor: pointer;
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }
        
        /* Close button positioning for Instagram Post Modal (no header) */
        .instagram-post-modal-content > .instagram-modal-close {
            position: absolute;
            top: 12px;
            right: 12px;
            z-index: 10;
        }
        
        .instagram-post-modal-content {
            position: relative;
        }
        
        .instagram-modal-close:hover {
            background: #f5f5f5;
            color: #333;
        }
        
        .instagram-modal-body {
            padding: 24px;
        }
        
        /* Regenerate Voice Modal Styles */
        .regenerate-voice-modal-content {
            max-width: 450px;
            position: relative;
        }
        
        .regenerate-voice-modal-content > .instagram-modal-close {
            position: absolute;
            top: 12px;
            right: 12px;
            z-index: 1;
        }
        
        .regenerate-voice-modal-content[dir="rtl"] > .instagram-modal-close {
            right: auto;
            left: 12px;
        }
        
        /* RTL support for edit speech modal */
        .regenerate-voice-modal-content[dir="rtl"] {
            text-align: right;
        }
        
        .regenerate-voice-modal-content[dir="rtl"] .instagram-post-actions {
            flex-direction: row-reverse;
        }
        
        .regenerate-voice-form {
            margin-bottom: 20px;
        }
        
        .regenerate-voice-label {
            display: block;
            font-size: 15px;
            font-weight: 500;
            color: #333;
            margin-bottom: 6px;
        }
        
        .regenerate-voice-subtitle {
            display: block;
            font-size: 13px;
            font-weight: 400;
            color: #666;
            margin-bottom: 12px;
        }
        
        .regenerate-voice-textarea {
            width: 100%;
            padding: 14px 16px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-size: 15px;
            font-family: inherit;
            resize: none;
            transition: all 0.2s ease;
            background: #fafafa;
            color: #333;
            box-sizing: border-box;
        }
        
        .regenerate-voice-textarea:focus {
            outline: none;
            border-color: #833AB4;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(131, 58, 180, 0.1);
        }
        
        .regenerate-voice-textarea::placeholder {
            color: #999;
        }
        
        .regenerate-voice-hint {
            font-size: 12px;
            color: #888;
            margin-top: 8px;
            font-style: italic;
        }
        
        .regenerate-voice-submit-btn {
            background: linear-gradient(45deg, #0099ff 0%, #0066cc 50%, #0052a3 100%);
            border: none;
            color: white;
            font-weight: 600;
            padding: 12px 24px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
        }
        
        .regenerate-voice-submit-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
        }
        
        .regenerate-voice-submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20% { transform: translateX(-6px); }
            40% { transform: translateX(6px); }
            60% { transform: translateX(-4px); }
            80% { transform: translateX(4px); }
        }
        
        /* Instagram modal content styles */
        .instagram-connect-prompt {
            text-align: center;
            padding: 20px 0;
        }
        
        .instagram-connect-prompt-icon {
            font-size: 48px;
            margin-bottom: 16px;
            display: block;
        }
        
        .instagram-connect-prompt h3 {
            margin: 0 0 12px 0;
            font-size: 20px;
            font-weight: 600;
            color: #333;
        }
        
        .instagram-connect-prompt p {
            margin: 0 0 16px 0;
            color: #666;
            line-height: 1.5;
        }
        
        .instagram-preview {
            text-align: center;
            margin-bottom: 24px;
        }
        
        .instagram-preview-image {
            width: 100%;
            max-width: 300px;
            height: 300px;
            object-fit: cover;
            border-radius: 12px;
            margin-bottom: 16px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        /* Instagram Modal Reel Video Support - Reuses phone mockup styles */
        .instagram-modal .reel-video-container {
            position: relative;
            display: inline-block;
            width: 100%;
            max-width: 300px;
            margin-bottom: 16px;
        }
        
        .instagram-modal .post-video {
            width: 100%;
            height: 300px;
            display: block;
            object-fit: cover;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .instagram-modal .post-video.reel-video {
            aspect-ratio: unset;
            max-height: 300px;
            object-fit: contain;
            background: #000;
            cursor: pointer;
        }
        
        /* Scale down the reel play overlay for modal */
        .instagram-modal .reel-play-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 60px; /* Smaller than phone mockup's var(--reel-large-size) which is 80px */
            height: 60px;
            background: var(--reel-overlay-bg);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: var(--reel-overlay-blur);
            -webkit-backdrop-filter: var(--reel-overlay-blur);
            transition: var(--reel-transition);
            pointer-events: none;
            z-index: 10;
            box-shadow: var(--reel-overlay-shadow);
        }
        
        .instagram-modal .reel-play-overlay.hidden {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.8);
        }
        
        .instagram-modal .reel-play-triangle {
            width: 0;
            height: 0;
            border-left: 18px solid var(--reel-triangle-color); /* Smaller than phone mockup's var(--reel-large-triangle-size) which is 24px */
            border-top: calc(18px * 0.6) solid transparent;
            border-bottom: calc(18px * 0.6) solid transparent;
            margin-left: calc(18px / 6); /* Slight offset to center triangle visually */
        }
        
        .instagram-username-section {
            margin-bottom: 16px;
            padding: 12px;
            background: #f8f9fa;
            border-radius: 8px;
        }
        
        .instagram-preview-caption {
            background: #f8f9fa;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 12px;
            min-height: 60px;
            text-align: left;
            font-size: 14px;
            line-height: 1.4;
            outline: none;
            transition: border-color 0.2s ease;
        }
        
        .instagram-preview-caption:focus {
            border-color: #E1306C;
            box-shadow: 0 0 0 2px rgba(225, 48, 108, 0.2);
        }
        
        .instagram-post-actions {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 20px;
        }
        
        .instagram-publish-btn {
            background: linear-gradient(45deg, #E1306C 0%, #C13584 25%, #833AB4 50%, #5851DB 75%, #405DE6 100%);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 12px 20px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s ease;
            text-decoration: none;
        }
        
        .instagram-publish-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
        }
        
        .disconnect-btn {
            background: #dc3545 !important;
            border: 2px solid #dc3545 !important;
            color: white !important;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            text-decoration: none;
        }
        
        .disconnect-btn:hover {
            background: #c82333 !important;
            border-color: #bd2130 !important;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
        }
        
        /* Schedule interval selector styles */
        .schedule-btn-container {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px 12px;
            gap: 4px;
        }
        
        .schedule-btn-content {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 14px;
            font-weight: 500;
            pointer-events: none;
        }
        
        .schedule-interval-slider {
            position: relative;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            user-select: none;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: auto;
            backdrop-filter: blur(10px);
        }
        
        .schedule-interval-slider::before {
            content: '';
            position: absolute;
            inset: -2px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.3);
            z-index: -1;
            opacity: 0;
            transition: opacity 0.2s ease;
        }
        
        .schedule-interval-slider:hover {
            transform: scale(1.05);
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
            box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
        }
        
        .schedule-interval-slider:hover::before {
            opacity: 1;
        }
        
        .schedule-interval-slider:active {
            transform: scale(1.02);
            background: rgba(255, 255, 255, 0.25);
        }
        
        .interval-number {
            color: white;
            font-size: 16px;
            font-weight: 700;
            line-height: 1;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
            user-select: none;
        }
        
        .schedule-interval-slider:hover .interval-number {
            transform: scale(1.05);
        }
        
        /* Prevent text shifting when 's' appears/disappears */
        #interval-text {
            display: inline-block;
            min-width: 35px;
            text-align: left;
        }
        
        .instagram-cancel-btn {
            background: #f5f5f5;
            color: #666;
            border: none;
            border-radius: 8px;
            padding: 12px 20px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .instagram-cancel-btn:hover {
            background: #e9ecef;
            color: #333;
        }

        /* Instagram disconnect modal specific styles */
        .disconnect-warning {
            text-align: center;
            padding: 20px 0;
        }
        
        .disconnect-warning-icon {
            font-size: 48px;
            margin-bottom: 16px;
            display: block;
        }
        
        .disconnect-warning h4 {
            margin: 0 0 16px 0;
            font-size: 18px;
            font-weight: 600;
            color: #333;
        }
        
        .disconnect-warning p {
            margin: 0 0 12px 0;
            color: #666;
            line-height: 1.5;
        }
        
        .disconnect-warning ul {
            text-align: left;
            margin: 16px 0;
            padding-left: 24px;
            color: #666;
            line-height: 1.6;
        }
        
        .disconnect-warning li {
            margin-bottom: 8px;
        }
        
        .disconnect-confirm-btn {
            background: linear-gradient(45deg, #dc3545 0%, #c82333 100%) !important;
        }
        
        .disconnect-confirm-btn:hover {
            background: linear-gradient(45deg, #c82333 0%, #bd2130 100%) !important;
            box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
        }
        
        .instagram-posting-status {
            text-align: center;
            padding: 40px 20px;
        }
        
        .instagram-posting-spinner {
            width: 48px;
            height: 48px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #E1306C;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .instagram-posting-message {
            font-size: 18px;
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
        }
        
        .instagram-posting-submessage {
            font-size: 14px;
            color: #666;
        }
        
        .instagram-post-success {
            text-align: center;
            padding: 20px 0;
        }
        
        .instagram-success-icon {
            width: 64px;
            height: 64px;
            background: #34c759;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            font-weight: bold;
            margin: 0 auto 16px;
        }
        
        .instagram-success-message {
            font-size: 20px;
            font-weight: 600;
            color: #333;
            margin-bottom: 12px;
        }
        
        .instagram-success-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: #E1306C;
            text-decoration: none;
            font-weight: 600;
            padding: 8px 16px;
            border: 2px solid #E1306C;
            border-radius: 8px;
            transition: all 0.2s ease;
        }
        
        .instagram-success-link:hover {
            background: #E1306C;
            color: white;
            transform: translateY(-1px);
        }
        
        .tutorial-link {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
        }
        
        .tutorial-link:hover {
            text-decoration: underline;
        }
        
        /* Tutorial modal specific styles */
        .tutorial-step {
            margin-bottom: 24px;
        }
        
        .step-content h4 {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            margin-bottom: 12px;
        }
        
        .step-content p {
            color: #666;
            line-height: 1.5;
            margin-bottom: 16px;
        }
        
        .tutorial-steps-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .tutorial-list-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 0;
            color: #333;
        }
        
        .tutorial-step-number {
            width: 24px;
            height: 24px;
            background: #E1306C;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
            flex-shrink: 0;
        }
        
        .tutorial-help {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 16px;
            margin-top: 20px;
        }
        
        .tutorial-help p {
            margin: 0 0 8px 0;
            color: #333;
        }
        
        .tutorial-help p:last-of-type {
            margin-bottom: 12px;
        }
        
        .official-guide-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: #E1306C;
            text-decoration: none;
            font-weight: 600;
            padding: 8px 12px;
            border: 1px solid #E1306C;
            border-radius: 6px;
            transition: all 0.2s ease;
            font-size: 14px;
        }
        
        .official-guide-link:hover {
            background: #E1306C;
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(225, 48, 108, 0.3);
        }
        
        
        /* Define CSS variables if not already defined */
        :root {
            --primary: #0095f6;
            --dark: #333;
            --text-muted: #666;
            --hashtag-blue: #3f729b;
            --success-green: #34c759;
            --error-red: #ff3b30;
            --surface: #fff;
            --light-gray: #ddd;
        }
        
        /* Add CSS for hashtags */
        .hashtag {
            color: var(--hashtag-blue);
            font-weight: 500;
        }
        
        /* Rate limit modal styles */
        .rate-limit-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            backdrop-filter: blur(4px);
        }
        
        .rate-limit-modal {
            background: var(--surface);
            border-radius: 16px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            animation: modalSlideIn 0.3s ease-out;
        }
        
        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-30px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        
        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 24px 24px 16px;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .modal-header h3 {
            margin: 0;
            font-size: 20px;
            font-weight: 600;
            color: var(--dark);
        }
        
        .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--text-muted);
            padding: 0;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        
        .modal-close:hover {
            background: var(--light-gray);
            color: var(--dark);
        }
        
        .modal-body {
            padding: 24px;
        }
        
        .modal-footer {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
            padding: 16px 24px 24px;
            border-top: 1px solid var(--light-gray);
        }
        
        .btn {
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 500;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        
        .btn-primary:hover {
            background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
            transform: translateY(-1px);
        }
        
        .btn-secondary {
            background: var(--light-gray);
            color: var(--text-muted);
            border: 1px solid var(--light-gray);
        }
        
        .btn-secondary:hover {
            background: rgba(0, 0, 0, 0.05);
            color: var(--dark);
        }
        
        /* Rate limit items in modal */
        .rate-limit-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 16px;
            border-radius: 12px;
            transition: background-color 0.2s ease;
            margin-bottom: 16px;
        }
        
        .rate-limit-item.rate-limit-info {
            background-color: rgba(0, 122, 255, 0.08);
            border: 1px solid rgba(0, 122, 255, 0.2);
        }
        
        .rate-limit-item.rate-limit-warning {
            background-color: rgba(255, 149, 0, 0.08);
            border: 1px solid rgba(255, 149, 0, 0.2);
        }
        
        .rate-limit-item.rate-limit-success {
            background-color: rgba(52, 199, 89, 0.08);
            border: 1px solid rgba(52, 199, 89, 0.2);
        }
        
        .rate-limit-icon {
            font-size: 24px;
            flex-shrink: 0;
            margin-top: 2px;
        }
        
        .rate-limit-content {
            flex: 1;
        }
        
        .rate-limit-title {
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 4px;
            font-size: 16px;
        }
        
        .rate-limit-description {
            color: var(--text-muted);
            font-size: 14px;
            line-height: 1.4;
        }
        
        :root {
            /* 
            BREAKPOINTS - Single Source of Truth
            Desktop: > 1024px (default)
            Tablet:  <= 1024px 
            Mobile:  <= 768px 
            */
            
            /* Responsive System - All sizes defined here */
            --modal-padding: 40px;
            --modal-padding-tablet: 32px;
            --modal-padding-mobile: 24px;
            
            --header-side-padding: 80px;
            --header-side-padding-mobile: 60px;
            --header-top-padding-mobile: 20px;
            
            --plan-padding: 32px 24px;
            --plan-padding-tablet: 28px 20px;
            --plan-padding-mobile: 16px 12px;
            
            --plan-height: 320px;
            --plan-height-tablet: 300px;
            --plan-height-mobile: 180px;
            
            --plan-gap: 24px;
            --plan-gap-tablet: 20px;
            --plan-gap-mobile: 16px;
            
            --title-size: 36px;
            --title-size-tablet: 32px;
            --title-size-mobile: 28px;
            
            --subtitle-size: 20px;
            --subtitle-size-mobile: 18px;
            
            --close-size: 48px;
            --close-size-mobile: 40px;
            
            --badge-size: 11px;
            --badge-size-mobile: 9px;
            
            --plan-name-size: 24px;
            --plan-name-size-mobile: 16px;
            
            --plan-posts-size: 42px;
            --plan-posts-size-mobile: 24px;
            
            --plan-posts-label-size: 14px;
            --plan-posts-label-size-mobile: 11px;
            
            --plan-price-size: 13px;
            --plan-price-size-mobile: 10px;
            
            --plan-button-padding: 16px 24px;
            --plan-button-padding-mobile: 12px 16px;
            
            --plan-button-size: 14px;
            --plan-button-size-mobile: 12px;
            
            /* Design System */
            --modal-bg: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
            --plan-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
            --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
            --gradient-badge: linear-gradient(135deg, #f472b6 0%, #c084fc 50%, #fb7185 100%);
            --hover-overlay: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 50%, rgba(236, 72, 153, 0.05) 100%);
            
            --transition-fast: 0.2s ease-out;
            --transition-smooth: 0.3s ease-out;
            --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.08);
            --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
            --shadow-popular: 0 12px 40px rgba(99, 102, 241, 0.15);
        }
        
        /* ================================
           SKELETON LOADERS
           Progressive loading UI - shows immediately while content loads
           ================================ */
        .skeleton-loader {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #f4f6f8;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding-top: 20px;
            opacity: 1;
            transition: opacity 0.3s ease;
            pointer-events: all;
        }
        
        .skeleton-loader.hidden {
            opacity: 0;
            pointer-events: none;
        }
        
        /* Skeleton banner */
        .skeleton-banner {
            width: calc(100% - 40px);
            max-width: 1000px;
            height: 60px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 60px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
            margin-bottom: 80px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 32px;
        }
        
        /* Skeleton content */
        .skeleton-content {
            width: calc(100% - 40px);
            max-width: 1000px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        /* Skeleton shimmer animation */
        .skeleton-shimmer {
            background: linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.0) 0%,
                rgba(255, 255, 255, 0.3) 50%,
                rgba(255, 255, 255, 0.0) 100%
            );
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
        }
        
        @keyframes shimmer {
            0% {
                background-position: -200% 0;
            }
            100% {
                background-position: 200% 0;
            }
        }
        
        /* Skeleton box */
        .skeleton-box {
            background: rgba(255, 255, 255, 0.6);
            border-radius: 12px;
            position: relative;
            overflow: hidden;
        }
        
        .skeleton-box::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(
                90deg,
                transparent 0%,
                rgba(255, 255, 255, 0.5) 50%,
                transparent 100%
            );
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
        }
        
        /* Skeleton title */
        .skeleton-title {
            width: 400px;
            height: 60px;
            margin-bottom: 16px;
        }
        
        /* Skeleton subtitle */
        .skeleton-subtitle {
            width: 300px;
            height: 24px;
            margin-bottom: 40px;
        }
        
        /* Skeleton form */
        .skeleton-form {
            width: 100%;
            max-width: 600px;
            height: 400px;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(30px);
            border-radius: 20px;
            padding: 32px;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.12),
                0 2px 16px rgba(0, 0, 0, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.18);
        }
        
        /* Hide real content until loaded */
        body:not(.ui-ready) .container {
            opacity: 0;
        }
        
        body.ui-ready .container {
            opacity: 1;
            transition: opacity 0.3s ease;
        }
        
        @media (max-width: 768px) {
            .skeleton-banner {
                height: 56px;
                border-radius: 28px;
                margin-bottom: 60px;
            }
            
            .skeleton-title {
                width: 80%;
                height: 48px;
            }
            
            .skeleton-subtitle {
                width: 70%;
                height: 20px;
            }
        }

        /* Drag-over effect for textarea */
        .textarea-container.drag-over {
            border-color: #E1306C !important;
            box-shadow: 0 0 15px rgba(225, 48, 108, 0.4) !important;
            background: rgba(255, 255, 255, 1) !important;
        }

        .textarea-container.drag-over::after {
            content: 'Drop images to upload';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            color: #E1306C;
            font-size: 18px;
            font-weight: 600;
            border-radius: 20px;
            z-index: 20;
            pointer-events: none;
        }
        .footer .footer-container {
            max-width: 100% !important;
            padding: 20px 40px 10px !important;
        }
        
        @media (max-width: 768px) {
            .footer .footer-container {
                padding: 20px 20px 10px !important;
            }
        }
        /* Immediately hide non-auth UI elements on {{ app_route_path }} */
        /* Hide logged-in elements on normal index until explicitly shown */

/* ==========================================================
   Authentication UI Visibility
   
   DESIGN: CSS sets defaults, JS toggles with inline styles
   - Default: login button visible, avatar hidden
   - JS sets inline styles with !important to toggle
   ========================================================== */

/* Default state (logged out) - JS updates with inline styles */
.avatar-container { display: none; }
#login-button { display: inline-flex; }
