:root {
    --font-sans: "IBM Plex Sans", "Segoe UI", sans-serif;
    --font-display: "Space Grotesk", "IBM Plex Sans", sans-serif;
    --bg-canvas: #eef3f9;
    --bg-canvas-strong: #e3ebf5;
    --bg-panel: rgba(255, 255, 255, 0.88);
    --bg-panel-strong: #ffffff;
    --bg-sidebar: #0f172a;
    --bg-sidebar-soft: #18243f;
    --bg-sidebar-accent: #21325a;
    --border-soft: rgba(148, 163, 184, 0.22);
    --border-strong: rgba(148, 163, 184, 0.34);
    --text-strong: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-on-dark: #e2e8f0;
    --text-on-dark-muted: #94a3b8;
    --accent: #2563eb;
    --accent-strong: #1d4ed8;
    --accent-soft: rgba(37, 99, 235, 0.14);
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0f766e;
    --shadow-panel: 0 24px 60px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
    --shadow-sidebar: 18px 0 48px rgba(2, 6, 23, 0.28);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --sidebar-width: 280px;
    --content-width: 1440px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body.app-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--text-body);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 24rem),
        radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.1), transparent 22rem),
        linear-gradient(180deg, #f8fbff 0%, var(--bg-canvas) 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.sidebar-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

body.app-body.auth-page {
    background:
        radial-gradient(circle at top center, rgba(15, 23, 42, 0.16), transparent 22rem),
        radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.14), transparent 18rem),
        linear-gradient(180deg, #dfe7f2 0%, #edf3fb 26%, #f8fbff 62%, #f3f8f7 100%);
}

body.app-body.landing-page {
    background:
        radial-gradient(circle at top left, rgba(14, 116, 144, 0.18), transparent 24rem),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 28rem),
        linear-gradient(180deg, #dbe9fb 0%, #edf5ff 28%, #f7fbff 64%, #eff6ff 100%);
}

.landing-shell {
    position: relative;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: 110px 16px 28px;
}

.landing-ambient {
    position: absolute;
    z-index: 0;
    border-radius: 999px;
    filter: blur(18px);
    pointer-events: none;
}

.landing-ambient--left {
    top: 92px;
    left: -52px;
    width: 210px;
    height: 210px;
    background: rgba(56, 189, 248, 0.16);
}

.landing-ambient--right {
    top: 180px;
    right: -44px;
    width: 260px;
    height: 260px;
    background: rgba(59, 130, 246, 0.12);
}

.landing-topbar,
.landing-main,
.landing-footer {
    position: relative;
    z-index: 1;
}

.landing-topbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    width: min(calc(100% - 32px), 1480px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(191, 219, 254, 0.36);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(237, 246, 255, 0.72));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(20px);
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.landing-brand__full-logo {
    width: min(270px, 62vw);
    max-width: 100%;
    object-fit: contain;
}

.landing-topbar__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.landing-topbar__link {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.landing-topbar__link:hover {
    color: #0f172a;
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.landing-topbar__action {
    min-height: 44px;
}

.landing-main {
    display: grid;
    gap: 28px;
    margin-top: 0;
}

.landing-hero {
    display: grid;
    gap: 24px;
    align-items: center;
    padding: 24px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.9), transparent 28%),
        linear-gradient(140deg, rgba(15, 23, 42, 0.94) 0%, rgba(18, 52, 102, 0.96) 45%, rgba(247, 250, 255, 0.98) 100%);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.landing-hero__copy {
    display: grid;
    gap: 18px;
}

.landing-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(191, 219, 254, 0.18);
    color: #bfdbfe;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.landing-hero__copy h1 {
    margin: 0;
    max-width: 12ch;
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 7vw, 4.9rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    color: #eff6ff;
}

.landing-hero__copy p {
    margin: 0;
    max-width: 58ch;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(226, 232, 240, 0.9);
}

.landing-hero__actions,
.landing-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.landing-hero__button {
    min-width: 180px;
}

.landing-metrics {
    display: grid;
    gap: 12px;
}

.landing-metric {
    padding: 18px;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(191, 219, 254, 0.22);
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.16);
    backdrop-filter: blur(10px);
}

.landing-metric strong,
.landing-metric span {
    display: block;
}

.landing-metric strong {
    color: #0f172a;
    font-size: 0.98rem;
}

.landing-metric span {
    margin-top: 8px;
    line-height: 1.6;
    color: #334155;
}

.landing-hero__visual {
    position: relative;
    display: grid;
    gap: 18px;
}

.landing-hero__frame {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.48);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(219, 234, 254, 0.9));
    box-shadow: 0 28px 65px rgba(15, 23, 42, 0.22);
}

.landing-hero__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%, rgba(15, 23, 42, 0.06));
    pointer-events: none;
}

.landing-hero__image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.landing-glass-card {
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px);
}

.landing-glass-card__eyebrow {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0369a1;
}

.landing-glass-card strong {
    display: block;
    margin-top: 8px;
    color: #0f172a;
    font-size: 1rem;
}

.landing-glass-card p {
    margin: 8px 0 0;
    color: #475569;
    line-height: 1.65;
}

.landing-section {
    display: grid;
    gap: 18px;
}

.landing-section[id],
.landing-legal-section[id] {
    scroll-margin-top: 118px;
}

.landing-section .landing-kicker {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.14);
    color: #1d4ed8;
}

.landing-section--grid {
    align-items: start;
}

.landing-section__header h2,
.landing-legal-hero h1,
.landing-cta h2 {
    margin: 10px 0 0;
    font-family: var(--font-display);
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: #0f172a;
    text-wrap: balance;
}

.landing-section__header h2,
.landing-cta h2 {
    max-width: 18ch;
    font-size: clamp(2rem, 4vw, 3.1rem);
}

.landing-section__header p {
    margin: 12px 0 0;
    max-width: 64ch;
    color: #475569;
    line-height: 1.75;
}

.landing-workflow,
.landing-feature-grid {
    display: grid;
    gap: 14px;
}

.landing-services-layout {
    display: grid;
    gap: 18px;
}

.landing-services-intro,
.landing-download {
    padding: 26px;
    border-color: rgba(191, 219, 254, 0.72);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.landing-services-intro {
    display: grid;
    gap: 28px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.96));
}

.landing-services-top {
    display: grid;
    gap: 18px;
    align-items: center;
}

.landing-section__header--services {
    max-width: 46rem;
}

.landing-section__header--services h2 {
    max-width: none;
}

.landing-section__header--services p {
    max-width: none;
}

.landing-services-visual {
    position: relative;
    min-height: 220px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(191, 219, 254, 0.72);
    background:
        radial-gradient(circle at 25% 25%, rgba(56, 189, 248, 0.28), transparent 24%),
        radial-gradient(circle at 78% 68%, rgba(37, 99, 235, 0.2), transparent 28%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(29, 78, 216, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.landing-services-visual__orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(4px);
    opacity: 0.9;
    animation: landingServicesFloat 8s ease-in-out infinite;
}

.landing-services-visual__orb--one {
    top: 18px;
    right: 28px;
    width: 92px;
    height: 92px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.65), rgba(125, 211, 252, 0.12));
}

.landing-services-visual__orb--two {
    left: 30px;
    bottom: 24px;
    width: 126px;
    height: 126px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.34), rgba(15, 23, 42, 0.04));
    animation-delay: -3s;
}

.landing-services-visual__panel {
    position: absolute;
    inset: 24px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.landing-services-visual__logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    padding: 14px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(219, 234, 254, 0.96));
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.24);
}

.landing-services-visual__lines {
    display: grid;
    gap: 10px;
    width: min(220px, 76%);
}

.landing-services-visual__lines span {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(191, 219, 254, 0.88), rgba(125, 211, 252, 0.18));
}

.landing-services-visual__lines span:nth-child(2) {
    width: 82%;
}

.landing-services-visual__lines span:nth-child(3) {
    width: 64%;
}

.landing-services-grid {
    display: grid;
    gap: 14px;
}

.landing-step,
.landing-feature {
    padding: 20px;
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(191, 219, 254, 0.66);
}

.landing-step__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 32px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.landing-step h3,
.landing-feature h3 {
    margin: 14px 0 0;
    color: #0f172a;
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.landing-step p,
.landing-feature p,
.landing-cta p {
    margin: 10px 0 0;
    color: #475569;
    line-height: 1.7;
}

.landing-service-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 22px;
    border-color: rgba(191, 219, 254, 0.76);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.94));
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
}

.landing-service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(96, 165, 250, 0.8);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.1);
}

.landing-service-card__index {
    min-width: 38px;
    height: 28px;
    padding: 0 10px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.landing-service-card h3 {
    margin-top: 18px;
    color: #102a56;
    font-size: 1.14rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.landing-service-card p {
    margin-top: 12px;
    color: #4b5563;
    line-height: 1.75;
}

@keyframes landingServicesFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -10px, 0);
    }
}

.landing-feature__icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 116, 144, 0.12));
    color: #0f4ac9;
}

.landing-service-aside {
    display: grid;
    gap: 16px;
}

.landing-service-note,
.landing-download {
    padding: 22px;
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(191, 219, 254, 0.72);
}

.landing-service-note__list {
    margin: 14px 0 0;
    padding-left: 18px;
    list-style: disc;
    color: #475569;
}

.landing-service-note__list li + li {
    margin-top: 8px;
}

.landing-download {
    display: grid;
    gap: 18px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.98));
}

.landing-download__copy h3 {
    margin: 12px 0 0;
    font-family: var(--font-display);
    font-size: 1.42rem;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.landing-download__copy p {
    margin: 10px 0 0;
    color: #475569;
    line-height: 1.72;
}

.landing-download__panel {
    display: grid;
    gap: 10px;
    justify-items: start;
}

.landing-download__qr {
    display: grid;
    grid-template-columns: repeat(7, 12px);
    gap: 6px;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(191, 219, 254, 0.8);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.landing-download__qr span {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: rgba(148, 163, 184, 0.18);
}

.landing-download__qr span.is-filled {
    background: #0f172a;
}

.landing-download__hint {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1d4ed8;
}

.landing-download__stores {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.landing-download__button {
    min-height: 46px;
}

.landing-download__store-tag {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 0.88rem;
    font-weight: 600;
}

.landing-cta {
    display: grid;
    gap: 18px;
    align-items: center;
    padding: 24px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.96));
    border-color: rgba(191, 219, 254, 0.7);
}

.landing-footer {
    display: grid;
    gap: 22px;
    margin-top: 10px;
    padding: 24px 20px 16px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(18, 52, 102, 0.96) 56%, rgba(15, 118, 110, 0.92) 100%);
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.18);
    color: rgba(226, 232, 240, 0.84);
}

.landing-footer__section {
    min-width: 0;
}

.landing-footer__logo {
    width: min(220px, 100%);
    max-width: 100%;
    object-fit: contain;
    padding: 10px 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(219, 234, 254, 0.92));
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.landing-footer__description {
    margin: 14px 0 0;
    max-width: 34ch;
    line-height: 1.72;
    color: rgba(226, 232, 240, 0.78);
}

.landing-footer__heading {
    margin: 0 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #bfdbfe;
}

.landing-footer__link-group {
    display: grid;
    gap: 10px;
}

.landing-footer__link-group a,
.landing-footer__link-group span {
    line-height: 1.6;
}

.landing-footer__link-group a {
    font-weight: 600;
    color: #dbeafe;
}

.landing-footer__link-group a:hover {
    color: #ffffff;
}

.landing-legal-hero {
    padding: 26px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.98));
    border-color: rgba(191, 219, 254, 0.74);
}

.landing-legal-hero h1 {
    margin: 12px 0 0;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.landing-legal-hero .landing-kicker {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.14);
    color: #1d4ed8;
}

.landing-legal-hero p {
    margin: 12px 0 0;
    max-width: 62ch;
    color: #475569;
    line-height: 1.75;
}

.landing-legal-hero__meta {
    font-size: 0.92rem;
    color: #64748b;
}

.landing-legal-layout {
    display: grid;
    gap: 22px;
    align-items: start;
}

.landing-legal-sidebar,
.landing-legal-document {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(191, 219, 254, 0.68);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.landing-legal-sidebar {
    padding: 22px;
}

.landing-legal-sidebar h2 {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.landing-legal-sidebar__nav {
    display: grid;
    gap: 8px;
}

.landing-legal-sidebar__nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #475569;
    font-size: 0.94rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.landing-legal-sidebar__nav a:hover {
    background: rgba(37, 99, 235, 0.08);
    color: #0f172a;
}

.landing-legal-document {
    padding: 30px;
}

.landing-legal-section {
    padding: 0 0 24px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.landing-legal-section + .landing-legal-section {
    margin-top: 24px;
}

.landing-legal-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.landing-legal-section h2 {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: -0.03em;
    color: #111827;
}

.landing-legal-section p {
    margin: 0 0 14px;
    color: #475569;
    line-height: 1.8;
}

.landing-legal-section p:last-child {
    margin-bottom: 0;
}

.landing-legal-section .privacy-policy-page__list {
    margin-top: 0;
}

@media (min-width: 900px) {
    .landing-shell {
        padding: 116px 22px 36px;
    }

    .landing-hero {
        grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
        padding: 34px;
    }

    .landing-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .landing-glass-card--top {
        position: absolute;
        top: 24px;
        left: -28px;
        width: min(290px, 46%);
    }

    .landing-glass-card--bottom {
        position: absolute;
        right: -18px;
        bottom: 22px;
        width: min(280px, 44%);
    }

    .landing-workflow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .landing-services-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing-services-top {
        grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
        gap: 24px;
    }

    .landing-services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .landing-download {
        grid-template-columns: minmax(0, 1.1fr) auto auto;
        align-items: center;
        gap: 22px;
    }

    .landing-section--grid {
        grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
        gap: 24px;
    }

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

    .landing-cta {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 30px;
    }

    .landing-legal-layout {
        grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
    }

    .landing-legal-sidebar {
        position: sticky;
        top: 118px;
    }

    .landing-footer {
        grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr);
        align-items: start;
    }
}

@media (min-width: 700px) and (max-width: 899px) {
    .landing-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-footer__section--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 899px) {
    .landing-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-topbar__nav {
        width: 100%;
        justify-content: flex-start;
    }

    .landing-hero__copy h1 {
        max-width: 12.5ch;
    }
}

@media (max-width: 640px) {
    .landing-shell {
        padding: 122px 12px 24px;
    }

    .landing-topbar,
    .landing-hero,
    .landing-cta {
        border-radius: 24px;
    }

    .landing-hero,
    .landing-step,
    .landing-feature,
    .landing-cta,
    .landing-legal-hero,
    .landing-legal-sidebar,
    .landing-legal-document {
        padding: 18px;
    }

    .landing-brand {
        width: 100%;
    }

    .landing-topbar__nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: stretch;
    }

    .landing-topbar__link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0 14px;
        border-radius: 999px;
        background: rgba(37, 99, 235, 0.08);
        border: 1px solid rgba(37, 99, 235, 0.12);
    }

    .landing-topbar__action {
        margin-top: 2px;
        width: 100%;
        justify-content: center;
    }

    .landing-hero__copy h1 {
        max-width: none;
        font-size: clamp(2.3rem, 12vw, 3.35rem);
    }

    .landing-hero__frame {
        display: none;
    }

    .landing-hero__visual {
        gap: 12px;
    }

    .landing-hero__actions,
    .landing-cta__actions {
        flex-direction: column;
    }

    .landing-hero__button,
    .landing-cta__actions .btn-primary,
    .landing-cta__actions .btn-outline {
        width: 100%;
    }

    .landing-download__stores {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-services-visual {
        min-height: 180px;
    }

    .landing-services-intro,
    .landing-service-card,
    .landing-download {
        padding: 20px;
    }

    .landing-download__button,
    .landing-download__store-tag {
        width: 100%;
        justify-content: center;
    }

    .landing-section__header h2 {
        max-width: none;
    }

    .landing-footer {
        padding: 20px 16px 14px;
    }

    .landing-footer__section + .landing-footer__section {
        padding-top: 14px;
        border-top: 1px solid rgba(226, 232, 240, 0.14);
    }
}

.auth-shell {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.auth-shell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 42vh;
    background:
        radial-gradient(circle at top right, rgba(15, 23, 42, 0.14), transparent 35%),
        linear-gradient(180deg, rgba(30, 64, 175, 0.10), rgba(30, 64, 175, 0));
    pointer-events: none;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding:
        calc(env(safe-area-inset-top, 0px) + 28px)
        20px
        calc(env(safe-area-inset-bottom, 0px) + 24px);
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.95) 18%, #ffffff 100%);
    box-shadow: none;
    backdrop-filter: blur(20px);
}

.auth-card--wide {
    width: 100%;
}

.privacy-policy-page {
    max-width: 960px;
    margin: 0 auto;
}

.privacy-policy-page__intro {
    max-width: 720px;
    margin: 12px auto 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
    text-align: center;
}

.privacy-policy-page__meta {
    margin-top: 10px;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.92rem;
}

.privacy-policy-page__content {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.privacy-policy-page__section {
    padding: 24px;
}

.privacy-policy-page__section h2 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--text-strong);
}

.privacy-policy-page__section p {
    margin: 0 0 12px;
    line-height: 1.75;
    color: var(--text-body);
}

.privacy-policy-page__section p:last-child {
    margin-bottom: 0;
}

.privacy-policy-page__list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-body);
}

.privacy-policy-page__list li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.privacy-policy-page__list li:last-child {
    margin-bottom: 0;
}

.privacy-policy-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

.auth-footer--secondary {
    margin-top: 10px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 24px;
}

.auth-brand__mark {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 154px;
    margin: 0 auto 18px;
    padding: 16px 20px;
    border-radius: 20px;
    border: 1px solid rgba(24, 48, 86, 0.12);
    background:
        linear-gradient(180deg, #14284a 0%, #10213d 100%);
    box-shadow:
        0 20px 36px rgba(16, 33, 61, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-brand__logo {
    width: min(165px, 39vw);
    max-height: 54px;
    object-fit: contain;
}

.auth-brand__mark--brand {
    padding: 0;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-brand__logo--brand {
    width: min(220px, 52vw);
    max-height: 64px;
}

.auth-brand__eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: none;
    color: rgba(226, 232, 240, 0.78);
}

.auth-brand__title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.32rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: none;
    color: #f3f6fb;
}

.auth-brand h1,
.auth-brand h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 2.35rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--text-strong);
}

.auth-brand p {
    margin: 12px auto 0;
    max-width: 32ch;
    font-size: 0.96rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 9px;
}

.auth-label {
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-body);
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.96);
    color: var(--text-strong);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 8px 24px rgba(15, 23, 42, 0.04);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.auth-input--icon {
    padding-left: 56px;
}

.auth-input--trailing {
    padding-right: 60px;
}

.auth-input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.12),
        0 14px 32px rgba(37, 99, 235, 0.1);
    background: #ffffff;
}

.auth-input-action {
    position: absolute;
    top: 50%;
    right: 12px;
    z-index: 1;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    color: #64748b;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.auth-input-action:hover,
.auth-input-action:focus-visible {
    background: rgba(37, 99, 235, 0.14);
    color: #1d4ed8;
    outline: none;
}

.auth-input-action__icon {
    width: 18px;
    height: 18px;
}
.auth-feedback {
    min-height: 18px;
    margin: 6px 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: left;
}

.auth-feedback:empty {
    min-height: 0;
    margin-top: 0;
}

.auth-feedback--error {
    color: #b91c1c;
}

.auth-feedback--success {
    color: #047857;
}

.auth-input--invalid {
    border-color: rgba(220, 38, 38, 0.44);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.auth-input--valid {
    border-color: rgba(5, 150, 105, 0.34);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.08);
}


.auth-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: center;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-body);
}

.auth-check input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.auth-link {
    color: var(--accent);
    font-weight: 600;
}

.auth-link:hover {
    color: var(--accent-strong);
}

.auth-submit {
    width: 100%;
    justify-content: center;
    min-height: 56px;
    margin-top: 6px;
    border-radius: 18px;
    font-size: 1rem;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.24);
}

.auth-divider {
    position: relative;
    margin: 6px 0 2px;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.auth-divider span {
    position: relative;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.auth-social {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.auth-social__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-social__button:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.auth-footer {
    margin-top: 6px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-strength {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-strength__track {
    flex: 1;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.95);
}

.auth-strength__fill {
    width: 25%;
    height: 100%;
    border-radius: inherit;
    background: #ef4444;
}

.auth-strength__label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .auth-shell {
        align-items: center;
        justify-content: center;
        padding: 28px;
    }

    .auth-card,
    .auth-card--wide {
        min-height: auto;
        padding: 30px 30px 28px;
        border: 1px solid rgba(255, 255, 255, 0.64);
        border-radius: 30px;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
        width: min(100%, 480px);
    }

    .auth-card--wide {
        width: min(100%, 560px);
    }

    .auth-brand {
        text-align: center;
        margin-bottom: 22px;
    }
    .auth-brand__mark {
        min-width: 148px;
        margin: 0 auto 16px;
        padding: 14px 18px;
        border-radius: 18px;
    }

    .auth-brand__eyebrow {
        font-size: 0.64rem;
        letter-spacing: 0.18em;
    }

    .auth-brand__title {
        font-size: 1.24rem;
    }

    .auth-brand h1,
    .auth-brand h2 {
        font-size: clamp(1.8rem, 3vw, 2.2rem);
        line-height: 1.08;
        letter-spacing: -0.03em;
    }

    .auth-brand p {
        margin: 10px auto 0;
        max-width: 34ch;
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .auth-form {
        gap: 18px;
    }

    .auth-form__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .auth-input {
        min-height: 48px;
        border-radius: 16px;
    }

    .auth-inline {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        flex-wrap: wrap;
    }

    .auth-submit {
        min-height: 50px;
        margin-top: 2px;
        border-radius: 16px;
        font-size: 0.95rem;
    }

    .auth-footer {
        text-align: center;
        margin-top: 4px;
    }
}

.app-shell {
    position: relative;
    min-height: 100vh;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(6px);
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.sidebar-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    height: 100vh;
    padding: 16px 16px 14px;
    color: var(--text-on-dark);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%),
        linear-gradient(180deg, var(--bg-sidebar) 0%, #10192d 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: var(--shadow-sidebar);
    transform: translateX(0);
    transition: transform 0.28s ease;
}

.app-sidebar::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    pointer-events: none;
}

.app-sidebar.active {
    transform: translateX(0);
}

.app-sidebar__header,
.app-sidebar__footer {
    position: relative;
    z-index: 1;
}

.app-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 4px 12px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #eff6ff;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.brand-mark__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-copy strong {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.brand-copy span {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: none;
    color: var(--text-on-dark-muted);
}

.app-sidebar__summary {
    position: relative;
    z-index: 1;
    margin: 2px 4px 14px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.03)),
        rgba(15, 23, 42, 0.42);
    display: none;
}

.eyebrow {
    margin: 0 0 6px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: none;
    color: #bfdbfe;
}

.app-sidebar__summary h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #f8fafc;
}

.app-sidebar__summary p {
    margin: 6px 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--text-on-dark-muted);
}

.summary-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.summary-metric {
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.summary-metric strong {
    display: block;
    font-size: 0.88rem;
    color: #f8fafc;
}

.summary-metric span {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    color: var(--text-on-dark-muted);
}

.app-sidebar__nav {
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-y: auto;
    padding: 0 4px 10px;
}

.app-sidebar__nav::-webkit-scrollbar {
    width: 5px;
}

.app-sidebar__nav::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.28);
    border-radius: 999px;
}

.sidebar-group + .sidebar-group {
    margin-top: 16px;
}

.sidebar-group__label {
    margin: 0 0 8px;
    padding: 0 14px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--text-on-dark-muted);
}

.sidebar-group__links {
    display: grid;
    gap: 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.78);
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.sidebar-link:hover {
    transform: translateX(4px);
    color: #ffffff;
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.12);
}

.sidebar-link.active {
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(15, 118, 110, 0.18)),
        rgba(255, 255, 255, 0.08);
    border-color: rgba(96, 165, 250, 0.24);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
}

.sidebar-link i {
    flex-shrink: 0;
}

.sidebar-link__text {
    flex: 1;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.nav-badge--accent {
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.18);
}

.nav-badge--success {
    color: #d1fae5;
    background: rgba(5, 150, 105, 0.18);
}

.nav-badge--danger {
    color: #fee2e2;
    background: rgba(220, 38, 38, 0.18);
}

.app-sidebar__footer {
    margin: 4px 4px 0;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.team-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-badge {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-weight: 700;
    color: #eff6ff;
    background: linear-gradient(135deg, #2563eb 0%, #0f766e 100%);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.team-card__meta strong,
.team-card__meta span,
.team-card__meta small {
    display: block;
}

.team-card__meta strong {
    color: #f8fafc;
    font-size: 0.96rem;
}

.team-card__meta span {
    margin-top: 4px;
    color: var(--text-on-dark-muted);
    font-size: 0.82rem;
}

.team-card__meta small {
    margin-top: 6px;
    color: #bfdbfe;
    font-size: 0.75rem;
    font-weight: 600;
}

.app-main {
    position: relative;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.app-main__inner {
    width: min(100%, calc(var(--content-width) + 64px));
    margin: 0 auto;
    padding: 16px 24px 32px;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    padding-top: 0;
}

.app-topbar__surface {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}


.app-topbar__notice {
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.98));
    color: #9a3412;
    font-size: 0.84rem;
    line-height: 1.5;
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.08);
}

.app-topbar__notice strong {
    color: #7c2d12;
}

.app-topbar__intro {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.app-topbar__title {
    min-width: 0;
}

.app-topbar__title p {
    margin: 0 0 3px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--accent);
    display: none;
}

.app-topbar__title h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-strong);
}

.app-topbar__title span {
    margin-top: 4px;
    max-width: 620px;
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--text-muted);
    display: none;
}

.app-topbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.status-chip {
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border-soft);
    color: var(--text-body);
    font-size: 0.8rem;
    font-weight: 600;
    display: none;
}

.status-chip__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(5, 150, 105, 0.14);
}

.search-shell {
    position: relative;
    align-items: center;
    min-width: 220px;
    max-width: 280px;
    width: 100%;
    display: none;
}

.search-shell i {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 42px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.92);
    color: var(--text-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-input:focus {
    outline: none;
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--text-body);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease;
}

.icon-button:hover {
    transform: translateY(-1px);
    color: var(--text-strong);
    border-color: rgba(37, 99, 235, 0.22);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.icon-button--ghost {
    width: 40px;
    height: 40px;
    color: var(--text-on-dark-muted);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(148, 163, 184, 0.1);
}

.icon-button--ghost:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: none;
}

.icon-button--surface {
    background: rgba(248, 250, 252, 0.88);
}

#sidebar-toggle,
#sidebar-close {
    display: none;
}

.notification-button {
    position: relative;
}

.notification-button__dot {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.profile-dropdown {
    position: relative;
}

.profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 3px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-strong);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.profile-trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.09);
}

.profile-trigger__text {
    display: none;
}

.profile-trigger__text strong {
    font-size: 0.84rem;
}

.profile-trigger__text span {
    margin-top: 2px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.profile-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 220px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
}

.profile-menu.hidden {
    display: none;
}

.profile-menu__link,
.profile-menu__button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    font-size: 0.9rem;
    color: var(--text-body);
    text-align: left;
}

.profile-menu__link:hover,
.profile-menu__button:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--text-strong);
}

.profile-menu__divider {
    margin: 8px 4px;
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.profile-menu__button--danger {
    color: var(--danger);
}

.app-page {
    padding: 12px 0 20px;
}

.profile-trigger .avatar-badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 0.74rem;
    box-shadow: none;
}

.app-footer {
    padding-top: 8px;
}

.app-footer__surface {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.app-footer__copy strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.94rem;
    color: var(--text-strong);
}

.app-footer__copy span {
    display: block;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.app-footer__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border-soft);
    color: var(--text-body);
    font-size: 0.8rem;
    font-weight: 600;
}

.footer-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.fab {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 35;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    height: 56px;
    border: 0;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--info) 100%);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 44px rgba(37, 99, 235, 0.3);
}

.fab span {
    font-size: 0.88rem;
    font-weight: 600;
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 90;
    display: grid;
    gap: 12px;
}

.card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 52%, #38bdf8 100%);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.26);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.28);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.94));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.btn-outline {
    color: #0f3ea8;
    border-color: rgba(37, 99, 235, 0.24);
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.72), rgba(255, 255, 255, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-outline:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.24);
    outline-offset: 2px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--text-body);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-body);
}

.form-input,
.form-select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-strong);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea.form-input {
    padding: 12px 14px;
    line-height: 1.5;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}


.border-red-500 {
    border-color: rgba(220, 38, 38, 0.72) !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead th {
    padding: 16px 20px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: none;
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.08);
}

.table tbody td {
    padding: 16px 18px;
    font-size: 0.92rem;
    color: var(--text-body);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.table tbody tr:hover {
    background: rgba(37, 99, 235, 0.04);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.badge-success {
    color: #065f46;
    background: rgba(16, 185, 129, 0.14);
}

.badge-warning {
    color: #92400e;
    background: rgba(245, 158, 11, 0.16);
}

.badge-danger {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.16);
}

.badge-info {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.14);
}

.badge-primary {
    color: #6d28d9;
    background: rgba(139, 92, 246, 0.16);
}

.badge-secondary {
    color: #475569;
    background: rgba(148, 163, 184, 0.14);
}


.client-workflow-badge {
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.client-workflow-badge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.client-workflow-badge__dot,
.client-workflow-badge__orb {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.88;
}

.client-workflow-badge__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981 0%, #0f766e 100%);
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.28);
}

.client-workflow-badge--waiting .client-workflow-badge__dot {
    animation: clientBadgeBlink 1.3s ease-in-out infinite;
}

.client-workflow-badge--approved {
    color: #065f46;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(13, 148, 136, 0.18));
    border: 1px solid rgba(16, 185, 129, 0.24);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.14);
}

.client-workflow-badge--final-approved {
    color: #14532d;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.22));
    border: 1px solid rgba(34, 197, 94, 0.24);
    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.16);
}

.client-workflow-badge--final-waiting {
    color: #9a3412;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(249, 115, 22, 0.14));
    border: 1px solid rgba(251, 191, 36, 0.24);
}

.client-workflow-badge--approved::after,
.client-workflow-badge--final-approved::after,
.client-workflow-badge--final-waiting::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.38) 45%, transparent 70%);
    transform: translateX(-130%);
    animation: clientBadgeShine 2.8s ease-in-out infinite;
    pointer-events: none;
}

.client-workflow-badge--final-waiting .client-workflow-badge__dot {
    animation: clientBadgeBlink 1.45s ease-in-out infinite;
}

.client-workflow-badge--static::after {
    display: none;
}

.client-workflow-badge--static .client-workflow-badge__dot,
.client-workflow-badge--static .client-workflow-badge__orb,
.client-workflow-badge--static .client-workflow-badge__check {
    animation: none !important;
}

.action-group,
.client-table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.action-btn,
.client-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.83rem;
    font-weight: 700;
    white-space: nowrap;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease;
}

.action-btn:hover,
.client-action-btn:hover {
    transform: translateY(-1px);
}

.action-btn svg,
.client-action-btn svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.action-btn__label,
.client-action-btn__label {
    line-height: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.action-btn--neutral,
.client-action-btn--neutral {
    color: var(--text-strong);
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}

.action-btn--primary,
.action-btn--accent,
.client-action-btn--accent {
    color: var(--accent-strong);
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
}

.action-btn--success {
    color: #047857;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.18);
}

.action-btn--danger,
.client-action-btn--danger {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.18);
}


.client-reject-panel {
    border: 1px solid rgba(244, 63, 94, 0.2);
    background: linear-gradient(135deg, rgba(255, 241, 242, 0.96), rgba(255, 255, 255, 0.98));
}

.client-reject-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.client-reject-panel__eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #be123c;
}

.client-reject-panel__header h5 {
    margin: 8px 0 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
}

.client-reject-panel__copy {
    margin: 8px 0 0;
    max-width: 64ch;
    color: #64748b;
    line-height: 1.55;
}

.client-reject-panel__dismiss {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(244, 63, 94, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #be123c;
    font-size: 1.4rem;
    line-height: 1;
}

.client-reject-panel__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.client-reject-panel__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(190, 24, 93, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.client-reject-panel__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(190, 24, 93, 0.28);
}

.action-btn--icon-only {
    width: 38px;
    min-width: 38px;
    padding: 0;
    border-radius: 999px;
    box-shadow: none;
}

@media (max-width: 767px) {
    .action-group,
    .client-table-actions {
        width: 100%;
    }

    .action-btn,
    .client-action-btn {
        flex: 1 1 calc(50% - 4px);
        min-height: 40px;
    }

    .action-btn--icon-only {
        flex: 0 0 40px;
    }

    .client-reject-panel__actions {
        flex-direction: column-reverse;
    }

    .client-reject-panel__submit,
    .client-reject-panel__actions .btn-outline {
        width: 100%;
    }
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 24px;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-panel);
}

.toast {
    min-width: 280px;
    max-width: 360px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.14);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
}

.toast-success {
    border-color: rgba(16, 185, 129, 0.24);
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.24);
}

.toast-warning {
    border-color: rgba(245, 158, 11, 0.24);
}

.toast-info {
    border-color: rgba(59, 130, 246, 0.24);
}

.loading,
.skeleton {
    border-radius: 16px;
    background: linear-gradient(
        90deg,
        rgba(226, 232, 240, 0.9) 0%,
        rgba(241, 245, 249, 1) 50%,
        rgba(226, 232, 240, 0.9) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.3s linear infinite;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shadow-card {
    box-shadow: var(--shadow-soft);
}

.shadow-card-lg {
    box-shadow: var(--shadow-panel);
}

.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.is-search-hidden {
    display: none !important;
}

.progress-track {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.95);
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
}

.progress-fill--desktop {
    width: 68.5%;
}

.progress-fill--mobile {
    width: 24.3%;
}

.progress-fill--tablet {
    width: 7.2%;
}

.progress-fill--full {
    width: 100%;
}

.progress-fill--32 {
    width: 32%;
}

.progress-fill--89 {
    width: 8.9%;
}

.progress-fill--267 {
    width: 2.67%;
}

.country-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: var(--text-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes clientBadgeBlink {
    0%, 100% {
        opacity: 0.45;
        transform: scale(0.92);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.12);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.12);
    }
}

@keyframes clientBadgeShine {
    0%, 100% {
        transform: translateX(-130%);
    }

    55% {
        transform: translateX(130%);
    }
}

@keyframes clientFloatGlow {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate3d(-6px, 8px, 0) scale(1.08);
        opacity: 1;
    }
}

@keyframes clientCelebratePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 18px 30px rgba(5, 150, 105, 0.24),
            inset 0 2px 10px rgba(255, 255, 255, 0.24);
    }

    50% {
        transform: scale(1.06);
        box-shadow:
            0 22px 38px rgba(5, 150, 105, 0.3),
            inset 0 2px 10px rgba(255, 255, 255, 0.3);
    }
}

@keyframes clientConfettiFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.72;
    }

    50% {
        transform: translateY(10px) rotate(18deg);
        opacity: 1;
    }
}

@keyframes shimmer {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.animate-slide-in {
    animation: slideIn 0.3s ease-in-out;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.7);
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.62);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.82);
}

@media (max-width: 1199px) {
    .app-topbar__actions {
        justify-content: flex-end;
    }
}

@media (max-width: 1023px) {
    .app-sidebar {
        transform: translateX(-100%);
        padding: 14px 12px 12px;
    }

    #sidebar-toggle,
    #sidebar-close {
        display: inline-flex;
    }

    .app-main {
        margin-left: 0;
    }

    .app-main__inner {
        padding: 12px 14px 24px;
    }

    .app-topbar__intro {
        width: auto;
    }

    .app-topbar__surface {
        padding: 12px 14px;
        border-radius: 18px;
    }

}

@media (max-width: 767px) {
    .app-sidebar {
        width: min(86vw, 320px);
    }

    .app-topbar__surface {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .app-topbar__notice {
        margin-top: 8px;
        padding: 11px 12px;
        font-size: 0.8rem;
    }

    .app-topbar__intro {
        flex-direction: row;
        gap: 10px;
        min-width: 0;
    }

    .app-topbar__actions {
        width: auto;
        margin-left: auto;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .app-topbar__title h1 {
        font-size: 1.02rem;
        line-height: 1.15;
    }

    .icon-button {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .app-footer__surface {
        flex-direction: column;
        align-items: center;
    }

    .fab {
        right: 18px;
        bottom: 18px;
        padding: 0;
        width: 56px;
        justify-content: center;
    }

    .fab span {
        display: none;
    }
}

@media print {
    .app-sidebar,
    .app-topbar,
    .fab,
    #toast-container,
    #modal-container,
    .no-print {
        display: none !important;
    }

    .app-main {
        margin-left: 0;
    }

    .app-main__inner {
        width: 100%;
        padding: 0;
    }
}

.registration-modal--wide .modal-content {
    width: min(100%, 1040px);
}

.registration-stage {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.registration-stage__item {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(248, 250, 252, 0.84);
}

.registration-stage__label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: none;
    color: var(--text-muted);
}

.registration-stage__value {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-strong);
}

.registration-layout {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
}

.registration-layout__main,
.registration-layout__side {
    min-width: 0;
}

.registration-panel {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
}

.registration-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.registration-panel__header h4 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-strong);
}

.registration-panel__meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.registration-help {
    margin: 8px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.registration-warning {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-size: 0.86rem;
    line-height: 1.5;
}

.registration-warning.hidden {
    display: none;
}

.registration-warning--danger {
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.24);
    background: rgba(254, 242, 242, 0.95);
}

.registration-warning--success {
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.24);
    background: rgba(236, 253, 245, 0.96);
}

.registration-warning--muted {
    color: var(--text-body);
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(248, 250, 252, 0.96);
}

.registration-preview {
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(15, 118, 110, 0.04));
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.registration-preview__nodes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.registration-preview__item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.registration-preview__node {
    min-width: 170px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.registration-preview__node strong,
.registration-preview__node span {
    display: block;
}

.registration-preview__node strong {
    margin-top: 6px;
    color: var(--text-strong);
}

.registration-preview__node span {
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.registration-preview__eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: none;
    color: var(--accent);
}

.registration-preview__connector {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-strong);
}

.registration-safeguards {
    display: grid;
    gap: 12px;
}

.registration-safeguard {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(248, 250, 252, 0.92);
}

.registration-safeguard strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text-strong);
}

.registration-safeguard p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.registration-timeline {
    display: grid;
    gap: 14px;
}

.registration-timeline__item {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 12px;
}

.registration-timeline__dot {
    width: 14px;
    height: 14px;
    margin-top: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--info) 100%);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.registration-timeline__body {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.registration-timeline__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.registration-timeline__head strong {
    color: var(--text-strong);
}

.registration-timeline__head span,
.registration-timeline__body p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.registration-timeline__meta {
    margin-top: 6px !important;
}

.registration-confirm__summary {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(248, 250, 252, 0.92);
    color: var(--text-body);
}

.registration-check {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-body);
}

.registration-check input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-outline:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
    box-shadow: none;
}

.form-input:disabled,
.form-select:disabled,
textarea.form-input:disabled {
    cursor: not-allowed;
    background: rgba(241, 245, 249, 0.96);
    color: var(--text-muted);
}

@media (max-width: 1023px) {
    .registration-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .registration-stage {
        grid-template-columns: 1fr;
    }

    .registration-preview__nodes {
        flex-direction: column;
    }

    .registration-preview__item {
        flex-direction: column;
        align-items: stretch;
    }

    .registration-preview__connector {
        width: 100%;
        height: 30px;
    }
}
body.modal-open {
    overflow: hidden;
}

.modal--app-screen {
    padding: 0;
}

.modal-content--app-screen {
    display: flex;
    flex-direction: column;
    width: min(100%, 1040px);
    max-height: min(92vh, 940px);
    overflow: hidden;
}

.user-modal-shell {
    width: min(100%, 980px);
}

#user-modal #user-form {
    flex: 1 1 auto;
    min-height: 0;
}

.user-form-body {
    gap: 20px;
    min-height: 0;
}

.user-modal__footer {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
}

.user-delete-modal__content {
    display: flex;
    flex-direction: column;
    width: min(96vw, 960px);
    max-width: 960px;
    max-height: min(92vh, 920px);
    background: linear-gradient(180deg, #fff7f7 0%, #ffffff 18%, #f8fafc 100%);
    overflow: hidden;
}

.user-delete-modal__body {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
}

.user-delete-client-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.92);
}

.user-delete-client-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.user-delete-client-card__meta {
    display: grid;
    gap: 4px;
    font-size: 0.85rem;
    color: #64748b;
}

.user-delete-client-card__actions {
    display: flex;
    justify-content: flex-end;
}

.user-delete-summary-card {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.9);
}

.user-delete-summary-card p {
    margin: 0;
}

.user-delete-summary-card__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #94a3b8;
}

.user-delete-summary-card__value {
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

@media (max-width: 767px) {
    .user-delete-modal__content {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 24px;
    }

    #user-delete-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .user-delete-client-card {
        padding: 14px 16px;
        border-radius: 20px;
    }
}

.registration-modal__header {
    padding-bottom: 8px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.96);
}

.registration-modal__body {
    flex: 1;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    padding: 0 24px 12px;
}

.registration-modal__footer {
    padding: 0 24px 24px;
    background: rgba(255, 255, 255, 0.96);
}

@media (max-width: 767px) {
    .modal--app-screen {
        inset: 0;
        padding: 0;
        place-items: stretch;
    }

    .modal--app-screen .modal-backdrop {
        display: none;
    }

    .modal--app-screen .modal-content--app-screen {
        width: 100%;
        max-width: none;
        max-height: none;
        height: 100vh;
        height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background:
            radial-gradient(circle at top center, rgba(37, 99, 235, 0.08), transparent 28rem),
            linear-gradient(180deg, #f8fbff 0%, #ffffff 18%, #f5f9ff 100%);
    }

    .registration-modal__header {
        padding-bottom: 14px;
        position: sticky;
        top: 0;
        z-index: 3;
        padding: calc(env(safe-area-inset-top, 0px) + 16px) 18px 16px;
        backdrop-filter: blur(16px);
    }

    .registration-modal__header h3 {
        font-size: 1.08rem;
    }

    .registration-modal__header p {
        margin-top: 6px;
        max-width: 28ch;
        line-height: 1.45;
    }

    .registration-modal__body {
        padding: 0 16px 12px;
    }

    .registration-modal__footer {
        position: sticky;
        bottom: 0;
        z-index: 3;
        padding: 14px 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
        border-top: 1px solid rgba(148, 163, 184, 0.16);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
    }

    .registration-modal__footer .btn-outline,
    .registration-modal__footer .btn-primary {
        width: 100%;
        min-height: 50px;
        border-radius: 16px;
    }

    .registration-panel {
        padding: 16px;
        border-radius: 20px;
    }

    .registration-panel__header {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .registration-stage__item {
        padding: 13px 14px;
    }

    .registration-preview {
        padding: 14px;
    }
}

.client-step-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.01em;
}

.client-step-pill__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 auto;
}

.client-step-pill__label--mobile {
    display: none;
}

.client-stepper-grid {
    align-items: stretch;
}

.client-step-pill.is-active {
    border-color: rgba(37, 99, 235, 0.28);
    background: rgba(219, 234, 254, 0.92);
    color: #1d4ed8;
}

.client-step-pill.is-complete {
    border-color: rgba(16, 185, 129, 0.24);
    background: rgba(236, 253, 245, 0.92);
    color: #047857;
}


.client-step-pill.is-clickable {
    cursor: pointer;
}

.client-step-pill.is-clickable:hover {
    border-color: rgba(37, 99, 235, 0.24);
    color: #1d4ed8;
}

.client-form-alert {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(248, 113, 113, 0.28);
    background: rgba(254, 242, 242, 0.95);
    color: #991b1b;
    font-size: 0.9rem;
    font-weight: 600;
}

.client-form-alert--success {
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(236, 253, 245, 0.96);
    color: #166534;
}


.client-stage-spotlight {
    display: grid;
    gap: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.client-stage-spotlight--waiting {
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.9), rgba(255, 255, 255, 0.98));
    border-color: rgba(59, 130, 246, 0.2);
}

.client-stage-spotlight--approved {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(240, 253, 250, 0.98));
    border-color: rgba(16, 185, 129, 0.24);
}

.client-stage-spotlight--final-waiting {
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.98));
    border-color: rgba(245, 158, 11, 0.22);
}

.client-stage-spotlight--final-approved {
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.96), rgba(236, 253, 245, 0.98));
    border-color: rgba(34, 197, 94, 0.22);
}

.client-stage-spotlight__badge {
    display: flex;
    justify-content: flex-start;
}

.client-stage-spotlight__eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0f766e;
}

.client-stage-spotlight__body h5 {
    margin: 8px 0 0;
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
}

.client-stage-spotlight__body p {
    margin: 8px 0 0;
    color: #475569;
    line-height: 1.55;
}

.client-celebration-banner {
    position: relative;
    overflow: hidden;
    padding: 22px 22px;
    border-radius: 26px;
    border: 1px solid rgba(16, 185, 129, 0.24);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.42), transparent 26%),
        linear-gradient(135deg, rgba(236, 253, 245, 0.99), rgba(219, 234, 254, 0.95) 52%, rgba(240, 253, 250, 0.96));
    box-shadow: 0 24px 48px rgba(16, 185, 129, 0.16);
}

.client-celebration-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 18%, rgba(255,255,255,0.42) 38%, transparent 58%);
    transform: translateX(-130%);
    animation: clientBadgeShine 3.1s ease-in-out infinite;
    pointer-events: none;
}

.client-celebration-banner__content {
    position: relative;
    z-index: 1;
}

.client-celebration-banner__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.client-celebration-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.client-celebration-banner__eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: clientBadgeBlink 1.4s ease-in-out infinite;
}

.client-celebration-banner__badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.client-celebration-banner__hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 210px;
    gap: 16px;
    align-items: center;
    margin-top: 14px;
}

.client-celebration-banner__seal {
    box-shadow:
        0 18px 30px rgba(5, 150, 105, 0.16),
        inset 0 2px 10px rgba(255, 255, 255, 0.24);
    animation: clientCelebratePulse 2.2s ease-in-out infinite;
}

.client-celebration-banner__seal--approved {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #34d399, #059669 64%, #047857 100%);
    color: #ecfdf5;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.client-celebration-banner__seal--card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 210px;
    padding: 8px 8px 10px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.74), rgba(236, 253, 245, 0.94));
    color: #047857;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.client-celebration-banner__seal span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 0;
    text-align: center;
    line-height: 1.05;
}

.client-celebration-banner h5 {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 800;
    color: #0f172a;
}

.client-celebration-banner p {
    margin: 8px 0 0;
    max-width: 60ch;
    color: #475569;
    line-height: 1.55;
}

.client-celebration-banner__gif {
    display: block;
    width: 100%;
    max-width: 192px;
    height: 122px;
    object-fit: cover;
    border-radius: 16px;
    filter: drop-shadow(0 10px 18px rgba(14, 165, 233, 0.12));
}

.client-celebration-banner__metrics {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.client-celebration-banner__metric {
    position: relative;
    z-index: 1;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(10px);
}

.client-celebration-banner__metric span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0f766e;
}

.client-celebration-banner__metric strong {
    display: block;
    margin-top: 8px;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.35;
}

.client-celebration-banner__spark {
    position: absolute;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(255,255,255,0));
    pointer-events: none;
}

.client-celebration-banner__spark--one {
    top: -26px;
    right: 38px;
    width: 150px;
    height: 150px;
    animation: clientFloatGlow 4.2s ease-in-out infinite;
}

.client-celebration-banner__spark--two {
    right: -16px;
    bottom: -30px;
    width: 120px;
    height: 120px;
    animation: clientFloatGlow 3.7s ease-in-out infinite reverse;
}

.client-celebration-banner__spark--three {
    left: -18px;
    top: 34px;
    width: 96px;
    height: 96px;
    animation: clientFloatGlow 4.6s ease-in-out infinite;
}

.client-celebration-banner__confetti {
    position: absolute;
    width: 12px;
    height: 22px;
    border-radius: 999px;
    opacity: 0.82;
    pointer-events: none;
    animation: clientConfettiFloat 3.2s ease-in-out infinite;
}

.client-celebration-banner__confetti--one {
    top: 26px;
    right: 110px;
    background: linear-gradient(180deg, #34d399, #10b981);
}

.client-celebration-banner__confetti--two {
    top: 54px;
    right: 70px;
    background: linear-gradient(180deg, #38bdf8, #2563eb);
    animation-delay: 0.4s;
}

.client-celebration-banner__confetti--three {
    top: 34px;
    right: 32px;
    background: linear-gradient(180deg, #f59e0b, #ef4444);
    animation-delay: 0.9s;
}

.client-celebration-banner__confetti--four {
    top: 18px;
    left: 120px;
    background: linear-gradient(180deg, #a78bfa, #6366f1);
    animation-delay: 0.6s;
}

.client-celebration-banner--readonly {
    border-color: rgba(148, 163, 184, 0.24);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.96));
    box-shadow: none;
}

.client-celebration-banner--readonly .client-celebration-banner__eyebrow {
    background: rgba(148, 163, 184, 0.12);
    color: #475569;
}

.client-celebration-banner--readonly .client-celebration-banner__eyebrow::before {
    background: #94a3b8;
    animation: none;
    box-shadow: none;
}

@media (max-width: 767px) {
    .client-celebration-banner {
        padding: 18px;
        border-radius: 22px;
    }

    .client-celebration-banner__hero {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .client-celebration-banner__seal--approved {
        width: 78px;
        height: 78px;
    }

    .client-celebration-banner__seal--card {
        min-width: 100%;
    }

    .client-celebration-banner__metrics {
        grid-template-columns: 1fr;
    }
}

.client-field-error {
    margin: 8px 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #b91c1c;
}

.client-upload-card:has(.client-file-input:disabled) {
    cursor: default;
    opacity: 0.72;
    transform: none;
    box-shadow: none;
}

.client-upload-card:has(.client-file-input:disabled):hover {
    border-color: rgba(148, 163, 184, 0.45);
    box-shadow: none;
    transform: none;
}

@media (max-width: 767px) {
    .client-stepper-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(92px, 1fr);
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .client-stepper-grid::-webkit-scrollbar {
        display: none;
    }

    .client-step-pill {
        gap: 6px;
        padding: 10px 8px;
        border-radius: 16px;
        font-size: 0.74rem;
        min-width: 92px;
        white-space: nowrap;
    }

    .client-step-pill__index {
        width: 22px;
        height: 22px;
        font-size: 0.72rem;
    }

    .client-step-pill__label--desktop {
        display: none;
    }

    .client-step-pill__label--mobile {
        display: inline;
    }
}
.client-upload-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 132px;
    padding: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), #ffffff);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.client-upload-card:hover {
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.client-upload-card.has-file {
    border-style: solid;
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.9), #ffffff);
}

.client-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.client-upload-card__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
}

.client-upload-card__meta {
    font-size: 0.85rem;
    line-height: 1.45;
    color: #475569;
    word-break: break-word;
}

.client-upload-card__status {
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    word-break: break-word;
}

.client-upload-card__status.is-uploaded {
    color: #047857;
}

@media (max-width: 639px) {
    .client-upload-card {
        min-height: 122px;
        padding: 14px;
        border-radius: 20px;
    }

    .client-upload-card__button {
        width: 100%;
        justify-content: center;
    }
}

.client-form-body {
    padding-bottom: 32px;
    gap: 20px;
}

.client-footer-spacer {
    height: 0;
    flex: 0 0 auto;
}

#client-modal #client-form {
    flex: 1 1 auto;
    min-height: 0;
}

#client-modal .client-form-body {
    min-height: 0;
}

#client-modal .client-modal__footer {
    position: sticky;
    bottom: 0;
    z-index: 4;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
}

.client-modal__footer {
    padding-top: 12px;
}

.client-modal__footer-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.client-modal__footer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    padding-bottom: 4px;
}

.client-modal__footer-actions .btn-outline,
.client-modal__footer-actions .btn-primary {
    margin-bottom: 0;
}

.client-modal__compact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.client-modal__footer-label--mobile {
    display: none;
}

@media (min-width: 640px) {
    .client-modal__footer-layout {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    #client-modal .registration-modal__header {
        display: none;
    }

    #client-modal .registration-modal__body {
        padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
    }

    .client-form-body {
        gap: 22px;
        padding-top: 0;
        padding-bottom: 24px;
    }

    .client-step-section {
        padding: 22px 18px;
    }

    #step-1 textarea.form-input {
        min-height: 132px;
        margin-bottom: 8px;
    }

    #client-modal .client-modal__footer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 5;
        padding: 16px 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
        border-top: 1px solid rgba(148, 163, 184, 0.16);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
    }

    .client-modal__footer-layout {
        gap: 16px;
    }

    .client-modal__footer-actions {
        flex: 1 1 auto;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        padding-bottom: 0;
    }

    .client-modal__compact-btn {
        min-height: 44px;
        padding: 10px 8px;
        border-radius: 14px;
        gap: 6px;
        font-size: 0.78rem;
    }

    .client-modal__footer-label--desktop {
        display: none;
    }

    .client-modal__footer-label--mobile {
        display: inline;
    }

    #prev-step.client-modal__compact-btn {
        flex: 0 0 76px;
        min-width: 76px;
        padding-inline: 10px;
    }
}


.client-debit-card {
    position: relative;
    overflow: hidden;
    min-height: 216px;
    width: 100%;
    max-width: 414px;
    padding: 22px;
    border-radius: 24px;
    color: #f8fafc;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.32), transparent 22%),
        linear-gradient(135deg, #0f172a 0%, #1d4ed8 48%, #0f766e 100%);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}

.client-debit-card__shine {
    position: absolute;
    inset: -30% auto auto -10%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 68%);
    pointer-events: none;
}

.client-debit-card__brand,
.client-debit-card__meta,
.client-debit-card__number,
.client-debit-card__chip {
    position: relative;
    z-index: 1;
}

.client-debit-card__brand {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.client-debit-card__eyebrow,
.client-debit-card__meta span {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.78);
}

.client-debit-card__brand strong,
.client-debit-card__meta strong {
    display: block;
    margin-top: 5px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.client-debit-card__network {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.9);
}

.client-debit-card__chip {
    width: 50px;
    height: 38px;
    margin-top: 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.client-debit-card__number {
    margin-top: 28px;
    font-family: var(--font-display);
    font-size: 1.16rem;
    letter-spacing: 0.22em;
    color: #f8fafc;
}

.client-debit-card__meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
}

@media (max-width: 767px) {
    .client-debit-card {
        min-height: 0;
        aspect-ratio: 1.6 / 1;
        padding: 18px 16px;
        border-radius: 20px;
        max-width: none;
    }

    .client-debit-card__number {
        margin-top: 24px;
        font-size: clamp(0.95rem, 3.6vw, 1.08rem);
        letter-spacing: 0.14em;
    }

    .client-debit-card__meta {
        gap: 12px;
        margin-top: 22px;
    }

    .client-debit-card__chip {
        margin-top: 24px;
        width: 46px;
        height: 34px;
    }
}

.client-document-card {
    min-width: 0;
}

.client-document-card__filename {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.client-card-journey__label {
    min-width: 0;
}

@media (max-width: 767px) {
    #client-details-content {
        overflow-x: hidden;
    }

    .client-card-journey__tracker {
        gap: 8px;
    }

    .client-card-journey__track-item {
        gap: 8px;
    }

    .client-card-journey__step {
        height: 34px;
        width: 34px;
        font-size: 0.92rem;
    }

    .client-card-journey__labels {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .client-card-journey__label {
        text-align: left;
        padding: 10px 12px;
    }

    .client-card-journey__label p {
        line-height: 1.35;
    }

    .client-document-card__footer {
        flex-wrap: wrap;
        align-items: flex-start;
    }
}



/* Applicant application app screen */
.application-shell {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}

.application-hero,
.application-card {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.application-card {
    overflow: hidden;
}

.application-card #application-documents article {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.application-profile-form {
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.application-preview-frame {
    border-radius: 24px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 249, 0.95) 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.application-profile-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.application-identity-note-grid {
    display: grid;
    gap: 12px;
}

.application-input-stack {
    display: grid;
    gap: 18px;
}

.application-field-panel {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    width: 100%;
}

.application-field-panel .form-input,
.application-field-panel .form-textarea {
    margin-top: 10px;
    width: 100%;
    display: block;
}

.application-sticky-bar {
    position: sticky;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 20;
}

.application-sticky-bar__inner {
    margin: 0 auto;
    max-width: 100%;
}

.application-submit-shell {
    background:
        linear-gradient(135deg, rgba(14, 116, 144, 0.06) 0%, rgba(255, 255, 255, 0.9) 45%, rgba(14, 165, 233, 0.12) 100%);
    border-radius: 22px;
    padding: 12px;
}

.application-submit-button {
    min-width: 220px;
    min-height: 52px;
    padding-inline: 22px;
    box-shadow: 0 14px 30px rgba(2, 132, 199, 0.22);
}

@media (min-width: 768px) {
    .application-shell {
        padding-bottom: 32px;
    }

    .application-sticky-bar {
        bottom: 0;
    }

    .application-sticky-bar__inner {
        max-width: 560px;
        margin-left: auto;
    }

    .application-identity-note-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.filter-shell {
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.98));
}

.filter-shell__header {
    display: none;
}

.filter-shell__eyebrow {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: none;
    color: var(--accent);
}

.filter-shell__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.06rem;
    color: var(--text-strong);
}

.filter-shell__description {
    margin: 8px 0 0;
    max-width: 64ch;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.filter-shell__tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-shell__groups,
.filter-shell__groups--clients {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 10px;
}

.filter-group {
    min-width: 0;
    flex: 0 0 108px;
}

.filter-group--primary {
    flex: 1 1 240px;
}

.filter-group--action {
    flex: 0 0 96px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.filter-group:nth-child(4) {
    flex-basis: 144px;
}

.filter-shell__groups--clients .filter-group:nth-child(4) {
    flex-basis: 152px;
}

.filter-reset-btn {
    width: 100%;
    justify-content: center;
}

.filter-group__label {
    display: none;
    margin-bottom: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--text-muted);
}

.filter-group .form-input,
.filter-group .form-select,
.filter-reset-btn {
    width: 100%;
    min-height: 40px;
    font-size: 0.84rem;
    border-radius: 12px;
}

.filter-group .form-input,
.filter-group .form-select {
    padding-left: 12px;
    padding-right: 12px;
}

.filter-group__label--ghost {
    display: none;
}

@media (max-width: 1279px) {
    .filter-shell__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding-bottom: 16px;
        margin-bottom: 16px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    }

    .filter-shell__groups,
    .filter-shell__groups--clients {
        display: grid;
        gap: 14px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
    }

    .filter-group {
        flex: initial;
    }

    .filter-group--primary {
        grid-column: 1 / span 2;
    }

    .filter-group--action {
        flex: initial;
    }

    .filter-group__label {
        display: block;
    }

    .filter-group__label--ghost {
        visibility: hidden;
        display: block;
    }
}

@media (max-width: 767px) {
    .filter-shell {
        padding: 16px;
        border-radius: 24px;
    }

    .filter-shell__header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 14px;
        padding-bottom: 14px;
    }

    .filter-shell__tools {
        width: 100%;
    }

    .filter-shell__tools .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .filter-shell__groups,
    .filter-shell__groups--clients {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .filter-group--primary,
    .filter-group--action {
        grid-column: auto;
    }

    .filter-group__label--ghost {
        display: none;
    }
}

.action-menu summary {
    list-style: none;
}

.action-menu summary::-webkit-details-marker {
    display: none;
}

.action-menu__panel {
    min-width: 220px;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(14px);
}

.action-menu__panel .action-btn {
    width: 100%;
    justify-content: flex-start;
}

@media (max-width: 767px) {
    .action-menu__panel {
        min-width: min(220px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
    }
}

#user-detail-modal .modal-content,
#user-detail-modal .user-detail-modal__content {
    width: min(96vw, 1320px);
    max-width: 1320px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}


#user-detail-hero,
#user-detail-summary,
#user-detail-metrics {
    min-width: 0;
}

#user-detail-summary > div,
#user-detail-metrics > div,
#user-detail-hero .user-detail-hero__meta > div,
#user-detail-hero .user-detail-hero__side > div {
    min-width: 0;
}

#user-detail-hero .user-detail-hero__main {
    min-width: 0;
}

#user-detail-hero .user-detail-hero__main p,
#user-detail-hero .user-detail-hero__main h4,
#user-detail-summary p,
#user-detail-metrics p {
    word-break: break-word;
}

.user-directory-person {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-directory-person--card {
    align-items: flex-start;
}

.user-directory-avatar {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.user-directory-avatar--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #0f766e 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.user-directory-avatar--image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #e2e8f0;
}

.user-directory-role-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.user-directory-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.user-avatar-upload-card {
    min-height: 128px;
}

#user-manager:disabled {
    cursor: not-allowed;
    background-color: #f8fafc;
    color: #94a3b8;
}

@media (max-width: 639px) {
    .user-directory-avatar {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }
}

@media (max-width: 1024px) {
    #user-detail-modal .modal-content,
    #user-detail-modal .user-detail-modal__content {
        width: min(96vw, 920px);
        max-width: min(96vw, 920px);
    }

    #user-detail-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #user-detail-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #user-detail-hero .user-detail-hero__layout {
        gap: 16px;
    }

    #user-detail-hero .user-detail-hero__main {
        flex-direction: column;
        align-items: center;
    }

    #user-detail-hero .user-detail-hero__meta,
    #user-detail-hero .user-detail-hero__side,
    #user-detail-hero .user-detail-hero__loading {
        grid-template-columns: 1fr;
    }

    #user-detail-hero .user-detail-hero__side {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    #user-detail-modal .modal-content,
    #user-detail-modal .user-detail-modal__content {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        border-radius: 24px;
    }

    #user-detail-modal .modal-content > div:first-child,
    #user-detail-modal .modal-content > div:last-child {
        padding-left: 16px;
        padding-right: 16px;
    }

    #user-detail-summary,
    #user-detail-metrics {
        grid-template-columns: 1fr;
    }

    #user-detail-hero {
        padding: 18px;
        border-radius: 24px;
    }

    #user-detail-hero .user-detail-hero__main {
        gap: 12px;
    }
}



.client-payment-qr-panel__layout {
    display: grid;
    gap: 18px;
}

.client-payment-qr-panel__frame {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.client-payment-qr-panel__image-shell {
    width: min(100%, 360px);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 246, 255, 0.98) 100%);
    border: 1px solid rgba(125, 211, 252, 0.55);
    box-shadow: 0 16px 36px rgba(14, 116, 144, 0.12);
}

.client-payment-qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 22px;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.client-payment-qr-panel__empty {
    max-width: 260px;
    text-align: center;
    font-size: 0.92rem;
    color: #64748b;
}

.client-payment-qr-panel__content {
    display: grid;
    gap: 12px;
}

.client-payment-qr-panel__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #0369a1;
}

.client-payment-qr-panel__content h5 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 700;
    color: #0f172a;
}

.client-payment-qr-panel__content p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.client-payment-qr-panel__tips {
    display: block;
    margin-top: 6px;
}

.client-payment-qr-panel__tips div {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(186, 230, 253, 0.9);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.client-payment-qr-panel__tips strong,
.client-payment-qr-panel__tips span {
    display: block;
}

.client-payment-qr-panel__tips strong {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0c4a6e;
}

.client-payment-qr-panel__tips span {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #475569;
}

.client-payment-qr-overlay {
    position: fixed;
    inset: 0;
    z-index: 85;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.client-payment-qr-overlay.hidden {
    display: none;
}

.client-payment-qr-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
}

.client-payment-qr-overlay__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 520px);
    padding: 18px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.32);
}

.client-payment-qr-overlay__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.96);
    color: #0f172a;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.client-payment-qr-overlay__image {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 22px;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

@media (min-width: 900px) {
    .client-payment-qr-panel__layout {
        grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
        align-items: center;
    }
}


.settings-qr-cropper {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.settings-qr-cropper.hidden {
    display: none;
}

.settings-qr-cropper__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
}

.settings-qr-cropper__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 820px);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 28px 68px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.settings-qr-cropper__header,
.settings-qr-cropper__footer {
    padding: 20px 24px;
}

.settings-qr-cropper__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.settings-qr-cropper__eyebrow {
    margin: 0 0 8px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7c3aed;
}

.settings-qr-cropper__header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.settings-qr-cropper__header p {
    margin: 8px 0 0;
    color: #64748b;
}

.settings-qr-cropper__close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.96);
    font-size: 1.5rem;
    line-height: 1;
    color: #0f172a;
    cursor: pointer;
}

.settings-qr-cropper__body {
    display: grid;
    gap: 20px;
    padding: 24px;
}

.settings-qr-cropper__viewport-wrap {
    display: flex;
    justify-content: center;
}

.settings-qr-cropper__viewport {
    position: relative;
    width: min(80vw, 320px);
    height: min(80vw, 320px);
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid rgba(148, 163, 184, 0.3);
    touch-action: none;
    cursor: grab;
}

.settings-qr-cropper__viewport:active {
    cursor: grabbing;
}

.settings-qr-cropper__image {
    position: absolute;
    top: 0;
    left: 0;
    user-select: none;
    -webkit-user-drag: none;
}

.settings-qr-cropper__mask {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.55), inset 0 0 0 9999px rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.settings-qr-cropper__controls {
    max-width: 520px;
    margin: 0 auto;
}

.settings-qr-cropper__range {
    width: 100%;
}

.settings-qr-cropper__hint {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

.settings-qr-cropper__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.settings-qr-cropper__actions {
    display: flex;
    gap: 12px;
}

@media (min-width: 860px) {
    .settings-qr-cropper__body {
        grid-template-columns: 360px minmax(0, 1fr);
        align-items: center;
    }

    .settings-qr-cropper__controls {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .settings-qr-cropper__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-qr-cropper__actions {
        width: 100%;
        flex-direction: column;
    }
}


.profile-shell {
    align-items: start;
}

.profile-hero {
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.7), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.profile-hero__layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.profile-hero__identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-hero__avatar-image,
.profile-hero__avatar-fallback {
    width: 92px;
    height: 92px;
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow: 0 18px 34px rgba(29, 78, 216, 0.16);
}

.profile-hero__avatar-image {
    display: block;
    object-fit: cover;
    background: #ffffff;
}

.profile-hero__avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1d4ed8 0%, #0f766e 100%);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.profile-hero__eyebrow,
.profile-section__eyebrow {
    margin: 0 0 8px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #2563eb;
}

.profile-section__eyebrow--rose {
    color: #e11d48;
}

.profile-hero__name,
.profile-section__title {
    margin: 0;
    color: #0f172a;
}

.profile-hero__name {
    font-size: 1.8rem;
    font-weight: 800;
}

.profile-hero__role,
.profile-section__copy {
    margin: 6px 0 0;
    color: #64748b;
}

.profile-hero__grid {
    display: grid;
    gap: 14px;
    margin-top: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-hero__card {
    padding: 16px;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(191, 219, 254, 0.7);
}

.profile-hero__card span,
.profile-note-item span,
.profile-password-note span,
.profile-document__muted {
    display: block;
    color: #64748b;
}

.profile-hero__card strong,
.profile-note-item strong,
.profile-password-note strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
}

.profile-section__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.profile-password-note,
.profile-note-item {
    padding: 14px 16px;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.78);
}

.profile-note-list {
    display: grid;
    gap: 12px;
}

.profile-avatar-editor {
    display: grid;
    gap: 12px;
}

.profile-avatar-preview-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-avatar-preview-card {
    padding: 14px;
    border-radius: 1.4rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.profile-avatar-preview-card__label {
    margin: 0 0 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

.profile-avatar-preview-card__frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(191, 219, 254, 0.8);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-preview-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-avatar-preview-card__fallback,
.profile-avatar-preview-card__empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-preview-card__fallback {
    background: linear-gradient(135deg, #1d4ed8 0%, #0f766e 100%);
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.profile-avatar-preview-card__empty {
    padding: 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(15, 118, 110, 0.06)),
        #ffffff;
}

.profile-document-card__head,
.profile-document-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.profile-document-card__footer {
    margin-top: 16px;
}

@media (max-width: 900px) {
    .profile-hero__layout,
    .profile-document-card__head,
    .profile-document-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-hero__identity {
        align-items: flex-start;
    }

    .profile-hero__grid {
        grid-template-columns: 1fr;
    }

    .profile-avatar-preview-grid {
        grid-template-columns: 1fr;
    }
}


.profile-password-rules {
    display: grid;
    gap: 10px;
}

.profile-password-rule {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #64748b;
}

.profile-password-rule span {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(255, 255, 255, 0.9);
    flex: 0 0 18px;
}

.profile-password-rule.is-met {
    color: #047857;
    font-weight: 600;
}

.profile-password-rule.is-met span {
    border-color: rgba(16, 185, 129, 0.9);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.85);
}
