/* ========================================
   Landing redesign - home page, header & footer
   Loaded after app.css
   ======================================== */

:root {
    --lp-ink: #1d4e56;
    --lp-ink-hover: #163d44;
    --lp-text: #4b5d63;
    --lp-muted: #7b8b90;
    --lp-accent: var(--primary, #25b699);
    --lp-mint: #e9f4f1;
    --lp-mint-strong: #d4ece5;
    --lp-surface: #ffffff;
    --lp-border: #e3ecea;
    --lp-num: #eef2f2;
    --lp-on-ink: #ffffff;
    --lp-shadow: 0 10px 30px -12px rgb(29 78 86 / 0.18);
    --lp-radius: 16px;
    --lp-heading-font: 'Raleway', var(--font-family);
}

/* ----------------------------------------
   Header
   ---------------------------------------- */
.header {
    background: var(--lp-surface);
    border-bottom: 1px solid var(--lp-border);
}

.header .logo-text,
.lp-footer .logo-text {
    font-family: var(--lp-heading-font);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.header .logo-text { color: var(--lp-ink); }

.header .logo-image,
.mobile-nav-header .logo-image {
    width: auto;
    height: 44px;
    max-width: 200px;
    max-height: none;
    object-fit: contain;
}
.header .logo-highlight { color: var(--lp-accent); }

.header .nav-link {
    color: var(--lp-text);
    font-weight: 500;
}

.header .nav-link:hover { color: var(--lp-ink); }

.header .nav-actions .btn {
    border-radius: 999px;
}

.header .nav-actions .btn-primary,
.mobile-nav-auth .btn-primary {
    background: var(--lp-ink);
    border-color: var(--lp-ink);
    color: var(--lp-on-ink);
}

.header .nav-actions .btn-primary:hover,
.mobile-nav-auth .btn-primary:hover {
    background: var(--lp-ink-hover);
    color: var(--lp-on-ink);
}

.header .nav-actions .btn-outline {
    border-color: var(--lp-border);
    color: var(--lp-ink);
}

.header .nav-actions .btn-outline:hover {
    background: var(--lp-mint);
    color: var(--lp-ink);
}

/* ----------------------------------------
   Shared building blocks
   ---------------------------------------- */
.lp-section {
    padding: 88px 0;
    background: var(--white);
}

.lp-tinted {
    background: linear-gradient(110deg, var(--lp-mint) 0%, var(--lp-mint) 35%, var(--white) 100%);
}

.lp-heading {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.lp-heading h2,
.lp-calc-text h2,
.lp-about-text h2 {
    font-family: var(--lp-heading-font);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--lp-ink);
    line-height: 1.2;
}

.lp-heading p {
    margin-top: 10px;
    color: var(--lp-muted);
}

.lp-center {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.lp-btn:hover { transform: translateY(-1px); }

.lp-btn-dark {
    background: var(--lp-ink);
    color: var(--lp-on-ink);
}

.lp-btn-dark:hover {
    background: var(--lp-ink-hover);
    color: var(--lp-on-ink);
}

.lp-btn-outline {
    background: transparent;
    border-color: var(--lp-ink);
    color: var(--lp-ink);
}

.lp-btn-outline:hover {
    background: var(--lp-ink);
    color: var(--lp-on-ink);
}

.lp-btn-sm {
    padding: 7px 18px;
    font-size: 0.85rem;
}

.lp-btn-block { width: 100%; }

.lp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--lp-ink);
}

.lp-link:hover { color: var(--lp-accent); }

/* ----------------------------------------
   Hero
   ---------------------------------------- */
.lp-hero {
    padding: calc(var(--header-height) + 56px) 0 80px;
    background: var(--white);
    overflow: hidden;
}

.lp-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 56px;
    max-width: 1200px;
}

.lp-hero-text h1 {
    font-family: var(--lp-heading-font);
    font-size: clamp(2.25rem, 4.6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--lp-ink);
}

.lp-hero-text > p {
    margin-top: 20px;
    max-width: 520px;
    font-size: 1.05rem;
    color: var(--lp-text);
}

.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.lp-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 28px;
    list-style: none;
    font-size: 0.9rem;
    color: var(--lp-text);
}

.lp-hero-points i { color: var(--lp-accent); margin-right: 4px; }

.lp-hero-art img {
    display: block;
    width: 100%;
    height: auto;
}

/* ----------------------------------------
   Services
   ---------------------------------------- */
.lp-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: 1080px;
    margin: 0 auto;
}

.lp-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 28px 30px;
    background: color-mix(in srgb, var(--lp-surface) 75%, transparent);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    backdrop-filter: blur(4px);
    transition: transform .25s ease, box-shadow .25s ease;
}

.lp-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lp-shadow);
}

.lp-service-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--lp-mint-strong);
    color: var(--lp-accent);
    font-size: 1.6rem;
}

.lp-service-card h3 {
    font-family: var(--lp-heading-font);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--lp-ink);
}

.lp-service-card p {
    flex: 1;
    margin: 10px 0 22px;
    font-size: 0.92rem;
    color: var(--lp-text);
}

/* ----------------------------------------
   Calculator
   ---------------------------------------- */
.lp-calc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    max-width: 1100px;
}

.lp-calc-text p {
    margin-top: 14px;
    color: var(--lp-text);
}

.lp-calc-card {
    padding: 32px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 20px;
    box-shadow: var(--lp-shadow);
}

.lp-calc-card h3 {
    font-family: var(--lp-heading-font);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--lp-ink);
    margin-bottom: 22px;
}

.lp-range { margin-bottom: 22px; }

.lp-range-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--lp-text);
}

.lp-range-head strong {
    font-size: 1.15rem;
    color: var(--lp-ink);
    font-variant-numeric: tabular-nums;
}

.lp-range input[type="range"] {
    --fill: 50%;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(to right, var(--lp-accent) var(--fill), var(--lp-border) var(--fill));
    outline: none;
    cursor: pointer;
}

.lp-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--lp-surface);
    border: 5px solid var(--lp-ink);
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.15);
}

.lp-range input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--lp-surface);
    border: 5px solid var(--lp-ink);
}

.lp-range input[type="range"]:focus-visible {
    box-shadow: 0 0 0 3px var(--lp-mint-strong);
}

.lp-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--lp-muted);
}

.lp-calc-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 8px 0 22px;
}

.lp-calc-results div {
    padding: 12px;
    border-radius: 12px;
    background: var(--lp-mint);
    text-align: center;
}

.lp-calc-results span {
    display: block;
    font-size: 0.72rem;
    color: var(--lp-muted);
    line-height: 1.3;
}

.lp-calc-results strong {
    display: block;
    margin-top: 4px;
    font-size: 1.05rem;
    color: var(--lp-ink);
    font-variant-numeric: tabular-nums;
}

.lp-calc-note {
    margin-top: 14px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--lp-muted);
}

.lp-calc-note i { color: var(--lp-accent); }

/* ----------------------------------------
   How we work
   ---------------------------------------- */
.lp-steps {
    display: flex;
    flex-direction: column;
    gap: 72px;
    max-width: 1000px;
    margin: 0 auto;
}

.lp-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

.lp-step-reverse .lp-step-art { order: 2; }

.lp-step-art {
    display: flex;
    justify-content: center;
}

.lp-step-art img {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.lp-step-title {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 64px;
    padding-left: 46px;
}

.lp-step-num {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--lp-heading-font);
    font-size: 4.25rem;
    font-weight: 800;
    line-height: 1;
    color: var(--lp-num);
    z-index: 0;
    user-select: none;
}

.lp-step-title h3 {
    position: relative;
    z-index: 1;
    font-family: var(--lp-heading-font);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--lp-ink);
}

.lp-step-text p {
    margin-top: 12px;
    color: var(--lp-text);
}

/* ----------------------------------------
   Reviews
   ---------------------------------------- */
.lp-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.lp-rating strong {
    font-size: 1.4rem;
    color: var(--lp-ink);
}

.lp-stars { color: #f5b301; font-size: 0.9rem; }

.lp-reviews {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.lp-review {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
}

.lp-review > p {
    flex: 1;
    font-size: 0.93rem;
    color: var(--lp-text);
}

.lp-review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-review-author img { border-radius: 50%; }

.lp-review-author strong {
    display: block;
    font-size: 0.92rem;
    color: var(--lp-ink);
}

.lp-review-author span {
    font-size: 0.78rem;
    color: var(--lp-muted);
}

.lp-review-author .fa-check-circle { color: var(--lp-accent); }

/* ----------------------------------------
   FAQ (reuses app.js toggle)
   ---------------------------------------- */
.lp-faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 820px;
    margin: 0 auto;
}

.lp-faq .faq-item {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    overflow: hidden;
}

.lp-faq .faq-question {
    padding: 18px 22px;
    font-size: 1rem;
    color: var(--lp-ink);
}

.lp-faq .faq-question i { color: var(--lp-accent); }

.lp-faq .faq-answer p {
    padding: 0 22px 18px;
    color: var(--lp-text);
}

/* ----------------------------------------
   About + contact form
   ---------------------------------------- */
.lp-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 72px;
    max-width: 1100px;
}

.lp-about-text img {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 24px 0;
}

.lp-about-text p {
    margin-bottom: 16px;
    color: var(--lp-text);
}

.lp-form {
    display: flex;
    flex-direction: column;
    padding: 36px;
    background: var(--lp-surface);
    border-radius: 20px;
    box-shadow: var(--lp-shadow);
}

.lp-form label {
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--lp-text);
}

.lp-form input,
.lp-form textarea {
    margin-bottom: 18px;
    padding: 11px 14px;
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    background: var(--white);
    color: var(--lp-ink);
    font: inherit;
    resize: vertical;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.lp-form input:focus,
.lp-form textarea:focus {
    outline: none;
    border-color: var(--lp-accent);
    box-shadow: 0 0 0 3px var(--lp-mint-strong);
}

.lp-form .lp-btn {
    align-self: center;
    min-width: 140px;
    margin-top: 6px;
}

.lp-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.lp-alert-success { background: var(--lp-mint-strong); color: var(--lp-ink); }
.lp-alert-error { background: #fdecec; color: #a12626; }

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.lp-footer {
    position: relative;
    padding: 72px 0 28px;
    background: #1b1b1d var(--footer-bg) center / cover no-repeat;
    color: #c9cfd1;
}

.lp-footer a { color: #c9cfd1; }
.lp-footer a:hover { color: #ffffff; }

.lp-footer-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.lp-footer .logo-text { color: #ffffff; font-size: 1.4rem; }
.lp-footer .logo-highlight { color: var(--lp-accent); }
.lp-footer .logo-image {
    width: auto;
    height: 52px;
    max-width: 220px;
    max-height: none;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.lp-footer-brand p {
    margin: 16px 0 20px;
    max-width: 360px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.lp-social {
    display: flex;
    gap: 10px;
}

.lp-social a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.08);
    font-size: 0.85rem;
    transition: background-color .2s ease;
}

.lp-social a:hover { background: var(--lp-accent); color: #ffffff; }

.lp-footer-col h4 {
    margin-bottom: 18px;
    font-family: var(--lp-heading-font);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.lp-footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    font-size: 0.9rem;
}

.lp-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.lp-footer-contact i {
    width: 16px;
    margin-top: 4px;
    color: var(--lp-accent);
}

.lp-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    font-size: 0.8rem;
    color: #9aa3a6;
}

.lp-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* ----------------------------------------
   Responsive
   ---------------------------------------- */
@media (max-width: 1024px) {
    .lp-footer-main { grid-template-columns: 1fr 1fr; }
    .lp-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .lp-section { padding: 64px 0; }

    .lp-hero { padding-top: calc(var(--header-height) + 32px); padding-bottom: 56px; }

    .lp-hero-inner,
    .lp-calc,
    .lp-about,
    .lp-step {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .lp-hero-art { max-width: 520px; margin: 0 auto; }

    .lp-services { grid-template-columns: 1fr; max-width: 460px; }

    .lp-steps { gap: 56px; }
    .lp-step-reverse .lp-step-art { order: 0; }
    .lp-step-art img { max-width: 240px; }
}

@media (max-width: 640px) {
    .header .logo-image,
    .mobile-nav-header .logo-image { height: 38px; max-width: 170px; }
    .container { padding: 0 16px; }
    .lp-reviews,
    .lp-footer-main { grid-template-columns: 1fr; }
    .lp-calc-card,
    .lp-form { padding: 24px 20px; }
    .lp-calc-results { grid-template-columns: 1fr 1fr; }
    .lp-calc-results div:last-child { grid-column: span 2; }
    .lp-hero-actions { gap: 10px; }
    .lp-hero-actions .lp-btn { padding: 12px 20px; font-size: 0.9rem; white-space: nowrap; }
    .lp-hero-points { gap: 8px 16px; font-size: 0.85rem; }
    .lp-hero-points li { white-space: nowrap; }
    .lp-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ----------------------------------------
   Floating currency switcher (bottom right)
   ---------------------------------------- */
.currency-float {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    animation: currencyFloatIn .4s ease-out;
}

@keyframes currencyFloatIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.currency-float-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: var(--lp-ink);
    color: var(--lp-on-ink);
    box-shadow: 0 6px 18px rgb(29 78 86 / 0.35);
    cursor: pointer;
    line-height: 1;
    transition: transform .2s ease, background-color .2s ease;
}

.currency-float-btn:hover { background: var(--lp-ink-hover); transform: scale(1.06); }
.currency-float-btn:focus-visible { outline: 3px solid var(--lp-accent); outline-offset: 3px; }

.currency-float-symbol {
    font-size: 1.15rem;
    font-weight: 700;
}

.currency-float-code {
    margin-top: 3px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.currency-float-menu {
    display: none;
    flex-direction: column;
    min-width: 230px;
    padding: 8px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    box-shadow: var(--lp-shadow);
}

.currency-float-menu.show { display: flex; }

.currency-float-title {
    padding: 6px 10px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lp-muted);
}

.currency-float-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--lp-text);
}

.currency-float-option:hover { background: var(--lp-mint); color: var(--lp-ink); }
.currency-float-option.active { color: var(--lp-ink); }

.currency-float-option .currency-sign {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 28px;
    padding: 0 6px;
    border-radius: 8px;
    background: var(--lp-mint-strong);
    color: var(--lp-ink);
    font-size: 0.8rem;
    font-weight: 700;
}

.currency-float-name { flex: 1; }
.currency-float-name strong { color: var(--lp-ink); margin-right: 4px; }
.currency-float-option .fa-check { color: var(--lp-accent); font-size: 0.8rem; }

@media (max-width: 768px) {
    .currency-float { right: 1.5rem; bottom: 1.5rem; }
    .currency-float-btn { width: 56px; height: 56px; }
}

/* ----------------------------------------
   Application wizard (/apply)
   ---------------------------------------- */
.kyc {
    --kyc-field: #edf7f2;
    --kyc-field-focus: #e2f2ea;
    --kyc-line: #e3e8e6;
    --kyc-btn: #161616;
    --kyc-btn-hover: #000000;
    background:
        radial-gradient(60% 50% at 0% 100%, rgb(37 182 153 / 0.18), transparent 70%),
        radial-gradient(40% 35% at 100% 0%, rgb(37 182 153 / 0.10), transparent 70%),
        #f3f5f4;
}

.kyc .application-layout {
    grid-template-columns: minmax(0, 560px) 280px;
    justify-content: center;
}

.kyc-card {
    padding: 22px 28px 28px;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 24px 60px -24px rgb(16 40 34 / 0.28);
}

/* Top bar */
.kyc-top {
    display: flex;
    align-items: center;
    min-height: 40px;
}

.kyc-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-left: -8px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--lp-ink);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color .2s ease;
}

.kyc-icon-btn:hover { background: var(--kyc-field); color: var(--lp-ink); }
.kyc-icon-btn:focus-visible { outline: 3px solid var(--lp-accent); outline-offset: 2px; }
.kyc-close { margin-left: auto; margin-right: -8px; }

.kyc-title {
    margin-top: 6px;
    font-family: var(--lp-heading-font);
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 700;
    color: #111;
}

.kyc-subtitle {
    margin-top: 4px;
    font-size: 0.88rem;
    color: var(--lp-muted);
}

/* Step tabs */
.kyc-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 22px 0 6px;
    padding: 0;
    list-style: none;
}

.kyc-step {
    font-size: 0.8rem;
    font-weight: 500;
    color: #a3aca9;
    transition: color .25s ease;
}

.kyc-step span {
    display: block;
    padding-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kyc-step::after {
    content: "";
    display: block;
    height: 4px;
    border-radius: 999px;
    background: var(--kyc-line);
    transition: background-color .25s ease;
}

.kyc-step.active,
.kyc-step.done { color: #111; }
.kyc-step.active::after,
.kyc-step.done::after { background: var(--lp-accent); }

/* Form body */
.kyc .kyc-form {
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.kyc .kyc-heading {
    margin: 24px 0 18px;
    font-family: var(--lp-heading-font);
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
}

.kyc .form-group { margin-bottom: 18px; }

.kyc .form-group > label:not(.checkbox-agreement) {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6f7b77;
}

.kyc .form-control {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    background-color: var(--kyc-field);
    color: #111;
    font-size: 0.98rem;
    box-shadow: none;
    transition: border-color .2s ease, background-color .2s ease;
}

.kyc .form-control::placeholder { color: #9aa7a2; }

.kyc .form-control:focus {
    outline: none;
    border-color: var(--lp-accent);
    background-color: var(--kyc-field-focus);
}

.kyc .form-control.is-invalid { border-color: #e5484d; background-color: #fdf0f0; }
.kyc .validation-message { margin-top: 6px; font-size: 0.8rem; color: #d13438; }

.kyc select.form-control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23161616' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
}

.kyc .form-row-2 { gap: 14px; }

/* Amount */
.kyc .amount-input-wrapper .currency-symbol { left: 16px; color: #111; }
.kyc .amount-input { padding-left: 2.6rem; font-size: 1.25rem; font-weight: 700; }

.kyc .slider {
    width: 100%;
    margin-top: 14px;
    accent-color: var(--lp-accent);
}

/* Pill choices: loan term + contact preferences */
.kyc .term-options,
.kyc .checkbox-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.kyc .term-option { flex: 0 0 auto; min-width: 0; }

.kyc .term-option span,
.kyc .checkbox-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1.5px solid var(--lp-accent);
    border-radius: 999px;
    background: #fff;
    color: #2b3a36;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.kyc .term-option span:hover,
.kyc .checkbox-option:hover { background: var(--kyc-field); }

.kyc .term-option input:checked + span,
.kyc .checkbox-option:has(input:checked) {
    background: var(--lp-accent);
    border-color: var(--lp-accent);
    color: #fff;
}

.kyc .term-option input:focus-visible + span,
.kyc .checkbox-option:has(input:focus-visible) {
    outline: 3px solid rgb(37 182 153 / 0.35);
    outline-offset: 2px;
}

.kyc .checkbox-option { position: relative; }

.kyc .checkbox-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.kyc .checkbox-option i { font-size: 0.85em; opacity: 0.85; }

.kyc .step-note { margin: -2px 0 12px; font-size: 0.82rem; color: var(--lp-muted); }

/* Agreements */
.kyc .checkbox-agreement {
    gap: 12px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #3b4744;
}

.kyc .checkbox-agreement input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: var(--lp-accent);
}

.kyc .checkbox-agreement a { color: var(--lp-ink); text-decoration: underline; }

/* Summary */
.kyc .application-summary {
    padding: 18px;
    border-radius: 16px;
    background: var(--kyc-field);
}

.kyc .application-summary h3 { font-size: 0.95rem; color: #111; }
.kyc .summary-label { font-size: 0.75rem; color: #6f7b77; }
.kyc .summary-value { font-size: 1.05rem; color: #111; font-variant-numeric: tabular-nums; }

/* Errors */
.kyc-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fdf0f0;
    color: #a12626;
    font-size: 0.88rem;
}

/* Primary action */
.kyc .kyc-actions {
    display: block;
    margin-top: 26px;
    padding-top: 0;
    border-top: none;
}

.kyc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 14px;
    background: var(--kyc-btn);
    color: #fff;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, transform .1s ease;
}

.kyc-btn:hover { background: var(--kyc-btn-hover); }
.kyc-btn:active { transform: scale(0.99); }
.kyc-btn:focus-visible { outline: 3px solid var(--lp-accent); outline-offset: 3px; }
.kyc-btn[disabled] { opacity: 0.6; cursor: wait; }

/* Side info cards */
.kyc .application-info .info-card {
    display: block;
    padding: 20px 22px;
    text-align: left;
    border: none;
    border-radius: 18px;
    background: rgb(255 255 255 / 0.75);
    box-shadow: 0 10px 30px -18px rgb(16 40 34 / 0.25);
}

.kyc .application-info .info-card i {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: var(--kyc-field);
    color: var(--lp-accent);
    font-size: 1.05rem;
}

.kyc .application-info .info-card h4 { margin-bottom: 4px; font-size: 0.95rem; color: #111; }
.kyc .application-info .info-card p { font-size: 0.84rem; line-height: 1.5; color: var(--lp-muted); }

@media (max-width: 1024px) {
    .kyc .application-layout { grid-template-columns: minmax(0, 560px); }
}

@media (max-width: 640px) {
    .kyc { padding-top: calc(var(--header-height) + 12px); }
    .kyc-card { padding: 16px 18px 22px; border-radius: 22px; }
    .kyc .form-row-2 { grid-template-columns: 1fr; }
    .kyc .term-options { gap: 8px; }
    .kyc .term-option span,
    .kyc .checkbox-option { padding: 8px 14px; font-size: 0.84rem; }
}

/* Mobile header actions (language + menu buttons): square corners */
.mobile-header-actions .mobile-language-toggle,
.mobile-header-actions .mobile-menu-toggle,
.mobile-header-actions .mobile-language-dropdown,
.mobile-header-actions .mobile-lang-option {
    border-radius: 0;
}
