/* ========== GLOBAL STYLES (matching original) ========== */
        * { box-sizing: border-box; margin: 0; padding: 0; }
        body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #fff; color: #1a202c; line-height: 1.5; }
        .compressor-container { max-width: 1100px; margin: 1rem auto; padding: 0 1rem; }
        .btn { display: inline-block; background: #4299e1; color: white; font-weight: 600; padding: 0.75rem 1.5rem; border-radius: 0.5rem; border: none; cursor: pointer; transition: background 0.2s; text-decoration: none; font-size: 1rem; }
        .btn:hover { background: #3182ce; }
        .btn-primary { background: #4299e1; }
        .btn-primary:hover { background: #3182ce; }
        .btn-large { padding: 1rem 2rem; font-size: 1.1rem; }
        .btn-sm { padding: 0.25rem 0.75rem; font-size: 0.8rem; background: #4299e1; color: white; border: none; border-radius: 0.375rem; cursor: pointer; }
        .btn-sm:hover { background: #3182ce; }
        .breadcrumb { margin-bottom: 0.25rem; font-size: 0.9rem; color: #718096; }
        .breadcrumb a { color: #4299e1; text-decoration: none; }
        .breadcrumb a:hover { text-decoration: underline; }
        .page-header { text-align: center; margin-bottom: 0.1rem; }
        .page-title { font-size: 2rem; color: #2d3748; margin-bottom: 0.5rem; }
        .page-subtitle { font-size: 1.1rem; color: #4a5568; max-width: 1100px; margin: 0 auto; }
        .trust-box { max-width: 900px; margin: 0 auto 1.5rem; padding: 1rem; background-color: #f0fdf4; border: 1px solid #86efac; border-radius: 0.5rem; text-align: center; }
        .trust-bullets { list-style: none; padding: 0; margin: 0; font-weight: 600; color: #166534; }
        .trust-bullets li { margin: 6px 0; }
        .control-group { margin: 2rem auto; max-width: 900px; }
        .custom-select, .custom-input { width: 100%; padding: 0.75rem; border-radius: 0.5rem; border: 1px solid #cbd5e1; font-size: 1rem; color: #4a5568; margin-top: 0.5rem; }
        .spinner { border: 3px solid rgba(66, 153, 225, 0.2); width: 24px; height: 24px; border-radius: 50%; border-left-color: #4299e1; animation: spin 1s linear infinite; display: inline-block; vertical-align: middle; margin-right: 10px; }
        @keyframes spin { to { transform: rotate(360deg); } }
        
        /* ========== WATERMARK SPECIFIC STYLES ========== */
        .drop-zone {
            position: relative;
            border: 2px dashed #4299e1;
            border-radius: 12px;
            padding: 10px;
            text-align: center;
            background-color: #f8fafc;
            transition: all 0.3s ease;
            min-height: 120px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        .drop-zone.drag-over {
            background-color: #ebf8ff;
            border-color: #2b6cb0;
            transform: scale(1.01);
        }
        #fileInput {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            opacity: 0;
            cursor: pointer;
            z-index: 10;
        }
        .file-icon { font-size: 50px; margin-bottom: 10px; }
        .preview-content {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 20px;
            width: 100%;
            z-index: 5;
        }
        .preview-canvas {
            max-width: 240px;
            max-height: 300px;
            border: 1px solid #e2e8f0;
            border-radius: 4px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            object-fit: contain;
        }
        .preview-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }
        .file-info {
            font-weight: bold;
            font-size: 1.1rem;
            word-break: break-word;
            text-align: left;
        }
        .file-size {
            color: #4a5568;
        }
        .change-btn {
            color: #4299e1;
            font-size: 0.85rem;
            border: 1px solid #4299e1;
            padding: 4px 4px;
            border-radius: 20px;
            cursor: pointer;
            background: none;
            display: inline-block;
        }
        .change-btn:hover {
            background: #ebf8ff;
        }

        /* Position grid */
        .position-grid {
            display: grid;
            grid-template-columns: repeat(9, 1fr);
            gap: 8px;
            margin: 1rem 0;
            max-width: 1100px;
        }
        .pos-btn {
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            padding: 1px 1px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .pos-btn:hover { border-color: #4299e1; background: #ebf8ff; }
        .pos-btn.active { background: #4299e1; color: white; border-color: #4299e1; }

        /* Two‑column layout for options */
        .options-row {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin: 1.5rem 0;
            align-items: flex-end;
        }
        .option-item {
            flex: 1 1 200px;
        }
        .option-item label {
            font-weight: 600;
            color: #2d3748;
            display: block;
            margin-bottom: 0.25rem;
        }
        .option-item input, .option-item select {
            width: 100%;
            padding: 0.5rem;
            border: 1px solid #cbd5e1;
            border-radius: 0.375rem;
        }
        .color-row {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .color-row input[type="color"] {
            width: 50px;
            height: 38px;
            padding: 2px;
        }

        .result-box {
            margin-top: 2rem;
            padding: 1.5rem;
            background: #f0fff4;
            border: 2px solid #c6f6d5;
            border-radius: 0.5rem;
            text-align: center;
            display: none;
        }