        :root {
            --bg-color: #0f0f0f;
            --card-bg: #1a1a1a;
            --text-color: #ffffff;
            --accent-color: #00d1ff;
            --border-color: rgba(255, 255, 255, 0.1);
        }

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

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        header {
            padding: 20px 5%;
            background: rgba(15, 15, 15, 0.8);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--border-color);
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: white;
            font-weight: 700;
        }

        .logo img {
            width: 30px;
            height: 30px;
        }

        main {
            flex: 1;
            margin-top: 100px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            max-width: 100%;
        }

        .hero h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            text-align: center;
            background: linear-gradient(to right, #fff, #888);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .upload-zone {
            width: 100%;
            max-width: 600px;
            padding: 50px;
            background: linear-gradient(135deg, rgba(0, 209, 255, 0.05) 0%, rgba(0, 209, 255, 0.02) 100%);
            border: 2px dashed rgba(0, 209, 255, 0.3);
            border-radius: 24px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-bottom: 30px;
        }

        .upload-zone:hover {
            border-color: var(--accent-color);
            background: rgba(0, 209, 255, 0.08);
            transform: scale(1.02);
        }

        .btn-action {
            background: white;
            color: black;
            border: none;
            padding: 15px 40px;
            border-radius: 50px;
            font-weight: 700;
            cursor: pointer;
            transition: 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
        }

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

        #runBtn {
            background: white !important;
            color: black !important;
            border: none !important;
        }

        #runBtn:hover {
            background: #f0f0f0 !important;
        }

        .preview-container {
            display: none;
            width: 100%;
            max-width: 700px;
            margin-top: 40px;
            margin-left: auto;
            margin-right: auto;
            background: var(--card-bg);
            border-radius: 20px;
            border: 1px solid var(--border-color);
            padding: 24px;
            box-shadow: 0 20px 60px rgba(0, 209, 255, 0.08);
        }

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

        .preview-title {
            font-size: 0.95rem;
            font-weight: 600;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #999;
        }

        .preview-subtitle {
            font-size: 0.85rem;
            color: #666;
        }

        .preview-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 14px;
            width: 100%;
        }

        .img-card {
            background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
            border-radius: 16px;
            padding: 16px;
            border: 1px solid rgba(0, 209, 255, 0.15);
            position: relative;
            transition: border-color 0.3s;
        }

        .img-card:hover {
            border-color: var(--border-color);
        }

        .img-wrapper {
            width: 100%;
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
        }

        .img-wrapper img {
            max-width: 100%;
            height: auto;
            display: block;
        }

        .badge {
            position: absolute;
            top: 20px;
            left: 20px;
            background: rgba(0, 0, 0, 0.7);
            padding: 5px 12px;
            border-radius: 5px;
            font-size: 11px;
            font-weight: 700;
        }

        .preview-actions {
            margin-top: 20px;
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: center;
            align-items: center;
        }

        .preview-actions button {
            background: linear-gradient(135deg, rgba(0, 209, 255, 0.2) 0%, rgba(0, 209, 255, 0.05) 100%) !important;
            border: 1px solid rgba(0, 209, 255, 0.3) !important;
            color: var(--accent-color) !important;
            transition: all 0.3s;
        }

        .preview-actions button:hover {
            background: rgba(0, 209, 255, 0.15) !important;
            border-color: var(--accent-color) !important;
        }

        .hint-text {
            font-size: 0.78rem;
            color: #666;
        }

        footer {
            padding: 40px 5%;
            border-top: 1px solid var(--border-color);
            text-align: center;
            font-size: 13px;
            color: #666;
        }

        .footer-links {
            margin-bottom: 15px;
            display: flex;
            justify-content: center;
            gap: 20px;
        }

        .footer-links a {
            color: #888;
            text-decoration: none;
        }

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

        /* Loader */
        .loader {
            width: 20px;
            height: 20px;
            border: 2px solid #ccc;
            border-top-color: #000;
            border-radius: 50%;
            animation: spin 1s infinite linear;
            display: none;
        }

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

        @media (max-width: 768px) {
            .preview-grid {
                grid-template-columns: 1fr;
            }

            .preview-actions {
                flex-direction: column-reverse;
                align-items: stretch;
            }

            .hint-text {
                text-align: center;
            }

            .btn-action {
                width: 100%;
                justify-content: center;
            }
        }