:root {
    --ink: #011b33;
    --ink-soft: #38526a;
    --muted: #6b7c8f;
    --green: #0ba4a5;
    --green-dark: #087f80;
    --green-soft: #e9f8f5;
    --lime: #dff7b8;
    --blue-soft: #f0f8ff;
    --surface: #ffffff;
    --canvas: #fbfdfd;
    --line: #dce6ea;
    --danger: #c9364f;
    --success: #087f5b;
    --shadow-sm: 0 12px 36px rgba(1, 27, 51, 0.08);
    --shadow-lg: 0 28px 80px rgba(1, 27, 51, 0.14);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--canvas);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 10px 14px;
    color: #fff;
    background: var(--ink);
    border-radius: 8px;
    transform: translateY(-150%);
    transition: transform 160ms ease;
}

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

.public-shell {
    min-height: 100vh;
    overflow: hidden;
}

.public-container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.public-header {
    position: relative;
    z-index: 100;
    min-height: 82px;
    background: rgba(251, 253, 253, 0.92);
    border-bottom: 1px solid rgba(220, 230, 234, 0.75);
    backdrop-filter: blur(18px);
}

.public-nav {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.brand-mark {
    position: relative;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    overflow: hidden;
    background: var(--green);
    border-radius: 11px;
    box-shadow: 0 8px 20px rgba(11, 164, 165, 0.28);
}

.brand-mark::before,
.brand-mark::after {
    position: absolute;
    content: "";
    background: #fff;
    border-radius: 99px;
}

.brand-mark::before {
    width: 19px;
    height: 5px;
    top: 10px;
    left: 8px;
    box-shadow: 0 7px 0 #fff;
}

.brand-mark::after {
    width: 10px;
    height: 5px;
    top: 24px;
    left: 8px;
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a,
.nav-login {
    color: #173c5b;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: color 160ms ease;
}

.nav-links a:hover,
.nav-login:hover {
    color: var(--green-dark);
}

.mobile-nav-action {
    display: none;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 20px;
    height: 2px;
    content: "";
    background: currentColor;
    transition: transform 160ms ease;
}

.nav-toggle span {
    position: relative;
}

.nav-toggle span::before {
    position: absolute;
    transform: translateY(-6px);
}

.nav-toggle span::after {
    position: absolute;
    transform: translateY(6px);
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 21px;
    color: #fff;
    background: var(--green);
    border: 1px solid var(--green);
    border-radius: 9px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(11, 164, 165, 0.2);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    box-shadow: 0 12px 26px rgba(11, 164, 165, 0.28);
    transform: translateY(-1px);
}

.button-secondary {
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
    box-shadow: none;
}

.button-secondary:hover {
    color: var(--ink);
    background: var(--green-soft);
    border-color: #b8e4dc;
}

.button-dark {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
    box-shadow: none;
}

.button-dark:hover {
    background: #062b4b;
    border-color: #062b4b;
}

.button-block {
    width: 100%;
}

.button svg {
    width: 17px;
    height: 17px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 8px;
    height: 8px;
    content: "";
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(11, 164, 165, 0.12);
}

.hero {
    position: relative;
    padding: 94px 0 76px;
    background:
        radial-gradient(circle at 88% 18%, rgba(223, 247, 184, 0.9) 0, rgba(223, 247, 184, 0) 25%),
        linear-gradient(180deg, #f4fbff 0%, var(--canvas) 82%);
}

.hero::before {
    position: absolute;
    top: 48px;
    right: -130px;
    width: 360px;
    height: 360px;
    content: "";
    border: 1px solid rgba(11, 164, 165, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 0 44px rgba(11, 164, 165, 0.035), 0 0 0 88px rgba(11, 164, 165, 0.025);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;
    gap: clamp(48px, 7vw, 96px);
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
}

.hero-copy h1 {
    max-width: 680px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(45px, 6vw, 70px);
    font-weight: 820;
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.hero-copy h1 span {
    position: relative;
    z-index: 0;
}

.hero-copy h1 span::after {
    position: absolute;
    z-index: -1;
    bottom: 5px;
    left: -3px;
    width: calc(100% + 6px);
    height: 15px;
    content: "";
    background: var(--lime);
    border-radius: 4px;
    transform: rotate(-1deg);
}

.hero-lead {
    max-width: 610px;
    margin: 26px 0 0;
    color: var(--ink-soft);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.7;
}

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

.hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.hero-note svg {
    width: 18px;
    color: var(--green-dark);
}

.dashboard-card {
    position: relative;
    padding: 20px;
    background: #fff;
    border: 1px solid rgba(205, 222, 228, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    transform: rotate(1.2deg);
}

.dashboard-card::before {
    position: absolute;
    z-index: -1;
    top: -22px;
    left: -22px;
    width: 105px;
    height: 105px;
    content: "";
    background-image: radial-gradient(var(--green) 1.5px, transparent 1.5px);
    background-size: 10px 10px;
    opacity: 0.35;
}

.dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 3px 4px 17px;
    border-bottom: 1px solid #edf2f4;
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 800;
}

.dashboard-brand .brand-mark {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
    border-radius: 8px;
}

.dashboard-brand .brand-mark::before {
    width: 15px;
    height: 3px;
    top: 8px;
    left: 6px;
    box-shadow: 0 5px 0 #fff;
}

.dashboard-brand .brand-mark::after {
    width: 8px;
    height: 3px;
    top: 18px;
    left: 6px;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    color: var(--success);
    background: #e9f8f1;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.live-pill::before {
    width: 6px;
    height: 6px;
    content: "";
    background: #22a06b;
    border-radius: 50%;
}

.dashboard-stat {
    padding: 24px 4px 16px;
}

.dashboard-stat-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-stat-value {
    margin-top: 3px;
    font-size: 30px;
    font-weight: 820;
    letter-spacing: -0.04em;
}

.dashboard-stat-change {
    margin-left: 7px;
    color: var(--success);
    font-size: 11px;
    font-weight: 750;
}

.chart {
    display: flex;
    height: 145px;
    align-items: flex-end;
    gap: 9px;
    padding: 20px 8px 0;
    background: linear-gradient(180deg, #f8fcfd, #fff);
    border-radius: 14px;
}

.chart span {
    width: 100%;
    min-height: 12%;
    background: linear-gradient(180deg, #30c8b5, var(--green));
    border-radius: 5px 5px 2px 2px;
    opacity: 0.9;
}

.dashboard-mini-grid {
    display: grid;
    gap: 10px;
    margin-top: 15px;
    grid-template-columns: repeat(3, 1fr);
}

.mini-stat {
    padding: 12px;
    background: #f7fafb;
    border: 1px solid #edf2f4;
    border-radius: 12px;
}

.mini-stat span {
    display: block;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.mini-stat strong {
    display: block;
    margin-top: 3px;
    font-size: 14px;
}

.trust-strip {
    padding: 34px 0 20px;
}

.trust-label {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
}

.partner-row {
    display: grid;
    align-items: center;
    gap: 38px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partner-item {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.partner-item img {
    width: auto;
    max-width: 128px;
    height: 38px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.62;
    transition: filter 160ms ease, opacity 160ms ease;
}

.partner-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.section {
    padding: 104px 0;
}

.section-tint {
    background: #f0f8ff;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 48px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading.centered .eyebrow {
    justify-content: center;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(34px, 4.5vw, 52px);
    font-weight: 810;
    letter-spacing: -0.045em;
    line-height: 1.1;
}

.section-heading p {
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 17px;
}

.feature-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}

.feature-card {
    position: relative;
    min-height: 300px;
    padding: 30px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 28px rgba(1, 27, 51, 0.045);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.feature-icon {
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    color: var(--green-dark);
    background: var(--green-soft);
    border-radius: 15px;
}

.feature-icon svg {
    width: 25px;
    height: 25px;
}

.feature-card h3 {
    margin: 28px 0 10px;
    font-size: 21px;
    letter-spacing: -0.025em;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.metrics {
    display: grid;
    gap: 1px;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    grid-template-columns: repeat(4, 1fr);
}

.metric {
    padding: 32px 24px;
    background: #fff;
    text-align: center;
}

.metric strong {
    display: block;
    color: var(--ink);
    font-size: 30px;
    letter-spacing: -0.04em;
}

.metric span {
    color: var(--muted);
    font-size: 13px;
}

.workflow {
    display: grid;
    align-items: center;
    gap: 80px;
    grid-template-columns: 0.9fr 1.1fr;
}

.workflow-visual {
    position: relative;
    min-height: 470px;
    padding: 28px;
    background: var(--ink);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.workflow-visual::after {
    position: absolute;
    right: -24px;
    bottom: -24px;
    width: 150px;
    height: 150px;
    content: "";
    background: var(--lime);
    border-radius: 50%;
    opacity: 0.9;
    z-index: -1;
}

.collection-card {
    padding: 22px;
    background: #fff;
    border-radius: 18px;
}

.collection-card + .collection-card {
    margin-top: 14px;
}

.collection-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.collection-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.collection-avatar {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--ink);
    background: var(--lime);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.collection-person strong,
.collection-person span {
    display: block;
}

.collection-person strong {
    font-size: 13px;
}

.collection-person span {
    color: var(--muted);
    font-size: 10px;
}

.collection-amount {
    font-size: 13px;
    font-weight: 800;
}

.collection-status {
    display: inline-block;
    margin-top: 4px;
    color: var(--success);
    font-size: 9px;
    font-weight: 800;
}

.workflow-copy h2 {
    margin: 0;
    font-size: clamp(34px, 4.2vw, 50px);
    letter-spacing: -0.045em;
    line-height: 1.12;
}

.workflow-copy > p {
    color: var(--ink-soft);
    font-size: 17px;
}

.step-list {
    display: grid;
    gap: 22px;
    margin-top: 30px;
}

.step {
    display: grid;
    gap: 16px;
    grid-template-columns: 42px 1fr;
}

.step-number {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--green-dark);
    background: var(--green-soft);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 850;
}

.step h3 {
    margin: 1px 0 3px;
    font-size: 17px;
}

.step p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.security-panel {
    position: relative;
    display: grid;
    align-items: center;
    gap: 60px;
    padding: 64px;
    overflow: hidden;
    color: #fff;
    background: var(--ink);
    border-radius: var(--radius-lg);
    grid-template-columns: 1.1fr 0.9fr;
}

.security-panel::after {
    position: absolute;
    top: -90px;
    right: -80px;
    width: 330px;
    height: 330px;
    content: "";
    border: 75px solid rgba(11, 164, 165, 0.14);
    border-radius: 50%;
}

.security-panel .eyebrow {
    color: #67ded1;
}

.security-panel h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 50px);
    letter-spacing: -0.045em;
    line-height: 1.12;
}

.security-panel p {
    max-width: 620px;
    color: #b8c8d5;
}

.security-points {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 13px;
}

.security-point {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.security-point svg {
    width: 19px;
    color: #67ded1;
}

.cta-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 38px;
    padding: 52px 58px;
    overflow: hidden;
    background: #e9f8f5;
    border-radius: var(--radius-lg);
}

.cta-panel::after {
    position: absolute;
    right: 22%;
    bottom: -115px;
    width: 230px;
    height: 230px;
    content: "";
    border: 48px solid rgba(11, 164, 165, 0.09);
    border-radius: 50%;
}

.cta-panel h2 {
    position: relative;
    z-index: 1;
    max-width: 690px;
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.cta-panel .button {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

.public-footer {
    padding: 60px 0 30px;
    background: #fff;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1.5fr repeat(3, 1fr);
}

.footer-brand p {
    max-width: 330px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.footer-column h3 {
    margin: 0 0 16px;
    font-size: 13px;
}

.footer-column a {
    display: block;
    width: fit-content;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--green-dark);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
    padding-top: 24px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 12px;
}

/* Authentication pages */
.auth-page {
    position: relative;
    min-height: calc(100vh - 82px);
    padding: 64px 0 82px;
    background:
        radial-gradient(circle at 10% 20%, rgba(223, 247, 184, 0.65), transparent 25%),
        linear-gradient(135deg, #f0f8ff 0%, #fbfdfd 54%, #eefbf8 100%);
}

.auth-page::after {
    position: absolute;
    right: -100px;
    bottom: 10%;
    width: 250px;
    height: 250px;
    content: "";
    border: 45px solid rgba(11, 164, 165, 0.07);
    border-radius: 50%;
}

.auth-layout {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;
    gap: clamp(50px, 8vw, 110px);
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.7fr);
}

.auth-layout.auth-layout-wide {
    align-items: start;
    grid-template-columns: minmax(280px, 0.52fr) minmax(600px, 1.2fr);
}

.auth-intro {
    max-width: 540px;
}

.auth-intro h1 {
    margin: 0;
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 820;
    letter-spacing: -0.05em;
    line-height: 1.07;
}

.auth-intro > p {
    margin: 22px 0 0;
    color: var(--ink-soft);
    font-size: 17px;
}

.auth-benefits {
    display: grid;
    gap: 14px;
    margin-top: 30px;
}

.auth-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 650;
}

.auth-benefit-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    color: var(--green-dark);
    background: #fff;
    border: 1px solid #cde8e3;
    border-radius: 50%;
}

.auth-benefit-icon svg {
    width: 15px;
}

.auth-card {
    padding: clamp(28px, 4.5vw, 46px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(211, 224, 229, 0.92);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.auth-card-header {
    margin-bottom: 28px;
}

.auth-card-header h2 {
    margin: 0;
    font-size: 27px;
    letter-spacing: -0.035em;
}

.auth-card-header p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 13px;
}

.notice-success {
    color: #075a42;
    background: #ecfbf5;
    border-color: #b7ead8;
}

.notice-danger {
    color: #8c2134;
    background: #fff2f4;
    border-color: #f3c7cf;
}

.notice svg {
    width: 18px;
    flex: 0 0 18px;
    margin-top: 1px;
}

.field {
    margin-bottom: 18px;
}

.field-row {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-row.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 720;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 49px;
    padding: 11px 13px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #cfdce2;
    border-radius: 9px;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
    min-height: 100px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #93a1ad;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(11, 164, 165, 0.12);
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
    border-color: var(--danger);
}

.field-error {
    display: block;
    margin-top: 5px;
    color: var(--danger);
    font-size: 12px;
}

.field-hint {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.field .iti {
    display: block;
    width: 100%;
}

.field .iti__selected-flag {
    border-radius: 8px 0 0 8px;
}

.field .iti__selected-dial-code {
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
}

.field .iti__dropdown-content {
    width: min(360px, calc(100vw - 32px));
    overflow: hidden;
    color: var(--ink);
    border-color: #cfdce2;
    border-radius: 9px;
    box-shadow: 0 14px 36px rgba(1, 27, 51, 0.16);
}

.field .iti__country-list {
    max-height: 240px;
}

.field .iti__search-input {
    min-height: 42px;
    border: 0;
    border-bottom: 1px solid #e4ecef;
    border-radius: 0;
    box-shadow: none;
}

.field .iti__country-name,
.field .iti__dial-code {
    font-size: 13px;
}

.field input.phone-input-invalid {
    border-color: var(--danger);
}

.form-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin: -2px 0 20px;
}

.text-link {
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.form-footer {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0;
    color: #95a2ae;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-divider::before,
.form-divider::after {
    height: 1px;
    flex: 1;
    content: "";
    background: var(--line);
}

.partner-mini-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.partner-mini-row img {
    width: auto;
    max-width: 70px;
    height: 26px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.55;
}

.registration-switch {
    display: grid;
    gap: 8px;
    margin-bottom: 28px;
    grid-template-columns: repeat(2, 1fr);
}

.registration-option {
    position: relative;
}

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

.registration-option label {
    display: block;
    padding: 13px 12px;
    color: var(--ink-soft);
    background: #f8fafb;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 750;
    text-align: center;
    cursor: pointer;
}

.registration-option input:checked + label {
    color: var(--green-dark);
    background: var(--green-soft);
    border-color: #9fded4;
    box-shadow: inset 0 0 0 1px #9fded4;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 26px 0 18px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.form-section-title::after {
    height: 1px;
    flex: 1;
    content: "";
    background: var(--line);
}

.is-hidden {
    display: none !important;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 7px;
    place-items: center;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: var(--green-dark);
    background: var(--green-soft);
}

.password-toggle svg {
    width: 17px;
}

@media (max-width: 1040px) {
    .nav-links {
        gap: 18px;
    }

    .hero-grid,
    .workflow,
    .security-panel,
    .auth-layout,
    .auth-layout.auth-layout-wide {
        gap: 48px;
        grid-template-columns: 1fr 1fr;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .public-container {
        width: min(calc(100% - 32px), 680px);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-actions {
        margin-left: auto;
    }

    .nav-links {
        position: fixed;
        top: 82px;
        right: 16px;
        left: 16px;
        display: none;
        align-items: stretch;
        padding: 18px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: var(--shadow-lg);
        flex-direction: column;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 10px 8px;
    }

    .nav-links .mobile-nav-action {
        display: block;
        padding: 11px;
        color: #fff;
        background: var(--green);
        border-radius: 9px;
        text-align: center;
    }

    .hero {
        padding-top: 68px;
    }

    .hero-grid,
    .workflow,
    .security-panel,
    .auth-layout,
    .auth-layout.auth-layout-wide {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        max-width: 560px;
        transform: none;
    }

    .partner-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow-visual {
        order: 2;
    }

    .security-panel {
        padding: 44px 34px;
    }

    .cta-panel {
        align-items: flex-start;
        padding: 42px 34px;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .auth-page {
        padding-top: 50px;
    }

    .auth-intro {
        text-align: center;
        margin-inline: auto;
    }

    .auth-intro .eyebrow {
        justify-content: center;
    }

    .auth-benefits {
        width: fit-content;
        margin-inline: auto;
        text-align: left;
    }

    .auth-card {
        width: min(100%, 620px);
        margin-inline: auto;
    }
}

@media (max-width: 580px) {
    .public-container {
        width: min(calc(100% - 24px), 520px);
    }

    .public-header,
    .public-nav {
        min-height: 72px;
    }

    .brand {
        max-width: 190px;
        font-size: 15px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .brand-mark::before {
        width: 17px;
        top: 9px;
        left: 7px;
    }

    .brand-mark::after {
        top: 22px;
        left: 7px;
    }

    .nav-login {
        display: none;
    }

    .nav-actions .button {
        display: none;
    }

    .nav-links {
        top: 72px;
    }

    .hero {
        padding: 54px 0 58px;
    }

    .hero-copy h1 {
        font-size: clamp(39px, 13vw, 54px);
    }

    .hero-actions .button {
        width: 100%;
    }

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

    .dashboard-mini-grid {
        grid-template-columns: 1fr;
    }

    .partner-row,
    .feature-grid,
    .metrics,
    .footer-grid,
    .field-row,
    .field-row.three {
        grid-template-columns: 1fr;
    }

    .partner-row {
        gap: 8px;
    }

    .section {
        padding: 76px 0;
    }

    .feature-card {
        min-height: auto;
    }

    .workflow-visual {
        min-height: 390px;
        padding: 18px;
    }

    .security-panel {
        padding: 36px 24px;
        border-radius: 22px;
    }

    .cta-panel {
        padding: 34px 24px;
        border-radius: 22px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-page {
        min-height: calc(100vh - 72px);
        padding: 36px 0 60px;
    }

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

    .auth-card {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .registration-switch {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.public-error-page {
    display: grid;
    min-height: calc(100vh - 80px);
    place-items: center;
    padding: 72px 0;
    background:
        radial-gradient(circle at 82% 24%, rgba(10, 165, 166, 0.13), transparent 28%),
        linear-gradient(180deg, #f8fbfd 0%, #fff 100%);
}

.public-error-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    gap: clamp(44px, 8vw, 110px);
    align-items: center;
}

.public-error-copy {
    max-width: 660px;
}

.public-error-copy h1 {
    max-width: 620px;
    margin: 14px 0 18px;
    color: var(--navy);
    font-size: clamp(44px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.public-error-copy > p:not(.eyebrow) {
    max-width: 590px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.public-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.public-error-actions .button-secondary {
    color: var(--navy);
    background: #fff;
    border-color: var(--line);
}

.public-error-visual {
    position: relative;
    display: grid;
    width: min(100%, 420px);
    aspect-ratio: 1;
    place-items: center;
    justify-self: end;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 65% 30%, rgba(255, 255, 255, 0.24), transparent 22%),
        linear-gradient(145deg, var(--green), #057579 65%, var(--navy));
    border-radius: 50%;
    box-shadow: 0 36px 80px rgba(1, 27, 51, 0.2);
}

.public-error-visual::before,
.public-error-visual::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
}

.public-error-visual::before {
    width: 72%;
    height: 72%;
}

.public-error-visual::after {
    width: 48%;
    height: 48%;
}

.public-error-visual > span {
    position: relative;
    z-index: 1;
    font-size: clamp(74px, 11vw, 132px);
    font-weight: 800;
    letter-spacing: -0.08em;
}

.public-error-orbit {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.14);
    transform: translate(138px, -58px);
}

@media (max-width: 860px) {
    .public-error-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .public-error-copy,
    .public-error-copy > p:not(.eyebrow) {
        margin-inline: auto;
    }

    .public-error-copy .eyebrow,
    .public-error-actions {
        justify-content: center;
    }

    .public-error-visual {
        width: min(72vw, 360px);
        justify-self: center;
        order: -1;
    }
}

@media (max-width: 580px) {
    .public-error-page {
        min-height: calc(100vh - 72px);
        padding: 44px 0 64px;
    }

    .public-error-copy h1 {
        font-size: 43px;
    }

    .public-error-copy > p:not(.eyebrow) {
        font-size: 16px;
    }

    .public-error-actions .button {
        width: 100%;
    }
}
