        /* Auth & Credits Styles */
        .nav-bar {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 15px;
            padding: 20px 0;
            margin-bottom: 20px;
            position: relative;
            z-index: 100;
        }

        /* Prevent overlap on small screens */
        @media (max-width: 600px) {
            .nav-bar {
                flex-direction: column;
                gap: 10px;
                align-items: flex-end;
            }
        }

        .user-status {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(0, 0, 0, 0.03);
            padding: 6px 16px;
            border-radius: 100px;
            border: 1px solid var(--border-color);
        }

        .credits-badge {
            display: flex;
            align-items: center;
            gap: 6px;
            background: linear-gradient(135deg, var(--accent-gold), #b8860b);
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-weight: 700;
            font-size: 0.85rem;
            box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
            cursor: pointer;
            transition: var(--transition);
        }

        .credits-badge:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
        }

        .btn-topup {
            background: var(--accent-red);
            color: white;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
            border: none;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-topup:hover {
            background: #b71c1c;
        }

        .user-email {
            font-size: 0.85rem;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .btn-auth {
            padding: 8px 20px;
            font-size: 0.85rem;
        }

        .btn-info-link {
            display: flex;
            align-items: center;
            gap: 6px;
            text-decoration: none;
            color: var(--text-secondary);
            font-weight: 500;
            font-size: 0.9rem;
            padding: 6px 12px;
            border-radius: 20px;
            background: #f5f5f5;
            transition: all 0.2s;
        }

        .btn-info-link:hover {
            background: #e0e0e0;
            color: #000;
            transform: translateY(-1px);
        }

        /* User Avatar */
        .user-avatar {
            width: 32px;
            height: 32px;
            background: #f0f0f0;
            color: var(--text-color);
            border: 1px solid var(--border-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        /* Tooltips */
        .tooltip-wrapper {
            position: relative;
            display: inline-block;
            margin-left: 8px;
        }

        .tooltip-icon {
            font-size: 0.85rem;
            color: var(--text-secondary);
            cursor: help;
            border: 1px solid #ccc;
            border-radius: 50%;
            width: 16px;
            height: 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-style: normal;
        }

        .tooltip-text {
            visibility: hidden;
            width: 250px;
            background-color: #333;
            color: #fff;
            text-align: left;
            border-radius: 6px;
            padding: 10px;
            position: absolute;
            z-index: 100;
            bottom: 125%;
            /* Position above */
            left: 50%;
            margin-left: -125px;
            /* Center */
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 0.8rem;
            font-weight: 400;
            line-height: 1.4;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }

        .tooltip-text::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #333 transparent transparent transparent;
        }

        .tooltip-wrapper:hover .tooltip-text {
            visibility: visible;
            opacity: 1;
        }

        /* Auth Modal */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            padding: 20px;
        }

        .modal-overlay.visible {
            display: flex;
        }

        .modal-content {
            background: #fff;
            border-radius: 16px;
            width: 100%;
            max-width: 420px;
            padding: clamp(20px, 5vh, 35px) clamp(15px, 5vw, 30px);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
            position: relative;
            border: 1px solid rgba(0, 0, 0, 0.05);
            max-height: 92vh;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: var(--accent-gold) #f1f1f1;
        }

        .modal-content::-webkit-scrollbar {
            width: 6px;
        }

        .modal-content::-webkit-scrollbar-thumb {
            background-color: var(--accent-gold);
            border-radius: 10px;
        }

        /* Redesigned Divider */
        .or-divider {
            display: flex;
            align-items: center;
            text-align: center;
            margin: 28px 0;
            color: #94a3b8;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .or-divider::before,
        .or-divider::after {
            content: '';
            flex: 1;
            border-bottom: 1px solid #f1f5f9;
        }

        .or-divider:not(:empty)::before {
            margin-right: 1.5rem;
        }

        .or-divider:not(:empty)::after {
            margin-left: 1.5rem;
        }

        /* Premium Google Button */
        .google-btn {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 12px 24px;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            color: #1e293b;
            font-family: inherit;
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            margin-top: 10px;
        }

        .google-btn:hover:not(:disabled) {
            background: #f8fafc;
            border-color: #cbd5e1;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            transform: translateY(-1px);
        }

        .google-btn:active {
            transform: translateY(0);
        }

        .google-btn img {
            width: 20px;
            height: 200px;
            /* Fixed via object-fit */
            object-fit: contain;
            height: 20px;
        }

        .google-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            filter: grayscale(1);
        }

        .modal-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .modal-header h2 {
            font-size: 1.5rem;
            margin-bottom: 8px;
            color: var(--text-color);
        }

        .auth-toggle {
            display: flex;
            gap: 10px;
            margin-bottom: 24px;
            padding: 4px;
            background: #f0f0f0;
            border-radius: var(--radius);
        }

        .auth-tab {
            flex: 1;
            padding: 10px;
            text-align: center;
            cursor: pointer;
            border-radius: calc(var(--radius) - 2px);
            font-size: 0.9rem;
            font-weight: 500;
            color: #666;
            transition: all 0.2s;
        }

        .auth-tab.active {
            background: #fff;
            color: var(--text-color);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }

        /* Pricing Modal Specifics */
        .pricing-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            margin-top: 20px;
        }

        @media (min-width: 600px) {
            .pricing-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        .pricing-card {
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 20px;
            text-align: center;
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .pricing-card:hover {
            border-color: var(--accent-gold);
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
        }

        .pricing-card.popular {
            border-color: var(--accent-gold);
            background: rgba(212, 175, 55, 0.02);
            position: relative;
        }

        .pricing-card.popular::after {
            content: 'MOST POPULAR';
            position: absolute;
            top: -10px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--accent-gold);
            color: white;
            font-size: 0.6rem;
            font-weight: 800;
            padding: 4px 10px;
            border-radius: 4px;
        }

        .plan-name {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            margin-bottom: 10px;
        }

        .plan-price {
            font-size: 1.5rem;
            font-weight: 800;
            margin-bottom: 5px;
        }

        .plan-price .currency {
            font-size: 0.9rem;
            vertical-align: super;
        }

        .plan-credits {
            font-size: 0.9rem;
            color: var(--accent-gold);
            font-weight: 700;
            margin-bottom: 20px;
        }

        .payment-methods {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid var(--border-color);
        }

        .payment-methods img {
            height: 25px;
            opacity: 0.7;
        }

        #pricingModal .modal-content {
            max-width: 800px;
        }

        /* ============================================
           CSS VARIABLES & DESIGN TOKENS
           ============================================ */
        :root {
            /* Minimalist Palette */
            --bg-color: #ffffff;
            --text-color: #1a1a1a;
            --text-secondary: #666666;
            --accent-gold: #d4af37;
            --accent-red: #d32f2f;
            --border-color: #e5e5e5;
            --input-bg: #f9f9f9;

            /* Status Colors */
            --success: #2e7d32;
            --error: #d32f2f;
            --info: #0288d1;

            /* Spacing */
            --radius: 8px;
            --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
            --transition: 0.2s ease;
        }

        /* ============================================
           RESET & BASE STYLES
           ============================================ */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg-color);
            color: var(--text-color);
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* ============================================
           LAYOUT
           ============================================ */
        .container {
            max-width: 900px;
            margin: 0 auto;
            padding: 40px 20px;
            width: 100%;
        }

        /* ============================================
           HEADER & LOGO
           ============================================ */
        /* ============================================
           LOGO ANIMATION STYLES
           ============================================ */
        .logo-wrap {
            position: relative;
            height: 120px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            overflow: visible;
        }

        .logo-text-final {
            font-size: 3rem;
            font-weight: 800;
            color: var(--accent-red);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            opacity: 0;
            transform: scale(0.8);
            position: absolute;
            z-index: 2;
            pointer-events: none;
            text-shadow: 0 0 20px rgba(211, 47, 47, 0.2);
        }

        .logo-tile {
            position: absolute;
            width: 15px;
            height: 15px;
            background: var(--accent-red);
            border-radius: 2px;
            z-index: 1;
            box-shadow: 0 0 10px rgba(211, 47, 47, 0.3);
        }

        h1 {
            font-weight: 300;
            font-size: 1.1rem;
            color: var(--text-secondary);
            letter-spacing: 0.05em;
            opacity: 0;
            /* Animated in by GSAP */
        }

        /* ============================================
           UI COMPONENTS
           ============================================ */
        .section {
            margin-bottom: 40px;
            animation: fadeIn 0.8s ease-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

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

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

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

        .label-hint {
            font-weight: 400;
            color: var(--text-secondary);
            font-size: 0.85rem;
            margin-left: 6px;
        }

        /* Minimal Input Styles */
        input[type="number"],
        input[type="email"],
        input[type="password"],
        input[type="text"],
        select {
            width: 100%;
            padding: 12px;
            background: var(--input-bg);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            font-family: inherit;
            color: var(--text-color);
            transition: var(--transition);
        }

        input[type="number"]:focus,
        input[type="email"]:focus,
        input[type="password"]:focus,
        input[type="text"]:focus,
        select:focus {
            outline: none;
            border-color: var(--accent-gold);
            background: #fff;
        }

        .password-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .password-wrapper input {
            padding-right: 45px !important;
        }

        .toggle-password {
            position: absolute;
            right: 12px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
            opacity: 0.5;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            user-select: none;
        }

        .toggle-password:hover {
            opacity: 1;
        }

        /* File Upload */
        .file-upload {
            border: 2px dashed #e0e0e0;
            border-radius: var(--radius);
            padding: 30px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            background: #fafafa;
            position: relative;
        }

        .file-upload:hover {
            border-color: var(--accent-gold);
            background: #fff;
        }

        .file-upload.has-file {
            border-color: var(--success);
            background: rgba(46, 125, 50, 0.05);
        }

        .folder-tag {
            background: rgba(0, 0, 0, 0.05);
            border: 1px solid var(--border-color);
            padding: 2px 10px;
            border-radius: 4px;
            font-size: 0.75rem;
            display: inline-flex;
            align-items: center;
            color: var(--text-color);
            animation: fadeIn 0.3s ease-out;
        }

        .btn-clear:hover {
            background: #ffcdd2 !important;
            color: #b71c1c !important;
        }

        .file-upload input {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
            z-index: 1;
        }

        .file-upload.has-file input {
            pointer-events: none;
            /* Let clicks pass through to the clear button when file is selected */
        }

        .btn-clear {
            position: relative;
            z-index: 10;
        }

        .upload-icon {
            font-size: 2rem;
            margin-bottom: 10px;
            opacity: 0.5;
        }

        .file-name {
            margin-top: 10px;
            font-size: 0.9rem;
            color: var(--success);
            font-weight: 500;
        }

        /* Tabs for Upload Type */
        .tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
            justify-content: center;
        }

        .tab-btn {
            background: none;
            border: none;
            padding: 8px 16px;
            cursor: pointer;
            font-family: inherit;
            color: var(--text-secondary);
            border-bottom: 2px solid transparent;
            transition: var(--transition);
        }

        .tab-btn.active {
            color: var(--text-color);
            border-bottom-color: var(--accent-gold);
            font-weight: 500;
        }

        /* Buttons */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 14px 32px;
            background: var(--text-color);
            color: #fff;
            border: none;
            border-radius: 50px;
            /* Pill shape */
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            text-decoration: none;
            gap: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
            background: #000;
        }

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

        .btn-full {
            width: 100%;
        }

        /* Sliders */
        input[type="range"] {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 4px;
            background: #e0e0e0;
            border-radius: 2px;
            margin: 10px 0;
        }

        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 16px;
            height: 16px;
            background: var(--accent-gold);
            border-radius: 50%;
            cursor: pointer;
            transition: transform 0.1s;
        }

        input[type="range"]::-webkit-slider-thumb:hover {
            transform: scale(1.2);
        }

        .range-wrapper {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .range-value {
            min-width: 50px;
            text-align: right;
            font-weight: 500;
            color: var(--text-secondary);
        }

        /* Collapsible */
        .collapsible-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            cursor: pointer;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 20px;
            color: var(--text-secondary);
        }

        .collapsible-header:hover {
            color: var(--text-color);
        }

        .collapsible-content {
            display: none;
            padding-top: 20px;
        }

        .collapsible-content.open {
            display: block;
        }

        /* Status Bar */
        .status-bar {
            padding: 15px;
            border-radius: var(--radius);
            margin-top: 20px;
            display: none;
            font-size: 0.9rem;
            text-align: center;
        }

        .status-bar.visible {
            display: block;
        }

        .success {
            background: #e8f5e9;
            color: #2e7d32;
        }

        .error {
            background: #ffebee;
            color: #c62828;
        }

        .info {
            background: #e3f2fd;
            color: #0277bd;
        }

        /* Loader */
        .spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(0, 0, 0, 0.1);
            border-top-color: var(--text-color);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-right: 8px;
        }

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

        /* Result Section */
        .result-section {
            display: none;
            margin-top: 40px;
            text-align: center;
        }

        .result-section.visible {
            display: block;
            animation: fadeIn 0.5s ease-out;
        }

        .result-img {
            max-width: 100%;
            border-radius: var(--radius);
            box-shadow: var(--shadow-subtle);
            margin-bottom: 20px;
            display: block;
        }

        /* --- Premium Loupe Styles --- */
        #resultWrapper {
            position: relative;
            display: inline-block;
            margin: 0 auto;
            border-radius: var(--radius);
            overflow: hidden;
            cursor: crosshair;
        }

        .loupe {
            position: absolute;
            border: 3px solid #fff;
            border-radius: 50%;
            cursor: none;
            width: 150px;
            height: 150px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
            display: none;
            pointer-events: none;
            z-index: 10;
            background-repeat: no-repeat;
        }

        @media (max-width: 600px) {
            .loupe {
                width: 120px;
                height: 120px;
            }
        }

        /* Footer */
        footer {
            margin-top: auto;
            padding: 40px 0;
            text-align: center;
            font-size: 0.8rem;
            color: #999;
            border-top: 1px solid #f0f0f0;
        }

        /* Checkbox & Radio */
        .checkbox-wrapper,
        .radio-group {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        input[type="checkbox"],
        input[type="radio"] {
            accent-color: var(--accent-gold);
            width: 18px;
            height: 18px;
        }

        /* SEO & Info Sections */
        .info-section {
            margin-top: 80px;
            padding-top: 40px;
            border-top: 1px solid var(--border-color);
        }

        .info-section h2 {
            font-weight: 400;
            font-size: 1.8rem;
            margin-bottom: 30px;
            text-align: center;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-bottom: 60px;
        }

        .feature-card {
            padding: 20px;
            background: #fafafa;
            border-radius: var(--radius);
            border: 1px solid var(--border-color);
        }

        .feature-card h3 {
            font-size: 1.1rem;
            margin-bottom: 12px;
            color: var(--text-color);
        }

        .faq-item {
            margin-bottom: 15px;
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            overflow: hidden;
        }

        .faq-item summary {
            padding: 15px 20px;
            background: #fff;
            cursor: pointer;
            font-weight: 500;
            list-style: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .faq-item summary::-webkit-details-marker {
            display: none;
        }

        .faq-item summary::after {
            content: '+';
            font-size: 1.2rem;
        }

        .faq-item[open] summary::after {
            content: '-';
        }

        .faq-item p {
            padding: 0 20px 20px;
            color: var(--text-secondary);
            font-size: 0.95rem;
        }

        /* Showcase Gallery */
        .showcase-section {
            padding: 100px 0;
            background: #fff;
            border-top: 1px solid var(--border-color);
        }

        .showcase-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
            margin-top: 50px;
        }

        .showcase-item {
            position: relative;
            border-radius: var(--radius);
            overflow: hidden;
            background: #f9f9f9;
            transition: transform 0.3s ease;
            cursor: pointer;
        }

        .showcase-item:hover {
            transform: translateY(-5px);
        }

        .showcase-media {
            position: relative;
            aspect-ratio: 1/1;
            overflow: hidden;
        }

        .showcase-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .showcase-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 20px;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
            color: #fff;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .showcase-item:hover .showcase-overlay {
            opacity: 1;
        }

        .showcase-title {
            font-size: 1.1rem;
            font-weight: 500;
            margin-bottom: 5px;
        }

        .showcase-tag {
            font-size: 0.8rem;
            opacity: 0.8;
            background: rgba(255, 255, 255, 0.2);
            padding: 2px 8px;
            border-radius: 10px;
            display: inline-block;
        }

        .try-sample-btn {
            margin-top: 15px;
            padding: 8px 16px;
            font-size: 0.85rem;
            border: 1px solid rgba(255, 255, 255, 0.5);
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .try-sample-btn:hover {
            background: #fff;
            color: #000;
        }

        /* Promotional Banner */
        .promo-banner {
            background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
            color: #1a1a1a;
            text-align: center;
            padding: 15px 20px;
            margin-bottom: 30px;
            border-radius: var(--radius);
            box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
            animation: pulse-glow 2s ease-in-out infinite;
        }

        @keyframes pulse-glow {

            0%,
            100% {
                box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
            }

            50% {
                box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
            }
        }

        .promo-banner h3 {
            margin: 0 0 8px 0;
            font-size: 1.3rem;
            font-weight: 700;
        }

        .promo-banner p {
            margin: 0;
            font-size: 0.95rem;
        }

        .promo-code {
            display: inline-block;
            background: rgba(0, 0, 0, 0.1);
            padding: 4px 12px;
            border-radius: 5px;
            font-weight: 700;
            font-size: 1.1rem;
            letter-spacing: 1px;
            margin: 0 5px;
        }

        .promo-banner .btn {
            margin-top: 10px;
            background: #1a1a1a;
            color: #ffd700;
            padding: 10px 24px;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .promo-banner .btn:hover {
            background: #000;
            transform: translateY(-2px);
        }