:root {
    --theme: #1479ff;
    --theme-dark: #075fd0;
    --theme-light: #edf6ff;
    --text: #15202b;
    --text-light: #718096;
    --border: #e5eaf0;
    --background: #f6f9fc;
}


* {
    box-sizing: border-box;
}


body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}


.nose-generator {
    min-height: 100vh;
    padding: 70px 0;
}


/* ==============================================
   HEADER
============================================== */

.nose-header {
    max-width: 720px;
    margin: 0 auto 45px;
}


.nose-header-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    margin-bottom: 15px;

    background: var(--theme-light);
    color: var(--theme);

    border-radius: 50px;

    font-size: 13px;
    font-weight: 600;
}


.nose-header h1 {
    margin-bottom: 15px;

    font-size: 42px;
    font-weight: 700;
    letter-spacing: -1px;
}


.nose-header p {
    margin: 0;

    color: var(--text-light);

    font-size: 16px;
    line-height: 1.8;
}


/* ==============================================
   CARDS
============================================== */

.nose-ai-card {
    height: 100%;

    padding: 30px;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow: 0 15px 45px rgba(26, 45, 75, .05);
}


/* ==============================================
   STEP
============================================== */

.nose-step {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 25px;

    font-size: 19px;
    font-weight: 700;
}


.nose-step > span {
    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    background: var(--theme);
    color: #fff;

    border-radius: 50%;

    font-size: 13px;
}


.nose-step div {
    line-height: 1.25;
}


.nose-step small {
    display: block;

    margin-bottom: 3px;

    color: var(--text-light);

    font-size: 11px;
    font-weight: 500;

    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ==============================================
   UPLOAD
============================================== */

.nose-upload-area {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 430px;

    overflow: hidden;

    background: #fbfcfe;

    border: 2px dashed #d9e1e9;
    border-radius: 15px;

    text-align: center;

    transition: .25s ease;
}


.nose-upload-area:hover {
    border-color: var(--theme);
    background: #f8fbff;
}


#noseUploadPlaceholder {
    width: 100%;
    padding: 35px;
}


.nose-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 80px;
    height: 80px;

    margin: 0 auto 22px;

    background: var(--theme-light);
    color: var(--theme);

    border-radius: 50%;

    font-size: 30px;
}


#noseUploadPlaceholder h5 {
    margin-bottom: 10px;

    font-size: 19px;
    font-weight: 700;
}


#noseUploadPlaceholder p {
    max-width: 330px;

    margin: 0 auto 23px;

    color: var(--text-light);

    font-size: 14px;
    line-height: 1.7;
}


.nose-upload-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 18px;

    color: #9aa5b1;

    font-size: 11px;
}


/* ==============================================
   BUTTON
============================================== */

.nose-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 12px 23px;

    border: 0;
    border-radius: 10px;

    background: var(--theme);
    color: #fff;

    font-size: 14px;
    font-weight: 600;

    transition: .25s ease;
}


.nose-btn:hover {
    background: var(--theme-dark);
    color: #fff;
}


.nose-btn:disabled {
    background: #cbd5df;

    cursor: not-allowed;

    opacity: .7;
}


/* ==============================================
   PREVIEW
============================================== */

.nose-preview-wrapper {
    position: relative;

    width: 100%;
    height: 430px;

    background: #101820;
}


.nose-preview-wrapper img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


.nose-remove-photo {
    position: absolute;

    top: 15px;
    right: 15px;

    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, .65);
    color: #fff;

    transition: .2s ease;
}


.nose-remove-photo:hover {
    background: #000;
}


.nose-photo-ready {
    position: absolute;

    left: 15px;
    bottom: 15px;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 8px 12px;

    background: rgba(255, 255, 255, .95);
    color: #198754;

    border-radius: 8px;

    font-size: 12px;
    font-weight: 600;
}


/* ==============================================
   NOSE TYPES
============================================== */

.nose-types {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.nose-type {
    position: relative;

    display: flex;
    align-items: flex-start;
    gap: 13px;

    min-height: 95px;

    padding: 18px;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: 12px;

    cursor: pointer;

    transition: .25s ease;
}


.nose-type:hover {
    border-color: #a9cfff;

    transform: translateY(-2px);
}


.nose-type.active {
    background: #f8fbff;

    border-color: var(--theme);

    box-shadow: 0 8px 25px rgba(20, 121, 255, .08);
}


.nose-type input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.nose-type-check {
    flex: 0 0 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    border: 2px solid #ccd5df;
    border-radius: 50%;

    color: transparent;

    font-size: 10px;

    transition: .2s ease;
}


.nose-type.active .nose-type-check {
    background: var(--theme);

    border-color: var(--theme);

    color: #fff;
}


.nose-type-content {
    display: block;
}


.nose-type-content strong {
    display: block;

    margin-bottom: 5px;

    font-size: 15px;
}


.nose-type-content small {
    display: block;

    color: var(--text-light);

    font-size: 12px;
    line-height: 1.55;
}


.nose-type-full {
    grid-column: 1 / -1;
}


/* ==============================================
   RENDER
============================================== */

.nose-render-btn {
    width: 100%;

    min-height: 54px;

    margin-top: 25px;

    font-size: 15px;
}


.nose-disclaimer {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;

    margin-top: 16px;

    color: #8793a0;

    font-size: 11px;
    line-height: 1.6;
}


.nose-disclaimer i {
    margin-top: 3px;
}


/* ==============================================
   RESULT
============================================== */

.nose-result-section {
    scroll-margin-top: 30px;
}


.nose-result-image {
    position: relative;

    height: 480px;

    overflow: hidden;

    background: #101820;

    border-radius: 14px;
}


.nose-result-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


.nose-result-label {
    position: absolute;

    top: 15px;
    left: 15px;

    z-index: 5;

    padding: 7px 12px;

    background: rgba(0, 0, 0, .7);
    color: #fff;

    border-radius: 7px;

    font-size: 11px;
    font-weight: 600;
}


.nose-result-label.ai {
    background: var(--theme);
}


.nose-result-actions {
    display: flex;
    justify-content: center;

    margin-top: 25px;
}


.nose-btn-light {
    background: var(--theme-light);
    color: var(--theme);
}


.nose-btn-light:hover {
    background: var(--theme);
    color: #fff;
}


.nose-result-warning {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;

    max-width: 750px;

    margin: 20px auto 0;

    color: #8a949e;

    font-size: 11px;
    line-height: 1.6;
}


/* ==============================================
   RESPONSIVE
============================================== */

@media (max-width: 991.98px) {

    .nose-generator {
        padding: 45px 0;
    }

}


@media (max-width: 767.98px) {

    .nose-header {
        margin-bottom: 30px;
    }


    .nose-header h1 {
        font-size: 32px;
    }


    .nose-ai-card {
        padding: 20px;
    }


    .nose-types {
        grid-template-columns: 1fr;
    }


    .nose-type-full {
        grid-column: auto;
    }


    .nose-upload-area {
        min-height: 360px;
    }


    .nose-preview-wrapper {
        height: 360px;
    }


    .nose-result-image {
        height: 400px;
    }

}
/* =========================================================
   BEFORE / AFTER
========================================================= */

.nose-compare-wrapper {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}


.nose-compare {
    position: relative;
    width: 100%;
    overflow: hidden;

    border-radius: 16px;

    background: #101820;

    user-select: none;
    -webkit-user-select: none;

    aspect-ratio: 4 / 3;
}


/* IMAGES */

.nose-compare-image {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;

    pointer-events: none;

    user-select: none;
    -webkit-user-drag: none;
}


.nose-compare-after {
    z-index: 1;
}


/* ORIGINAL CLIPPED SIDE */

.nose-compare-before {
    position: absolute;

    top: 0;
    left: 0;

    width: 50%;
    height: 100%;

    overflow: hidden;

    z-index: 2;
}


/*
IMPORTANT:

The image inside the clipped container
must keep the width of the complete comparison area.
*/

.nose-compare-before .nose-compare-image {
    width: var(--compare-width, 850px);
    max-width: none;
}


/* LABELS */

.nose-compare-label {
    position: absolute;

    top: 16px;

    z-index: 5;

    padding: 7px 12px;

    border-radius: 7px;

    font-size: 12px;
    font-weight: 700;

    color: #fff;

    pointer-events: none;
}


.nose-compare-label-before {
    left: 16px;

    background: rgba(0, 0, 0, 0.75);
}


.nose-compare-label-after {
    right: 16px;

    background: #1677ff;
}


/* DIVIDER */

.nose-compare-divider {
    position: absolute;

    top: 0;
    bottom: 0;

    left: 50%;

    width: 3px;

    background: #fff;

    z-index: 4;

    transform: translateX(-50%);

    pointer-events: none;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}


/* HANDLE */

.nose-compare-handle {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: #fff;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #1677ff;

    font-size: 13px;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.22);
}


/* INVISIBLE RANGE */

.nose-compare-range {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    margin: 0;

    z-index: 10;

    opacity: 0;

    cursor: ew-resize;
}


/* MOBILE */

@media (max-width: 767.98px) {

    .nose-compare {
        border-radius: 12px;
    }

    .nose-compare-label {
        top: 10px;

        padding: 6px 9px;

        font-size: 10px;
    }

    .nose-compare-label-before {
        left: 10px;
    }

    .nose-compare-label-after {
        right: 10px;
    }

    .nose-compare-handle {
        width: 42px;
        height: 42px;
    }

}