
:root {
    --afe-font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --afe-bg: #f3f6fb;
    --afe-bg-2: #eef3f9;
    --afe-surface: #ffffff;
    --afe-surface-soft: #f8fafc;
    --afe-surface-muted: #eef2f7;
    --afe-text: #0f172a;
    --afe-text-soft: #475569;
    --afe-text-muted: #64748b;
    --afe-line: rgba(15, 23, 42, 0.08);
    --afe-line-strong: rgba(15, 23, 42, 0.12);
    --afe-success: #15803d;
    --afe-warning: #b45309;
    --afe-danger: #b91c1c;
    --afe-radius-xs: .7rem;
    --afe-radius-sm: .95rem;
    --afe-radius-md: 1.1rem;
    --afe-radius-lg: 1.35rem;
    --afe-radius-xl: 1.7rem;
    --afe-shadow-xs: 0 2px 10px rgba(15, 23, 42, 0.05);
    --afe-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
    --afe-shadow-md: 0 18px 40px rgba(15, 23, 42, 0.08);
    --afe-shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.12);
    --afe-sidebar-width: 292px;
    --afe-topbar-height: 76px;
    --afe-accent-rgb: 37, 99, 235;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: var(--afe-font-sans);
    background: linear-gradient(180deg, #f8fbff 0%, var(--afe-bg) 26%, var(--afe-bg-2) 100%);
    color: var(--afe-text);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
img { max-width: 100%; }
small,
.text-muted { color: var(--afe-text-muted) !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }
.bg-light,
.section-soft { background: var(--afe-surface-soft) !important; }
.hero-gradient {
    background:
        radial-gradient(circle at top left, rgba(var(--afe-accent-rgb), 0.16), transparent 35%),
        linear-gradient(135deg, var(--afe-primary, #0f172a), var(--afe-secondary, #111827));
}
.text-accent { color: var(--afe-accent, #2563eb) !important; }

.afe-app {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fbff 0%, var(--afe-bg) 26%, var(--afe-bg-2) 100%);
}

.afe-app--public main { min-height: calc(100vh - 220px); }
.afe-app--panel main,
.afe-app--pos main { position: relative; }

.afe-shell { width: 100%; }
.afe-panel-shell {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}
.afe-panel-sidebar {
    position: sticky;
    top: 0;
    z-index: 1020;
    flex: 0 0 var(--afe-sidebar-width);
    width: var(--afe-sidebar-width);
    max-width: var(--afe-sidebar-width);
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg, #0f172a 0%, #101828 52%, #111827 100%) !important;
    color: rgba(255,255,255,.9);
    border-right: 1px solid rgba(255,255,255,.05);
    box-shadow: 16px 0 48px rgba(2, 6, 23, .16);
}
.afe-panel-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.afe-main-wrap,
.afe-main,
.afe-main > * { min-width: 0; }
.afe-main {
    padding: 1.5rem !important;
}

/* cards / surfaces */
.afe-card,
.card,
.card-soft,
.pos-card,
.table-responsive.bg-white,
.modal-content,
.dropdown-menu {
    background: var(--afe-surface);
    border: 1px solid var(--afe-line);
    border-radius: var(--afe-radius-lg) !important;
    box-shadow: var(--afe-shadow-sm);
}
.card.border-0,
.pos-card,
.card-soft { border-color: var(--afe-line) !important; }
.afe-card-soft,
.rounded-4.bg-light,
.rounded-4.border,
.rounded-4.bg-white {
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
    border: 1px solid var(--afe-line);
    border-radius: var(--afe-radius-lg) !important;
    box-shadow: var(--afe-shadow-xs);
}
.rounded-4,
.modal-content.rounded-4,
.form-control.rounded-4,
.form-select.rounded-4,
.btn.rounded-4,
.nav-link.rounded-4 { border-radius: var(--afe-radius-md) !important; }
.rounded-pill,
.btn.rounded-pill,
.form-control.rounded-pill,
.form-select.rounded-pill,
.nav-link.rounded-pill { border-radius: 999px !important; }
.afe-divider,
hr,
.border,
.border-top,
.border-bottom,
.border-start,
.border-end { border-color: var(--afe-line) !important; }

/* buttons */
.btn {
    --bs-btn-padding-x: 1rem;
    --bs-btn-padding-y: .72rem;
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: var(--afe-radius-md);
    --bs-btn-box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 42px;
    line-height: 1.15;
    letter-spacing: -.01em;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--afe-shadow-xs); }
.btn:active { transform: translateY(0); }
.btn-sm {
    min-height: 36px;
    --bs-btn-padding-x: .85rem;
    --bs-btn-padding-y: .52rem;
    font-size: .88rem;
}
.btn-lg {
    min-height: 50px;
    --bs-btn-padding-x: 1.15rem;
    --bs-btn-padding-y: .82rem;
}
.btn-dark,
.btn-primary,
.btn-accent {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--afe-accent, #2563eb);
    --bs-btn-border-color: var(--afe-accent, #2563eb);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: color-mix(in srgb, var(--afe-accent, #2563eb) 90%, #000 10%);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--afe-accent, #2563eb) 90%, #000 10%);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: color-mix(in srgb, var(--afe-accent, #2563eb) 86%, #000 14%);
    --bs-btn-active-border-color: color-mix(in srgb, var(--afe-accent, #2563eb) 86%, #000 14%);
}
.btn-outline-dark,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-light {
    background: #fff;
    color: var(--afe-text);
    border-color: var(--afe-line-strong);
}
.btn-outline-light {
    background: rgba(255,255,255,.06);
    color: #fff;
    border-color: rgba(255,255,255,.12);
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-link { min-height: auto; padding: 0; box-shadow: none !important; }
.btn-icon { width: 42px; min-width: 42px; padding-inline: 0; }

/* forms */
.form-label {
    color: var(--afe-text-soft);
    font-size: .92rem;
    font-weight: 600;
    margin-bottom: .5rem;
}
.form-control,
.form-select,
.input-group-text,
textarea {
    border-color: var(--afe-line-strong);
    border-radius: var(--afe-radius-md) !important;
    min-height: 46px;
    box-shadow: none !important;
}
.form-control,
.form-select {
    background: #fff;
    color: var(--afe-text);
}
.form-control::placeholder { color: #94a3b8; }
.form-control:focus,
.form-select:focus {
    border-color: color-mix(in srgb, var(--afe-accent, #2563eb) 55%, white 45%);
    box-shadow: 0 0 0 .2rem rgba(var(--afe-accent-rgb), 0.12) !important;
}
textarea.form-control { min-height: 120px; }
.input-group-text {
    background: var(--afe-surface-soft);
    color: var(--afe-text-soft);
}
.form-check {
    display: flex;
    align-items: flex-start;
    gap: .58rem;
    min-width: 0;
    min-height: 1.6rem;
    padding-left: 0;
}
.form-check-input {
    float: none;
    width: 1.08rem;
    height: 1.08rem;
    min-width: 1.08rem;
    min-height: 1.08rem;
    margin: .12rem 0 0 !important;
    flex: 0 0 1.08rem;
    border-color: #cbd5e1;
    border-radius: .3rem !important;
    box-shadow: none !important;
}
.form-check-input[type="radio"] { border-radius: 50% !important; }
.form-check-input:focus { box-shadow: 0 0 0 .15rem rgba(var(--afe-accent-rgb), 0.14) !important; }
.form-check-input:checked {
    background-color: var(--afe-accent, #2563eb);
    border-color: var(--afe-accent, #2563eb);
}
.form-check-input:disabled { cursor: not-allowed; }
.form-check-label {
    min-width: 0;
    line-height: 1.35;
    color: var(--afe-text);
    overflow-wrap: anywhere;
}
.form-check.form-switch {
    align-items: center;
    gap: .65rem;
    padding-left: 0;
}
.form-switch .form-check-input,
.form-switch .form-check-input:checked {
    float: none;
    width: 2.25rem;
    height: 1.26rem;
    min-width: 2.25rem;
    min-height: 1.26rem;
    margin: 0 !important;
    flex-basis: 2.25rem;
    border-radius: 999px !important;
    background-size: 1rem 1rem;
}
.form-switch .form-check-input { background-position: left center; }
.form-switch .form-check-input:checked { background-position: right center; }

/* badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 1.95rem;
    padding: .42rem .78rem !important;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .01em;
    text-align: center;
    vertical-align: middle;
}

/* topbar */
.afe-topbar,
header.afe-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
    min-height: var(--afe-topbar-height);
    background: rgba(243, 246, 251, .92) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, .18) !important;
}
.afe-topbar__inner {
    min-height: var(--afe-topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
}
.afe-topbar__title {
    margin: 0;
    font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem);
    line-height: 1.15;
    font-weight: 800;
    color: #0b1220;
}
.afe-topbar__subtitle {
    margin: .35rem 0 0;
    color: var(--afe-text-muted);
    font-size: .92rem;
}
.afe-topbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .6rem;
    flex-wrap: wrap;
}
.afe-topbar__chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.2rem;
    padding: .45rem .8rem;
    background: rgba(255,255,255,.9);
    border: 1px solid var(--afe-line);
    border-radius: 999px;
    color: var(--afe-text-soft);
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
}
.afe-topbar .btn,
.afe-topbar .small,
.afe-topbar .text-muted,
.afe-topbar .fw-semibold { max-width: 100%; }
.afe-topbar form { margin-bottom: 0; }

/* sidebar */
.afe-brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.45rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.afe-brand__logo {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--afe-accent, #2563eb), #60a5fa);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 24px rgba(var(--afe-accent-rgb), .28);
}
.afe-brand__title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
}
.afe-brand__subtitle {
    font-size: .8rem;
    color: rgba(255,255,255,.58);
}
.afe-sidebar__section { padding: .85rem .95rem 0; }
.afe-sidebar__label {
    padding: .35rem .8rem .55rem;
    color: rgba(255,255,255,.38);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
}
.afe-nav { display: grid; gap: .34rem; }
.afe-nav__item {
    display: flex;
    align-items: center;
    gap: .78rem;
    min-height: 44px;
    padding: .72rem .82rem;
    border-radius: 14px;
    text-decoration: none;
    color: rgba(255,255,255,.72);
    font-weight: 600;
    transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.afe-nav__item:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
    transform: translateX(1px);
}
.afe-nav__item.is-active {
    background: linear-gradient(90deg, rgba(var(--afe-accent-rgb), .20), rgba(var(--afe-accent-rgb), .08));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(96,165,250,.16);
}
.afe-nav__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.afe-nav__label { min-width: 0; flex: 1 1 auto; }
.afe-nav__meta {
    margin-left: auto;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 .45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
}
.afe-sidebar__footer {
    margin-top: auto;
    padding: 1rem .95rem 1.1rem;
}
.afe-sidebar__helper {
    padding: .95rem 1rem;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    border-radius: 16px;
}
.afe-sidebar__helper-title {
    color: #fff;
    font-weight: 700;
    font-size: .93rem;
}
.afe-sidebar__helper-copy {
    color: rgba(255,255,255,.62);
    font-size: .8rem;
    margin-top: .35rem;
    line-height: 1.45;
}

/* tables */
.afe-table-shell {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}
.table-responsive,
.table-responsive.afe-table-scroll,
.afe-main .table-responsive {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--afe-radius-md);
    scrollbar-width: thin;
}
.table-responsive::-webkit-scrollbar { height: 10px; }
.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,.45);
    border-radius: 999px;
}
.table-responsive::after,
.table-responsive.afe-table-scroll::after { display: none !important; }
.table-responsive > .table,
.table-responsive table,
.afe-main .table-responsive > .table,
.afe-main .table-responsive table {
    width: 100%;
    min-width: 860px;
    margin-bottom: 0;
    table-layout: auto;
}
.table-responsive .table,
.table {
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--afe-line);
}
.table > :not(caption) > * > * {
    padding: .92rem 1rem;
    border-bottom-color: var(--afe-line);
    vertical-align: middle;
}
.table thead th,
.table .table-light th {
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    color: #334155;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 800;
}
.table tbody tr:hover > * {
    background: rgba(var(--afe-accent-rgb), 0.03);
}
.table-responsive .table th,
.table-responsive .table td {
    white-space: nowrap;
    vertical-align: middle;
}
.table-responsive .table .text-wrap,
.table-responsive .table td.text-wrap,
.table-responsive .table th.text-wrap,
.table-responsive .table td[data-wrap="1"],
.table-responsive .table th[data-wrap="1"] {
    white-space: normal;
}
.table-responsive .btn-group,
.table-responsive .d-inline-flex,
.table-responsive .d-flex {
    flex-wrap: nowrap;
}
.afe-table-toolbar,
.afe-table-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.afe-table-toolbar__left,
.afe-table-toolbar__right {
    display: flex;
    align-items: center;
    gap: .85rem;
    flex-wrap: wrap;
    min-width: 0;
}
.afe-table-toolbar__search {
    position: relative;
    min-width: min(100%, 320px);
}
.afe-table-toolbar__search::before {
    content: '';
    position: absolute;
    inset: 50% auto auto 1rem;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background: currentColor;
    color: #94a3b8;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.afe-table-toolbar__search .form-control {
    min-height: 42px;
    padding-left: 2.65rem;
    border-radius: 999px !important;
    background: rgba(255,255,255,.96);
}
.afe-table-summary {
    color: var(--afe-text-muted);
    font-size: .86rem;
    font-weight: 600;
}
.afe-table-pagesize {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    color: var(--afe-text-muted);
    font-size: .86rem;
    font-weight: 600;
}
.afe-table-pagesize .form-select {
    min-height: 38px;
    min-width: 84px;
    border-radius: 999px !important;
    padding-inline: .9rem 2rem;
}
.pagination.afe-pagination {
    margin: 0;
    gap: .45rem;
    flex-wrap: wrap;
    justify-content: center;
}
.pagination.afe-pagination .page-link {
    border: 1px solid var(--afe-line-strong);
    border-radius: 12px !important;
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--afe-text-soft);
    font-weight: 700;
    background: #fff;
}
.pagination.afe-pagination .page-item.active .page-link {
    background: var(--afe-accent, #2563eb);
    border-color: var(--afe-accent, #2563eb);
    color: #fff;
}
.pagination.afe-pagination .page-item.disabled .page-link {
    background: #f8fafc;
    color: #94a3b8;
}

/* tabs */
.nav-tabs {
    gap: .55rem;
    border-bottom: 1px solid var(--afe-line);
}
.nav-tabs .nav-link {
    border: 1px solid transparent;
    color: var(--afe-text-muted);
    font-weight: 700;
    padding: .75rem 1rem;
}
.nav-tabs .nav-link.active,
.nav-tabs .nav-link:hover {
    color: var(--afe-text);
    background: #fff;
    border-color: var(--afe-line);
}

/* modals */
.modal-content {
    overflow: hidden;
}
.modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem 1rem;
    border-bottom: 1px solid var(--afe-line);
}
.modal .modal-title {
    font-weight: 800;
    color: #0b1220;
}
.modal .modal-body { padding: 1.25rem 1.4rem 1.35rem; }
.modal .modal-footer {
    padding: 1rem 1.4rem 1.35rem;
    border-top: 1px solid var(--afe-line);
}
.modal .btn-close {
    margin: 0 !important;
    position: relative;
    top: 0;
    right: 0;
    opacity: .72;
    box-shadow: none !important;
}
.modal .btn-close:hover { opacity: 1; }

/* misc */
.dropdown-menu {
    padding: .55rem;
}
.afe-has-error {
    box-shadow: 0 0 0 1px rgba(239,68,68,.14), 0 14px 28px rgba(239,68,68,.08) !important;
}
.table-responsive.afe-table-mobile-cards,
.table-responsive.afe-table-mobile-cards table,
.table-responsive.afe-table-mobile-cards thead,
.table-responsive.afe-table-mobile-cards tbody,
.table-responsive.afe-table-mobile-cards tr,
.table-responsive.afe-table-mobile-cards th,
.table-responsive.afe-table-mobile-cards td {
    display: revert !important;
    width: auto !important;
}
.table-responsive.afe-table-mobile-cards td::before { content: none !important; }

/* responsive */
@media (max-width: 991.98px) {
    .afe-panel-shell { display: block; }
    .afe-panel-sidebar {
        position: relative;
        top: auto;
        width: 100%;
        max-width: 100%;
        min-height: auto;
        box-shadow: none;
    }
    .afe-main { padding: 1.1rem !important; }
    .afe-topbar__inner {
        padding: .95rem 1rem;
        align-items: flex-start;
    }
    .afe-topbar__actions {
        justify-content: flex-start;
        width: 100%;
    }
}
@media (max-width: 767.98px) {
    .afe-main { padding: .9rem !important; }
    .afe-topbar__inner {
        padding: .85rem .9rem;
        flex-direction: column;
        align-items: stretch;
    }
    .afe-topbar__actions {
        justify-content: flex-start;
    }
    .afe-table-toolbar,
    .afe-table-footer {
        gap: .75rem;
        align-items: stretch;
    }
    .afe-table-toolbar__left,
    .afe-table-toolbar__right {
        width: 100%;
        justify-content: space-between;
    }
    .afe-table-toolbar__search { min-width: 100%; }
    .table-responsive > .table,
    .table-responsive table,
    .afe-main .table-responsive > .table,
    .afe-main .table-responsive table { min-width: 720px; }
    .btn { width: auto; }
}


/* unified client workspace */
.afe-app--workspace .afe-main {
    background:
        radial-gradient(circle at top right, rgba(var(--afe-accent-rgb), .08), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,.24), transparent 30%);
}
.afe-page-head {
    gap: 1rem;
}
.afe-quick-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem;
}
.afe-icon-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: .65rem .8rem;
    border-radius: 999px;
    border: 1px solid var(--afe-line-strong);
    background: rgba(255,255,255,.96);
    color: var(--afe-text);
    text-decoration: none;
    box-shadow: var(--afe-shadow-xs);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
.afe-icon-action:hover,
.afe-icon-action:focus-visible {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--afe-accent, #2563eb) 28%, white 72%);
    box-shadow: var(--afe-shadow-sm);
    color: var(--afe-text);
}
.afe-icon-action i,
.afe-icon-action svg {
    width: 18px;
    height: 18px;
}
.afe-icon-action--labeled {
    padding-inline: .9rem 1rem;
}
.afe-icon-action--labeled span {
    font-size: .88rem;
    font-weight: 700;
    line-height: 1;
}
.afe-icon-action--danger {
    border-color: rgba(185,28,28,.18);
    color: var(--afe-danger);
}
.afe-icon-action.disabled,
.afe-icon-action[disabled],
.afe-icon-action:disabled {
    pointer-events: none;
    opacity: .5;
    box-shadow: none;
}
.afe-copy-group .afe-icon-action {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.afe-document-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

/* POS */
.afe-pos-shell {
    align-items: start;
}
.afe-pos-hero {
    border-radius: 28px !important;
    background:
        radial-gradient(circle at top right, rgba(var(--afe-accent-rgb), .12), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
}
.afe-pos-section {
    border-radius: 28px !important;
}
.afe-pos-section__head {
    padding-bottom: .15rem;
}
.afe-pos-search input {
    min-width: min(100%, 340px);
}
.afe-pos-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    gap: 1rem;
}
.afe-pos-toggle {
    padding: .4rem .85rem;
    border: 1px solid var(--afe-line);
    border-radius: 999px;
    background: rgba(255,255,255,.92);
}
.afe-pos-product-card {
    min-height: 320px;
    border-radius: 24px !important;
    box-shadow: var(--afe-shadow-xs);
    overflow: hidden;
}
.afe-pos-product-card__media {
    display: none;
    margin: -.25rem -.25rem .9rem;
}
.afe-pos-product-grid.is-media-visible .afe-pos-product-card__media {
    display: block;
}
.afe-pos-product-card__thumb {
    width: 3rem;
    height: 3rem;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--afe-accent-rgb), .12), rgba(var(--afe-accent-rgb), .04));
    color: var(--afe-accent, #2563eb);
}
.afe-pos-product-card__thumb--cover {
    width: 100%;
    height: 128px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(var(--afe-accent-rgb), .22), transparent 28%),
        linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .94));
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -.04em;
}
.afe-pos-product-card__thumb svg,
.afe-pos-product-card__thumb i {
    width: 20px;
    height: 20px;
}
.afe-pos-product-card__name {
    min-height: 3.1rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.afe-pos-product-card__meta {
    min-height: 2.6rem;
    line-height: 1.35;
}
.afe-pos-list {
    max-height: min(54vh, 720px);
    overflow: auto;
    padding-right: .15rem;
}
.afe-pos-line {
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
}
.afe-pos-line__meta {
    line-height: 1.45;
}
.afe-pos-summary {
    border: 1px dashed rgba(var(--afe-accent-rgb), .16);
}
.afe-pos-accordion .accordion-item,
.afe-pos-accordion .accordion-button {
    border-radius: 22px !important;
}
.afe-pos-accordion .accordion-button {
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
    box-shadow: none !important;
    font-weight: 700;
}
.afe-pos-accordion .accordion-button:not(.collapsed) {
    color: var(--afe-text);
}
.afe-pos-modal .modal-content {
    border-radius: 28px !important;
}
.afe-pos-modal .modal-header,
.afe-pos-modal .modal-body {
    background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.97));
}
.afe-pos-modal .modal-body {
    padding-top: 1rem;
}

@media (max-width: 991.98px) {
    .afe-icon-action--labeled span {
        font-size: .84rem;
    }
}
@media (max-width: 767.98px) {
    .afe-quick-actions {
        width: 100%;
    }
    .afe-icon-action--labeled {
        flex: 1 1 calc(50% - .5rem);
        justify-content: center;
    }
    .afe-pos-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .afe-pos-product-card {
        min-height: 292px;
    }
    .afe-pos-product-card__thumb--cover {
        height: 104px;
    }
    .afe-pos-list {
        max-height: none;
    }
}


.afe-metric-card {
    background:
        radial-gradient(circle at top right, rgba(var(--afe-accent-rgb), .10), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
}
.afe-metric-card__label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--afe-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .65rem;
}
.afe-metric-card__value {
    font-size: clamp(1.75rem, 2vw, 2.35rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: .45rem;
}
.afe-metric-card__meta {
    font-size: .92rem;
    color: var(--afe-text-muted, #64748b);
}
.afe-inline-stat {
    border: 1px solid var(--afe-line);
    border-radius: 22px;
    background: rgba(255,255,255,.92);
    padding: 1rem 1.05rem;
}
.afe-inline-stat__label {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--afe-muted);
    margin-bottom: .45rem;
}
.afe-inline-stat__value {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}
.afe-accordion-stack .accordion-item {
    border: 1px solid rgba(15, 23, 42, .06) !important;
}
.afe-accordion-stack .accordion-button {
    background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.97));
    box-shadow: none;
    padding: 1.15rem 1.25rem;
    gap: 1rem;
}
.afe-accordion-stack .accordion-button:not(.collapsed) {
    color: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.97));
    box-shadow: none;
}
.afe-accordion-stack .accordion-button::after {
    margin-left: auto;
}
.afe-accordion-stack .accordion-body {
    background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.97));
}
.afe-plan-spotlight {
    background:
        radial-gradient(circle at top right, rgba(var(--afe-accent-rgb), .12), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
}
.afe-plan-option,
.afe-payment-option {
    border: 1px solid var(--afe-line);
    border-radius: 22px;
    background: rgba(255,255,255,.92);
    padding: 1rem 1.05rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.afe-plan-option:hover,
.afe-payment-option:hover {
    transform: translateY(-1px);
    box-shadow: var(--afe-shadow-xs);
    border-color: color-mix(in srgb, var(--afe-accent, #2563eb) 18%, white 82%);
}
.afe-plan-option.is-current,
.afe-payment-option.is-active {
    border-color: rgba(var(--afe-accent-rgb), .26);
    background: linear-gradient(180deg, rgba(var(--afe-accent-rgb), .08), rgba(255,255,255,.96));
}


.afe-documents-table-wrap {
    overflow-x: auto;
}
.afe-documents-table {
    min-width: 1120px;
}
.afe-documents-actions-col,
.afe-documents-actions-cell {
    min-width: 280px;
    width: 280px;
}
.afe-documents-actions-cell .afe-document-actions {
    max-width: 280px;
    margin-left: auto;
    justify-content: flex-end;
    row-gap: .45rem;
}
.afe-documents-actions-cell .modal {
    text-align: left;
}

/* Landing principal */
.afe-public-header {
    z-index: 1030;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(148,163,184,.18);
    box-shadow: 0 12px 36px rgba(15,23,42,.06);
}
.afe-public-nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.15rem;
    padding: .8rem 0;
}
.afe-public-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    color: var(--afe-text);
}
.afe-public-brand img {
    height: 44px;
    width: auto;
    object-fit: contain;
}
.afe-public-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--afe-primary, #0f172a), var(--afe-accent, #2563eb));
    box-shadow: 0 12px 26px rgba(37,99,235,.24);
}
.afe-public-brand strong,
.afe-public-brand small {
    display: block;
    line-height: 1.12;
}
.afe-public-brand strong {
    font-size: .98rem;
    letter-spacing: -.02em;
}
.afe-public-brand small {
    max-width: 260px;
    margin-top: .22rem;
    color: var(--afe-text-muted);
    font-size: .76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.afe-public-menu,
.afe-public-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;
}
.afe-public-menu a {
    text-decoration: none;
    color: var(--afe-text-soft);
    font-size: .92rem;
    font-weight: 700;
    padding: .6rem .78rem;
    border-radius: 999px;
    transition: background .18s ease, color .18s ease;
}
.afe-public-menu a:hover {
    color: var(--afe-text);
    background: rgba(15,23,42,.055);
}
.afe-public-actions .btn {
    min-height: 36px;
}
.afe-landing-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 12% 14%, rgba(96,165,250,.34), transparent 31%),
        radial-gradient(circle at 82% 12%, rgba(20,184,166,.22), transparent 30%),
        linear-gradient(135deg, #08111f 0%, #0f172a 42%, #111827 100%);
    padding: clamp(4.5rem, 8vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.afe-landing-hero::before,
.afe-landing-hero::after {
    content: "";
    position: absolute;
    inset: auto;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(4px);
}
.afe-landing-hero::before {
    width: 520px;
    height: 520px;
    right: -180px;
    bottom: -230px;
    background: rgba(37,99,235,.18);
}
.afe-landing-hero::after {
    width: 360px;
    height: 360px;
    left: -170px;
    top: 120px;
    background: rgba(20,184,166,.12);
}
.afe-landing-eyebrow,
.afe-landing-pill,
.afe-landing-mini-badge,
.afe-landing-section-head > span,
.afe-landing-sticky-note > span,
.afe-final-card > div > span {
    display: inline-flex;
    align-items: center;
    gap: .48rem;
    width: fit-content;
    font-size: .78rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 999px;
}
.afe-landing-eyebrow {
    color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    padding: .62rem .82rem;
    margin-bottom: 1.35rem;
}
.afe-landing-eyebrow span {
    width: .52rem;
    height: .52rem;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34,197,94,.16);
}
.afe-landing-hero h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(2.65rem, 5.2vw, 5.35rem);
    line-height: .98;
    font-weight: 900;
    letter-spacing: -.075em;
}
.afe-landing-lead {
    max-width: 720px;
    margin: 1.45rem 0 0;
    color: rgba(226,232,240,.78);
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
    line-height: 1.7;
}
.afe-landing-trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .78rem;
    max-width: 720px;
    margin-top: 2rem;
}
.afe-landing-trust-row div {
    padding: 1rem;
    border-radius: 1.3rem;
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.11);
}
.afe-landing-trust-row strong,
.afe-landing-trust-row span {
    display: block;
}
.afe-landing-trust-row strong {
    font-size: 1rem;
}
.afe-landing-trust-row span {
    margin-top: .18rem;
    color: rgba(226,232,240,.66);
    font-size: .85rem;
}
.afe-landing-hero-panel {
    position: relative;
    padding: 1.1rem;
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.07));
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 34px 80px rgba(2,6,23,.36);
    backdrop-filter: blur(18px);
}
.afe-hero-window-top {
    display: flex;
    gap: .42rem;
    padding: .25rem .2rem 1rem;
}
.afe-hero-window-top span {
    width: .68rem;
    height: .68rem;
    border-radius: 999px;
    background: rgba(255,255,255,.34);
}
.afe-hero-status-card,
.afe-hero-grid > div,
.afe-hero-flow {
    border-radius: 1.35rem;
    background: rgba(15,23,42,.76);
    border: 1px solid rgba(255,255,255,.1);
}
.afe-hero-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem;
    margin-bottom: .85rem;
}
.afe-hero-status-card small,
.afe-hero-status-card strong {
    display: block;
}
.afe-hero-status-card small {
    color: rgba(226,232,240,.62);
    font-weight: 700;
}
.afe-hero-status-card strong {
    margin-top: .15rem;
    font-size: 1.22rem;
}
.afe-hero-status-card i,
.afe-hero-status-card svg {
    width: 32px;
    height: 32px;
    color: #22c55e;
}
.afe-hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}
.afe-hero-grid > div {
    min-height: 142px;
    padding: 1rem;
}
.afe-hero-grid i,
.afe-hero-grid svg {
    width: 30px;
    height: 30px;
    color: #93c5fd;
    margin-bottom: .85rem;
}
.afe-hero-grid strong,
.afe-hero-grid span {
    display: block;
}
.afe-hero-grid strong {
    color: #fff;
    font-size: 1.08rem;
}
.afe-hero-grid span {
    color: rgba(226,232,240,.64);
    font-size: .88rem;
    margin-top: .22rem;
}
.afe-hero-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-top: .85rem;
    padding: .9rem;
    color: rgba(255,255,255,.82);
    font-weight: 800;
}
.afe-hero-flow i,
.afe-hero-flow svg {
    width: 16px;
    height: 16px;
    color: #93c5fd;
}
.afe-landing-section {
    position: relative;
    padding: clamp(4rem, 7vw, 6.25rem) 0;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}
.afe-landing-section-white {
    background: #fff;
}
.afe-landing-section-head {
    max-width: 860px;
    margin: 0 auto 2.4rem;
    text-align: center;
}
.afe-landing-section-head > span,
.afe-landing-sticky-note > span,
.afe-final-card > div > span {
    padding: .52rem .74rem;
    color: var(--afe-accent, #2563eb);
    background: rgba(37,99,235,.08);
    border: 1px solid rgba(37,99,235,.14);
    margin-bottom: 1rem;
}
.afe-landing-section-head h2,
.afe-landing-sticky-note h2,
.afe-final-card h2 {
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.055em;
    color: #0f172a;
}
.afe-landing-section-head p,
.afe-landing-sticky-note p,
.afe-final-card p {
    max-width: 760px;
    margin: 1rem auto 0;
    color: var(--afe-text-soft);
    font-size: 1.02rem;
    line-height: 1.75;
}
.afe-model-card,
.afe-feature-tile,
.afe-landing-plan-card,
.afe-process-grid article,
.afe-landing-sticky-note {
    height: 100%;
    border-radius: 1.65rem;
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(148,163,184,.18);
    box-shadow: 0 18px 44px rgba(15,23,42,.07);
}
.afe-model-card {
    padding: 1.45rem;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease;
}
.afe-model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 62px rgba(15,23,42,.1);
}
.afe-model-card.is-dark {
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(59,130,246,.32), transparent 42%),
        linear-gradient(145deg, #0f172a, #111827);
    border-color: rgba(255,255,255,.1);
}
.afe-model-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.15rem;
    color: #fff;
    background: linear-gradient(135deg, var(--afe-accent, #2563eb), #0f172a);
    box-shadow: 0 14px 32px rgba(37,99,235,.22);
    margin-bottom: 1.3rem;
}
.afe-model-icon i,
.afe-model-icon svg {
    width: 28px;
    height: 28px;
}
.afe-model-card h3,
.afe-feature-tile h3,
.afe-landing-plan-card h3,
.afe-process-grid h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -.035em;
}
.afe-model-card p,
.afe-feature-tile p,
.afe-landing-plan-card p,
.afe-process-grid p {
    color: var(--afe-text-soft);
    line-height: 1.65;
    margin: .7rem 0 0;
}
.afe-model-card.is-dark p {
    color: rgba(226,232,240,.72);
}
.afe-model-card a {
    margin-top: auto;
    width: fit-content;
    color: var(--afe-accent, #2563eb);
    font-weight: 900;
    text-decoration: none;
}
.afe-model-card.is-dark a {
    color: #bfdbfe;
}
.afe-landing-sticky-note {
    padding: clamp(1.5rem, 4vw, 2.2rem);
    background:
        radial-gradient(circle at top right, rgba(37,99,235,.13), transparent 35%),
        #fff;
}
.afe-feature-tile {
    min-height: 220px;
    padding: 1.35rem;
}
.afe-feature-tile i,
.afe-feature-tile svg {
    width: 30px;
    height: 30px;
    color: var(--afe-accent, #2563eb);
    margin-bottom: 1rem;
}
.afe-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.afe-process-grid article {
    padding: 1.35rem;
}
.afe-process-grid strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #fff;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--afe-accent, #2563eb), #0f172a);
    margin-bottom: 1.15rem;
}
.afe-cms-live-section {
    padding-bottom: 0;
}
.afe-cms-live-section > section {
    margin: 0;
}
.afe-plan-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.afe-plan-accordion .accordion-item {
    overflow: hidden;
    border: 1px solid rgba(148,163,184,.2);
    border-radius: 1.65rem !important;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15,23,42,.07);
}
.afe-plan-accordion .accordion-button {
    gap: 1rem;
    padding: 1.2rem 1.3rem;
    background: #fff;
    color: #0f172a;
    box-shadow: none;
}
.afe-plan-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(180deg, #fff, #f8fbff);
    color: #0f172a;
}
.afe-plan-accordion .accordion-button::after {
    flex-shrink: 0;
}
.afe-plan-accordion .accordion-button > span:last-of-type {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .18rem;
}
.afe-plan-accordion .accordion-button strong {
    font-size: 1.04rem;
    font-weight: 900;
}
.afe-plan-accordion .accordion-button small {
    color: var(--afe-text-muted) !important;
    font-size: .88rem;
}
.afe-plan-accordion-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--afe-accent, #2563eb), #0f172a);
}
.afe-plan-accordion-icon i,
.afe-plan-accordion-icon svg {
    width: 24px;
    height: 24px;
}
.afe-plan-accordion .accordion-body {
    padding: 1.25rem;
    background: linear-gradient(180deg, #fff, #f8fafc);
}
.afe-landing-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 430px;
    padding: 1.35rem;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.afe-landing-plan-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37,99,235,.22);
    box-shadow: 0 28px 72px rgba(15,23,42,.1);
}
.afe-landing-plan-card.is-featured {
    border-color: rgba(37,99,235,.28);
    background:
        radial-gradient(circle at top right, rgba(37,99,235,.13), transparent 34%),
        #fff;
}
.afe-landing-pill {
    padding: .48rem .65rem;
    color: var(--afe-accent, #2563eb);
    background: rgba(37,99,235,.08);
    border: 1px solid rgba(37,99,235,.12);
}
.afe-landing-mini-badge {
    padding: .48rem .65rem;
    color: #166534;
    background: rgba(34,197,94,.11);
    border: 1px solid rgba(34,197,94,.16);
}
.afe-landing-price {
    margin: 1rem 0;
    font-size: 1.42rem;
    font-weight: 900;
    letter-spacing: -.035em;
    color: #0f172a;
}
.afe-landing-checks {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    padding: 0;
    margin: .25rem 0 1.4rem;
    list-style: none;
}
.afe-landing-checks li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    color: var(--afe-text-soft);
    line-height: 1.4;
}
.afe-landing-checks i,
.afe-landing-checks svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: #16a34a;
    margin-top: .12rem;
}
.afe-landing-final-cta {
    padding: 4rem 0 5rem;
    background: linear-gradient(180deg, #eef4fb, #f8fbff);
}
.afe-final-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    padding: clamp(1.45rem, 4vw, 2.4rem);
    border-radius: 2rem;
    color: #fff;
    background:
        radial-gradient(circle at top left, rgba(96,165,250,.24), transparent 35%),
        linear-gradient(135deg, #0f172a, #111827);
    box-shadow: 0 34px 84px rgba(15,23,42,.2);
}
.afe-final-card h2,
.afe-final-card p {
    color: #fff;
}
.afe-final-card p {
    color: rgba(226,232,240,.72);
    margin-left: 0;
}
.afe-final-card > div > span {
    color: #bfdbfe;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
}
@media (max-width: 1199.98px) {
    .afe-public-nav {
        flex-wrap: wrap;
    }
    .afe-public-menu {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    .afe-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .afe-final-card {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 767.98px) {
    .afe-public-nav {
        justify-content: center;
        text-align: center;
    }
    .afe-public-brand {
        width: 100%;
        justify-content: center;
    }
    .afe-public-brand small {
        white-space: normal;
    }
    .afe-public-actions {
        width: 100%;
        justify-content: center;
    }
    .afe-landing-hero {
        padding-top: 3.25rem;
    }
    .afe-landing-trust-row,
    .afe-hero-grid,
    .afe-process-grid {
        grid-template-columns: 1fr;
    }
    .afe-landing-hero h1,
    .afe-landing-section-head h2,
    .afe-landing-sticky-note h2,
    .afe-final-card h2 {
        letter-spacing: -.045em;
    }
    .afe-plan-accordion .accordion-button {
        align-items: flex-start;
        padding: 1rem;
    }
    .afe-plan-accordion .accordion-body {
        padding: 1rem;
    }
    .afe-landing-plan-card {
        min-height: auto;
    }
}

/* Landing principal basada en el nuevo tema visual */
:root {
    --spal-primary: #162447;
    --spal-primary-dark: #0b1733;
    --spal-primary-soft: #edf5ff;
    --spal-accent: #183b70;
    --spal-accent-light: #24558f;
    --spal-cyan: #40bad5;
    --spal-text: #5b657e;
    --spal-heading: #162447;
    --spal-white: #ffffff;
    --spal-shadow: 0 20px 45px rgba(22, 36, 71, .12);
    --spal-shadow-soft: 0 10px 35px rgba(22, 36, 71, .08);
}

.afe-app--public {
    background: #fff;
    color: var(--spal-text);
    overflow-x: hidden;
}

.afe-app--public main {
    min-height: auto;
    overflow: hidden;
}

.spal-header.afe-public-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    padding: 18px 0;
}

.spal-header .navbar {
    padding: 0;
}

.spal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 800;
    letter-spacing: -.02em;
}

.spal-brand:hover {
    color: #fff;
}

.spal-brand img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

.spal-brand span {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--spal-primary);
    background: #fff;
    font-size: 1.15rem;
    box-shadow: 0 12px 26px rgba(11, 23, 51, .2);
}

.spal-brand strong {
    color: #fff;
    font-size: 1.05rem;
}

.spal-header .navbar-nav {
    gap: 8px;
}

.spal-header .nav-item > a {
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    font-weight: 700;
    padding: 12px 13px;
    border-radius: 999px;
    text-decoration: none;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.spal-header .nav-item > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .11);
    transform: translateY(-1px);
}

.spal-login-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.spal-login-links a {
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.1);
}

.spal-login-links a:hover {
    background: #fff;
    color: var(--spal-primary) !important;
}

.spal-toggler {
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: none !important;
}

.spal-toggler span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
}

.spal-hero-section {
    position: relative;
    min-height: 760px;
    padding: 210px 0 110px;
    background:
        radial-gradient(circle at 82% 18%, rgba(64, 186, 213, .28), transparent 28%),
        linear-gradient(160deg, var(--spal-primary-dark) 0%, var(--spal-primary) 48%, var(--spal-accent) 100%);
    overflow: hidden;
}

.spal-hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: -120px;
    width: 72%;
    height: 88%;
    background:
        linear-gradient(180deg, rgba(36, 85, 143, .86), rgba(24, 59, 112, .7)),
        radial-gradient(circle at 35% 35%, rgba(255,255,255,.18), transparent 34%);
    border-bottom-left-radius: 52% 34%;
    transform: skewY(-8deg);
    transform-origin: top right;
}

.spal-hero-section::after {
    content: "";
    position: absolute;
    right: 10%;
    top: 135px;
    width: 220px;
    height: 160px;
    opacity: .35;
    background-image: radial-gradient(circle, rgba(255,255,255,.9) 0 4px, transparent 5px);
    background-size: 30px 30px;
}

.spal-hero-section .container,
.spal-feature-section .container,
.spal-about-section .container,
.spal-why-section .container,
.spal-pricing-section .container,
.spal-testimonial-section .container,
.spal-subscribe-section .container,
.spal-footer .container {
    position: relative;
    z-index: 2;
}

.spal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.9);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.spal-eyebrow::before {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: var(--spal-cyan);
}

.spal-hero-content h1 {
    color: #fff;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.08;
    letter-spacing: -.055em;
    margin-bottom: 24px;
}

.spal-hero-content p {
    color: rgba(255,255,255,.82);
    font-size: 18px;
    line-height: 1.65;
    max-width: 620px;
}

.spal-hero-content .spal-hero-small {
    margin-top: 12px;
    color: rgba(255,255,255,.66);
    font-size: 16px;
}

.spal-hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.spal-main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 50px;
    min-height: 56px;
    padding: 16px 34px;
    color: #fff;
    background: var(--spal-accent);
    border: 2px solid var(--spal-accent);
    font-weight: 800;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 14px 28px rgba(24, 59, 112, .22);
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}

.spal-main-btn:hover {
    transform: translateY(-2px);
    color: #fff;
    background: var(--spal-accent-light);
    border-color: var(--spal-accent-light);
    box-shadow: 0 18px 34px rgba(24, 59, 112, .28);
}

.spal-border-btn {
    color: var(--spal-accent);
    background: transparent;
    box-shadow: none;
}

.spal-border-btn:hover {
    color: #fff;
    background: var(--spal-accent);
    border-color: var(--spal-accent);
}

.spal-white-btn {
    color: var(--spal-primary);
    background: #fff;
    border-color: #fff;
}

.spal-white-btn:hover {
    color: var(--spal-primary);
    background: rgba(255,255,255,.92);
    border-color: rgba(255,255,255,.92);
}

.spal-scroll-bottom {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--spal-primary);
    background: #fff;
    box-shadow: 0 12px 34px rgba(0,0,0,.16);
}

.spal-scroll-bottom:hover {
    color: var(--spal-accent);
    transform: translateY(3px);
}

.spal-scroll-bottom svg {
    width: 22px;
    height: 22px;
}

.spal-hero-img {
    position: relative;
    text-align: right;
}

.spal-hero-img > img {
    max-width: 100%;
    border-radius: 32px;
    box-shadow: 0 38px 80px rgba(2, 6, 23, .28);
}

.spal-hero-placeholder {
    position: relative;
    width: min(100%, 570px);
    min-height: 420px;
    margin-left: auto;
    border-radius: 32px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 40px 90px rgba(2, 6, 23, .28);
    overflow: hidden;
    padding: 28px;
    text-align: left;
}

.spal-window-bar {
    display: flex;
    gap: 9px;
    margin-bottom: 26px;
}

.spal-window-bar span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #dbeafe;
}

.spal-window-bar span:nth-child(2) { background: #bae6fd; }
.spal-window-bar span:nth-child(3) { background: #99f6e4; }

.spal-screen-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.spal-screen-grid > div {
    min-height: 110px;
    padding: 20px;
    border-radius: 22px;
    background: #f3f7fb;
    border: 1px solid rgba(22, 36, 71, .08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.spal-screen-grid > div.wide {
    grid-column: 1 / -1;
    min-height: 118px;
    color: #fff;
    background: linear-gradient(135deg, var(--spal-primary), var(--spal-accent));
}

.spal-screen-grid strong {
    color: inherit;
    font-size: 18px;
}

.spal-screen-grid span {
    color: rgba(255,255,255,.75);
}

.spal-screen-grid svg {
    width: 34px;
    height: 34px;
    color: var(--spal-accent);
}

.spal-hero-dots {
    position: absolute;
    left: -36px;
    bottom: -34px;
    width: 220px;
    height: 160px;
    opacity: .48;
    background-image: radial-gradient(circle, var(--spal-cyan) 0 4px, transparent 5px);
    background-size: 30px 30px;
    z-index: -1;
}

.pt-120 { padding-top: 120px; }
.pt-150 { padding-top: 150px; }
.mb-30 { margin-bottom: 30px; }
.mb-60 { margin-bottom: 60px; }

.spal-section-title h2 {
    color: var(--spal-heading);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.2;
    letter-spacing: -.035em;
    margin-bottom: 20px;
}

.spal-section-title p {
    color: var(--spal-text);
    font-size: 18px;
    line-height: 1.65;
}

.spal-feature-section {
    background: #fff;
}

.spal-single-feature {
    display: flex;
    gap: 24px;
    padding: 34px 24px;
    min-height: 220px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--spal-shadow-soft);
    border: 1px solid rgba(22,36,71,.05);
    transition: transform .22s ease, box-shadow .22s ease;
}

.spal-single-feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--spal-shadow);
}

.spal-single-feature .icon,
.spal-box-style .icon {
    width: 68px;
    height: 68px;
    min-width: 68px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--spal-primary), var(--spal-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 28px rgba(24, 59, 112, .22);
}

.spal-single-feature .icon svg,
.spal-box-style .icon svg {
    width: 32px;
    height: 32px;
}

.spal-single-feature h3,
.spal-box-style h4 {
    color: var(--spal-heading);
    font-size: 23px;
    line-height: 1.25;
    margin-bottom: 12px;
}

.spal-single-feature p,
.spal-box-style p {
    color: var(--spal-text);
    font-size: 16px;
    line-height: 1.65;
}

.spal-about-section {
    background: #fff;
}

.spal-about-img {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spal-dashboard-card,
.spal-flow-card {
    position: relative;
    width: min(100%, 520px);
    min-height: 390px;
    padding: 34px;
    border-radius: 34px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(22, 36, 71, .14);
    border: 1px solid rgba(22,36,71,.07);
    z-index: 2;
}

.spal-dashboard-head {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.spal-dashboard-head span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #dbeafe;
}

.spal-dashboard-line {
    height: 14px;
    width: 62%;
    border-radius: 999px;
    background: #e9f1fb;
    margin-bottom: 14px;
}

.spal-dashboard-line.lg {
    width: 85%;
    height: 20px;
    background: linear-gradient(90deg, var(--spal-primary), var(--spal-cyan));
}

.spal-dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 28px 0;
}

.spal-dashboard-metrics div {
    padding: 18px;
    border-radius: 18px;
    background: #f3f7fb;
}

.spal-dashboard-metrics strong,
.spal-flow-card strong {
    display: block;
    color: var(--spal-heading);
    font-size: 20px;
}

.spal-dashboard-metrics span,
.spal-flow-card span {
    color: var(--spal-text);
    font-size: 14px;
}

.spal-dashboard-bars {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 110px;
    padding: 18px;
    border-radius: 20px;
    background: #f8fbff;
}

.spal-dashboard-bars span {
    flex: 1;
    border-radius: 999px 999px 8px 8px;
    background: linear-gradient(180deg, var(--spal-cyan), var(--spal-accent));
}

.spal-dashboard-bars span:nth-child(1) { height: 46%; }
.spal-dashboard-bars span:nth-child(2) { height: 74%; }
.spal-dashboard-bars span:nth-child(3) { height: 58%; }
.spal-dashboard-bars span:nth-child(4) { height: 88%; }

.spal-flow-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    min-height: 360px;
}

.spal-flow-card div {
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fbff, #eef5fd);
    border: 1px solid rgba(22,36,71,.07);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px;
}

.spal-flow-card div:nth-child(2),
.spal-flow-card div:nth-child(3) {
    background: linear-gradient(135deg, var(--spal-primary), var(--spal-accent));
}

.spal-flow-card div:nth-child(2) strong,
.spal-flow-card div:nth-child(3) strong,
.spal-flow-card div:nth-child(2) span,
.spal-flow-card div:nth-child(3) span {
    color: #fff;
}

.spal-about-img .shape {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.spal-about-img .shape-1,
.spal-about-img .shape-3 {
    width: 210px;
    height: 210px;
    left: 5%;
    bottom: 7%;
    background: rgba(64, 186, 213, .18);
}

.spal-about-img .shape-2,
.spal-about-img .shape-4 {
    width: 170px;
    height: 170px;
    right: 8%;
    top: 9%;
    background: rgba(24, 59, 112, .14);
}

.spal-feature-list {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}

.spal-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--spal-heading);
    font-weight: 700;
}

.spal-feature-list svg {
    width: 22px;
    height: 22px;
    color: var(--spal-cyan);
}

.spal-why-section {
    background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
    padding-bottom: 30px;
}

.spal-box-style {
    min-height: 250px;
    padding: 34px 28px;
    margin-bottom: 30px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(22,36,71,.06);
    box-shadow: var(--spal-shadow-soft);
    transition: transform .22s ease, box-shadow .22s ease;
}

.spal-box-style:hover {
    transform: translateY(-8px);
    box-shadow: var(--spal-shadow);
}

.spal-box-style .icon {
    margin-bottom: 24px;
}

.spal-cms-section {
    background: #fff;
}

.spal-cms-section > .container + section,
.spal-cms-section > section {
    margin-top: 20px;
}

.spal-pricing-section {
    background: #fff;
    padding-bottom: 30px;
}

.spal-plan-accordion {
    display: grid;
    gap: 24px;
}

.spal-plan-accordion .accordion-item {
    border: 0;
    border-radius: 28px !important;
    box-shadow: var(--spal-shadow-soft);
    overflow: hidden;
    background: #fff;
}

.spal-plan-accordion .accordion-button {
    min-height: 94px;
    padding: 24px 28px;
    background: #fff;
    color: var(--spal-heading);
    box-shadow: none;
    gap: 18px;
}

.spal-plan-accordion .accordion-button:not(.collapsed) {
    color: #fff;
    background: linear-gradient(135deg, var(--spal-primary), var(--spal-accent));
}

.spal-plan-accordion .accordion-button::after {
    filter: none;
}

.spal-plan-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.spal-plan-accordion .accordion-button > span:last-of-type {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.spal-plan-accordion .accordion-button strong {
    font-size: 22px;
    line-height: 1.15;
}

.spal-plan-accordion .accordion-button small {
    color: inherit;
    opacity: .72;
    font-size: 14px;
}

.spal-accordion-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 18px;
    background: #edf5ff;
    color: var(--spal-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spal-plan-accordion .accordion-button:not(.collapsed) .spal-accordion-icon {
    color: var(--spal-primary);
    background: #fff;
}

.spal-accordion-icon svg {
    width: 28px;
    height: 28px;
}

.spal-plan-accordion .accordion-body {
    padding: 34px;
    background: #fbfdff;
}

.spal-price-card {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 42px 30px 34px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(22,36,71,.07);
    box-shadow: 0 14px 34px rgba(22, 36, 71, .07);
    transition: transform .22s ease, box-shadow .22s ease;
}

.spal-price-card:hover,
.spal-price-card.active {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(22, 36, 71, .14);
}

.spal-price-card.active {
    border-color: rgba(64, 186, 213, .45);
}

.spal-price-tag {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #fff;
    background: var(--spal-cyan);
    font-size: 12px;
    font-weight: 800;
}

.spal-price-card h3 {
    color: var(--spal-heading);
    font-size: 25px;
    margin-bottom: 14px;
    padding-right: 105px;
}

.spal-price-card p {
    color: var(--spal-text);
    font-size: 16px;
    line-height: 1.6;
    min-height: 78px;
}

.spal-price-value {
    color: var(--spal-accent);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.04em;
    margin: 24px 0;
}

.spal-price-card ul {
    display: grid;
    gap: 13px;
    margin-bottom: 28px;
}

.spal-price-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--spal-heading);
    font-size: 15px;
    line-height: 1.45;
}

.spal-price-card li svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    color: var(--spal-cyan);
    margin-top: 2px;
}

.spal-price-card .spal-main-btn {
    width: 100%;
    margin-top: auto;
}

.spal-testimonial-section {
    background: #fff;
    padding-bottom: 120px;
}

.spal-testimonial-card {
    position: relative;
    border-radius: 30px;
    padding: 44px;
    background: #fff;
    box-shadow: var(--spal-shadow);
    border: 1px solid rgba(22,36,71,.07);
}

.spal-testimonial-card::before {
    content: "";
    position: absolute;
    right: 28px;
    top: -26px;
    width: 120px;
    height: 88px;
    opacity: .4;
    background-image: radial-gradient(circle, var(--spal-cyan) 0 4px, transparent 5px);
    background-size: 24px 24px;
}

.spal-testimonial-card p {
    color: var(--spal-heading);
    font-size: 22px;
    line-height: 1.55;
    margin-bottom: 30px;
}

.spal-testimonial-card strong,
.spal-testimonial-card span {
    display: block;
}

.spal-testimonial-card strong {
    color: var(--spal-heading);
    font-size: 18px;
}

.spal-testimonial-card span {
    color: var(--spal-text);
    margin-top: 4px;
}

.spal-subscribe-section {
    padding: 0 0 90px;
    background: #fff;
}

.spal-subscribe-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    min-height: 245px;
    padding: 54px 60px;
    color: #fff;
    background:
        radial-gradient(circle at 15% 20%, rgba(64, 186, 213, .42), transparent 32%),
        linear-gradient(135deg, var(--spal-primary), var(--spal-accent));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 26px 70px rgba(22,36,71,.18);
}

.spal-subscribe-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -40px;
    height: 120px;
    opacity: .25;
    background: repeating-radial-gradient(circle at 8px 8px, rgba(255,255,255,.85) 0 4px, transparent 5px 28px);
}

.spal-subscribe-wrapper > * {
    position: relative;
    z-index: 2;
}

.spal-subscribe-wrapper span {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .82;
    margin-bottom: 12px;
}

.spal-subscribe-wrapper h2 {
    color: #fff;
    font-size: clamp(28px, 3.8vw, 42px);
    line-height: 1.18;
    margin-bottom: 12px;
}

.spal-subscribe-wrapper p {
    color: rgba(255,255,255,.78);
    max-width: 720px;
    font-size: 17px;
    line-height: 1.6;
}

.spal-footer {
    position: relative;
    overflow: hidden;
    color: rgba(255,255,255,.78);
    background:
        radial-gradient(circle at 18% 20%, rgba(64,186,213,.16), transparent 25%),
        linear-gradient(160deg, var(--spal-primary-dark), var(--spal-primary));
    padding: 90px 0 36px;
}

.spal-footer::before {
    content: "";
    position: absolute;
    left: -80px;
    right: -80px;
    top: -170px;
    height: 300px;
    opacity: .42;
    border-radius: 0 0 50% 50%;
    background: rgba(255,255,255,.05);
}

.spal-footer-brand {
    display: inline-block;
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -.03em;
    margin-bottom: 16px;
    text-decoration: none;
}

.spal-footer-brand:hover {
    color: #fff;
}

.spal-footer p {
    color: rgba(255,255,255,.68);
    max-width: 460px;
    font-size: 16px;
    line-height: 1.65;
}

.spal-footer h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 18px;
}

.spal-footer ul {
    display: grid;
    gap: 10px;
}

.spal-footer li,
.spal-footer a {
    color: rgba(255,255,255,.68);
    text-decoration: none;
    font-size: 15px;
}

.spal-footer a:hover {
    color: #fff;
}

.spal-footer-bottom {
    margin-top: 54px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    color: rgba(255,255,255,.62);
    font-size: 14px;
}

@media (max-width: 1199px) {
    .spal-header .nav-item > a {
        padding: 10px 8px;
        font-size: 14px;
    }

    .spal-hero-section {
        min-height: auto;
        padding-top: 180px;
    }

    .spal-hero-placeholder {
        min-height: 380px;
    }
}

@media (max-width: 991px) {
    .spal-header.afe-public-header {
        padding: 14px 0;
    }

    .spal-header .navbar-collapse {
        margin-top: 16px;
        padding: 18px;
        border-radius: 22px;
        background: rgba(11, 23, 51, .97);
        box-shadow: 0 22px 48px rgba(2,6,23,.24);
    }

    .spal-header .navbar-nav {
        align-items: stretch !important;
        gap: 4px;
    }

    .spal-header .nav-item > a {
        width: 100%;
        padding: 13px 14px;
    }

    .spal-login-links {
        margin-left: 0;
        margin-top: 6px;
        flex-wrap: wrap;
    }

    .spal-login-links a {
        width: auto !important;
    }

    .spal-hero-section {
        padding: 155px 0 90px;
    }

    .spal-hero-content {
        text-align: center;
        margin-bottom: 55px;
    }

    .spal-hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .spal-hero-actions {
        justify-content: center;
    }

    .spal-hero-img {
        text-align: center;
    }

    .spal-hero-placeholder {
        margin: 0 auto;
    }

    .spal-single-feature {
        margin-bottom: 24px;
    }

    .spal-about-img {
        min-height: auto;
        margin-bottom: 50px;
    }

    .spal-subscribe-wrapper {
        flex-direction: column;
        align-items: flex-start;
        padding: 44px 34px;
    }
}

@media (max-width: 767px) {
    .spal-hero-section {
        padding: 135px 0 70px;
    }

    .spal-hero-section::before {
        width: 105%;
        right: -45%;
    }

    .spal-hero-content h1 {
        font-size: 38px;
    }

    .spal-hero-content p,
    .spal-section-title p {
        font-size: 16px;
    }

    .spal-main-btn {
        min-height: 52px;
        padding: 15px 24px;
        font-size: 15px;
    }

    .spal-hero-actions {
        gap: 12px;
    }

    .spal-hero-placeholder {
        min-height: 320px;
        padding: 20px;
        border-radius: 24px;
    }

    .spal-screen-grid {
        gap: 12px;
    }

    .spal-screen-grid > div {
        min-height: 90px;
        padding: 16px;
    }

    .pt-120,
    .pt-150 {
        padding-top: 82px;
    }

    .spal-single-feature {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 30px 22px;
    }

    .spal-dashboard-card,
    .spal-flow-card {
        min-height: auto;
        padding: 22px;
        border-radius: 24px;
    }

    .spal-dashboard-metrics,
    .spal-flow-card {
        grid-template-columns: 1fr;
    }

    .spal-plan-accordion .accordion-button {
        align-items: flex-start;
        padding: 20px;
    }

    .spal-plan-accordion .accordion-body {
        padding: 22px;
    }

    .spal-price-card h3 {
        padding-right: 0;
        margin-top: 12px;
    }

    .spal-price-tag {
        position: static;
        width: fit-content;
        margin-bottom: 12px;
    }

    .spal-testimonial-card {
        padding: 30px 24px;
    }

    .spal-testimonial-card p {
        font-size: 18px;
    }

    .spal-subscribe-wrapper {
        border-radius: 24px;
        padding: 36px 24px;
    }

    .spal-footer {
        padding-top: 70px;
    }

    .spal-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Productos POS */
.afe-product-image-uploader {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    padding: .85rem;
    border: 1px solid var(--afe-line);
    border-radius: 20px;
    background: rgba(248,250,252,.78);
}
.afe-product-image-preview,
.afe-product-list-thumb {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--afe-accent-rgb), .14), rgba(15,23,42,.05));
    color: var(--afe-accent, #2563eb);
    font-weight: 800;
    flex: 0 0 auto;
}
.afe-product-image-preview img,
.afe-product-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.afe-product-image-preview span {
    font-size: .78rem;
    color: var(--afe-muted);
    text-align: center;
    padding: .3rem;
}
.afe-product-list-thumb {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 1rem;
}
.afe-product-actions {
    display: inline-flex;
    gap: .45rem;
    align-items: center;
    flex-wrap: wrap;
}
.afe-product-actions form {
    margin: 0;
}
.afe-product-actions .afe-icon-action {
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: .48rem;
}
.afe-icon-action--success {
    color: #047857;
    border-color: rgba(4,120,87,.24);
    background: #ecfdf5;
}
.afe-icon-action--warning {
    color: #92400e;
    border-color: rgba(146,64,14,.24);
    background: #fffbeb;
}
.afe-icon-action--archive {
    color: #334155;
    border-color: rgba(51,65,85,.22);
    background: #f8fafc;
}
.afe-doc-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--afe-accent-rgb), .1);
    color: var(--afe-accent, #2563eb);
    border: 1px solid rgba(var(--afe-accent-rgb), .18);
}
.afe-doc-icon svg,
.afe-doc-icon i {
    width: 18px;
    height: 18px;
}
.afe-pos-product-card__image {
    width: 100%;
    height: 128px;
    border-radius: 22px;
    object-fit: cover;
    display: block;
    background: #f8fafc;
}
.min-w-260 {
    min-width: 260px;
}
@media (max-width: 767.98px) {
    .afe-product-image-uploader {
        align-items: stretch;
    }
    .afe-product-image-preview {
        width: 100%;
        height: 160px;
    }
    .afe-product-actions {
        justify-content: flex-start !important;
    }
}
