/* ============================================================
   INNFinite Tech — user portal design system
   Port of /LANDING/index.css for the 428px app frame.

   Theme: "navy frame"
   - Brand: Outfit (headings/UI) + Figtree (body), geometric like the INNFinite wordmark; navy ink, one solid accent blue (#3A5BFF).
   - Dark navy app chrome (top bar, tab bar, footer) with the light logo.
   - Pale blue canvas; content sits in white rounded panels (14px) with LANDING's soft shadow.
   - Hairlines divide rows *inside* panels. No gradients (logo + footer hairline only), no gradient
     text, no glow/coloured shadows, no glass blur, no pill buttons.

   Tokens use the LANDING names (--ink, --blue, --line …). The old --lx-* names are kept as
   aliases so existing page markup keeps rendering while pages are restyled.
   ============================================================ */

:root {
    --navy: #060A2E;
    --navy-2: #0B1244;
    --ink: #0A0E3A;
    --royal: #1530B8;
    --blue: #3A5BFF;
    --azure: #1A73F5;
    --periwinkle: #B3C3FF;
    --glow: #8EA6FF;
    --surface: #F6F8FF;
    --surface-2: #EEF2FF;
    --line: #E4E8F7;
    --line-strong: #CDD3EA;
    --muted: #4B5280;
    --muted-2: #7A82AB;
    --white: #ffffff;
    --canvas: #F1F4FC;
    --chrome: var(--navy);
    --chrome-line: rgba(255,255,255,0.08);
    --chrome-muted: #8F97C7;
    --on-dark: #AEB5DA;
    --success: #0F7A4A;
    --success-bg: #E8F6EF;
    --warning: #9A5B00;
    --warning-bg: #FFF4E0;
    --danger: #B42318;
    --danger-bg: #FDECEA;

    --gradient-brand: linear-gradient(90deg, #1530B8 0%, #3A5BFF 50%, #1A73F5 100%);

    --font-sans: 'Figtree', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;

    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 14px;
    --shadow-soft: 0 1px 2px rgba(10,14,58,0.05), 0 12px 32px -20px rgba(10,14,58,0.25);
    --shadow-pop: 0 2px 6px rgba(10,14,58,0.06), 0 24px 48px -24px rgba(10,14,58,0.35);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --appbar-h: 60px;
    --tabbar-h: 64px;

    /* Legacy aliases (pre-INNFinite design system) */
    --lx-canvas: var(--canvas);
    --lx-surface: var(--white);
    --lx-cream: var(--surface);
    --lx-violet: var(--blue);
    --lx-violet-deep: var(--royal);
    --lx-violet-ink: var(--ink);
    --lx-rose: var(--blue);
    --lx-grad: var(--ink);
    --lx-grad-soft: var(--surface-2);
    --lx-ink: var(--ink);
    --lx-ink-soft: var(--muted);
    --lx-muted: var(--muted);
    --lx-faint: var(--muted-2);
    --lx-line: var(--line);
    --lx-line-strong: var(--line-strong);
    --lx-font: var(--font-sans);
    --lx-ease: var(--ease);
}

/* ============================================================
   Base
   ============================================================ */
.user-layout,
.auth-layout {
    font-family: var(--font-sans) !important;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--canvas) !important;
    letter-spacing: normal;
    -webkit-font-smoothing: antialiased;
}
.user-layout .mobile-container { background: var(--canvas) !important; }
.user-layout h1, .user-layout h2, .user-layout h3, .user-layout h4, .user-layout h5, .user-layout h6,
.auth-layout h1, .auth-layout h2, .auth-layout h3, .auth-layout h4, .auth-layout h5, .auth-layout h6 {
    font-family: var(--font-heading) !important;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.user-layout ::selection, .auth-layout ::selection { background: var(--ink); color: var(--white); }
[x-cloak] { display: none !important; }
/* resources/css/app.css styles every <header> white + blurred; page headers here sit on the canvas/navy */
:where(.user-layout, .auth-layout) header:where(:not(.lx-appbar, .lx-auth__top)) { background-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.lx-appbar, .lx-auth__top { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Desktop: the app column sits on a cool surface with hairline edges */
@media (min-width: 640px) {
    body.user-layout, body.auth-layout { background: #E3E8F6 !important; }
    .user-layout .mobile-container,
    .auth-layout .lx-auth { box-shadow: 1px 0 0 var(--line), -1px 0 0 var(--line); }
}

/* ============================================================
   Typography (LANDING .label / .display / .title / .subtitle / .lead)
   ============================================================ */
.lx-label-tag, .lx-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.6rem;
}
.lx-display {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2.3rem, 10vw, 2.85rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.lx-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.75rem;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--ink);
}
.lx-title--grad { color: var(--ink); }
.lx-h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.6rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--ink);
}
.lx-h3, .lx-section-h {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.12rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--ink);
}
.lx-section-h { margin-bottom: 0.9rem; }
.lx-sub, .lx-lead { color: var(--muted); font-size: 1.05rem; line-height: 1.6; margin-top: 0.45rem; }
.lx-lead { margin-top: 0; }
.lx-copy { color: var(--muted); line-height: 1.7; }
.lx-caption { font-size: 0.85rem; color: var(--muted-2); }
.lx-accent { color: var(--blue); }
.lx-grad-text { color: var(--ink); }

.lx-link-arrow {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; color: var(--ink);
    text-decoration: underline; text-decoration-color: var(--line-strong);
    text-decoration-thickness: 1px; text-underline-offset: 0.35em;
    transition: color .2s ease, text-decoration-color .2s ease;
}
.lx-link-arrow svg { width: 1rem; height: 1rem; transition: transform .3s var(--ease); }
.lx-link-arrow:hover { color: var(--blue); text-decoration-color: var(--blue); }
.lx-link-arrow:hover svg { transform: translateX(3px); }

/* ============================================================
   Page scaffolding
   ============================================================ */
.lx-page { padding: 1.75rem 1.25rem 2rem; position: relative; }
.lx-aura { display: none; }
.lx-body { padding: 0 1.25rem 2rem; }
.lx-overlap { position: relative; z-index: 2; margin-top: -1.75rem; }
/* Page body on the canvas: panels stacked with even gaps */
.lx-stack { display: grid; gap: 0.9rem; padding: 1rem; }
.lx-stack > * { margin: 0 !important; }
.lx-panel__title { font-family: var(--font-heading); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--ink); }
.lx-panel__label { font-family: var(--font-heading); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.lx-block-label {
    font-family: var(--font-heading);
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--muted-2);
    margin: 2rem 0 0.75rem;
}
.lx-divider { height: 1px; background: var(--line); border: 0; margin: 1.25rem 0; }

/* Content sections (landing-style pages inside the app) */
.lx-section { position: relative; padding: 3rem 1.25rem; }
.lx-section--tight { padding: 2rem 1.25rem; }
.lx-section--surface { background: var(--surface); }
.lx-section--rule { border-bottom: 1px solid var(--line); }
.lx-section--dark { background: var(--navy); color: var(--white); }
.lx-section--dark h1, .lx-section--dark h2, .lx-section--dark h3, .lx-section--dark h4,
.lx-section--dark .lx-display, .lx-section--dark .lx-h2, .lx-section--dark .lx-h3, .lx-section--dark .lx-title { color: var(--white) !important; }
.lx-section--dark p, .lx-section--dark .lx-lead, .lx-section--dark .lx-copy { color: var(--on-dark); }
.lx-section--dark .lx-label-tag, .lx-section--dark .lx-eyebrow, .lx-section--dark .lx-accent { color: var(--glow); }
.lx-section--dark .lx-link-arrow { color: var(--white); text-decoration-color: rgba(255,255,255,0.35); }

/* ============================================================
   Immersive hero → LANDING dark section (flat navy, no glow)
   ============================================================ */
.lx-hero {
    position: relative;
    padding: 1.5rem 1.25rem 2rem;
    background: var(--navy);
    color: var(--white);
    border-bottom: 1px solid var(--navy);
}
.lx-hero::before, .lx-hero::after { content: none; }
.lx-hero__eyebrow {
    display: inline-block; font-family: var(--font-heading);
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--glow);
}
.lx-hero__title { font-family: var(--font-heading); font-weight: 600; font-size: 2rem; letter-spacing: -0.03em; line-height: 1.08; color: var(--white) !important; margin-top: 0.5rem; }
.lx-hero__sub { font-size: 0.98rem; color: var(--on-dark); margin-top: 0.4rem; }
.lx-hero__btns { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
/* Navy hero that panels overlap (use with .lx-overlap / .lx-stack--overlap) */
.lx-hero--lift { padding-bottom: 3.25rem; }
.lx-stack--overlap { margin-top: -2.25rem; position: relative; z-index: 2; padding-top: 0; }

/* ============================================================
   Cards (only for genuinely discrete items)
   ============================================================ */
.lx-card, .lx-panel {
    position: relative; background: var(--white);
    border: 1px solid rgba(228,232,247,0.7); border-radius: var(--radius-lg);
    padding: 1.25rem; box-shadow: var(--shadow-soft);
}
.lx-panel + .lx-panel, .lx-card + .lx-card { margin-top: 0.85rem; }
.lx-panel--flush { padding: 0; overflow: hidden; }
.lx-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.35rem; }
.lx-card--flush { padding: 0; overflow: hidden; }
.lx-card--surface { background: var(--surface); }
.lx-card--grad, .lx-card--ink { background: var(--ink); border-color: var(--ink); color: var(--white); }
.lx-card--grad::before { content: none; }
.lx-card--grad h1, .lx-card--grad h2, .lx-card--grad h3, .lx-card--ink h1, .lx-card--ink h2, .lx-card--ink h3 { color: var(--white) !important; }
.lx-card--grad p, .lx-card--ink p { color: var(--on-dark); }

/* ============================================================
   Buttons (LANDING .btn)
   ============================================================ */
.lx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    padding: 0.9rem 1.4rem; border-radius: var(--radius);
    font-family: var(--font-heading); font-weight: 600; font-size: 0.92rem; line-height: 1.2; letter-spacing: 0;
    white-space: nowrap; cursor: pointer; text-decoration: none;
    border: 1px solid transparent; box-shadow: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.lx-btn svg { width: 1.05rem; height: 1.05rem; transition: transform .3s var(--ease); }
.lx-btn:hover svg { transform: translateX(3px); }
.lx-btn:disabled, .lx-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.lx-btn--sm { padding: 0.6rem 1rem; font-size: 0.85rem; }
.lx-btn--lg { padding: 1.05rem 1.7rem; font-size: 0.98rem; }
.lx-btn--block { width: 100%; }

/* button.* selectors outrank Tailwind preflight's [type='submit'] background reset */
.lx-btn--primary, button.lx-btn--primary,
.lx-btn--grad, button.lx-btn--grad { background-color: var(--ink); color: var(--white); }
.lx-btn--primary:hover, button.lx-btn--primary:hover,
.lx-btn--grad:hover, button.lx-btn--grad:hover { background-color: var(--royal); }
.lx-btn--accent, button.lx-btn--accent { background-color: var(--blue); color: var(--white); }
.lx-btn--accent:hover, button.lx-btn--accent:hover { background-color: var(--royal); }
.lx-btn--outline, button.lx-btn--outline,
.lx-btn--ghost, button.lx-btn--ghost { background-color: transparent; color: var(--ink); border-color: var(--line-strong); }
.lx-btn--outline:hover, button.lx-btn--outline:hover,
.lx-btn--ghost:hover, button.lx-btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.lx-btn--light, button.lx-btn--light { background-color: var(--white); color: var(--ink); }
.lx-btn--light:hover, button.lx-btn--light:hover { background-color: var(--surface-2); }
.lx-btn--ghost-light, button.lx-btn--ghost-light { background-color: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.lx-btn--ghost-light:hover, button.lx-btn--ghost-light:hover { border-color: var(--white); }
.lx-btn--danger, button.lx-btn--danger { background-color: var(--danger); color: var(--white); }
.lx-btn--danger:hover, button.lx-btn--danger:hover { background-color: #8F1C13; }

/* ============================================================
   Forms (LANDING .form-label / .form-control)
   ============================================================ */
.lx-field { margin-bottom: 1.1rem; }
.lx-label {
    display: block; margin-bottom: 0.4rem;
    font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600; letter-spacing: 0; color: var(--ink);
}
.lx-input, .lx-select, .lx-textarea {
    width: 100%; padding: 0.8rem 0.95rem;
    font-family: var(--font-sans); font-size: 1rem; font-weight: 400; color: var(--ink);
    background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.lx-input::placeholder, .lx-textarea::placeholder { color: var(--muted-2); }
.lx-input:focus, .lx-select:focus, .lx-textarea:focus {
    outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(58,91,255,0.15);
}
.lx-input:disabled, .lx-input[readonly] { color: var(--muted); background: var(--surface); }
.lx-textarea { resize: vertical; min-height: 8rem; }
.lx-help { font-size: 0.85rem; color: var(--muted-2); margin-top: 0.35rem; }
.lx-error { font-size: 0.85rem; color: var(--danger); margin-top: 0.35rem; }
@supports (-webkit-touch-callout: none) {
    .lx-input, .lx-select, .lx-textarea { font-size: 16px; }
}

/* ============================================================
   Menu rows — hairline-divided (LANDING .row-list)
   ============================================================ */
.lx-list { background: var(--white); border: 1px solid rgba(228,232,247,0.7); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 0 1.1rem; }
.lx-row {
    display: flex; align-items: center; gap: 1rem; width: 100%; text-align: left;
    padding: 1.05rem 0; background: transparent; border: 0; border-top: 1px solid var(--line);
    text-decoration: none; cursor: pointer; color: inherit;
}
.lx-row:first-child { border-top: 0; }
.lx-row__ico { flex-shrink: 0; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; color: var(--blue); background: none; }
.lx-row__ico svg, .lx-row__ico i { width: 1.4rem; height: 1.4rem; stroke-width: 1.75; }
.lx-row__num { flex-shrink: 0; width: 2rem; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.lx-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.lx-row__label { font-family: var(--font-heading); font-weight: 600; font-size: 0.98rem; color: var(--ink); transition: color .2s ease; }
.lx-row__desc { font-size: 0.88rem; color: var(--muted-2); }
.lx-row__go { flex-shrink: 0; width: 1.1rem; height: 1.1rem; display: grid; place-items: center; color: var(--muted-2); background: none; border: 0; transition: transform .3s var(--ease), color .2s ease; }
.lx-row__go svg { width: 1.1rem; height: 1.1rem; }
.lx-row:hover .lx-row__label { color: var(--blue); }
.lx-row:hover .lx-row__go { color: var(--blue); transform: translateX(3px); }

/* Content rows (landing feature lists): <div class="lx-rowlist"><a class="lx-rowitem">…</a></div> */
.lx-rowlist { border-top: 1px solid var(--line); }
.lx-rowitem { display: grid; grid-template-columns: 1.5rem 1fr; gap: 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
a.lx-rowitem:hover .lx-h3 { color: var(--blue); }
.lx-section--dark .lx-rowlist, .lx-section--dark .lx-rowitem { border-color: rgba(255,255,255,0.12); }

/* Plain icon (no tile) */
.lx-icon { color: var(--blue); width: 1.5rem; height: 1.5rem; display: inline-grid; place-items: center; }
.lx-icon svg, .lx-icon i { width: 100%; height: 100%; stroke-width: 1.75; }
.lx-section--dark .lx-icon { color: var(--glow); }

/* Check list */
.lx-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.lx-checks li { position: relative; padding-left: 1.7rem; color: var(--muted); line-height: 1.55; }
.lx-checks li::before {
    content: ''; position: absolute; left: 0; top: 0.2rem; width: 1.1rem; height: 1.1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A5BFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lx-section--dark .lx-checks li { color: #C9CEEA; }
.lx-section--dark .lx-checks li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238EA6FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Vertical stack split by hairlines */
.lx-stack-rules > * + * { border-top: 1px solid var(--line); }
.lx-section--dark .lx-stack-rules > * + * { border-color: rgba(255,255,255,0.12); }

/* ============================================================
   Media
   ============================================================ */
.lx-photo { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); }
.lx-shot { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.lx-shot img { display: block; width: 100%; height: auto; }

/* Partner logos */
.lx-logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.9rem; }
.lx-logo-row img { height: 1.3rem; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.55; }
.lx-logo-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.lx-logo-wall > * { display: flex; align-items: center; justify-content: center; min-height: 5rem; padding: 1rem; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lx-logo-wall img { max-height: 1.4rem; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.7; }

/* ============================================================
   Stats
   ============================================================ */
.lx-stat { position: relative; padding-left: 0; }
.lx-stat::before { content: none; }
.lx-stat__num, .lx-stat-value {
    font-family: var(--font-heading); font-weight: 600; font-size: 1.9rem; line-height: 1;
    letter-spacing: -0.035em; color: var(--ink); font-variant-numeric: tabular-nums;
}
.lx-stat__label, .lx-stat-label { margin-top: 0.45rem; font-size: 0.9rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); line-height: 1.4; }
.lx-section--dark .lx-stat__num, .lx-section--dark .lx-stat-value, .lx-hero .lx-stat__num, .lx-card--ink .lx-stat-value { color: var(--white); }
.lx-section--dark .lx-stat__label, .lx-section--dark .lx-stat-label, .lx-hero .lx-stat__label, .lx-card--ink .lx-stat-label { color: var(--on-dark); }

/* ============================================================
   Chips & badges (quiet, square-ish)
   ============================================================ */
.lx-chip, .lx-badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.25rem 0.55rem; border-radius: var(--radius-sm);
    font-family: var(--font-heading); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    background: var(--surface-2); color: var(--ink); border: 1px solid transparent;
}
.lx-badge--ok { background: var(--success-bg); color: var(--success); }
.lx-badge--warn { background: var(--warning-bg); color: var(--warning); }
.lx-badge--err { background: var(--danger-bg); color: var(--danger); }
.lx-badge--muted { background: var(--white); color: var(--muted); border-color: var(--line-strong); }

/* ============================================================
   FAQ
   ============================================================ */
.lx-faq { border-bottom: 1px solid var(--line); }
.lx-faq:first-child { border-top: 1px solid var(--line); }
.lx-faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.15rem 0; cursor: pointer; list-style: none;
    font-family: var(--font-heading); font-weight: 600; font-size: 1rem; color: var(--ink);
}
.lx-faq summary::-webkit-details-marker { display: none; }
.lx-faq summary::after {
    content: ''; flex-shrink: 0; width: 1.05rem; height: 1.05rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0E3A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .3s var(--ease);
}
.lx-faq[open] summary::after { transform: rotate(45deg); }
.lx-faq__body { padding: 0 1.5rem 1.25rem 0; color: var(--muted); line-height: 1.7; }

/* ============================================================
   Long-form prose (legal / content pages)
   ============================================================ */
.lx-prose { color: var(--muted); line-height: 1.75; font-size: 1.02rem; }
.lx-prose > *:first-child { margin-top: 0; }
.lx-prose h1, .lx-prose h2, .lx-prose h3, .lx-prose h4 { font-family: var(--font-heading); font-weight: 600; color: var(--ink); letter-spacing: -0.015em; line-height: 1.3; }
.lx-prose h2 { margin: 2.25rem 0 0.75rem; font-size: 1.25rem; }
.lx-prose h3 { margin: 1.6rem 0 0.55rem; font-size: 1.06rem; }
.lx-prose p { margin: 0 0 1rem; }
.lx-prose strong { color: var(--ink); font-weight: 600; }
.lx-prose ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1rem; }
.lx-prose ol { list-style: decimal; padding-left: 1.3rem; margin: 0 0 1rem; }
.lx-prose li { margin-bottom: 0.4rem; }
.lx-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 0.2em; }
.lx-prose img { width: 100%; border-radius: var(--radius); margin: 1.25rem 0; }
.lx-prose blockquote { margin: 1.4rem 0; padding: 0.2rem 0 0.2rem 1rem; border-left: 2px solid var(--blue); color: var(--ink); }
.lx-prose hr { border: 0; height: 1px; background: var(--line); margin: 2rem 0; }

/* ============================================================
   Tables
   ============================================================ */
.lx-table { width: 100%; border-collapse: collapse; }
.lx-table th { text-align: left; padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--ink); font-family: var(--font-heading); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.lx-table td { padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--line); color: var(--muted); }

/* ============================================================
   Alerts
   ============================================================ */
.lx-alert {
    margin: 1rem 1.25rem 0; padding: 0.85rem 1rem;
    border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--radius);
    background: var(--white); box-shadow: var(--shadow-soft); color: var(--ink); font-size: 0.95rem; font-weight: 500;
}
.lx-alert--ok { background: var(--success-bg); border-color: #CDEBDD; border-left-color: var(--success); color: #0B5A37; }
.lx-alert--err { background: var(--danger-bg); border-color: #F6CFCB; border-left-color: var(--danger); color: #8F1C13; }

/* ============================================================
   Modals & bottom sheets. Toggle with .hidden.
   ============================================================ */
.lx-modal {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: flex-end; justify-content: center; padding: 0;
    background: rgba(6,10,46,0.6);
}
.lx-modal.hidden { display: none; }
.lx-modal__card {
    position: relative; width: 100%; max-width: 428px; padding: 1.75rem 1.4rem calc(1.75rem + env(safe-area-inset-bottom));
    background: var(--white); border-radius: 20px 20px 0 0; border: 0;
    box-shadow: var(--shadow-pop);
}
.lx-modal__card--center { text-align: center; }

.lx-sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(6,10,46,0.6); }
.lx-sheet.hidden { display: none; }
.lx-sheet__panel {
    position: relative; width: 100%; max-width: 428px; max-height: 94vh; overflow-y: auto;
    background: var(--white); border-radius: 20px 20px 0 0;
    animation: lxSheetUp .35s var(--ease) both;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}
.lx-sheet__handle { position: sticky; top: 0; width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 0.7rem auto 0; }
.lx-sheet__pad { padding: 0.9rem 1.4rem 0; }
.lx-sheet__center { text-align: center; padding: 0.5rem 1.4rem 0; }
@keyframes lxSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ============================================================
   Entrance animation (subtle)
   ============================================================ */
@keyframes lxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lx-in { animation: lxIn .45s var(--ease) both; }
.lx-in-1 { animation-delay: .04s; } .lx-in-2 { animation-delay: .08s; }
.lx-in-3 { animation-delay: .12s; } .lx-in-4 { animation-delay: .16s; } .lx-in-5 { animation-delay: .2s; }

/* ============================================================
   App shell: app bar, language menu, tab bar, footer
   ============================================================ */
.lx-appbar { position: sticky; top: 0; z-index: 50; height: var(--appbar-h); background: var(--chrome); border-bottom: 1px solid var(--chrome-line); }
.lx-appbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0 1.25rem; }
.lx-appbar__left { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.lx-appbar__logo { height: 28px; width: auto; display: block; }
.lx-appbar__title { font-family: var(--font-heading); font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; color: var(--white) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-iconbtn {
    width: 38px; height: 38px; margin-left: -0.5rem; flex-shrink: 0;
    display: grid; place-items: center; background: transparent; border: 0; border-radius: var(--radius);
    color: var(--white); cursor: pointer; transition: color .2s ease, background-color .2s ease;
}
.lx-iconbtn:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.lx-iconbtn svg { width: 20px; height: 20px; }

.lx-lang {
    display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.45rem 0.7rem;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius);
    font-family: var(--font-heading); font-size: 0.78rem; font-weight: 600; color: var(--white); cursor: pointer;
    transition: border-color .2s ease;
}
.lx-lang:hover { border-color: rgba(255,255,255,0.5); }
.lx-lang svg { width: 14px; height: 14px; transition: transform .2s; }
.lx-menu {
    position: absolute; right: 0; margin-top: 0.5rem; width: 11.5rem; z-index: 60; padding: 0.35rem 0;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-pop);
}
.lx-menu a { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.95rem; font-size: 0.95rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.lx-menu a:hover, .lx-menu a.is-active { color: var(--blue); background: var(--surface); }

.lx-main { min-height: calc(100vh - var(--appbar-h)); display: flex; flex-direction: column; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }

.lx-footer { position: relative; margin-top: auto; padding: 2.25rem 1.25rem calc(2rem + var(--tabbar-h) + env(safe-area-inset-bottom)); background: var(--navy-2); color: var(--white); }
.lx-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-brand); }
.lx-footer__logo { height: 34px; width: auto; display: block; }
.lx-footer__tagline { margin-top: 1rem; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em; color: var(--white); }
.lx-footer__about { margin-top: 0.5rem; font-size: 0.92rem; line-height: 1.6; color: #A9B2DE; }
.lx-footer__copy { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.82rem; color: #A9B2DE; }

.lx-tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; pointer-events: none; }
.lx-tabbar__wrap { max-width: 428px; margin: 0 auto; pointer-events: auto; background: var(--chrome); border-top: 1px solid var(--chrome-line); padding-bottom: env(safe-area-inset-bottom); }
.lx-tabs { display: flex; align-items: stretch; height: var(--tabbar-h); }
.lx-tab {
    position: relative; flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    text-decoration: none; color: var(--chrome-muted); transition: color .2s ease;
}
.lx-tab__bar { position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: transparent; }
.lx-tab__ico { display: grid; place-items: center; width: 24px; height: 24px; }
.lx-tab__ico svg { width: 22px; height: 22px; }
.lx-tab__label { font-family: var(--font-heading); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.02em; }
.lx-tab:hover { color: var(--white); }
.lx-tab.is-active { color: var(--white); }
.lx-tab.is-active .lx-tab__bar { background: var(--glow); }

/* ============================================================
   Auth shell
   ============================================================ */
.lx-auth { position: relative; min-height: 100vh; min-height: 100dvh; max-width: 428px; margin: 0 auto; display: flex; flex-direction: column; background: var(--canvas); }
.lx-auth__top { position: relative; z-index: 50; display: flex; align-items: center; justify-content: space-between; height: var(--appbar-h); padding: 0 1.25rem; background: var(--chrome); border-bottom: 1px solid var(--chrome-line); }
.lx-auth__inner { flex: 1; width: 100%; padding: 1.25rem 1rem 2rem; }
.lx-auth__panel { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); border: 1px solid rgba(228,232,247,0.7); padding: 1.75rem 1.35rem; }
.lx-auth__foot { padding: 1.1rem 1.25rem calc(1.1rem + env(safe-area-inset-bottom)); background: var(--chrome); font-size: 0.82rem; color: var(--on-dark); text-align: center; }

/* ============================================================
   Motion (with public/portal/motion.js)
   ============================================================ */
:root { --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1); }

/* Cross-page transitions: app bar + tab bar stay put, content fades up, tab indicator slides */
@view-transition { navigation: auto; }
.lx-appbar, .lx-auth__top { view-transition-name: lx-appbar; }
.lx-tabbar__wrap { view-transition-name: lx-tabbar; }
.lx-tab.is-active .lx-tab__bar { view-transition-name: lx-tab-bar; }
::view-transition-group(lx-tab-bar) { animation-duration: .4s; animation-timing-function: var(--ease); }
::view-transition-old(root) { animation: lxVtOut .16s ease both; }
::view-transition-new(root) { animation: lxVtIn .34s var(--ease) both; }
@keyframes lxVtOut { to { opacity: 0; } }
@keyframes lxVtIn { from { opacity: 0; transform: translateY(10px); } }

/* Sheets: slide up, backdrop fades, page behind zooms out */
.lx-sheet, .lx-modal { animation: lxFadeIn .3s ease both; }
.lx-sheet__panel, .lx-modal__card {
    animation: lxSheetUp .5s var(--ease-sheet) both;
    overscroll-behavior: contain;
    transition: transform .35s var(--ease-sheet);
}
.lx-sheet__panel.is-dragging, .lx-modal__card.is-dragging { transition: none; }
.lx-sheet__handle { cursor: grab; }
.lx-sheet--closing { pointer-events: none; animation: lxFadeOut .32s ease both !important; }
.lx-sheet--closing .lx-sheet__panel, .lx-sheet--closing .lx-modal__card { animation: lxSheetDown .32s var(--ease-sheet) both !important; }
@keyframes lxFadeIn { from { background-color: rgba(6,10,46,0); } }
@keyframes lxFadeOut { to { background-color: rgba(6,10,46,0); } }
@keyframes lxSheetDown { from { transform: translateY(0); } to { transform: translateY(100%); } }

.mobile-container, .lx-auth {
    transform-origin: 50% var(--lx-origin-y, 50vh);
    transition: transform .5s var(--ease-sheet), border-radius .5s var(--ease-sheet), opacity .5s ease;
}
html.lx-sheet-open { overflow: hidden; }
html.lx-sheet-open body { background: #02041A !important; }
html.lx-sheet-open .mobile-container,
html.lx-sheet-open .lx-auth { transform: scale(0.93); border-radius: 18px; overflow: hidden; opacity: 0.85; }
html.lx-sheet-open .lx-tabbar { opacity: 0; transition: opacity .25s ease; }
.lx-tabbar { transition: opacity .35s ease .1s; }

/* lxAlert() sheet */
.lx-alert-sheet__ico { width: 52px; height: 52px; margin: 0.6rem auto 1rem; display: grid; place-items: center; border-radius: var(--radius-lg); background: var(--danger-bg); color: var(--danger); }
.lx-alert-sheet__ico svg { width: 26px; height: 26px; }
.lx-alert-sheet__title { font-family: var(--font-heading); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.lx-alert-sheet__msg { margin: 0.5rem 0 1.5rem; color: var(--muted); line-height: 1.55; }

/* Scroll reveal */
.lx-reveal { opacity: 0; transform: translateY(18px); }
.lx-reveal.is-in { opacity: 1; transform: none; transition: opacity .6s ease var(--lx-reveal-delay, 0ms), transform .7s var(--ease) var(--lx-reveal-delay, 0ms); }

/* Press feedback */
.user-layout a, .user-layout button, .auth-layout a, .auth-layout button { -webkit-tap-highlight-color: transparent; }
.lx-btn { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .18s var(--ease); }
.lx-btn:active:not(:disabled), .lx-iconbtn:active, .lx-lang:active { transform: scale(0.96); }
.lx-row, .lx-rowitem { transition: transform .18s var(--ease), background-color .2s ease; }
.lx-row:active, a.lx-rowitem:active { transform: scale(0.985); }
.lx-tab__ico { transition: transform .2s var(--ease); }
.lx-tab:active .lx-tab__ico { transform: scale(0.86); }
.lx-tab.is-active .lx-tab__ico { animation: lxPop .5s var(--ease) .08s both; }
@keyframes lxPop { 0% { transform: scale(0.82); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.lx-panel, .lx-card, .lx-list { transition: transform .25s var(--ease), box-shadow .25s ease; }
a.lx-panel:active, a.lx-card:active { transform: scale(0.985); }
@media (hover: hover) {
    a.lx-panel:hover, a.lx-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
}

/* Navigation progress bar */
.lx-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 2px; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); background: var(--glow); opacity: 0; }
.lx-progress.is-loading { opacity: 1; transform: scaleX(0.85); transition: transform 8s cubic-bezier(.1,.8,.2,1), opacity .2s ease; }
.lx-progress.is-done { opacity: 0; transform: scaleX(1); transition: transform .2s ease, opacity .3s ease .15s; }

@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    html.lx-sheet-open .mobile-container, html.lx-sheet-open .lx-auth { transform: none; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
