:root {
    --leil-primary: #00A652;
    --leil-primary-dark: #00A652;
    --leil-primary-soft: rgba(0, 166, 82, 0.1);
    --leil-primary-ring: rgba(0, 166, 82, 0.2);
    --leil-gold: #C9A227;
    --leil-mint: #00A652;
    --leil-ink: #1e293b;
    --leil-text: #475569;
    --leil-muted: #7c8798;
    --leil-border: rgba(0, 166, 82, 0.18);
    --leil-line: rgba(0, 166, 82, 0.12);
    --leil-surface: #FFFFFF;
    --leil-card: #FFFFFF;
    --leil-shadow: 0 18px 48px rgba(0, 166, 82, 0.08);
    --leil-shadow-soft: 0 12px 28px rgba(0, 166, 82, 0.12);
    --leil-radius: 14px;
    --leil-radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
    background: var(--leil-surface);
    color: var(--leil-text);
    font-family: "Jost", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

a {
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

input,
select,
textarea {
    border-color: var(--leil-border) !important;
    border-radius: 999px !important;
    background: #fff !important;
}

textarea {
    border-radius: var(--leil-radius-sm) !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--leil-primary) !important;
    box-shadow: 0 0 0 4px var(--leil-primary-ring) !important;
    outline: none !important;
}

.leil-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(0, 166, 82, 0.08), transparent 32rem),
        linear-gradient(180deg, #FFFFFF 0%, #ffffff 36%, #FFFFFF 100%);
}

.leil-container {
    width: min(100% - 2rem, 1240px);
    margin-inline: auto;
}

.leil-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--leil-gold);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.78rem;
}

.leil-eyebrow::before {
    content: "";
    width: 2rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--leil-primary), var(--leil-gold));
}

.leil-title {
    color: var(--leil-ink);
    font-weight: 800;
    line-height: 1.05;
}

.leil-muted {
    color: var(--leil-muted);
}

.leil-btn,
.leil-btn-outline,
.leil-btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    border-radius: 999px;
    padding: 0.75rem 1.3rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.leil-btn {
    color: #fff;
    background: var(--leil-primary);
    box-shadow: var(--leil-shadow-soft);
}

.leil-btn:hover {
    color: #fff;
    background: var(--leil-primary-dark);
    transform: translateY(-1px);
}

.leil-btn-outline {
    color: var(--leil-primary-dark);
    background: #fff;
    border: 1px solid rgba(0, 166, 82, 0.28);
}

.leil-btn-outline:hover {
    color: #fff;
    background: var(--leil-primary);
    border-color: var(--leil-primary);
}

.leil-btn-soft {
    color: var(--leil-primary-dark);
    background: var(--leil-primary-soft);
}

.leil-card {
    background: var(--leil-card);
    border: 1px solid var(--leil-line);
    border-radius: var(--leil-radius);
    box-shadow: var(--leil-shadow);
}

.leil-card-flat {
    background: #fff;
    border: 1px solid var(--leil-line);
    border-radius: var(--leil-radius);
}

.leil-card-soft {
    background: linear-gradient(180deg, #ffffff 0%, rgba(201, 162, 39, 0.08) 100%);
    border: 1px solid var(--leil-line);
    border-radius: var(--leil-radius);
}

.leil-icon-bubble {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--leil-primary-soft);
    color: var(--leil-primary);
}

.leil-pill,
.leil-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1;
}

.leil-pill {
    padding: 0.5rem 0.85rem;
    color: var(--leil-primary-dark);
    background: var(--leil-primary-soft);
}

.leil-badge {
    padding: 0.35rem 0.7rem;
    font-size: 0.74rem;
    color: var(--leil-primary-dark);
    background: var(--leil-primary-soft);
}

.leil-badge-success {
    color: #047857;
    background: #ecfdf5;
}

.leil-badge-warning {
    color: #b45309;
    background: #fffbeb;
}

.leil-badge-danger {
    color: var(--leil-gold);
    background: rgba(201, 162, 39, 0.14);
}

.leil-site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--leil-line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(14px);
}

.leil-header-container {
    width: min(100% - 2rem, 1420px);
    margin-inline: auto;
}

.leil-main-header {
    background: rgba(255, 255, 255, 0.98);
}

.leil-public-header-row {
    display: flex;
    min-height: 5.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.leil-brand-link {
    display: inline-flex;
    min-width: 10.5rem;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.75rem;
}

.leil-logo-img {
    display: block;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.leil-logo-img-public {
    height: 3rem;
    max-width: 12rem;
}

.leil-logo-img-panel {
    height: 2.7rem;
    max-width: 10.75rem;
}

.leil-auth-logo {
    height: 3.15rem;
    max-width: 13.25rem;
}

.leil-desktop-nav {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: clamp(1.1rem, 1.6vw, 2.1rem);
}

.leil-nav-link {
    position: relative;
    flex: none;
    padding-block: 2.15rem;
    color: #263248;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.leil-nav-link::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 1.45rem;
    left: 50%;
    height: 3px;
    border-radius: 2px;
    background: var(--leil-primary);
    transition: right 0.18s ease, left 0.18s ease;
}

.leil-nav-link:hover {
    color: var(--leil-primary-dark);
}

.leil-nav-link:hover::after {
    right: 0;
    left: 0;
}

.leil-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.leil-header-cart {
    display: inline-grid;
    width: 3.05rem;
    height: 3.05rem;
    flex: none;
    place-items: center;
    border: 1px solid rgba(0, 166, 82, 0.24);
    border-radius: 999px;
    color: var(--leil-primary-dark);
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 166, 82, 0.08);
}

.leil-header-cart:hover {
    color: #fff;
    border-color: var(--leil-primary);
    background: var(--leil-primary);
    transform: translateY(-1px);
}

.leil-currency-form {
    position: relative;
}

.leil-currency-control {
    display: flex;
    min-height: 3.05rem;
    align-items: center;
    gap: 0.55rem;
    padding: 0.36rem 0.74rem 0.36rem 0.42rem;
    border: 1px solid rgba(0, 166, 82, 0.22);
    border-radius: 999px;
    color: #263248;
    background: #fff;
    box-shadow: 0 12px 26px rgba(0, 166, 82, 0.09);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.leil-currency-control:hover,
.leil-currency-control[aria-expanded="true"] {
    border-color: rgba(0, 166, 82, 0.42);
    box-shadow: 0 14px 30px rgba(0, 166, 82, 0.15);
    transform: translateY(-1px);
}

.leil-currency-icon {
    display: grid;
    width: 1.75rem;
    height: 1.75rem;
    flex: none;
    place-items: center;
    border-radius: 7px;
    color: #fff;
    background: var(--leil-primary);
    box-shadow: 0 6px 15px rgba(0, 166, 82, 0.3);
}

.leil-currency-icon svg {
    width: 1rem;
    height: 1rem;
}

.leil-currency-label {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.leil-currency-selected {
    color: #263248;
    font-size: 0.78rem;
    font-weight: 900;
}

.leil-currency-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 80;
    width: min(18rem, calc(100vw - 1.5rem));
    max-height: min(23rem, calc(100vh - 7.5rem));
    overflow: auto;
    padding: 0.5rem;
    border: 1px solid rgba(0, 166, 82, 0.18);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 54px rgba(35, 29, 29, 0.16);
}

.leil-currency-menu::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 1.4rem;
    width: 14px;
    height: 14px;
    transform: rotate(45deg);
    border-top: 1px solid rgba(0, 166, 82, 0.18);
    border-left: 1px solid rgba(0, 166, 82, 0.18);
    background: #fff;
}

.leil-currency-option {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.7rem;
    padding: 0.64rem 0.7rem;
    border-radius: 9px;
    color: #334155;
    text-align: left;
}

.leil-currency-option:hover,
.leil-currency-option.is-active {
    color: var(--leil-primary-dark);
    background: rgba(0, 166, 82, 0.08);
}

.leil-currency-symbol {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: none;
    place-items: center;
    border-radius: 8px;
    color: var(--leil-primary-dark);
    background: #fff;
    border: 1px solid rgba(0, 166, 82, 0.18);
    font-size: 0.72rem;
    font-weight: 900;
}

.leil-currency-option.is-active .leil-currency-symbol {
    color: #fff;
    border-color: var(--leil-primary);
    background: var(--leil-primary);
}

.leil-currency-code,
.leil-currency-name {
    display: block;
    line-height: 1.1;
}

.leil-currency-code {
    font-size: 0.86rem;
    font-weight: 900;
}

.leil-currency-name {
    margin-top: 0.18rem;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
}

.leil-mobile-menu .leil-currency-menu {
    position: static;
    width: 100%;
    max-height: 18rem;
    margin-top: 0.55rem;
    box-shadow: 0 14px 32px rgba(35, 29, 29, 0.1);
}

.leil-mobile-menu .leil-currency-menu::before {
    display: none;
}

.leil-account-menu {
    position: relative;
    flex: none;
}

.leil-account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 3.05rem;
    border: 1px solid rgba(0, 166, 82, 0.2);
    border-radius: 999px;
    padding: 0.35rem 0.65rem 0.35rem 0.35rem;
    color: #263248;
    background: #fff;
    box-shadow: 0 12px 26px rgba(0, 166, 82, 0.08);
}

.leil-site-header .leil-account-trigger {
    width: 3.05rem;
    justify-content: center;
    gap: 0;
    padding: 0.35rem;
}

.leil-site-header .leil-account-trigger > svg,
.leil-site-header .leil-account-meta {
    display: none;
}

.leil-account-trigger:hover,
.leil-account-trigger[aria-expanded="true"] {
    border-color: rgba(0, 166, 82, 0.42);
    box-shadow: 0 14px 30px rgba(0, 166, 82, 0.14);
    transform: translateY(-1px);
}

.leil-account-avatar {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    flex: none;
    place-items: center;
    border-radius: 999px;
    color: var(--leil-primary-dark);
    background: var(--leil-primary-soft);
    font-size: 0.86rem;
    font-weight: 900;
}

.leil-account-trigger:hover .leil-account-avatar,
.leil-account-trigger[aria-expanded="true"] .leil-account-avatar {
    color: #fff;
    background: var(--leil-primary);
}

.leil-account-meta {
    display: block;
    min-width: 0;
    text-align: left;
    line-height: 1.05;
}

.leil-account-kicker,
.leil-account-name {
    display: block;
}

.leil-account-kicker {
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.leil-account-name {
    margin-top: 0.18rem;
    max-width: 8.5rem;
    overflow: hidden;
    color: #263248;
    font-size: 0.82rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leil-account-dropdown {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 90;
    width: min(17rem, calc(100vw - 1.5rem));
    padding: 0.5rem;
    border: 1px solid rgba(0, 166, 82, 0.18);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 54px rgba(35, 29, 29, 0.16);
}

.leil-account-dropdown::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 1.55rem;
    width: 14px;
    height: 14px;
    transform: rotate(45deg);
    border-top: 1px solid rgba(0, 166, 82, 0.18);
    border-left: 1px solid rgba(0, 166, 82, 0.18);
    background: #fff;
}

.leil-account-card {
    position: relative;
    z-index: 1;
    margin-bottom: 0.35rem;
    border-radius: 10px;
    background: rgba(0, 166, 82, 0.08);
    padding: 0.8rem;
}

.leil-account-link {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.75rem;
    border-radius: 9px;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 800;
    text-align: left;
}

.leil-account-link svg {
    width: 1.05rem;
    height: 1.05rem;
}

.leil-account-link:hover {
    color: var(--leil-primary-dark);
    background: rgba(0, 166, 82, 0.08);
}

.leil-mobile-menu .leil-account-dropdown {
    position: static;
    width: 100%;
    margin-top: 0.55rem;
    box-shadow: 0 14px 32px rgba(35, 29, 29, 0.1);
}

.leil-mobile-menu .leil-account-dropdown::before {
    display: none;
}

.leil-mobile-menu-button {
    display: none !important;
}

.leil-footer {
    border-top: 1px solid var(--leil-line);
    background: #fff;
}

.leil-footer-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    border-radius: 8px;
    background: #17233b;
    box-shadow: 0 20px 50px rgba(23, 35, 59, 0.16);
}

.leil-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-weight: 650;
    transition: color 0.18s ease, transform 0.18s ease;
}

.leil-footer-link::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: none;
    border-radius: 50%;
    background: #C9A227;
}

.leil-footer-link:hover {
    color: var(--leil-primary-strong);
    transform: translateX(2px);
}

.leil-social-link {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border: 1px solid var(--leil-line);
    border-radius: 8px;
    color: #334155;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.leil-social-link:hover {
    border-color: rgba(0, 166, 82, 0.35);
    color: #fff;
    background: var(--leil-primary);
}

.leil-testimonial-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid var(--leil-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.leil-testimonial-card > p {
    flex: 1;
}

.leil-avatar {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    flex: none;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: #17233b;
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: 0 7px 18px rgba(23, 35, 59, 0.18);
}

.leil-faq-item {
    overflow: hidden;
    border: 1px solid var(--leil-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.leil-faq-item summary {
    display: flex;
    min-height: 4.75rem;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: #17233b;
    font-size: 1.02rem;
    font-weight: 850;
    list-style: none;
    cursor: pointer;
}

.leil-faq-item summary::-webkit-details-marker {
    display: none;
}

.leil-faq-number {
    color: var(--leil-primary-strong);
    font-size: 0.72rem;
    font-weight: 900;
}

.leil-faq-toggle {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: none;
    place-items: center;
    border-radius: 7px;
    color: var(--leil-primary-strong);
    background: var(--leil-primary-soft);
    font-size: 1.25rem;
    font-weight: 700;
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.leil-faq-item[open] {
    border-color: rgba(0, 166, 82, 0.25);
}

.leil-faq-item[open] .leil-faq-toggle {
    color: #fff;
    background: var(--leil-primary);
    transform: rotate(45deg);
}

.leil-faq-item > p {
    margin: 0 1.25rem 1.25rem 3.85rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f7;
    color: #64748b;
    line-height: 1.8;
}

.leil-prose {
    font-size: 1rem;
    line-height: 1.85;
}

.leil-prose > * + * {
    margin-top: 1.25rem;
}

.leil-prose h2 {
    margin-top: 2rem;
    color: #17233b;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.3;
}

.leil-prose ul,
.leil-prose ol {
    padding-left: 1.25rem;
}

.leil-prose li + li {
    margin-top: 0.5rem;
}

.leil-hero {
    position: relative;
    min-height: clamp(620px, 82vh, 760px);
    display: grid;
    align-items: center;
    overflow: hidden;
    background: var(--leil-primary-soft);
}

.leil-compact-hero {
    min-height: auto;
    padding: 4.5rem 0 3.5rem;
}

.leil-hero::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: min(52vw, 780px);
    background: rgba(0, 166, 82, 0.08);
    clip-path: polygon(32% 0%, 100% 0%, 100% 100%, 0% 100%);
    pointer-events: none;
}

.leil-hero-media {
    position: relative;
    z-index: 1;
    min-height: clamp(22rem, 40vw, 34rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.leil-hero-image {
    width: 100%;
    max-width: 46rem;
    height: clamp(20rem, 40vw, 34rem);
    object-fit: contain;
    filter: drop-shadow(0 28px 38px rgba(0, 166, 82, 0.14));
}

.leil-product-card {
    background: #fff;
    border: 1px solid var(--leil-line);
    border-radius: var(--leil-radius);
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.leil-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 166, 82, 0.28);
    box-shadow: 0 22px 48px rgba(0, 166, 82, 0.11);
}

.leil-check-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
    border: 1px solid var(--leil-line);
    border-radius: 12px;
    background: #fff;
    padding: 0.9rem 1rem;
}

.leil-check-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    color: #fff;
    background: var(--leil-primary);
}

.leil-check-row p {
    margin: 0;
    color: var(--leil-ink);
    font-size: 0.93rem;
    font-weight: 800;
    line-height: 1.45;
}

.leil-ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.leil-ecosystem-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--leil-line);
    border-radius: var(--leil-radius);
    background: #fff;
    padding: 1.35rem;
    box-shadow: var(--leil-shadow);
}

.leil-ecosystem-card::after {
    content: "";
    position: absolute;
    inset: auto -1.4rem -1.4rem auto;
    width: 6rem;
    height: 6rem;
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.12);
}

.leil-ecosystem-card span,
.leil-ecosystem-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    color: #fff;
    background: var(--leil-primary);
    font-size: 0.78rem;
    font-weight: 900;
}

.leil-ecosystem-card h3 {
    margin-top: 1.1rem;
    color: var(--leil-ink);
    font-size: 1.35rem;
    font-weight: 900;
}

.leil-ecosystem-card strong {
    display: block;
    margin-top: 0.45rem;
    color: var(--leil-gold);
    font-size: 0.88rem;
    line-height: 1.45;
}

.leil-ecosystem-card p {
    margin-top: 0.85rem;
    color: var(--leil-text);
    font-size: 0.92rem;
    line-height: 1.65;
}

.leil-ecosystem-timeline {
    display: grid;
    gap: 1rem;
}

.leil-ecosystem-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.2rem;
    min-width: 0;
    border: 1px solid var(--leil-line);
    border-radius: var(--leil-radius);
    background: #fff;
    padding: 1.3rem;
    box-shadow: var(--leil-shadow);
}

.leil-contact-mini {
    display: flex;
    gap: 1rem;
    min-width: 0;
    align-items: flex-start;
}

.leil-contact-mini strong,
.leil-contact-mini em {
    display: block;
    font-style: normal;
}

.leil-contact-mini strong {
    color: var(--leil-ink);
    font-size: 0.92rem;
    font-weight: 900;
}

.leil-contact-mini em {
    margin-top: 0.15rem;
    color: var(--leil-text);
    font-size: 0.94rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.leil-contact-mini a {
    color: var(--leil-primary);
    font-weight: 800;
}

.leil-field {
    display: grid;
    gap: 0.45rem;
}

.leil-field span {
    color: var(--leil-ink);
    font-size: 0.84rem;
    font-weight: 900;
}

.leil-field input,
.leil-field textarea {
    width: 100%;
}

.leil-field small {
    color: var(--leil-gold);
    font-size: 0.78rem;
    font-weight: 800;
}

.leil-product-image {
    width: 100%;
    aspect-ratio: 1 / 0.78;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(0, 166, 82, 0.10), rgba(201, 162, 39, 0.12));
}

.leil-product-fallback {
    width: 100%;
    aspect-ratio: 1 / 0.78;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    color: var(--leil-primary-dark);
    font-weight: 800;
    background: linear-gradient(135deg, rgba(0, 166, 82, 0.10), rgba(201, 162, 39, 0.12));
}

.leil-auth-shell {
    min-height: calc(100vh - 4.5rem);
    display: grid;
    align-items: center;
    padding: 3rem 1rem;
    background:
        radial-gradient(circle at 20% 15%, rgba(0, 166, 82, 0.13), transparent 24rem),
        linear-gradient(135deg, #FFFFFF 0%, #ffffff 48%, rgba(0, 166, 82, 0.10) 100%);
}

.leil-auth-grid {
    width: min(100%, 1060px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 1.25rem;
}

.leil-auth-panel {
    color: #fff;
    background: linear-gradient(135deg, var(--leil-primary), var(--leil-gold));
    border-radius: 1.35rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: var(--leil-shadow-soft);
    overflow: hidden;
    position: relative;
}

.leil-auth-panel::after {
    content: "";
    position: absolute;
    width: 18rem;
    height: 18rem;
    right: -8rem;
    bottom: -8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.leil-auth-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 166, 82, 0.12);
    border-radius: 1.35rem;
    box-shadow: var(--leil-shadow);
    padding: clamp(1.35rem, 4vw, 2.5rem);
}

.leil-panel-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(0, 166, 82, 0.08), transparent 28rem),
        #FFFFFF;
}

.leil-dashboard-shell {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    width: 100%;
}

.leil-sidebar {
    background: #fff;
    border-right: 1px solid var(--leil-line);
    box-shadow: 12px 0 28px rgba(0, 166, 82, 0.08);
}

.leil-sidebar-brand {
    height: 4.65rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-bottom: 1px solid var(--leil-line);
}

.leil-brand-mark {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    background: var(--leil-primary);
    box-shadow: 0 10px 22px rgba(0, 166, 82, 0.26);
}

.leil-menu-group {
    margin-top: 0.45rem;
}

.leil-menu-parent,
.leil-menu-link,
.leil-submenu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: var(--leil-radius-sm);
    color: #64748b;
    font-weight: 700;
}

.leil-menu-parent {
    width: 100%;
    min-height: 2.85rem;
    padding: 0.72rem 0.8rem;
    border: 1px solid transparent;
    text-align: left;
}

.leil-menu-parent svg,
.leil-menu-link svg,
.leil-submenu-link svg {
    flex: 0 0 auto;
    width: 1.12rem;
    height: 1.12rem;
}

.leil-menu-chevron {
    margin-left: auto;
    transition: transform 0.18s ease;
}

.leil-menu-group.is-open .leil-menu-chevron {
    transform: rotate(180deg);
}

.leil-submenu {
    margin: 0.3rem 0 0.65rem 1.1rem;
    padding-left: 0.65rem;
    border-left: 1px solid var(--leil-line);
}

.leil-submenu-link {
    min-height: 2.35rem;
    padding: 0.58rem 0.72rem;
    font-size: 0.88rem;
}

.leil-menu-link {
    min-height: 2.45rem;
    padding: 0.65rem 0.8rem;
}

.leil-menu-parent:hover,
.leil-menu-parent.is-active,
.leil-menu-link:hover,
.leil-menu-idle:hover,
.leil-submenu-link:hover {
    color: var(--leil-primary-dark);
    background: var(--leil-primary-soft);
}

.leil-menu-parent.is-active {
    border-color: rgba(0, 166, 82, 0.22);
}

.leil-menu-active {
    color: var(--leil-primary-dark) !important;
    background: var(--leil-primary-soft) !important;
    box-shadow: inset 3px 0 0 var(--leil-primary);
}

.leil-logout-link {
    color: var(--leil-gold) !important;
}

.leil-logout-link:hover {
    color: #fff !important;
    background: var(--leil-gold) !important;
}

.leil-topbar {
    height: 4.65rem;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid var(--leil-line);
    backdrop-filter: blur(14px);
}

.leil-main {
    min-width: 0;
    max-width: 100%;
}

.leil-stat-card {
    background: #fff;
    border: 1px solid var(--leil-line);
    border-radius: var(--leil-radius);
    padding: 1.05rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.leil-stat-card .leil-stat-value {
    color: var(--leil-ink);
    font-size: clamp(1rem, 1.35vw, 1.45rem);
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
}

.leil-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--leil-line);
    border-radius: var(--leil-radius);
    background: #fff;
}

.leil-table,
main table {
    width: 100%;
    border-collapse: collapse;
}

.leil-table thead,
main table thead {
    background: rgba(0, 166, 82, 0.08);
}

.leil-table th,
.leil-table td,
main table th,
main table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--leil-line);
    vertical-align: middle;
}

.leil-table th,
main table th {
    color: #6b5d59;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
}

.leil-table tr:last-child td,
main table tr:last-child td {
    border-bottom: 0;
}

.leil-empty {
    padding: 2.2rem;
    text-align: center;
    color: var(--leil-muted);
    background: #fff;
    border: 1px dashed rgba(0, 166, 82, 0.28);
    border-radius: var(--leil-radius);
}

.leil-progress {
    height: 0.55rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(0, 166, 82, 0.16);
}

.leil-progress > span,
.leil-progress > div {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--leil-primary), var(--leil-gold));
}

.leil-quick-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--leil-line);
    border-radius: var(--leil-radius);
    color: var(--leil-ink);
    font-weight: 800;
}

.leil-quick-card:hover {
    color: var(--leil-primary-dark);
    border-color: rgba(0, 166, 82, 0.26);
    box-shadow: var(--leil-shadow);
}

.leil-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(15, 23, 42, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.leil-mobile-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1370px) {
    .leil-currency-label {
        display: none;
    }

    .leil-desktop-nav {
        gap: 1rem;
    }

    .leil-nav-link {
        font-size: 0.8rem;
    }

    .leil-header-actions {
        gap: 0.55rem;
    }
}

@media (max-width: 1180px) {
    .leil-desktop-nav,
    .leil-header-actions {
        display: none;
    }

    .leil-mobile-menu-button {
        display: inline-flex !important;
    }

    .leil-public-header-row {
        min-height: 4.85rem;
    }
}

@media (min-width: 1281px) {
    .leil-mobile-menu {
        display: none !important;
    }
}

@media (max-width: 1280px) {
    .leil-desktop-nav,
    .leil-header-actions {
        display: none;
    }

    .leil-mobile-menu-button {
        display: inline-flex !important;
    }
}

@media (max-width: 1023px) {
    .leil-sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    .leil-sidebar.is-open {
        transform: translateX(0);
    }

    .leil-dashboard-shell {
        display: block;
        min-height: 100dvh;
        overflow: visible;
    }

    .leil-main {
        width: 100%;
        min-height: 100dvh;
    }

    .leil-sidebar {
        width: min(18rem, calc(100vw - 1.5rem)) !important;
        max-width: calc(100vw - 1.5rem);
    }

    .leil-topbar {
        min-height: 4.35rem;
        height: auto;
        padding-top: 0.7rem !important;
        padding-bottom: 0.7rem !important;
    }

    .leil-topbar .leil-account-trigger {
        min-height: 2.75rem;
        gap: 0.35rem;
        padding: 0.25rem 0.45rem 0.25rem 0.25rem;
    }

    .leil-topbar .leil-account-avatar {
        width: 2.2rem;
        height: 2.2rem;
    }

    .leil-topbar .leil-badge {
        max-width: 5.5rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .leil-topbar h1 {
        max-width: min(48vw, 16rem);
    }

    .leil-topbar main,
    .leil-main main {
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .leil-container {
        width: min(100% - 1.25rem, 1240px);
    }

    .leil-header-container {
        width: min(100% - 1.25rem, 1420px);
    }

    .leil-public-header-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 2.75rem;
        gap: 0.75rem;
    }

    .leil-brand-link {
        min-width: 0;
    }

    .leil-brand-link .text-2xl {
        font-size: 1.45rem;
        line-height: 1;
    }

    .leil-mobile-menu-button {
        display: inline-flex !important;
        position: fixed;
        top: 0.78rem;
        right: 0.78rem;
        z-index: 120;
        width: 2.75rem !important;
        height: 2.75rem !important;
        min-height: 2.75rem !important;
        justify-self: end;
        padding: 0 !important;
        color: var(--leil-primary-dark);
        background: #fff;
        box-shadow: 0 10px 24px rgba(0, 166, 82, 0.12);
    }

    .leil-currency-control {
        gap: 0.35rem;
    }

    .leil-public-header-row {
        min-height: 4.35rem;
    }

    .leil-footer-cta {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .leil-hero {
        min-height: auto;
        padding: 3rem 0 2rem;
    }

    .leil-hero .leil-container,
    .leil-hero .leil-container > * {
        min-width: 0;
        max-width: 100%;
    }

    .leil-hero .leil-title {
        max-width: 100%;
        font-size: clamp(1.72rem, 7.4vw, 2rem) !important;
        line-height: 1.12;
        overflow-wrap: anywhere;
    }

    .leil-hero p {
        max-width: 100%;
        font-size: 0.98rem;
        overflow-wrap: anywhere;
    }

    .leil-hero::after {
        display: none;
    }

    .leil-hero-image {
        max-width: 100%;
        height: 17rem;
    }

    .leil-ecosystem-grid {
        grid-template-columns: 1fr;
    }

    .leil-ecosystem-row {
        grid-template-columns: 1fr;
    }

    .leil-auth-grid {
        grid-template-columns: 1fr;
    }

    .leil-auth-panel {
        min-height: 18rem;
    }

    .leil-auth-card .leil-btn,
    .leil-hero .leil-btn,
    .leil-hero .leil-btn-outline {
        width: 100%;
    }

    .leil-panel-body {
        background: #FFFFFF;
    }

    .leil-topbar .hidden {
        display: none !important;
    }

    .leil-main > main {
        padding: 1rem !important;
        overflow-x: hidden;
    }

    .leil-topbar {
        gap: 0.5rem !important;
        padding-inline: 0.75rem !important;
    }

    .leil-topbar > div:first-child {
        min-width: 0;
        flex: 1 1 auto;
    }

    .leil-topbar > div:last-child {
        flex: 0 0 auto;
        gap: 0.4rem !important;
    }

    .leil-topbar .leil-btn-outline[aria-label],
    .leil-topbar #sidebar-toggle {
        width: 2.55rem !important;
        height: 2.55rem !important;
        min-height: 2.55rem !important;
    }

    .leil-topbar p {
        font-size: 0.66rem;
        line-height: 1;
    }

    .leil-topbar h1 {
        max-width: 40vw;
        font-size: 1rem !important;
        line-height: 1.15;
    }

    .leil-topbar .leil-account-trigger {
        width: 2.75rem;
        min-height: 2.55rem;
        justify-content: center;
        padding: 0.2rem !important;
    }

    .leil-topbar .leil-account-trigger > svg,
    .leil-topbar .leil-account-meta {
        display: none !important;
    }

    .leil-topbar .leil-account-avatar {
        width: 2.1rem;
        height: 2.1rem;
    }

    .leil-topbar .leil-account-dropdown {
        position: fixed;
        top: 4.75rem;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }

    .leil-topbar .leil-account-dropdown::before {
        right: 1.4rem;
    }

    .leil-topbar .leil-badge {
        display: none;
    }

    .leil-card,
    .leil-card-flat,
    .leil-card-soft,
    .leil-stat-card {
        border-radius: 12px;
    }

    .leil-stat-card {
        padding: 0.9rem;
    }

    .leil-stat-card .leil-stat-value {
        font-size: 1.15rem;
        white-space: nowrap;
    }

    .leil-table-wrap,
    .overflow-x-auto {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .leil-table th,
    .leil-table td,
    main table th,
    main table td {
        padding: 0.72rem 0.85rem;
        white-space: nowrap;
    }

    main input,
    main select,
    main textarea {
        max-width: 100%;
    }

    main .grid {
        min-width: 0;
    }
}

.text-primary-500,
.text-primary-600,
.text-primary-700,
.hover\:text-primary-600:hover,
.hover\:text-primary-700:hover,
.focus\:border-primary-500:focus,
.focus\:ring-primary-500:focus,
.text-emerald-600,
.text-emerald-700 {
    color: var(--leil-primary) !important;
}

.text-leil-gold,
.text-amber-700 {
    color: var(--leil-gold) !important;
}

.bg-primary-50,
.bg-primary-50\/40,
.bg-emerald-50,
.hover\:bg-primary-50:hover {
    background-color: rgba(0, 166, 82, 0.1) !important;
}

.bg-primary-600,
.hover\:bg-primary-700:hover {
    background-color: var(--leil-primary) !important;
}

.bg-amber-50,
.hover\:bg-amber-50:hover {
    background-color: rgba(201, 162, 39, 0.14) !important;
}

.border-primary-100,
.hover\:border-primary-300:hover {
    border-color: rgba(0, 166, 82, 0.18) !important;
}

.leil-badge-danger {
    color: var(--leil-gold);
    background: rgba(201, 162, 39, 0.14);
}

main .leil-card:has(table),
main .leil-card-flat:has(table) {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

main table {
    min-width: 700px;
}

nav[role="navigation"] {
    width: 100%;
}

nav[role="navigation"] .relative,
nav[role="navigation"] a,
nav[role="navigation"] span {
    border-color: rgba(0, 166, 82, 0.18) !important;
}

nav[role="navigation"] a:hover,
nav[role="navigation"] span[aria-current="page"] span,
nav[role="navigation"] .bg-white:hover {
    color: var(--leil-primary) !important;
    background-color: rgba(0, 166, 82, 0.1) !important;
}

nav[role="navigation"] span[aria-current="page"] span {
    border-color: var(--leil-primary) !important;
    font-weight: 900;
}

@media (max-width: 767px) {
    .leil-logo-img-public {
        height: 2.55rem;
        max-width: 10.5rem;
    }

    .leil-logo-img-panel {
        height: 2.35rem;
        max-width: 9.5rem;
    }

    .leil-auth-logo {
        height: 2.75rem;
        max-width: 11.5rem;
    }

    .leil-submenu {
        margin-left: 0.65rem;
    }

    main table {
        min-width: 640px;
    }

    main form:not(.leil-currency-form) {
        max-width: 100%;
    }

    main .flex {
        min-width: 0;
    }

    main .leil-btn,
    main .leil-btn-outline,
    main .leil-btn-soft {
        white-space: normal;
        text-align: center;
    }
}

/* ===== MOBILE RESPONSIVENESS ADDITIONS ===== */

/* Binary tree horizontal scroll on mobile */
.binary-tree-scroll-hint {
    display: none;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    padding: 0.25rem 0;
}

/* Wallet cards row - ensure no overflow */
.leil-stat-card {
    min-width: 0;
    overflow: hidden;
}

.leil-stat-value {
    overflow: visible;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* Table responsive wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Admin layout responsive grid */
@media (max-width: 1023px) {
    .admin-two-col {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767px) {
    /* Binary tree: show scroll hint on mobile */
    .binary-tree-scroll-hint {
        display: block;
    }

    /* Tree cards smaller on mobile */
    .tree-card {
        min-width: 100px !important;
        max-width: 120px !important;
        padding: 6px 8px !important;
        font-size: 11px !important;
    }

    .tree-children {
        gap: 12px !important;
    }

    /* Stats grid spacing */
    .leil-stat-value {
        font-size: 1.5rem !important;
    }

    /* Form grids always stack on small mobile */
    .form-grid-2 {
        grid-template-columns: 1fr !important;
    }

    /* Activation page wallet cards */
    .wallet-grid-3 {
        grid-template-columns: 1fr 1fr !important;
    }

    /* User topbar compact on mobile */
    .leil-topbar .leil-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.5rem;
    }

    /* Quick action cards in dashboard */
    .leil-quick-card {
        padding: 0.65rem !important;
        font-size: 0.75rem !important;
    }

    /* Bonus report table */
    .bonus-report-card {
        overflow-x: auto;
    }

    /* Modal and overlays */
    .leil-modal {
        margin: 0.75rem;
        max-height: calc(100vh - 1.5rem);
        overflow-y: auto;
    }

    /* Package radio labels on mobile */
    .pkg-radio-label {
        padding: 0.65rem !important;
    }

    /* Referral link text wrap */
    .referral-link-text {
        word-break: break-all;
        font-size: 0.7rem;
    }

    /* Binary tree: force horizontal scroll nicely */
    #binary-tree-container {
        padding-bottom: 0.5rem;
    }

    /* Sidebar JS toggle - ensure overlay closes properly */
    .leil-mobile-overlay.is-open {
        pointer-events: all;
    }
}

@media (max-width: 480px) {
    /* Very small screens */
    .leil-auth-shell {
        padding: 1rem 0.75rem;
    }

    .leil-auth-card {
        padding: 1.25rem !important;
    }

    .leil-auth-panel {
        min-height: 12rem !important;
        padding: 1.25rem !important;
    }

    .leil-auth-panel h1 {
        font-size: 1.75rem !important;
    }

    /* Binary tree node on tiny screens */
    .tree-card {
        min-width: 80px !important;
        max-width: 100px !important;
    }

    .tree-children {
        gap: 8px !important;
    }
}
/* Mobile table scrolling: card containers that hold tables scroll horizontally */
@media (max-width: 767px) {
    .leil-card,
    .leil-card-flat,
    .leil-card-soft {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* But don't scroll cards that are pure flex/grid layout cards (stat cards etc.) */
    .leil-stat-card,
    .leil-quick-card {
        overflow: visible;
    }

    /* Main has hidden overflow to prevent page scroll, but inner containers can scroll */
    .leil-main > main {
        overflow-x: clip !important;
    }
}

/* ── Tailwind v4 fallback classes — missing from compiled CSS due to Node 18 build constraint ── */

/* Primary (LEILMALL brand green #00A652) */
.text-primary-600  { color: #00A652; }
.text-primary-700  { color: #15803d; }
.bg-primary-50     { background-color: #f0fdf4; }
.border-primary-300{ border-color: #86efac; }
.border-primary-500{ border-color: #22c55e; }

/* hover variants */
.hover\:border-primary-300:hover { border-color: #86efac; }

/* has-[:checked] variants — package selection highlight */
.has-\[\:checked\]\:border-primary-500:has(:checked) { border-color: #22c55e; }
.has-\[\:checked\]\:bg-primary-50:has(:checked)       { background-color: #f0fdf4; }

/* Teal (used in some blade partials) */
.text-teal-600   { color: #0d9488; }
.text-teal-700   { color: #0f766e; }
.bg-teal-50      { background-color: #f0fdfa; }
.border-teal-300 { border-color: #5eead4; }
.border-teal-500 { border-color: #14b8a6; }
.from-teal-600   { --tw-gradient-from: #0d9488; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }

.hover\:border-teal-300:hover { border-color: #5eead4; }
.has-\[\:checked\]\:border-teal-500:has(:checked) { border-color: #14b8a6; }
.has-\[\:checked\]\:bg-teal-50:has(:checked)       { background-color: #f0fdfa; }

/* Blue (used in gradient button fallback) */
.to-blue-700  { --tw-gradient-to: #1d4ed8; }
.bg-blue-50   { background-color: #eff6ff; }
.text-blue-700{ color: #1d4ed8; }
.border-blue-200 { border-color: #bfdbfe; }