* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #1d1d1f;
    background: #f5f5f7;
    font-family: Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    padding: 24px;
    background: #111111;
    color: #ffffff;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.brand__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: #111111;
    font-weight: 800;
}

.brand__title {
    font-size: 18px;
    font-weight: 800;
}

.brand__text {
    margin-top: 3px;
    color: rgba(255, 255, 255, .55);
    font-size: 13px;
}

.nav {
    display: grid;
    gap: 8px;
}

.nav__link {
    padding: 13px 14px;
    border-radius: 14px;
    color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .06);
}

.nav__link:hover {
    background: rgba(255, 255, 255, .12);
}

.main {
    margin-left: 260px;
    padding: 34px;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.eyebrow {
    margin-bottom: 8px;
    color: #d71935;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
}

p {
    margin: 10px 0 0;
    color: #666666;
}

.card {
    border: 1px solid #e6e6ea;
    border-radius: 24px;
    padding: 22px;
    background: #ffffff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .05);
}

.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.input,
.textarea {
    width: 100%;
    border: 1px solid #dddddf;
    border-radius: 14px;
    padding: 13px 14px;
    color: #111111;
    background: #ffffff;
    font: inherit;
    outline: none;
}

.input:focus,
.textarea:focus {
    border-color: #d71935;
    box-shadow: 0 0 0 4px rgba(215, 25, 53, .1);
}

.textarea {
    resize: vertical;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #dddddf;
    border-radius: 14px;
    color: #111111;
    background: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.btn--primary {
    border-color: #d71935;
    color: #ffffff;
    background: #d71935;
}

.btn--ghost {
    color: #666666;
    background: #f7f7f8;
}

.meta {
    margin-bottom: 14px;
    color: #666666;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 14px;
    color: #777777;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid #eeeeef;
}

td {
    padding: 15px 14px;
    border-bottom: 1px solid #eeeeef;
    vertical-align: top;
}

.task-title {
    font-weight: 800;
}

.task-desc {
    max-width: 480px;
    margin-top: 6px;
    color: #777777;
    font-size: 13px;
    line-height: 1.4;
}

.badge {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    color: #555555;
    background: #eeeeef;
    font-size: 12px;
    font-weight: 800;
}

.badge--green {
    color: #11753f;
    background: #dff7e9;
}

.empty {
    padding: 34px;
    color: #777777;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.page-btn,
.page-current {
    min-width: 44px;
    padding: 11px 14px;
    border-radius: 12px;
    background: #f2f2f4;
    text-align: center;
    font-weight: 700;
}

.form {
    display: grid;
    gap: 20px;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    font-size: 13px;
    font-weight: 800;
}

.field small {
    color: #777777;
    line-height: 1.4;
}

.section-title {
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px solid #eeeeef;
    font-weight: 900;
    font-size: 18px;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.file {
    width: 100%;
    padding: 14px;
    border: 1px dashed #cfcfd4;
    border-radius: 14px;
    background: #fafafa;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    color: #9a1024;
    background: #ffe8ec;
    font-weight: 700;
}

@media (max-width: 900px) {
    .sidebar {
        position: static;
        width: auto;
    }

    .main {
        margin-left: 0;
        padding: 20px;
    }

    .page-head {
        flex-direction: column;
    }

    .grid--2,
    .grid--3 {
        grid-template-columns: 1fr;
    }

    .toolbar {
        flex-direction: column;
    }
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.row-actions form {
    margin: 0;
}

.mini-btn {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #dddddf;
    border-radius: 10px;
    color: #111111;
    background: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.mini-btn:hover {
    background: #f4f4f5;
}

.mini-btn--danger {
    color: #b01224;
    border-color: #ffd1d7;
    background: #fff1f3;
}

.small {
    color: #666666;
    font-size: 13px;
    line-height: 1.5;
}

.hint {
    padding: 14px 16px;
    border-radius: 14px;
    color: #555555;
    background: #f5f5f7;
}

.type-section {
    display: none;
}

.files-list {
    display: grid;
    gap: 10px;
}

.file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    border: 1px solid #eeeeef;
    border-radius: 14px;
    background: #fafafa;
}

.file-row span {
    display: block;
    margin-top: 4px;
    color: #777777;
    font-size: 13px;
}

.wizard-form {
    display: grid;
    gap: 24px;
}

.wizard-top {
    display: grid;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eeeeef;
}

.wizard-progress {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.wizard-progress__line,
.wizard-progress__fill {
    position: absolute;
    top: 21px;
    left: 20px;
    right: 20px;
    height: 3px;
    border-radius: 999px;
}

.wizard-progress__line {
    background: #eeeeef;
}

.wizard-progress__fill {
    width: 0;
    right: auto;
    background: #d71935;
    transition: .25s;
}

.wizard-dot {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid #dddddf;
    border-radius: 50%;
    color: #777777;
    background: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.wizard-dot.is-active,
.wizard-dot.is-done {
    border-color: #d71935;
    color: #ffffff;
    background: #d71935;
}

.wizard-step-title {
    font-size: 18px;
    font-weight: 900;
}

.wizard-step {
    display: none;
    animation: stepFade .18s ease;
}

.wizard-step.is-active {
    display: grid;
    gap: 20px;
}

@keyframes stepFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-heading h2 {
    margin: 0;
    font-size: 26px;
}

.wizard-heading p {
    margin-top: 8px;
}

.type-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.type-card {
    display: grid;
    gap: 10px;
    min-height: 190px;
    padding: 22px;
    border: 1px solid #eeeeef;
    border-radius: 22px;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: .2s;
}

.type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .08);
}

.type-card.is-selected {
    border-color: #d71935;
    background: #fff5f6;
    box-shadow: 0 18px 50px rgba(215, 25, 53, .12);
}

.type-card__icon {
    font-size: 34px;
}

.type-card__title {
    font-size: 20px;
    font-weight: 900;
}

.type-card__text {
    color: #666666;
    line-height: 1.45;
}

.branch-block {
    display: none;
}

.wizard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid #eeeeef;
}

@media (max-width: 900px) {
    .type-cards {
        grid-template-columns: 1fr;
    }

    .wizard-actions {
        flex-direction: column;
    }
}

.import-form {
    display: grid;
    gap: 18px;
    max-width: 520px;
}

.import-result {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f3f7f4;
    color: #1f6b35;
    font-size: 16px;
}

.import-errors {
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    background: #fff4f4;
    color: #8f1d1d;
}

.import-errors h3 {
    margin: 0 0 10px;
}

.import-errors ul {
    margin: 0;
    padding-left: 20px;
}

.success-text {
    margin: 16px 0 0;
    color: #1f6b35;
    font-weight: 700;
}

.muted-card {
    background: #fafafa;
}

.hint-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hint-grid div {
    padding: 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #eeeeee;
}

.hint-grid p {
    margin: 8px 0 0;
    color: #666666;
}

@media (max-width: 760px) {
    .hint-grid {
        grid-template-columns: 1fr;
    }
}
/* === ZADACHNIK WEB APP UI === */
:root {
    --app-blue: #1264ff;
    --app-blue-dark: #0757f4;
    --app-blue-soft: #eef4ff;
    --app-navy: #081535;
    --app-text: #111827;
    --app-muted: #717b93;
    --app-line: #e5eaf5;
    --app-card: rgba(255, 255, 255, .9);
    --app-shadow: 0 22px 70px rgba(29, 53, 87, .11);
}

html {
    min-height: 100%;
    background: #f8fbff;
}

body,
button,
input,
textarea,
select {
    font-family: Inter, Arial, sans-serif;
}

body {
    color: var(--app-text);
    background:
        radial-gradient(circle at 95% 8%, rgba(18, 100, 255, .09), transparent 27%),
        radial-gradient(circle at 5% 92%, rgba(18, 100, 255, .08), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.sidebar {
    display: none;
}

.app-body {
    min-height: 100vh;
    padding-bottom: 118px;
}

.app-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 34px 22px 0;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

.app-logo,
.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--app-navy);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.app-logo__icon,
.auth-brand__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: linear-gradient(135deg, #1e7bff 0%, #0757f4 100%);
    box-shadow: 0 14px 34px rgba(18, 100, 255, .28);
}

.app-logo__icon svg,
.auth-brand__icon svg {
    width: 31px;
    height: 31px;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.logout-form {
    margin: 0;
}

.notification-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 17px;
    color: var(--app-navy);
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 12px 34px rgba(25, 46, 86, .08);
    cursor: pointer;
}

.notification-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.notification-btn span {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--app-blue);
    box-shadow: 0 0 0 3px #fff;
}

.main,
.app-main {
    margin-left: 0;
    padding: 0 0 18px;
}

.page-head,
.screen-head {
    margin-bottom: 24px;
}

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

.eyebrow {
    color: var(--app-blue);
}

h1,
.screen-head h1 {
    margin: 0;
    color: var(--app-navy);
    font-size: clamp(42px, 6vw, 62px);
    line-height: .95;
    letter-spacing: -.07em;
    font-weight: 900;
}

.screen-head p,
.page-head p,
p {
    color: var(--app-muted);
}

.card,
.placeholder-card,
.profile-card {
    border: 1px solid rgba(213, 221, 237, .86);
    background: var(--app-card);
    box-shadow: var(--app-shadow);
    backdrop-filter: blur(18px);
}

.btn,
.mini-btn,
.input,
.textarea,
.file {
    border-color: var(--app-line);
    border-radius: 16px;
}

.btn--primary,
.wizard-dot.is-active,
.wizard-dot.is-done {
    border-color: var(--app-blue);
    background: var(--app-blue);
}

.input:focus,
.textarea:focus {
    border-color: var(--app-blue);
    box-shadow: 0 0 0 4px rgba(18, 100, 255, .11);
}

.wizard-progress__fill {
    background: var(--app-blue);
}

.type-card.is-selected {
    border-color: var(--app-blue);
    background: var(--app-blue-soft);
    box-shadow: 0 18px 50px rgba(18, 100, 255, .13);
}

.table-wrap {
    border-radius: 18px;
}

.mobile-tabbar {
    position: fixed;
    z-index: 40;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: min(720px, calc(100% - 30px));
    min-height: 82px;
    padding: 10px 12px;
    border: 1px solid rgba(221, 228, 241, .92);
    border-radius: 30px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 60px rgba(29, 53, 87, .16);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.mobile-tabbar__item {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    min-width: 0;
    border-radius: 20px;
    color: #65708a;
    font-size: 13px;
    font-weight: 700;
    transition: .18s ease;
}

.mobile-tabbar__item svg {
    width: 27px;
    height: 27px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.mobile-tabbar__item.is-active {
    color: var(--app-blue);
    background: rgba(18, 100, 255, .08);
}

/* Auth */
.auth-body {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 90% 12%, rgba(18, 100, 255, .10), transparent 25%),
        radial-gradient(circle at 8% 90%, rgba(18, 100, 255, .08), transparent 30%),
        #ffffff;
}

.auth-page {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 38px 18px;
}

.auth-bg {
    position: absolute;
    pointer-events: none;
}

.auth-bg--one {
    top: 64px;
    right: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(18, 100, 255, .11), rgba(18, 100, 255, .02) 62%, transparent 64%);
}

.auth-bg--two {
    left: -120px;
    bottom: -80px;
    width: 420px;
    height: 220px;
    border-radius: 50%;
    background: repeating-radial-gradient(ellipse at center, rgba(18, 100, 255, .12) 0 1px, transparent 2px 11px);
    opacity: .32;
}

.auth-panel {
    position: relative;
    z-index: 2;
    width: min(100%, 650px);
}

.auth-brand {
    justify-content: center;
    margin-bottom: 70px;
}

.auth-head {
    margin-bottom: 34px;
}

.auth-head h1 {
    margin: 0;
    color: var(--app-navy);
    font-size: clamp(52px, 8vw, 74px);
    line-height: .95;
    letter-spacing: -.075em;
    font-weight: 900;
}

.auth-head p {
    margin-top: 18px;
    color: #68738f;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 500;
}

.auth-card {
    display: grid;
    gap: 26px;
    padding: clamp(28px, 5vw, 46px);
    border: 1px solid rgba(225, 231, 244, .84);
    border-radius: 34px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 24px 70px rgba(28, 48, 84, .12);
    backdrop-filter: blur(18px);
}

.auth-field {
    display: grid;
    gap: 13px;
}

.auth-field > span {
    color: var(--app-navy);
    font-size: 20px;
    font-weight: 700;
}

.auth-input {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 76px;
    padding: 0 22px;
    border: 2px solid #e1e8f5;
    border-radius: 20px;
    background: #fff;
    transition: .18s ease;
}

.auth-input:focus-within {
    border-color: rgba(18, 100, 255, .72);
    box-shadow: 0 0 0 5px rgba(18, 100, 255, .10);
}

.auth-input svg {
    flex: 0 0 auto;
    width: 29px;
    height: 29px;
    stroke: #407dff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.auth-input input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--app-navy);
    background: transparent;
    font-size: 22px;
    font-weight: 600;
}

.auth-input input::placeholder {
    color: #a6b0c4;
}

.auth-eye {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    color: #6d7891;
    background: transparent;
    cursor: pointer;
}

.auth-eye svg {
    stroke: currentColor;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 82px;
    margin-top: 8px;
    border: 0;
    border-radius: 21px;
    color: #fff;
    background: linear-gradient(135deg, #0878ff 0%, #0757f4 100%);
    box-shadow: 0 20px 40px rgba(18, 100, 255, .25);
    font-size: 24px;
    font-weight: 800;
    cursor: pointer;
}

.auth-links {
    display: grid;
    gap: 18px;
    margin-top: 34px;
}

.auth-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 74px;
    border: 2px solid rgba(88, 138, 255, .55);
    border-radius: 19px;
    color: var(--app-blue);
    background: rgba(255, 255, 255, .68);
    font-size: 22px;
    font-weight: 700;
}

.auth-links svg {
    width: 31px;
    height: 31px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.auth-error {
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(239, 68, 68, .24);
    border-radius: 18px;
    color: #d71935;
    background: rgba(255, 241, 242, .9);
    font-weight: 800;
}

.auth-page--empty {
    align-items: start;
    padding-top: 12vh;
}

.empty-auth-card {
    display: grid;
    justify-items: center;
    gap: 40px;
    width: min(100%, 620px);
    padding: 44px;
    border: 1px solid var(--app-line);
    border-radius: 34px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--app-shadow);
}

.empty-auth-card h1 {
    margin: 0;
    color: var(--app-navy);
    text-align: center;
    font-size: clamp(38px, 7vw, 60px);
    letter-spacing: -.06em;
}

/* Profile */
.profile-stack {
    display: grid;
    gap: 18px;
    max-width: 760px;
}

.profile-card {
    border-radius: 28px;
    padding: 28px;
}

.profile-card--user,
.profile-card--row,
.profile-card--balance {
    display: flex;
    align-items: center;
    gap: 26px;
}

.profile-card--balance {
    justify-content: space-between;
    min-height: 160px;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f0edff, #e5ebff);
}

.profile-avatar svg {
    width: 96px;
    height: 96px;
    fill: rgba(113, 128, 233, .48);
    stroke: none;
}

.profile-label {
    color: #6f778e;
    font-size: 22px;
    font-weight: 500;
}

.profile-title {
    margin-top: 6px;
    color: var(--app-text);
    font-size: clamp(34px, 5vw, 44px);
    line-height: 1;
    letter-spacing: -.06em;
    font-weight: 900;
}

.profile-value {
    color: var(--app-text);
    font-size: 30px;
    letter-spacing: -.04em;
    font-weight: 800;
}

.profile-muted {
    color: #7a849b;
    font-size: 18px;
    line-height: 1.6;
}

.profile-muted b {
    color: #6457ff;
}

.profile-soft-icon,
.profile-wallet {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 26px;
    background: #f0edff;
}

.profile-soft-icon svg,
.profile-wallet svg {
    width: 42px;
    height: 42px;
    stroke: #6d55ff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.profile-wallet {
    width: 94px;
    height: 94px;
    background: linear-gradient(145deg, #eef4ff, #f5f8ff);
}

.profile-wallet svg {
    width: 54px;
    height: 54px;
    stroke: var(--app-blue);
}

.profile-chevron {
    margin-left: auto;
    color: #6b7280;
    font-size: 46px;
    line-height: 1;
}

.profile-money {
    margin-top: 12px;
    color: var(--app-text);
    font-size: clamp(42px, 7vw, 58px);
    line-height: 1;
    letter-spacing: -.07em;
    font-weight: 900;
}

.profile-card--referral {
    display: grid;
    gap: 22px;
}

.profile-ref-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.profile-ref-head h2 {
    margin: 0;
    color: var(--app-text);
    font-size: clamp(28px, 5vw, 34px);
    letter-spacing: -.05em;
}

.profile-ref-head p {
    margin-top: 14px;
    color: #7a849b;
    font-size: 22px;
    line-height: 1.4;
}

.copy-line {
    display: flex;
    align-items: center;
    min-height: 70px;
    border: 1px solid var(--app-line);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

.copy-line span {
    flex: 1;
    min-width: 0;
    padding: 0 20px;
    color: var(--app-text);
    font-size: 19px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-line button {
    align-self: stretch;
    width: 80px;
    border: 0;
    border-left: 1px solid var(--app-line);
    color: #65708a;
    background: #fff;
    font-size: 32px;
    cursor: pointer;
}

.profile-exit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    min-height: 76px;
    border: 2px solid rgba(239, 68, 68, .45);
    border-radius: 22px;
    color: #dc1717;
    background: rgba(255, 246, 246, .9);
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
}

.placeholder-card {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 50px 26px;
    border-radius: 30px;
    text-align: center;
}

.placeholder-icon {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    border-radius: 26px;
    background: var(--app-blue-soft);
}

.placeholder-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--app-blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.placeholder-card h2 {
    margin: 10px 0 0;
    color: var(--app-navy);
    font-size: 32px;
    letter-spacing: -.05em;
}

.placeholder-card p {
    max-width: 420px;
    margin: 0;
    font-size: 18px;
}

@media (min-width: 901px) {
    .auth-page {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .auth-panel {
        width: min(100%, 760px);
    }

    .auth-card {
        border-radius: 36px;
    }

    .mobile-tabbar {
        width: min(760px, calc(100% - 40px));
    }
}

@media (max-width: 900px) {
    .app-shell {
        padding: 26px 18px 0;
    }

    .app-topbar {
        margin-bottom: 34px;
    }

    .app-logo,
    .auth-brand {
        font-size: 25px;
    }

    .app-logo__icon,
    .auth-brand__icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .page-head {
        flex-direction: column;
    }

    h1,
    .screen-head h1 {
        font-size: 48px;
    }

    .page-actions {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .card {
        padding: 18px;
        border-radius: 24px;
    }

    .auth-page {
        display: block;
        min-height: 100vh;
        padding: 72px 24px 34px;
    }

    .auth-brand {
        margin-bottom: 70px;
    }

    .auth-head h1 {
        font-size: 54px;
    }

    .auth-head p {
        font-size: 21px;
    }

    .auth-card {
        gap: 22px;
        padding: 28px 22px;
        border-radius: 30px;
    }

    .auth-input {
        min-height: 68px;
        padding: 0 18px;
    }

    .auth-input input {
        font-size: 20px;
    }

    .auth-submit {
        min-height: 72px;
        font-size: 22px;
    }

    .auth-links a {
        min-height: 68px;
        font-size: 20px;
    }

    .profile-card {
        padding: 22px;
        border-radius: 24px;
    }

    .profile-avatar {
        width: 104px;
        height: 104px;
    }

    .profile-avatar svg {
        width: 78px;
        height: 78px;
    }

    .profile-label {
        font-size: 18px;
    }

    .profile-value {
        font-size: 26px;
    }

    .profile-title {
        font-size: 34px;
    }

    .profile-money {
        font-size: 42px;
    }
}

@media (max-width: 520px) {
    .auth-page {
        padding-left: 18px;
        padding-right: 18px;
    }

    .auth-head h1 {
        font-size: 47px;
    }

    .auth-head p {
        font-size: 18px;
    }

    .auth-field > span {
        font-size: 18px;
    }

    .auth-input {
        gap: 14px;
    }

    .auth-input svg {
        width: 25px;
        height: 25px;
    }

    .auth-input input {
        font-size: 18px;
    }

    .auth-links a {
        gap: 12px;
        font-size: 18px;
    }

    .mobile-tabbar {
        min-height: 78px;
        border-radius: 26px;
        padding: 8px;
    }

    .mobile-tabbar__item {
        font-size: 12px;
    }

    .mobile-tabbar__item svg {
        width: 25px;
        height: 25px;
    }

    .profile-card--user,
    .profile-card--row,
    .profile-card--balance {
        gap: 18px;
    }

    .profile-avatar {
        width: 92px;
        height: 92px;
    }

    .profile-title {
        font-size: 30px;
    }

    .profile-wallet {
        width: 78px;
        height: 78px;
    }

    .profile-wallet svg {
        width: 44px;
        height: 44px;
    }

    .profile-ref-head p {
        font-size: 18px;
    }

    .profile-soft-icon--gift {
        display: none;
    }
}

/* v2 compact responsive polish */
body,
button,
input,
textarea,
select {
    font-family: Inter, Arial, sans-serif;
}

.app-body {
    min-height: 100vh;
    padding-bottom: 104px;
}

.app-shell {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 24px 20px 0;
}

.app-main {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 0 18px;
}

.app-topbar {
    align-items: center;
    margin: 0 auto 28px;
}

.app-logo,
.auth-brand {
    gap: 11px;
    font-size: 24px;
    letter-spacing: -.045em;
}

.app-logo__icon,
.auth-brand__icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

.app-logo__icon svg,
.auth-brand__icon svg {
    width: 27px;
    height: 27px;
}

.top-actions {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.notification-menu {
    position: relative;
}

.notification-btn {
    width: 42px;
    height: 42px;
    border-radius: 15px;
}

.notification-btn svg {
    width: 22px;
    height: 22px;
}

.notification-btn span {
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
}

.notification-dropdown {
    position: absolute;
    z-index: 60;
    top: calc(100% + 12px);
    right: 0;
    width: min(300px, calc(100vw - 32px));
    padding: 16px;
    border: 1px solid rgba(221, 228, 241, .96);
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 50px rgba(29, 53, 87, .16);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transition: .18s ease;
}

.notification-menu.is-open .notification-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notification-dropdown__title {
    color: var(--app-navy);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.notification-dropdown__empty {
    margin-top: 10px;
    padding: 14px;
    border-radius: 16px;
    color: #6f778e;
    background: #f5f8ff;
    font-size: 14px;
    line-height: 1.45;
}

.notification-dropdown__logout {
    margin: 12px 0 0;
}

.notification-dropdown__logout button {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(239, 68, 68, .22);
    border-radius: 14px;
    color: #dc2626;
    background: rgba(254, 242, 242, .86);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

h1,
.screen-head h1 {
    font-size: clamp(32px, 4.2vw, 44px);
    line-height: 1.02;
    letter-spacing: -.06em;
}

.page-head,
.screen-head {
    margin-bottom: 18px;
}

.page-head {
    align-items: center;
}

.page-head p,
.screen-head p,
p {
    font-size: 15px;
    line-height: 1.5;
}

.card,
.placeholder-card,
.profile-card {
    border-radius: 22px;
    box-shadow: 0 14px 44px rgba(28, 48, 84, .08);
}

.card {
    padding: 18px;
}

.btn {
    min-height: 40px;
    padding: 0 15px;
    border-radius: 13px;
    font-size: 14px;
}

.input,
.textarea,
.file {
    border-radius: 13px;
    padding: 11px 12px;
    font-size: 14px;
}

.toolbar {
    gap: 8px;
}

th {
    padding: 11px 12px;
    font-size: 12px;
}

td {
    padding: 12px;
    font-size: 14px;
}

.task-desc,
.small {
    font-size: 12px;
}

.mobile-tabbar {
    width: min(560px, calc(100% - 34px));
    min-height: 72px;
    padding: 8px 10px;
    border-radius: 26px;
}

.mobile-tabbar__item {
    gap: 5px;
    border-radius: 18px;
    font-size: 12px;
}

.mobile-tabbar__item svg {
    width: 24px;
    height: 24px;
}

/* Compact auth screen */
.auth-body {
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 28px 18px;
}

.auth-panel {
    width: min(100%, 470px);
}

.auth-brand {
    justify-content: center;
    margin-bottom: 34px;
}

.auth-head {
    margin-bottom: 22px;
}

.auth-head h1 {
    font-size: clamp(38px, 5vw, 48px);
    line-height: 1;
    letter-spacing: -.065em;
}

.auth-head p {
    margin-top: 10px;
    font-size: 17px;
    line-height: 1.45;
}

.auth-card {
    gap: 17px;
    padding: 24px;
    border-radius: 25px;
}

.auth-field {
    gap: 8px;
}

.auth-field > span {
    font-size: 15px;
}

.auth-input {
    gap: 13px;
    min-height: 56px;
    padding: 0 15px;
    border-width: 1px;
    border-radius: 16px;
}

.auth-input svg {
    width: 23px;
    height: 23px;
}

.auth-input input {
    font-size: 16px;
    font-weight: 600;
}

.auth-eye {
    width: 34px;
    height: 34px;
}

.auth-submit {
    min-height: 58px;
    margin-top: 3px;
    border-radius: 16px;
    font-size: 17px;
}

.auth-links {
    gap: 12px;
    margin-top: 22px;
}

.auth-links a {
    gap: 12px;
    min-height: 56px;
    border-width: 1px;
    border-radius: 16px;
    font-size: 16px;
}

.auth-links svg {
    width: 24px;
    height: 24px;
}

.auth-bg--one {
    width: 260px;
    height: 260px;
}

.auth-bg--two {
    width: 320px;
    height: 180px;
}

.placeholder-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 28px;
    text-align: center;
}

.placeholder-card h2 {
    font-size: 26px;
}

.placeholder-card p {
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
}

@media (min-width: 901px) {
    .app-shell {
        padding-top: 28px;
    }

    .auth-page {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .auth-panel {
        width: min(100%, 470px);
    }

    .auth-card {
        border-radius: 25px;
    }

    .page-actions {
        flex: 0 0 auto;
    }
}

@media (max-width: 900px) {
    .app-shell {
        width: min(560px, 100%);
        padding: 22px 18px 0;
    }

    .app-topbar {
        margin-bottom: 26px;
    }

    .app-logo,
    .auth-brand {
        font-size: 23px;
    }

    h1,
    .screen-head h1 {
        font-size: 38px;
        line-height: 1.02;
    }

    .page-head {
        align-items: stretch;
    }

    .auth-page {
        display: flex;
        align-items: center;
        padding: 22px 18px;
    }

    .auth-panel {
        width: min(100%, 440px);
    }

    .auth-brand {
        margin-bottom: 32px;
    }

    .auth-head h1 {
        font-size: 42px;
    }

    .auth-head p {
        font-size: 16px;
    }

    .auth-card {
        padding: 22px;
        border-radius: 24px;
    }
}

@media (max-width: 520px) {
    .app-body {
        padding-bottom: 92px;
    }

    .app-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .app-logo,
    .auth-brand {
        font-size: 21px;
    }

    .app-logo__icon,
    .auth-brand__icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .app-logo__icon svg,
    .auth-brand__icon svg {
        width: 24px;
        height: 24px;
    }

    .notification-btn {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }

    h1,
    .screen-head h1 {
        font-size: 34px;
    }

    .card {
        padding: 15px;
        border-radius: 20px;
    }

    .auth-page {
        min-height: 100svh;
        padding: 18px 16px 22px;
    }

    .auth-brand {
        margin-bottom: 28px;
    }

    .auth-head {
        margin-bottom: 18px;
    }

    .auth-head h1 {
        font-size: 39px;
    }

    .auth-card {
        gap: 15px;
        padding: 20px 18px;
    }

    .auth-input {
        min-height: 54px;
    }

    .auth-submit {
        min-height: 56px;
    }

    .auth-links a {
        min-height: 54px;
    }

    .mobile-tabbar {
        width: calc(100% - 24px);
        min-height: 68px;
        padding: 7px;
        border-radius: 24px;
        bottom: max(10px, env(safe-area-inset-bottom));
    }

    .mobile-tabbar__item {
        font-size: 11px;
        border-radius: 16px;
    }

    .mobile-tabbar__item svg {
        width: 22px;
        height: 22px;
    }
}
