 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

        body {
            background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 1.5rem;
        }

        .tool {
            background: rgba(255, 255, 255, 0.07);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 36px;
            box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.6);
            max-width: 1000px;
            width: 100%;
            padding: 2rem 2.25rem;
            color: #e2e8f0;
            transition: all 0.2s;
        }

        h1 {
            font-size: 1.9rem;
            font-weight: 600;
            letter-spacing: -0.02em;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.25rem;
            color: #facc15;
            text-shadow: 0 2px 5px rgba(250,204,21,0.2);
        }

        .sub {
            color: #94a3b8;
            font-size: 0.95rem;
            margin-bottom: 2rem;
            border-bottom: 1px dashed #334155;
            padding-bottom: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
        }

        .badge {
            background: #0f172a;
            padding: 0.4rem 1rem;
            border-radius: 40px;
            border: 1px solid #facc1540;
            color: #facc15;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            display: inline-flex;
            gap: 6px;
        }

        .upload-area {
            background: #0a0f1c;
            border-radius: 24px;
            padding: 1.5rem 1.75rem;
            border: 1.5px dashed #facc1540;
            transition: 0.2s;
            margin-bottom: 1.8rem;
        }

        .upload-area:hover {
            border-color: #facc15;
            background: #0f1625;
        }

        .file-label {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.6rem;
            cursor: pointer;
        }

        .file-label span {
            background: #1e293b;
            padding: 0.7rem 1.8rem;
            border-radius: 40px;
            font-weight: 500;
            color: #f8fafc;
            border: 1px solid #475569;
            transition: 0.15s;
        }

        .file-label span:hover {
            background: #2d3a4f;
            border-color: #facc15;
        }

        #fileInput {
            display: none;
        }

        .file-meta {
            background: #0f172a80;
            border-radius: 20px;
            padding: 1.5rem;
            margin-top: 1rem;
            border: 1px solid #1e293b;
        }

        .grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.8rem;
            margin: 1.5rem 0;
        }

        .info-card {
            background: #0a0f1c;
            border-radius: 20px;
            padding: 1.5rem;
            border: 1px solid #1e293b;
            box-shadow: 0 8px 0 #020617;
        }

        .info-title {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #94a3b8;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .prop-list {
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
        }

        .prop-item {
            display: flex;
            justify-content: space-between;
            font-size: 0.95rem;
            border-bottom: 1px dotted #1e293b;
            padding-bottom: 0.4rem;
        }

        .value {
            font-weight: 600;
            color: #facc15;
        }

        .settings-panel {
            background: #0f172a;
            border-radius: 20px;
            padding: 1.5rem;
            margin: 0.5rem 0 1.8rem 0;
            border: 1px solid #2d3a4f;
        }

        .slider-container, .checkbox-container {
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        input[type=range] {
            flex: 1;
            height: 7px;
            background: #1e293b;
            border-radius: 10px;
            accent-color: #facc15;
        }

        .dimension-input {
            background: #1e293b;
            border: 1px solid #334155;
            padding: 0.5rem 0.8rem;
            border-radius: 16px;
            color: white;
            width: 90px;
        }

        .btn {
            background: #1e293b;
            border: none;
            color: white;
            font-weight: 600;
            padding: 0.9rem 2rem;
            border-radius: 40px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.15s;
            border: 1px solid #475569;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.6rem;
        }

        .btn-primary {
            background: #facc15;
            color: #0f172a;
            border: none;
            font-weight: 700;
            box-shadow: 0 8px 0 #ca8a04;
            transform: translateY(0);
        }

        .btn-primary:hover {
            background: #fde047;
            box-shadow: 0 5px 0 #ca8a04;
            transform: translateY(3px);
        }

        .btn-download {
            background: #10b981;
            border-color: #34d399;
            color: black;
            font-weight: 700;
            box-shadow: 0 5px 0 #059669;
            width: 100%;
        }

        .btn-download:active {
            transform: translateY(5px);
            box-shadow: none;
        }

        .action-group {
            display: flex;
            gap: 1rem;
            margin-top: 1.8rem;
            flex-wrap: wrap;
            align-items: center;
        }

        .processing-time {
            background: #00000030;
            padding: 0.4rem 1rem;
            border-radius: 30px;
            font-size: 0.8rem;
            border: 1px solid #facc1540;
            color: #cbd5e1;
        }

        .download-section {
            margin-top: 1.8rem;
            border-top: 1px solid #1e293b;
            padding-top: 1.8rem;
        }

        .warning {
            color: #f87171;
            background: #450a0a40;
            padding: 0.5rem 1rem;
            border-radius: 40px;
            border: 1px solid #b91c1c;
            font-size: 0.8rem;
        }

        footer {
            margin-top: 2rem;
            color: #64748b;
            font-size: 0.7rem;
            text-align: center;
        }

        .hide {
            display: none !important;
        }

        .flex-between {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        @media (max-width: 700px) {
            .tool { padding: 1.5rem; }
            .grid-2 { grid-template-columns: 1fr; }
        }