:root {
    --bg: #edf6f0;
    --surface: #ffffff;
    --surface-strong: #f4fbf6;
    --line: rgba(48, 103, 139, 0.12);
    --text: #21333f;
    --muted: #618096;
    --primary: #4d97c7;
    --primary-strong: #397da8;
    --primary-soft: rgba(77, 151, 199, 0.12);
    --accent: #a9d6ef;
    --accent-soft: rgba(169, 214, 239, 0.24);
    --alert: #7c6a36;
    --danger: #c94b47;
    --danger-soft: rgba(201, 75, 71, 0.14);
    --shadow: 0 16px 34px rgba(33, 51, 63, 0.08);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --container: 1200px;
    --success: #458c5e;
    --success-soft: rgba(69, 140, 94, 0.08);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at top left, rgba(169, 214, 239, 0.32), transparent 24%),
        radial-gradient(circle at top right, rgba(77, 151, 199, 0.12), transparent 22%),
        linear-gradient(180deg, #f3fafd 0%, #edf5fa 100%);
    color: var(--text);
    font-family: "Roboto", "Segoe UI", sans-serif;
}

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

button,
input {
    font: inherit;
}

.lk-shell {
    min-height: 100vh;
}

.lk-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(223, 236, 245, 0.96);
    border-bottom: 1px solid rgba(48, 103, 139, 0.14);
    box-shadow: 0 8px 24px rgba(33, 51, 63, 0.05);
}

.lk-topbar__inner,
.lk-page {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.lk-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.lk-user__eyebrow,
.section-kicker,
.concept-switcher__label,
.concept__eyebrow,
.page-breadcrumbs {
    margin: 0 0 8px;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.page-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-breadcrumbs a,
.page-breadcrumbs span {
    color: var(--muted);
}

.page-breadcrumbs a {
    text-decoration: none;
}

.page-breadcrumbs a:hover {
    color: var(--primary-strong);
}

.lk-user__name {
    font-size: 1.1rem;
    font-weight: 700;
}

.lk-user__phone {
    display: inline-block;
    margin-top: 4px;
    color: var(--primary);
    font-weight: 700;
}

.lk-nav--desktop {
    display: none;
}

.lk-burger {
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    box-shadow: var(--shadow);
}

.lk-burger span {
    width: 20px;
    height: 2px;
    background: var(--text);
    margin: 0 auto;
    border-radius: 10px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.lk-burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.lk-burger.is-open span:nth-child(2) {
    opacity: 0;
}

.lk-burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.lk-mobile-nav {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
    padding: 0 0 14px;
    display: none;
    gap: 10px;
}

.lk-mobile-nav.is-open {
    display: grid;
}

.lk-mobile-nav__link,
.lk-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.lk-mobile-nav__link {
    justify-content: flex-start;
    border: 1px solid var(--line);
    background: var(--surface);
}

.lk-mobile-nav__link--active,
.lk-nav__link--active {
    background: var(--primary);
    color: #fff;
}

.lk-page {
    padding: 24px 0 48px;
}

.subpage[hidden] {
    display: none !important;
}

.page-intro {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
}

.page-intro--compact {
    margin-bottom: 24px;
}

.page-intro h1,
.mega-hero h2,
.card h3,
.side-note h4 {
    margin: 0;
    line-height: 1.1;
}

.page-intro h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
}

.page-intro p,
.card p,
.faq-item p,
.info-disclosure p,
.side-note p {
    margin-top: 0;
}

.page-intro p:last-child {
    margin-bottom: 0;
    max-width: 68ch;
    color: var(--muted);
}

.lk-grid {
    display: grid;
    gap: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(48, 103, 139, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 10px;
}

.card--hero,
.card--payment,
.card--mega,
.section-card {
    padding: 22px;
}

.contract-summary,
.payment-head,
.mega-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.contract-summary h3,
.payment-head h3,
.mega-hero h2,
.section-card__head h3 {
    font-size: clamp(1.4rem, 4.8vw, 2rem);
    margin-bottom: 6px;
}

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

.status-chip,
.security-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-chip--alert {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid rgba(201, 75, 71, 0.2);
}

.security-pill {
    background: var(--primary-soft);
    color: var(--primary);
}

.amount-cards {
    display: grid;
    gap: 14px;
}

.amount-card {
    margin-top: 16px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid rgba(48, 103, 139, 0.1);
}

.amount-card--cut_payment {
    margin-bottom: 16px;
    text-align: center;
}

.amount-card--accent {
    background: linear-gradient(180deg, rgba(169, 214, 239, 0.28) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-color: rgba(77, 151, 199, 0.22);
}

.amount-card__label,
.amount-card__meta {
    margin: 0;
}

.amount-card__label {
    font-weight: 700;
    color: var(--muted);
}

.amount-card__value {
    display: block;
    margin: 12px 0 10px;
    font-size: clamp(1.7rem, 6vw, 2.25rem);
    line-height: 1.05;
    white-space: nowrap;
}

.amount-card__meta {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.benefits-card,
.payment-callout,
.side-note {
    padding: 18px;
    border-radius: var(--radius-md);
}

.benefits-card {
    margin-top: 18px;
    background: linear-gradient(180deg, rgba(77, 151, 199, 0.07) 0%, rgba(77, 151, 199, 0.13) 100%);
    display: grid;
    gap: 18px;
}

.benefits-list {
    margin: 16px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.benefits-card__stats {
    display: grid;
    gap: 12px;
}

.benefit-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-md);
}

.benefit-stat span {
    color: var(--muted);
}

.benefit-stat strong {
    font-size: 1.15rem;
}

.benefit-stat--accent {
    background: rgba(169, 214, 239, 0.24);
}

.payment-callout,
.side-note {
    margin-top: 18px;
    background: var(--surface-strong);
    border: 1px solid rgba(77, 151, 199, 0.14);
}

.side-note {
    background: linear-gradient(180deg, rgba(169, 214, 239, 0.2) 0%, rgba(243, 250, 253, 0.98) 100%);
    border-color: rgba(77, 151, 199, 0.22);
}

.payment-callout p,
.side-note p:last-child {
    margin-bottom: 0;
}

.payment-form-v2 {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.payment-input-group {
    display: grid;
    gap: 10px;
}

.payment-input-group__label {
    font-weight: 700;
}

.payment-input-group__field {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    border-radius: 18px;
    background: #fff;
    border: 2px solid rgba(77, 151, 199, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.payment-input-group__field--large {
    min-height: 82px;
}

.payment-input-group__currency {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.payment-input-group input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: clamp(1.6rem, 7vw, 2.6rem);
    font-weight: 700;
    color: var(--text);
}

.primary-button {
    min-height: 64px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, #69b2df 0%, var(--primary) 100%);
    color: #fff;
    font-size: 1.08rem;
    font-weight: 700;
    box-shadow: 0 16px 28px rgba(77, 151, 199, 0.24);
    cursor: pointer;
}

.primary-button--compact {
    min-height: 52px;
    font-size: 1rem;
    box-shadow: 0 12px 22px rgba(77, 151, 199, 0.2);
}

.primary-button:hover {
    background: linear-gradient(180deg, #75bbe6 0%, var(--primary-strong) 100%);
}

.primary-button--wide {
    width: 100%;
}

.info-stack,
.faq-list,
.history-list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.info-stack--side {
    margin-top: 14px;
}

.info-disclosure,
.faq-item,
.history-item {
    margin: 0;
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.info-disclosure_list {
    margin-top: 0;
}

.info-disclosure summary,
.faq-item summary,
.history-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 700;
    position: relative;
}

.info-disclosure summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker,
.history-item summary::-webkit-details-marker {
    display: none;
}

.info-disclosure summary::after,
.faq-item summary::after,
.history-item summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 1.3rem;
}

.info-disclosure[open] summary::after,
.faq-item[open] summary::after,
.history-item[open] summary::after {
    content: "−";
}

.info-disclosure p,
.contact-list,
.faq-item p,
.history-table {
    padding: 0 18px 18px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.5;
}

.contact-list {
    display: grid;
    gap: 10px;
}

.contact-list a {
    color: var(--primary);
    font-weight: 700;
}

.section-card__head {
    margin-bottom: 18px;
}

.history-table {
    display: grid;
    gap: 12px;
}

.history-row {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(77, 151, 199, 0.06);
}

.history-row__label,
.inline-hints span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.88rem;
}

.mega-layout {
    display: grid;
    gap: 20px;
}

.inline-hints {
    display: grid;
    gap: 10px;
    padding: 4px 4px 0;
}

.amount-cards--compact .amount-card__value {
    font-size: clamp(1.55rem, 3vw, 2rem);
    letter-spacing: -0.02em;
}

.payment-input-group--compact {
    gap: 8px;
}

.payment-input-group__field--compact {
    min-height: 58px;
    padding: 0 18px;
    border-width: 1px;
}

.payment-input-group__field--compact input {
    font-size: 1.1rem;
}

.esign-upload-grid,
.esign-active-list,
.signed-contracts {
    display: grid;
    gap: 16px;
}

.esign-upload-card,
.esign-doc-card,
.signed-contract-card {
    padding: 18px;
    min-width: 0;
    border-radius: var(--radius-md);
    border: 1px solid rgba(48, 103, 139, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 249, 253, 0.96) 100%);
}

.esign-upload-card--approved {
    background: linear-gradient(180deg, rgba(235, 248, 240, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.esign-upload-card--review {
    background: linear-gradient(180deg, rgba(251, 247, 230, 0.95) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.esign-upload-card__head,
.esign-doc-card__head,
.signed-contract-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.esign-upload-status__row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
}

.esign-upload-card__eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    min-width: 0;
}

.esign-upload-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(77, 151, 199, 0.12);
    color: var(--primary-strong);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    flex-shrink: 0;
}

.esign-upload-card h4,
.esign-doc-card h4,
.signed-contract-card h4,
.signed-contract-group h5 {
    margin: 0;
    min-width: 0;
}

.esign-upload-card h4{
    margin-top: 16px;
}

.esign-doc-card__head {
    align-items: center;
    margin-bottom: 16px;
}

.esign-doc-card__head .section-kicker {
    margin-bottom: 0;
}

.esign-upload-card__body,
.esign-sign-flow {
    margin-top: 18px;
}

.file-picker {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.file-picker__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.file-picker__trigger,
.file-picker__name,
.esign-upload-status,
.esign-inline-message {
    border-radius: var(--radius-md);
}

.file-picker__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px dashed rgba(77, 151, 199, 0.34);
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-strong);
    font-weight: 700;
}

.file-picker__name {
    display: block;
    padding: 12px 14px;
    background: rgba(77, 151, 199, 0.06);
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.esign-upload-status {
    margin-top: 18px;
    padding: 16px;
}

.esign-upload-status--review {
    background: rgba(124, 106, 54, 0.08);
    border: 1px solid rgba(124, 106, 54, 0.18);
}

.esign-upload-status--approved {
    background: rgba(69, 140, 94, 0.08);
    border: 1px solid rgba(69, 140, 94, 0.18);
}

.esign-upload-status__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.76);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.esign-upload-status__row > div {
    min-width: 0;
    max-width: calc(100% - 46px);
}

.esign-upload-status strong,
.signed-contract-card__head strong {
    color: var(--text);
}

.esign-upload-status strong {
    display: block;
    max-width: calc(100% - 10px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.esign-upload-status strong,
.esign-upload-status p,
.signed-contract-card__head p,
.esign-inline-message {
    margin: 0;
}

.esign-upload-status p,
.signed-contract-card__head p {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.45;
}

.esign-doc-card__chip {
    background: var(--primary-soft);
    color: var(--primary-strong);
    border: 1px solid rgba(77, 151, 199, 0.18);
}

.esign-file-list,
.esign-sign-form {
    display: grid;
    gap: 12px;
}

.esign-file-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(48, 103, 139, 0.1);
    background: rgba(255, 255, 255, 0.84);
    text-decoration: none;
}

.esign-file-link--signed {
    background: rgba(77, 151, 199, 0.05);
}

.esign-file-link__icon {
    flex-shrink: 0;
    font-size: 1rem;
}

.esign-file-link__name {
    min-width: 0;
    line-height: 1.45;
    color: var(--text);
    word-break: break-word;
}

.esign-sign-flow__confirm {
    margin-top: 14px;
    display: grid;
    gap: 14px;
}

.esign-inline-message {
    padding: 14px 16px;
    background: rgba(77, 151, 199, 0.08);
    border: 1px solid rgba(77, 151, 199, 0.14);
    color: var(--muted);
    line-height: 1.5;
}

.esign-inline-message--error {
    background: var(--danger-soft);
    border-color: rgba(201, 75, 71, 0.24);
    color: var(--danger);
}

.signed-contract-card__head {
    margin-bottom: 18px;
}

.signed-contract-card__head strong {
    font-size: 1.05rem;
    white-space: nowrap;
}

.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--surface);
    z-index: 100;
    flex-direction: column;
}
.custom-modal.is-open {
    display: flex;
}

.primary-button:disabled {
    background: #cccccc;
    color: #666666;
    box-shadow: none;
    cursor: not-allowed;
}

@supports (backdrop-filter: blur(14px)) {
    .custom-modal {
        backdrop-filter: blur(14px);
        background: rgba(255, 255, 255, 0.96);
    }
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.custom-modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    flex-grow: 1;
    color: var(--text);
}

.custom-modal-body {
    padding: 24px 16px;
    overflow-y: auto;
    flex-grow: 1;
    max-height: 75vh;
    line-height: 1.5;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.95rem;
    font-weight: 700;
    background: var(--surface);
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-back:hover {
    background: var(--primary-soft);
    color: var(--primary-strong);
}

.btn-close-custom {
    background: transparent;
    border: 0;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.btn-close-custom:hover {
    color: var(--danger);
}

.notification-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
    box-sizing: border-box;
}

.notification-item {
    display: block;
    min-width: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(48, 103, 139, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.notification-item:hover {
    transform: translateY(-2px);
    border-color: rgba(77, 151, 199, 0.3);
    box-shadow: 0 20px 38px rgba(33, 51, 63, 0.12);
}

.notification-item__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
    align-items: flex-start;
}

.notification-item__main {
    min-width: 0;
    flex-grow: 1;
}

.notification-item__eyebrow {
    display: block;
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.notification-item__title {
    margin: 0 0 12px 0;
    font-size: clamp(1.15rem, 4vw, 1.35rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

.notification-item__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--muted);
}

.notification-item__date-label {
    font-weight: 500;
}

.notification-item__date-value {
    color: var(--text);
    font-weight: 700;
}

.notification-item__actions {
    flex-shrink: 0;
}

.notification-item--new {
    border-left: 4px solid var(--primary);
}

.notification-item--approved {
    border-left: 4px solid var(--success);
}

.notification-item--canceled {
    border-left: 4px solid var(--danger);
}

.status-chip--primary {
    background: var(--primary-soft);
    color: var(--primary-strong);
    border: 1px solid rgba(77, 151, 199, 0.2);
}

.status-chip--success {
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid rgba(69, 140, 94, 0.2);
}

.status-chip--primary {
    background: var(--primary-soft);
    color: var(--primary-strong);
    border: 1px solid rgba(77, 151, 199, 0.2);
}

.status-chip--success {
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid rgba(69, 140, 94, 0.2);
}

.status-chip--danger {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid rgba(201, 75, 71, 0.2);
}

.wrapper_timer_notification.hidden {
    display: none !important;
}

.esign-file-link:hover {
    background: rgba(77, 151, 199, 0.08);
    border-color: var(--primary);
}

@media (max-width: 767px) {
    .lk-topbar__inner {
        width: 100%;
        padding: 14px 16px;
    }

    .lk-mobile-nav {
        width: 100%;
        padding: 0 16px 14px;
    }

    .lk-page {
        width: 100%;
        padding: 24px 0 48px;
    }

    .page-intro {
        padding: 0 16px;
    }

    .card {
        margin-left: 0;
        margin-right: 0;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .esign-upload-card {
        width: 100%;
    }

    .esign-upload-card__head {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .esign-upload-status__row {
        justify-content: flex-start;
        gap: 10px;
        min-width: 0;
    }

    .esign-upload-status__row > div {
        max-width: none;
        flex: 1 1 auto;
    }

    .esign-upload-status strong {
        max-width: 100%;
    }

    .custom-modal-header,
    .custom-modal-body {
        width: min(calc(100% - 48px), var(--container));
        margin: 0 auto;
        padding-left: 0;
        padding-right: 0;
    }

    .notification-list {
        width: 100%;
        padding: 0 16px;
    }
    .notification-item {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
    .notification-item--new {
        border-left: 4px solid var(--primary) !important;
    }

    .lk-grid {
        padding: 0 16px;

    }

    .notification-item--new { border-left: 4px solid var(--primary); }
    .notification-item--approved { border-left: 4px solid var(--success); }
    .notification-item--canceled { border-left: 4px solid var(--danger); }
}

@media (min-width: 768px) {
    .lk-topbar__inner,
    .lk-page {
        width: min(calc(100% - 48px), var(--container));
    }

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

    .amount-cards--compact {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .benefits-card__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .history-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: center;
    }

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

    .esign-sign-form {
        grid-template-columns: minmax(0, 1fr) 220px;
        align-items: end;
    }

    .signed-contract-card__head {
        align-items: center;
    }

    .notification-item__body {
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .notification-item__title {
        margin-bottom: 8px;
    }
}

@media (min-width: 992px) {
    .lk-burger,
    .lk-mobile-nav {
        display: none;
    }

    .lk-nav--desktop {
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

    .lk-nav__link {
        border: 1px solid transparent;
    }

    .lk-nav__link:not(.lk-nav__link--active):not(.lk-nav__link--ghost):hover {
        background: rgba(77, 151, 199, 0.1);
    }

    .lk-nav__link--ghost {
        border-color: var(--line);
        background: var(--surface);
    }

    .lk-grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.8fr);
        align-items: start;
    }

    .mega-layout {
        align-items: start;
    }

    .side-note {
        margin-top: 0;
    }

    .esign-upload-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

/* ========================================================================== */
/* Login Page                                                                 */
/* ========================================================================== */

.lk-page--unauth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 40px;
}

.login-panel {
    width: min(100%, 460px);
    padding: 28px 20px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 251, 246, 0.92) 100%);
    position: relative;
    overflow: hidden;
}

.login-panel::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(169, 214, 239, 0.28) 0%, rgba(169, 214, 239, 0) 72%);
    pointer-events: none;
}

.login-panel > * {
    position: relative;
    z-index: 1;
}

.login-panel__intro {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.login-panel__title {
    margin: 0;
    font-size: clamp(1.9rem, 7vw, 2.6rem);
    line-height: 1.05;
}

.login-panel__description {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.login-form-v2 {
    display: grid;
    gap: 18px;
}

.login-form-v2__group {
    display: grid;
    gap: 10px;
}

.login-form-v2__label {
    font-weight: 700;
}

.login-form-v2__field {
    min-height: 64px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    border-radius: 18px;
    background: #fff;
    border: 2px solid rgba(77, 151, 199, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.login-form-v2__field:focus-within {
    border-color: rgba(77, 151, 199, 0.42);
    box-shadow: 0 0 0 4px rgba(77, 151, 199, 0.12);
    transform: translateY(-1px);
}

.login-form-v2__field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
}

.login-form-v2__field input::placeholder {
    color: rgba(97, 128, 150, 0.78);
    font-weight: 500;
}

.login-form-v2__field--code input {
    text-align: center;
    font-size: clamp(1.5rem, 7vw, 2rem);
    letter-spacing: 0.32em;
    text-indent: 0.32em;
}

.login-form-v2__hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.login-form-v2__error {
    padding: 14px 16px;
    border: 1px solid rgba(201, 75, 71, 0.18);
    border-radius: var(--radius-md);
    background: var(--danger-soft);
    color: var(--danger);
    font-weight: 500;
    line-height: 1.45;
}

@media (min-width: 768px) {
    .lk-page--unauth {
        padding-left: 24px;
        padding-right: 24px;
    }

    .login-panel {
        padding: 36px 32px;
    }
}


/*pay page*/
.amount-card--promo {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    max-width: 100%;
}

.amount-card__eyebrow {
    margin: 0 0 16px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--success);
}

.amount-card__benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amount-card__benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text);
}

.amount-card__benefit-item i {
    color: var(--success);
    font-size: 1.1rem;
}

.amount-card__details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 20px;
}

.amount-card__detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--muted);
}

.amount-card__detail-row strong {
    color: var(--text);
}

.amount-card__detail-row--highlight strong {
    color: var(--primary-strong);
}

.amount-card__detail-row--savings strong {
    color: var(--success);
}

.amount-card__progress-wrapper {
    margin-top: 20px;
}

.amount-card__progress-track {
    display: flex;
    height: 12px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--line);
}

.amount-card__progress-bar--success {
    background: var(--success);
}

.amount-card__progress-bar--secondary {
    background: var(--accent);
}

.amount-card__progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.amount-card__progress-val {
    font-weight: 700;
    font-size: 1.1rem;
}

.amount-card__progress-val--success {
    color: var(--success);
}

.amount-card__progress-val--secondary {
    color: var(--muted);
}