/* Tools (2): anchor analyzer, plan, quiz, donor check, checklist, glossary. Extends tools.css. */

.lbt { --c-ok: #00B368; --c-warn: #E0A800; --c-bad: #e5484d; }

/* Shared: type-coloured anchor lists */
.lbt-li--brand { --c: var(--c-brand); }
.lbt-li--naked { --c: var(--c-naked); }
.lbt-li--partial { --c: var(--c-partial); }
.lbt-li--exact { --c: var(--c-exact); }

.lbt__group-list li i,
.lbt-an__toplist li i {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--c, #8a8f98);
    flex-shrink: 0;
}

.lbt__group-list li small {
    margin-left: auto;
    color: #8a8f98;
    font-size: 12px;
    white-space: nowrap;
}

.lbt__group-list li small + em { margin-left: 8px; }

.lbt__textarea {
    height: auto;
    min-height: 240px;
    padding: 16px 18px;
    line-height: 1.5;
    resize: vertical;
}

.lbt__hint-link { color: var(--blue); text-decoration: none; }
.lbt__hint-link:hover { text-decoration: underline; }

/* Tips */
.lbt-tips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lbt-tips[hidden] { display: none; }

.lbt-tip {
    position: relative;
    padding: 12px 16px 12px 44px;
    border-radius: 12px;
    background: var(--dark-grey);
    color: var(--black);
    line-height: 1.5;
}

.lbt-tip::before {
    position: absolute;
    left: 14px;
    top: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.lbt-tip--warn { background: #fff8e1; }
.lbt-tip--warn::before { content: "!"; background: var(--c-warn); }
.lbt-tip--bad { background: #fdecec; }
.lbt-tip--bad::before { content: "!"; background: var(--c-bad); }
.lbt-tip--info { background: #f3f3ff; }
.lbt-tip--info::before { content: "i"; background: var(--blue); }

/* ---------- Analyzer ---------- */
.lbt-an__form {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 24px;
    border-bottom: 1px solid var(--grey-15);
}

.lbt-an__text { height: 100%; }
.lbt-an__text .lbt__textarea { flex: 1; }

.lbt-an__side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lbt-an__side .lb-btn { width: 100%; justify-content: center; margin-top: auto; }

.lbt-an__res {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 36px 36px;
    scroll-margin-top: 100px;
}

.lbt-an__res[hidden] { display: none; }

.lbt-verdict {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    border-radius: 18px;
    background: var(--dark-grey);
    --v: var(--c-ok);
}

.lbt-verdict--ok { background: #ecfaf3; --v: var(--c-ok); }
.lbt-verdict--warn { background: #fff8e1; --v: var(--c-warn); }
.lbt-verdict--bad { background: #fdecec; --v: var(--c-bad); }

.lbt-verdict__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--v);
    position: relative;
}

.lbt-verdict__icon::after {
    content: "✓";
    position: absolute;
    inset: 0;
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
}

.lbt-verdict--warn .lbt-verdict__icon::after,
.lbt-verdict--bad .lbt-verdict__icon::after { content: "!"; }

.lbt-verdict__title { color: var(--black); margin-bottom: 4px; }
.lbt-verdict__text { color: #4a4a5e; margin: 0; }

.lbt-verdict__stats {
    display: flex;
    gap: 10px;
    margin: 0;
}

.lbt-verdict__stats > div {
    min-width: 110px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .8);
}

.lbt-verdict__stats dt { color: #8a8f98; }
.lbt-verdict__stats dd { margin: 0; color: var(--black); }

.lbt-meters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.lbt-meter {
    padding: 18px;
    border: 1px solid var(--grey-15);
    border-top: 3px solid var(--c);
    border-radius: 16px;
    background: var(--white);
}

.lbt-meter--brand { --c: var(--c-brand); }
.lbt-meter--naked { --c: var(--c-naked); }
.lbt-meter--partial { --c: var(--c-partial); }
.lbt-meter--exact { --c: var(--c-exact); }

.lbt-meter__head { display: flex; align-items: center; gap: 8px; }
.lbt-meter__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

.lbt-meter__status {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 10px;
    background: #ecfaf3;
    color: #00995a;
}

.lbt-meter.is-low .lbt-meter__status,
.lbt-meter.is-high .lbt-meter__status { background: #fff8e1; color: #9a7400; }
.lbt-meter--exact.is-high .lbt-meter__status { background: #fdecec; color: var(--c-bad); }

.lbt-meter__val { margin: 12px 0 10px; color: var(--black); }
.lbt-meter__val small { color: #8a8f98; }

.lbt-meter__track {
    position: relative;
    height: 8px;
    border-radius: 4px;
    background: var(--dark-grey);
    overflow: hidden;
}

.lbt-meter__norm {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(0, 179, 104, .18);
}

.lbt-meter__fill {
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    border-radius: 3px;
    background: var(--c);
    transition: width .5s ease;
}

.lbt-meter__hint { margin-top: 8px; color: #8a8f98; }

.lbt-an__cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 16px;
}

.lbt-an__top,
.lbt-an__fix {
    padding: 22px;
    border-radius: 18px;
    background: var(--dark-grey);
}

.lbt-an__h { color: var(--black); margin-bottom: 12px; }
.lbt-an__fix-d { color: #4a4a5e; margin: -4px 0 14px; }

.lbt-an__toplist {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lbt-an__toplist li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--white);
    color: var(--black);
}

.lbt-an__toplist li span { min-width: 0; overflow-wrap: anywhere; }
.lbt-an__toplist li em { margin-left: auto; color: #8a8f98; font-style: normal; font-size: 12px; white-space: nowrap; }

.lbt-an__fix .lbt__group-list { max-height: 360px; overflow: auto; }
.lbt-an__fix .lbt__actions { margin-top: 18px; }

/* ---------- Plan ---------- */
.lbt-plan__form {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1.2fr);
    gap: 20px;
    align-items: start;
    border-bottom: 1px solid var(--grey-15);
}

.lbt-plan__res {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 36px 36px;
}

.lbt-plan__sum {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.lbt-plan__sum > div {
    padding: 16px 20px;
    border-radius: 16px;
    background: linear-gradient(160deg, #f3f3ff 0%, #f6fbf9 100%);
}

.lbt-plan__sum dt { color: #8a8f98; margin-bottom: 4px; }
.lbt-plan__sum dd { margin: 0; color: var(--black); font-variant-numeric: tabular-nums; }
.lbt-plan__sum .lbt-plan__sum-dark { border: 1px solid rgba(180, 180, 255, 0.16); background: var(--surface-indigo); }
.lbt-plan__sum .lbt-plan__sum-dark dt { color: rgba(225, 225, 255, .66); }
.lbt-plan__sum .lbt-plan__sum-dark dd { color: var(--white); }

.lbt-chart {
    display: grid;
    grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr));
    align-items: end;
    gap: 10px;
    height: 240px;
    padding: 0 4px;
    border-bottom: 1px solid var(--grey);
}

.lbt-chart__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    padding-bottom: 26px;
}

.lbt-chart__val { color: var(--black); margin-bottom: 6px; }

.lbt-chart__bar {
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
    width: 100%;
    max-width: 56px;
    border-radius: 8px 8px 2px 2px;
    overflow: hidden;
    animation: lbt-grow .6s ease both;
    transform-origin: bottom;
}

@keyframes lbt-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.lbt-chart__seg { min-height: 3px; }
.lbt-chart__seg--brand { background: var(--c-brand); }
.lbt-chart__seg--naked { background: var(--c-naked); }
.lbt-chart__seg--partial { background: var(--c-partial); }
.lbt-chart__seg--exact { background: var(--c-exact); }

.lbt-chart__m {
    position: absolute;
    bottom: 4px;
    color: #8a8f98;
}

.lbt-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: -8px; }
.lbt-legend__item { display: inline-flex; align-items: center; gap: 6px; color: #4a4a5e; }
.lbt-legend__item i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.lbt-legend__item--brand { --c: var(--c-brand); }
.lbt-legend__item--naked { --c: var(--c-naked); }
.lbt-legend__item--partial { --c: var(--c-partial); }
.lbt-legend__item--exact { --c: var(--c-exact); }

.lbt-plan__table { margin: 0; }
.lbt-plan__table th small { display: block; margin-top: 2px; font-weight: 400; font-size: 12px; color: #8a8f98; }
.lbt-stage--start { color: var(--blue) !important; }
.lbt-stage--keep { color: #00995a !important; }

.lbt-mixes { display: inline-flex; flex-wrap: wrap; gap: 6px; }

.lbt-mix {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--dark-grey);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.lbt-mix i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.lbt-mix--brand { --c: var(--c-brand); }
.lbt-mix--naked { --c: var(--c-naked); }
.lbt-mix--partial { --c: var(--c-partial); }
.lbt-mix--exact { --c: var(--c-exact); }

.lbt-plan__res .lbt__actions { margin-top: 0; }

/* ---------- Quiz ---------- */
.lbt-quiz { position: relative; }

.lbt-quiz__progress {
    height: 4px;
    background: var(--grey-15);
}

.lbt-quiz__progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--blue), #CC66FF);
    transition: width .35s ease;
}

.lbt-quiz__form { padding: 40px 44px 44px; margin: 0; }
.lbt-quiz__form[hidden] { display: none; }

.lbt-quiz__step {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.lbt-quiz__step[hidden] { display: none; }
.lbt-quiz__step.is-in { animation: lbt-in .35s ease both; }

@keyframes lbt-in {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: none; }
}

.lbt-quiz__meta { color: var(--blue); margin-bottom: 8px; }
.lbt-quiz__q { display: block; padding: 0; margin: 0 0 24px; color: var(--black); }

.lbt-quiz__opts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.lbt-quiz__opt,
.lbt-quiz__chip { position: relative; cursor: pointer; }

.lbt-quiz__opt input,
.lbt-quiz__chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lbt-quiz__opt-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: 20px 22px;
    border: 1.5px solid var(--grey);
    border-radius: 16px;
    background: var(--white);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.lbt-quiz__opt:hover .lbt-quiz__opt-box { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 51, 204, .08); }
.lbt-quiz__opt input:checked + .lbt-quiz__opt-box { border-color: var(--blue); background: #f3f3ff; box-shadow: 0 0 0 4px var(--blue-20); }
.lbt-quiz__opt input:focus-visible + .lbt-quiz__opt-box { box-shadow: 0 0 0 4px var(--blue-20); }
.lbt-quiz__opt-title { color: var(--black); }
.lbt-quiz__opt-desc { color: #8a8f98; }

.lbt-quiz__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.lbt-quiz__chip span {
    display: inline-flex;
    padding: 10px 16px;
    border: 1.5px solid var(--grey);
    border-radius: 30px;
    background: var(--white);
    color: var(--black);
    transition: border-color .2s, background .2s, color .2s;
}

.lbt-quiz__chip:hover span { border-color: var(--blue); }
.lbt-quiz__chip input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.lbt-quiz__chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--blue-20); }

.lbt-quiz__back {
    margin-top: 24px;
    padding: 0;
    border: 0;
    background: none;
    color: #8a8f98;
    cursor: pointer;
}

.lbt-quiz__back:hover { color: var(--blue); }

.lbt-quiz__res {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    animation: lbt-in .4s ease both;
}

.lbt-quiz__res[hidden] { display: none; }

.lbt-quiz__res-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 40px 44px;
    background: linear-gradient(160deg, #f3f3ff 0%, #f6fbf9 100%);
}

.lbt-quiz__pkg { color: var(--black); margin: 0; }
.lbt-quiz__pkg-d { color: #4a4a5e; margin: 0; }
.lbt-quiz__big { display: flex; align-items: baseline; gap: 12px; margin: 8px 0; color: #4a4a5e; }

.lbt-quiz__res-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 40px 44px;
}

.lbt-quiz__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}

.lbt-quiz__actions .lb-btn { width: 100%; justify-content: center; text-align: center; }
.lbt-quiz__actions .lbt-quiz__back { margin-top: 4px; align-self: center; }

/* ---------- Checklists (donor + pre-purchase) ---------- */
.lbt-check {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    overflow: visible;
}

.lbt-check__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 36px;
    margin: 0;
}

.lbt-check__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.lbt-check__gtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0;
    margin-bottom: 4px;
    color: var(--black);
}

.lbt-check__group--red .lbt-check__gtitle { color: var(--c-bad); }

.lbt-check__item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--grey-15);
    border-radius: 14px;
    background: var(--white);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.lbt-check__item:hover { border-color: #d6d6ff; }
.lbt-check__item input { position: absolute; opacity: 0; pointer-events: none; }

.lbt-check__box {
    width: 24px;
    height: 24px;
    border: 2px solid var(--grey);
    border-radius: 7px;
    background: var(--white);
    position: relative;
    transition: background .2s, border-color .2s;
}

.lbt-check__box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 7px;
    height: 12px;
    border: solid var(--white);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .2s;
}

.lbt-check__item input:focus-visible ~ .lbt-check__box { box-shadow: 0 0 0 4px var(--blue-20); }
.lbt-check__item.is-on { background: #f6fbf9; border-color: #bfeed8; }
.lbt-check__item.is-on .lbt-check__box { background: var(--c-ok); border-color: var(--c-ok); }
.lbt-check__item.is-on .lbt-check__box::after { transform: rotate(45deg) scale(1); }
.lbt-check__group--red .lbt-check__item.is-on { background: #fdecec; border-color: #f6c5c6; }
.lbt-check__group--red .lbt-check__item.is-on .lbt-check__box { background: var(--c-bad); border-color: var(--c-bad); }

.lbt-check__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lbt-check__title { color: var(--black); }
.lbt-check__desc { color: #8a8f98; }
.lbt-check__link { color: var(--blue); text-decoration: none; white-space: nowrap; margin-left: 4px; }
.lbt-check__link:hover { text-decoration: underline; }

.lbt-check__w {
    padding: 2px 8px;
    border-radius: 10px;
    background: #ecfaf3;
    color: #00995a;
    white-space: nowrap;
}

.lbt-check__group--red .lbt-check__w { background: #fdecec; color: var(--c-bad); }

.lbt-check__side {
    padding: 36px;
    border-left: 1px solid var(--grey-15);
    background: linear-gradient(160deg, #f3f3ff 0%, #f6fbf9 100%);
    border-radius: 0 24px 24px 0;
}

.lbt-check__sticky {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lbt-score { display: flex; flex-direction: column; align-items: center; gap: 8px; --s: var(--grey); }
.lbt-score--good { --s: var(--c-ok); }
.lbt-score--mid { --s: var(--c-warn); }
.lbt-score--bad, .lbt-score--stop { --s: var(--c-bad); }

.lbt-score__ring { position: relative; width: 160px; height: 160px; }
.lbt-score__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lbt-score__ring circle { fill: none; stroke-width: 10; }
.lbt-score__bg { stroke: rgba(11, 11, 31, .07); }
.lbt-score__fg { stroke: var(--s); stroke-linecap: round; transition: stroke-dashoffset .5s ease, stroke .3s; }

.lbt-score__val {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    padding-top: 56px;
    color: var(--black);
}

.lbt-score__val b { font-variant-numeric: tabular-nums; }
.lbt-score__label { color: #8a8f98; }
.lbt-score__verdict { text-align: center; color: var(--black); }
.lbt-score__text { text-align: center; color: #4a4a5e; margin: -8px 0 0; }
.lbt-score__text:empty { display: none; }

.lbt-score__missing {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .8);
    color: var(--black);
}

.lbt-score__missing[hidden] { display: none; }
.lbt-score__missing ul { margin: 8px 0 0; padding-left: 18px; color: #4a4a5e; }
.lbt-score__missing li + li { margin-top: 4px; }

.lbt-check__btns { display: flex; gap: 8px; }
.lbt-check__btns .lb-btn { flex: 1 1 0; min-width: 0; justify-content: center; padding-left: 12px; padding-right: 12px; box-sizing: border-box; white-space: nowrap; }

.lbt-check__cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(11, 11, 31, .08);
}

.lbt-check__cta p { margin: 0; color: #4a4a5e; }
.lbt-check__cta .lb-btn { justify-content: center; }

/* Donor auto-check */
.lbt-donor__top {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(160deg, #f3f3ff 0%, #f8fbff 100%);
    border: 1px solid #e3e3ff;
}

.lbt-donor__domain { max-width: none; }
.lbt-donor__row { display: flex; gap: 10px; }
.lbt-donor__row .lbt__input { flex: 1; min-width: 0; }

.lbt-donor__go {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    box-sizing: border-box;
    min-width: 190px;
    height: 52px;
    padding: 0 28px;
    border-radius: 14px;
    overflow: hidden;
    white-space: nowrap;
    isolation: isolate;
}
/* Both labels share one grid cell: width never jumps between states. */
.lbt-donor__go-text,
.lbt-donor__go-busy {
    grid-area: 1 / 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: opacity .2s, transform .25s;
}
.lbt-donor__go-busy { opacity: 0; transform: translateY(8px); }
.lbt-donor__go:disabled { cursor: progress; opacity: 1; }
.is-checking .lbt-donor__go-text { opacity: 0; transform: translateY(-8px); }
.is-checking .lbt-donor__go-busy { opacity: 1; transform: none; }

/* Shimmer sweeping across the button while the request runs. */
.lbt-donor__go::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .28) 45%, transparent 70%);
    transform: translateX(-100%);
    opacity: 0;
}
.is-checking .lbt-donor__go { background: #5252e6; border-color: #5252e6; }
.is-checking .lbt-donor__go::after { opacity: 1; animation: lbt-shimmer 1.4s ease-in-out infinite; }

.lbt-donor__spin {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lbt-spin .7s linear infinite;
}
@keyframes lbt-spin { to { transform: rotate(360deg); } }
@keyframes lbt-shimmer { to { transform: translateX(100%); } }

/* Scanner panel shown while checking */
.lbt-donor__scan {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 20px;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid #e3e3ff;
    animation: lbt-fade .3s ease;
}
.lbt-donor__scan[hidden] { display: none; }

.lbt-scan {
    position: relative;
    border-radius: 12px;
    border: 1px solid #e3e3ff;
    background: #fbfbff;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 102, 255, .12);
}
.lbt-scan__bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    background: #f0f0ff;
    border-bottom: 1px solid #e3e3ff;
}
.lbt-scan__bar i { width: 7px; height: 7px; border-radius: 50%; background: #d4d4f5; flex-shrink: 0; }
.lbt-scan__url {
    flex: 1;
    min-width: 0;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #fff;
    color: #6b7080;
    font-size: 10px;
    line-height: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lbt-scan__page {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 12px;
    height: 128px;
    box-sizing: border-box;
}
.lbt-scan__line {
    display: block;
    height: 7px;
    border-radius: 4px;
    background: #e6e7f2;
    animation: lbt-pulse 1.6s ease-in-out infinite;
}
.lbt-scan__line--h { width: 60%; height: 10px; background: #d9d9f7; }
.lbt-scan__line--s { width: 70%; }
.lbt-scan__line--link { background: rgba(102, 102, 255, .35); width: 45%; animation: lbt-link 2.4s ease-in-out infinite; }
.lbt-scan__row { display: flex; gap: 8px; }
.lbt-scan__img { width: 40px; height: 34px; border-radius: 6px; background: #e6e7f2; flex-shrink: 0; }
.lbt-scan__col { flex: 1; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.lbt-scan__line:nth-child(2) { animation-delay: .2s; }
.lbt-scan__line:nth-child(3) { animation-delay: .4s; }

/* Laser line moving over the page */
.lbt-scan__beam {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 34px;
    background: linear-gradient(180deg, rgba(102, 102, 255, 0) 0%, rgba(102, 102, 255, .18) 85%, rgba(102, 102, 255, .9) 100%);
    border-bottom: 0;
    animation: lbt-beam 2.2s cubic-bezier(.45, 0, .55, 1) infinite;
    pointer-events: none;
}
/* Little "data packets" circling */
.lbt-scan__orbit {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 26px;
    height: 26px;
    animation: lbt-spin 2.4s linear infinite;
}
.lbt-scan__orbit b {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
}
.lbt-scan__orbit b:nth-child(1) { top: 0; left: 10px; }
.lbt-scan__orbit b:nth-child(2) { bottom: 2px; left: 1px; opacity: .6; }
.lbt-scan__orbit b:nth-child(3) { bottom: 2px; right: 1px; opacity: .3; }

@keyframes lbt-beam {
    0% { transform: translateY(-34px); }
    50% { transform: translateY(128px); }
    100% { transform: translateY(-34px); }
}
@keyframes lbt-pulse { 50% { opacity: .55; } }
@keyframes lbt-link {
    0%, 100% { background: rgba(102, 102, 255, .35); }
    50% { background: rgba(0, 211, 122, .55); }
}

.lbt-donor__scan-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lbt-donor__status { display: flex; align-items: center; gap: 10px; color: var(--black); min-height: 22px; }
.lbt-donor__status [data-out="scan_status"].is-in { animation: lbt-fade .35s ease; }
.lbt-donor__dots { display: inline-flex; gap: 4px; flex-shrink: 0; }
.lbt-donor__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: lbt-dot 1s ease-in-out infinite; }
.lbt-donor__dots i:nth-child(2) { animation-delay: .15s; }
.lbt-donor__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes lbt-dot { 0%, 80%, 100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

.lbt-donor__progress {
    height: 6px;
    border-radius: 999px;
    background: #ececf8;
    overflow: hidden;
}
.lbt-donor__progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), #00D37A);
    background-size: 200% 100%;
    transition: width .35s ease;
    animation: lbt-flow 1.6s linear infinite;
}
@keyframes lbt-flow { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
    .lbt-scan__beam, .lbt-scan__orbit, .lbt-scan__line, .lbt-donor__dots i,
    .is-checking .lbt-donor__go::after, .lbt-donor__progress span { animation: none; }
}

.lbt-donor__report[hidden], .lbt-donor__steps[hidden], .lbt-donor__res[hidden],
.lbt-donor__err[hidden], .lbt-donor__note[hidden], .lbt-donor__manual-hint[hidden] { display: none; }

.lbt-donor__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.lbt-donor__step { display: flex; align-items: center; gap: 10px; color: #a0a4ad; transition: color .3s; }
.lbt-donor__step i {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #d6d8e0;
    flex-shrink: 0;
}
.lbt-donor__step.is-run { color: var(--black); }
.lbt-donor__step.is-run i { border-color: var(--blue); border-top-color: transparent; animation: lbt-spin .8s linear infinite; }
.lbt-donor__step.is-done { color: #4a4a5e; }
.lbt-donor__step.is-done i { border-color: var(--c-ok); background: var(--c-ok); }
.lbt-donor__step.is-done i::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.lbt-donor__res { display: flex; flex-direction: column; gap: 14px; animation: lbt-fade .35s ease; }
@keyframes lbt-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.lbt-donor__res-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.lbt-donor__res-domain { color: var(--black); word-break: break-all; }
.lbt-donor__res-title { color: #8a8f98; margin-top: 2px; }
.lbt-donor__res-sum { display: flex; gap: 6px; flex-wrap: wrap; }
.lbt-donor__pill { padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.lbt-donor__pill--ok { background: #e6f7ef; color: #00804b; }
.lbt-donor__pill--warn { background: #fff6dc; color: #9a7300; }
.lbt-donor__pill--bad { background: #fdecec; color: #c42f34; }

.lbt-donor__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.lbt-donor__m {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 2px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--grey-15, #ececf2);
}
.lbt-donor__m i {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #b5b8c2;
}
.lbt-donor__m--ok i { background: var(--c-ok); }
.lbt-donor__m--warn i { background: var(--c-warn); }
.lbt-donor__m--bad i { background: var(--c-bad); }
.lbt-donor__m--bad { border-color: #f6c5c6; background: #fffafa; }
.lbt-donor__m-l { color: var(--black); }
.lbt-donor__m-v { color: #4a4a5e; overflow-wrap: anywhere; }

.lbt-donor__note { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff6dc; color: #6b5200; }
.lbt-donor__more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--black); }
.lbt-donor__links { display: flex; flex-wrap: wrap; gap: 6px; }
.lbt-donor__links a {
    padding: 5px 12px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #dcdcff;
    color: var(--blue);
    font-size: 13px;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.lbt-donor__links a:hover { background: #f0f0ff; border-color: var(--blue); }
.lbt-donor__src { color: #a0a4ad; font-weight: 500; }
.lbt-donor__err { padding: 12px 14px; border-radius: 12px; background: #fdecec; color: #c42f34; }

.lbt-donor__manual-hint {
    margin: 0;
    padding: 12px 16px;
    border-left: 3px solid var(--blue);
    background: #f6f6ff;
    border-radius: 0 12px 12px 0;
    color: #4a4a5e;
}

.lbt-check__auto { display: block; margin-top: 4px; color: #3d4250; }
.lbt-check__auto[hidden] { display: none; }
.lbt-check__auto b {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 7px;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    vertical-align: 1px;
}
.lbt-check__item.is-auto { box-shadow: inset 3px 0 0 var(--blue); }
.lbt-check__group--red .lbt-check__item.is-auto.is-on .lbt-check__auto b { background: var(--c-bad); }

@media (max-width: 767px) {
    .lbt-donor__top { padding: 16px; }
    .lbt-donor__row { flex-direction: column; gap: 10px; }
    .lbt-donor__row .lbt__input {
        flex: 0 0 auto;
        width: 100%;
        height: 54px;
        min-height: 54px;
        box-sizing: border-box;
        padding: 0 16px;
        border-radius: 14px;
        font-size: 16px; /* 16px prevents iOS zoom on focus */
    }
    .lbt-donor__go { width: 100%; min-width: 0; height: 54px; }
    .lbt-donor__scan { grid-template-columns: 1fr; gap: 18px; padding: 14px; }
    .lbt-scan__page { height: 96px; }
    .lbt-donor__steps { grid-template-columns: 1fr; }
    .lbt-donor__metrics { grid-template-columns: 1fr; }
}

/* Pre-purchase checklist */
.lbt-cl { overflow: visible; }

.lbt-cl__head {
    position: sticky;
    top: 80px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 36px;
    border-bottom: 1px solid var(--grey-15);
    border-radius: 24px 24px 0 0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
}

.lbt-cl__progress { flex: 1; min-width: 220px; max-width: 520px; }
.lbt-cl__count { color: var(--black); margin-bottom: 8px; }
.lbt-cl__bar { height: 8px; border-radius: 4px; background: var(--dark-grey); overflow: hidden; }
.lbt-cl__bar span { display: block; width: 0; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--c-ok)); transition: width .4s ease; }
.lbt-cl__btns { display: flex; gap: 8px; }

.lbt-cl__done {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 36px 0;
    padding: 18px 22px;
    border-radius: 16px;
    background: #ecfaf3;
    animation: lbt-in .4s ease both;
}

.lbt-cl__done[hidden] { display: none; }
.lbt-cl__done p { margin: 2px 0 0; color: #4a4a5e; }
.lbt-cl__done .lb-btn { margin-left: auto; }

.lbt-cl__done-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--c-ok);
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    line-height: 44px;
    text-align: center;
}

.lbt-cl__groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 28px;
    padding: 32px 36px 36px;
}

.lbt-cl__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #16163A;
    color: var(--white);
    font-size: 14px;
    transition: background .3s;
}

.lbt-cl__group.is-done .lbt-cl__num { background: var(--c-ok); }
.lbt-cl__gcount { margin-left: auto; color: #8a8f98; }
.lbt-cl .lbt-check__item { grid-template-columns: 24px minmax(0, 1fr); }

/* ---------- Glossary ---------- */
.lbt-gl__bar {
    position: sticky;
    top: 80px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 0 16px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
}

.lbt-gl__search { position: relative; display: block; max-width: 640px; }
.lbt-gl__search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #8a8f98; pointer-events: none; }
.lbt-gl__search .lbt__input { padding-left: 50px; height: 56px; border-radius: 16px; }

.lbt-gl__letters { display: flex; flex-wrap: wrap; gap: 6px; }

.lbt-gl__letter {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--grey);
    border-radius: 10px;
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}

.lbt-gl__letter:hover { border-color: var(--blue); color: var(--blue); }
.lbt-gl__letter.is-active { background: #16163A; border-color: #16163A; color: var(--white); }
.lbt-gl__found { color: #8a8f98; }

.lbt-gl__sec {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--grey-15);
}

.lbt-gl__sec[hidden] { display: none; }
.lbt-gl__sec-letter { margin: 0; color: var(--blue); line-height: 1; position: sticky; top: 240px; align-self: start; }

.lbt-gl__terms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.lbt-gl__term {
    padding: 20px 22px;
    border: 1px solid var(--grey);
    border-radius: 18px;
    background: var(--white);
    scroll-margin-top: 260px;
    transition: border-color .2s, box-shadow .2s;
}

.lbt-gl__term[hidden] { display: none; }
.lbt-gl__term:hover { border-color: #e0e0ff; box-shadow: 0 4px 24px rgba(0, 51, 204, .08); }
.lbt-gl__term:target { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-20); }
.lbt-gl__term dt { color: var(--black); margin-bottom: 6px; }
.lbt-gl__term dd { margin: 0; color: #2d2d40; line-height: 1.6; }
.lbt-gl__more { display: inline-block; margin-top: 10px; color: var(--blue); text-decoration: none; }
.lbt-gl__more:hover { text-decoration: underline; }
.lbt-gl__empty { padding: 40px 0; text-align: center; color: #8a8f98; }
.lbt-gl__empty[hidden] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .lbt-meters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lbt-plan__form { grid-template-columns: 1fr 1fr; }
    .lbt-plan__form > :first-child { grid-column: 1 / -1; max-width: 360px; }
}

@media (max-width: 900px) {
    .lbt-an__form,
    .lbt-an__cols,
    .lbt-quiz__res,
    .lbt-check,
    .lbt-cl__groups { grid-template-columns: minmax(0, 1fr); }
    .lbt-check > * { min-width: 0; }
    .lbt-check__side { border-left: 0; border-top: 1px solid var(--grey-15); border-radius: 0 0 24px 24px; }
    .lbt-check__sticky { position: static; }
    .lbt-gl__terms { grid-template-columns: 1fr; }
    .lbt-verdict { grid-template-columns: auto minmax(0, 1fr); }
    .lbt-verdict__stats { grid-column: 1 / -1; }
    .lbt-plan__form { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .lbt-an__res, .lbt-plan__res, .lbt-check__list, .lbt-check__side { padding: 22px 18px; }
    .lbt-quiz__form, .lbt-quiz__res-main, .lbt-quiz__res-side { padding: 26px 18px; }
    .lbt-quiz__opts { grid-template-columns: 1fr; }
    .lbt-meters, .lbt-plan__sum { grid-template-columns: 1fr; }
    .lbt-chart { height: 200px; gap: 4px; }
    .lbt-chart__val { font-size: 11px; }
    .lbt-cl__head { padding: 16px 18px; top: 60px; }
    .lbt-cl__btns { width: 100%; }
    .lbt-cl__btns .lb-btn { flex: 1; justify-content: center; padding: 16px 12px; white-space: nowrap; }
    .lbt-cl__groups { padding: 22px 18px; }
    .lbt-cl__done { margin: 18px 18px 0; flex-wrap: wrap; }
    .lbt-cl__done .lb-btn { margin-left: 0; width: 100%; justify-content: center; }
    .lbt-gl__bar { top: 60px; }
    .lbt-gl__letters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -15px; padding: 0 15px 2px; }
    .lbt-gl__letters::-webkit-scrollbar { display: none; }
    .lbt-gl__letter { flex-shrink: 0; }
    .lbt-gl__sec { grid-template-columns: 1fr; gap: 8px; }
    .lbt-gl__sec-letter { position: static; }
    .lbt-plan__table { overflow-x: auto; }
    .lbt-check__item { grid-template-columns: 24px minmax(0, 1fr); }
    .lbt-check__w { grid-column: 2; justify-self: start; }
}

/* ---------- Print (checklist / donor report) ---------- */
@media print {
    header, footer, .header, .footer, .lb-hero, .lb-section:not(#tool), .faq, .how, nav.lb-toc-wrap,
    .lbt-cl__btns, .lbt-check__btns, .lbt-check__cta, .lbt-cl__done .lb-btn { display: none !important; }
    .lbt, .lbt-cl__head { box-shadow: none; border: 0; position: static; }
    .lbt-cl__groups { grid-template-columns: 1fr 1fr; padding: 0; gap: 16px; }
    .lbt-check__item { break-inside: avoid; padding: 8px 10px; }
    .lbt-check__link { display: none; }
}
