
        :root {
            --primary: #6c63ff;
            --primary-dark: #554fd8;
            --secondary: #ff6584;
            --dark: #2a2a3c;
            --light: #f8f9fa;
            --gray: #e9ecef;
            --shadow: 0 10px 30px rgba(0,0,0,0.1);
            --radius: 16px;
            --gradient: linear-gradient(135deg, #6c63ff 0%, #ff6584 100%);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            color: var(--dark);
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1300px;
            margin: 0 auto;
        }

        header {
            text-align: center;
            padding: 40px 0 30px;
            position: relative;
        }

        .header-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.05;
            z-index: -1;
        }

        h1 {
            font-size: 3rem;
            margin-bottom: 15px;
            background: var(--gradient);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            font-weight: 800;
            letter-spacing: -0.5px;
        }

        .subtitle {
            font-size: 1.3rem;
            color: #666;
            max-width: 700px;
            margin: 0 auto 20px;
            line-height: 1.6;
        }

        .credit {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(108, 99, 255, 0.1);
            padding: 8px 16px;
            border-radius: 50px;
            color: var(--primary);
            font-weight: 600;
            margin-top: 10px;
        }

        .credit i {
            color: var(--secondary);
        }

        .app-container {
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
            margin-top: 30px;
        }

        .card {
            background: white;
            border-radius: var(--radius);
            padding: 30px;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }

        .upload-section {
            flex: 1;
            min-width: 320px;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        .upload-section::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: var(--gradient);
        }

        .image-preview {
            width: 100%;
            height: 320px;
            border: 2px dashed var(--gray);
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 25px;
            overflow: hidden;
            position: relative;
            transition: border-color 0.3s ease;
        }

        .image-preview:hover {
            border-color: var(--primary);
        }

        .image-preview img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            display: none;
        }

        .upload-icon {
            font-size: 70px;
            color: var(--primary);
            margin-bottom: 15px;
        }

        .upload-text {
            text-align: center;
            color: #777;
            margin-bottom: 20px;
            font-size: 1.1rem;
        }

        .upload-btn {
            background: var(--gradient);
            color: white;
            border: none;
            padding: 14px 30px;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
        }

        .upload-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
        }

        .controls-section {
            flex: 1;
            min-width: 320px;
            position: relative;
            overflow: hidden;
        }

        .controls-section::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: var(--gradient);
        }

        .control-group {
            margin-bottom: 25px;
        }

        h2 {
            font-size: 1.5rem;
            margin-bottom: 20px;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        h2 i {
            color: var(--primary);
            background: rgba(108, 99, 255, 0.1);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-group {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .control-btn {
            flex: 1;
            min-width: 140px;
            background: var(--gray);
            border: none;
            padding: 14px 15px;
            border-radius: var(--radius);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .control-btn:hover {
            background: #d8d8d8;
            transform: translateY(-2px);
        }

        .control-btn.active {
            background: var(--gradient);
            color: white;
            box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
        }

        .color-picker {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 15px;
        }

        .color-option {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            cursor: pointer;
            transition: transform 0.3s ease;
            border: 3px solid white;
            box-shadow: 0 3px 8px rgba(0,0,0,0.1);
            position: relative;
        }

        .color-option:hover {
            transform: scale(1.15);
        }

        .color-option.active {
            transform: scale(1.15);
            border: 3px solid var(--dark);
        }

        .color-option.active::after {
            content: "✓";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-weight: bold;
            text-shadow: 0 1px 3px rgba(0,0,0,0.5);
        }

        .custom-color {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-top: 20px;
            background: rgba(108, 99, 255, 0.05);
            padding: 15px;
            border-radius: var(--radius);
        }

        #customColor {
            width: 50px;
            height: 50px;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            background: transparent;
        }

        #customColor::-webkit-color-swatch {
            border-radius: 50%;
            border: 3px solid white;
            box-shadow: 0 3px 8px rgba(0,0,0,0.1);
        }

        .download-section {
            width: 100%;
            margin-top: 20px;
        }

        .download-btn {
            width: 100%;
            background: var(--gradient);
            color: white;
            border: none;
            padding: 16px;
            border-radius: var(--radius);
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
        }

        .download-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
        }

        .download-btn:disabled {
            background: #cccccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .result-section {
            flex: 1;
            min-width: 320px;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
        }

        .result-section::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: var(--gradient);
        }

        .result-image {
            width: 100%;
            height: 320px;
            border: 2px solid var(--gray);
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 25px;
            overflow: hidden;
            position: relative;
            background: #f8f9fa;
            transition: border-color 0.3s ease;
        }

        .result-image:hover {
            border-color: var(--primary);
        }

        .result-image img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            display: none;
        }

        .result-placeholder {
            text-align: center;
            color: #999;
        }

        .result-placeholder i {
            font-size: 70px;
            margin-bottom: 15px;
            color: #ddd;
        }

        footer {
            text-align: center;
            margin-top: 50px;
            padding: 20px;
            color: #777;
            font-size: 0.9rem;
        }

        @media (max-width: 768px) {
            .app-container {
                flex-direction: column;
            }
            
            h1 {
                font-size: 2.5rem;
            }
        }

        /* Loading animation */
        .loader {
            display: none;
            width: 48px;
            height: 48px;
            border: 5px solid var(--gray);
            border-bottom-color: var(--primary);
            border-radius: 50%;
            animation: rotation 1s linear infinite;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        @keyframes rotation {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }

        /* Instructions */
        .instructions {
            background: white;
            border-radius: var(--radius);
            padding: 30px;
            margin-top: 40px;
            box-shadow: var(--shadow);
            position: relative;
            overflow: hidden;
        }

        .instructions::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: var(--gradient);
        }

        .instructions h3 {
            margin-bottom: 20px;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.5rem;
        }

        .instructions h3 i {
            color: var(--primary);
            background: rgba(108, 99, 255, 0.1);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .instructions ol {
            padding-left: 20px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
        }

        .instructions li {
            margin-bottom: 10px;
            line-height: 1.5;
            padding: 15px;
            background: rgba(108, 99, 255, 0.05);
            border-radius: var(--radius);
            font-weight: 500;
        }

        .instructions li::marker {
            color: var(--primary);
            font-weight: bold;
        }

        /* Vector Graphics */
        .vector-bg {
            position: absolute;
            z-index: -1;
            opacity: 0.05;
        }

        .vector-1 {
            top: 10%;
            left: 5%;
            width: 150px;
            height: 150px;
            background: var(--primary);
            border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        }

        .vector-2 {
            bottom: 10%;
            right: 5%;
            width: 120px;
            height: 120px;
            background: var(--secondary);
            border-radius: 63% 37% 54% 46% / 36% 29% 71% 64%;
        }

        .vector-3 {
            top: 20%;
            right: 10%;
            width: 100px;
            height: 100px;
            background: var(--primary);
            border-radius: 50%;
        }

        .vector-4 {
            bottom: 20%;
            left: 10%;
            width: 80px;
            height: 80px;
            background: var(--secondary);
            border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        }