@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700&display=swap");

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100dvh;
    font-family: var(--font-sans);
    background: radial-gradient(1200px 600px at 10% -10%, rgba(62, 232, 181, 0.12), transparent),
        radial-gradient(900px 500px at 100% 0%, rgba(64, 120, 255, 0.1), transparent),
        var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    padding-bottom: var(--safe-bottom);
}

body.landing-root--split {
    background: #070b14;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.landing {
    display: grid;
    min-height: 100dvh;
}

.landing__flash-slot {
    grid-column: 1 / -1;
    min-height: 0;
}

.landing__flash {
    grid-column: 1 / -1;
    margin: 0 clamp(1rem, 4vw, 2rem);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, 0.45);
    background: rgba(127, 29, 29, 0.35);
    color: #fecaca;
    font-size: 0.9rem;
}

.landing--split {
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .landing--split {
        grid-template-columns: 1fr 1fr;
    }
}

.landing__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 3rem);
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

@media (min-width: 900px) {
    .landing__panel {
        border-bottom: none;
    }

    .landing__panel--mgmt {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }
}

.landing__panel-head {
    position: relative;
    z-index: 1;
}

.landing__badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.landing__badge--mgmt {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.landing__badge--beneficiary {
    background: linear-gradient(90deg, rgba(255, 94, 129, 0.35), rgba(62, 232, 181, 0.35));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.landing__panel--mgmt {
    background:
        radial-gradient(900px 420px at 20% 0%, rgba(148, 163, 184, 0.12), transparent),
        linear-gradient(180deg, #0b1220 0%, #070b14 100%);
    color: #e8eef8;
}

.landing__panel--beneficiary {
    font-family: "Outfit", var(--font-sans);
    background:
        radial-gradient(700px 500px at 80% 10%, rgba(255, 94, 129, 0.45), transparent),
        radial-gradient(600px 480px at 10% 90%, rgba(62, 232, 181, 0.4), transparent),
        linear-gradient(145deg, #120a2e 0%, #1a0b3d 40%, #0a1628 100%);
    color: #fdf7ff;
}

.landing__panel--beneficiary::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 120deg, rgba(62, 232, 181, 0.08), rgba(255, 94, 129, 0.1), rgba(99, 102, 241, 0.08), rgba(62, 232, 181, 0.08));
    opacity: 0.5;
    animation: landing-orbit 28s linear infinite;
    pointer-events: none;
}

@keyframes landing-orbit {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing__panel--beneficiary::after {
        animation: none;
    }
}

.landing__brand {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

.landing__brand--beneficiary {
    background: linear-gradient(90deg, #fff, #b8fff0 45%, #ffc2d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing__lead {
    color: var(--color-text-muted);
    margin: 0 0 1.5rem;
    max-width: 38ch;
}

.landing__lead--mgmt {
    color: #94a3b8;
}

.landing__lead--beneficiary {
    color: rgba(255, 255, 255, 0.82);
}

.landing__hint {
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.45;
}

.card--mgmt {
    position: relative;
    z-index: 1;
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(148, 163, 184, 0.2);
}

.card--beneficiary {
    position: relative;
    z-index: 1;
    background: rgba(10, 22, 40, 0.55);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.landing__panel--beneficiary label {
    color: rgba(255, 255, 255, 0.75);
}

.landing__panel--beneficiary input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.btn--mgmt {
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    color: #0f172a;
}

.btn--beneficiary {
    background: linear-gradient(135deg, #3ee8b5, #ff5e81);
    color: #120a1f;
    box-shadow: 0 10px 30px rgba(62, 232, 181, 0.25);
}

.btn--beneficiary-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap-size);
    padding: 0 1.1rem;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.btn--beneficiary-ghost:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

input {
    width: 100%;
    min-height: var(--tap-size);
    padding: 0 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
    color: var(--color-text);
    font: inherit;
}

input:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap-size);
    padding: 0 1.1rem;
    border: none;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dim));
    color: #04221a;
}

.btn--ghost {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.app-sidebar {
    padding: 1rem;
}

.app-sidebar__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-sidebar__nav a {
    display: block;
    min-height: var(--tap-size);
    line-height: var(--tap-size);
    padding: 0 0.75rem;
    border-radius: 8px;
    color: var(--color-text);
}

.app-sidebar__nav a.is-active {
    background: var(--color-surface);
    color: var(--color-accent);
}

.modal[hidden] {
    display: none !important;
}

.modal:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: end center;
}

@media (min-width: 600px) {
    .modal:not([hidden]) {
        place-items: center;
    }
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.modal__panel {
    position: relative;
    width: min(100%, 480px);
    max-height: min(90dvh, 640px);
    overflow: auto;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 1rem;
    margin: 0;
}

@media (min-width: 600px) {
    .modal__panel {
        border-radius: var(--radius);
    }
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.modal__header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.modal__close {
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    min-width: var(--tap-size);
    min-height: var(--tap-size);
}

.site-footer {
    padding: 0.75rem 1rem 1.25rem;
    text-align: center;
}

.site-footer__version {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.65);
}

.page-shell {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(1rem, 4vw, 2rem);
}

.page-shell--beneficiary h1 {
    font-family: "Outfit", var(--font-sans);
}

.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;
}
