* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: #080809;
    color: #fff;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    overflow-x: hidden;
}


/* =========================================================
   BACKGROUND
========================================================= */

.install-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(245,158,11,.08),
            transparent 35%
        ),
        #080809;
}

.install-glow {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .35;
    animation: glowMove 8s ease-in-out infinite alternate;
}

.install-glow-one {
    top: -180px;
    left: -150px;
    background: #f59e0b;
}

.install-glow-two {
    right: -180px;
    bottom: -200px;
    background: #7c2d12;
    animation-delay: -3s;
}

@keyframes glowMove {

    from {
        transform: translate3d(0,0,0) scale(1);
    }

    to {
        transform: translate3d(40px,25px,0) scale(1.12);
    }

}


/* =========================================================
   WRAPPER
========================================================= */

.install-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    padding: 50px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   CARD
========================================================= */

.install-card {
    width: min(720px, 100%);
    min-height: 620px;
    padding: 42px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 28px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.02)
        );
    backdrop-filter: blur(25px);
    box-shadow:
        0 40px 100px rgba(0,0,0,.55),
        inset 0 1px 0 rgba(255,255,255,.04);
}


/* =========================================================
   LOGO
========================================================= */

.install-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 45px;
}

.install-logo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #f59e0b,
        #d97706
    );
    box-shadow:
        0 10px 30px rgba(245,158,11,.2);
    font-size: 23px;
}

.install-logo strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.install-logo span {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,.45);
    font-size: 11px;
}


/* =========================================================
   PROGRESS
========================================================= */

.install-progress {
    margin-bottom: 45px;
}

.install-progress-line {
    height: 3px;
    width: 100%;
    position: relative;
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    overflow: hidden;
}

.install-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(
        90deg,
        #f59e0b,
        #fbbf24
    );
    transition: width .5s cubic-bezier(.4,0,.2,1);
}

.install-steps {
    display: flex;
    justify-content: space-between;
    margin-top: -12px;
}

.install-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.3);
    transition: .3s ease;
}

.install-step span {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,.12);
    border-radius: 50%;
    background: #101012;
    font-size: 10px;
    font-weight: 700;
    transition: .3s ease;
}

.install-step small {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.install-step.active {
    color: #fff;
}

.install-step.active span {
    border-color: #f59e0b;
    background: #f59e0b;
    color: #111;
    box-shadow:
        0 0 0 5px rgba(245,158,11,.08);
}


/* =========================================================
   PANELS
========================================================= */

.install-panel {
    display: none;
    animation: panelIn .45s ease;
}

.install-panel.active {
    display: block;
}

@keyframes panelIn {

    from {
        opacity: 0;
        transform: translateX(25px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


/* =========================================================
   PANEL CONTENT
========================================================= */

.install-panel-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 18px;
    background: rgba(245,158,11,.09);
    border: 1px solid rgba(245,158,11,.18);
    color: #f59e0b;
    font-size: 25px;
}

.install-panel h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 5vw, 38px);
    line-height: 1.1;
    letter-spacing: -.04em;
}

.install-panel > p {
    margin: 0;
    color: rgba(255,255,255,.62);
    line-height: 1.7;
}

.install-description {
    max-width: 530px;
    margin-top: 12px !important;
    color: rgba(255,255,255,.4) !important;
}


/* =========================================================
   BUTTON
========================================================= */

.install-button {
    min-height: 50px;
    padding: 0 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #f59e0b,
        #d97706
    );
    color: #111;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        0 12px 30px rgba(245,158,11,.16);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}

.install-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 35px rgba(245,158,11,.25);
}

.install-button:active {
    transform: translateY(0);
}

.install-button.secondary {
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.75);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: none;
}

.install-button.disabled {
    opacity: .35;
    cursor: not-allowed;
    transform: none;
}

.install-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 35px;
}


/* =========================================================
   REQUIREMENTS
========================================================= */

.requirements {
    margin-top: 28px;
    display: grid;
    gap: 10px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}

.requirement-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
}

.requirement.ok .requirement-icon {
    background: rgba(34,197,94,.12);
    color: #4ade80;
}

.requirement.error .requirement-icon {
    background: rgba(239,68,68,.12);
    color: #f87171;
}

.requirement strong {
    display: block;
    font-size: 12px;
}

.requirement small {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,.4);
    font-size: 10px;
}


/* =========================================================
   FIELDS
========================================================= */

.install-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 28px;
}

.install-field {
    margin-top: 16px;
}

.install-grid .install-field {
    margin-top: 0;
}

.install-field.full {
    grid-column: 1 / -1;
}

.install-field label {
    display: block;
    margin-bottom: 7px;
    color: rgba(255,255,255,.65);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.install-field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.09);
    outline: none;
    border-radius: 11px;
    background: rgba(0,0,0,.2);
    color: #fff;
    font-size: 13px;
    transition: .2s ease;
}

.install-field input:focus {
    border-color: rgba(245,158,11,.6);
    box-shadow:
        0 0 0 3px rgba(245,158,11,.08);
}

.install-field input::placeholder {
    color: rgba(255,255,255,.2);
}


/* =========================================================
   MESSAGE
========================================================= */

.install-message {
    display: none;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
}

.install-message.show {
    display: block;
}

.install-message.error {
    color: #fca5a5;
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.15);
}

.install-message.success {
    color: #86efac;
    background: rgba(34,197,94,.08);
    border: 1px solid rgba(34,197,94,.15);
}


/* =========================================================
   SUCCESS
========================================================= */

.install-success,
.install-success-page,
.install-error-page {
    text-align: center;
    padding: 45px 0;
}

.success-circle,
.error-circle {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 38px;
    font-weight: 800;
    animation: successPop .6s cubic-bezier(.2,.8,.2,1);
}

.success-circle {
    color: #4ade80;
    background: rgba(34,197,94,.1);
    border: 1px solid rgba(34,197,94,.25);
    box-shadow:
        0 0 0 15px rgba(34,197,94,.025);
}

.error-circle {
    color: #f87171;
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.25);
}

@keyframes successPop {

    0% {
        opacity: 0;
        transform: scale(.5);
    }

    70% {
        transform: scale(1.08);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }

}

.install-success h1,
.install-success-page h1,
.install-error-page h1 {
    margin: 0 0 12px;
    font-size: 32px;
}

.install-success p,
.install-success-page p,
.install-error-page p {
    color: rgba(255,255,255,.55);
    line-height: 1.7;
}

.install-loading-text {
    margin-top: 25px;
    color: rgba(255,255,255,.35);
    font-size: 11px;
}

.install-link {
    margin-top: 25px;
}

.install-admin-link {
    display: block;
    margin-top: 18px;
    color: rgba(255,255,255,.45);
    font-size: 11px;
    text-decoration: none;
}

.install-admin-link:hover {
    color: #f59e0b;
}


/* =========================================================
   FOOTER
========================================================= */

.install-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255,255,255,.25);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.install-footer span {
    margin: 0 7px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .install-wrapper {
        padding: 20px 12px;
    }

    .install-card {
        min-height: 650px;
        padding: 28px 20px;
        border-radius: 22px;
    }

    .install-logo {
        margin-bottom: 35px;
    }

    .install-progress {
        margin-bottom: 35px;
    }

    .install-step small {
        display: none;
    }

    .install-grid {
        grid-template-columns: 1fr;
    }

    .install-grid .install-field {
        grid-column: auto;
    }

    .install-actions {
        flex-direction: column-reverse;
    }

    .install-button {
        width: 100%;
    }

    .install-success,
    .install-success-page,
    .install-error-page {
        padding: 25px 0;
    }

}