    /* ── Tab Bar ── */
    .input-tabs {
        display: flex;
        gap: 0;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 28px;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .input-tab {
        flex: 1;
        padding: 11px 20px;
        font-size: 0.92rem;
        font-weight: 600;
        cursor: pointer;
        background: white;
        color: #64748b;
        border: none;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
    }

    .input-tab.active {
        background: #2563eb;
        color: white;
    }

    .input-tab:not(.active):hover {
        background: #f1f5f9;
        color: #374151;
    }

    /* ── URL Input ── */
    .url-input-wrap {
        display: flex;
        gap: 10px;
        max-width: 520px;
        margin: 0 auto 20px;
    }

    .url-input-wrap input {
        flex: 1;
        padding: 13px 18px;
        border: 2px solid #e2e8f0;
        border-radius: 10px;
        font-size: 0.95rem;
        color: #0f172a;
        outline: none;
        transition: border-color 0.2s;
    }

    .url-input-wrap input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    .url-input-wrap input::placeholder {
        color: #94a3b8;
    }

    .btn-url-load {
        background: #2563eb;
        color: white;
        border: none;
        padding: 13px 24px;
        border-radius: 10px;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: background 0.2s;
        white-space: nowrap;
    }

    .btn-url-load:hover {
        background: #1d4ed8;
    }

    /* ── Drop Zone ── */
    .drop-zone-inner {
        border: 2.5px dashed #cbd5e1;
        border-radius: 14px;
        padding: 40px 30px;
        text-align: center;
        transition: all 0.25s;
        cursor: pointer;
        max-width: 480px;
        margin: 0 auto;
        background: #f8fafc;
    }

    .drop-zone-inner:hover,
    .drop-zone-inner.drag-over {
        border-color: #2563eb;
        background: #eff6ff;
    }

    .drop-zone-inner i {
        font-size: 2.5rem;
        color: #2563eb;
        margin-bottom: 14px;
    }

    .drop-zone-inner p {
        color: #64748b;
        font-size: 0.95rem;
        margin: 0;
    }

    .drop-zone-inner strong {
        color: #2563eb;
    }

    /* ── Settings View ── */
    .settings-view-wrap {
        max-width: 820px;
        margin: 0 auto;
        padding: 32px 20px 100px;
    }

    .file-info-bar {
        display: flex;
        align-items: center;
        gap: 14px;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 16px 22px;
        margin-bottom: 28px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    }

    .file-info-bar i {
        font-size: 2rem;
        color: #e63946;
    }

    .file-info-bar .file-meta {
        flex: 1;
    }

    .file-info-bar .file-name {
        font-size: 1rem;
        font-weight: 700;
        color: #0f172a;
        word-break: break-all;
    }

    .file-info-bar .file-size {
        font-size: 0.82rem;
        color: #64748b;
        margin-top: 2px;
    }

    .btn-change-file {
        background: transparent;
        color: #64748b;
        border: 1px solid #e2e8f0;
        padding: 8px 16px;
        border-radius: 8px;
        font-size: 0.85rem;
        cursor: pointer;
        transition: all 0.15s;
        white-space: nowrap;
    }

    .btn-change-file:hover {
        background: #f1f5f9;
        color: #374151;
    }

    /* ── Settings Cards ── */
    .settings-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 18px;
        margin-bottom: 28px;
    }

    .settings-option-card {
        background: white;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        padding: 20px;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .settings-option-card label {
        display: block;
        font-size: 0.82rem;
        font-weight: 700;
        color: #374151;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .settings-option-card label i {
        color: #2563eb;
        font-size: 0.9rem;
    }

    .settings-option-card select,
    .settings-option-card input[type="range"] {
        width: 100%;
    }

    .settings-option-card select {
        padding: 9px 12px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        font-size: 0.92rem;
        color: #0f172a;
        background: #f9fafb;
        cursor: pointer;
        outline: none;
        transition: border-color 0.2s;
    }

    .settings-option-card select:focus {
        border-color: #2563eb;
    }

    .range-wrap {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .range-value {
        font-size: 0.92rem;
        font-weight: 700;
        color: #2563eb;
        min-width: 36px;
        text-align: right;
    }

    input[type="range"] {
        accent-color: #2563eb;
    }

    /* ── Advanced Options Toggle ── */
    .advanced-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        color: #64748b;
        font-size: 0.88rem;
        font-weight: 600;
        margin-bottom: 18px;
        user-select: none;
        width: fit-content;
    }

    .advanced-toggle:hover {
        color: #374151;
    }

    .advanced-options {
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 28px;
        display: none;
    }

    .advanced-options.open {
        display: block;
    }

    .checkbox-row {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
        cursor: pointer;
        font-size: 0.93rem;
        color: #374151;
    }

    .checkbox-row:last-child {
        margin-bottom: 0;
    }

    .checkbox-row input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: #2563eb;
        cursor: pointer;
    }

    /* ── Action Strip ── */
    .action-strip {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
        border-top: 1px solid #e2e8f0;
        padding: 14px 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        z-index: 90;
    }

    .btn-convert-big {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        color: white;
        border: none;
        padding: 14px 48px;
        border-radius: 10px;
        font-size: 1.05rem;
        font-weight: 700;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
        transition: all 0.2s;
    }

    .btn-convert-big:hover {
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
        transform: translateY(-1px);
    }

    .btn-convert-big:disabled {
        background: #9ca3af;
        box-shadow: none;
        cursor: not-allowed;
        transform: none;
    }

    .btn-back-link {
        background: transparent;
        color: #64748b;
        border: 1px solid #e2e8f0;
        padding: 10px 20px;
        border-radius: 8px;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.15s;
    }

    .btn-back-link:hover {
        background: #f1f5f9;
    }

    /* ── Result View ── */
    .result-view-wrap {
        max-width: 540px;
        margin: 0 auto;
        padding: 60px 20px;
        text-align: center;
    }

    .result-success-icon {
        width: 90px;
        height: 90px;
        background: linear-gradient(135deg, #10b981, #059669);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 24px;
        animation: scaleIn 0.4s ease-out;
        box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    }

    .result-success-icon i {
        font-size: 2.4rem;
        color: white;
    }

    @keyframes scaleIn {
        from {
            transform: scale(0);
            opacity: 0;
        }

        to {
            transform: scale(1);
            opacity: 1;
        }
    }

    .result-title {
        font-size: 1.8rem;
        font-weight: 700;
        color: #0f172a;
        margin-bottom: 10px;
    }

    .result-subtitle {
        font-size: 1rem;
        color: #64748b;
        margin-bottom: 36px;
    }

    .btn-download {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        color: white;
        text-decoration: none;
        padding: 16px 48px;
        border-radius: 10px;
        font-size: 1.05rem;
        font-weight: 700;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
        transition: all 0.2s;
        border: none;
        cursor: pointer;
        margin-bottom: 16px;
    }

    .btn-download:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    }

    .btn-convert-another {
        display: block;
        color: #64748b;
        font-size: 0.9rem;
        cursor: pointer;
        text-decoration: underline;
        background: none;
        border: none;
        margin: 12px auto 0;
    }

    .btn-convert-another:hover {
        color: #374151;
    }

    /* ── Loading Overlay ── */
    .h2p-overlay {
        position: fixed;
        inset: 0;
        background: rgba(30, 41, 59, 0.88);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        backdrop-filter: blur(4px);
    }

    .h2p-overlay .spinner {
        width: 64px;
        height: 64px;
        border: 5px solid rgba(255, 255, 255, 0.2);
        border-top-color: white;
        border-radius: 50%;
        animation: spin 0.9s linear infinite;
        margin-bottom: 22px;
    }

    .h2p-overlay p {
        color: white;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .h2p-overlay small {
        color: rgba(255, 255, 255, 0.65);
        font-size: 0.85rem;
        margin-top: 8px;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    /* ── Error Toast ── */
    .h2p-toast {
        position: fixed;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        background: #dc2626;
        color: white;
        padding: 14px 24px;
        border-radius: 10px;
        font-size: 0.92rem;
        font-weight: 600;
        box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
        opacity: 0;
        transition: all 0.3s;
        z-index: 999;
        max-width: 90vw;
        text-align: center;
        pointer-events: none;
    }

    .h2p-toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    @media (max-width: 600px) {
        .settings-grid {
            grid-template-columns: 1fr;
        }

        .url-input-wrap {
            flex-direction: column;
        }
    }

.hidden {
    display: none !important;
}
