/* ============================================================
   PISOPRINT - BLUE / CYAN PREMIUM UI
============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #020b1c;
    --bg-light: #041326;

    --card: #08182c;
    --card-light: #0b2441;

    --border: #234b73;
    --border-light: #347fbd;

    --text: #ffffff;
    --muted: #7896bd;

    --blue: #168cff;
    --cyan: #19d8f2;
    --cyan-light: #8eeeff;

    --red: #ff5f6d;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background:
        radial-gradient(
            circle at 72% 25%,
            rgba(23, 112, 215, 0.16),
            transparent 34%
        ),
        radial-gradient(
            circle at 12% 55%,
            rgba(0, 202, 255, 0.08),
            transparent 30%
        ),
        #020b1c;

    display: flex;
    justify-content: center;

    padding:
        20px 16px 40px;
}

button,
input {
    font: inherit;
}


/* ============================================================
   APP
============================================================ */

.app {
    width: 100%;
    max-width: 470px;

    margin: 0 auto;
}


/* ============================================================
   HEADER
============================================================ */

.header {
    display: flex;

    justify-content:
        space-between;

    align-items:
        center;

    margin-bottom: 38px;
}

.brand {
    display: flex;

    align-items:
        center;

    gap: 12px;

    font-size: 22px;
    font-weight: 850;
}

.logo {
    width: 45px;
    height: 45px;

    border-radius: 13px;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    color: white;

    font-size: 24px;
    font-weight: 900;

    background:
        linear-gradient(
            145deg,
            #22e4df,
            #1685ff
        );

    box-shadow:
        0 0 28px
        rgba(25, 190, 255, 0.28);
}

.self-service {
    color: #718bb0;

    font-size: 12px;
}


/* ============================================================
   STEPS
============================================================ */

.steps {
    width: 100%;

    display: flex;

    align-items:
        center;

    justify-content:
        space-between;

    margin-bottom: 44px;
}

.step {
    display: flex;

    align-items:
        center;

    gap: 6px;

    color: #607a9f;

    font-size: 9px;
    font-weight: 750;

    white-space: nowrap;
}

.step-number {
    width: 26px;
    height: 26px;

    border-radius: 50%;

    display: flex;

    justify-content:
        center;

    align-items:
        center;

    background: #101e34;

    border:
        1px solid #213856;

    color: #7088a9;

    font-size: 11px;
}

.step.active {
    padding:
        4px 9px 4px 4px;

    color: white;

    border:
        1px solid
        rgba(48, 216, 255, 0.9);

    border-radius: 24px;

    background:
        rgba(0, 190, 255, 0.08);

    box-shadow:
        0 0 18px
        rgba(0, 200, 255, 0.17);
}

.step.active .step-number {
    color: white;

    border-color:
        #75edff;

    background:
        linear-gradient(
            145deg,
            #32dbf6,
            #1687ff
        );

    box-shadow:
        0 0 14px
        rgba(43, 206, 255, 0.72);
}

.step.done {
    color: #6de9fb;
}

.step.done .step-number {
    color: white;

    background:
        linear-gradient(
            145deg,
            #18b8d6,
            #138ec8
        );

    border-color: #5de8ff;
}

.connector {
    height: 1px;

    flex: 1;

    max-width: 14px;

    margin:
        0 3px;

    background: #38506e;
}


/* ============================================================
   TITLE
============================================================ */

.title {
    margin:
        0 0 8px;

    font-size: 34px;

    line-height: 1.1;

    letter-spacing: -1px;

    font-weight: 900;
}

.subtitle {
    margin:
        0 0 28px;

    color: #7695bf;

    font-size: 15px;

    line-height: 1.5;
}


/* ============================================================
   MAIN CARD
============================================================ */

.card {
    position: relative;

    padding: 20px;

    border-radius: 24px;

    border:
        1px solid
        rgba(91, 181, 255, 0.55);

    background:
        linear-gradient(
            145deg,
            rgba(13, 32, 58, 0.98),
            rgba(5, 20, 41, 0.98)
        );

    box-shadow:
        inset
        0 0 40px
        rgba(31, 112, 211, 0.055),

        0 0 35px
        rgba(0, 118, 255, 0.08);
}

.card::before {
    content: "";

    position: absolute;

    inset: -1px;

    border-radius: 24px;

    pointer-events: none;

    background:
        linear-gradient(
            120deg,
            rgba(96, 220, 255, 0.28),
            transparent 30%,
            transparent 70%,
            rgba(25, 131, 255, 0.16)
        );

    filter: blur(7px);

    z-index: -1;
}


/* ============================================================
   UPLOAD AREA
============================================================ */

.upload-area {
    min-height: 285px;

    padding:
        35px 20px;

    border:
        1.5px dashed
        #2678c7;

    border-radius: 17px;

    display: flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    text-align: center;

    cursor: pointer;

    overflow: hidden;

    position: relative;

    background:
        linear-gradient(
            145deg,
            rgba(10, 44, 85, 0.28),
            rgba(6, 21, 42, 0.18)
        );

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.upload-area:hover {
    border-color: #31d8ff;

    background:
        rgba(18, 88, 154, 0.12);

    box-shadow:
        inset
        0 0 30px
        rgba(0, 195, 255, 0.04);
}


/* File selected */

.upload-area.has-file {
    border:
        1.5px solid
        #31d9f5;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(0, 201, 255, 0.14),
            transparent 44%
        ),
        linear-gradient(
            145deg,
            rgba(11, 51, 91, 0.43),
            rgba(5, 24, 45, 0.30)
        );

    box-shadow:
        inset
        0 0 38px
        rgba(0, 190, 255, 0.045),

        0 0 27px
        rgba(0, 200, 255, 0.13);
}

.upload-area.has-file:hover {
    border-color: #72eaff;
}

#fileInput {
    display: none;
}


/* ============================================================
   DEFAULT UPLOAD CONTENT
============================================================ */

.upload-default-state {
    display: flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    width: 100%;
}

.upload-icon {
    width: 92px;
    height: 92px;

    margin:
        0 auto 20px;

    border-radius: 50%;

    display: flex;

    justify-content:
        center;

    align-items:
        center;

    background:
        radial-gradient(
            circle,
            rgba(18, 124, 221, 0.19),
            rgba(5, 28, 57, 0.77)
        );

    border:
        1px solid
        #00cfff;

    box-shadow:
        0 0 30px
        rgba(0, 194, 255, 0.18);
}

.upload-icon svg {
    width: 48px;
    height: 48px;

    fill: none;

    stroke: #8ae8ff;

    stroke-width: 1.6;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;

    filter:
        drop-shadow(
            0 0 6px
            rgba(73, 220, 255, 0.7)
        );
}

.upload-title {
    color: white;

    font-size: 21px;
    font-weight: 850;

    margin-bottom: 10px;
}

.upload-description {
    color: #8da3c3;

    font-size: 14px;

    line-height: 1.7;
}


/* ============================================================
   SELECTED STATE
============================================================ */

.upload-selected-state {
    width: 100%;

    display: none;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;
}

.selected-big-check {
    width: 88px;
    height: 88px;

    margin-bottom: 17px;

    border-radius: 50%;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    color: #b9f7ff;

    font-size: 42px;

    font-weight: 900;

    border:
        1px solid
        #46ddf8;

    background:
        radial-gradient(
            circle,
            rgba(0, 199, 255, 0.27),
            rgba(6, 43, 75, 0.84)
        );

    box-shadow:
        0 0 30px
        rgba(0, 199, 255, 0.23);
}

.selected-badge {
    display: inline-flex;

    align-items:
        center;

    gap: 6px;

    margin-bottom: 11px;

    padding:
        5px 11px;

    border-radius: 30px;

    border:
        1px solid
        rgba(49, 216, 255, 0.34);

    background:
        rgba(0, 187, 226, 0.11);

    color: #75ebfc;

    font-size: 9px;

    font-weight: 850;

    letter-spacing:
        0.45px;
}

.selected-badge-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #4aeaff;

    box-shadow:
        0 0 7px #4aeaff;
}

.selected-title {
    font-size: 21px;

    font-weight: 850;

    margin-bottom: 13px;
}

.selected-box-name {
    width: 100%;

    max-width: 325px;

    padding:
        12px 15px;

    border-radius: 13px;

    color: white;

    background:
        rgba(5, 27, 50, 0.85);

    border:
        1px solid
        rgba(51, 160, 215, 0.48);

    font-size: 13px;

    font-weight: 750;

    word-break:
        break-word;
}

.selected-box-size {
    margin-top: 8px;

    color: #7ea7c7;

    font-size: 10px;
}

.replace-text {
    margin-top: 18px;

    color: #55daf0;

    font-size: 11px;

    font-weight: 650;

    text-decoration: underline;

    text-underline-offset: 3px;
}


/* ============================================================
   SELECTED FILE SUMMARY CARD
============================================================ */

.selected-file {
    display: none;

    margin-top: 14px;

    padding:
        14px 15px;

    border-radius: 14px;

    border:
        1px solid
        rgba(38, 151, 204, 0.44);

    background:
        linear-gradient(
            145deg,
            #091e35,
            #07182b
        );

    box-shadow:
        inset
        0 0 20px
        rgba(0, 190, 255, 0.025);
}

.selected-file-inner {
    display: flex;

    align-items:
        center;

    gap: 12px;
}

.selected-file-icon {
    width: 44px;
    height: 44px;

    min-width: 44px;

    border-radius: 12px;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        #316b9b;

    background:
        linear-gradient(
            145deg,
            #153f67,
            #0b2746
        );
}

.selected-file-icon svg {
    width: 24px;
    height: 24px;

    fill: none;

    stroke: #8feaff;

    stroke-width: 1.6;
}

.selected-file-info {
    flex: 1;

    min-width: 0;
}

.selected-file-label {
    margin-bottom: 5px;

    color: #48dcef;

    font-size: 9px;

    font-weight: 850;

    letter-spacing:
        0.4px;
}

.selected-name {
    color: white;

    font-size: 13px;

    font-weight: 750;

    word-break:
        break-word;
}

.selected-size {
    margin-top: 5px;

    color: #718eaf;

    font-size: 10px;
}

.selected-check {
    width: 32px;
    height: 32px;

    min-width: 32px;

    border-radius: 50%;

    display: flex;

    justify-content:
        center;

    align-items:
        center;

    color: #8defff;

    border:
        1px solid
        rgba(48, 206, 236, 0.45);

    background:
        rgba(18, 150, 190, 0.14);

    font-size: 15px;

    font-weight: 900;
}


/* ============================================================
   SETTINGS
============================================================ */

.settings {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;

    margin-top: 18px;
}

.setting {
    min-height: 105px;

    display: flex;

    align-items:
        center;

    gap: 13px;

    padding: 15px;

    border-radius: 17px;

    border:
        1px solid #285384;

    background:
        linear-gradient(
            145deg,
            #0b2441,
            #08182c
        );

    box-shadow:
        inset
        0 0 25px
        rgba(43, 133, 255, 0.05);
}

.setting-icon {
    width: 50px;
    height: 50px;

    min-width: 50px;

    border-radius: 13px;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid #315c8d;

    background:
        linear-gradient(
            145deg,
            #193c67,
            #0b2340
        );
}

.setting-icon svg {
    width: 27px;
    height: 27px;

    fill: none;

    stroke: #9be9ff;

    stroke-width: 1.6;
}

.setting-text {
    min-width: 0;
}

.setting-label {
    margin-bottom: 8px;

    color: #78a1d0;

    font-size: 9px;

    font-weight: 800;
}

.setting-value {
    color: white;

    font-size: 16px;

    font-weight: 800;

    line-height: 1.2;
}

.setting-value.price,
.price {
    color: #1ed9ff;
}


/* ============================================================
   BUTTON
============================================================ */

.main-button {
    width: 100%;

    min-height: 70px;

    margin-top: 19px;

    border: none;

    border-radius: 17px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #169efc,
            #00d6e7
        );

    box-shadow:
        0 0 24px
        rgba(28, 192, 255, 0.25);

    font-size: 18px;

    font-weight: 850;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease,
        box-shadow 0.15s ease;
}

.main-button:hover:not(:disabled) {
    transform:
        translateY(-1px);

    box-shadow:
        0 0 30px
        rgba(28, 192, 255, 0.32);
}

.main-button:disabled {
    cursor:
        not-allowed;

    color:
        rgba(255, 255, 255, 0.40);

    background:
        linear-gradient(
            135deg,
            #557da9,
            #3e658d
        );

    opacity: 0.62;

    box-shadow: none;
}


/* ============================================================
   ERROR
============================================================ */

.error-box {
    display: none;

    margin-top: 15px;

    padding:
        12px 14px;

    border-radius: 12px;

    color: #ffb8bf;

    background:
        rgba(255, 58, 77, 0.10);

    border:
        1px solid
        rgba(255, 73, 91, 0.38);

    font-size: 12px;

    line-height: 1.5;
}


/* ============================================================
   OTHER STATUS PAGE SHARED CLASSES
============================================================ */

.loader-area {
    text-align: center;

    padding:
        35px 10px;
}

.loader {
    width: 48px;
    height: 48px;

    margin:
        0 auto 20px;

    border-radius: 50%;

    border:
        4px solid #17263a;

    border-top-color:
        #25c5df;

    animation:
        spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform:
            rotate(360deg);
    }
}

.file-card {
    padding: 14px;

    border:
        1px solid #1b2c43;

    border-radius: 12px;

    background: #0b1627;

    margin-bottom: 12px;
}

.file-name {
    font-size: 14px;

    font-weight: 700;

    word-break:
        break-word;
}

.file-subtitle {
    margin-top: 5px;

    color: #627690;

    font-size: 10px;
}

.detail-row {
    min-height: 50px;

    margin-top: 10px;

    padding:
        11px 14px;

    display: flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap: 15px;

    background: #0b1525;

    border:
        1px solid #17263a;

    border-radius: 11px;
}

.label {
    color: #667991;

    font-size: 9px;

    font-weight: 700;

    text-transform:
        uppercase;
}

.value {
    text-align: right;

    font-size: 14px;

    font-weight: 700;
}

.total-value {
    color: #36cee7;

    font-size: 19px;
}

.progress-container {
    width: 100%;

    height: 14px;

    margin-top: 15px;

    background: #111d30;

    border-radius: 20px;

    overflow: hidden;
}

.progress-bar {
    height: 100%;

    width: 0%;

    background:
        linear-gradient(
            90deg,
            #0f9fbe,
            #20d1d4
        );

    transition:
        width 0.3s ease;
}

.status-message {
    margin-top: 18px;

    text-align: center;

    color: #7489a6;

    font-size: 12px;

    line-height: 1.6;
}


/* ============================================================
   FOOTER
============================================================ */

.footer {
    margin-top: 28px;

    text-align: center;

    color: #435e82;

    font-size: 11px;
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 390px) {

    body {
        padding-left: 13px;
        padding-right: 13px;
    }

    .title {
        font-size: 30px;
    }

    .steps {
        gap: 2px;
    }

    .step {
        font-size: 8px;
    }

    .connector {
        max-width: 8px;
    }

    .setting {
        padding: 11px;
    }

    .setting-icon {
        width: 43px;
        height: 43px;

        min-width: 43px;
    }

    .setting-value {
        font-size: 14px;
    }

    .upload-area {
        min-height: 260px;
    }

}