* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(77, 195, 250, 0.12), transparent 28%),
        linear-gradient(180deg, #141a27 0%, #101522 100%);
    color: #f2f5fb;
}

body {
    padding: 0;
    min-height: 100dvh;
    overflow: hidden;
}

.wrap {
    width: min(1080px, calc(100% - 24px));
    margin: 0 auto;
    min-height: 100dvh;
    padding: 16px 0;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 12px;
}

.hidden {
    display: none !important;
}

.page-head {
    margin-bottom: 0;
}

h1,
h2,
p {
    margin-top: 0;
}

.eyebrow {
    margin-bottom: 12px;
    color: #76d7ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.subtitle,
.note,
.hero-text {
    color: #a7aebf;
}

.panel {
    background: rgba(22, 29, 45, 0.92);
    border: 1px solid #2d3953;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.step-screen {
    min-height: 0;
    height: 100%;
    display: grid;
    align-content: center;
    gap: 20px;
}

.hero-copy {
    max-width: 760px;
}

.hero-copy h2 {
    margin-bottom: 14px;
    font-size: clamp(32px, 4.4vw, 58px);
    line-height: 1.06;
}

.hero-text {
    max-width: 700px;
    font-size: 18px;
    line-height: 1.65;
}

.status {
    display: none;
    margin-bottom: 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #303d58;
    background: #182131;
}

.status.show {
    display: block;
}

.status.info {
    color: #8fdcff;
}

.status.success {
    color: #88f5a8;
}

.status.error {
    color: #ff8ca1;
}

.status.warning {
    color: #ffd58a;
}

.step-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.final-layout {
    display: grid;
    gap: 18px;
    max-width: 520px;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 999px;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 800;
    font-size: 15px;
    transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
}

button:focus,
button:focus-visible,
button:active {
    outline: none;
    box-shadow: none;
}

button:disabled,
button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.primary-button {
    border: 1px solid #2cb6ea;
    background: linear-gradient(180deg, #2cb6ea 0%, #177ec2 100%);
    color: #081420;
    box-shadow: 0 18px 40px rgba(25, 144, 214, 0.28);
}

.secondary-button {
    border: 1px solid #41627d;
    background: linear-gradient(180deg, #213448 0%, #1a2737 100%);
    color: #f2f5fb;
}

.package-block {
    display: grid;
    gap: 10px;
    max-width: 760px;
}

.package-item {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #2e3d57;
    background: rgba(24, 33, 49, 0.95);
    color: #d9e0ee;
    font-size: 14px;
    font-weight: 600;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.span-5 {
    grid-column: span 5;
}

.span-7 {
    grid-column: span 7;
}

.meta-card {
    display: grid;
    gap: 12px;
}

.final-model-card {
    max-width: 360px;
}

.meta-item {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #303d58;
    background: #182131;
}

.meta-label {
    display: block;
    margin-bottom: 6px;
    color: #76d7ff;
    font-size: 13px;
}

.meta-value {
    font-size: 18px;
    font-weight: 700;
    word-break: break-word;
}

.note {
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 960px) {
    .grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .span-5,
    .span-7 {
        grid-column: span 6;
    }
}

@media (max-width: 720px) {
    .wrap {
        width: min(100%, calc(100% - 16px));
        min-height: 100dvh;
        padding: 10px 0;
        gap: 10px;
    }

    .panel {
        padding: 18px;
    }

    .step-screen {
        gap: 14px;
    }

    .hero-copy h2 {
        margin-bottom: 10px;
        font-size: 30px;
    }

    .hero-text {
        font-size: 15px;
        line-height: 1.5;
    }

    .eyebrow {
        margin-bottom: 8px;
    }

    .page-head h1 {
        margin-bottom: 0;
        font-size: 28px;
    }

    .status {
        padding: 10px 12px;
        font-size: 14px;
    }

    .final-layout,
    .final-model-card {
        max-width: 100%;
    }

    .step-actions {
        flex-direction: column;
        align-items: stretch;
    }

    button {
        min-height: 46px;
        width: 100%;
    }

    .package-block {
        gap: 8px;
    }

    .package-item,
    .meta-item {
        padding: 12px 14px;
    }
}
