        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .animate-fadeIn {
            animation: fadeIn 0.5s ease-out;
        }
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-15px); }
        }
        .animate-float {
            animation: float 3s ease-in-out infinite;
        }
        @keyframes twinkle {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }
        .star {
            position: absolute;
            width: 2px;
            height: 2px;
            background: white;
            border-radius: 50%;
            animation: twinkle 3s ease-in-out infinite;
        }
        @keyframes pulse-glow {
            0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
            50% { box-shadow: 0 0 20px 5px rgba(139, 92, 246, 0.15); }
        }
        .result-glow {
            animation: pulse-glow 2.5s ease-in-out;
        }
        body {
            background: linear-gradient(to bottom, #0a0e27 0%, #1a1a3e 50%, #2d1b4e 100%);
            position: relative;
            overflow-x: hidden;
        }
        .back-button {
            position: fixed;
            top: 20px;
            left: 20px;
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.9) 0%, rgba(99, 102, 241, 0.9) 100%);
            backdrop-filter: blur(10px);
            color: white;
            padding: 12px 24px;
            border-radius: 12px;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            font-size: 14px;
            z-index: 1000;
            border: 1px solid rgba(139, 92, 246, 0.5);
            box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
            transition: all 0.3s ease;
        }
        .back-button:hover {
            transform: translateX(-5px);
            box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
        }
        .back-button:hover svg {
            transform: translateX(-3px);
        }
        .back-button svg {
            transition: transform 0.3s ease;
        }

        .tab-btn {
            position: relative;
            padding: 10px 28px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid rgba(139, 92, 246, 0.3);
            color: rgba(196, 181, 253, 0.7);
            background: transparent;
        }
        .tab-btn.active {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.9) 0%, rgba(99, 102, 241, 0.9) 100%);
            color: white;
            border-color: rgba(139, 92, 246, 0.8);
            box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
        }
        .tab-btn:not(.active):hover {
            background: rgba(139, 92, 246, 0.15);
            color: rgba(196, 181, 253, 1);
            border-color: rgba(139, 92, 246, 0.5);
        }

        .action-btn {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.9) 0%, rgba(99, 102, 241, 0.9) 100%);
            color: white;
            font-weight: 600;
            padding: 12px 28px;
            border-radius: 10px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
        }
        .action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
        }
        .action-btn:active {
            transform: translateY(0);
        }

        .copy-btn {
            background: rgba(99, 102, 241, 0.2);
            color: #a5b4fc;
            font-weight: 600;
            padding: 8px 18px;
            border-radius: 8px;
            border: 1px solid rgba(99, 102, 241, 0.4);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
        }
        .copy-btn:hover {
            background: rgba(99, 102, 241, 0.35);
            color: white;
        }
        .copy-btn.copied {
            background: rgba(34, 197, 94, 0.2);
            color: #86efac;
            border-color: rgba(34, 197, 94, 0.4);
        }

        .section-divider {
            border: none;
            border-top: 1px solid rgba(139, 92, 246, 0.2);
            margin: 4px 0;
        }

        .drop-zone {
            border: 2px dashed rgba(139, 92, 246, 0.4);
            border-radius: 16px;
            background: rgba(10, 5, 30, 0.5);
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }
        .drop-zone:hover, .drop-zone.dragover {
            border-color: rgba(139, 92, 246, 0.8);
            background: rgba(139, 92, 246, 0.08);
            box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
        }
        .drop-zone input[type="file"] {
            position: absolute;
            inset: 0;
            opacity: 0;
            cursor: pointer;
            width: 100%;
            height: 100%;
        }

        .info-card {
            background: rgba(10, 5, 30, 0.7);
            border: 1px solid rgba(139, 92, 246, 0.25);
            border-radius: 12px;
            overflow: hidden;
        }
        .info-row {
            display: flex;
            align-items: flex-start;
            padding: 10px 16px;
            border-bottom: 1px solid rgba(139, 92, 246, 0.1);
            gap: 12px;
        }
        .info-row:last-child {
            border-bottom: none;
        }
        .info-label {
            font-size: 12px;
            font-weight: 600;
            color: rgba(196, 181, 253, 0.6);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            min-width: 110px;
            padding-top: 1px;
        }
        .info-value {
            font-size: 13px;
            color: #c4b5fd;
            font-family: 'Courier New', Courier, monospace;
            word-break: break-all;
            flex: 1;
        }
        .info-value.highlight {
            color: #a5b4fc;
            font-weight: 700;
        }

        #previewImg {
            max-height: 240px;
            max-width: 100%;
            object-fit: contain;
            border-radius: 10px;
            border: 1px solid rgba(139, 92, 246, 0.3);
            display: block;
            margin: 0 auto;
        }

        .swatch {
            width: 28px;
            height: 28px;
            border-radius: 6px;
            border: 1px solid rgba(255,255,255,0.15);
            display: inline-block;
            cursor: pointer;
            transition: transform 0.2s;
        }
        .swatch:hover { transform: scale(1.15); }

        .checker-bg {
            background-image: linear-gradient(45deg, #444 25%, transparent 25%),
                              linear-gradient(-45deg, #444 25%, transparent 25%),
                              linear-gradient(45deg, transparent 75%, #444 75%),
                              linear-gradient(-45deg, transparent 75%, #444 75%);
            background-size: 12px 12px;
            background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
            background-color: #222;
        }

        .stat-badge {
            background: rgba(139, 92, 246, 0.15);
            border: 1px solid rgba(139, 92, 246, 0.25);
            border-radius: 8px;
            padding: 6px 14px;
            font-size: 12px;
            color: #c4b5fd;
        }

        .tab-panel { display: none; }
        .tab-panel.active { display: block; }

        .output-box {
            background: rgba(10, 5, 30, 0.7);
            border: 1px solid rgba(139, 92, 246, 0.25);
            border-radius: 12px;
            padding: 16px;
            font-family: 'Courier New', Courier, monospace;
            font-size: 12px;
            color: #c4b5fd;
            line-height: 1.7;
            white-space: pre;
            overflow: auto;
            max-height: 280px;
        }
        .output-box::-webkit-scrollbar { width: 6px; height: 6px; }
        .output-box::-webkit-scrollbar-track { background: rgba(139,92,246,0.05); border-radius: 10px; }
        .output-box::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.35); border-radius: 10px; }
        .output-box::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,0.6); }
