:root {
    --vl-accent: #0ea5a3;
    --vl-accent-dark: #0b8482;
    --vl-accent-soft: #e6f7f6;
    --vl-accent-2: #34d399;
    --vl-amber: #f59e0b;
    --vl-rose: #f43f5e;
    --vl-indigo: #6366f1;
    --vl-sky: #0ea5e9;
    --vl-ink: #14263a;
    --vl-muted: #64748b;
    --vl-bg: #f4f8f9;
    --vl-sidebar: #0e2230;
    --vl-sidebar-2: #123043;
    --vl-border: #e3e9ec;
    --vl-ring-track: #e6eef0;
    --vl-in: #0ea5a3;
    --vl-out: #64748b;
    --vl-radius: 16px;
    --vl-shadow: 0 20px 45px -28px rgba(14, 38, 58, .28);
    --vl-shadow-sm: 0 8px 22px -14px rgba(14, 38, 58, .22);
    --vl-grad: linear-gradient(135deg, var(--vl-accent) 0%, var(--vl-accent-2) 100%);
    --app-primary: var(--vl-accent);
    --app-bg: var(--vl-bg);
    --app-sidebar: var(--vl-sidebar);
    --app-border: var(--vl-border);
    --bs-primary: var(--vl-accent);
}

body {
    font-family: "Segoe UI Variable", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--vl-ink);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .fw-bold, .page-title { letter-spacing: -.01em; }

.btn { border-radius: 12px; font-weight: 600; transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease; }
.btn:not(.btn-close) { display: inline-flex; align-items: center; justify-content: center; gap: .55em; }
.btn:not(.btn-link):hover { transform: translateY(-1px); }
.btn:not(.btn-link):active { transform: translateY(0) scale(.98); }
.btn i, .btn .fa-solid, .btn .fa-brands { margin-right: 0; }
.btn.dropdown-toggle::after { margin-left: .1em; }
.badge { display: inline-flex; align-items: center; gap: .45em; vertical-align: middle; }
.badge i { margin-right: 0; }
.alert i { margin-right: .5em; }
h1 i + *, h2 i + *, .h6 i + * { margin-left: 0; }

.btn-primary {
    --bs-btn-bg: var(--vl-accent);
    --bs-btn-border-color: var(--vl-accent);
    --bs-btn-hover-bg: var(--vl-accent-dark);
    --bs-btn-hover-border-color: var(--vl-accent-dark);
    --bs-btn-active-bg: var(--vl-accent-dark);
    --bs-btn-active-border-color: var(--vl-accent-dark);
    box-shadow: 0 8px 18px -8px rgba(14, 165, 163, .55);
}

.btn-outline-primary {
    --bs-btn-color: var(--vl-accent-dark);
    --bs-btn-border-color: var(--vl-accent);
    --bs-btn-hover-bg: var(--vl-accent);
    --bs-btn-hover-border-color: var(--vl-accent);
    --bs-btn-active-bg: var(--vl-accent-dark);
    --bs-btn-active-border-color: var(--vl-accent-dark);
}

.btn-success { box-shadow: 0 8px 18px -8px rgba(25, 135, 84, .45); }

a { color: var(--vl-accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--vl-accent); }

.form-label { font-weight: 600; font-size: .86rem; color: #3d5665; margin-bottom: .35rem; }
.form-text { font-size: .78rem; }

.form-control, .form-select {
    border-radius: 12px;
    border-color: var(--vl-border);
    padding-top: .55rem;
    padding-bottom: .55rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--vl-accent);
    box-shadow: 0 0 0 .22rem rgba(14, 165, 163, .16);
}

.form-control-sm, .form-select-sm { border-radius: 10px; }
.input-group-text { border-radius: 12px; border-color: var(--vl-border); background: #f8fafb; color: var(--vl-muted); font-weight: 600; }
.form-check-input:checked { background-color: var(--vl-accent); border-color: var(--vl-accent); }
.form-check-input:focus { border-color: var(--vl-accent); box-shadow: 0 0 0 .22rem rgba(14, 165, 163, .16); }
.form-range::-webkit-slider-thumb { background: var(--vl-accent); }
.form-range::-moz-range-thumb { background: var(--vl-accent); }

.badge { font-weight: 600; border-radius: 8px; padding: .38em .6em; }
.dropdown-menu { border-radius: 14px; border-color: var(--vl-border); box-shadow: var(--vl-shadow); padding: 8px; }
.dropdown-item { border-radius: 9px; padding: .5rem .75rem; }
.dropdown-item:hover { background: var(--vl-accent-soft); }
.dropdown-item i { width: 1.6em; margin-right: .35em; color: var(--vl-muted); }

.alert { border-radius: 14px; border: 0; box-shadow: var(--vl-shadow-sm); }
.alert-info { background: #e7f6fd; color: #0b5e7d; }
.alert-success { background: #e8f8ef; color: #14683c; }
.alert-warning { background: #fef6e6; color: #8a5b06; }
.alert-danger { background: #fdecef; color: #a1213b; }

.table { --bs-table-hover-bg: #f4fafa; --bs-table-striped-bg: #fbfdfd; margin-bottom: 0; }
.table thead th {
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--vl-muted);
    background: #f6f9fa;
    border-bottom: 1px solid var(--vl-border);
    padding: .75rem .9rem;
    white-space: nowrap;
}
.table tbody td { padding: .65rem .9rem; vertical-align: middle; border-color: #eef3f5; }
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover { background: var(--bs-table-hover-bg); }
.table tbody tr:last-child td { border-bottom: 0; }
.table-responsive { border-radius: 0 0 var(--vl-radius) var(--vl-radius); overflow-x: auto; }
.card > .card-body.p-0 > .table-responsive:first-child { border-radius: var(--vl-radius); }

.pagination { --bs-pagination-active-bg: var(--vl-accent); --bs-pagination-active-border-color: var(--vl-accent); --bs-pagination-color: var(--vl-accent-dark); --bs-pagination-border-radius: 10px; }

@keyframes vl-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes vl-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes vl-pop {
    from { transform: scale(.6) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes vl-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes vl-pulse {
    0% { transform: scale(1); opacity: .5; }
    70% { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}

@keyframes vl-blink {
    0%, 92%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(.08); }
}

@keyframes vl-wave {
    0%, 100% { transform: rotate(0deg); }
    30% { transform: rotate(16deg); }
    60% { transform: rotate(-8deg); }
}

@keyframes vl-typing {
    0%, 60%, 100% { transform: translateY(0); opacity: .5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

@keyframes vl-msg-in {
    from { transform: translateY(8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes vl-shimmer {
    0% { background-position: 200% 50%; }
    100% { background-position: -200% 50%; }
}

.skip-link { position: absolute; top: 8px; left: 8px; z-index: 2000; background: #fff; padding: 8px 14px; border-radius: 8px; }

.auth-body {
    background:
        radial-gradient(900px 480px at 85% -10%, rgba(52, 211, 153, .18) 0%, transparent 60%),
        radial-gradient(700px 420px at -10% 110%, rgba(14, 165, 163, .16) 0%, transparent 60%),
        linear-gradient(160deg, #eafaf8 0%, #f4f8f9 60%);
    min-height: 100vh;
}

.auth-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }

.auth-card {
    width: 100%;
    max-width: 540px;
    background: #fff;
    border: 1px solid var(--vl-border);
    border-radius: 22px;
    padding: 36px;
    box-shadow: var(--vl-shadow);
    animation: vl-fade-up .45s ease both;
}

.auth-brand, .mk-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; }

.auth-brand__mark, .app-sidebar__mark, .mk-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: var(--vl-grad);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 8px 18px -8px rgba(14, 165, 163, .6);
}

.vl-logo { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 8px 18px -8px rgba(14, 165, 163, .55); flex-shrink: 0; }
.app-sidebar .vl-logo, .admin-sidebar .vl-logo { width: 38px; height: 38px; }
.auth-brand__name, .mk-brand__name { font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.auth-title { font-size: 1.55rem; font-weight: 800; margin-bottom: 4px; }
.auth-subtitle { margin-bottom: 24px; }
.auth-footer { margin-top: 24px; }

.app-body { background: var(--vl-bg); }
.app-shell { display: flex; min-height: 100vh; }

.app-sidebar {
    width: 252px;
    background: linear-gradient(185deg, var(--vl-sidebar-2) 0%, var(--vl-sidebar) 55%);
    color: #d7e4ea;
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    overflow-y: auto;
}

.app-sidebar__brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 22px; }
.app-sidebar__name { font-weight: 800; color: #fff; font-size: 1.05rem; }

.app-nav { display: flex; flex-direction: column; gap: 3px; }
.app-nav--secondary { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); }

.app-nav__link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: 11px;
    color: #96adb9;
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    transition: background .15s ease, color .15s ease, transform .12s ease;
}

.app-nav__icon { width: 1.35em; text-align: center; font-size: .95em; }
.app-nav__link:hover { background: rgba(255, 255, 255, .07); color: #fff; transform: translateX(2px); }
.app-nav__link.is-active { background: var(--vl-grad); color: #fff; box-shadow: 0 8px 16px -8px rgba(14, 165, 163, .55); }
.app-nav__link--admin { color: #f2c94c; }

.app-main { flex: 1; margin-left: 252px; display: flex; flex-direction: column; min-width: 0; }

.app-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--vl-border);
    padding: 11px 28px;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.app-topbar .btn-light { background: #f1f6f7; border-color: transparent; border-radius: 11px; }
.app-topbar .btn-light:hover { background: var(--vl-accent-soft); }

.vl-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--vl-grad);
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    margin-right: .5em;
}

.app-content { padding: 28px; max-width: 1220px; width: 100%; animation: vl-fade-in .3s ease both; }
.app-disclaimer { margin-top: 40px; }

.page-header { margin-bottom: 28px; animation: vl-fade-up .35s ease both; }
.page-title { font-size: 1.65rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 13px; }
.page-title i { color: var(--vl-accent); background: var(--vl-accent-soft); width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-size: .68em; flex-shrink: 0; box-shadow: var(--vl-shadow-sm); }
.page-subtitle { margin: 8px 0 0; max-width: 640px; }
.app-content > .row, .app-content > .card, .app-content > .quick-actions { margin-bottom: .25rem; }

.card {
    border: 1px solid var(--vl-border);
    border-radius: var(--vl-radius);
    background: #fff;
    box-shadow: var(--vl-shadow-sm);
    animation: vl-fade-up .4s ease both;
}

.card-body { padding: 1.35rem 1.5rem; }
.card-body.p-0 { padding: 0 !important; }
.card-header { background: #fff; border-bottom: 1px solid var(--vl-border); padding: 15px 24px; border-radius: var(--vl-radius) var(--vl-radius) 0 0 !important; }
.card-header h2 { display: flex; align-items: center; gap: 10px; }
.card-header h2 i { color: var(--vl-accent); background: var(--vl-accent-soft); width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: .8em; flex-shrink: 0; }
.card .mb-2 { margin-bottom: .85rem !important; }
.card .mb-3 { margin-bottom: 1.15rem !important; }

.row > [class*="col-"]:nth-child(2) .card, .row > [class*="col-"]:nth-child(2) .widget-card, .row > [class*="col-"]:nth-child(2) .stat-card { animation-delay: .05s; }
.row > [class*="col-"]:nth-child(3) .card, .row > [class*="col-"]:nth-child(3) .widget-card, .row > [class*="col-"]:nth-child(3) .stat-card { animation-delay: .1s; }
.row > [class*="col-"]:nth-child(4) .widget-card, .row > [class*="col-"]:nth-child(4) .stat-card { animation-delay: .15s; }
.row > [class*="col-"]:nth-child(5) .widget-card, .row > [class*="col-"]:nth-child(5) .stat-card { animation-delay: .2s; }
.row > [class*="col-"]:nth-child(6) .widget-card, .row > [class*="col-"]:nth-child(6) .stat-card { animation-delay: .25s; }

.stat-card {
    background: #fff;
    border: 1px solid var(--vl-border);
    border-radius: var(--vl-radius);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    box-shadow: var(--vl-shadow-sm);
    position: relative;
    overflow: hidden;
    animation: vl-fade-up .4s ease both;
}

.stat-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--vl-grad); opacity: 0; transition: opacity .2s ease; }
.stat-card:hover::after { opacity: 1; }
.stat-card--highlight { border-color: var(--vl-accent); background: linear-gradient(160deg, #fff 30%, var(--vl-accent-soft) 100%); }
.stat-card__label { color: var(--vl-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; gap: 7px; }
.stat-card__label i { color: var(--vl-accent); }
.stat-card__value { font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.stat-card__value small { font-size: .95rem; font-weight: 600; color: var(--vl-muted); }

.widget-card {
    background: #fff;
    border: 1px solid var(--vl-border);
    border-radius: 18px;
    padding: 20px;
    height: 100%;
    box-shadow: var(--vl-shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
    animation: vl-fade-up .4s ease both;
}

.widget-card:hover { transform: translateY(-3px); box-shadow: var(--vl-shadow); }
.widget-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.widget-card__title { font-size: .95rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 9px; }
.widget-card__title i { color: var(--vl-accent); background: var(--vl-accent-soft); width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: .82em; }
.widget-card__link { font-size: .8rem; white-space: nowrap; text-decoration: none; font-weight: 600; }
.widget-card__value { font-size: 1.85rem; font-weight: 800; margin-bottom: 6px; }
.widget-card__unit { font-size: .95rem; font-weight: 600; color: var(--vl-muted); }

.widget-list { list-style: none; margin: 0; padding: 0; }
.widget-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--vl-border); }
.widget-list li:last-child { border-bottom: 0; }

.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.quick-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid var(--vl-border);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: .92rem;
    color: var(--vl-ink);
    text-decoration: none;
    min-height: 46px;
    box-shadow: var(--vl-shadow-sm);
    transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
    animation: vl-fade-up .4s ease both;
}

.quick-action:nth-child(2) { animation-delay: .04s; }
.quick-action:nth-child(3) { animation-delay: .08s; }
.quick-action:nth-child(4) { animation-delay: .12s; }
.quick-action:nth-child(5) { animation-delay: .16s; }
.quick-action i { color: var(--vl-accent); }
.quick-action:hover { border-color: var(--vl-accent); background: var(--vl-accent-soft); color: var(--vl-ink); transform: translateY(-2px); box-shadow: var(--vl-shadow); }

.vl-chart { width: 100%; height: 120px; display: block; }
.vl-ring { width: 98px; height: 98px; flex-shrink: 0; filter: drop-shadow(0 6px 10px rgba(14, 165, 163, .18)); }
.vl-ring__text { font-size: 20px; font-weight: 800; fill: var(--vl-ink); }
.chart-empty { padding: 24px 0; text-align: center; }

.balance-bars { display: flex; flex-direction: column; gap: 10px; }
.balance-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; }
.balance-label { font-size: .8rem; font-weight: 700; color: var(--vl-muted); text-transform: uppercase; letter-spacing: .04em; }
.balance-track { background: var(--vl-ring-track); border-radius: 999px; height: 14px; overflow: hidden; }
.balance-fill { height: 100%; border-radius: 999px; transition: width .5s cubic-bezier(.22, 1, .36, 1); }
.balance-fill--in { background: linear-gradient(90deg, var(--vl-accent), var(--vl-accent-2)); }
.balance-fill--out { background: linear-gradient(90deg, #7c8ea0, var(--vl-out)); }
.balance-value { font-size: .85rem; font-weight: 700; white-space: nowrap; }

.timeline-list { list-style: none; margin: 0; padding: 0; }
.timeline-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--vl-border); }
.timeline-item:last-child { border-bottom: 0; }

.timeline-item__icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--vl-accent-soft);
    color: var(--vl-accent-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}

.timeline-item__body { display: flex; flex-direction: column; min-width: 0; }
.timeline-item__title { font-weight: 700; font-size: .92rem; }
.timeline-item__detail { font-size: .82rem; }
.timeline-item__time { margin-left: auto; font-size: .85rem; white-space: nowrap; font-weight: 600; }
.timeline-list--full .timeline-item__time { margin-left: 0; width: 52px; }

.entry-list { list-style: none; margin: 0; padding: 0; }
.entry-list__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--vl-border); transition: background .15s ease; }
.entry-list__item:hover { background: #fafdfd; }
.entry-list__item:last-child { border-bottom: 0; }
.entry-list__item--stacked { align-items: flex-start; }
.entry-list__item.is-inactive { opacity: .55; }
.entry-list__item.is-overdue { background: #fff9ec; box-shadow: inset 3px 0 0 var(--vl-amber); }

.fluid-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 10px; }

.fluid-quick__btn {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: linear-gradient(165deg, var(--vl-accent-soft) 0%, #f2fbfa 100%);
    border: 1.5px solid transparent;
    border-radius: 15px;
    padding: 14px 10px;
    min-height: 78px;
    font-weight: 700;
    color: var(--vl-ink);
    transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}

.fluid-quick__btn i { color: var(--vl-accent); font-size: 1.15rem; margin-bottom: 3px; }
.fluid-quick__btn:hover { border-color: var(--vl-accent); transform: translateY(-2px); box-shadow: var(--vl-shadow-sm); }
.fluid-quick__btn:active { transform: scale(.96); }
.fluid-quick__label { font-size: .88rem; }
.fluid-quick__amount { font-size: .76rem; color: #4d6a76; font-weight: 600; }

.intensity-dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.intensity-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--vl-ring-track); display: inline-block; }
.intensity-dot.is-filled { background: var(--vl-grad); }

.food-results { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 300px; overflow-y: auto; }

.food-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid var(--vl-border);
    border-radius: 12px;
    padding: 9px 13px;
    transition: border-color .15s ease, background .15s ease;
    animation: vl-fade-up .25s ease both;
}

.food-result:hover { border-color: var(--vl-accent); background: #fbfefe; }
.food-result__name { font-weight: 700; font-size: .89rem; }
.food-result__meta { font-size: .77rem; color: var(--vl-muted); }

.vl-pills { gap: 6px; }
.vl-pills .nav-link { color: var(--vl-ink); border-radius: 999px; font-weight: 700; font-size: .9rem; padding: .5rem 1.1rem; background: #fff; border: 1px solid var(--vl-border); }
.vl-pills .nav-link i { margin-right: .4em; color: var(--vl-accent); }
.vl-pills .nav-link:hover { border-color: var(--vl-accent); }
.vl-pills .nav-link.active { background: var(--vl-grad); border-color: transparent; box-shadow: 0 8px 16px -8px rgba(14, 165, 163, .55); }
.vl-pills .nav-link.active i { color: #fff; }

.weekday-pill input { position: absolute; opacity: 0; }
.weekday-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 36px;
    padding: 4px 10px;
    border: 1.5px solid var(--vl-border);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s ease;
    background: #fff;
}
.weekday-pill span:hover { border-color: var(--vl-accent); }
.weekday-pill input:checked + span { background: var(--vl-grad); border-color: transparent; color: #fff; }
.weekday-pill input:focus-visible + span { outline: 2px solid var(--vl-accent-dark); outline-offset: 2px; }

.vl-wizard__progress { display: flex; gap: 8px; margin-bottom: 22px; }
.vl-wizard__progress-step { flex: 1; height: 7px; border-radius: 999px; background: var(--vl-ring-track); transition: background .4s ease; }
.vl-wizard__progress-step.is-active { background: var(--vl-grad); }
.vl-wizard__step { animation: vl-fade-up .3s ease both; }

.vl-mode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 10px; }
.vl-mode-grid--compact { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }

.vl-mode-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border: 1.5px solid var(--vl-border);
    border-radius: 14px;
    padding: 13px;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.vl-mode-card:hover { transform: translateY(-2px); box-shadow: var(--vl-shadow-sm); border-color: #c9dde0; }
.vl-mode-card input { position: absolute; opacity: 0; }
.vl-mode-card:has(input:checked) { border-color: var(--vl-accent); background: linear-gradient(160deg, #fff 20%, var(--vl-accent-soft) 100%); }
.vl-mode-card:has(input:checked)::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 9px; right: 10px; font-size: .72rem; color: #fff; background: var(--vl-grad); width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.vl-mode-card:has(input:focus-visible) { outline: 2px solid var(--vl-accent-dark); outline-offset: 2px; }
.vl-mode-card__icon { font-size: 1.15rem; color: var(--vl-accent); width: 36px; height: 36px; border-radius: 11px; background: var(--vl-accent-soft); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.vl-mode-card__label { font-weight: 700; font-size: .89rem; }
.vl-mode-card__desc { font-size: .75rem; color: var(--vl-muted); }

.vl-consent-box { border: 1.5px solid var(--vl-accent); background: linear-gradient(160deg, #fff 0%, var(--vl-accent-soft) 100%); border-radius: 14px; padding: 15px; }

.vl-credit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 17px;
    background: var(--vl-grad);
    font-size: 1.35rem;
    color: #fff;
    box-shadow: 0 10px 22px -10px rgba(14, 165, 163, .6);
    animation: vl-float 3.5s ease-in-out infinite;
}

.vl-package { display: flex; flex-direction: column; border: 1.5px solid var(--vl-border); border-radius: 14px; padding: 14px; height: 100%; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.vl-package:hover { border-color: var(--vl-accent); transform: translateY(-2px); box-shadow: var(--vl-shadow-sm); }
.vl-package__label { font-weight: 800; }
.vl-package__credits { font-size: .84rem; color: var(--vl-muted); font-weight: 600; }
.vl-package__price { font-size: 1.15rem; font-weight: 800; margin-top: 4px; color: var(--vl-accent-dark); }

.vl-admin-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.vl-admin-nav .btn i { margin-right: .4em; }
.vl-credit-input { width: 76px; }

.admin-body { --vl-accent: #f2a83b; --vl-accent-dark: #d98f1f; --vl-accent-soft: #fdf3e2; --vl-accent-2: #f6c66a; --vl-grad: linear-gradient(135deg, #f2a83b 0%, #f6c66a 100%); }
.admin-sidebar { background: linear-gradient(185deg, #1d2b3a 0%, #101c28 55%); }
.admin-sidebar__mark { background: var(--vl-grad); font-size: .9rem; }
.admin-sidebar__tag { display: inline-block; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: rgba(242, 168, 59, .2); color: #f6c66a; border-radius: 6px; padding: 2px 7px; margin-left: 4px; vertical-align: middle; }
.admin-body .btn-primary { box-shadow: 0 8px 18px -8px rgba(242, 168, 59, .55); }

.vl-method-panel { background: #f8fafb; border: 1px dashed var(--vl-border); border-radius: 12px; padding: 14px; animation: vl-fade-up .25s ease both; }

.vl-autocomplete { position: relative; }
.vl-autocomplete__list { position: absolute; top: 100%; left: 0; right: 0; z-index: 1060; background: #fff; border: 1px solid var(--vl-border); border-radius: 12px; box-shadow: var(--vl-shadow); max-height: 240px; overflow-y: auto; margin-top: 4px; display: none; }
.vl-autocomplete__list.is-open { display: block; }
.vl-autocomplete__item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 13px; font-size: .9rem; }
.vl-autocomplete__item:hover, .vl-autocomplete__item.is-active { background: var(--vl-accent-soft); }

.flash-stack { margin-bottom: 18px; }
.flash-stack .alert { animation: vl-fade-up .3s ease both; }

.vl-assistant-toggle {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1050;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: none;
    background: var(--vl-grad);
    color: #fff;
    box-shadow: 0 14px 30px -10px rgba(14, 165, 163, .65);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s cubic-bezier(.34, 1.5, .64, 1);
}

.vl-assistant-toggle:hover { transform: scale(1.1) rotate(4deg); }
.vl-assistant-toggle__pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--vl-accent); animation: vl-pulse 2.4s ease-out infinite; z-index: -1; }
.vl-assistant-toggle .vl-vita { width: 44px; height: 44px; }

.vl-assistant {
    position: fixed;
    right: 22px;
    bottom: 96px;
    z-index: 1050;
    width: min(390px, calc(100vw - 32px));
    max-height: min(580px, calc(100vh - 130px));
    background: #fff;
    border: 1px solid var(--vl-border);
    border-radius: 20px;
    box-shadow: 0 34px 70px -25px rgba(14, 38, 58, .5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: vl-pop .3s cubic-bezier(.34, 1.4, .64, 1);
}

.vl-assistant__header { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-bottom: 1px solid var(--vl-border); background: linear-gradient(160deg, #fff 40%, var(--vl-accent-soft) 130%); }
.vl-assistant__avatar { width: 46px; height: 46px; animation: vl-float 3.5s ease-in-out infinite; }
.vl-assistant__status { color: var(--vl-muted); display: flex; align-items: center; gap: 6px; font-weight: 600; }
.vl-assistant__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vl-accent-2); display: inline-block; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }

.vl-vita { display: block; }
.vl-vita__eye { transform-origin: center; animation: vl-blink 4.2s ease-in-out infinite; }
.vl-vita__leaf { transform-origin: 60% 85%; animation: vl-wave 5s ease-in-out infinite; }

.vl-assistant__messages { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 190px; }
.vl-assistant__empty { color: var(--vl-ink); background: linear-gradient(160deg, var(--vl-accent-soft), #f0fbf7); border-radius: 14px; padding: 14px; font-size: .9rem; }

.vl-msg { max-width: 86%; padding: 10px 14px; border-radius: 15px; font-size: .9rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; animation: vl-msg-in .25s ease; }
.vl-msg--user { align-self: flex-end; background: var(--vl-grad); color: #fff; border-bottom-right-radius: 5px; }
.vl-msg--assistant { align-self: flex-start; background: #f1f6f7; border-bottom-left-radius: 5px; }
.vl-msg--info { align-self: center; background: #fef6e6; font-size: .8rem; color: #8a5b06; font-weight: 600; }
.vl-msg--assistant strong { font-weight: 700; color: var(--vl-ink); }
.vl-msg--assistant ul { margin: 4px 0; padding-left: 18px; }
.vl-msg--assistant li { margin: 2px 0; }
.vl-msg--assistant code { background: #e6eef0; border-radius: 5px; padding: 1px 5px; font-size: .82em; }

.vl-typing { display: inline-flex; gap: 4px; align-items: center; padding: 11px 14px; }
.vl-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9db2bd; animation: vl-typing 1.1s infinite; }
.vl-typing span:nth-child(2) { animation-delay: .18s; }
.vl-typing span:nth-child(3) { animation-delay: .36s; }

.vl-assistant__balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--vl-accent-soft);
    color: var(--vl-accent-dark);
    border-radius: 999px;
    padding: 4px 11px;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}
.vl-assistant__balance i { margin: 0; font-size: .85em; }
.vl-assistant__header .btn-close { margin-left: 10px; flex-shrink: 0; }

.vl-assistant__chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 16px 10px; }
.vl-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1.5px solid var(--vl-border);
    border-radius: 999px;
    padding: 6px 13px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--vl-ink);
    transition: border-color .15s ease, background .15s ease, transform .12s ease;
    animation: vl-fade-up .35s ease both;
}
.vl-chip:nth-child(2) { animation-delay: .05s; }
.vl-chip:nth-child(3) { animation-delay: .1s; }
.vl-chip:nth-child(4) { animation-delay: .15s; }
.vl-chip i { color: var(--vl-accent); }
.vl-chip:hover { border-color: var(--vl-accent); background: var(--vl-accent-soft); transform: translateY(-1px); }

.vl-assistant.is-thinking .vl-assistant__avatar { animation-duration: 1.1s; }
.vl-assistant.is-thinking .vl-assistant__dot { animation: vl-pulse 1s ease-out infinite; }

.vl-assistant__form { display: flex; gap: 8px; padding: 12px 16px 6px; border-top: 1px solid var(--vl-border); }
.vl-assistant__form .form-control { border-radius: 999px; padding-left: 1rem; }
.vl-assistant__form .btn { border-radius: 50%; width: 42px; height: 42px; padding: 0; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.vl-assistant__form .btn i { margin: 0; }
.vl-assistant__setup { padding: 12px 16px; border-top: 1px solid var(--vl-border); }
.vl-assistant__disclaimer { padding: 0 16px 12px; margin: 0; }

.marketing-body { background: #fff; }
.mk-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.mk-header { background: var(--vl-sidebar); position: sticky; top: 0; z-index: 1030; box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .4); }
.mk-header__inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 14px; }
.mk-header .mk-brand { margin-bottom: 0; }
.mk-brand__name { color: #fff; }
.mk-header__nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mk-header__link { color: #b9cdd6; text-decoration: none; font-weight: 600; font-size: .92rem; padding: 6px 12px; border-radius: 9px; transition: color .15s ease, background .15s ease; }
.mk-header__link:hover, .mk-header__link.is-active { color: #fff; background: rgba(255, 255, 255, .08); }

.mk-hero { background: linear-gradient(170deg, var(--vl-sidebar) 0%, #14455c 60%, #0e6f6d 100%); color: #fff; padding: 92px 0 104px; text-align: center; position: relative; overflow: hidden; }
.mk-hero::before, .mk-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); opacity: .12; background: #fff; animation: vl-float 7s ease-in-out infinite; }
.mk-hero::before { width: 340px; height: 340px; top: -120px; right: -80px; }
.mk-hero::after { width: 260px; height: 260px; bottom: -110px; left: -70px; animation-delay: 1.6s; }
.mk-hero > .mk-container { position: relative; z-index: 1; }

.mk-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 7px 16px; font-size: .85rem; font-weight: 600; margin-bottom: 18px; animation: vl-fade-up .5s ease both; }
.mk-badge i { color: var(--vl-accent-2); }
.mk-hero__title { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; max-width: 800px; margin: 0 auto 16px; animation: vl-fade-up .55s ease both .05s; }
.mk-hero__subtitle { font-size: 1.12rem; color: #c8dde5; max-width: 680px; margin: 0 auto 30px; animation: vl-fade-up .6s ease both .1s; }
.mk-hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; animation: vl-fade-up .65s ease both .15s; }
.mk-hero__actions .btn-outline-secondary { color: #fff; border-color: rgba(255, 255, 255, .45); }
.mk-hero__actions .btn-outline-secondary:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.mk-hero__note { margin-top: 20px; font-size: .86rem; color: #9dbcc8 !important; animation: vl-fade-in .8s ease both .3s; }

.mk-section { padding: 76px 0; }
.mk-section--alt { background: var(--vl-bg); }
.mk-section__title { font-size: 1.75rem; font-weight: 800; margin-bottom: 10px; }
.mk-section__intro { color: var(--vl-muted); max-width: 660px; margin-bottom: 32px; }

.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.mk-grid--4 { grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); }

.mk-card { background: #fff; border: 1px solid var(--vl-border); border-radius: 18px; padding: 26px; box-shadow: var(--vl-shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.mk-card:hover { transform: translateY(-4px); box-shadow: var(--vl-shadow); border-color: #cfe4e3; }
.mk-card--compact { padding: 22px; }
.mk-card__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--vl-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; margin-bottom: 14px; box-shadow: 0 8px 18px -8px rgba(14, 165, 163, .55); }
.mk-card__title { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.mk-card__text { color: var(--vl-muted); font-size: .92rem; margin: 0; }

.mk-privacy { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.mk-list { color: #4d6a76; list-style: none; padding: 0; }
.mk-list li { padding: 6px 0 6px 30px; position: relative; }
.mk-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 7px; color: #fff; background: var(--vl-grad); width: 20px; height: 20px; border-radius: 50%; font-size: .68rem; display: flex; align-items: center; justify-content: center; }
.mk-cta-card { background: linear-gradient(160deg, #fff 0%, var(--vl-accent-soft) 120%); border: 1.5px solid var(--vl-accent); border-radius: 18px; padding: 30px; box-shadow: var(--vl-shadow-sm); }

.mk-page { padding: 64px 0; }
.mk-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.mk-page h2 { font-size: 1.25rem; font-weight: 800; margin: 34px 0 10px; }
.mk-page p, .mk-page li { color: #3d5665; }
.mk-page .lead { color: var(--vl-muted); font-size: 1.08rem; }

.mk-footer { border-top: 1px solid var(--vl-border); padding: 34px 0; background: #fbfdfd; }
.mk-footer__grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.mk-footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.mk-footer__links a { color: var(--vl-muted); text-decoration: none; font-weight: 600; font-size: .9rem; }
.mk-footer__links a:hover { color: var(--vl-accent-dark); }

.is-simple { font-size: 1.08rem; }
.is-simple .btn { min-height: 48px; font-size: 1.05rem; }
.is-simple .fluid-quick__btn { min-height: 92px; }
.is-simple .fluid-quick__label { font-size: 1.05rem; }
.is-simple .quick-action { min-height: 54px; font-size: 1.05rem; }
.is-simple .form-control, .is-simple .form-select { min-height: 48px; font-size: 1.02rem; }

.vl-burger { position: relative; width: 20px; height: 16px; display: inline-block; }
.vl-burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2.5px;
    border-radius: 2px;
    background: var(--vl-ink);
    transition: transform .28s cubic-bezier(.34, 1.3, .64, 1), opacity .2s ease, top .28s ease;
}
.vl-burger span:nth-child(1) { top: 0; }
.vl-burger span:nth-child(2) { top: 6.75px; }
.vl-burger span:nth-child(3) { top: 13.5px; }
#sidebarToggle.is-open .vl-burger span:nth-child(1) { top: 6.75px; transform: rotate(45deg); }
#sidebarToggle.is-open .vl-burger span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
#sidebarToggle.is-open .vl-burger span:nth-child(3) { top: 6.75px; transform: rotate(-45deg); }

.vl-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1035;
    background: rgba(14, 34, 48, .45);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
}
.vl-backdrop.is-visible { opacity: 1; pointer-events: auto; }

@media (max-width: 991.98px) {
    .app-sidebar { transform: translateX(-102%); transition: transform .32s cubic-bezier(.22, 1, .36, 1); box-shadow: none; }
    .app-sidebar.is-open { transform: translateX(0); box-shadow: 24px 0 60px -30px rgba(14, 34, 48, .55); }
    .app-main { margin-left: 0; }
    .app-content { padding: 18px; }
    .mk-privacy { grid-template-columns: 1fr; }
    .mk-header__link { display: none; }
    body.vl-nav-open { overflow: hidden; }
}

@media (max-width: 575.98px) {
    .page-header { flex-direction: column; align-items: stretch !important; }
    .page-header .ms-auto { margin-left: 0 !important; }
    .page-title { font-size: 1.35rem; }
    .stat-card__value { font-size: 1.4rem; }
    .widget-card__value { font-size: 1.5rem; }
    .quick-action { flex: 1 1 calc(50% - 10px); justify-content: center; }
    .app-topbar { padding: 10px 14px; }
    .app-topbar .fw-semibold { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
    .vl-assistant { right: 12px; bottom: 86px; }
    .vl-assistant-toggle { right: 12px; bottom: 14px; }
    .mk-hero { padding: 56px 0 64px; }
    .mk-section { padding: 48px 0; }
    .entry-list__item { flex-wrap: wrap; }
    .table { font-size: .85rem; }
}

@media print {
    .app-sidebar, .app-topbar, .vl-assistant, .vl-assistant-toggle, .skip-link, .app-disclaimer,
    .fluid-quick, details, form, .btn, .flash-stack, .widget-card__link, .quick-actions { display: none !important; }
    .app-main { margin-left: 0 !important; }
    .app-content { max-width: 100%; padding: 0; }
    .card, .stat-card, .widget-card { box-shadow: none !important; border: 1px solid #ccc !important; break-inside: avoid; animation: none !important; }
    body { background: #fff !important; }
}

.tab-pane { animation: vl-fade-up .3s ease both; }

.vl-strength { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.vl-strength__track { flex: 1; height: 7px; border-radius: 999px; background: var(--vl-ring-track); overflow: hidden; }
.vl-strength__bar { height: 100%; width: 0; border-radius: 999px; background: var(--vl-accent); transition: width .35s cubic-bezier(.22, 1, .36, 1), background-color .35s ease; }
.vl-strength__label { font-size: .78rem; font-weight: 700; color: var(--vl-muted); min-width: 74px; text-align: right; }

.vl-qr-wrap { display: flex; justify-content: center; }
.vl-qr {
    width: 208px;
    height: 208px;
    padding: 10px;
    background: #fff;
    border: 1.5px solid var(--vl-border);
    border-radius: 16px;
    box-shadow: var(--vl-shadow-sm);
    animation: vl-pop .35s cubic-bezier(.34, 1.4, .64, 1) both;
}
.vl-qr svg { width: 100%; height: 100%; display: block; }

.vl-secret-code, .vl-recovery-code {
    display: inline-block;
    background: #f1f6f7;
    border: 1px dashed var(--vl-border);
    border-radius: 9px;
    padding: 6px 10px;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--vl-ink);
    user-select: all;
}
.vl-secret-code { word-break: break-all; }

.vl-recovery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.vl-recovery-code { text-align: center; background: #fff; }

.vl-2fa-steps { padding-left: 18px; margin-bottom: 0; }
.vl-2fa-steps li { margin-bottom: 4px; }

.vl-check-list { list-style: none; padding: 0; }
.vl-check-list li { padding: 3px 0 3px 24px; position: relative; }
.vl-check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 6px; color: var(--vl-accent); font-size: .72rem; }

.vl-code-input { letter-spacing: .18em; font-weight: 700; font-size: 1.05rem; }

.vl-2fa-icon {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    background: var(--vl-grad);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
    box-shadow: 0 10px 22px -10px rgba(14, 165, 163, .6);
    animation: vl-float 3.5s ease-in-out infinite;
}

.vl-progress { height: 12px; border-radius: 999px; background: var(--vl-ring-track); overflow: hidden; }
.vl-progress__fill { height: 100%; border-radius: 999px; background: var(--vl-grad); transition: width .8s cubic-bezier(.22, 1, .36, 1); }

.vl-pregnancy-card { border-color: var(--vl-accent); background: linear-gradient(160deg, #fff 30%, var(--vl-accent-soft) 100%); }
.vl-pregnancy-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--vl-grad);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 10px 22px -10px rgba(14, 165, 163, .6);
    animation: vl-float 3.5s ease-in-out infinite;
    flex-shrink: 0;
}

.food-result__media {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--vl-accent-soft);
    color: var(--vl-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.food-result__media img { width: 100%; height: 100%; object-fit: cover; }
.food-result__body { flex: 1; min-width: 0; }

.vl-memory-badge { margin-right: 6px; text-transform: uppercase; font-size: .64rem; letter-spacing: .05em; }

.vl-pw-wrap { position: relative; }
.vl-pw-wrap .form-control { padding-right: 2.9rem; }
.vl-pw-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: 0;
    background: none;
    color: var(--vl-muted);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .15s ease, background .15s ease;
}
.vl-pw-toggle:hover { color: var(--vl-accent-dark); background: var(--vl-accent-soft); }
.vl-pw-toggle-group i { margin: 0; }

.vl-complete-card { border-color: var(--vl-amber); background: linear-gradient(160deg, #fff 40%, #fef6e6 130%); }
.vl-complete-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--vl-amber) 0%, #fbbf24 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 8px 18px -8px rgba(245, 158, 11, .55);
    flex-shrink: 0;
    animation: vl-float 3.5s ease-in-out infinite;
}
.vl-complete-card .vl-progress__fill { background: linear-gradient(90deg, var(--vl-amber), #fbbf24); }
.vl-complete-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vl-complete-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px dashed var(--vl-amber);
    color: #8a5b06;
    border-radius: 999px;
    padding: 3px 11px;
    font-size: .76rem;
    font-weight: 700;
}

.vl-token-fresh {
    display: block;
    background: #f1f6f7;
    border: 1.5px dashed var(--vl-accent);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .03em;
    word-break: break-all;
    user-select: all;
}
.vl-endpoint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--vl-border); }
.vl-endpoint:last-child { border-bottom: 0; }
.vl-endpoint code { background: #f1f6f7; border-radius: 7px; padding: 3px 9px; font-size: .82rem; }
.vl-endpoint__method { font-size: .68rem; font-weight: 800; letter-spacing: .06em; border-radius: 6px; padding: 3px 8px; }
.vl-endpoint__method--get { background: #e7f6fd; color: #0b5e7d; }
.vl-endpoint__method--post { background: #e8f8ef; color: #14683c; }

@keyframes vl-flicker {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    40% { transform: scale(1.12) rotate(2deg); }
    70% { transform: scale(1.05) rotate(-1deg); }
}

.vl-streak {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1.5px solid #fdba74;
    color: #9a3412;
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 800;
    font-size: .9rem;
    box-shadow: 0 8px 18px -10px rgba(249, 115, 22, .45);
    animation: vl-fade-up .4s ease both;
}
.vl-streak i { color: #f97316; animation: vl-flicker 1.8s ease-in-out infinite; transform-origin: 50% 80%; }

.vl-platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.vl-platform {
    display: flex;
    gap: 11px;
    border: 1px solid var(--vl-border);
    border-radius: 14px;
    padding: 13px;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
    animation: vl-fade-up .35s ease both;
}
.vl-platform:hover { border-color: var(--vl-accent); transform: translateY(-2px); box-shadow: var(--vl-shadow-sm); }
.vl-platform__icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--vl-accent-soft);
    color: var(--vl-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.vl-platform__title { font-size: .89rem; font-weight: 800; margin: 0 0 2px; }
.vl-platform__text { font-size: .78rem; color: var(--vl-muted); margin: 0; }

.quick-action:hover i { animation: vl-wave 0.6s ease; }

@keyframes vl-score-in {
    from { transform: scale(.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.vl-score-card--good { border-color: var(--vl-accent-2); background: linear-gradient(160deg, #fff 40%, #ecfdf5 130%); }
.vl-score-card--watch { border-color: var(--vl-amber); background: linear-gradient(160deg, #fff 40%, #fffbeb 130%); }
.vl-score-card--attention { border-color: var(--vl-rose); background: linear-gradient(160deg, #fff 40%, #fff1f2 130%); }

.vl-score-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    background: var(--vl-grad);
    box-shadow: 0 12px 26px -12px rgba(14, 165, 163, .6);
    animation: vl-score-in .45s cubic-bezier(.34, 1.4, .64, 1) both;
}
.vl-score-ring--watch { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 12px 26px -12px rgba(245, 158, 11, .6); }
.vl-score-ring--attention { background: linear-gradient(135deg, #f43f5e, #fb7185); box-shadow: 0 12px 26px -12px rgba(244, 63, 94, .6); }
.vl-score-ring__value { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.vl-score-ring__max { font-size: .72rem; font-weight: 700; opacity: .85; }

.vl-insight { transition: transform .18s ease, box-shadow .18s ease; border-left: 4px solid var(--vl-border); }
.vl-insight:hover { transform: translateY(-3px); box-shadow: var(--vl-shadow); }
.vl-insight--good { border-left-color: var(--vl-accent-2); }
.vl-insight--watch { border-left-color: var(--vl-amber); }
.vl-insight--attention { border-left-color: var(--vl-rose); }
.vl-insight__icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: var(--vl-accent-soft);
    color: var(--vl-accent);
}
.vl-insight--watch .vl-insight__icon { background: #fef6e6; color: #b45309; }
.vl-insight--attention .vl-insight__icon { background: #fdecef; color: #be123c; }
.vl-insight__title { font-size: .85rem; font-weight: 700; color: var(--vl-muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 4px; }
.vl-insight__value { font-size: 1.65rem; font-weight: 800; line-height: 1.1; }
.vl-insight__unit { font-size: .9rem; font-weight: 600; color: var(--vl-muted); margin-left: 3px; }
.vl-insight__badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 11px;
    font-size: .76rem;
    font-weight: 700;
    background: var(--vl-accent-soft);
    color: var(--vl-accent-dark);
}
.vl-insight--watch .vl-insight__badge { background: #fef6e6; color: #8a5b06; }
.vl-insight--attention .vl-insight__badge { background: #fdecef; color: #a1213b; }

.vl-appointment__date {
    width: 46px;
    flex-shrink: 0;
    text-align: center;
    border-radius: 12px;
    background: var(--vl-accent-soft);
    color: var(--vl-accent-dark);
    padding: 5px 0;
    line-height: 1.1;
}
.vl-appointment__day { display: block; font-size: 1.15rem; font-weight: 800; }
.vl-appointment__month { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .06em; }

.vl-recipe__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.vl-recipe pre { max-height: 320px; overflow: auto; }
.vl-recipe pre code { white-space: pre; }

.vl-reference-table { font-size: .85rem; }
.vl-reference-table td { vertical-align: middle; }
.vl-reference-row__range { white-space: nowrap; font-weight: 700; width: 42%; }
.vl-reference-row { border-left: 4px solid transparent; }
.vl-reference-row--good { border-left-color: var(--vl-accent-2); }
.vl-reference-row--watch { border-left-color: var(--vl-amber); }
.vl-reference-row--attention { border-left-color: var(--vl-rose); }
.vl-reference-row.is-current { background: var(--vl-accent-soft); font-weight: 700; }
.vl-reference-row.is-current td { color: var(--vl-ink); }

.stat-card.vl-insight--good { border-color: var(--vl-accent-2); }
.stat-card.vl-insight--watch { border-color: var(--vl-amber); }
.stat-card.vl-insight--attention { border-color: var(--vl-rose); }
.stat-card .vl-insight__badge { align-self: flex-start; }

.vl-mood-picker { display: flex; gap: 8px; }
.vl-mood-option { position: relative; cursor: pointer; }
.vl-mood-option input { position: absolute; opacity: 0; }
.vl-mood-option span[aria-hidden] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1.5px solid var(--vl-border);
    background: #fff;
    color: var(--vl-muted);
    font-size: 1.35rem;
    transition: border-color .15s ease, color .15s ease, transform .15s ease, background .15s ease;
}
.vl-mood-option:hover span[aria-hidden] { border-color: var(--vl-accent); transform: translateY(-2px); }
.vl-mood-option input:checked + span[aria-hidden] { background: var(--vl-grad); border-color: transparent; color: #fff; transform: scale(1.08); box-shadow: 0 8px 16px -8px rgba(14, 165, 163, .55); }
.vl-mood-option input:focus-visible + span[aria-hidden] { outline: 2px solid var(--vl-accent-dark); outline-offset: 2px; }
.vl-mood-badge { color: var(--vl-accent); font-size: 1.1rem; }

@supports (-webkit-background-clip: text) {
    .mk-hero__title {
        background: linear-gradient(90deg, #ffffff 20%, #a7f3d0 50%, #ffffff 80%);
        background-size: 200% auto;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: vl-shimmer 7s linear infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
