:root {
    --bg: #f3f6fa;
    --panel: rgba(255, 255, 255, 0.98);
    --panel-border: #dde6f1;
    --text: #16263a;
    --muted: #61748a;
    --primary: #1769e0;
    --primary-dark: #114ea7;
    --accent: #18a46b;
    --danger: #d9534f;
    --success: #22a765;
    --shadow: 0 18px 46px rgba(42, 68, 102, 0.09);
    --radius-xl: 30px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --surface: #f8fbff;
    --surface-2: #eef3f8;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f6f8fb 0%, #eff4f9 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 24px auto;
}

.topbar,
.footer,
.card-panel,
.trust-panel {
    background: var(--panel);
    backdrop-filter: blur(18px);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 26px;
    border-radius: 20px;
    margin-bottom: 26px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #3ca4ff);
}

.brand strong,
.brand span {
    display: block;
}

.brand span {
    color: var(--muted);
    font-size: 0.88rem;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #4e6177;
}

.pill-link {
    padding: 11px 18px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #2d8bff);
}

.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 38px 28px 44px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(115, 176, 233, 0.28), transparent 32%),
        radial-gradient(circle at top right, rgba(136, 231, 191, 0.22), transparent 30%),
        linear-gradient(135deg, #deebf8 0%, #edf7f4 100%);
    border: 1px solid rgba(197, 217, 236, 0.9);
    box-shadow: 0 22px 52px rgba(54, 79, 109, 0.12);
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 820px;
    min-height: 10px;
    padding: 6px 0 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eyebrow,
.card-kicker,
.success-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--primary-dark);
    background: rgba(23, 105, 224, 0.08);
}

.hero-copy h1 {
    margin: 0 0 8px;
    font-size: clamp(2.3rem, 3vw, 3.45rem);
    line-height: 1.06;
    text-align: center;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.hero-copy p {
    max-width: 720px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #3f556d;
}

.hero-copy p,
.card-head p,
.warning-box p,
.success-panel p,
.trust-panel p,
.footer p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.steps {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 0 16px -1px;
    align-items: end;
    background: transparent;
    overflow: visible;
}

.step-card {
    position: relative;
}

.step-tab-form {
    margin: 0;
}

.step-tab {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 14px 14px 16px;
    border: 1px solid #d7e3ee;
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(180deg, rgba(233, 244, 249, 0.96), rgba(245, 250, 253, 0.96));
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.55);
    justify-content: center;
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.step-tab:hover:not(:disabled) {
    transform: translateY(-1px);
}

.step-icon-wrap {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: grid;
    place-items: center;
}

.step-icon {
    width: 52px;
    height: 52px;
    display: block;
}

.step-card.active .step-tab {
    min-height: 92px;
    margin-bottom: -1px;
    background: rgba(255, 255, 255, 0.98);
    border-color: #dbe5ef;
    box-shadow: 0 -8px 18px rgba(98, 130, 167, 0.08);
}

.step-card.complete .step-tab {
    background: linear-gradient(180deg, rgba(237, 247, 251, 0.96), rgba(244, 250, 253, 0.96));
}

.step-card.locked .step-tab {
    opacity: 0.66;
    cursor: not-allowed;
    filter: saturate(0.86);
}

.step-tab:disabled {
    pointer-events: none;
}

.step-tab-copy {
    display: block;
}

.step-tab-copy strong {
    display: block;
    line-height: 1.08;
    font-size: 0.88rem;
    color: #1d2c3b;
}

.step-card.complete .step-tab-copy strong,
.step-card.active .step-tab-copy strong {
    color: #172a3d;
}

.card-panel {
    padding: 28px;
    border-radius: var(--radius-xl);
}

.wizard-card {
    position: relative;
    z-index: 2;
    width: min(900px, 100%);
    padding: 0 0 26px;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(50, 72, 96, 0.16);
}

.tab-panel {
    padding: 24px 26px 0;
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.card-head h2,
.trust-panel h2,
.success-panel h2 {
    margin: 10px 0 0;
    font-size: 2rem;
}

.ticket-card-head {
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 22px 28px 10px;
}

.ticket-card-head .card-kicker {
    display: none;
}

.ticket-card-head h2 {
    margin: 0;
    font-size: 1.4rem;
}

.ticket-card-head p {
    margin-top: 8px;
}

.alert,
.tag,
.warning-box {
    border-radius: var(--radius-md);
    margin-bottom: 18px;
}

.alert {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 14px 16px;
    font-weight: 700;
}

.alert.error {
    color: #8b1f1b;
    background: rgba(217, 83, 79, 0.12);
    border: 1px solid rgba(217, 83, 79, 0.2);
}

.alert.success,
.tag.ok {
    color: #16663f;
    background: rgba(34, 167, 101, 0.12);
    border: 1px solid rgba(34, 167, 101, 0.2);
}

.tag {
    display: inline-flex;
    padding: 10px 14px;
    color: var(--primary-dark);
    background: rgba(34, 135, 243, 0.1);
}

.form-grid,
.preview-grid,
.result-grid {
    display: grid;
    gap: 16px;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ticket-form {
    width: min(420px, calc(100% - 40px));
    margin: 0 auto;
    gap: 12px;
    grid-template-columns: 1fr;
}

.ticket-form-compact {
    width: min(520px, 100%);
}

.ticket-form label.ticket-field {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.ticket-form .ticket-field .field-copy {
    min-width: 0;
}

.ticket-form .ticket-field .field-copy strong {
    display: block;
}

.form-grid label,
.inline-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.93rem;
    font-weight: 700;
}

.form-grid span,
.inline-form span {
    color: var(--text);
}

input,
select,
button {
    font: inherit;
}

input,
select {
    width: 100%;
    border: 1px solid rgba(126, 161, 204, 0.35);
    border-radius: 14px;
    padding: 14px 16px;
    outline: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.95);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ticket-form input {
    border-radius: 12px;
    padding: 13px 16px;
    background: #f8fafc;
    border-color: #d3dce7;
    box-shadow: none;
}

.ticket-field {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.ticket-field .field-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ticket-field strong {
    font-size: 0.88rem;
}

.ticket-field-full {
    grid-column: 1 / -1;
    margin-top: 0;
}

.ticket-split-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.ticket-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    align-self: center;
}

.ticket-icon img {
    width: 32px;
    height: 32px;
    display: block;
}

input:focus,
select:focus {
    border-color: rgba(34, 135, 243, 0.55);
    box-shadow: 0 0 0 4px rgba(34, 135, 243, 0.12);
}

.full {
    grid-column: 1 / -1;
}

.inline-form {
    display: flex;
    gap: 14px;
    align-items: end;
    margin: 20px 0 16px;
}

.inline-form-card,
.form-shell,
.download-panel {
    padding: 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--panel-border);
}

.inline-form-card {
    margin-top: 0;
}

.grow {
    flex: 1 1 auto;
}

.primary-button,
.secondary-button,
.ghost-button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 15px 22px;
    font-weight: 700;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
    transform: translateY(-1px);
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #287cf2);
    box-shadow: 0 12px 24px rgba(23, 105, 224, 0.18);
}

.ticket-submit {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding: 17px 22px;
    font-size: 0.98rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.ticket-help-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 20px auto 0;
    color: #72859a;
    font-size: 0.86rem;
    width: min(520px, 100%);
    padding-top: 14px;
    border-top: 1px solid #e7edf4;
}

.ticket-help-row span {
    position: relative;
    padding-left: 16px;
}

.ticket-help-row span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-50%);
}

.hero-dot,
.hero-badge,
.hero-bubble,
.hero-floor,
.hero-art {
    position: absolute;
    pointer-events: none;
}

.hero-dot {
    width: 92px;
    height: 68px;
    opacity: 0.5;
    background-image: radial-gradient(circle, rgba(113, 167, 220, 0.8) 1.3px, transparent 1.3px);
    background-size: 11px 11px;
}

.hero-dot-left {
    left: 10px;
    top: 98px;
}

.hero-dot-right {
    right: 24px;
    top: 58px;
}

.hero-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 244, 255, 0.92));
    border: 1px solid #d5e4f1;
    box-shadow: 0 10px 20px rgba(80, 118, 160, 0.08);
}

.hero-badge-left {
    left: 78px;
    top: 220px;
}

.hero-badge-right {
    right: 82px;
    bottom: 116px;
}

.hero-art {
    z-index: 1;
    display: block;
}

.hero-art-left {
    left: 32px;
    bottom: 32px;
    width: 132px;
}

.hero-art-right {
    right: 28px;
    top: 72px;
    width: 114px;
}

.hero-bubble {
    border-radius: 50%;
    background: rgba(123, 185, 237, 0.24);
}

.hero-bubble-left {
    width: 18px;
    height: 18px;
    left: 92px;
    bottom: 48px;
}

.hero-bubble-right {
    width: 22px;
    height: 22px;
    right: 38px;
    bottom: 34px;
}

.hero-floor {
    left: 0;
    right: 0;
    bottom: 0;
    height: 190px;
    background:
        radial-gradient(90% 120% at 50% 0%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.95) 52%, transparent 53%);
}

.secondary-button {
    color: var(--primary-dark);
    background: rgba(23, 105, 224, 0.1);
}

.ghost-button {
    color: var(--text);
    background: rgba(21, 48, 77, 0.08);
}

.security-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.88rem;
}

.info-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
}

.info-grid-tight {
    margin-bottom: 16px;
}

.issuer-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(19, 96, 209, 0.08), rgba(53, 196, 150, 0.09));
    border: 1px solid rgba(126, 161, 204, 0.22);
}

.issuer-banner-copy {
    min-width: 0;
}

.issuer-banner-details {
    padding-left: 1rem;
}

.issuer-banner-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.82rem;
    color: var(--muted);
}

.issuer-banner strong {
    font-size: 1rem;
}

.issuer-banner-visual {
    min-height: 124px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(126, 161, 204, 0.16);
}

.issuer-banner-visual img {
    max-width: 100%;
    max-height: 96px;
    object-fit: contain;
}

.issuer-banner-placeholder {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: linear-gradient(135deg, rgba(23, 105, 224, 0.12), rgba(24, 164, 107, 0.18));
    border: 1px solid rgba(126, 161, 204, 0.22);
}

.info-card,
.preview-card,
.product-list,
.warning-box,
.success-panel {
    padding: 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--panel-border);
}

.info-card h3,
.preview-card h3,
.section-title h3 {
    margin: 0 0 14px;
}

dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

dt {
    color: var(--muted);
}

dd {
    margin: 0;
    text-align: right;
    font-weight: 700;
}

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

.actions.spread {
    justify-content: space-between;
}

.preview-grid,
.result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.preview-grid-compact {
    grid-template-columns: 1.1fr 1fr;
}

.result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(142, 176, 219, 0.18);
}

th {
    color: var(--muted);
    font-size: 0.88rem;
}

.warning-box {
    margin: 18px 0;
    background: #fff9ea;
    border-color: #f0ddb1;
}

.card-head-compact {
    margin-bottom: 16px;
}

.card-head-compact h2 {
    margin-top: 0;
    font-size: 1.6rem;
}

.download-form {
    gap: 12px;
}

.download-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.download-panel h3 {
    margin: 0 0 6px;
}

.download-panel p {
    margin: 0;
    color: var(--muted);
}

.success-panel {
    text-align: center;
}

.centered-action {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(13, 30, 49, 0.5);
}

.modal-card {
    width: min(520px, 100%);
    padding: 24px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--panel-border);
    box-shadow: 0 18px 46px rgba(42, 68, 102, 0.18);
}

.modal-card h3 {
    margin: 0 0 10px;
}

.modal-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.modal-backdrop[hidden] {
    display: none;
}

.trust-panel,
.footer {
    margin-top: 26px;
    padding: 28px;
    border-radius: var(--radius-xl);
}

.trust-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 120px));
    gap: 12px;
}

.logo-grid span {
    display: grid;
    place-items: center;
    min-height: 72px;
    border-radius: 14px;
    font-weight: 700;
    background: #f5f8fc;
    border: 1px solid var(--panel-border);
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
    color: var(--muted);
}

@media (max-width: 980px) {
    .hero,
    .trust-panel,
    .footer,
    .card-head,
    .preview-grid,
    .result-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .topbar {
        border-radius: 28px;
    }

    .topnav {
        justify-content: flex-start;
    }

    .logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin: 0 12px 8px;
    }

    .step-tab {
        min-height: 72px;
        border-radius: 18px;
        border-bottom: 1px solid #d7e3ee;
    }

    .step-card.active .step-tab {
        min-height: 78px;
        margin-bottom: 0;
    }

    .issuer-banner,
    .preview-grid-compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 18px, 100%);
    }

    .topbar,
    .card-panel,
    .trust-panel,
    .footer {
        padding: 18px;
        border-radius: 22px;
    }

    .form-grid,
    .info-grid,
    .preview-grid,
    .result-grid {
        grid-template-columns: 1fr;
    }

    .ticket-split-row,
    .steps {
        grid-template-columns: 1fr;
    }

    .inline-form,
    .actions.spread,
    .footer,
    .download-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-links {
        text-align: left;
    }

    .hero {
        padding: 32px 12px 24px;
        border-radius: 28px;
    }

    .wizard-card {
        width: 100%;
        padding: 0 0 18px;
    }

    .tab-panel {
        padding: 18px 18px 0;
    }

    .ticket-form {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .hero-dot,
    .hero-badge,
    .hero-bubble,
    .hero-floor,
    .hero-art {
        display: none;
    }
}
