:root {
    --bg: #0d1013;
    --panel: #171b1f;
    --panel-light: #20252a;

    --text: #ffffff;
    --muted: #9da5ad;

    --lime: #79e044;
    --green: #50cf67;
    --cyan: #10c8d1;

    --danger: #ff5c5c;

    --border: rgba(255, 255, 255, 0.09);

    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}


* {
    box-sizing: border-box;
}


html {
    background: var(--bg);
}


body {
    margin: 0;

    min-width: 320px;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top right,
            rgba(16, 200, 209, 0.08),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(121, 224, 68, 0.08),
            transparent 35%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


button {
    font: inherit;
}


.app-shell {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


.topbar {
    width: 100%;

    padding:
        calc(18px + env(safe-area-inset-top))
        22px
        16px;

    border-bottom: 1px solid var(--border);

    background:
        rgba(13, 16, 19, 0.88);

    backdrop-filter: blur(14px);
}


.brand {
    display: flex;
    align-items: center;

    font-size: 23px;
    font-weight: 800;

    letter-spacing: -0.7px;
}


.brand-o {
    width: 24px;
    height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-right: 1px;

    border-radius: 50%;

    color: transparent;

    background:
        linear-gradient(
            135deg,
            var(--lime),
            var(--cyan)
        );

    position: relative;
}


.brand-o::after {
    content: "";

    position: absolute;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: var(--bg);
}


.brand-text {
    color: white;
}


.main {
    width: 100%;

    flex: 1;

    display: flex;
    justify-content: center;
}


.screen {
    display: none;

    width: 100%;
    max-width: 520px;

    padding:
        34px
        20px
        44px;
}


.screen.active {
    display: block;
}


.hero {
    margin-bottom: 28px;
}


.eyebrow {
    margin-bottom: 13px;

    color: var(--cyan);

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 0.16em;
}


h1 {
    margin: 0;

    font-size: clamp(38px, 11vw, 58px);

    line-height: 0.98;

    letter-spacing: -0.055em;

    font-weight: 900;
}


h1 span {
    display: block;
}


.accent-green {
    color: var(--lime);
}


.hero-copy {
    max-width: 370px;

    margin:
        20px
        0
        0;

    color: var(--muted);

    font-size: 17px;
    line-height: 1.5;
}


.station-card {
    display: grid;

    grid-template-columns:
        auto
        1fr
        auto;

    align-items: center;

    gap: 14px;

    padding: 17px;

    margin-bottom: 18px;

    background:
        linear-gradient(
            145deg,
            #1b2024,
            #15191c
        );

    border:
        1px solid
        var(--border);

    border-radius: var(--radius-md);
}


.station-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            var(--lime),
            var(--cyan)
        );

    color: #071013;
}


.bolt {
    font-size: 28px;
    font-weight: 900;

    line-height: 1;
}


.station-details {
    min-width: 0;
}


.station-label {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.12em;
}


#cabinet-id {
    display: block;

    overflow: hidden;

    font-size: 17px;

    white-space: nowrap;
    text-overflow: ellipsis;
}


.station-status {
    display: flex;
    align-items: center;

    gap: 7px;

    color: #c8f7b0;

    font-size: 12px;
    font-weight: 700;
}


.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--lime);

    box-shadow:
        0 0 10px
        rgba(121, 224, 68, 0.8);
}


.rent-card {
    padding: 22px;

    margin-bottom: 34px;

    border:
        1px solid
        var(--border);

    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            145deg,
            #181d21,
            #121619
        );
}


.price-block {
    margin-bottom: 20px;
}


.price-label {
    display: block;

    margin-bottom: 3px;

    color: var(--muted);

    font-size: 13px;
}


.price {
    font-size: 32px;
    font-weight: 900;

    letter-spacing: -0.03em;
}


.price span {
    color: var(--muted);

    font-size: 15px;
    font-weight: 600;
}


.price-block p {
    margin:
        5px
        0
        0;

    color: var(--muted);

    font-size: 12px;
}


.primary-button,
.secondary-button {
    width: 100%;

    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    border: 0;
    border-radius: 16px;

    font-size: 16px;
    font-weight: 900;

    letter-spacing: 0.03em;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
}


.primary-button {
    color: #071013;

    background:
        linear-gradient(
            100deg,
            var(--lime),
            var(--cyan)
        );

    box-shadow:
        0 14px 30px
        rgba(16, 200, 209, 0.14);
}


.primary-button:active {
    transform: translateY(1px);
}


.primary-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


.button-arrow {
    font-size: 22px;
}


.secondary-button {
    margin-top: 28px;

    color: white;

    background: var(--panel-light);

    border:
        1px solid
        var(--border);
}


.secure-note {
    margin:
        13px
        0
        0;

    text-align: center;

    color: var(--muted);

    font-size: 12px;
}


.steps h2 {
    margin:
        0
        0
        16px;

    font-size: 18px;
}


.step-grid {
    display: grid;
    gap: 12px;
}


.step {
    display: grid;

    grid-template-columns:
        auto
        1fr;

    gap: 13px;

    align-items: center;

    padding: 14px 0;

    border-bottom:
        1px solid
        var(--border);
}


.step-number {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: var(--lime);

    background:
        rgba(121, 224, 68, 0.09);

    font-weight: 900;
}


.step strong {
    display: block;

    margin-bottom: 3px;

    font-size: 15px;
}


.step span {
    color: var(--muted);

    font-size: 13px;
}


.center-state {
    min-height: 66vh;

    display: flex;
    flex-direction: column;
    justify-content: center;

    text-align: center;

    align-items: center;
}


.center-state h1 {
    max-width: 440px;

    font-size: clamp(38px, 10vw, 54px);
}


.center-state p {
    max-width: 350px;

    margin:
        20px
        auto
        0;

    color: var(--muted);

    font-size: 16px;

    line-height: 1.5;
}


.pulse-ring {
    width: 118px;
    height: 118px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 34px;

    border-radius: 50%;

    background:
        rgba(16, 200, 209, 0.08);

    position: relative;
}


.pulse-ring::before,
.pulse-ring::after {
    content: "";

    position: absolute;

    inset: 0;

    border:
        2px solid
        rgba(121, 224, 68, 0.5);

    border-radius: 50%;

    animation:
        pulse
        1.8s
        infinite;
}


.pulse-ring::after {
    animation-delay: 0.9s;
}


.battery-icon {
    width: 66px;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        4px solid
        white;

    border-radius: 16px;

    background:
        linear-gradient(
            180deg,
            #1d2529,
            #101416
        );

    z-index: 2;

    color: var(--lime);
}


.loading-bar {
    width: min(290px, 80%);

    height: 5px;

    margin-top: 32px;

    overflow: hidden;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.08);
}


.loading-bar-inner {
    width: 45%;
    height: 100%;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            var(--lime),
            var(--cyan)
        );

    animation:
        loading
        1.3s
        infinite
        ease-in-out;
}


.success-icon,
.error-icon {
    width: 88px;
    height: 88px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 30px;

    border-radius: 50%;

    font-size: 40px;
    font-weight: 900;
}


.success-icon {
    color: #071013;

    background:
        linear-gradient(
            135deg,
            var(--lime),
            var(--cyan)
        );
}


.error-icon {
    color: white;

    background:
        rgba(255, 92, 92, 0.15);

    border:
        2px solid
        rgba(255, 92, 92, 0.5);
}


.release-details {
    width: 100%;

    margin-top: 28px;

    padding: 18px;

    border:
        1px solid
        var(--border);

    border-radius: var(--radius-md);

    background: var(--panel);
}


.release-details span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);

    font-size: 11px;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


.release-details strong {
    font-size: 18px;
}


.footer {
    display: flex;

    justify-content: space-between;

    gap: 16px;

    padding:
        20px
        22px
        calc(20px + env(safe-area-inset-bottom));

    color: #626b73;

    border-top:
        1px solid
        var(--border);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.08em;
}


@keyframes pulse {
    0% {
        transform: scale(0.75);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}


@keyframes loading {
    0% {
        transform: translateX(-130%);
    }

    100% {
        transform: translateX(330%);
    }
}


@media (min-width: 700px) {

    .screen {
        padding-top: 54px;
    }


    .topbar {
        display: flex;
        justify-content: center;
    }


    .topbar .brand {
        width: 520px;
    }

}


@media (max-width: 370px) {

    .screen {
        padding-left: 16px;
        padding-right: 16px;
    }


    .station-status {
        display: none;
    }


    .station-card {
        grid-template-columns:
            auto
            1fr;
    }


    .rent-card {
        padding: 18px;
    }


    .footer {
        flex-direction: column;

        align-items: center;

        text-align: center;
    }

}