:root {
    --vtb-blue: #0039a6;
    --vtb-light-blue: #1b8fff;
    --vtb-electric: #37b8ff;
    --vtb-bg: #f2f5f8;
    --vtb-white: #ffffff;
    --vtb-text-main: #2b2d33;
    --vtb-text-secondary: #707684;
    --vtb-border: #e3e8ef;
    --vtb-success: #27ae60;
    --vtb-warning: #f2994a;
    --vtb-danger: #d74444;
    --vtb-radius: 16px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
    background: #eef2f6;
    color: var(--vtb-text-main);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

#phone-shell {
    position: relative;
    width: min(100%, 960px);
    min-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    background: transparent;
}

.screen {
    display: none;
    position: absolute;
    inset: 0;
    min-height: 100vh;
    animation: none;
}

.screen.is-active {
    display: block;
}

.screen__scroll {
    height: 100%;
    overflow-y: auto;
    padding: 24px 0 32px;
    max-width: 960px;
    margin: 0 auto;
    scrollbar-width: none;
}

.screen__scroll::-webkit-scrollbar {
    display: none;
}

.screen__scroll--with-tabbar {
    padding-bottom: 32px;
}

.vtb-main-header {
    margin: 0 16px 16px;
    padding: 24px;
    border: 1px solid #dce4ef;
    border-radius: 14px;
    color: var(--vtb-text-main);
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.main-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-badge {
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    font-size: 12px;
    font-weight: 700;
    color: var(--vtb-blue);
}

.main-brand {
    font-size: 16px;
    font-weight: 700;
}

.account-balance {
    margin-top: 28px;
}

.account-balance__label {
    font-size: 14px;
    color: var(--vtb-text-secondary);
}

.account-balance__amount {
    margin-top: 6px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.05;
}

.account-balance__meta {
    margin-top: 10px;
    font-size: 13px;
    color: var(--vtb-text-secondary);
}

.main-stack {
    padding-bottom: 96px;
}

.header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.back-btn,
.header-link,
.header-space {
    min-width: 48px;
}

.back-btn {
    font-size: 24px;
    color: var(--vtb-blue);
    text-align: left;
}

.header-link {
    color: var(--vtb-blue);
    font-weight: 600;
    text-align: right;
}

h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--vtb-text-main);
}

h2 {
    margin: 12px 0 6px;
    font-size: 24px;
    line-height: 1.15;
}

.card {
    margin: 0 16px 12px;
    padding: 16px;
    border-radius: 12px;
    background: var(--vtb-white);
    border: 1px solid var(--vtb-border);
    box-shadow: none;
    transition: none;
}

.card-row,
.detail-row,
.confirmation-list li,
.button-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-row--top {
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--vtb-text-main);
}

.card-subtitle,
.benefit-meta,
.timeline-text,
.summary-card__text,
.summary-card__meta,
.entry-note,
.faq-item {
    color: var(--vtb-text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.benefit-entry-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #7fb2ff;
    box-shadow:
        inset 0 0 0 1px rgba(27, 143, 255, 0.18),
        0 10px 24px rgba(27, 143, 255, 0.08);
    transform-origin: center;
    transition:
        transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 280ms ease,
        border-color 280ms ease;
}

.benefit-entry-card__shine {
    position: absolute;
    top: -22%;
    left: -28%;
    width: 28%;
    height: 144%;
    pointer-events: none;
    opacity: 0.7;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.18) 18%,
        rgba(255, 255, 255, 0.78) 48%,
        rgba(255, 255, 255, 0.18) 82%,
        rgba(255, 255, 255, 0) 100%
    );
    filter: blur(8px);
    transform: skewX(-20deg) translateX(0);
}

.benefit-entry-card:hover {
    transform: scale(1.018);
    border-color: #4e95ff;
    box-shadow:
        inset 0 0 0 1px rgba(27, 143, 255, 0.26),
        0 16px 34px rgba(27, 143, 255, 0.14);
}

.card-link-text {
    color: var(--vtb-text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge,
.status-pill,
.mini-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.badge {
    color: var(--vtb-text-secondary);
    background: #f3f6f9;
}

.badge--warning {
    color: #ef6c00;
    background: #fff3e0;
}

.entry-note {
    margin-top: 12px;
}

.section-title,
.section-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--vtb-text-secondary);
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 12px;
}

.section-label {
    margin: 16px 16px 10px;
}

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

.service-item {
    text-align: center;
    font-size: 12px;
    color: var(--vtb-text-main);
}

.service-chip {
    width: 46px;
    height: 46px;
    margin: 0 auto 8px;
    padding: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px solid #d6e3f7;
    box-shadow: 0 8px 20px rgba(27, 143, 255, 0.08);
    color: var(--vtb-blue);
}

.service-chip svg,
.benefit-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.summary-card {
    box-shadow:
        0 10px 24px rgba(16, 39, 84, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.03);
}

.summary-card--soft {
    color: var(--vtb-text-main);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.summary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.summary-note {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--vtb-blue);
    background: #eef4ff;
    font-size: 12px;
    font-weight: 700;
}

.summary-card__label {
    font-size: 14px;
    opacity: 0.82;
}

.summary-card__amount {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 700;
}

.summary-card__text {
    margin-top: 6px;
    color: var(--vtb-text-secondary);
}

.summary-card__meta {
    margin-top: 10px;
    color: var(--vtb-text-secondary);
}

.benefit-item {
    width: 100%;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    border: 1px solid transparent;
    border-bottom: 1px solid #f2f5f8;
}

.benefit-item--actionable {
    border-radius: 12px;
    transition: none;
}

.benefit-item--last {
    border-bottom: 0;
}

.benefit-item--selected {
    background: transparent;
    border-color: transparent;
}

.benefit-copy {
    flex: 1;
    min-width: 0;
}

.benefit-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px solid #d6e3f7;
    box-shadow: 0 8px 20px rgba(27, 143, 255, 0.08);
    color: var(--vtb-blue);
}

.benefit-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--vtb-text-main);
}

.status-text {
    color: var(--vtb-blue);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.benefit-list-card {
    padding: 8px;
}

.status-text--success {
    color: var(--vtb-success);
}

.status-pill--paid {
    color: #2e7d32;
    background: #e8f5e9;
}

.status-pill--pending {
    color: #ef6c00;
    background: #fff3e0;
}

.status-pill--pending-soft {
    color: #a56a00;
    background: #fff5dd;
}

.status-pill--rejected {
    color: var(--vtb-danger);
    background: #fdeaea;
}

.detail-hero {
    text-align: center;
}

.detail-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    color: var(--vtb-blue);
    background: #eef4ff;
    font-size: 12px;
    font-weight: 700;
}

.detail-hero p {
    margin: 0 0 16px;
    color: var(--vtb-text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.detail-list {
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.detail-row {
    margin-bottom: 12px;
    align-items: flex-start;
}

.detail-row span {
    color: var(--vtb-text-secondary);
}

.detail-row strong {
    text-align: right;
    font-size: 14px;
}

.detail-row--last {
    margin-bottom: 0;
}

.plain-list {
    margin: 0;
    padding-left: 20px;
    color: var(--vtb-text-main);
    font-size: 14px;
    line-height: 1.6;
}

.faq-item {
    padding: 10px 0;
    border-bottom: 1px solid #f2f5f8;
}

.faq-item--last {
    border-bottom: 0;
    padding-bottom: 0;
}

.button-stack {
    padding: 4px 16px 16px;
}

.btn {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    border-radius: 10px;
    color: white;
    background: #0039a6;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    box-shadow: none;
    transition: none;
}

.btn-secondary {
    color: var(--vtb-blue);
    background: #eef4ff;
    box-shadow: none;
    animation: none;
}

.btn:disabled {
    cursor: progress;
    opacity: 0.68;
}

.submit-status {
    min-height: 20px;
    margin: 12px 16px 0;
    color: var(--vtb-text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.submit-status[data-tone="success"] {
    color: var(--vtb-success);
}

.submit-status[data-tone="error"] {
    color: var(--vtb-danger);
}

.stepper {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 0 16px 20px;
}

.stepper__item {
    flex: 1;
    text-align: center;
    color: var(--vtb-text-secondary);
}

.stepper__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin: 0 auto;
    color: white;
    background: #d5dbe6;
    font-size: 12px;
    font-weight: 600;
}

.stepper__item small {
    display: block;
    margin-top: 4px;
    font-size: 10px;
}

.stepper__item.is-active {
    color: var(--vtb-blue);
}

.stepper__item.is-active span {
    background: var(--vtb-blue);
}

.form-step {
    display: none;
}

.form-step.is-active {
    display: block;
}

.form-card {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group--last {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--vtb-text-secondary);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e4ec;
    border-radius: 10px;
    font-size: 15px;
    color: var(--vtb-text-main);
    background: #f9fafb;
}

textarea {
    resize: none;
}

.upload-box {
    width: 100%;
    padding: 18px 12px;
    border: 2px dashed #d8e0eb;
    border-radius: 12px;
    color: var(--vtb-blue);
    background: #fbfdff;
    font-weight: 600;
    text-align: center;
}

.upload-box--secondary {
    border-style: solid;
    border-width: 1px;
    color: var(--vtb-text-main);
    font-weight: 500;
}

.button-row {
    padding: 0 16px;
}

.button-row .btn {
    margin-top: 16px;
}

.confirmation-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.confirmation-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f2f5f8;
}

.confirmation-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.confirmation-list span {
    color: var(--vtb-text-secondary);
    font-size: 14px;
}

.json-preview {
    max-height: 280px;
    margin: 0;
    padding: 12px;
    overflow: auto;
    border: 1px solid var(--vtb-border);
    border-radius: 8px;
    color: #1f2937;
    background: #f9fafb;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.mini-pill {
    color: var(--vtb-blue);
    background: rgba(0, 57, 166, 0.08);
}

.timeline {
    margin-top: 18px;
    padding-left: 20px;
    border-left: 2px solid #e0e4ec;
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
    padding-left: 20px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--vtb-blue);
    border-radius: 50%;
    border: 3px solid white;
}

.timeline-item.inactive::before {
    background: #d8dee9;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--vtb-text-main);
}

.history-list {
    padding-top: 0;
    padding-bottom: 0;
}

.history-card {
    margin: 0;
    padding: 12px 0;
}

[data-last-request].is-updated {
    background: #f6f9ff;
}

.history-card--faded {
    opacity: 0.68;
}

.history-meta {
    text-align: right;
}

.history-amount {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--vtb-text-main);
}

.tab-bar {
    display: none;
}

.tab-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--vtb-text-secondary);
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    transition: none;
}

.tab-item.active {
    color: var(--vtb-blue);
    background: #eef4ff;
}

.tab-item:hover {
    color: var(--vtb-text-secondary);
    background: #ffffff;
}

.benefit-item--actionable:hover {
    background: #f9fbfe;
    border-color: #dfe9f7;
}

.card:hover {
    box-shadow: none;
}

.btn:hover {
    box-shadow: none;
}

.btn-secondary:hover {
    background: #eef4ff;
    box-shadow: none;
}

@media (max-width: 430px) {
    body {
        background: #f3f6f9;
    }

    #phone-shell {
        width: 100%;
        min-height: 100vh;
    }
}
