/* ============================================================
   INNFinite Tech — user portal design system
   StayLinkX "technical blueprint" design (see /LANDING/index.css), for the 428px app frame
   and widened for desktop (see "Desktop" at the end).

   - Brand: Outfit (headings, heavy) + Manrope (body) + Space Mono (// SYS-style labels).
   - Deep slate navy chrome and heroes with a soft blue glow; one accent, the logo's blue (#2068F8).
   - Cool slate canvas; content in white panels with thin borders and small (4–8px) corners.
   - Uppercase, letter-spaced buttons; logo-blue primary with white text.

   Token names are kept from the previous theme (--ink, --blue, --line …) so page markup
   keeps rendering; the old --lx-* names are aliases.
   ============================================================ */

:root {
    --navy: #0B131F;
    --navy-2: #101B2B;
    --ink: #0F172A;
    /* Accent = the blue of the INNFinite logo mark (#2038A0 → #2068F8) */
    --accent: #2068F8;          /* fills: buttons, underlines, indicators (white text 4.8:1) */
    --accent-hover: #2459EC;
    --royal: #1A3FB0;
    --blue: #1F4ED8;            /* text / icons on light backgrounds */
    --azure: #4C82FF;
    --periwinkle: #CBD5E1;
    --glow: #5B8CFF;            /* text / icons on navy */
    --surface: #F8FAFC;
    --surface-2: #F1F5F9;
    --line: #E2E8F0;
    --line-strong: #CBD5E1;
    --muted: #475569;
    --muted-2: #64748B;
    --white: #ffffff;
    --canvas: #F1F5F9;
    --chrome: var(--navy);
    --chrome-line: rgba(255,255,255,0.06);
    --chrome-muted: #94A3B8;
    --on-dark: #94A3B8;
    --success: #047857;
    --success-bg: #E7F8F1;
    --warning: #9A5B00;
    --warning-bg: #FFF4E0;
    --danger: #B42318;
    --danger-bg: #FDECEA;

    --gradient-brand: linear-gradient(90deg, #2068F8 0%, #6E9BFF 100%);   /* on navy */
    --gradient-ink: linear-gradient(90deg, #1F3FC0 0%, #2068F8 100%);     /* on light */
    --hero-glow: radial-gradient(70% 90% at 50% -20%, rgba(32,104,248,0.22), transparent 70%);

    --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-mono: 'Space Mono', ui-monospace, monospace;

    --radius-sm: 2px;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow-soft: 0 1px 2px rgba(15,23,42,0.04), 0 10px 28px -20px rgba(15,23,42,0.2);
    --shadow-pop: 0 2px 6px rgba(15,23,42,0.06), 0 24px 48px -24px rgba(11,19,31,0.4);
    --ease: cubic-bezier(0.16, 1, 0.3, 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: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.user-layout ::selection, .auth-layout ::selection { background: var(--accent); 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: #E2E8F0 !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-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.6rem;
}
/* StayLinkX .sys-coord: "// LABEL" */
.lx-label-tag::before, .lx-eyebrow::before, .lx-hero__eyebrow::before { content: '//'; margin-right: 0.5em; color: var(--muted-2); opacity: 0.6; }
.lx-section--dark .lx-label-tag::before, .lx-hero .lx-label-tag::before, .lx-hero__eyebrow::before { color: var(--periwinkle); opacity: 0.5; }
.lx-display {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2.3rem, 10vw, 2.85rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: var(--ink);
}
.lx-title {
    font-family: var(--font-heading);
    font-weight: 800;
    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: 800;
    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); }
/* Big headings: gradient accent in the logo's blues, as on the StayLinkX hero */
.lx-display .lx-accent, .lx-h2 .lx-accent, .lx-title .lx-accent, .lx-hero__title .lx-accent {
    background: var(--gradient-ink); -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
.lx-hero .lx-accent, .lx-section--dark .lx-accent, .lx-card--ink .lx-accent { background-image: var(--gradient-brand); }
.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-mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); }
.lx-block-label {
    font-family: var(--font-mono);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; 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(--hero-glow), 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-mono);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--glow);
}
.lx-hero__title { font-family: var(--font-heading); font-weight: 800; 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 var(--line); 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.95rem 1.5rem; border-radius: var(--radius);
    font-family: var(--font-heading); font-weight: 800; font-size: 0.82rem; line-height: 1.2;
    letter-spacing: 0.07em; text-transform: uppercase;
    white-space: nowrap; cursor: pointer; text-decoration: none;
    border: 1px solid transparent; box-shadow: none;
    transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--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 0.95rem; font-size: 0.72rem; }
.lx-btn--lg { padding: 1.1rem 2rem; font-size: 0.88rem; }
.lx-btn--block { width: 100%; }

/* button.* selectors outrank Tailwind preflight's [type='submit'] background reset.
   Primary = StayLinkX .btn-primary in the logo blue: white text and a soft glow. */
.lx-btn--primary, button.lx-btn--primary,
.lx-btn--grad, button.lx-btn--grad,
.lx-btn--accent, button.lx-btn--accent,
.lx-btn--light, button.lx-btn--light { background-color: var(--accent); color: var(--white); box-shadow: 0 0 22px rgba(32,104,248,0.25); }
.lx-btn--primary:hover, button.lx-btn--primary:hover,
.lx-btn--grad:hover, button.lx-btn--grad:hover,
.lx-btn--accent:hover, button.lx-btn--accent:hover,
.lx-btn--light:hover, button.lx-btn--light:hover { background-color: var(--accent-hover); box-shadow: 0 0 32px rgba(32,104,248,0.42); }
.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(--accent); color: var(--royal); }
/* On navy: StayLinkX .btn-secondary (light text, silver edge → blue on hover) */
.lx-btn--ghost-light, button.lx-btn--ghost-light { background-color: transparent; color: var(--white); border-color: rgba(203,213,225,0.35); }
.lx-btn--ghost-light:hover, button.lx-btn--ghost-light:hover { border-color: var(--glow); color: var(--glow); }
.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(32,104,248,0.22);
}
.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 var(--line); 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='%231F4ED8' 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: #CBD5E1; }
.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='%235B8CFF' 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='%230F172A' 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; }
/* FAQ page: notes inside answers */
.lx-faq__body ul { list-style: disc; margin: 0.5rem 0; padding-left: 1.25rem; }
.lx-faq__body li + li { margin-top: 0.35rem; }
.faq-note { margin-top: 0.75rem; padding: 0.75rem 1rem; border-left: 3px solid var(--blue); border-radius: var(--radius); background: var(--surface); color: var(--ink); }

/* ============================================================
   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(11,19,31,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(11,19,31,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: #94A3B8; }
.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: #94A3B8; }

.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); }

/* Phones: fill the screen edge to edge — the 428px frame is only for wider screens
   (430–440px phones like the iPhone Pro Max would otherwise show a strip of background on each side) */
@media (max-width: 639.98px) {
    .user-layout .mobile-container, .lx-auth, .lx-tabbar__wrap, .lx-modal__card, .lx-sheet__panel { max-width: none; }
}

.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 var(--line); 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(11,19,31,0); } }
@keyframes lxFadeOut { to { background-color: rgba(11,19,31,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: #05090F !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; }
}

/* ============================================================
   Desktop data views: KPI figures + data tables (shown only >= 1024px)
   Mark markup .lx-desk (desktop only) or .lx-mob (mobile only).
   ============================================================ */
@media (max-width: 1023.98px) { .lx-desk { display: none !important; } }
@media (min-width: 1024px) { .lx-mob { display: none !important; } }

.lx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.lx-kpi { padding: 1.25rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); min-width: 0; }
.lx-kpi__label { display: block; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.lx-kpi__value { display: block; margin-top: 0.7rem; font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-kpi__value small { font-size: 1rem; font-weight: 700; color: var(--muted-2); }
.lx-kpi__value.is-pos { color: var(--success); }
.lx-kpi__sub { display: block; margin-top: 0.35rem; font-size: 0.85rem; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lx-tablecard { padding: 0; overflow: hidden; }
.lx-tablecard__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; border-bottom: 1px solid var(--line); }
.lx-tablecard__empty { padding: 2.5rem 1.4rem; text-align: center; color: var(--muted-2); }

.lx-dtable { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.lx-dtable th {
    padding: 0.75rem 1.4rem; text-align: left; white-space: nowrap; background: var(--surface);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2);
}
.lx-dtable td { padding: 0.85rem 1.4rem; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: middle; }
.lx-dtable tbody tr:last-child td { border-bottom: 0; }
.lx-dtable tbody tr { transition: background-color .15s ease; }
.lx-dtable tbody tr:hover { background: var(--surface); }
.lx-dtable .is-num { text-align: right; font-family: var(--font-heading); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lx-dtable .is-pos { color: var(--success); }
.lx-dtable .is-end { text-align: right; }
.lx-dtable .lx-badge { border-radius: var(--radius); }
.lx-dtable__main { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.lx-dtable__title { display: block; font-family: var(--font-heading); font-weight: 700; color: var(--ink); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lx-dtable__meta { display: block; font-size: 0.8rem; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.lx-dtable__date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.lx-thumb { width: 52px; height: 40px; flex-shrink: 0; border-radius: var(--radius); object-fit: cover; background: var(--surface-2); }
.lx-txico { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--radius); background: var(--surface-2); color: var(--blue); }
.lx-txico svg { width: 17px; height: 17px; stroke-width: 1.75; }
.lx-txico.is-pos { background: var(--success-bg); color: var(--success); }

/* ============================================================
   Desktop (>= 1024px): a website, not a stretched phone (follows LANDING/index.css + layout.js)
   - Navy site header: logo · uppercase nav · balance + "Get started" · language. Tab bar hidden.
   - Account pages (body.lx-account): one centred content column; navy heroes become summary cards.
   - Header avatar opens the account menu (overview, wallet, orders, settings… and logout).
   - Other pages: full-width sections on a centred column of --desk-w
     (@section('page_width'): wide | medium | narrow); --gutter centres content inside full-bleed bands.
   - Navy site footer from LANDING/layout.js (mono "01 // PLT.CORE" column codes). Sheets open as centred dialogs.
   ============================================================ */
.lx-appbar__brand, .lx-desknav, .lx-deskact, .lx-usermenu { display: none; }

/* ---------- Mobile (< 1024px): the same site footer, stacked above the tab bar ----------
   Brand + about full width, link columns side by side, then badges · copyright · legal under a divider */
@media (max-width: 1023.98px) {
    .lx-main { padding-bottom: 0; }
    .lx-sitefoot { display: block; padding: 2.5rem 1.25rem calc(1.75rem + var(--tabbar-h) + env(safe-area-inset-bottom)); background: var(--navy); color: var(--white); }
    .lx-sitefoot__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
    .lx-sitefoot__brand { display: contents; }
    .lx-sitefoot__logo, .lx-sitefoot__about, .lx-sitefoot__badges { grid-column: 1 / -1; }
    .lx-sitefoot__logo { height: 2.1rem; width: auto; display: block; }
    .lx-sitefoot__about { margin-top: -0.75rem; font-size: 0.92rem; line-height: 1.65; color: var(--on-dark); }
    .lx-sitefoot__heading { margin-bottom: 1rem; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; color: var(--white) !important; }
    .lx-sitefoot__links { display: flex; flex-direction: column; gap: 0.85rem; list-style: none; margin: 0; padding: 0; }
    .lx-sitefoot a { color: var(--on-dark); font-size: 0.92rem; font-weight: 600; text-decoration: none; }
    .lx-sitefoot a:active { color: var(--glow); }
    /* Badges move below the link columns (order) and open the bottom block with the divider */
    .lx-sitefoot__badges { order: 1; display: flex; align-items: center; gap: 1.25rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.08); }
    .lx-sitefoot__badges img { height: 1.6rem; width: auto; opacity: 0.6; filter: brightness(0) invert(1); }
    .lx-sitefoot__bottom { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.25rem; font-size: 0.78rem; line-height: 1.5; color: var(--on-dark); }
    .lx-sitefoot__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
    .lx-sitefoot__legal a { font-size: 0.82rem; }
    /* Booking history: no site footer on phones; keep the space above the tab bar that the footer would have covered */
    .lx-no-mobile-footer .lx-sitefoot { display: none; }
    .lx-no-mobile-footer .lx-main { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
}

@media (min-width: 1024px) {
    :root { --appbar-h: 72px; --shell-w: 1200px; --desk-w: var(--shell-w); }
    .lx-w-medium { --desk-w: 1000px; }
    .lx-w-narrow { --desk-w: 760px; }
    /* Side padding that centres content on a --desk-w column (100% = the full-width parent) */
    .user-layout {
        --gutter: max(2.5rem, calc((100% - var(--desk-w)) / 2));
        --gutter-shell: max(2.5rem, calc((100% - var(--shell-w)) / 2));
    }
    .user-layout.lx-account { --gutter: 0px; }

    body.user-layout { background: var(--canvas) !important; }
    .user-layout .mobile-container { max-width: none; min-height: 100vh; display: flex; flex-direction: column; box-shadow: none; }
    .lx-shell { flex: 1; }
    .lx-main { min-height: 0; padding-bottom: 0; }
    .lx-tabbar { display: none; }

    /* ---------- Site header ---------- */
    .lx-appbar { background: rgba(11,19,31,0.97); border-bottom: 1px solid var(--chrome-line); }
    .lx-appbar__inner { gap: 2.75rem; padding: 0 var(--gutter-shell); }
    .lx-appbar__left { display: none; }
    .lx-appbar__brand { display: block; flex-shrink: 0; }
    .lx-appbar__brand .lx-appbar__logo { height: 34px; }
    .lx-desknav { display: flex; align-self: stretch; gap: 2.4rem; margin: 0 auto; }
    /* StayLinkX .nav-link: uppercase, letter-spaced, blue underline grows on hover */
    .lx-desknav__link {
        position: relative; display: flex; align-items: center;
        font-family: var(--font-heading); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase;
        color: var(--white); text-decoration: none; transition: color .3s var(--ease);
    }
    .lx-desknav__link::after { content: ''; position: absolute; left: 0; bottom: calc(50% - 1rem); width: 0; height: 2px; background: var(--accent); transition: width .3s var(--ease); }
    .lx-desknav__link:hover::after, .lx-desknav__link.is-active::after { width: 100%; }
    .lx-desknav__link.is-active { color: var(--glow); }
    .lx-deskact { display: flex; align-items: center; gap: 0.75rem; }
    .lx-lang { padding: 0.55rem 0.75rem; }

    /* ---------- Account pages: one centred column, width from @section('page_width') ---------- */
    .lx-account .lx-shell { padding: 2.25rem max(2.5rem, calc((100% - var(--desk-w)) / 2)) 4.5rem; }

    /* ---------- Header avatar: links to the dashboard ---------- */
    .lx-usermenu { display: block; }
    .lx-avatar {
        width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
        background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); color: var(--glow);
        font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; text-decoration: none; transition: border-color .2s ease;
    }
    .lx-avatar:hover { border-color: var(--glow); }

    /* Content column: navy heroes become summary cards, panels stack below without overlapping */
    .user-layout.lx-account .lx-hero { border-radius: var(--radius-lg); padding: 2rem 2.25rem; }
    .lx-account .lx-stack { gap: 1.25rem; padding: 1.25rem 0 0; }
    .lx-account .lx-stack--overlap { margin-top: 0; }
    .user-layout.lx-account .lx-alert { margin: 0 0 1.25rem; }
    /* Page header for account pages: eyebrow + title */
    .lx-account .lx-title { font-size: 2rem; }

    /* ---------- Full-width pages ---------- */
    .user-layout .lx-hero, .user-layout .lx-stack, .user-layout .lx-page,
    .user-layout .lx-body, .user-layout .lx-section { padding-left: var(--gutter); padding-right: var(--gutter); }
    .lx-hero { padding-top: 3rem; padding-bottom: 3rem; }
    .lx-hero--lift { padding-bottom: 5.5rem; }
    .lx-stack { gap: 1.25rem; padding-top: 1.5rem; padding-bottom: 4rem; }
    .lx-stack--overlap { margin-top: -3rem; padding-top: 0; }
    .user-layout .lx-alert { margin: 1.5rem var(--gutter) 0; }
    /* Panels that become full-bleed landing sections (Home, Get Started) */
    .lx-band { border-radius: 0 !important; border: 0 !important; box-shadow: none !important; padding: 5.5rem var(--gutter) !important; }
    .lx-band:hover { transform: none; }

    /* ---------- Site footer (LANDING/layout.js <site-footer>) ---------- */
    .lx-sitefoot { display: block; position: relative; overflow: hidden; padding: 6rem var(--gutter-shell) 3rem; background: var(--navy); color: var(--white); border-top: 1px solid rgba(255,255,255,0.05); }
    .lx-sitefoot::before, .lx-sitefoot::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
    .lx-sitefoot::before { right: 0; bottom: 0; width: 500px; height: 500px; background: rgba(32,104,248,0.05); filter: blur(130px); }
    .lx-sitefoot::after { left: 0; top: 0; width: 400px; height: 400px; background: rgba(14,165,233,0.04); filter: blur(120px); }
    .lx-sitefoot__cols { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) repeat(2, minmax(0, 2fr)); gap: 3rem; margin-bottom: 5rem; }
    .lx-sitefoot__brand { display: flex; flex-direction: column; gap: 1.5rem; }
    .lx-sitefoot__logo { height: 2.75rem; width: auto; display: block; align-self: flex-start; }
    .lx-sitefoot__about { max-width: 22rem; font-size: 1.02rem; font-weight: 500; line-height: 1.7; color: var(--on-dark); }
    .lx-sitefoot__badges { display: flex; align-items: center; gap: 1.5rem; margin-top: 0.5rem; }
    .lx-sitefoot__badges img { height: 2.2rem; width: auto; opacity: 0.35; filter: brightness(0) invert(1); }
    .lx-sitefoot__heading { margin-bottom: 1.5rem; font-family: var(--font-heading); font-size: 0.88rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--white) !important; }
    .lx-sitefoot__links { display: flex; flex-direction: column; gap: 1rem; list-style: none; margin: 0; padding: 0; }
    .lx-sitefoot a { display: inline-block; color: var(--on-dark); font-size: 0.95rem; font-weight: 600; text-decoration: none; transition: color .3s var(--ease), transform .3s var(--ease); }
    .lx-sitefoot__links a:hover { color: var(--glow); transform: translateX(4px); }
    .lx-sitefoot__bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 3rem; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.9rem; font-weight: 700; color: var(--on-dark); }
    .lx-sitefoot__legal { display: flex; gap: 2.5rem; }
    .lx-sitefoot__legal a { font-size: 0.9rem; font-weight: 700; }
    .lx-sitefoot__legal a:hover { color: var(--glow); }

    /* ---------- Sheets → centred dialogs ---------- */
    .user-layout .lx-sheet, .user-layout .lx-modal { align-items: center; padding: 2rem; }
    .user-layout .lx-sheet__panel, .user-layout .lx-modal__card {
        max-width: 480px; max-height: calc(100vh - 4rem); border-radius: 20px;
        padding-bottom: 1.5rem; animation: lxDialogIn .3s var(--ease) both;
    }
    .user-layout .lx-sheet__handle { display: none; }
    .user-layout .lx-sheet--closing .lx-sheet__panel,
    .user-layout .lx-sheet--closing .lx-modal__card { animation: lxDialogOut .2s ease both !important; }
    html.lx-sheet-open .mobile-container { transform: none; border-radius: 0; opacity: 1; overflow: visible; }
}
@keyframes lxDialogIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes lxDialogOut { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
