:root {
    --red: #e60000;
    --red-dark: #b40000;
    --ink: #1f2933;
    --muted: #5b6773;
    --line: #d7e1e8;
    --soft: #eef6fa;
    --soft-2: #e4f0f6;
    --white: #fff;
    --green: #dcf8e8;
    --shadow: 0 10px 28px rgba(23, 43, 77, .10);
    --radius: 14px;
    --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--soft);
    line-height: 1.42;
    font-size: 15px;
}
a { color: inherit; }
a:hover { color: var(--red); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid rgba(31,41,51,.35); margin: 16px 0; }
.container {
    width: min(var(--max), calc(100% - 64px));
    margin: 0 auto;
}

/* Header restored to the compact previous version */
.topbar { background: var(--red); color: #fff; }
.topbar__inner {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}
.topbar a {
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__menu, .topbar__actions {
    display: flex;
    align-items: center;
    gap: 26px;
}
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 6px 22px;
    border-radius: 999px;
    border: 2px solid transparent;
}
.pill--white { background: #fff; color: var(--red) !important; }

.brandbar { background: #fff; }
.brandbar__inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--red);
    text-decoration: none;
    font-weight: 800;
}
.brand:hover { text-decoration: none; }
.brand__mark {
    width: 20px;
    height: 17px;
    background: var(--red);
    display: inline-block;
    transform: skew(-8deg) rotate(2deg);
    border-radius: 4px 12px 4px 12px;
    position: relative;
}
.brand__mark::after {
    content: '';
    position: absolute;
    width: 9px;
    height: 9px;
    background: #fff;
    border-radius: 50%;
    right: 3px;
    top: 4px;
    opacity: .35;
}
.brand__text { font-size: 27px; letter-spacing: -.8px; }
.brandbar__right { display: flex; align-items: center; gap: 24px; }
.contact-link { text-decoration: none; font-size: 14px; }
.search {
    display: grid;
    grid-template-columns: minmax(180px, 285px) 52px;
    height: 36px;
}
.search input {
    border: 2px solid #8a9097;
    border-right: 0;
    border-radius: 20px 0 0 20px;
    padding: 0 15px;
    outline: none;
    min-width: 0;
}
.search button {
    border: 0;
    background: var(--red);
    color: #fff;
    border-radius: 0 20px 20px 0;
    font-size: 22px;
}
.navrow { background: #fff; border-bottom: 1px solid #d6dde4; }
.navrow__inner {
    display: flex;
    gap: 24px;
    align-items: center;
    min-height: 52px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.navrow a { text-decoration: none; white-space: nowrap; font-size: 15px; }
.navrow a:hover, .navrow a.is-active { color: var(--red); font-weight: 700; }

/* Buttons and reusable blocks */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 11px 25px;
    min-height: 42px;
    text-decoration: none;
    font-weight: 800;
    transition: background .12s ease, box-shadow .12s ease;
}
.btn:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); text-decoration: none; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--outline { background: #fff; border: 1.5px solid var(--red); color: var(--red); }
.btn--wide { min-width: 255px; }
.btn--small { min-height: 34px; padding: 7px 14px; font-size: 13px; }
.btn--danger { background: #323232; color: #fff; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.flash { margin-top: 16px; border-radius: 12px; padding: 13px 18px; font-weight: 800; }
.flash--success { background: var(--green); color: #00672f; }
.flash--error { background: #ffe4e4; color: #9a0000; }
.status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.status--approved { background: #dff7e7; color: #007737; }
.status--pending { background: #fff5d6; color: #775400; }
.status--rejected { background: #ffe2e2; color: #9a0000; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; color: var(--red); font-weight: 900; font-size: 12px; }

/* Homepage restored */
.hero {
    min-height: 335px;
    color: #fff;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.36) 56%, rgba(0,0,0,.16)),
        radial-gradient(circle at 64% 38%, rgba(230,0,0,.52), transparent 22%),
        linear-gradient(135deg, #18212c 0%, #334252 45%, #607081 100%);
}
.hero__content { max-width: 860px; padding: 40px 0; }
.hero h1 {
    font-size: clamp(38px, 4.5vw, 56px);
    line-height: 1.12;
    letter-spacing: -1.6px;
    margin: 0 0 24px;
    font-weight: 500;
}
.hero p { font-weight: 700; max-width: 980px; margin-top: 22px; font-size: 13px; }
.section { padding: 44px 0; }
.section--white { background: #fff; }
.section--tint { background: var(--soft); }
.section h2, .survey-section h2 {
    font-size: clamp(31px, 3.4vw, 46px);
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin: 0 0 30px;
    text-align: center;
}
.card-grid, .promo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.promo-cards { background: var(--soft); padding: 44px 0; }
.promo-card { background: #fff; min-height: 360px; display: flex; flex-direction: column; }
.promo-card__media, .promo-card__image {
    height: 135px;
    background: linear-gradient(135deg, #d0ab7f, #1d2734);
    position: relative;
    overflow: hidden;
}
.promo-card:nth-child(2) .promo-card__media,
.promo-card:nth-child(2) .promo-card__image { background: linear-gradient(135deg, #111, #725b38 45%, #1f2933); }
.promo-card:nth-child(3) .promo-card__media,
.promo-card:nth-child(3) .promo-card__image { background: linear-gradient(135deg, #386946, #77a5ba); }
.promo-card__media::after,
.promo-card__image::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    right: 24px;
    top: 18px;
    background: rgba(255,255,255,.18);
}
.promo-card__body { padding: 23px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.promo-card h3 { font-size: 26px; line-height: 1.24; letter-spacing: -1px; margin: 0; }
.promo-card p { font-size: 17px; margin: 0; color: #27313d; }
.promo-card .btn { margin-top: auto; align-self: center; }
.support-grid, .support-tiles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.support-card, .support-tile { background: var(--soft); min-height: 300px; padding: 32px 28px; display: grid; place-items: center; text-align: center; }
.support-card__icon, .support-tile span { font-size: 54px; line-height: 1; color: var(--red); margin-bottom: 22px; display: block; }
.support-card h3, .support-tile h3 { font-size: 25px; line-height: 1.1; margin: 0 0 16px; }
.support-card p, .support-tile p { font-size: 16px; margin: 0; }
.access-cash { background: #fff; border-radius: var(--radius); display: grid; grid-template-columns: 230px 1fr; align-items: center; gap: 22px; padding: 34px 56px; }
.access-cash__illustration { width: 165px; height: 110px; border-radius: 55% 45% 53% 47%; background: radial-gradient(circle, #5aa16b 0 9px, transparent 10px), radial-gradient(circle at 70% 38%, #d92525 0 9px, transparent 10px), #dff0f6; }
.survey-section { background: #fff; padding: 45px 0; }
.survey-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 52px; }
.survey-card h3 { font-size: 28px; margin: 0 0 8px; }
.survey-card p { font-size: 17px; }
.ranking { margin-top: 40px; }
.ranking h4 { color: #b94618; font-size: 20px; margin: 0 0 12px; }
.rank-row { display: grid; grid-template-columns: 34px 120px 1fr 52px; align-items: center; gap: 12px; margin: 8px 0; }
.rank-row i { height: 28px; border-radius: 999px; background: linear-gradient(90deg, #c9471a var(--w), #e6e6e6 var(--w)); }
.rank-row--brand b { color: var(--red); }
.fraud-block { margin-top: 45px; border-top: 1px solid var(--line); padding-top: 30px; }
.fraud-links { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 35px; }
.fraud-links a { border: 1px solid #bdcbd4; padding: 30px 24px; text-decoration: none; font-size: 18px; }

/* Client area */
.dashboard-page { background: var(--soft); padding: 28px 0 52px; }
.account-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 24px; }
.tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 20px; font-weight: 900; font-size: 15px; color: var(--ink); text-decoration: none; }
.tab.is-active { background: var(--red); color: #fff; border-color: var(--red); }
.dashboard-grid { display: grid; grid-template-columns: 300px minmax(430px, 1fr) 300px; gap: 22px; align-items: start; }
.balance-panel h2 { font-size: 42px; margin: 14px 0; letter-spacing: -1.3px; }
.balance-panel h3 { font-size: 24px; margin: 0 0 14px; }
.balance-state { display: none; }
.balance-state.is-active { display: block; }
.tx-row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 9px 0; font-size: 14px; }
.card-panel { text-align: left; }
.card-panel h1 { font-size: 31px; margin: 0 0 18px; letter-spacing: -.8px; }
.card-carousel { position: relative; display: grid; grid-template-columns: 38px 1fr 38px; gap: 8px; align-items: center; }
.card-carousel__viewport { min-height: 270px; display: grid; place-items: center; overflow: hidden; }
.card-slide { display: none; width: 100%; }
.card-slide.is-active { display: block; }
.card-carousel__arrow { border: 1px solid var(--line); background: #fff; color: var(--red); border-radius: 50%; width: 38px; height: 38px; font-size: 32px; line-height: 1; }
.bank-card {
    position: relative;
    isolation: isolate;
    width: min(100%, 410px);
    aspect-ratio: 1.58/1;
    margin: 0 auto;
    border-radius: 22px;
    padding: 25px 26px;
    background: radial-gradient(circle at 78% 42%, #ff4646, #dc0000 42%, #520b1b 100%);
    color: #fff;
    box-shadow: 0 18px 45px rgba(230,0,0,.16);
    overflow: hidden;
}
.bank-card--credit { background: linear-gradient(135deg,#3d1020,#b00000 55%,#8d1717); }
.bank-card__top, .bank-card__meta { display: flex; justify-content: space-between; gap: 18px; font-weight: 900; position: relative; z-index: 2; }
.bank-card__number {
    font-size: clamp(23px, 2.3vw, 32px);
    letter-spacing: .12em;
    margin: 46px 0 36px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}
.bank-card__meta { font-size: 16px; }
.bank-card__note { font-size: 12px; position: absolute; left: 26px; bottom: 20px; z-index: 2; }
.bank-card--locked .bank-card__top,
.bank-card--locked .bank-card__number,
.bank-card--locked .bank-card__meta,
.bank-card--locked .bank-card__note { filter: blur(2px); opacity: .48; }
.locked-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: rgba(0,0,0,.58);
    display: grid;
    place-items: center;
    text-align: center;
}
.locked-overlay::before {
    content: '';
    width: 104px;
    height: 82px;
    border: 12px solid rgba(255,255,255,.88);
    border-top: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 0 999px rgba(230,0,0,.20);
    position: relative;
    display: block;
}
.locked-overlay::after {
    content: '';
    width: 74px;
    height: 62px;
    border: 12px solid rgba(255,255,255,.88);
    border-bottom: 0;
    border-radius: 42px 42px 0 0;
    position: absolute;
    top: 72px;
}
.locked-overlay span { display: none; }
.card-lock-action { position: absolute; z-index: 5; inset: 0; display: grid; place-items: center; padding-top: 82px; color: #fff; font-weight: 900; }
.card-caption { text-align: center; font-weight: 900; margin: 12px 0 0; }
.app-status-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.app-status-row:last-child { border-bottom: 0; }
.promo-banner { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-top: 22px; padding: 18px; border-radius: 14px; background: #fff3d7; border: 1px solid #f1cf80; }
.promo-banner strong { display: block; font-size: 20px; color: #8b4700; }
.promo-banner span { display: block; font-size: 14px; margin-top: 4px; }

/* Forms */
.auth-page { padding: 52px 0; background: var(--soft); }
.auth-card { width: min(560px,100%); margin: auto; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 30px; }
.auth-card h1 { font-size: 32px; margin: 0 0 10px; }
.notice { background: #fff8d7; border: 1px solid #f0d77b; border-radius: 12px; padding: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 900; }
.field input, .field select, .field textarea, textarea, input, select {
    border: 1px solid #c4d2dc;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    min-width: 0;
}
.field input[type="file"] { padding: 10px; }
.field small { color: var(--muted); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.inline-error, .modal-form-error { background: #ffe2e2; color: #980000; border-radius: 10px; padding: 10px 12px; margin: 12px 0; font-weight: 800; }
.modal-form-error:empty { display: none; }
body.modal-open { overflow: hidden; }
.modal { display: none; position: fixed; inset: 0; z-index: 1000; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.54); }
.modal__dialog { position: relative; width: min(760px, calc(100% - 30px)); max-height: calc(100vh - 48px); overflow: auto; margin: 24px auto; background: #fff; border-radius: 18px; box-shadow: 0 20px 80px rgba(0,0,0,.30); padding: 28px; }
.modal__dialog h2 { margin: 0 0 8px; font-size: 30px; }
.modal__note { color: var(--muted); }
.modal__close { position: absolute; top: 14px; right: 14px; border: 0; background: var(--red); color: #fff; border-radius: 50%; width: 34px; height: 34px; font-size: 22px; }

/* Product pages */
.product-page { padding: 44px 0; background: #fff; }
.product-page h1 { font-size: 42px; font-weight: 500; letter-spacing: -1.4px; margin: 22px 0 8px; }
.lead { font-size: 19px; font-weight: 800; margin-top: 0; }
.breadcrumb { margin: 8px 0 18px; }
.breadcrumb a { text-decoration: underline; }
.pale-section { padding: 52px 0; background: var(--soft); }
.pale-section.alt { background: var(--soft-2); }
.content-section { padding: 52px 0; background: #fff; }
.center-title { text-align: center; font-size: 40px; line-height: 1.08; letter-spacing: -1.3px; margin: 0 0 12px; }
.center-text { text-align: center; font-size: 18px; }
.small { font-size: 14px; }
.product-grid { display: grid; gap: 24px; margin-top: 36px; }
.product-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.product-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.product-card { background: #fff; padding: 28px; min-height: 300px; display: flex; flex-direction: column; gap: 14px; box-shadow: none; }
.product-card h3 { font-size: 28px; margin: 0; letter-spacing: -1px; }
.product-card .btn { align-self: center; margin-top: auto; }
.ticks { list-style: none; padding: 0; margin: 10px 0; }
.ticks li { position: relative; padding-left: 38px; margin: 16px 0; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: -5px; color: #058a38; font-size: 32px; font-weight: 900; }
.switch-card { background: var(--soft); border-radius: 12px; text-align: center; padding: 40px; margin: 38px 0; box-shadow: var(--shadow); }
.switch-card h2 { font-size: 28px; }
.switch-card a { color: #a10000; font-size: 28px; font-weight: 900; text-decoration: underline; }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin: 42px 0; }
.steps-grid article { background: #fff; padding: 38px 30px; text-align: center; }
.steps-grid span { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--red); color: #fff; font-size: 34px; font-weight: 900; margin-bottom: 20px; }
.split-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 44px; margin-top: 38px; }
.credit-art { min-height: 290px; border-radius: 24px; background: #f5dccc; color: var(--red); font-size: 54px; line-height: 1.05; font-weight: 900; display: grid; place-items: center; text-align: center; transform: rotate(-2deg); }
.narrow { max-width: 960px; }
.category-icons { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin: 36px 0; }
.category-icons span { background: #d8e9f2; border-radius: 20px; padding: 30px 26px; font-weight: 900; text-align: center; }
.rate-card a { color: #a10000; text-decoration: underline; }
.rate-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.loan-calculator { display: grid; grid-template-columns: 1.25fr .9fr; gap: 28px; margin: 24px 0 42px; }
.calc-box, .example-box { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 30px; }
.amount-control { display: inline-flex; align-items: center; border: 1px solid #bfc9d2; border-radius: 8px; overflow: hidden; margin: 10px 0; }
.amount-control button { border: 0; background: #fff; font-size: 30px; color: #088; padding: 8px 16px; }
.amount-control input { border: 0; width: 140px; text-align: center; font-size: 25px; border-radius: 0; }
.terms { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 16px; }
.terms button { border: 1px solid #cbd8e1; background: #fff; padding: 14px; font-size: 16px; }
.terms button.is-active { background: #cde5ef; }
.example-box { background: #dceef6; }
.example-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.example-grid b { font-size: 24px; }
.split-info { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.pale-card { background: var(--soft); padding: 32px; }
.feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 48px; margin-top: 42px; }
.feature-grid article { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: start; }
.feature-grid span { color: var(--red); font-size: 62px; line-height: .9; }
.mortgage-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 34px; text-align: center; margin-top: 58px; }
.mortgage-actions span { display: grid; place-items: center; margin: auto auto 16px; width: 95px; height: 95px; background: var(--soft); border-radius: 50%; color: var(--red); font-size: 44px; }
.wide-award { background: #fff; padding: 32px 50px; display: flex; justify-content: space-between; gap: 30px; align-items: center; margin: 42px 0; }
.award-badge { border-radius: 50%; border: 8px solid #f7c948; width: 112px; height: 112px; display: grid; place-items: center; text-align: center; font-weight: 900; color: #a76700; font-size: 13px; }
.mortgage-tools { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; text-align: center; margin-top: 52px; }
.mortgage-tools span { color: var(--red); font-size: 68px; }
.warning-band { background: #dbeaf2; text-align: center; padding: 34px 0; text-transform: uppercase; }
.warning-band p { text-transform: none; }
.question-box { background: var(--soft); text-align: center; padding: 52px; }
.question-box span { display: inline-grid; place-items: center; color: var(--red); border: 5px solid var(--red); width: 78px; height: 62px; border-radius: 12px; font-size: 48px; }
.support-grid article { background: var(--soft); padding: 36px; min-height: 330px; }
.support-grid span { display: block; text-align: center; color: var(--red); font-size: 60px; }
.support-grid a { color: #a10000; text-decoration: underline; }

/* Footer */
.site-footer { background: #cfe2ec; padding: 38px 0 22px; }
.footer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 44px; }
.footer-grid h2 { font-size: 28px; margin: 0 0 14px; }
.footer-grid a { display: block; margin: 9px 0; text-decoration: underline; }
.footer-note { font-size: 13px; margin-top: 28px; color: #44515e; }

/* Support chat */
.support-widget { position: fixed; right: 22px; bottom: 22px; z-index: 900; }
.support-widget__button { width: 62px; height: 62px; border: 0; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 14px 35px rgba(230,0,0,.35); position: relative; }
.bubble-icon { font-size: 28px; }
.support-widget__button b { position: absolute; top: -8px; right: -8px; background: #111; color: #fff; border-radius: 999px; padding: 2px 7px; }
.support-widget__panel { display: none; position: absolute; right: 0; bottom: 74px; width: min(410px, calc(100vw - 28px)); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 70px rgba(0,0,0,.25); }
.support-widget.is-open .support-widget__panel { display: block; }
.support-widget__head { background: var(--red); color: #fff; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; }
.support-widget__head button { border: 0; background: transparent; color: #fff; font-size: 26px; }
.support-widget__topics { background: #f2f7fa; padding: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.support-widget__topics p { width: 100%; margin: 0 0 4px; color: var(--muted); }
.support-widget__topics button { border: 1px solid #cbd8e1; background: #fff; border-radius: 999px; padding: 7px 11px; }
.support-widget__messages { max-height: 240px; overflow: auto; padding: 14px; background: #fff; }
.support-empty { color: var(--muted); margin: 0; }
.chat-line { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.chat-line span { display: inline-block; padding: 9px 12px; border-radius: 14px; background: #eef3f6; max-width: 82%; }
.chat-line--me { align-items: flex-end; }
.chat-line--me span { background: var(--red); color: #fff; }
.chat-line--system span { background: #fff6d7; color: #715000; max-width: 100%; font-size: 13px; }
.chat-line small { font-size: 11px; color: #6c7782; }
.support-widget__form { padding: 14px; border-top: 1px solid var(--line); }
.support-widget__form textarea { width: 100%; height: 74px; border: 1px solid #cbd8e1; border-radius: 14px; padding: 12px; font-size: 14px; }
.support-widget__actions { display: flex; gap: 9px; margin-top: 9px; }
.support-admin-float { position: fixed; right: 22px; bottom: 22px; background: var(--red); color: #fff; border-radius: 999px; padding: 13px 20px; font-weight: 900; box-shadow: var(--shadow); z-index: 900; text-decoration: none; }
.support-admin-float:hover { color: #fff; }

/* Admin */
.admin-summary { margin-bottom: 20px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.details-box { border: 1px solid var(--line); border-radius: 14px; padding: 15px; margin: 12px 0; }
.details-box--inner { background: #f7fafb; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.inline-form input { border: 1px solid #cbd8e1; border-radius: 10px; padding: 10px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }

@media (max-width: 1050px) {
    .dashboard-grid, .loan-calculator, .split-info, .split-hero, .admin-grid { grid-template-columns: 1fr; }
    .product-grid.two, .product-grid.three, .support-grid, .support-tiles, .promo-grid, .card-grid, .steps-grid, .mortgage-tools { grid-template-columns: 1fr; }
    .brandbar__inner { padding: 18px 0; align-items: flex-start; flex-direction: column; }
    .brandbar__right { flex-direction: column; align-items: flex-start; gap: 14px; }
    .search input { min-width: 190px; }
    .mortgage-actions { grid-template-columns: repeat(2,1fr); }
    .survey-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    body { font-size: 14px; }
    .container { width: min(100% - 26px, var(--max)); }
    .topbar__inner, .topbar__menu, .topbar__actions { gap: 12px; flex-wrap: wrap; min-height: auto; padding: 11px 0; }
    .brand__text { font-size: 25px; }
    .form-grid { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .card-carousel { grid-template-columns: 32px 1fr 32px; }
    .card-carousel__arrow { width: 32px; height: 32px; font-size: 27px; }
    .bank-card { padding: 22px; }
    .bank-card__number { font-size: 20px; letter-spacing: .08em; }
    .locked-overlay::before { width: 78px; height: 62px; }
    .locked-overlay::after { width: 54px; height: 45px; top: 73px; }
    .product-page h1, .center-title { font-size: 34px; }
    .promo-banner { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; }
    .support-widget__panel { right: -8px; }
    .category-icons { display: grid; }
    .feature-grid { grid-template-columns: 1fr; }
    .mortgage-actions { grid-template-columns: 1fr; }
    .access-cash { grid-template-columns: 1fr; padding: 28px; }
}

/* =========================================================
   CARD ONLY FIX — no homemade lock, lighter overlay,
   centered button, centered carousel arrows.
   Keep this block at the VERY END of assets/css/style.css
   ========================================================= */

.card-panel {
    overflow: visible !important;
}

.card-panel h1 {
    margin-bottom: 24px !important;
}

/* Stable carousel layout */
.card-carousel {
    position: relative !important;
    width: 100% !important;
    max-width: 560px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 410px) 44px !important;
    gap: 12px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}

.card-carousel__viewport {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 285px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    padding: 0 !important;
}

.card-slide {
    width: 100% !important;
    min-width: 0 !important;
    display: none !important;
    text-align: center !important;
}

.card-slide.is-active {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Main card: fixed proportions, no cropping, text stays inside */
.bank-card {
    position: relative !important;
    isolation: isolate !important;
    width: 100% !important;
    max-width: 390px !important;
    min-width: 0 !important;
    height: auto !important;
    aspect-ratio: 1.586 / 1 !important;
    margin: 0 auto !important;
    padding: 22px 24px !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    transform: none !important;
    color: #fff !important;
    background: radial-gradient(circle at 78% 42%, #ff4646, #dc0000 42%, #520b1b 100%) !important;
    box-shadow: 0 18px 45px rgba(230, 0, 0, .16) !important;
}

.bank-card--credit {
    background: linear-gradient(135deg, #3d1020, #b00000 55%, #8d1717) !important;
}

.bank-card__top,
.bank-card__meta {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    font-weight: 900 !important;
    text-align: left !important;
}

.bank-card__top *,
.bank-card__meta * {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.bank-card__number {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 38px 0 30px !important;
    font-size: clamp(21px, 1.85vw, 27px) !important;
    line-height: 1.08 !important;
    letter-spacing: .06em !important;
    word-spacing: .07em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    text-align: left !important;
}

.bank-card__meta {
    font-size: 15px !important;
}

.bank-card__note {
    position: absolute !important;
    z-index: 2 !important;
    left: 24px !important;
    right: 24px !important;
    bottom: 18px !important;
    max-width: calc(100% - 48px) !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
}

/* Locked state: only lighter dark layer, no CSS lock drawing */
.bank-card--locked .bank-card__top,
.bank-card--locked .bank-card__number,
.bank-card--locked .bank-card__meta,
.bank-card--locked .bank-card__note {
    filter: blur(2px) !important;
    opacity: .42 !important;
}

.locked-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 4 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(35, 0, 0, .42) !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

/* Remove every previous homemade lock/icon */
.locked-overlay::before,
.locked-overlay::after,
.locked-overlay span,
.locked-overlay span::before,
.locked-overlay span::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

/* Open card button exactly centered on the card */
.card-lock-action {
    position: absolute !important;
    z-index: 10 !important;
    inset: auto !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    min-width: 122px !important;
    max-width: calc(100% - 40px) !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 18px !important;

    border: 0 !important;
    border-radius: 999px !important;
    background: #e60000 !important;
    color: #fff !important;

    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    text-decoration: none !important;

    box-shadow: 0 10px 22px rgba(0, 0, 0, .22) !important;
    pointer-events: auto !important;
}

/* If the button contains children, keep them centered too */
.card-lock-action *,
.card-lock-action .btn,
.card-lock-action button,
.card-lock-action strong {
    position: static !important;
    transform: none !important;
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    font: inherit !important;
    line-height: inherit !important;
    white-space: nowrap !important;
}

/* Carousel arrows: perfect circle + centered red symbol */
.card-carousel__arrow,
button.card-carousel__arrow,
.carousel-arrow,
.card-arrow {
    position: relative !important;
    z-index: 20 !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;

    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #d7e3ea !important;
    border-radius: 50% !important;

    background: #fff !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 1 !important;
    text-indent: 0 !important;

    display: grid !important;
    place-items: center !important;

    box-shadow: 0 8px 20px rgba(23, 43, 77, .08) !important;
    cursor: pointer !important;
}

.card-carousel__arrow::before,
.carousel-arrow::before,
.card-arrow::before {
    display: block !important;
    color: #e60000 !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    transform: translateY(-1px) !important;
}

.card-carousel__arrow--left::before,
.card-carousel__arrow:first-child::before {
    content: '‹' !important;
}

.card-carousel__arrow--right::before,
.card-carousel__arrow:last-child::before {
    content: '›' !important;
}

.card-carousel__arrow *,
.carousel-arrow *,
.card-arrow * {
    display: none !important;
}

.card-caption {
    width: 100% !important;
    margin: 14px 0 0 !important;
    text-align: center !important;
    font-weight: 900 !important;
}

/* Responsive card only */
@media (max-width: 1180px) {
    .card-carousel {
        max-width: 540px !important;
        grid-template-columns: 42px minmax(0, 380px) 42px !important;
        gap: 10px !important;
    }

    .bank-card {
        max-width: 370px !important;
    }

    .bank-card__number {
        font-size: clamp(20px, 1.9vw, 25px) !important;
        letter-spacing: .052em !important;
        word-spacing: .06em !important;
    }
}

@media (max-width: 1050px) {
    .card-carousel {
        max-width: 540px !important;
        grid-template-columns: 42px minmax(0, 390px) 42px !important;
    }

    .bank-card {
        max-width: 390px !important;
    }
}

@media (max-width: 560px) {
    .card-carousel {
        grid-template-columns: 34px minmax(0, 1fr) 34px !important;
        gap: 7px !important;
        max-width: 100% !important;
    }

    .card-carousel__viewport {
        min-height: 230px !important;
    }

    .card-carousel__arrow,
    button.card-carousel__arrow {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        max-width: 34px !important;
        max-height: 34px !important;
    }

    .card-carousel__arrow::before {
        font-size: 26px !important;
    }

    .bank-card {
        max-width: 300px !important;
        padding: 18px !important;
        border-radius: 18px !important;
    }

    .bank-card__number {
        margin: 30px 0 24px !important;
        font-size: 17px !important;
        letter-spacing: .035em !important;
        word-spacing: .04em !important;
    }

    .bank-card__meta {
        font-size: 13px !important;
    }

    .bank-card__note {
        left: 18px !important;
        right: 18px !important;
        bottom: 14px !important;
        max-width: calc(100% - 36px) !important;
    }

    .card-lock-action {
        min-width: 106px !important;
        max-width: calc(100% - 28px) !important;
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 14px !important;
        font-size: 12px !important;
    }
}
/* Custom logo image */
.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo-img {
    display: block;
    height: 34px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
}
/* Картинки саме всередині кружків на промо-картках */

/* 1 картка */
.promo-card:nth-child(1) .promo-card__media::after,
.promo-card:nth-child(1) .promo-card__image::after {
    display: block !important;
    content: "" !important;
    position: absolute !important;

    width: 160px !important;
    height: 160px !important;
    right: 24px !important;
    top: 18px !important;

    border-radius: 50% !important;
    overflow: hidden !important;

    background-image: url("../img/circle-1.jpg") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;

    opacity: 1 !important;
}

/* 2 картка */
.promo-card:nth-child(2) .promo-card__media::after,
.promo-card:nth-child(2) .promo-card__image::after {
    display: block !important;
    content: "" !important;
    position: absolute !important;

    width: 160px !important;
    height: 160px !important;
    right: 24px !important;
    top: 18px !important;

    border-radius: 50% !important;
    overflow: hidden !important;

    background-image: url("../img/circle-2.jpg") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;

    opacity: 1 !important;
}

/* 3 картка */
.promo-card:nth-child(3) .promo-card__media::after,
.promo-card:nth-child(3) .promo-card__image::after {
    display: block !important;
    content: "" !important;
    position: absolute !important;

    width: 160px !important;
    height: 160px !important;
    right: 24px !important;
    top: 18px !important;

    border-radius: 50% !important;
    overflow: hidden !important;

    background-image: url("../img/circle-3.jpg") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;

    opacity: 1 !important;
}
/* === NovaBank fixes: card number, quick actions, payment/admin photo preview === */
.bank-card,
.card-carousel__viewport,
.card-slide {
    box-sizing: border-box !important;
}

.bank-card__number {
    font-size: clamp(18px, 1.52vw, 23px) !important;
    letter-spacing: .025em !important;
    word-spacing: .025em !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
    font-variant-numeric: tabular-nums !important;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px auto 0;
    max-width: 520px;
}

.quick-action {
    min-height: 46px;
    border: 1px solid #dbe8f1;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-weight: 900;
    font-size: 14px;
    padding: 0 12px;
    box-shadow: 0 8px 20px rgba(23, 43, 77, .06);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.quick-action:hover {
    transform: translateY(-1px);
    border-color: #e60000;
    box-shadow: 0 12px 26px rgba(230, 0, 0, .12);
}

.promo-banner {
    align-items: center !important;
}

.promo-banner__btn,
.promo-banner .btn {
    min-width: 126px !important;
    min-height: 48px !important;
    padding: 0 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    line-height: 1.05 !important;
    text-align: center !important;
    box-shadow: 0 10px 22px rgba(230,0,0,.20) !important;
}

.modal__dialog--small {
    width: min(560px, calc(100% - 30px)) !important;
}

.checkbox-field label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 900;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
}

.attachment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.attachment-thumb {
    display: grid;
    gap: 7px;
    border: 1px solid #dbe8f1;
    border-radius: 14px;
    padding: 10px;
    background: #fff;
    color: #111827;
    text-decoration: none;
}

.attachment-thumb:hover {
    border-color: #e60000;
    box-shadow: 0 8px 18px rgba(230,0,0,.08);
}

.attachment-thumb img {
    width: 100%;
    height: 116px;
    object-fit: cover;
    border-radius: 10px;
    background: #eef6fb;
}

.attachment-thumb span {
    font-weight: 900;
}

.attachment-thumb small {
    color: #56616d;
    overflow-wrap: anywhere;
}

.image-viewer__dialog {
    position: relative;
    width: min(1100px, calc(100% - 28px));
    max-height: calc(100vh - 36px);
    margin: 18px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 80px rgba(0,0,0,.30);
    padding: 16px;
    overflow: hidden;
}

.image-viewer__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 0 42px 12px 0;
    border-bottom: 1px solid #e6eef4;
}

.image-viewer__bar > div {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.image-viewer__stage {
    height: min(74vh, 720px);
    overflow: auto;
    display: grid;
    place-items: center;
    background: #f3f8fb;
    border-radius: 14px;
    margin-top: 14px;
}

.image-viewer__stage img {
    max-width: 100%;
    max-height: 100%;
    transform-origin: center center;
    transition: transform .15s ease;
}

.status--approved { background: #d9f8da; color: #087d24; }
.status--rejected { background: #ffe0e0; color: #9b0000; }
.status--pending { background: #fff2c6; color: #8b5a00; }

@media (max-width: 560px) {
    .bank-card__number {
        font-size: 16px !important;
        letter-spacing: .015em !important;
        word-spacing: .015em !important;
    }
    .quick-actions {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    .promo-banner__btn,
    .promo-banner .btn {
        width: 100% !important;
    }
    .image-viewer__bar {
        align-items: flex-start;
        flex-direction: column;
        padding-right: 38px;
    }
}
