:root {
    --ink: #10172f;
    --muted: #64748b;
    --blue: #129de3;
    --blue-dark: #087ec3;
    --lime: #a9d80f;
    --lime-dark: #92c000;
    --line: #e7edf5;
    --panel: #ffffff;
    --soft: #f7fbff;
    --footer: #202b32;
    --shadow: 0 16px 42px rgba(25, 52, 82, .08);

    /* Portal (authenticated app) design tokens */
    --plk-bg: #F5F7FA;
    --plk-card: #FFFFFF;
    --plk-text: #1B2129;
    --plk-secondary: #5C6672;
    --plk-muted: #94A0AD;
    --plk-border: #E7EAEE;
    --plk-row-hover: #F7F9FB;
    --plk-row-sel: #EAF4FC;
    --plk-row-border: #F2F4F7;
    --plk-accent: #129de3;
    --plk-accent-dark: #087ec3;
    --plk-success: #1F9D57;
    --plk-success-bg: #EAF6EE;
    --plk-error: #E5484D;
    --plk-warning: #E89A2C;
    --plk-chargeback: #6F4BD8;
    --plk-sidebar-bg: #FFFFFF;
    --plk-sidebar-border: #E7EAEE;
    --plk-sidebar-label: #94A0AD;
    --plk-sidebar-item: #5C6672;
    --plk-sidebar-active-bg: #F2F5F9;
    --plk-sidebar-active-text: #1B2129;
    --plk-r-card: 14px;
    --plk-r-input: 10px;
    --plk-r-pill: 7px;
    --plk-topbar-h: 64px;
    --plk-sidebar-w: 248px;
    --plk-dropdown-shadow: 0 18px 44px rgba(16,21,27,.18);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(18, 157, 227, .35);
    outline-offset: 3px;
}

h1:focus {
    outline: none;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10000;
    padding: 10px 14px;
    border-radius: 8px;
    background: #10172f;
    color: #fff;
    transform: translateY(-180%);
    transition: transform .15s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.not-found-page {
    min-height: 62vh;
    display: grid;
    place-items: center;
    padding: 72px 20px;
    background: var(--soft);
}

.not-found-card {
    max-width: 680px;
    padding: 56px 36px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
    text-align: center;
}

.not-found-code {
    margin: 0;
    color: var(--blue-dark);
    font-size: clamp(3.5rem, 12vw, 7rem);
    font-weight: 800;
    line-height: .9;
}

.not-found-card h1 {
    margin: 18px 0 10px;
}

.not-found-card > p:not(.not-found-code) {
    margin: 0 auto 28px;
    color: var(--muted);
}

.container-xl {
    max-width: 1180px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(231, 237, 245, .75);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand-logo {
    display: inline-flex;
    width: 184px;
    height: 40px;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.primary-nav {
    display: flex;
    align-items: center;
    gap: 31px;
    font-size: 13px;
    font-weight: 700;
}

.primary-nav a {
    color: #1e293b;
}

.primary-nav a.active {
    color: var(--blue);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 18px;
}

.btn-nav-login {
    color: #1e293b;
    font-weight: 700;
}

.btn-nav-dashboard {
    color: var(--blue);
    font-weight: 700;
}

.nav-link-secondary {
    color: #1e293b;
    font-weight: 700;
}

.btn-nav-logout {
    background: none;
    border: 1px solid #cfdbe8;
    border-radius: 5px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    line-height: 1.4;
}

.btn-nav-logout:hover {
    background: #f1f5f9;
}

.btn-demo,
.btn-primary-paylinks,
.btn-secondary-paylinks,
.btn-light-paylinks {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    border: 1px solid transparent;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.btn-demo {
    min-width: 132px;
    padding: 0 18px;
    color: #fff !important;
    background: var(--lime);
    box-shadow: 0 8px 20px rgba(169, 216, 15, .24);
}

.btn-primary-paylinks {
    min-width: 172px;
    padding: 0 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 11px 24px rgba(18, 157, 227, .24);
    gap: 10px;
}

.btn-secondary-paylinks {
    min-width: 164px;
    padding: 0 22px;
    color: #152238;
    background: #fff;
    border-color: #cfdbe8;
    gap: 10px;
}

.btn-light-paylinks {
    min-width: 168px;
    padding: 0 18px;
    color: var(--blue-dark);
    background: #fff;
}

.btn-primary-paylinks:hover,
.btn-secondary-paylinks:hover,
.btn-demo:hover,
.btn-light-paylinks:hover {
    transform: translateY(-1px);
}

.nav-toggle-button {
    display: none;
}

.nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.hero-section {
    padding: 78px 0 54px;
    border-bottom: 1px solid var(--line);
    background: radial-gradient(circle at 74% 30%, rgba(18, 157, 227, .08), transparent 28%), #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    align-items: center;
    gap: 42px;
}

.hero-copy h1,
.page-hero h1,
.about-hero h1,
.contact-copy h1 {
    margin: 0;
    color: var(--ink);
    font-weight: 850;
    letter-spacing: 0;
}

.hero-copy h1 {
    max-width: 580px;
    font-size: 58px;
    line-height: 1.16;
}

.hero-copy h1 span {
    color: var(--blue);
}

.hero-copy p {
    max-width: 545px;
    margin: 28px 0 31px;
    color: #334155;
    font-size: 17px;
    line-height: 1.86;
    font-weight: 500;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.payment-visual {
    position: relative;
    min-height: 430px;
}

.payment-visual-image {
    display: grid;
    place-items: center;
}

.payment-visual-image img {
    width: 100%;
    max-width: 520px;
    border-radius: 24px;
    box-shadow: 0 24px 44px rgba(25, 52, 82, .16);
}

.payment-visual-image::before {
    display: none;
}

.payment-visual::before {
    content: "";
    position: absolute;
    inset: 82px 52px 76px 10px;
    background: linear-gradient(145deg, rgba(209, 221, 235, .65), rgba(244, 248, 252, .92));
    transform: skewY(-28deg) rotate(24deg);
    border-radius: 18px;
    opacity: .72;
}

.visual-card {
    position: absolute;
    top: 88px;
    left: 128px;
    width: 244px;
    height: 180px;
    border: 1px solid #d5e1ee;
    border-radius: 10px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 46px rgba(37, 75, 110, .15);
    transform: perspective(700px) rotateY(-28deg) rotateX(8deg) rotateZ(1deg);
}

.visual-header {
    height: 36px;
    margin: 18px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e7f5fe, #f5fbff);
}

.visual-line {
    height: 10px;
    margin: 15px 20px;
    border-radius: 999px;
    background: #d7e7f6;
}

.w-80 {
    width: 80%;
}

.w-55 {
    width: 55%;
}

.visual-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 18px 20px;
}

.visual-row span,
.visual-panel {
    height: 34px;
    border-radius: 7px;
    background: #eff7fe;
}

.visual-panel {
    margin: 0 20px;
}

.floating-tile,
.money-dot {
    position: absolute;
    display: grid;
    place-items: center;
    font-weight: 850;
    box-shadow: 0 16px 25px rgba(37, 75, 110, .13);
}

.floating-tile {
    width: 68px;
    height: 68px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, var(--blue), #0379c4);
    font-size: 13px;
}

.tile-card {
    top: 66px;
    left: 98px;
}

.tile-link {
    top: 18px;
    right: 103px;
    background: #fff;
    color: var(--blue);
    border-radius: 50%;
    transform: rotate(-19deg);
}

.tile-shield {
    top: 96px;
    right: 42px;
    width: 58px;
    height: 58px;
    color: var(--lime);
    background: #fff;
    border-radius: 50%;
}

.money-dot {
    width: 62px;
    height: 62px;
    color: #fff;
    background: var(--lime);
    border: 10px solid #fff;
    border-radius: 50%;
    font-size: 22px;
}

.money-one {
    left: 88px;
    bottom: 72px;
}

.money-two {
    right: 132px;
    bottom: 26px;
}

.connector {
    position: absolute;
    border: 2px dashed rgba(18, 157, 227, .28);
    border-radius: 28px;
}

.connector-one {
    top: 48px;
    right: 114px;
    width: 116px;
    height: 96px;
}

.connector-two {
    bottom: 82px;
    left: 106px;
    width: 178px;
    height: 74px;
}

.trust-section {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.trust-section p {
    margin: 0;
    text-align: center;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.who-section,
.content-section {
    padding: 46px 0 76px;
}

.section-heading {
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 13px;
    font-size: 31px;
    font-weight: 850;
}

.section-heading p {
    max-width: 600px;
    margin: 0 auto;
    color: #475569;
    line-height: 1.7;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.help-grid div {
    text-align: center;
}

.help-grid strong {
    display: block;
    margin: 14px 0 5px;
    font-size: 14px;
}

.help-grid p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.55;
}

.line-icon {
    display: inline-grid;
    width: 39px;
    height: 39px;
    place-items: center;
    color: var(--blue);
}

.page-hero {
    padding: 68px 0 34px;
}

.page-hero h1,
.about-hero h1,
.contact-copy h1 {
    font-size: 48px;
    line-height: 1.12;
}

.page-hero p,
.about-hero p,
.contact-copy p {
    max-width: 540px;
    margin: 18px 0 0;
    color: #334155;
    line-height: 1.72;
    font-weight: 500;
}

.card-grid {
    display: grid;
    gap: 18px;
}

.card-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.marketing-card,
.info-card {
    min-height: 228px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(25, 52, 82, .045);
}

.marketing-card h2,
.info-card h2,
.resource-card h2 {
    margin: 20px 0 10px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 850;
}

.marketing-card p,
.info-card p {
    min-height: 67px;
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
}

.marketing-card a,
.resource-card a,
.view-all a,
.footer-cta a {
    display: inline-flex;
    margin-top: 18px;
    color: var(--lime-dark);
    font-size: 13px;
    font-weight: 850;
    gap: 7px;
}

.blue-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 34px;
    padding: 26px 28px;
    color: #fff;
    background: linear-gradient(135deg, #0f9de8, #0484cc);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.blue-cta h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 850;
}

.blue-cta p {
    margin: 0;
    opacity: .92;
    font-weight: 600;
}

.industries-page {
    padding-top: 20px;
}

.canada-band {
    padding: 44px 0;
    background: linear-gradient(90deg, #f4f8fc, #ffffff);
    border-top: 1px solid var(--line);
}

.canada-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: center;
    gap: 26px;
}

.canada-band h2 {
    max-width: 480px;
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 850;
}

.canada-band p {
    max-width: 580px;
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

.canada-map {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 2 / 1;
    justify-self: end;
    opacity: .78;
}

.canada-map::before {
    content: "";
    position: absolute;
    inset: 24px 22px 28px 0;
    background: #cbd5e1;
    clip-path: polygon(4% 38%, 23% 19%, 42% 27%, 59% 9%, 84% 25%, 97% 43%, 86% 70%, 63% 61%, 48% 83%, 24% 69%, 9% 78%);
}

.canada-map span {
    position: absolute;
    right: 54px;
    bottom: 21px;
    width: 58px;
    height: 58px;
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.canada-map::before,
.canada-map span,
.canada-map span::before {
    display: none;
}

.about-hero {
    padding: 62px 0 0;
    background: linear-gradient(180deg, #fff, #fbfdff);
}

.about-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 470px;
    align-items: end;
    gap: 38px;
}

.skyline {
    position: relative;
    height: 220px;
    opacity: .55;
}

.skyline::before {
    content: "";
    position: absolute;
    left: 20px;
    right: 18px;
    bottom: 0;
    height: 76px;
    background: #dbe7f3;
    clip-path: polygon(0 100%, 0 55%, 12% 55%, 12% 35%, 20% 35%, 20% 60%, 29% 60%, 29% 23%, 38% 23%, 38% 52%, 47% 52%, 47% 30%, 54% 30%, 54% 62%, 67% 62%, 67% 40%, 78% 40%, 78% 68%, 89% 68%, 89% 48%, 100% 48%, 100% 100%);
}

.skyline span {
    position: absolute;
    bottom: 0;
    width: 3px;
    height: 190px;
    background: #cbd9e8;
}

.skyline span:nth-child(1) { left: 52%; height: 208px; }
.skyline span:nth-child(2) { left: 58%; height: 126px; }
.skyline span:nth-child(3) { left: 72%; height: 176px; }
.skyline span:nth-child(4) { left: 76%; height: 152px; }
.skyline span:nth-child(5) { left: 82%; height: 120px; }

.about-cards {
    margin-top: -8px;
}

.info-card {
    min-height: 318px;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    color: #475569;
    font-weight: 700;
}

.check-list li::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 15px;
    margin-right: 10px;
    border: solid var(--lime-dark);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.resources-section {
    padding-top: 0;
}

.tabs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 24px;
}

.tabs-row button {
    min-height: 37px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.tabs-row button.active {
    background: var(--blue);
    color: #fff;
}

.resource-list {
    display: grid;
    gap: 18px;
    max-width: 820px;
}

.resource-card {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 24px;
    padding: 10px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(25, 52, 82, .04);
}

.resource-card h2 {
    margin: 7px 0 0;
}

.resource-card small {
    color: #64748b;
    font-weight: 800;
}

.resource-image {
    height: 126px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
}

.resource-card .resource-image {
    min-height: 126px;
}

.skyline-photo {
    background: none;
}

.terminal-photo {
    background: linear-gradient(135deg, rgba(17, 24, 39, .3), rgba(18, 157, 227, .18)), linear-gradient(120deg, #d7c2a4, #1e293b 46%, #f8fafc 47%, #e2e8f0 70%, #0f172a);
}

.embedded-photo {
    background: linear-gradient(135deg, rgba(18, 157, 227, .78), rgba(16, 23, 47, .86)), repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,.14) 14px 16px);
}

.view-all {
    max-width: 820px;
    margin-top: 26px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.view-all a {
    margin: 0;
}

.contact-page {
    padding: 58px 0 76px;
    background: linear-gradient(90deg, #fff 0 51%, #f6fbff 51% 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 74px;
    align-items: start;
}

.contact-copy {
    padding-top: 54px;
}

.contact-copy ul {
    display: grid;
    gap: 17px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    color: #334155;
    font-weight: 700;
}

.contact-copy li::before {
    content: "";
    display: inline-grid;
    width: 15px;
    height: 15px;
    margin-right: 12px;
    border: 3px solid var(--blue);
    border-radius: 50%;
    vertical-align: -2px;
}

.demo-form {
    display: grid;
    gap: 19px;
    padding: 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.demo-form label {
    display: grid;
    gap: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.demo-form .form-control,
.demo-form .form-select {
    min-height: 48px;
    border-color: #dbe4ee;
    border-radius: 5px;
    font-size: 14px;
}

.demo-form textarea.form-control {
    min-height: 120px;
}

.wide {
    width: 100%;
    background: var(--lime);
    box-shadow: 0 10px 22px rgba(169, 216, 15, .22);
}

.staging-form-notice,
.legal-notice {
    margin: 0;
    padding: 16px 18px;
    color: #334155;
    background: #f1f7fb;
    border-left: 4px solid var(--blue);
    font-size: 14px;
    line-height: 1.6;
}

.legal-hero {
    padding-bottom: 28px;
}

.legal-kicker {
    margin: 0 0 10px !important;
    color: var(--blue) !important;
    font-size: 13px;
    font-weight: 800 !important;
    text-transform: uppercase;
}

.legal-page {
    padding-top: 20px;
}

.legal-content {
    max-width: 880px;
}

.legal-content h2 {
    margin: 36px 0 10px;
    font-size: 22px;
    font-weight: 850;
}

.legal-content p {
    margin: 0;
    color: #475569;
    line-height: 1.75;
}

.legal-content a {
    color: var(--blue);
    font-weight: 750;
}

.legal-notice {
    margin-bottom: 34px;
}

.legal-notice strong {
    display: block;
    margin-bottom: 3px;
    color: var(--navy);
}

.site-footer {
    padding: 62px 0 34px;
    color: #dbe5ea;
    background: radial-gradient(circle at 5% 0, rgba(255,255,255,.1), transparent 23%), var(--footer);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 56px;
}

.footer-brand p {
    max-width: 255px;
    margin: 30px 0 26px;
    color: #c4d0d7;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 22px;
}

.social-links a {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.site-footer h2 {
    margin: 12px 0 20px;
    color: #fff;
    font-size: 15px;
    font-weight: 850;
}

.site-footer div:not(.footer-brand):not(.footer-grid):not(.footer-bottom):not(.footer-cta):not(.container-xl):not(.social-links) > a {
    display: block;
    margin-bottom: 13px;
    color: #c4d0d7;
    font-size: 13px;
}

.footer-cta {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
}

.footer-cta strong {
    display: block;
    color: #fff;
    font-size: 18px;
    line-height: 1.45;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.16);
    color: #c4d0d7;
    font-size: 12px;
}

.footer-bottom span:last-child {
    display: flex;
    gap: 42px;
}

.icon-glyph {
    display: block;
    width: 30px;
    height: 30px;
    overflow: visible;
}

.skyline-photo img,
.resource-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 18px 30px rgba(25, 52, 82, .12);
}

.canada-map img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skyline-photo img {
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 991px) {
    .nav-wrap {
        min-height: 68px;
    }

    .nav-toggle-button {
        display: grid;
        min-width: 44px;
        min-height: 44px;
        place-content: center;
        gap: 5px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 7px;
        cursor: pointer;
        background: #fff;
    }

    .nav-toggle-button span {
        width: 20px;
        height: 2px;
        background: var(--ink);
        transition: transform .16s ease, opacity .16s ease;
    }

    .nav-toggle:focus-visible + .nav-toggle-button {
        outline: 3px solid rgba(18, 157, 227, .35);
        outline-offset: 3px;
    }

    .nav-toggle:checked + .nav-toggle-button span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle:checked + .nav-toggle-button span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked + .nav-toggle-button span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .primary-nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: none;
        max-height: calc(100vh - 68px);
        padding: 10px max(20px, calc((100vw - 720px) / 2));
        overflow-y: auto;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .nav-toggle:checked ~ .primary-nav {
        display: grid;
    }

    .primary-nav > a {
        display: flex;
        min-height: 48px;
        align-items: center;
        padding: 0 4px;
        border-bottom: 1px solid var(--line);
        font-size: 15px;
    }

    .primary-nav .btn-demo {
        min-height: 48px;
        margin: 10px 0;
        border-bottom: 0;
        padding: 0 18px;
    }

    .hero-grid,
    .about-hero-grid,
    .contact-grid,
    .canada-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .page-hero h1,
    .about-hero h1,
    .contact-copy h1 {
        font-size: 40px;
    }

    .hero-copy,
    .hero-copy h1,
    .hero-copy p {
        width: 100%;
        max-width: none;
    }

    .payment-visual {
        display: none;
    }

    .card-grid.three,
    .card-grid.four,
    .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-page {
        background: #fff;
    }

    .contact-copy {
        padding-top: 0;
    }
}

@media (max-width: 640px) {
    body {
        overflow-x: hidden;
    }

    .container-xl {
        padding-right: 18px;
        padding-left: 18px;
    }

    .nav-wrap {
        min-height: 64px;
    }

    .brand-logo {
        width: 138px;
        height: 34px;
    }

    .primary-nav {
        top: 64px;
        max-height: calc(100vh - 64px);
        padding-right: 18px;
        padding-left: 18px;
    }

    .hero-section,
    .page-hero,
    .about-hero,
    .contact-page {
        padding-top: 32px;
    }

    .hero-copy h1,
    .page-hero h1,
    .about-hero h1,
    .contact-copy h1 {
        font-size: 34px;
        line-height: 1.13;
    }

    .hero-copy p {
        margin: 20px 0 24px;
        font-size: 15px;
        line-height: 1.7;
    }

    .hero-grid,
    .about-hero-grid,
    .contact-grid,
    .canada-grid,
    .footer-grid {
        gap: 28px;
    }

    .button-row,
    .blue-cta,
    .footer-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .button-row {
        gap: 12px;
    }

    .button-row a,
    .blue-cta .btn-light-paylinks {
        width: 100%;
        min-height: 48px;
    }

    .trust-section {
        padding: 24px 0;
    }

    .who-section,
    .content-section {
        padding: 38px 0 48px;
    }

    .section-heading {
        text-align: left;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .section-heading p {
        line-height: 1.65;
    }

    .help-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 18px;
        margin-top: 34px;
    }

    .help-grid div {
        text-align: left;
    }

    .page-hero {
        padding-bottom: 18px;
    }

    .page-hero p,
    .about-hero p,
    .contact-copy p {
        margin-top: 14px;
        line-height: 1.65;
    }

    .card-grid.three,
    .card-grid.four,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .marketing-card,
    .info-card {
        min-height: 0;
        padding: 22px;
    }

    .marketing-card h2,
    .info-card h2,
    .resource-card h2 {
        margin-top: 16px;
    }

    .marketing-card p,
    .info-card p {
        min-height: 0;
    }

    .blue-cta {
        margin-top: 24px;
        padding: 22px;
    }

    .blue-cta h2 {
        font-size: 20px;
    }

    .canada-band {
        padding: 36px 0;
    }

    .canada-map {
        max-width: 420px;
        justify-self: center;
    }

    .about-hero-grid {
        align-items: start;
    }

    .skyline {
        height: 150px;
    }

    .tabs-row {
        flex-wrap: nowrap;
        margin-right: -18px;
        margin-left: -18px;
        padding: 2px 18px 10px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .tabs-row button {
        min-height: 44px;
        flex: 0 0 auto;
    }

    .resource-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 12px;
    }

    .resource-card > div:last-child {
        padding: 0 8px 10px;
    }

    .resource-image,
    .resource-card .resource-image {
        min-height: 170px;
        height: 170px;
    }

    .contact-page {
        padding-bottom: 50px;
    }

    .demo-form {
        gap: 16px;
        padding: 20px;
    }

    .form-grid {
        gap: 16px;
    }

    .demo-form .form-control,
    .demo-form .form-select {
        min-height: 50px;
    }

    .footer-grid {
        gap: 34px;
    }

    .site-footer {
        padding: 46px 0 28px;
    }

    .site-footer h2 {
        margin-top: 0;
    }

    .footer-brand p {
        margin: 22px 0;
    }

    .footer-bottom {
        gap: 18px;
        margin-top: 42px;
    }

    .footer-bottom span:last-child {
        flex-wrap: wrap;
        gap: 14px 28px;
    }
}

@media (max-width: 360px) {
    .hero-copy h1,
    .page-hero h1,
    .about-hero h1,
    .contact-copy h1 {
        font-size: 30px;
    }

    .help-grid {
        grid-template-columns: 1fr;
    }
}

/* --- NLU Assistant Panel --- */
.nlu-panel {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    display: flex;
    flex-direction: column;
    height: 540px;
    box-shadow: var(--shadow);
}

.nlu-panel-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--soft);
    border-radius: 10px 10px 0 0;
}

.nlu-panel-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}

.nlu-panel-conversation {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nlu-panel-hint {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    margin: auto 0;
}

.nlu-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.nlu-message--user {
    align-self: flex-end;
    align-items: flex-end;
}

.nlu-message--assistant {
    align-self: flex-start;
    align-items: flex-start;
}

.nlu-message-text {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
}

.nlu-message--user .nlu-message-text {
    background: var(--blue);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.nlu-message--assistant .nlu-message-text {
    background: var(--soft);
    color: var(--ink);
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
}

.nlu-message-time {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
    padding: 0 4px;
}

.nlu-panel-input-row {
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 8px;
    align-items: flex-end;
    background: var(--soft);
    border-radius: 0 0 10px 10px;
}

.nlu-panel-textarea {
    flex: 1;
    resize: none;
    font-size: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px 10px;
    line-height: 1.4;
    min-height: 38px;
    max-height: 90px;
    font-family: inherit;
}

.nlu-panel-textarea:focus {
    outline: 3px solid rgba(18, 157, 227, .35);
    outline-offset: 0;
    border-color: var(--blue);
}

.nlu-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 23, 47, .45);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nlu-send-btn {
    padding: 8px 16px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .12s;
    flex-shrink: 0;
}

.nlu-send-btn:hover:not(:disabled) {
    background: var(--blue-dark);
}

.nlu-send-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.nlu-modal {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    min-width: 340px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.nlu-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 16px;
}

.nlu-modal-detail {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    font-size: 13px;
    margin: 0 0 16px;
}

.nlu-modal-detail dt {
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}

.nlu-modal-detail dd {
    color: var(--ink);
    margin: 0;
    font-weight: 500;
}

.nlu-modal-total-label {
    color: var(--ink) !important;
    font-weight: 700 !important;
    padding-top: 6px;
    border-top: 1px solid var(--line);
}

.nlu-modal-total-value {
    font-weight: 700 !important;
    font-size: 14px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
}

.nlu-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* --- Auth Pages --- */

.auth-split {
    display: flex;
    min-height: 100vh;
}

.auth-form-col {
    width: 480px;
    flex-shrink: 0;
    padding: 52px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--plk-card);
}

.auth-brand-col {
    flex: 1;
    background: linear-gradient(145deg, #0865a0 0%, #129de3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 52px 48px;
}

.auth-logo {
    display: block;
    margin-bottom: 32px;
}

.auth-logo .brand-logo img {
    height: 32px;
    width: auto;
}

.auth-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin: 0 0 8px;
}

.auth-headline {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--plk-text);
    margin: 0 0 8px;
}

.auth-tagline {
    font-size: 14px;
    color: var(--plk-secondary);
    margin: 0 0 28px;
    line-height: 1.5;
}

.auth-tagline a {
    color: var(--plk-accent);
}

.auth-tagline a:hover {
    text-decoration: underline;
}

.auth-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    color: #dc2626;
    margin-bottom: 20px;
}

.auth-status {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 20px 22px;
    font-size: 14px;
    color: #166534;
}

.auth-status strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

.auth-status p {
    margin: 0;
}

/* Form fields */
.auth-form-col .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.auth-form-col .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
}

.auth-form-col .field-row .field {
    margin-bottom: 0;
}

.auth-form-col .field + .field-row {
    margin-top: 0;
}

.auth-form-col .field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--plk-text);
}

.auth-form-col .field input[type="text"],
.auth-form-col .field input[type="email"],
.auth-form-col .field input[type="password"],
.auth-form-col .field select {
    height: 48px;
    border: 1.5px solid var(--plk-border);
    border-radius: var(--plk-r-input);
    font-size: 15px;
    padding: 0 14px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    background: var(--plk-bg);
    color: var(--plk-text);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-form-col .field input:focus,
.auth-form-col .field select:focus {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(18, 157, 227, .15);
}

.auth-form-col .field input::placeholder {
    color: #9ca3af;
}

.auth-form-col .field-hint {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

/* Password show/hide */
.field-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.field-password-wrap input {
    padding-right: 68px !important;
}

.btn-show-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    cursor: pointer;
    padding: 4px 0;
    min-height: unset;
    line-height: 1;
}

.btn-show-password:hover {
    text-decoration: underline;
}

/* Keep me signed in + forgot password row */
.auth-checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 20px;
    font-size: 14px;
}

.auth-checkbox-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--ink);
    font-weight: normal;
    margin: 0;
}

.auth-checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--blue);
    cursor: pointer;
}

.auth-checkbox-row a {
    color: var(--muted);
    font-size: 13px;
}

.auth-checkbox-row a:hover {
    color: var(--blue);
}

/* Primary CTA */
.btn-auth-primary {
    width: 100%;
    height: 52px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    cursor: pointer;
    transition: opacity .15s ease, transform .15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    box-shadow: 0 8px 20px rgba(18, 157, 227, .28);
}

.btn-auth-primary:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.auth-pre-submit {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 16px;
    line-height: 1.5;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--muted);
    margin-top: 16px;
}

.auth-back-link:hover {
    color: var(--blue);
}

.auth-legal {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
}

.auth-legal a {
    color: var(--blue);
}

.auth-legal a:hover {
    text-decoration: underline;
}

/* Brand panel */
.auth-brand-inner {
    max-width: 400px;
}

.brand-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    margin: 0 0 20px;
}

.brand-headline {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 16px;
}

.brand-headline span {
    color: var(--lime);
}

.brand-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, .8);
    line-height: 1.65;
    max-width: 360px;
    margin: 0 0 36px;
}

.brand-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    flex-shrink: 0;
}

.brand-icon--white {
    background: #fff;
    color: var(--blue);
}

.brand-icon--blue {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
}

.brand-icon svg {
    width: 24px;
    height: 24px;
}

.brand-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
}

.brand-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-trust-item svg {
    width: 14px;
    height: 14px;
    color: var(--lime);
    flex-shrink: 0;
}

.brand-assist-card {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1.75rem;
}

.brand-assist-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.brand-assist-header svg {
    width: 18px;
    height: 18px;
    color: var(--lime);
    flex-shrink: 0;
}

.brand-assist-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex: 1;
    letter-spacing: .01em;
}

.brand-assist-badge {
    font-size: 10px;
    font-weight: 700;
    background: var(--lime);
    color: #10172f;
    padding: 2px 8px;
    border-radius: 99px;
    letter-spacing: .05em;
}

.brand-assist-msg {
    font-size: 12px;
    color: rgba(255, 255, 255, .65);
    font-style: italic;
    padding: 7px 10px;
    background: rgba(255, 255, 255, .07);
    border-radius: 6px;
    border-left: 2px solid rgba(255, 255, 255, .25);
    margin-bottom: 8px;
}

.brand-assist-reply {
    font-size: 12px;
    color: rgba(255, 255, 255, .9);
    padding: 7px 10px;
    background: rgba(169, 216, 15, .15);
    border-radius: 6px;
    border-left: 2px solid var(--lime);
}

@media (max-width: 991px) {
    .auth-brand-col {
        display: none;
    }

    .auth-form-col {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        padding: 40px 32px;
    }

    .auth-split {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .auth-form-col {
        padding: 32px 24px;
    }

    .auth-headline {
        font-size: 24px;
    }

    .auth-form-col .field-row {
        grid-template-columns: 1fr;
    }
}

/* --- Merchant / Payor shared form design (mxr-*) --- */

.mxr-page {
    max-width: 1100px;
}

.mxr-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
}

.mxr-breadcrumb a {
    color: var(--muted);
}

.mxr-breadcrumb a:hover {
    color: var(--blue);
    text-decoration: underline;
}

.mxr-breadcrumb svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.mxr-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.mxr-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.btn-mxr-draft {
    padding: 8px 16px;
    border: 1.5px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: border-color .15s;
}

.btn-mxr-draft:hover {
    border-color: var(--ink);
}

.btn-mxr-activate {
    padding: 8px 16px;
    border: none;
    border-radius: 7px;
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background .15s;
}

.btn-mxr-activate:hover {
    background: var(--blue-dark);
}

.btn-mxr-activate:disabled,
.btn-mxr-draft:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.btn-mxr-danger {
    padding: 4px 10px;
    border: 1.5px solid #fca5a5;
    border-radius: 6px;
    background: #fff;
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background .12s;
}

.btn-mxr-danger:hover {
    background: #fef2f2;
}

.btn-mxr-action {
    padding: 5px 12px;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: border-color .12s, color .12s;
}

.btn-mxr-action:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.btn-mxr-action--primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.btn-mxr-action--primary:hover {
    background: var(--blue-dark);
    color: #fff;
}

.btn-mxr-action--icon {
    padding: 5px 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Two-column layout */
.mxr-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: flex-start;
}

.mxr-layout--narrow {
    grid-template-columns: minmax(0, 560px);
}

.mxr-form-col {
    min-width: 0;
}

/* Form card */
.mxr-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
}

.mxr-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 20px;
}

.mxr-field {
    margin-bottom: 16px;
}

.mxr-field:last-child {
    margin-bottom: 0;
}

.mxr-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.mxr-required {
    color: #dc2626;
}

.mxr-error {
    display: block;
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
}

.mxr-input {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--line);
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    box-sizing: border-box;
}

.mxr-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(18,157,227,.1);
}

.mxr-select {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--line);
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
    transition: border-color .15s;
    outline: none;
    box-sizing: border-box;
    appearance: auto;
}

.mxr-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(18,157,227,.1);
}

.mxr-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.mxr-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mxr-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
    margin-top: 16px;
}

.mxr-checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--blue);
    cursor: pointer;
}

.mxr-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

/* Payment method chips */
.mxr-payment-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mxr-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 99px;
    border: 1.5px solid var(--line);
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s, color .15s, background .15s;
    user-select: none;
}

.mxr-chip:hover {
    border-color: var(--blue);
    color: var(--ink);
}

.mxr-chip--on {
    background: rgba(18,157,227,.08);
    border-color: var(--blue);
    color: var(--ink);
    font-weight: 600;
}

.mxr-chip-check-icon {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    color: var(--blue);
}

/* Snapshot panel */
.mxr-snapshot {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 22px;
    position: sticky;
    top: 24px;
}

.mxr-snapshot-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin: 0 0 16px;
}

.mxr-snapshot-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.mxr-snapshot-identity {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.mxr-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    letter-spacing: .02em;
}

.mxr-avatar--sm {
    width: 36px;
    height: 36px;
    font-size: 13px;
}

.mxr-avatar--merchant {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, #129de3, #087ec3);
    font-size: 14px;
    letter-spacing: .3px;
}

.mxr-snapshot-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 2px;
}

.mxr-snapshot-meta {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 6px;
}

.mxr-snapshot-empty {
    font-size: 13px;
    color: var(--muted);
    margin: 12px 0 0;
}

.mxr-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}

.mxr-badge--draft {
    background: #f1f5f9;
    color: var(--muted);
}

.mxr-badge--active {
    background: rgba(34,197,94,.1);
    color: #15803d;
}

.mxr-snapshot-section {
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 14px;
}

.mxr-snapshot-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin: 0 0 10px;
}

/* Setup checklist */
.mxr-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.mxr-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.mxr-check--done {
    color: var(--ink);
}

.mxr-check--pending {
    color: var(--muted);
}

.mxr-check-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.mxr-check-icon--done {
    color: #22c55e;
    stroke: #22c55e;
}

.mxr-check-hint {
    font-size: 11px;
    color: var(--muted);
    margin-left: auto;
}

/* Payment icons in snapshot */
.mxr-payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.mxr-payment-icon {
    font-size: 20px;
    line-height: 1;
}

/* GP hosted fields */
.mxr-gp-field {
    border: 1.5px solid var(--line);
    border-radius: 7px;
    padding: 0;
    height: 42px;
    background: #fff;
    transition: border-color .15s;
}

.mxr-gp-field:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(18,157,227,.1);
}

/* Dev note */
.mxr-dev-note {
    margin-top: 16px;
    padding: 10px 14px;
    border: 1px solid #fde68a;
    border-radius: 7px;
    background: #fffbeb;
    font-size: 12px;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Wizard header and nav (mobile-only) */
.mxr-wizard-header {
    display: none;
}

.mxr-progress {
    height: 4px;
    background: var(--line);
    border-radius: 2px;
}

.mxr-progress-bar {
    height: 100%;
    background: var(--blue);
    border-radius: 2px;
    transition: width .25s ease;
}

.mxr-wizard-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    margin: 8px 0 20px;
}

.mxr-wizard-nav {
    display: none;
    gap: 10px;
    margin-top: 8px;
}

.btn-mxr-continue {
    flex: 1;
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}

.btn-mxr-continue:hover {
    background: var(--blue-dark);
}

.btn-mxr-continue:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.btn-mxr-back {
    background: #fff;
    border: 1.5px solid var(--line);
    color: var(--ink);
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .12s;
}

.btn-mxr-back:hover {
    border-color: var(--ink);
}

/* Merchant / Payor list rows */
.mxr-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mxr-list-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 18px;
    transition: border-color .12s;
}

.mxr-list-row:hover {
    border-color: var(--blue);
}

.mxr-list-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.mxr-list-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.mxr-list-sub {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 1px;
}

.mxr-list-status {
    flex-shrink: 0;
}

.mxr-list-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.payor-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 13px;
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: 10px;
    max-width: 340px;
    margin-bottom: 16px;
}

.payor-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--plk-text);
    width: 100%;
}

.payor-search-input::placeholder { color: var(--plk-muted); }

/* Empty state */
.mxr-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 24px;
    text-align: center;
    color: var(--muted);
}

.mxr-empty svg {
    width: 48px;
    height: 48px;
    opacity: .4;
}

.mxr-empty p {
    margin: 0;
    font-size: 15px;
}

/* Payor detail */
.mxr-detail-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px 16px;
    align-items: start;
}

.mxr-detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .03em;
    padding-top: 1px;
}

.mxr-detail-value {
    font-size: 14px;
    color: var(--ink);
    line-height: 1.5;
}

.mxr-detail-notes {
    white-space: pre-line;
    color: var(--muted);
}

/* Payment method cards */
.mxr-pm-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.mxr-pm-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.mxr-pm-card-icon {
    width: 40px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: .02em;
    flex-shrink: 0;
}

.mxr-pm-card-info {
    flex: 1;
    min-width: 0;
}

.mxr-pm-card-number {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.mxr-pm-card-expiry {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 1px;
}

.mxr-pm-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Responsive: collapse to one column on tablet */
@media (max-width: 900px) {
    .mxr-layout {
        grid-template-columns: 1fr;
    }

    .mxr-snapshot {
        position: static;
    }
}

/* Responsive: mobile wizard */
@media (max-width: 767px) {
    .mxr-wizard-header {
        display: block;
    }

    .mxr-wizard-nav {
        display: flex;
    }

    .mxr-header-actions {
        display: none;
    }

    .mxr-step:not(.mxr-step--active) {
        display: none;
    }

    .mxr-row {
        grid-template-columns: 1fr;
    }

    .mxr-list-actions {
        display: none;
    }

    .mxr-list-row {
        cursor: pointer;
    }

    .mxr-detail-grid {
        grid-template-columns: 90px 1fr;
    }
}

/* --- App Shell (secure section) --- */

.app-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--plk-bg);
    color: var(--plk-text);
    font-family: Inter, 'Segoe UI', Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}

/* Sidebar */

.app-sidebar {
    width: var(--plk-sidebar-w);
    flex-shrink: 0;
    background: var(--plk-sidebar-bg);
    border-right: 1px solid var(--plk-sidebar-border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.app-sidebar-logo {
    height: var(--plk-topbar-h);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: #fff;
    border-bottom: 1px solid var(--plk-border);
}

.app-sidebar-logo a {
    display: block;
    line-height: 0;
}

.app-sidebar-logo .brand-logo img {
    filter: none;
}

.app-nav {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
}

.app-nav-section-label {
    padding: 16px 18px 8px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .13em;
    color: var(--plk-sidebar-label);
    text-transform: uppercase;
}

.app-nav > .app-nav-section-label:first-child {
    padding-top: 8px;
}

.app-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--plk-sidebar-item);
    transition: background .12s, color .12s;
    text-decoration: none;
    border-radius: 0;
    margin: 1px 8px;
    border-radius: var(--plk-r-input);
}

.app-nav-link:hover {
    background: var(--plk-row-hover);
    color: var(--plk-text);
}

.app-nav-link.active {
    background: var(--plk-sidebar-active-bg);
    color: var(--plk-sidebar-active-text);
    font-weight: 600;
}

.app-nav-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: .75;
}

.app-nav-link.active svg,
.app-nav-link:hover svg {
    opacity: 1;
}

/* Sidebar footer */

.app-sidebar-footer {
    padding: 14px;
    border-top: 1px solid var(--plk-border);
}

.app-sidebar-user-row {
    display: flex;
    align-items: center;
    gap: 11px;
}

.app-sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--plk-accent), var(--plk-accent-dark));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-sidebar-user-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--plk-sidebar-active-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-sidebar-user-role {
    font-size: 11.5px;
    color: var(--plk-sidebar-label);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-sidebar-signout-form {
    flex-shrink: 0;
    line-height: 0;
}

.btn-app-signout-icon {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plk-sidebar-label);
    transition: background .12s, color .12s;
}

.btn-app-signout-icon:hover {
    background: var(--plk-row-hover);
    color: var(--plk-text);
}

/* Topbar */

.app-topbar {
    height: var(--plk-topbar-h);
    background: var(--plk-card);
    border-bottom: 1px solid var(--plk-border);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 16px;
    flex-shrink: 0;
}

.app-topbar-titles {
    flex: 1;
    min-width: 0;
}

.app-topbar-section {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--plk-muted);
    line-height: 1;
    margin-bottom: 2px;
}

.app-topbar-page {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.3px;
    color: var(--plk-text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Notifications bell */

.app-notif-wrap {
    position: relative;
}

.btn-app-notif {
    width: 38px;
    height: 38px;
    border-radius: var(--plk-r-input);
    border: 1px solid var(--plk-border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--plk-secondary);
    transition: background .12s, color .12s;
    position: relative;
}

.btn-app-notif:hover {
    background: var(--plk-row-hover);
    color: var(--plk-text);
}

.btn-app-notif svg {
    width: 16px;
    height: 16px;
}

.app-notif-dot {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--plk-error);
    border: 1.5px solid var(--plk-card);
}

.app-notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-card);
    box-shadow: var(--plk-dropdown-shadow);
    z-index: 200;
    overflow: hidden;
    animation: plk-pop .15s ease-out;
}

.app-notif-header {
    padding: 14px 16px 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--plk-text);
    border-bottom: 1px solid var(--plk-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.app-notif-empty {
    padding: 28px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--plk-muted);
}

.app-notif-mark {
    border: 0;
    background: transparent;
    color: var(--plk-accent);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.app-notif-list {
    display: grid;
    gap: 0;
}

.app-notif-item {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--plk-row-border);
}

.app-notif-item:last-child {
    border-bottom: 0;
}

.app-notif-item-dot {
    width: 8px;
    height: 8px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--plk-border);
}

.app-notif-item--unread .app-notif-item-dot {
    background: var(--plk-accent);
}

.app-notif-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--plk-text);
}

.app-notif-body {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--plk-secondary);
}

.app-notif-time {
    margin-top: 5px;
    font-size: 11px;
    color: var(--plk-muted);
}

/* Quick Pay button */

.btn-quick-pay {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    height: 38px;
    background: var(--plk-accent);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    border: none;
    border-radius: var(--plk-r-input);
    cursor: pointer;
    text-decoration: none;
    transition: background .12s;
    white-space: nowrap;
}

.btn-quick-pay:hover {
    background: var(--plk-accent-dark);
    color: #fff;
}

.btn-quick-pay svg {
    width: 14px;
    height: 14px;
}

/* Topbar user chip */

.app-topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-topbar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--plk-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Main content area */

.app-content-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-main {
    flex: 1;
    overflow-y: auto;
    background: var(--plk-bg);
    scrollbar-width: thin;
    scrollbar-color: #C9D0D8 transparent;
}

.app-main::-webkit-scrollbar { width: 10px; }
.app-main::-webkit-scrollbar-track { background: transparent; }
.app-main::-webkit-scrollbar-thumb { background: #C9D0D8; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
.app-main::-webkit-scrollbar-thumb:hover { background: #AEB7C2; background-clip: content-box; }

/* --- Portal animations --- */

@keyframes plk-pop {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes plk-msg {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes plk-rise {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- App page content --- */

.app-page {
    padding: 26px 28px 40px;
    max-width: 1200px;
}

.app-page-header {
    margin-bottom: 24px;
}

.app-page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--plk-text);
    margin: 0 0 4px;
}

.app-page-sub {
    font-size: 14px;
    color: var(--plk-secondary);
    margin: 0;
}

.app-loading {
    font-size: 14px;
    color: var(--muted);
}

.app-notice {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid;
}

.app-notice-warn {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

/* --- Dashboard --- */

.dash-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dash-stat-card {
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-card);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--plk-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dash-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--plk-text);
    line-height: 1.1;
}

.dash-stat-alert {
    font-size: 12px;
    font-weight: 600;
    color: var(--plk-error);
}

.dash-link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.dash-link-card {
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-card);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}

.dash-link-card:hover {
    border-color: var(--plk-accent);
    box-shadow: 0 4px 16px rgba(18,157,227,.1);
}

.dash-link-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--plk-text);
}

.dash-link-card:hover .dash-link-title {
    color: var(--plk-accent);
}

.dash-link-desc {
    font-size: 13px;
    color: var(--plk-secondary);
}

.dash-section {
    margin-top: 8px;
}

.dash-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--plk-text);
    margin: 0 0 12px;
}

.dash-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.dash-date-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 8px 0 12px;
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-input);
}

.dash-date-label {
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--plk-muted);
    font-weight: 600;
    white-space: nowrap;
}

.dash-date-pill select {
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--plk-text);
    cursor: pointer;
    padding: 4px 2px;
}

.dash-toolbar-hint {
    font-size: 12.5px;
    color: var(--plk-muted);
}

.dash-toolbar-spacer {
    flex: 1;
}

.btn-dash-refresh {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-input);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--plk-secondary);
    cursor: pointer;
}

.btn-dash-refresh:hover {
    background: var(--plk-hover);
}

.dash-panel-header-sub {
    font-size: 12px;
    color: var(--plk-muted);
    margin: 2px 0 0;
}

.dash-bar-legend {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dash-bar-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--plk-secondary);
}

.dash-bar-legend i {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 3px;
    font-style: normal;
    flex-shrink: 0;
}

.dash-bar-legend .dash-dot-approved { background: #1F9D57; }
.dash-bar-legend .dash-dot-pending  { background: var(--plk-border); }

.dash-trend-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.dash-trend-card,
.dash-panel,
.dash-status-card {
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-card);
    animation: plk-rise .2s ease-out;
}

.dash-trend-card {
    display: flex;
    flex-direction: column;
    padding: 20px 22px;
    gap: 0;
}

.dash-trend-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.dash-trend-card-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.dash-trend-dot {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    flex-shrink: 0;
}

.dash-trend-value {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -1px;
    color: var(--plk-text);
}

.dash-trend-prev {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--plk-muted);
}

.dash-trend-prev-val {
    color: var(--plk-secondary);
    font-family: 'Inter', sans-serif;
}

.dash-trend-footer {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
}

.dash-delta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 7px;
}

.dash-delta--up {
    background: var(--plk-success-bg);
    color: #1F7A47;
}

.dash-delta--down {
    background: #FFF4E5;
    color: #9A5D12;
}

.dash-delta-period {
    font-size: 12px;
    color: var(--plk-muted);
}

.dash-sparkline {
    width: 92px;
    height: 40px;
    flex-shrink: 0;
}

.dash-analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
    gap: 16px;
    margin-bottom: 18px;
}

.dash-panel {
    padding: 18px 20px 20px;
}

.dash-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.dash-panel-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--plk-text);
}

.dash-panel-header span {
    font-size: 12px;
    color: var(--plk-muted);
}

.dash-bars {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: 14px;
    height: 210px;
}

.dash-bar-day {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 9px;
    height: 100%;
    text-align: center;
    font-size: 12px;
    color: var(--plk-muted);
}

.dash-bar-track {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 4px;
    min-height: 0;
    border-bottom: 1px solid var(--plk-row-border);
}

.dash-bar-track span {
    display: block;
    width: 14px;
    min-height: 10px;
    border-radius: 8px 8px 2px 2px;
}

.dash-bar-approved {
    background: var(--plk-accent);
}

.dash-bar-pending {
    background: rgba(18,157,227,.26);
}

.dash-mix-rows {
    display: flex;
    flex-direction: column;
}

.dash-mix-row {
    margin-bottom: 16px;
}

.dash-mix-row-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
    font-size: 13px;
    color: var(--plk-text);
    font-weight: 500;
}

.dash-mix-row-hd span:last-child {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--plk-secondary);
}

.dash-mix-track {
    height: 8px;
    border-radius: 5px;
    background: #EEF1F4;
    overflow: hidden;
}

.dash-mix-fill {
    height: 100%;
    border-radius: 5px;
}

.dash-approval-rate {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--plk-border);
}

.dash-approval-label {
    margin: 0;
    font-size: 12px;
    color: var(--plk-muted);
}

.dash-approval-value {
    margin: 6px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1F9D57;
    letter-spacing: -.5px;
}

.dash-recent-card {
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dash-recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--plk-border);
}

.dash-recent-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--plk-text);
}

.dash-recent-sub {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--plk-muted);
}

.btn-dash-viewall {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--plk-border);
    border-radius: 9px;
    background: var(--plk-card);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--plk-secondary);
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-dash-viewall:hover { background: var(--plk-row-hover); }

.dash-status-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.dash-status-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    min-width: 0;
}

.dash-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.dash-status-label {
    font-size: 12px;
    color: var(--plk-muted);
}

.dash-status-card strong {
    font-size: 15px;
    color: var(--plk-text);
}

.dash-status-card span:last-child {
    font-size: 12px;
    color: var(--plk-secondary);
}

@media (max-width: 900px) {
    .dash-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-link-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-trend-grid,
    .dash-analytics-grid,
    .pl-builder-layout {
        grid-template-columns: 1fr;
    }

    .dash-status-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pl-preview-card {
        position: static;
    }
}

@media (max-width: 560px) {
    .app-page {
        padding: 24px 16px;
    }

    .dash-stat-grid,
    .dash-link-grid,
    .dash-status-grid,
    .pl-amount-options,
    .pl-method-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile bottom nav --- */

.app-bottom-nav {
    display: none;
}

@media (max-width: 767px) {
    .app-sidebar {
        display: none;
    }

    .app-bottom-nav {
        display: block;
    }

    .app-main {
        padding-bottom: 64px;
    }

    /* Hidden checkbox toggle */
    .app-more-toggle {
        display: none;
    }

    /* Backdrop — closes the popup when tapped */
    .app-more-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        bottom: 60px;
        z-index: 49;
        background: rgba(0,0,0,.4);
    }

    .app-more-toggle:checked ~ .app-more-backdrop {
        display: block;
    }

    /* Popup panel */
    .app-more-popup {
        position: fixed;
        bottom: 60px;
        left: 0;
        right: 0;
        background: var(--ink);
        border-top: 1px solid rgba(255,255,255,.1);
        transform: translateY(100%);
        transition: transform .2s ease;
        z-index: 50;
    }

    .app-more-toggle:checked ~ .app-more-popup {
        transform: translateY(0);
    }

    .app-more-popup-inner {
        padding: 8px 0 12px;
    }

    .app-more-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 13px 20px;
        font-size: 15px;
        font-weight: 500;
        color: rgba(255,255,255,.75);
        text-decoration: none;
        transition: background .12s, color .12s;
        width: 100%;
        background: none;
        border: none;
        cursor: pointer;
        text-align: left;
    }

    .app-more-link:hover,
    .app-more-link.active {
        background: rgba(255,255,255,.06);
        color: #fff;
    }

    .app-more-link svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .app-more-link-signout {
        color: rgba(255,255,255,.5);
    }

    .app-more-divider {
        margin: 6px 20px;
        border-top: 1px solid rgba(255,255,255,.08);
    }

    .app-more-signout-form {
        margin: 0;
    }

    /* Bottom tab bar */
    .app-bottom-tabs {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: var(--ink);
        border-top: 1px solid rgba(255,255,255,.08);
        display: flex;
        z-index: 51;
    }

    .app-tab-link,
    .app-tab-more {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .02em;
        color: rgba(255,255,255,.5);
        text-decoration: none;
        cursor: pointer;
        transition: color .12s;
        padding: 0 4px;
    }

    .app-tab-link:hover,
    .app-tab-more:hover {
        color: rgba(255,255,255,.85);
    }

    .app-tab-link.active {
        color: var(--blue);
    }

    .app-more-toggle:checked ~ .app-bottom-tabs .app-tab-more {
        color: var(--blue);
    }

    .app-tab-link svg,
    .app-tab-more svg {
        width: 20px;
        height: 20px;
    }
}

/* ================================================================
   Merchant detail hub (mxd-*)
   ================================================================ */

.mxd-hub {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}

.mxd-hub-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}

.mxd-hub-card:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 16px rgba(18, 157, 227, .1);
}

.mxd-hub-card--primary {
    border-color: var(--blue);
    background: var(--soft);
}

.mxd-hub-card--primary:hover {
    background: #e8f6fd;
    box-shadow: 0 4px 20px rgba(18, 157, 227, .18);
}

.mxd-hub-icon {
    width: 40px;
    height: 40px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blue);
}

.mxd-hub-card--primary .mxd-hub-icon {
    background: rgba(18, 157, 227, .1);
    border-color: rgba(18, 157, 227, .2);
}

.mxd-hub-icon svg {
    width: 18px;
    height: 18px;
}

.mxd-hub-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 2px;
}

.mxd-hub-desc {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    line-height: 1.4;
}

/* Clickable list identity */
.mxr-list-identity--link {
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    transition: background .12s;
    padding: 4px 6px;
    margin: -4px -6px;
}

.mxr-list-identity--link:hover .mxr-list-name {
    color: var(--blue);
}

@media (max-width: 900px) {
    .mxd-hub {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .mxd-hub {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   Add Payment Method — modal overlay (apm-*)
   ================================================================ */

.apm-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px 40px;
    overflow-y: auto;
}

.apm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 23, 47, .5);
    backdrop-filter: blur(2px);
}

.apm-modal {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    background: var(--panel);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(16, 23, 47, .18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.apm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px 20px;
}

.apm-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.apm-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    color: var(--muted);
    transition: background .12s, color .12s;
    padding: 0;
    flex-shrink: 0;
}

.apm-close:hover {
    background: var(--soft);
    color: var(--ink);
}

.apm-close svg {
    width: 14px;
    height: 14px;
}

.apm-divider {
    height: 1px;
    background: var(--line);
}

/* Body sections */
.apm-body {
    padding: 22px 28px;
}

.apm-seg-wrap {
    padding-bottom: 0;
}

/* Segmented control */
.apm-seg {
    display: flex;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}

.apm-seg-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: background .12s, color .12s, box-shadow .12s;
    white-space: nowrap;
}

.apm-seg-btn:hover {
    color: var(--ink);
}

.apm-seg-btn--on {
    background: var(--panel);
    color: var(--ink);
    box-shadow: 0 1px 4px rgba(16, 23, 47, .1);
}

/* Tab panels — hidden by default, shown when active */
.apm-tab-panel {
    display: none;
}

.apm-tab-panel--active {
    display: block;
}

/* Toggle switch */
.apm-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 16px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    gap: 12px;
}

.apm-toggle-hidden {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.apm-toggle {
    width: 42px;
    height: 24px;
    border-radius: 12px;
    background: var(--line);
    position: relative;
    flex-shrink: 0;
    transition: background .18s;
}

.apm-toggle--on {
    background: var(--blue);
}

.apm-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
    transition: transform .18s;
}

.apm-toggle--on .apm-toggle-thumb {
    transform: translateX(18px);
}

/* Security note */
.apm-security-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 4px;
}

.apm-security-note svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Coming soon placeholder */
.apm-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 20px;
    gap: 8px;
    color: var(--muted);
}

.apm-coming-soon svg {
    width: 40px;
    height: 40px;
    color: var(--line);
    margin-bottom: 4px;
}

.apm-coming-soon p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.apm-coming-soon span {
    font-size: 13px;
}

/* Footer */
.apm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 28px;
}

/* Mobile: full-screen */
@media (max-width: 767px) {
    .apm-overlay {
        padding: 0;
        align-items: stretch;
    }

    .apm-backdrop {
        display: none;
    }

    .apm-modal {
        border-radius: 0;
        max-width: 100%;
        min-height: 100dvh;
        box-shadow: none;
    }

    .apm-footer {
        position: sticky;
        bottom: 0;
        background: var(--panel);
        border-top: 1px solid var(--line);
        flex-direction: column;
    }

    .apm-footer .btn-mxr-activate,
    .apm-footer .btn-mxr-draft {
        width: 100%;
        text-align: center;
    }
}

/* ================================================================
   Virtual Terminal (vt-*)
   ================================================================ */

.vt-page {
    max-width: 1100px;
}

.vt-layout {
    display: grid;
    grid-template-columns: minmax(0, 680px) 360px;
    gap: 28px;
    align-items: start;
}

.vt-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.vt-assistant {
    position: sticky;
    top: 90px;
}

/* Result banner */
.vt-result {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid;
}

.vt-result--approved {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.vt-result--declined {
    background: #fef2f2;
    border-color: #fecaca;
}

.vt-result-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vt-result--approved .vt-result-icon {
    background: #dcfce7;
    color: #16a34a;
}

.vt-result--declined .vt-result-icon {
    background: #fee2e2;
    color: #dc2626;
}

.vt-result-icon svg {
    width: 18px;
    height: 18px;
}

.vt-result-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vt-result-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.vt-result-msg {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.vt-result-ref {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    font-family: monospace;
}

/* Amount input */
.vt-amount-wrap {
    position: relative;
}

.vt-amount-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 14px;
    pointer-events: none;
}

.vt-amount-input {
    padding-left: 24px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

/* Fee totals */
.vt-totals {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.vt-totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
}

.vt-totals-row--total {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    padding-top: 6px;
    border-top: 1px solid var(--line);
    margin-top: 2px;
}

/* Charge button */
.vt-charge-btn {
    width: 100%;
    padding: 15px 24px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
    letter-spacing: .01em;
}

.vt-charge-btn:hover:not(:disabled) {
    background: var(--blue-dark);
    box-shadow: 0 4px 16px rgba(18, 157, 227, .25);
}

.vt-charge-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .vt-layout {
        grid-template-columns: 1fr;
    }

    .vt-assistant {
        position: static;
    }
}

/* ── VT Wizard ──────────────────────────────────────────────────────── */

.vt-wizard-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 22px;
    align-items: start;
}

.vt-wizard-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Stepper */
.vt-stepper-card {
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-card);
    padding: 22px 26px;
}

.vt-stepper {
    display: flex;
    align-items: center;
}

.vt-step {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.vt-step-inner {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.vt-step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    background: var(--plk-bg);
    border: 2px solid var(--plk-border);
    color: var(--plk-muted);
    transition: background .2s, border-color .2s, color .2s;
}

.vt-step--done .vt-step-circle {
    background: var(--plk-accent);
    border-color: var(--plk-accent);
    color: #fff;
}

.vt-step--current .vt-step-circle {
    background: var(--plk-accent);
    border-color: var(--plk-accent);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(35,118,245,.14);
}

.vt-step-num {
    margin: 0;
    font-size: 10.5px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--plk-muted);
    font-weight: 600;
}

.vt-step-label {
    margin: 1px 0 0;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--plk-muted);
    transition: color .2s;
}

.vt-step--done .vt-step-label,
.vt-step--current .vt-step-label {
    color: var(--plk-text);
}

.vt-step-connector {
    flex: 1;
    height: 2px;
    margin: 0 16px;
    background: var(--plk-border);
    border-radius: 2px;
    transition: background .25s;
}

.vt-step-connector--done {
    background: var(--plk-accent);
}

/* Step card headings */
.vt-step-heading {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--plk-text);
}

.vt-step-sub {
    margin: 0 0 22px;
    font-size: 13px;
    color: var(--plk-muted);
}

/* Tab group (Existing / New) */
.vt-tab-group {
    display: flex;
    background: var(--plk-bg);
    border: 1px solid var(--plk-border);
    border-radius: 11px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 22px;
}

.vt-tab {
    flex: 1;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--plk-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
}

.vt-tab--active {
    background: #fff;
    color: var(--plk-text);
    box-shadow: 0 1px 3px rgba(16,21,27,.09);
}

/* Payor detail grid */
.vt-payor-detail-grid,
.vt-new-payor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.vt-save-payor-check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--plk-secondary);
    cursor: pointer;
}

/* Cart items */
.vt-cart-item {
    position: relative;
    border: 1px solid var(--plk-border);
    border-radius: 11px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.vt-cart-item-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: end;
}

.vt-cart-amount {
    height: 42px;
    display: flex;
    align-items: center;
    padding: 0 13px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--plk-text);
}

.vt-cart-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    color: var(--plk-muted);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s, color .12s;
}

.vt-cart-remove:hover {
    background: #FEF2F2;
    color: #E5484D;
}

.btn-vt-add-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    width: 100%;
    border: 1.5px dashed var(--plk-border-heavy, #C9D0D8);
    background: var(--plk-bg);
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--plk-secondary);
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

.btn-vt-add-item:hover {
    border-color: var(--plk-accent);
    color: var(--plk-accent);
}

/* Payment mode cards */
.vt-payment-mode-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
}

.vt-pay-mode-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--plk-border);
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color .15s, background .15s;
}

.vt-pay-mode-card--selected {
    border-color: var(--plk-accent);
    background: #F0F5FF;
}

.vt-pay-mode-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--plk-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s;
}

.vt-pay-mode-radio--on {
    border-color: var(--plk-accent);
    background: radial-gradient(circle, var(--plk-accent) 5px, transparent 6px);
}

.vt-pay-mode-title {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--plk-text);
}

.vt-pay-mode-hint {
    display: block;
    font-size: 11.5px;
    color: var(--plk-muted);
}

/* Recurring schedule */
.vt-recur-schedule {
    background: var(--plk-bg);
    border: 1px solid var(--plk-border);
    border-radius: 12px;
    padding: 18px 18px 20px;
    margin-bottom: 22px;
}

.vt-recur-schedule-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--plk-text);
    color: var(--plk-accent);
}

.vt-recur-end-options {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 8px;
}

.vt-recur-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--plk-text);
    user-select: none;
}

.vt-radio-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid var(--plk-border);
    transition: border-color .15s;
}

.vt-radio-dot--on {
    border: 5px solid var(--plk-accent);
}

.vt-recur-count-input {
    width: 58px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--plk-border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    text-align: center;
    outline: none;
}

.vt-recur-count-input:focus {
    border-color: var(--plk-accent);
}

/* Wizard nav */
.vt-wizard-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.btn-vt-reset {
    height: 46px;
    padding: 0 22px;
    border: 1px solid #F0C2C4;
    background: #fff;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: #E5484D;
    cursor: pointer;
    transition: background .12s;
}

.btn-vt-reset:hover {
    background: #FEF2F2;
}

.btn-vt-prev {
    height: 46px;
    padding: 0 26px;
    border: 1px solid var(--plk-border);
    background: #fff;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--plk-secondary);
    cursor: pointer;
    transition: background .12s;
}

.btn-vt-prev:hover:not(:disabled) {
    background: var(--plk-hover);
}

.btn-vt-next {
    height: 46px;
    padding: 0 30px;
    border: none;
    background: var(--plk-accent);
    border-radius: 10px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
}

.btn-vt-next:hover:not(:disabled) {
    background: var(--plk-accent-dark);
    box-shadow: 0 4px 14px rgba(35,118,245,.25);
}

.btn-vt-next:disabled,
.btn-vt-prev:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* Receipt */
.vt-receipt {
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16,21,27,.05);
}

.vt-receipt-header {
    padding: 32px 28px 26px;
    text-align: center;
}

.vt-receipt-header--approved {
    background: linear-gradient(180deg, #EDFAF3, #fff);
}

.vt-receipt-header--declined {
    background: linear-gradient(180deg, #FEF2F2, #fff);
}

.vt-receipt-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.vt-receipt-check-icon--approved {
    background: #1F9D57;
    box-shadow: 0 8px 22px rgba(31,157,87,.3);
}

.vt-receipt-check-icon--declined {
    background: #E5484D;
    box-shadow: 0 8px 22px rgba(229,72,77,.25);
}

.vt-receipt-heading {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--plk-text);
    letter-spacing: -.2px;
}

.vt-receipt-ref {
    margin: 7px 0 0;
    font-size: 12.5px;
    color: var(--plk-muted);
}

.vt-receipt-amount {
    margin: 18px 0 0;
    font-size: 40px;
    font-weight: 700;
    color: var(--plk-text);
    font-family: 'Inter', sans-serif;
    letter-spacing: -1.2px;
}

.vt-receipt-method {
    margin: 5px 0 0;
    font-size: 12.5px;
    color: var(--plk-muted);
}

.vt-receipt-tear {
    height: 18px;
    background: radial-gradient(circle at 9px -3px, transparent 9px, #fff 10px) repeat-x;
    background-size: 18px 18px;
    border-top: 1px dashed #DCE3E8;
}

.vt-receipt-body {
    padding: 8px 30px 26px;
}

.vt-receipt-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 30px;
    margin-bottom: 22px;
}

.vt-receipt-meta-label {
    margin: 0;
    font-size: 10.5px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--plk-muted);
    font-weight: 600;
}

.vt-receipt-meta-value {
    margin: 5px 0 0;
    font-size: 13.5px;
    color: var(--plk-text);
    font-weight: 500;
}

.vt-receipt-items {
    border-top: 1px solid var(--plk-border);
    padding-top: 16px;
}

.vt-receipt-item-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--plk-secondary);
}

.vt-receipt-item-qty {
    color: var(--plk-muted);
}

.vt-receipt-subtotal-row {
    display: flex;
    justify-content: space-between;
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid var(--plk-border);
    font-size: 13px;
    color: var(--plk-secondary);
}

.vt-receipt-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 13px;
    padding-top: 13px;
    border-top: 2px solid var(--plk-border);
}

.vt-receipt-total-row span:first-child {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--plk-text);
}

.vt-receipt-total-row span:last-child {
    font-size: 20px;
    font-weight: 700;
    color: #1F9D57;
    font-family: 'Inter', sans-serif;
    letter-spacing: -.5px;
}

.vt-receipt-actions {
    display: flex;
    gap: 10px;
    padding: 18px 30px;
    border-top: 1px solid var(--plk-border);
    background: var(--plk-bg);
}

.btn-vt-new-payment {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: var(--plk-accent);
    color: #fff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s;
}

.btn-vt-new-payment:hover {
    background: var(--plk-accent-dark);
}

.btn-vt-secondary {
    height: 44px;
    padding: 0 18px;
    border: 1px solid var(--plk-border);
    border-radius: 10px;
    background: #fff;
    color: var(--plk-secondary);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .12s;
}

.btn-vt-secondary:hover {
    background: var(--plk-hover);
}

/* Order summary sidebar */
.vt-order-sidebar {
    position: sticky;
    top: 80px;
}

.vt-order-card {
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-card);
    overflow: hidden;
}

.vt-order-card-header {
    padding: 16px 22px;
    background: var(--plk-accent);
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #fff;
    text-transform: uppercase;
}

.vt-order-card-body {
    padding: 20px 22px;
}

.vt-order-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 11px;
}

.vt-order-label {
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--plk-muted);
    font-weight: 600;
}

.vt-order-value {
    font-size: 12.5px;
    color: var(--plk-text);
    font-weight: 500;
    text-align: right;
}

.vt-order-divider {
    height: 1px;
    background: var(--plk-border);
    margin: 14px 0;
}

.vt-order-item-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 9px;
    font-size: 13px;
    color: var(--plk-secondary);
}

.vt-order-item-qty {
    color: var(--plk-muted);
}

.vt-order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px solid var(--plk-border);
}

.vt-order-total-row span:first-child {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--plk-text);
}

.vt-order-total-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--plk-accent);
    font-family: 'Inter', sans-serif;
    letter-spacing: -.5px;
}

.vt-order-recur-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 12px;
    background: #EAF1FB;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #3A6FA0;
}

.vt-order-secure-note {
    display: flex;
    gap: 11px;
    margin-top: 14px;
    padding: 14px 18px;
    background: #EAF6EE;
    border: 1px solid #CDEBD8;
    border-radius: 12px;
}

.vt-order-secure-note p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #1F7A47;
}

@media (max-width: 1000px) {
    .vt-wizard-layout {
        grid-template-columns: 1fr;
    }
    .vt-order-sidebar {
        position: static;
    }
}

/* Bootstrap bridge — aligns existing Bootstrap UI with portal design tokens */

.app-page .form-control,
.app-page .form-select {
    border-color: var(--plk-border);
    border-radius: var(--plk-r-input);
    color: var(--plk-text);
    background: var(--plk-bg);
    font-family: inherit;
}

.app-page .form-control:focus,
.app-page .form-select:focus {
    border-color: var(--plk-accent);
    box-shadow: 0 0 0 3px rgba(18,157,227,.12);
}

.app-page .form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--plk-text);
    margin-bottom: 5px;
}

.app-page .btn-primary,
.app-page .btn-sm.btn-primary {
    background: var(--plk-accent);
    border-color: var(--plk-accent);
    border-radius: var(--plk-r-pill);
    font-weight: 600;
    font-family: inherit;
}

.app-page .btn-primary:hover,
.app-page .btn-sm.btn-primary:hover {
    background: var(--plk-accent-dark, #0d8ecd);
    border-color: var(--plk-accent-dark, #0d8ecd);
}

.app-page .btn-outline-secondary {
    border-color: var(--plk-border);
    color: var(--plk-secondary);
    border-radius: var(--plk-r-pill);
    font-family: inherit;
}

.app-page .btn-outline-secondary:hover {
    background: var(--plk-row-hover);
    color: var(--plk-text);
    border-color: var(--plk-border);
}

.app-page .btn-secondary {
    background: var(--plk-row-hover);
    border-color: var(--plk-border);
    color: var(--plk-text);
    border-radius: var(--plk-r-pill);
    font-family: inherit;
}

.app-page .alert {
    border-radius: var(--plk-r-card);
    border: 1px solid;
    font-size: 13.5px;
}

.app-page .alert-danger {
    background: #FEF2F2;
    border-color: #FECACA;
    color: var(--plk-error);
}

.app-page .alert-success {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: var(--plk-success);
}

.app-page .alert-warning {
    background: #FFFBEB;
    border-color: #FDE68A;
    color: var(--plk-warning);
}

.app-page h1.h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--plk-text);
}

.app-page .card {
    background: var(--plk-card);
    border-color: var(--plk-border);
    border-radius: var(--plk-r-card);
}

.app-page .text-muted {
    color: var(--plk-secondary) !important;
}

.app-notice {
    padding: 12px 14px;
    border-radius: var(--plk-r-card);
    font-size: 13.5px;
    margin-bottom: 16px;
    border: 1px solid;
}

.app-notice-warn {
    background: #FFFBEB;
    border-color: #FDE68A;
    color: #92400E;
}

.app-notice-ok {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #065F46;
}

/* --- My Profile page --- */

.profile-card {
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: 14px;
    padding: 24px 26px;
    margin-bottom: 18px;
}

.profile-card--identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--plk-muted);
    margin-bottom: 18px;
}

.profile-breadcrumb-back {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--plk-secondary);
    cursor: pointer;
}

.profile-breadcrumb-back:hover { color: var(--plk-accent); }

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #129de3, #087ec3);
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-identity-text { flex: 1; min-width: 0; }

.profile-display-name {
    font-size: 19px;
    font-weight: 600;
    color: var(--plk-text);
    margin: 0;
}

.profile-email {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: var(--plk-muted);
}

.profile-edit-title {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    color: var(--plk-text);
}

.profile-edit-sub {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: var(--plk-muted);
}

.btn-profile-edit {
    height: 40px;
    padding: 0 18px;
    border: 1px solid var(--plk-border);
    border-radius: 10px;
    background: var(--plk-card);
    color: var(--plk-secondary);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
}

.btn-profile-edit:hover { background: var(--plk-row-hover); }

.profile-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 28px;
}

.profile-detail-label {
    margin: 0;
    font-size: 11px;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--plk-muted);
    font-weight: 600;
}

.profile-detail-value {
    margin: 5px 0 0;
    font-size: 13.5px;
    color: var(--plk-text);
}

.profile-detail-value--enabled {
    color: #1F7A47;
    font-weight: 600;
}

.profile-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--plk-text);
    margin: 0 0 18px;
}

.profile-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--plk-border);
}

.btn-profile-cancel {
    height: 42px;
    padding: 0 20px;
    border: 1px solid var(--plk-border);
    border-radius: 10px;
    background: var(--plk-card);
    color: var(--plk-secondary);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.btn-profile-cancel:hover { background: var(--plk-row-hover); }

.profile-section {
    padding: 22px 0;
    border-top: 1px solid var(--plk-border);
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.profile-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.profile-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--plk-text);
}

.profile-input {
    height: 40px;
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-input);
    padding: 0 12px;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--plk-text);
    background: var(--plk-bg);
    outline: none;
    transition: border-color .12s;
    box-sizing: border-box;
    width: 100%;
}

.profile-input:focus { border-color: var(--plk-accent); }
.profile-input:disabled { background: var(--plk-row-hover); color: var(--plk-muted); cursor: not-allowed; }

.btn-profile-save {
    height: 36px;
    padding: 0 20px;
    background: var(--plk-accent);
    color: #fff;
    border: none;
    border-radius: var(--plk-r-pill);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .12s;
    margin-top: 4px;
}

.btn-profile-save:hover:not(:disabled) { background: var(--plk-accent-dark, #0d8ecd); }
.btn-profile-save:disabled { opacity: .6; cursor: not-allowed; }

.profile-card .profile-field-row { margin-bottom: 14px; }
.profile-card .profile-field { margin-bottom: 14px; }

/* --- Manage Team page --- */

.team-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.team-page-sub {
    margin: 0;
    font-size: 13.5px;
    color: var(--plk-muted);
}

.btn-team-invite {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    background: var(--plk-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-team-invite:hover { background: var(--plk-accent-dark, #0d8ecd); color: #fff; }

.team-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    gap: 10px;
    text-align: center;
    color: var(--plk-secondary);
}

.team-empty svg { width: 48px; height: 48px; color: var(--plk-border); margin-bottom: 8px; }
.team-empty h2 { font-size: 18px; font-weight: 700; color: var(--plk-text); margin: 0; }
.team-empty p { font-size: 14px; margin: 0; }

.team-table-card {
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: 14px;
    overflow: hidden;
}

.team-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.team-thead-row { background: #FBFCFD; }

.team-th {
    text-align: left;
    padding: 13px 20px;
    font-size: 11px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--plk-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--plk-border);
    white-space: nowrap;
}

.team-row:hover { background: var(--plk-row-hover); }

.team-td {
    padding: 13px 20px;
    border-bottom: 1px solid #F2F4F7;
    color: var(--plk-secondary);
}

.team-td--muted { color: var(--plk-secondary); }
.team-td--actions { text-align: right; }

.team-name-cell {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.team-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #EEF1F4;
    color: var(--plk-secondary);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.team-name {
    font-weight: 600;
    color: var(--plk-text);
}

.team-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px 4px 9px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 600;
}

.team-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.team-badge--active  { background: #ECFDF3; color: #1F7A47; }
.team-badge--active .team-badge-dot  { background: #34C679; }
.team-badge--pending { background: #FFFBEB; color: #92400E; }
.team-badge--pending .team-badge-dot { background: #F59E0B; }

.btn-team-edit {
    height: 32px;
    padding: 0 14px;
    border: 1px solid var(--plk-border);
    border-radius: 8px;
    background: var(--plk-card);
    color: var(--plk-secondary);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.btn-team-edit:hover { background: var(--plk-row-hover); }

/* --- Payment Links page --- */

.pl-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.pl-toolbar-sub {
    margin: 0;
    font-size: 13px;
    color: var(--plk-secondary);
}

.pl-form-head {
    margin-bottom: 16px;
}

.pl-form-head-title {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 700;
    color: var(--plk-text);
    letter-spacing: -.3px;
}

.pl-form-head-sub {
    margin: 0;
    font-size: 13px;
    color: var(--plk-secondary);
}

.btn-pl-new {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    background: var(--plk-accent);
    color: #fff;
    border: none;
    border-radius: var(--plk-r-pill);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .12s;
}

.btn-pl-new svg { width: 12px; height: 12px; }
.btn-pl-new:hover { background: var(--plk-accent-dark, #0d8ecd); }

.pl-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    gap: 10px;
    text-align: center;
    color: var(--plk-secondary);
}

.pl-empty svg { width: 48px; height: 48px; color: var(--plk-border); margin-bottom: 8px; }
.pl-empty h2 { font-size: 18px; font-weight: 700; color: var(--plk-text); margin: 0; }
.pl-empty p { font-size: 14px; margin: 0 0 12px; max-width: 360px; }

.pl-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pl-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-card);
    transition: border-color .12s;
}

.pl-card:hover { border-color: var(--plk-accent); }

.pl-card-info { flex: 1; min-width: 0; }

.pl-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--plk-text);
    margin-bottom: 2px;
}

.pl-card-desc {
    font-size: 12.5px;
    color: var(--plk-secondary);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pl-card-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pl-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--plk-r-pill);
    font-size: 11.5px;
    font-weight: 600;
    background: #EAF4FC;
    color: var(--plk-accent);
}

.pl-badge--neutral { background: var(--plk-row-hover); color: var(--plk-secondary); }
.pl-badge--error { background: #FEF2F2; color: var(--plk-error); }

.pl-card-slug {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--plk-muted);
    font-family: monospace;
    flex-shrink: 0;
    max-width: 220px;
}

.pl-card-slug span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-pl-copy {
    flex-shrink: 0;
    padding: 3px 10px;
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-pill);
    background: #fff;
    color: var(--plk-accent);
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .12s;
}

.btn-pl-copy:hover {
    border-color: var(--plk-accent);
}

.btn-pl-deactivate {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--plk-border);
    border-radius: 50%;
    color: var(--plk-muted);
    cursor: pointer;
    transition: background .12s, color .12s;
    flex-shrink: 0;
}

.btn-pl-deactivate svg { width: 12px; height: 12px; }
.btn-pl-deactivate:hover { background: #FEF2F2; color: var(--plk-error); border-color: var(--plk-error); }

/* Create form */

.pl-form-card {
    max-width: 600px;
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-card);
    padding: 24px;
}

.pl-form-card--wide {
    max-width: 980px;
}

.pl-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.pl-form-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--plk-text);
    margin: 0;
}

.btn-pl-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--plk-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: background .12s;
}

.btn-pl-close svg { width: 12px; height: 12px; }
.btn-pl-close:hover { background: var(--plk-row-hover); color: var(--plk-text); }

.pl-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.pl-field--check { justify-content: flex-end; }

.pl-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pl-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--plk-text);
}

.pl-input {
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-input);
    padding: 9px 12px;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--plk-text);
    background: var(--plk-bg);
    outline: none;
    transition: border-color .12s;
    width: 100%;
    box-sizing: border-box;
}

.pl-input:focus { border-color: var(--plk-accent); }
.pl-input[rows] { resize: vertical; }
.pl-input[type="number"] { width: 100%; }

.pl-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--plk-secondary);
    cursor: pointer;
}

.pl-checkbox-label--standalone {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-input);
    background: var(--plk-bg);
}

.pl-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-pl-create {
    height: 38px;
    padding: 0 22px;
    background: var(--plk-accent);
    color: #fff;
    border: none;
    border-radius: var(--plk-r-pill);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .12s;
}

.btn-pl-create:hover:not(:disabled) { background: var(--plk-accent-dark, #0d8ecd); }
.btn-pl-create:disabled { opacity: .6; cursor: not-allowed; }

.btn-pl-cancel {
    height: 38px;
    padding: 0 18px;
    background: none;
    color: var(--plk-secondary);
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-pill);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background .12s;
}

.btn-pl-cancel:hover { background: var(--plk-row-hover); }

.pl-builder-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.pl-builder-form {
    min-width: 0;
}

.pl-amount-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pl-amount-option {
    display: grid;
    gap: 3px;
    min-height: 74px;
    padding: 12px 14px;
    text-align: left;
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-input);
    background: var(--plk-card);
    color: var(--plk-text);
    font-family: inherit;
    cursor: pointer;
    transition: border-color .12s, box-shadow .12s, background .12s;
}

.pl-amount-option:hover,
.pl-amount-option--active {
    border-color: var(--plk-accent);
    box-shadow: 0 2px 12px rgba(18,157,227,.1);
}

.pl-amount-option--active {
    background: #EAF4FC;
}

.pl-amount-option span {
    font-size: 13px;
    font-weight: 700;
}

.pl-amount-option small {
    font-size: 12px;
    line-height: 1.35;
    color: var(--plk-secondary);
}

.pl-method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.pl-method-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-input);
    background: var(--plk-bg);
    color: var(--plk-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.pl-method-toggle:has(input:checked) {
    border-color: var(--plk-accent);
    background: #EAF4FC;
    color: var(--plk-text);
}

.pl-preview-card {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-card);
    overflow: hidden;
    background: #fff;
}

.pl-preview-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--plk-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.pl-preview-bar svg { flex-shrink: 0; opacity: .9; }

.pl-preview-body {
    display: grid;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(180deg, #fff, #FBFCFD);
}

.pl-preview-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--plk-text);
}

.pl-preview-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--plk-secondary);
}

.pl-preview-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--plk-text);
}

.pl-preview-url {
    padding: 9px 10px;
    border-radius: var(--plk-r-input);
    background: var(--plk-bg);
    color: var(--plk-accent);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.pl-preview-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pl-preview-methods span,
.pl-preview-note {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 0 8px;
    border-radius: var(--plk-r-pill);
    background: var(--plk-row-hover);
    color: var(--plk-secondary);
    font-size: 11.5px;
    font-weight: 600;
}

.pl-preview-note {
    justify-self: start;
    background: #EAF4FC;
    color: var(--plk-accent);
}

.pl-qr {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 3px;
    width: 154px;
    height: 154px;
    padding: 10px;
    border: 1px solid var(--plk-border);
    border-radius: 12px;
    background: #fff;
}

.pl-qr span {
    border-radius: 2px;
    background: #EEF1F4;
}

.pl-qr .pl-qr-cell--on {
    background: var(--plk-text);
}

/* --- Quick Pay page --- */

.qp-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    gap: 16px;
    color: var(--plk-secondary);
    font-size: 14px;
}

.qp-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--plk-border);
    border-top-color: var(--plk-accent);
    border-radius: 50%;
    animation: qp-spin .7s linear infinite;
}

@keyframes qp-spin { to { transform: rotate(360deg); } }

.qp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    gap: 12px;
    text-align: center;
    color: var(--plk-secondary);
}

.qp-empty svg {
    width: 48px;
    height: 48px;
    color: var(--plk-border);
    margin-bottom: 8px;
}

.qp-empty h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--plk-text);
    margin: 0;
}

.qp-empty p {
    font-size: 14px;
    margin: 0;
    max-width: 360px;
}

.qp-merchant-picker {
    max-width: 560px;
}

.qp-picker-header {
    margin-bottom: 20px;
}

.qp-picker-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--plk-text);
    margin: 0 0 6px;
}

.qp-picker-sub {
    font-size: 14px;
    color: var(--plk-secondary);
    margin: 0;
}

.qp-merchant-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qp-merchant-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-card);
    cursor: pointer;
    text-align: left;
    transition: border-color .12s, box-shadow .12s;
    width: 100%;
}

.qp-merchant-card:hover {
    border-color: var(--plk-accent);
    box-shadow: 0 2px 12px rgba(18,157,227,.1);
}

.qp-merchant-initials {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #EAF4FC;
    color: var(--plk-accent);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qp-merchant-info {
    flex: 1;
    min-width: 0;
}

.qp-merchant-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--plk-text);
}

.qp-merchant-arrow {
    width: 16px;
    height: 16px;
    color: var(--plk-muted);
    flex-shrink: 0;
}

/* --- Transaction Search page --- */

.txs-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.txs-quick-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: 9px;
    min-width: 240px;
}

.txs-quick-input {
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    color: var(--plk-text);
    width: 100%;
}

.txs-quick-input::placeholder { color: var(--plk-muted); }

.btn-txs-clear {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--plk-secondary);
    cursor: pointer;
    flex-shrink: 0;
}

.btn-txs-clear:hover { background: var(--plk-row-hover); }

.txs-filter-hint {
    font-size: 12px;
    color: var(--plk-muted);
    align-self: center;
}

.txs-filter-spacer { flex: 1; }

.btn-txs-export {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--plk-secondary);
    cursor: pointer;
    flex-shrink: 0;
}

.btn-txs-export:hover { background: var(--plk-row-hover); }

.btn-txs-refresh {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    background: var(--plk-accent);
    border: none;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-txs-refresh:hover { background: var(--plk-accent-dark, #0d8ecd); }

.txs-card {
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.txs-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--plk-border);
}

.txs-card-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.txs-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--plk-text);
}

.txs-card-sub {
    font-size: 12.5px;
    color: var(--plk-muted);
}

.txs-grid {
    height: 560px;
    width: 100%;
}

/* --- Recurring page --- */

.recur-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.recur-page-sub {
    margin: 0;
    font-size: 13.5px;
    color: var(--plk-muted);
}

.btn-recur-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border: none;
    border-radius: 10px;
    background: var(--plk-accent);
    color: #fff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-recur-new:hover { background: var(--plk-accent-dark, #0d8ecd); color: #fff; }

.recur-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.recur-stat-card {
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: 13px;
    padding: 16px 18px;
}

.recur-stat-label {
    margin: 0;
    font-size: 11px;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--plk-muted);
    font-weight: 600;
}

.recur-stat-value {
    margin: 9px 0 2px;
    font-size: 26px;
    font-weight: 700;
    color: var(--plk-text);
    font-family: 'Inter', sans-serif;
    letter-spacing: -.6px;
}

.recur-stat-value--active { color: #1F7A47; }
.recur-stat-value--fail { color: #C8372D; }

.recur-stat-sub {
    margin: 0;
    font-size: 12px;
    color: #A8B2BD;
}

.recur-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.recur-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 13px;
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: 10px;
    min-width: 260px;
}

.recur-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--plk-text);
    width: 100%;
}

.recur-search-input::placeholder { color: var(--plk-muted); }

.recur-status-wrap {
    position: relative;
}

.recur-status-select {
    height: 40px;
    padding: 0 38px 0 14px;
    border: 1px solid var(--plk-border);
    border-radius: 10px;
    background: var(--plk-card);
    font-family: inherit;
    font-size: 13.5px;
    color: var(--plk-text);
    appearance: none;
    cursor: pointer;
    outline: none;
}

.recur-status-select:focus { border-color: var(--plk-accent); }

.recur-status-chevron {
    position: absolute;
    right: 13px;
    top: 13px;
    pointer-events: none;
}

.recur-table-card {
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: 14px;
    overflow: hidden;
}

.recur-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.recur-thead-row { background: #FBFCFD; }

.recur-th {
    text-align: left;
    padding: 13px 20px;
    font-size: 11px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--plk-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--plk-border);
    white-space: nowrap;
}

.recur-th--right { text-align: right; }

.recur-row:hover { background: var(--plk-row-hover); }

.recur-td {
    padding: 13px 20px;
    border-bottom: 1px solid #F2F4F7;
    color: var(--plk-secondary);
}

.recur-td--name { font-weight: 600; color: var(--plk-text); }
.recur-td--amount { text-align: right; font-family: 'Inter', sans-serif; font-weight: 600; color: var(--plk-text); }
.recur-td--mono { font-family: 'Inter', sans-serif; font-size: 12.5px; }
.recur-td--actions { text-align: right; }
.recur-td--empty { text-align: center; color: var(--plk-muted); padding: 40px 20px; }

.recur-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px 4px 9px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 600;
}

.recur-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.recur-badge--active   { background: #ECFDF3; color: #1F7A47; }
.recur-badge--active .recur-badge-dot   { background: #34C679; }
.recur-badge--paused   { background: #FFFBEB; color: #92400E; }
.recur-badge--paused .recur-badge-dot  { background: #F59E0B; }
.recur-badge--completed { background: #F3F4F6; color: #374151; }
.recur-badge--completed .recur-badge-dot { background: #9CA3AF; }
.recur-badge--cancelled { background: #F3F4F6; color: #374151; }
.recur-badge--cancelled .recur-badge-dot { background: #9CA3AF; }
.recur-badge--failed   { background: #FEF2F2; color: #C8372D; }
.recur-badge--failed .recur-badge-dot  { background: #EF4444; }

.btn-recur-view {
    height: 32px;
    padding: 0 14px;
    border: 1px solid var(--plk-border);
    border-radius: 8px;
    background: var(--plk-card);
    color: var(--plk-secondary);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-recur-view:hover { background: var(--plk-row-hover); }

.recur-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.btn-recur-page {
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--plk-border);
    border-radius: 8px;
    background: var(--plk-card);
    color: var(--plk-secondary);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.btn-recur-page:disabled { opacity: .4; cursor: default; }

.recur-page-label {
    font-size: 13px;
    color: var(--plk-muted);
}

/* --- Linksy Assistant page --- */

.assistant-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 28px 32px;
    min-height: 100%;
    box-sizing: border-box;
}

.assistant-card {
    width: 100%;
    max-width: 880px;
    height: calc(100vh - 64px - 56px);
    background: var(--plk-card);
    border-radius: var(--plk-r-card);
    border: 1px solid var(--plk-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Card header */

.assistant-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--plk-border);
    flex-shrink: 0;
}

.assistant-header-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.assistant-header-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.assistant-header-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #E2EFF8;
    display: block;
}

.assistant-online-dot {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #a9d80f;
    border: 2px solid #fff;
}

.assistant-header-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.assistant-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--plk-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.assistant-ai-badge {
    display: inline-block;
    background: #a9d80f;
    color: #10172f;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    letter-spacing: .05em;
}

.assistant-subtitle {
    font-size: 13px;
    color: var(--plk-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 3px;
}

.btn-assistant-clear {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 15px;
    font-size: 13px;
    font-weight: 600;
    color: var(--plk-secondary);
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: 10px;
    font-family: inherit;
    cursor: pointer;
    transition: background .12s, color .12s;
    flex-shrink: 0;
}

.btn-assistant-clear:hover {
    background: var(--plk-row-hover);
    color: var(--plk-text);
}

/* Thread */

.assistant-thread {
    flex: 1;
    overflow-y: auto;
    background: #F6F8FA;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: #C9D0D8 transparent;
}

.assistant-thread::-webkit-scrollbar { width: 8px; }
.assistant-thread::-webkit-scrollbar-thumb { background: #C9D0D8; border-radius: 6px; }

/* Empty state */

.assistant-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 32px 20px 16px;
    text-align: center;
}

.assistant-empty-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(18,157,227,.32);
    margin-bottom: 20px;
}

.assistant-empty-greeting {
    font-size: 22px;
    font-weight: 700;
    color: var(--plk-text);
    margin: 0 0 10px;
}

.assistant-empty-hint {
    font-size: 14px;
    color: var(--plk-secondary);
    margin: 0 0 24px;
    line-height: 1.5;
}

.assistant-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 560px;
}

.assistant-chip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-card);
    cursor: pointer;
    text-align: left;
    transition: border-color .12s, box-shadow .12s;
}

.assistant-chip:hover {
    border-color: var(--plk-accent);
    box-shadow: 0 2px 12px rgba(18,157,227,.1);
}

.assistant-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--plk-accent);
    flex-shrink: 0;
    margin-top: 3px;
}

.assistant-chip-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--plk-text);
    margin-bottom: 2px;
}

.assistant-chip-hint {
    font-size: 11px;
    color: var(--plk-muted);
}

/* Messages */

.assistant-msg {
    display: flex;
    gap: 10px;
    max-width: 100%;
}

.assistant-msg--user {
    flex-direction: row-reverse;
}

.assistant-msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 4px;
}

.assistant-bubble {
    max-width: 72%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.assistant-bubble--user {
    background: var(--plk-accent);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.assistant-bubble--bot {
    background: var(--plk-card);
    color: var(--plk-text);
    border: 1px solid var(--plk-border);
    border-bottom-left-radius: 4px;
}

/* Thinking indicator */

.assistant-thinking {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
}

.assistant-thinking span {
    width: 7px;
    height: 7px;
    background: var(--plk-muted);
    border-radius: 50%;
    animation: thinking-bounce .8s ease-in-out infinite;
}

.assistant-thinking span:nth-child(2) { animation-delay: .15s; }
.assistant-thinking span:nth-child(3) { animation-delay: .3s; }

@keyframes thinking-bounce {
    0%, 80%, 100% { transform: scale(1); opacity: .5; }
    40% { transform: scale(1.3); opacity: 1; }
}

/* Confirmation card */

.assistant-confirm-card {
    background: var(--plk-card);
    border: 1px solid var(--plk-accent);
    border-radius: 12px;
    padding: 14px 16px;
    max-width: 72%;
    animation: plk-rise .2s ease-out;
}

.assistant-confirm-summary {
    font-size: 13.5px;
    color: var(--plk-text);
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
}

.assistant-confirm-detail {
    font-size: 12.5px;
    color: var(--plk-secondary);
    margin-bottom: 4px;
}

.assistant-confirm-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn-assistant-confirm {
    padding: 7px 18px;
    background: var(--plk-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: var(--plk-r-pill);
    cursor: pointer;
    transition: background .12s;
}

.btn-assistant-confirm:hover:not(:disabled) { background: var(--plk-accent-dark); }
.btn-assistant-confirm:disabled { opacity: .6; cursor: not-allowed; }

.btn-assistant-cancel {
    padding: 7px 18px;
    background: none;
    color: var(--plk-secondary);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-pill);
    cursor: pointer;
    transition: background .12s, color .12s;
}

.btn-assistant-cancel:hover:not(:disabled) {
    background: var(--plk-row-hover);
    color: var(--plk-text);
}

/* Composer */

.assistant-composer {
    display: flex;
    flex-direction: column;
    padding: 14px 20px;
    border-top: 1px solid var(--plk-border);
    background: var(--plk-card);
    flex-shrink: 0;
}

.assistant-composer-inner {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.assistant-disclaimer {
    max-width: 720px;
    margin: 9px auto 0;
    font-size: 11.5px;
    color: #A8B2BD;
    text-align: center;
}

.assistant-input {
    flex: 1;
    resize: none;
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-input);
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--plk-text);
    background: var(--plk-bg);
    outline: none;
    line-height: 1.4;
    max-height: 120px;
    overflow-y: auto;
    transition: border-color .12s;
}

.assistant-input:focus {
    border-color: var(--plk-accent);
}

.assistant-input::placeholder {
    color: var(--plk-muted);
}

.btn-assistant-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--plk-accent);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .12s;
    flex-shrink: 0;
}

.btn-assistant-send:hover:not(:disabled) { background: var(--plk-accent-dark); }

.btn-assistant-send--disabled,
.btn-assistant-send:disabled {
    background: var(--plk-border);
    color: var(--plk-muted);
    cursor: not-allowed;
}

.btn-assistant-send svg {
    width: 17px;
    height: 17px;
}

/* --- Public Payment Collection Page (/pay/{slug}) --- */

.pay-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding: 64px 20px;
    background: var(--plk-bg);
}

.pay-card {
    width: 100%;
    max-width: 440px;
    background: var(--plk-card);
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-card);
    padding: 32px;
}

.pay-card--unavailable {
    text-align: center;
}

.pay-card--approved {
    border-top: 4px solid var(--plk-success);
    text-align: center;
}

.pay-card--declined {
    border-top: 4px solid var(--plk-error);
    text-align: center;
}

.pay-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: var(--plk-text);
}

.pay-sub {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--plk-secondary);
    line-height: 1.5;
}

.pay-merchant {
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--plk-muted);
}

.pay-tiers {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.pay-tier-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1.5px solid var(--plk-border);
    border-radius: var(--plk-r-input);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--plk-text);
    cursor: pointer;
    font-family: inherit;
    transition: border-color .12s;
}

.pay-tier-option:hover {
    border-color: var(--plk-accent);
}

.pay-tier-option--selected {
    border-color: var(--plk-accent);
    background: #EAF4FC;
}

.pay-amount {
    margin: 12px 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--plk-text);
}

.pay-totals {
    margin-bottom: 20px;
    padding: 14px 16px;
    background: var(--plk-bg);
    border: 1px solid var(--plk-border);
    border-radius: var(--plk-r-input);
    display: grid;
    gap: 6px;
}

.pay-totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--plk-secondary);
}

.pay-totals-row--total {
    padding-top: 6px;
    border-top: 1px solid var(--plk-border);
    font-weight: 700;
    color: var(--plk-text);
}
