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

        body {
            background: linear-gradient(135deg, #e9eff7 0%, #dbe5f0 100%);
            font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
            padding: 2rem 1.5rem;
            color: #0a0c10;
            min-height: 100vh;
        }

        /* Smooth modern container */
        .glass-panel {
            max-width: 1400px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(0px);
            border-radius: 2.5rem;
            box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.02);
            padding: 2rem 2rem;
            transition: all 0.2s ease;
            border: 1px solid rgba(255,255,255,0.5);
        }

        @media (max-width: 640px) {
            body {
                padding: 1rem;
            }
            .glass-panel {
                padding: 1.25rem;
                border-radius: 1.5rem;
            }
        }

        /* Header section */
        .header-modern {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            flex-wrap: wrap;
            margin-bottom: 2rem;
            border-bottom: 2px solid #eef2f8;
            padding-bottom: 1rem;
        }
        .title-badge h1 {
            font-size: 1.9rem;
            font-weight: 700;
            background: linear-gradient(120deg, #1E2A3E, #2c3e66);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            letter-spacing: -0.3px;
        }
        .sub-light {
            color: #54708f;
            font-size: 0.85rem;
            margin-top: 0.2rem;
            font-weight: 500;
        }
        .image-counter {
            background: #eef2ff;
            padding: 0.4rem 1rem;
            border-radius: 60px;
            font-size: 0.8rem;
            font-weight: 600;
            color: #1f3a5f;
        }

        /* Drag & Drop Zone â€” premium */
        .dropzone-modern {
            background: #fbfdff;
            border: 2px dashed #bac8dc;
            border-radius: 1.8rem;
            padding: 2rem 1.5rem;
            text-align: center;
            margin-bottom: 2rem;
            transition: all 0.25s ease;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0,0,0,0.02);
        }
        .dropzone-modern:hover {
            border-color: #5e7a9c;
            background: #f8fafd;
            transform: scale(0.99);
        }
        .dropzone-active {
            border-color: #2c5f8a;
            background: #eef4ff;
            transform: scale(0.98);
        }
        .upload-icon {
            font-size: 2.8rem;
            margin-bottom: 0.5rem;
        }
        .dropzone-text {
            font-weight: 500;
            color: #1f3a5f;
        }
        .browse-btn {
            background: #1f3a5f;
            color: white;
            border: none;
            padding: 0.5rem 1.2rem;
            border-radius: 40px;
            font-size: 0.8rem;
            font-weight: 500;
            margin-top: 0.8rem;
            display: inline-block;
            cursor: pointer;
            transition: 0.2s;
        }
        .browse-btn:hover {
            background: #0f2a48;
            transform: translateY(-1px);
        }

        /* preview grid - modern card grid */
        .preview-section {
            margin: 1.5rem 0 1.2rem;
        }
        .section-title {
            font-weight: 600;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 1rem;
        }
        .preview-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            gap: 1rem;
        }
        .preview-card-modern {
            background: #ffffff;
            border-radius: 1.2rem;
            border: 1px solid #e9edf2;
            overflow: hidden;
            transition: all 0.2s;
            box-shadow: 0 6px 12px -8px rgba(0,0,0,0.05);
            position: relative;
        }
        .preview-card-modern:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 25px -12px rgba(0,0,0,0.1);
            border-color: #cbdde9;
        }
        .preview-img-modern {
            width: 100%;
            aspect-ratio: 1 / 1;
            object-fit: cover;
            background: #f3f6fc;
            display: block;
        }
        .preview-info {
            padding: 0.6rem 0.5rem 0.7rem;
            text-align: center;
            font-size: 0.7rem;
            font-weight: 500;
            background: #ffffff;
            border-top: 1px solid #f0f2f5;
        }
        .preview-name {
            font-weight: 600;
            color: #1f2e45;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .preview-dim {
            font-size: 0.65rem;
            color: #5f7f9e;
            margin-top: 0.2rem;
        }
        .delete-img-btn {
            position: absolute;
            top: 6px;
            right: 6px;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(4px);
            border-radius: 30px;
            width: 26px;
            height: 26px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            transition: 0.15s;
            border: none;
        }
        .delete-img-btn:hover {
            background: #c72a2a;
            transform: scale(1.05);
        }

        /* Settings panel - glassmorphic card */
        .settings-modern {
            background: #f9fbfe;
            border-radius: 1.5rem;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid #e2edf7;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
        }
        .settings-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            align-items: flex-end;
            justify-content: space-between;
        }
        .input-group {
            flex: 1;
            min-width: 130px;
        }
        .input-group label {
            display: block;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #54708f;
            margin-bottom: 0.3rem;
        }
        .input-group input, .input-group select {
            width: 100%;
            padding: 0.65rem 0.8rem;
            border: 1px solid #cfdfed;
            border-radius: 1rem;
            background: white;
            font-size: 0.9rem;
            font-weight: 500;
            transition: 0.2s;
        }
        .input-group input:focus, .input-group select:focus {
            outline: none;
            border-color: #2c5f8a;
            box-shadow: 0 0 0 3px rgba(44,95,138,0.1);
        }
        .lock-toggle {
            background: #eef3fc;
            border: 1px solid #cbdde9;
            border-radius: 2rem;
            padding: 0.65rem 1.2rem;
            font-weight: 600;
            font-size: 0.8rem;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .lock-toggle.locked {
            background: #e0edfe;
            border-color: #2c5f8a;
            color: #1f4970;
        }
        .quality-flex {
            display: flex;
            gap: 0.8rem;
            align-items: center;
        }
        .quality-flex input[type="range"] {
            flex: 1;
        }
        .quality-flex input[type="number"] {
            width: 70px;
        }
        .action-bar-modern {
            display: flex;
            gap: 1rem;
            margin: 1.8rem 0 1rem;
            flex-wrap: wrap;
            align-items: center;
        }
        .btn-primary {
            background: #1f3a5f;
            border: none;
            padding: 0.8rem 2rem;
            border-radius: 2rem;
            font-weight: 600;
            font-size: 0.9rem;
            color: white;
            cursor: pointer;
            transition: 0.2s;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        }
        .btn-primary:hover {
            background: #0f2a48;
            transform: scale(0.98);
        }
        .btn-outline {
            background: white;
            border: 1px solid #bcccdb;
            padding: 0.8rem 2rem;
            border-radius: 2rem;
            font-weight: 500;
            cursor: pointer;
            transition: 0.2s;
        }
        .btn-outline:hover {
            background: #f0f4fa;
            border-color: #8aa2bc;
        }
        .download-area-modern {
            margin-top: 2rem;
            background: #f0f5fa;
            border-radius: 1.2rem;
            padding: 1rem 1.2rem;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }
        .download-btn-modern {
            background: #ffffff;
            border: 1px solid #1f3a5f;
            padding: 0.6rem 1.6rem;
            border-radius: 2rem;
            font-weight: 600;
            color: #1f3a5f;
            cursor: pointer;
            transition: 0.2s;
        }
        .download-btn-modern:hover {
            background: #1f3a5f;
            color: white;
        }
        .spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid rgba(0,0,0,0.1);
            border-radius: 50%;
            border-top-color: #1f3a5f;
            animation: spin 0.8s linear infinite;
            margin-right: 8px;
            vertical-align: middle;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        .empty-preview-modern {
            text-align: center;
            padding: 2rem;
            background: #fafcff;
            border-radius: 1.5rem;
            color: #7c93ae;
        }
        .info-chip {
            font-size: 0.75rem;
            background: #e9f0f5;
            padding: 0.2rem 0.7rem;
            border-radius: 40px;
        }
        @media (max-width: 700px) {
            .settings-grid {
                flex-direction: column;
                align-items: stretch;
            }
            .lock-toggle {
                justify-content: center;
            }
        }