/* ===== LAYOUT ===== */
.favicon-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 40px;
}

/* ===== CARD ===== */
.card {
    background: linear-gradient(180deg,#0c0c0c,#050505);
    border-radius: 18px;
    border: 1px solid rgba(255,26,26,.3);
    box-shadow: 0 0 40px rgba(255,0,0,.25);
    padding: 30px;
}

/* ===== FORM ===== */
.favicon-form label {
    display: block;
    margin-bottom: 18px;
    color: #ddd;
}

.favicon-form input {
    width: 100%;
    padding: 10px;
    background: #0f0f0f;
    border-radius: 8px;
    border: 1px solid rgba(255,26,26,.4);
    color: #fff;
}

/* ===== BUTTON ===== */
.btn-danger {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background: linear-gradient(135deg,#ff1a1a,#b00000);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

/* ===== PROGRESS ===== */
.upload-progress {
    margin-top: 14px;
    height: 10px;
    background: rgba(255,255,255,.12);
    border-radius: 6px;
    overflow: hidden;
    display: none;
}

.upload-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,#ff3232,#ff7a7a);
}

/* ===== PREVIEW ===== */
.preview-card {
    display: flex;
    flex-direction: column;
}

.preview-modes {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.preview-modes button {
    flex: 1;
    padding: 8px;
    background: #111;
    border-radius: 6px;
    color: #aaa;
    border: 1px solid rgba(255,26,26,.3);
}

.preview-modes button.active {
    background: #ff1a1a;
    color: #fff;
}

/* ===== DROPZONE ===== */
.preview-dropzone {
    flex: 1;
    border: 2px dashed rgba(255,26,26,.4);
    border-radius: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===== PREVIEW WRAPPER ===== */
.preview-wrapper {
    display: none;
    width: 100%;
    height: 260px;
    align-items: center;
    justify-content: center;
}

.preview-wrapper.active {
    display: flex;
}

/* ===== IMAGE COMPARE ===== */
.preview-wrapper img {
    width: 200px;
    height: 200px;
    image-rendering: pixelated;
    object-fit: contain;
    transform: scale(1);
}

.preview-wrapper img:last-child {
    clip-path: inset(0 50% 0 0);
}

/* ===== SLIDER ===== */
#compareSlider {
    width: 80%;
    margin-top: 16px;
}

/* ===== SIMULATIONS ===== */
.browser-tab { width: 180px; height: 40px; background:#222; border-radius:8px; }
.bookmark-icon { width: 96px; height: 96px; }
.mobile-app { width: 110px; height: 200px; background:#111; border-radius:20px; }
