/* ==========================================================
   1LAB – Trang chủ
   ========================================================== */
:root {
    --lb-orange: #ff7a1a;
    --lb-orange-2: #ff5a00;
    --lb-dark: #0f0f10;
    --lb-dark-2: #18181b;
    --lb-text: #16161a;
    --lb-muted: #6b6b76;
    --lb-line: #ececf0;
    --lb-bg: #ffffff;
    --lb-soft: #f7f7f9;
    --lb-radius: 14px;
    --lb-shadow: 0 6px 22px rgba(20, 20, 30, .07);
    --lb-max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--lb-text);
    background: var(--lb-bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

.lb-container { width: 100%; max-width: var(--lb-max); margin: 0 auto; padding: 0 20px; }
.lb-accent { color: var(--lb-orange); }

/* Show / hide by device */
.lb-only-m { display: none !important; }

/* ---------- Buttons ---------- */
.lb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 22px; border-radius: 10px; border: 1.5px solid transparent;
    font-weight: 600; font-size: 14px; white-space: nowrap; transition: .2s;
}
.lb-btn i { font-size: 17px; }
.lb-btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }
.lb-btn--block { width: 100%; }
.lb-btn--primary { background: linear-gradient(180deg, #ff8a2b, var(--lb-orange-2)); color: #fff; box-shadow: 0 6px 16px rgba(255, 106, 0, .3); }
.lb-btn--primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.lb-btn--ghost { border-color: rgba(255, 255, 255, .85); color: #fff; background: rgba(0, 0, 0, .15); }
.lb-btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.lb-btn--outline { border-color: #d9d9e0; background: #fff; color: var(--lb-text); }
.lb-btn--outline:hover { border-color: var(--lb-orange); color: var(--lb-orange); }
.lb-btn--light { background: #fff; color: var(--lb-text); }

.lb-icon-btn {
    width: 38px; height: 38px; display: inline-grid; place-items: center;
    border: 0; background: transparent; color: #fff; font-size: 22px; border-radius: 50%;
}
.lb-icon-btn--ring { border: 1px solid #34343a; font-size: 18px; }

/* ---------- Logo ---------- */
.lb-logo { display: inline-flex; align-items: center; line-height: 0; flex: none; }
.lb-logo img { height: 29px; width: auto; display: block; }
.lb-logo__one {
    background: linear-gradient(180deg, #fff 0 52%, var(--lb-orange) 52% 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; margin-right: 1px;
}

/* ---------- Header ---------- */
.lb-header { position: sticky; top: 0; z-index: 50; background: var(--lb-dark); border-bottom: 1px solid #1f1f23; }
.lb-header__inner { display: flex; align-items: center; gap: 22px; height: 62px; max-width: 1200px; }
.lb-nav { display: flex; gap: 4px; margin-left: 30px; }
.lb-nav a {
    color: #d8d8de; font-size: 13.5px; font-weight: 500; padding: 8px 14px; border-radius: 8px;
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.lb-nav a i { font-size: 14px; }
.lb-nav a:hover { color: #fff; }
.lb-nav a.is-active { color: var(--lb-orange); background: rgba(255, 122, 26, .12); }
.lb-search { position: relative; margin-left: auto; width: 230px; }
.lb-search input {
    width: 100%; height: 36px; border-radius: 999px; border: 1px solid #2c2c31; background: #1a1a1d;
    color: #fff; padding: 0 36px 0 16px; font: inherit; font-size: 12.5px; outline: none;
}
.lb-search input:focus { border-color: var(--lb-orange); }
.lb-search i { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: #bbb; }
.lb-header__actions { display: flex; align-items: center; gap: 14px; }
.lb-drawer { display: none; }

/* ---------- Hero ---------- */
.lb-hero {
    position: relative; overflow: hidden; color: #fff; min-height: 300px;
    background: #121212;
}
.lb-hero__slide { display: none; position: relative; min-height: inherit; }
.lb-hero__slide.is-active { display: block; animation: lbFade .5s ease; }
@keyframes lbFade { from { opacity: .3; } to { opacity: 1; } }
.lb-hero__media {
    position: absolute; inset: 0 0 0 auto; width: 58%;
    background: var(--hero-img) center / cover no-repeat;
}
.lb-hero__media::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, #121212 0%, rgba(18, 18, 18, .7) 22%, rgba(18, 18, 18, 0) 60%);
}
.lb-hero__inner { position: relative; z-index: 1; padding-top: 34px; padding-bottom: 46px; }
.lb-hero__content { max-width: 470px; }
.lb-hero__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .3px; color: #e9e9ee; margin-bottom: 10px; }
.lb-hero__title { font-size: 33px; line-height: 1.2; font-weight: 800; letter-spacing: -.5px; }
.lb-hero__desc { margin-top: 14px; font-size: 13.5px; line-height: 1.6; color: #d4d4da; max-width: 380px; }
.lb-hero__cta { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.lb-hero__platforms { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.lb-chip {
    display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; font-weight: 500;
}
.lb-chip i { font-size: 16px; }
.lb-chip .is-android, .lb-os .ph-android-logo { color: #3ddc84; }
.lb-hero__arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center;
    background: rgba(255, 255, 255, .14); color: #fff; font-size: 16px; backdrop-filter: blur(6px);
}
.lb-hero__arrow:hover { background: rgba(255, 255, 255, .26); }
.lb-hero__arrow.is-prev { left: 26px; }
.lb-hero__arrow.is-next { right: 26px; }
.lb-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.lb-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .85); cursor: pointer; }
.lb-dots span.is-active { background: var(--lb-orange); }

/* ---------- Body ---------- */
.lb-body { background: #fff; position: relative; padding-bottom: 28px; }

/* Categories */
.lb-cats--d {
    display: grid; grid-template-columns: repeat(var(--cols, 8), 1fr); gap: 6px; margin-top: 14px;
}
.lb-cat {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    min-height: 72px; padding: 12px 6px; border-radius: 10px; background: #fff; border: 1px solid var(--lb-line);
    box-shadow: 0 2px 10px rgba(20, 20, 30, .05); text-align: center; font-size: 12.5px; color: #2a2a30; transition: .2s;
}
.lb-cat > i { font-size: 24px; color: #1d1d22; }
.lb-cat:hover { border-color: var(--lb-orange); transform: translateY(-2px); }
.lb-cat:hover > i { color: var(--lb-orange); }
.lb-cat.is-hot > i { color: var(--lb-orange); }
.lb-cat__arrow { font-size: 12px; vertical-align: -1px; }

/* Section */
.lb-section { margin-top: 26px; }
.lb-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lb-title {
    font-size: 22px; font-weight: 700; letter-spacing: -.3px; padding-left: 14px; position: relative; line-height: 1.2;
}
.lb-title::before {
    content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 4px; background: var(--lb-orange);
}
.lb-title--sm { font-size: 20px; }
.lb-more { color: var(--lb-orange); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.lb-more:hover { text-decoration: underline; }

/* Project cards */
.lb-projects { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.lb-card {
    background: #fff; border: 1px solid var(--lb-line); border-radius: 12px; overflow: hidden;
    box-shadow: var(--lb-shadow); transition: .2s; display: flex; flex-direction: column;
}
.lb-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20, 20, 30, .12); }
.lb-card__media { position: relative; aspect-ratio: 2.45 / 1; overflow: hidden; background: #222; }
.lb-card__media img { width: 100%; height: 100%; object-fit: cover; }
.lb-tag {
    position: absolute; left: 8px; bottom: 8px; font-size: 10.5px; font-weight: 600; color: #fff;
    padding: 3px 9px; border-radius: 999px;
}
.lb-tag--orange { background: var(--lb-orange); }
.lb-tag--purple { background: #7c4dff; }
.lb-tag--green { background: #22b14c; }
.lb-tag--red { background: #ff4d1f; }
.lb-tag--blue { background: #2f7bff; }
.lb-empty { color: var(--lb-muted); font-size: 13px; }
.lb-card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lb-card__title { font-size: 14px; font-weight: 600; line-height: 1.35; flex: 1; }
.lb-meta { display: flex; gap: 14px; color: var(--lb-muted); font-size: 11.5px; flex-wrap: wrap; }
.lb-meta span { display: inline-flex; align-items: center; gap: 4px; }
.lb-meta i { font-size: 14px; }

/* Split rows */
.lb-split { display: grid; grid-template-columns: 1.95fr 1fr; gap: 20px; align-items: stretch; }

/* Tools */
.lb-tools {
    position: relative; display: grid; grid-template-columns: 1fr 1.05fr; border-radius: var(--lb-radius); overflow: hidden;
    background: linear-gradient(100deg, #fff 0%, #fff 45%, #fff4ea 62%, #ffd7b5 100%);
    border: 1px solid var(--lb-line); box-shadow: var(--lb-shadow);
}
.lb-tools__content { padding: 22px 0 22px 28px; position: relative; z-index: 1; }
.lb-tools__desc { margin-top: 6px; font-size: 12.5px; color: var(--lb-muted); }
.lb-checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; font-size: 12.5px; color: #33333a; }
.lb-checks li { display: flex; align-items: center; gap: 8px; }
.lb-checks i { color: var(--lb-orange); font-size: 17px; }
.lb-tools__actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.lb-os { display: flex; gap: 6px; }
.lb-os > * {
    width: 34px; height: 34px; display: grid; place-items: center; font-size: 18px; color: #111;
}
.lb-os__txt { font-weight: 700; font-size: 14px !important; }
.lb-tools__art { display: flex; align-items: center; justify-content: flex-end; }
.lb-tools__art img { width: 100%; height: 100%; object-fit: cover; object-position: left center; mix-blend-mode: multiply; }

/* Community */
.lb-community {
    border: 1px solid var(--lb-line); border-radius: var(--lb-radius); box-shadow: var(--lb-shadow);
    padding: 22px; display: flex; flex-direction: column; gap: 18px; background: #fff;
}
.lb-community__head { display: flex; justify-content: space-between; gap: 12px; }
.lb-community__head p { font-size: 11.5px; color: var(--lb-muted); margin-top: 6px; line-height: 1.5; }
.lb-avatars img { height: 26px; width: auto; border-radius: 999px; }
.lb-stats { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); text-align: center; }
.lb-stats > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 6px; }
.lb-stats > div + div { border-left: 1px solid var(--lb-line); }
.lb-stats i { font-size: 26px; color: var(--lb-orange); margin-bottom: 4px; }
.lb-stats b { font-size: 17px; font-weight: 700; }
.lb-stats span { font-size: 11px; color: var(--lb-muted); }

/* News */
.lb-split--news { grid-template-columns: 1.95fr 1fr; }
.lb-news { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.lb-news__main {
    display: grid; grid-template-columns: 1fr 1fr; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--lb-line); box-shadow: var(--lb-shadow); background: #fff;
}
.lb-news__main img { width: 100%; height: 100%; object-fit: cover; min-height: 150px; }
.lb-news__main-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.lb-news__main h3 { font-size: 15px; line-height: 1.4; font-weight: 700; flex: 1; }
.lb-pill {
    align-self: flex-start; background: var(--lb-orange); color: #fff; font-size: 10.5px; font-weight: 600;
    padding: 3px 10px; border-radius: 999px;
}
.lb-news__list { display: flex; flex-direction: column; gap: 10px; }
.lb-news__item { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: center; }
.lb-news__item img { width: 80px; height: 46px; border-radius: 6px; object-fit: cover; }
.lb-news__item h4 { font-size: 12px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.lb-news__item:hover h4, .lb-news__main:hover h3, .lb-card:hover .lb-card__title { color: var(--lb-orange); }
.lb-news__item .lb-meta { font-size: 10.5px; gap: 12px; }

/* CTA */
.lb-cta {
    position: relative; overflow: hidden; border-radius: var(--lb-radius); color: #fff; padding: 26px 22px;
    background: radial-gradient(120% 140% at 0% 0%, #3b2a6b 0%, #241a44 45%, #15111f 100%);
    display: flex; flex-direction: column; gap: 12px; justify-content: center; min-height: 168px;
}
.lb-cta > *:not(.lb-cta__art) { position: relative; z-index: 1; }
.lb-cta__art {
    position: absolute; right: 0; top: 0; height: 100%; width: auto; object-fit: cover;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%); mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
}
.lb-cta h2 { font-size: 20px; font-weight: 700; }
.lb-cta p { font-size: 11.5px; color: #d6d2e6; max-width: 62%; line-height: 1.55; }
.lb-cta .lb-btn { align-self: flex-start; }

/* ---------- Footer ---------- */
.lb-footer { background: var(--lb-dark); color: #c9c9d0; padding: 30px 0 36px; }
.lb-footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1.6fr; gap: 26px; }
.lb-footer__brand p { font-size: 12.5px; margin-top: 12px; line-height: 1.55; max-width: 240px; }
.lb-social { display: flex; gap: 14px; margin-top: 16px; }
.lb-social a { font-size: 22px; color: #fff; }
.lb-social a:hover { color: var(--lb-orange); }
.lb-footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.lb-footer__col { display: flex; flex-direction: column; gap: 8px; }
.lb-footer__col a { font-size: 12.5px; }
.lb-footer__col a:hover { color: var(--lb-orange); }
.lb-subscribe { display: flex; border-radius: 8px; overflow: hidden; background: #1d1d21; border: 1px solid #2c2c31; }
.lb-subscribe input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: 0 14px; height: 40px; font: inherit; font-size: 12.5px; outline: none; }
.lb-subscribe button { width: 42px; border: 0; background: var(--lb-orange); color: #fff; font-size: 18px; }
.lb-footer__news p { font-size: 11.5px; margin-top: 10px; }
.lb-footer__news h4 { display: flex; align-items: center; gap: 10px; }
.lb-footer__bottom {
    display: none; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 18px; font-size: 12px; color: #a9a9b2;
}
.lb-footer__bottom nav { display: flex; }
.lb-footer__bottom nav a { padding: 0 12px; }
.lb-footer__bottom nav a + a { border-left: 1px solid #3a3a40; }
.lb-footer__bottom nav a:last-child { padding-right: 0; }

.lb-tabbar { display: none; }

/* ==========================================================
   Tablet
   ========================================================== */
@media (max-width: 1100px) {
    .lb-nav { margin-left: 8px; }
    .lb-nav a { padding: 8px 9px; }
    .lb-search { width: 180px; }
    .lb-projects { grid-template-columns: repeat(5, minmax(200px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
    .lb-card { scroll-snap-align: start; }
    .lb-cats--d { grid-template-columns: repeat(4, 1fr); }
    .lb-split, .lb-split--news { grid-template-columns: 1fr; }
    .lb-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ==========================================================
   Mobile
   ========================================================== */
@media (max-width: 900px) {
    .lb-only-d { display: none !important; }
    .lb-only-m { display: revert !important; }
    .lb-icon-btn.lb-only-m { display: inline-grid !important; }
    .lb-cats.lb-only-m { display: grid !important; }

    .lb-container { padding: 0 16px; }
    .lb-header__inner { height: 58px; justify-content: space-between; gap: 8px; }
    .lb-header .lb-logo { position: absolute; left: 50%; transform: translateX(-50%); }
    .lb-header .lb-logo img { height: 26px; }
    .lb-header__actions { gap: 6px; }
    .lb-drawer:not([hidden]) {
        display: flex; flex-direction: column; gap: 2px; padding: 8px 16px 16px; background: var(--lb-dark);
        border-top: 1px solid #222;
    }
    .lb-drawer a { color: #e6e6ea; padding: 12px 4px; border-bottom: 1px solid #1f1f23; font-weight: 500; }
    .lb-drawer .lb-btn { margin-top: 12px; border: 0; color: #fff; }

    .lb-hero { min-height: 0; }
    .lb-hero__media { width: 70%; background-image: var(--hero-img-m); background-position: 38% center; }
    .lb-hero__media::before { background: linear-gradient(90deg, #121212 0%, rgba(18, 18, 18, .75) 30%, rgba(18, 18, 18, 0) 75%); }
    .lb-hero__inner { padding-top: 26px; padding-bottom: 64px; }
    .lb-hero__content { max-width: none; }
    .lb-hero__eyebrow { font-size: 11px; }
    .lb-hero__title { max-width: 78%; }
    .lb-hero__desc { max-width: 66%; }
    .lb-hero__title { font-size: 24px; }
    .lb-hero__desc { font-size: 12.5px; }
    .lb-hero__cta { gap: 10px; flex-wrap: nowrap; }
    .lb-hero__cta .lb-btn { height: 40px; padding: 0 14px; font-size: 13px; }
    .lb-dots { bottom: 38px; }

    .lb-body {
        margin-top: -24px; border-radius: 22px 22px 0 0; padding-top: 16px;
    }
    .lb-cats--m { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .lb-cats--m .lb-cat { height: 78px; min-height: 0; padding: 8px 4px; gap: 6px; font-size: 11.5px; line-height: 1.2; border-radius: 12px; justify-content: flex-start; padding-top: 14px; }
    .lb-cats--m .lb-cat > i { font-size: 26px; }

    .lb-section { margin-top: 22px; }
    .lb-title { font-size: 20px; }
    .lb-projects {
        display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory;
        margin: 0 -16px; padding: 0 16px 8px; scroll-padding-left: 16px; scrollbar-width: none;
    }
    .lb-projects::-webkit-scrollbar { display: none; }
    .lb-card { flex: 0 0 44%; scroll-snap-align: start; }
    .lb-card__title { font-size: 13px; }
    .lb-card__media { aspect-ratio: 1.95 / 1; }
    .lb-card .lb-meta { gap: 10px; flex-wrap: nowrap; }
    .lb-card .lb-meta span:nth-child(3) { display: none; }

    .lb-tools { grid-template-columns: 1fr 1fr; background: linear-gradient(100deg, #fff 0 40%, #fff2e6 55%, #ffb979 100%); }
    .lb-tools__content { padding: 18px 0 18px 16px; }
    .lb-tools__art img { object-fit: contain; object-position: right center; }
    .lb-tools__desc { font-size: 12.5px; color: #34343a; line-height: 1.5; }
    .lb-tools__actions { margin-top: 14px; }
    .lb-os.lb-only-m, .lb-os { display: flex !important; gap: 8px; }
    .lb-os > * { width: 40px; height: 40px; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }

    .lb-news { grid-template-columns: 1fr; }
    .lb-news__main { grid-template-columns: 0.95fr 1.25fr; }
    .lb-news__main img { min-height: 120px; }
    .lb-news__main h3 { font-size: 14px; }

    /* Footer mobile: logo + 2 cột link, ô nhận tin, dòng bản quyền */
    .lb-body { padding-bottom: 26px; }
    .lb-footer { padding: 24px 0 calc(84px + env(safe-area-inset-bottom)); margin-top: -1px; }
    .lb-footer__grid { grid-template-columns: 1.2fr 1.05fr 0.85fr; gap: 18px 10px; }
    .lb-footer__col a { font-size: 11px !important; line-height: 1.35; }
    .lb-footer__brand .lb-logo img { height: 26px; }
    .lb-footer__brand p { font-size: 11.5px; margin-top: 8px; }
    .lb-social { gap: 14px; margin-top: 14px; }
    .lb-social a { font-size: 21px; }
    .lb-footer h4 { font-size: 13px; margin-bottom: 8px; }
    .lb-footer__col { gap: 6px; }
    .lb-footer__col a { font-size: 11.5px; }
    .lb-footer__news { grid-column: 1 / -1; }
    .lb-footer__news h4 i { font-size: 20px; }
    .lb-subscribe input { height: 42px; }
    .lb-footer__bottom { display: flex !important; font-size: 10.5px; flex-wrap: nowrap; }
    .lb-footer__bottom nav a { padding: 0 7px; white-space: nowrap; }

    .lb-tabbar {
        display: grid !important; grid-template-columns: repeat(5, 1fr);
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff;
        border-top: 1px solid var(--lb-line); padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
        box-shadow: 0 -4px 18px rgba(0, 0, 0, .05);
    }
    .lb-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: #33333a; }
    .lb-tabbar i { font-size: 24px; }
    .lb-tabbar a.is-active { color: var(--lb-orange); }
}

@media (max-width: 420px) {
    .lb-hero__title { font-size: 22px; }
    .lb-hero__content { max-width: 70%; }
    .lb-tools { grid-template-columns: 1.1fr 1fr; }
}

/* Footer mobile – thân trang bo góc đè lên nền footer tối */
@media (max-width: 900px) {
    .lb-body { border-radius: 22px; z-index: 1; }
    .lb-footer { margin-top: -22px; padding-top: 44px; }
    .lb-footer__col.lb-only-m { display: flex !important; }
}

/* ==========================================================
   Lớp phủ: Tìm kiếm, Đăng nhập/Đăng ký, Menu cá nhân, Thông báo
   ========================================================== */
html.lb-lock, html.lb-lock body { overflow: hidden; }
.lb-av { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; background: #2a2a30; }
.lb-av--text { display: inline-grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, #ff8a2b, var(--lb-orange-2)); }
.lb-user { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; font-weight: 600; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid #34343a; transition: .2s; }
.lb-user:hover { border-color: var(--lb-orange); }
.lb-user .ph-caret-down { font-size: 12px; color: #aaa; }
.lb-user--m { padding: 0; }

.lb-overlay { position: fixed; inset: 0; z-index: 200; }
.lb-overlay[hidden] { display: none; }
.lb-overlay__bg { position: absolute; inset: 0; background: rgba(10, 10, 14, .55); opacity: 0; transition: opacity .2s; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.lb-overlay.is-open .lb-overlay__bg { opacity: 1; }
.lb-sheet { position: absolute; background: #fff; color: var(--lb-text); box-shadow: 0 24px 60px rgba(0, 0, 0, .28); transition: transform .22s ease, opacity .2s; opacity: 0; }
.lb-overlay.is-open .lb-sheet { opacity: 1; transform: none; }
.lb-sheet__grip { display: none; }
.lb-sheet__close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--lb-soft); color: var(--lb-muted); display: grid; place-items: center; font-size: 17px; }
.lb-sheet__close:hover { color: var(--lb-text); }
.lb-sheet__label { font-size: 11.5px; font-weight: 700; color: var(--lb-muted); text-transform: uppercase; letter-spacing: .6px; margin: 18px 0 10px; }

/* Tìm kiếm */
.lb-sheet--search { left: 50%; top: 0; width: min(640px, 100%); transform: translate(-50%, -16px); border-radius: 0 0 18px 18px; padding: 16px 18px 20px; }
.lb-overlay.is-open .lb-sheet--search { transform: translate(-50%, 0); }
.lb-ssearch { display: flex; align-items: center; gap: 10px; height: 48px; border-radius: 12px; background: var(--lb-soft); border: 1.5px solid var(--lb-line); padding: 0 6px 0 14px; }
.lb-ssearch:focus-within { border-color: var(--lb-orange); background: #fff; }
.lb-ssearch > i { color: var(--lb-muted); font-size: 19px; }
.lb-ssearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--lb-text); }
.lb-ssearch__x { border: 0; background: transparent; color: var(--lb-orange); font-weight: 600; font-size: 14px; padding: 8px 10px; }
.lb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-chips a { padding: 7px 14px; border-radius: 999px; background: var(--lb-soft); border: 1px solid var(--lb-line); font-size: 13px; font-weight: 500; }
.lb-chips a:hover { border-color: var(--lb-orange); color: var(--lb-orange); }
.lb-qlinks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lb-qlinks a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 12px; border: 1px solid var(--lb-line); font-size: 12.5px; font-weight: 600; }
.lb-qlinks i { font-size: 22px; color: var(--lb-orange); width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 122, 26, .1); display: grid; place-items: center; }
.lb-qlinks a:hover { border-color: var(--lb-orange); }

/* Đăng nhập / Đăng ký */
.lb-auth { left: 50%; top: 50%; width: min(420px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow: auto; transform: translate(-50%, -46%); border-radius: 20px; padding: 26px 26px 22px; }
.lb-overlay.is-open .lb-auth { transform: translate(-50%, -50%); }
.lb-auth__head { text-align: center; }
.lb-auth__head img { margin: 0 auto 12px; height: 24px; width: auto; }
.lb-auth__head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.lb-auth__head p { color: var(--lb-muted); font-size: 13px; margin-top: 6px; line-height: 1.5; }
.lb-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--lb-soft); border-radius: 12px; padding: 4px; margin: 18px 0 16px; }
.lb-auth__tabs button { border: 0; background: transparent; height: 38px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--lb-muted); }
.lb-auth__tabs button.is-on { background: #fff; color: var(--lb-text); box-shadow: 0 2px 8px rgba(20, 20, 30, .08); }
.lb-gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border-radius: 11px; border: 1.5px solid #dcdce3; background: #fff; font-weight: 600; font-size: 14px; transition: .2s; }
.lb-gbtn:hover { border-color: #b9b9c3; background: #fafafb; }
.lb-or { display: flex; align-items: center; gap: 12px; color: var(--lb-muted); font-size: 12px; margin: 16px 0 6px; }
.lb-or::before, .lb-or::after { content: ""; flex: 1; height: 1px; background: var(--lb-line); }
.lb-aform { display: grid; gap: 12px; }
.lb-aform[hidden] { display: none; }
.lb-aform__err { background: #fff1f0; color: #c62f22; border: 1px solid #ffd2cd; border-radius: 10px; padding: 9px 12px; font-size: 13px; line-height: 1.45; }
.lb-aform__err[hidden] { display: none; }
.lb-field { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; }
.lb-field input { width: 100%; height: 44px; border-radius: 10px; border: 1.5px solid #e1e1e7; background: #fff; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 400; color: var(--lb-text); outline: none; transition: border-color .2s; }
.lb-field input:focus { border-color: var(--lb-orange); box-shadow: 0 0 0 3px rgba(255, 122, 26, .14); }
.lb-pw { position: relative; display: block; }
.lb-pw input { padding-right: 44px; }
.lb-pw__eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; color: var(--lb-muted); font-size: 18px; display: grid; place-items: center; }
.lb-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #4a4a55; line-height: 1.4; }
.lb-check input { accent-color: var(--lb-orange); width: 16px; height: 16px; margin: 1px 0 0; flex: none; }
.lb-aform .lb-btn { height: 46px; margin-top: 4px; }
.lb-aform .lb-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.lb-aform__alt { text-align: center; font-size: 13px; color: var(--lb-muted); }
.lb-aform__alt button { border: 0; background: none; padding: 0; color: var(--lb-orange); font-weight: 700; font-size: 13px; }

/* Menu cá nhân (máy tính: thả xuống dưới nút) */
.lb-menu { top: var(--lb-menu-top, 64px); right: var(--lb-menu-right, 20px); width: 280px; border-radius: 16px; padding: 8px; transform: translateY(-8px); }
.lb-overlay--menu .lb-overlay__bg { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.lb-menu__me { display: flex; align-items: center; gap: 12px; padding: 12px 10px 14px; border-bottom: 1px solid var(--lb-line); margin-bottom: 6px; }
.lb-menu__me > div { min-width: 0; }
.lb-menu__me b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-menu__me b i { color: var(--lb-orange); font-size: 15px; vertical-align: -2px; }
.lb-menu__me small { display: block; color: var(--lb-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-menu__list a, .lb-menu__out button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px; border-radius: 10px; font-size: 14px; font-weight: 500; border: 0; background: none; color: inherit; text-align: left; }
.lb-menu__list a i, .lb-menu__out button i { font-size: 20px; color: var(--lb-muted); }
.lb-menu__list a:hover { background: var(--lb-soft); }
.lb-menu__list a:hover i { color: var(--lb-orange); }
.lb-menu__out { border-top: 1px solid var(--lb-line); margin-top: 6px; padding-top: 6px; }
.lb-menu__out button { color: #d23a2c; }
.lb-menu__out button i { color: #d23a2c; }
.lb-menu__out button:hover { background: #fff1f0; }

/* Thông báo */
.lb-toast { position: fixed; z-index: 210; left: 50%; top: 76px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); width: max-content;
    background: #16161a; color: #fff; border-radius: 12px; padding: 11px 10px 11px 14px; font-size: 13.5px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); animation: lbToastIn .3s ease; transition: opacity .35s, transform .35s; }
.lb-toast > i { color: #34c26b; font-size: 20px; flex: none; }
.lb-toast--err > i { color: #ff6b5b; }
.lb-toast button { border: 0; background: none; color: #9a9aa5; font-size: 15px; display: grid; place-items: center; padding: 4px; }
.lb-toast.is-out { opacity: 0; transform: translate(-50%, -10px); }
@keyframes lbToastIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 900px) {
    .lb-user--m .lb-av { width: 30px !important; height: 30px !important; box-shadow: 0 0 0 2px var(--lb-orange); }
    .lb-sheet--search { width: 100%; border-radius: 0 0 18px 18px; padding: 12px 14px 18px; }
    .lb-qlinks { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .lb-qlinks a { font-size: 11.5px; padding: 10px 2px; }
    /* Đăng nhập & menu: trượt lên từ cạnh dưới */
    .lb-auth, .lb-menu { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 92vh; overflow: auto; transform: translateY(40px);
        border-radius: 22px 22px 0 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); }
    .lb-overlay.is-open .lb-auth, .lb-overlay.is-open .lb-menu { transform: none; }
    .lb-overlay--menu .lb-overlay__bg { background: rgba(10, 10, 14, .55); }
    .lb-sheet__grip { display: block; width: 40px; height: 4px; border-radius: 4px; background: #dcdce3; margin: 0 auto 10px; }
    .lb-auth .lb-sheet__close { top: 14px; right: 14px; }
    .lb-auth__head { padding-top: 6px; }
    .lb-field input { font-size: 16px; }
    .lb-menu__list a, .lb-menu__out button { padding: 13px 10px; font-size: 15px; }
    .lb-toast { top: 66px; }
}
