/* ============================================================
   HÒA NGỮ ĐƯỜNG — root.css
   Tổ chức theo thứ tự:
   1.  CSS Variables & Reset
   2.  Typography & Global
   3.  Topbar
   4.  Header & Brand
   5.  Navigation Menu & Submenu
   6.  Header Actions (Search, Hotline, Lang, Auth)
   7.  Buttons
   8.  Auth Modal
   9.  User Avatar & Dropdown
   10. Footer
   11. Responsive — Tablet (≤1199px)
   12. Responsive — Mobile Large (≤900px)
   13. Responsive — Mobile Small (≤560px)
   14. Animations
   ============================================================ */


/* ============================================================
   1. CSS VARIABLES & RESET
   ============================================================ */
:root {
    --red:   #8b0f1f;
    --deep:  #3b0710;
    --gold:  #d7aa45;
    --cream: #fff8e9;
    --ink:   #251015;
    /* Màu nhấn bổ sung */
    --red-mid:     #c21d34;   /* gradient stop thứ 2 */
    --red-dark:    #7a0019;   /* đậm hơn --red */
    --red-light:   #b1182b;   /* dùng trong text heading */
    --gold-dark:   #d9b843;   /* gold đậm */
    --gold-light:  #ffd870;   /* gold sáng, dùng cho text nền tối */
    --gold-pale:   #fff3d1;   /* vàng nhạt, background nhẹ */
    --cream-deep:  #fff8e9;   /* nền kem */
    --text-dark:   #3b0710;   /* text đỏ đậm (= --deep) */
    --text-body:   #5b3a3e;   /* text nội dung chính */
    --text-muted:  #666;      /* text phụ */
    --border-gold: rgba(217, 184, 67, .35); /* border vàng nhạt */
    --shadow-red:  rgba(59, 7, 16, .10);    /* shadow đỏ nhạt */

    /* Mindmap node colors — dễ chỉnh sửa */
    --mm-root:    #1a73e8;   /* node gốc: xanh dương */
    --mm-pink:    #e94870;   /* Đào tạo cá nhân B2C */
    --mm-purple:  #9b59b6;   /* Đào tạo doanh nghiệp B2B */
    --mm-green:   #27ae60;   /* Đối tác trường học */
    --mm-orange:  #e67e22;   /* Nhượng quyền */
    --mm-teal:    #16a085;   /* Tầm nhìn / sub-items */
    --mm-sub1:    #56b7ad;   /* Sub khóa 1 */
    --mm-sub2:    #e94870;   /* Sub khóa 2 */
    --mm-sub3:    #e74c3c;   /* Sub khóa 3 */
}

* {
    box-sizing: border-box;
}


/* ============================================================
   2. TYPOGRAPHY & GLOBAL
   ============================================================ */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Be Vietnam Pro", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff8ec, #fff);
}

a {
    text-decoration: none;
    color: inherit;
}


/* ============================================================
   3. TOPBAR
   ============================================================ */
.topbar {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(90deg, var(--deep), var(--red));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    font-size: 13px;
    letter-spacing: .1px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar i {
    margin-right: 6px;
}

.topbar b {
    color: #ffd870;
}

.topbar a:hover {
    color: #ffd870;
}

/*!* Lang switch trong topbar (màu trắng cho nền tối) *!*/
/*.topbar .lang-switch {*/
/*    background: rgba(255, 255, 255, .15);*/
/*    border: 1px solid rgba(255, 255, 255, .28);*/
/*}*/

/*.topbar .lang-switch button {*/
/*    color: #fff;*/
/*}*/

/*.topbar .lang-switch button.active {*/
/*    background: rgba(255, 255, 255, .9);*/
/*    color: var(--red);*/
/*}*/


/* ============================================================
   4. HEADER & BRAND
   ============================================================ */
.header {
    position: fixed;
    z-index: 29;
    top: 50px;
    left: 0;
    right: 0;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    background: rgba(255, 248, 233, .92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(215, 170, 69, .28);
    box-shadow: 0 16px 45px rgba(59, 7, 16, .08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--red);
}

.seal {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, var(--gold), #a91b2e);
    color: #fff;
    font-family: "Noto Serif SC";
    box-shadow: 0 10px 25px rgba(139, 15, 31, .25);
    font-size: 22px;
}

.brand-text strong {
    display: block;
    font-family: "Noto Serif SC";
    font-size: 28px;
    color: var(--red);
    letter-spacing: 3px;
    line-height: 1;
}

.brand-text span {
    display: block;
    font-size: 11px;
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 5px;
}


/* ============================================================
   5. NAVIGATION MENU & SUBMENU
   ============================================================ */
.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu > li {
    position: relative;
}

.menu > li > a {
    display: flex;
    align-items: center;
    height: 82px;
    padding: 0 13px;
    font-size: 14px;
    font-weight: 700;
    color: var(--deep);
    transition: .25s;
}

.menu > li > a:hover {
    color: var(--red);
}

.menu > li.has-sub > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    margin-left: 6px;
    color: var(--gold);
}

/* Submenu */
.submenu {
    position: absolute;
    top: 82px;
    left: 0;
    min-width: 245px;
    background: #fff;
    border-radius: 0 0 18px 18px;
    border: 1px solid rgba(215, 170, 69, .25);
    box-shadow: 0 24px 55px rgba(59, 7, 16, .14);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: .28s;
}

.menu > li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.submenu a {
    display: block;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #563136;
}

.submenu a:hover {
    background: #fff3dc;
    color: var(--red);
}


/* ============================================================
   6. HEADER ACTIONS (Search, Hotline, Lang Switch, Auth)
   ============================================================ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search icon */
.search {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid rgba(139, 15, 31, .18);
    color: var(--red);
}

/* Hotline button */
.hotline-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), #c51d35);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 15px 30px rgba(139, 15, 31, .28);
    transition: .35s;
}

.hotline-btn:hover {
    transform: translateY(-3px);
}

/* Lang switch trong header */
.lang-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 8px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid rgba(139, 15, 31, .18);
    border-radius: 999px;
    padding: 4px;
}

.lang-switch button {
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 8px 10px;
    font-weight: 800;
    color: var(--red);
    cursor: pointer;
    font-size: 12px;
}

.lang-switch button.active {
    background: linear-gradient(135deg, var(--red), #c51d35);
    color: #fff;
}

/* Auth button (icon) */
.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(139, 15, 31, .18);
    color: var(--red);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
}

.auth-btn.primary {
    background: linear-gradient(135deg, var(--red), #c51d35);
    color: #fff;
    border: 0;
}

/* Account icon button */
#accountBtn {
    width: 42px;
    padding: 0;
    border-radius: 50%;
    font-size: 18px;
}

/* Mobile menu toggle */
.menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(139, 15, 31, .18);
    color: var(--red);
    background: #fff;
    box-shadow: none;
}


/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), #c51d35);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 15px 30px rgba(139, 15, 31, .28);
    transition: .35s;
    border: 0;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid rgba(139, 15, 31, .25);
    background: #fff;
    color: var(--red);
    box-shadow: none;
}


/* ============================================================
   8. AUTH MODAL
   ============================================================ */
.auth-modal {
    position: fixed;
    z-index: 999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(59, 7, 16, .68);
    backdrop-filter: blur(10px);
    padding: 20px;
}

.auth-modal.show {
    display: flex;
}

.auth-box {
    width: min(460px, 100%);
    background: #fff8e9;
    border: 1px solid rgba(215, 170, 69, .45);
    border-radius: 28px;
    box-shadow: 0 35px 90px rgba(0, 0, 0, .35);
    overflow: hidden;
    animation: authRise .35s ease both;
}

.auth-head {
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--deep), var(--red));
    color: #fff;
    position: relative;
}

.auth-head h3 {
    margin: 0;
    font-size: 26px;
    color: #ffd870;
}

.auth-close {
    position: absolute;
    right: 18px;
    top: 16px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 18px 24px 0;
}

.auth-tabs button {
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(139, 15, 31, .18);
    background: #fff;
    color: var(--red);
    font-weight: 800;
    cursor: pointer;
}

.auth-tabs button.active {
    background: linear-gradient(135deg, var(--red), #c51d35);
    color: #fff;
}

.auth-form {
    padding: 22px 24px 28px;
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form input {
    width: 100%;
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(139, 15, 31, .16);
    padding: 0 15px;
    margin-bottom: 12px;
    background: #fff;
}

.auth-form .btn {
    width: 100%;
    margin-top: 6px;
}

.auth-note {
    font-size: 12px;
    color: #6a4b4f;
    line-height: 1.6;
    text-align: center;
    margin-top: 12px;
}


/* ============================================================
   9. USER AVATAR & DROPDOWN
   ============================================================ */
.user-avatar-mini {
    width: 41px;
    height: 41px;
    object-fit: cover;
    border: 1px solid rgba(139, 15, 31, .56);
    display: block;
}

.auth-btn-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(139, 15, 31, .18);
    cursor: pointer;
    padding: 0;
    transition: all .2s ease;
}

.auth-btn-avatar:hover {
    border-color: var(--red);
    background-color: rgba(139, 15, 31, .02);
}

.dropdown-menu .dropdown-item:hover {
    background-color: rgba(139, 15, 31, .05);
    color: var(--red) !important;
}

/* Legacy user chip (ẩn, giữ lại cho tương thích) */
.user-chip {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(215, 170, 69, .35);
    color: var(--red);
    font-weight: 800;
    font-size: 13px;
}

.user-chip.show {
    display: flex;
}


/* ============================================================
   10. FOOTER
   ============================================================ */
.hnd-footer {
    position: relative;
    overflow: hidden;
    background: #d9b843;
    color: #2c1900;
    padding: 80px 4% 0;
    margin-top: 0;
}

.hnd-footer::before {
    content: "和语堂";
    position: absolute;
    right: -2%;
    top: 10%;
    font-family: "Noto Serif SC";
    font-size: 15vw;
    color: rgba(44, 25, 0, .08);
    letter-spacing: .1em;
}

.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1fr 1.1fr;
    gap: 34px;
    padding-bottom: 48px;
}

/* Footer brand block */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.footer-logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, var(--red), var(--deep));
    color: #ffd870;
    font-family: "Noto Serif SC";
    font-size: 28px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .25);
}

.footer-title {
    font-family: "Noto Serif SC";
    font-size: 32px;
    color: #7a0019;
    letter-spacing: 3px;
    font-weight: 800;
    line-height: 1;
}

.footer-slogan {
    font-size: 11px;
    color: #5b3510;
    letter-spacing: 1.4px;
    font-weight: 800;
}

.hnd-footer p {
    color: #2c1900;
    line-height: 1.55;
}

/* Footer columns */
.footer-col h3 {
    color: #7a0019;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    color: #2c1900;
    font-size: 14px;
    margin-bottom: 9px;
}

.footer-col a:hover {
    color: var(--red);
}

.footer-contact div {
    color: #2c1900;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.55;
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .38);
    border: 1px solid rgba(122, 0, 25, .22);
    color: #7a0019;
    font-weight: 800;
}

/* Newsletter box */
.footer-newsletter {
    background: rgba(255, 255, 255, .42);
    border: 1px solid rgba(122, 0, 25, .22);
    border-radius: 24px;
    padding: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(44, 25, 0, .12);
}

.footer-newsletter h3 {
    margin-top: 0;
}

.footer-newsletter input {
    width: 100%;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(122, 0, 25, .16);
    padding: 0 16px;
    margin: 10px 0 12px;
    font-family: inherit;
    background: #fffdf4;
    color: #2c1900;
}

.footer-newsletter .btn {
    width: 100%;
    background: linear-gradient(135deg, #7a0019, var(--red));
    color: #fff;
    box-shadow: none;
}

/* Footer bottom bar */
.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(122, 0, 25, .18);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    color: #2c1900;
    font-size: 13px;
}

/* Trust badges */
.footer-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dmca-badge,
.trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, .42);
    border: 1px solid rgba(122, 0, 25, .22);
    border-radius: 999px;
    color: #7a0019;
    font-weight: 800;
    line-height: 1;
}

.dmca-badge img {
    height: 26px;
    width: auto;
    display: block;
}

.trust-badge .trust-icon {
    font-size: 15px;
}

/* ============================================================
   REGISTRATION MODAL
   ============================================================ */
.reg-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(59,7,16,.55);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s;
}
.reg-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.reg-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    transform: translateY(28px) scale(.97);
    transition: transform .28s;
    position: relative;
}
.reg-modal-overlay.open .reg-modal {
    transform: translateY(0) scale(1);
}
.reg-modal-head {
    background: linear-gradient(120deg, var(--deep), var(--red));
    color: #fff;
    padding: 28px 28px 22px;
    border-radius: 20px 20px 0 0;
    position: relative;
}
.reg-modal-head .eyebrow {
    width: 70%;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold-light);
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}
.reg-modal-head h3 {
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 4px;
}
.reg-modal-head p {
    font-size: 13px;
    opacity: .8;
    margin: 0;
}
.reg-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 34px; height: 34px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.reg-modal-close:hover { background: rgba(255,255,255,.28); }
.reg-modal-body {
    padding: 28px;
}
.reg-form-group {
    margin-bottom: 16px;
}
.reg-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--deep);
    margin-bottom: 6px;
}
.reg-form-group input,
.reg-form-group select,
.reg-form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border-gold);
    border-radius: 10px;
    font-size: 14px;
    color: var(--ink);
    background: var(--cream-deep);
    transition: border-color .2s;
    font-family: inherit;
}
.reg-form-group input:focus,
.reg-form-group select:focus,
.reg-form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    background: #fff;
}
.reg-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.btn-reg-submit {
    width: 100%;
    background: linear-gradient(90deg, var(--red), var(--red-mid));
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    padding: 14px;
    border-radius: 28px;
    border: none;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity .2s, transform .2s;
    letter-spacing: .3px;
}
.btn-reg-submit:hover { opacity: .88; transform: translateY(-1px); }
.reg-success-msg {
    text-align: center;
    padding: 20px 0 8px;
    display: none;
}
.reg-success-msg .success-icon {
    font-size: 48px;
    color: #27ae60;
    margin-bottom: 12px;
    display: block;
}
.reg-success-msg h4 { color: var(--deep); font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.reg-success-msg p { color: var(--text-muted); font-size: 14px; }
.reg-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.reg-note i { color: var(--gold); }


/* ============================================================
   11. RESPONSIVE — TABLET (≤ 1199px)
   ============================================================ */
@media (max-width: 1199.98px) {
    /* Ẩn menu ngang, chỉ hiện khi toggle */
    .menu {
        display: none;
    }

    .menu.navbar-collapse.show,
    .menu.navbar-collapse.collapsing {
        display: flex;
        position: absolute;
        left: 4%;
        right: 4%;
        top: 72px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100vh - 125px);
        overflow-y: auto;
        padding: 10px 0;
        background: rgba(255, 248, 233, .98);
        border: 1px solid rgba(215, 170, 69, .28);
        border-radius: 0 0 18px 18px;
        box-shadow: 0 22px 50px rgba(59, 7, 16, .14);
    }

    .menu > li > a {
        height: auto;
        padding: 14px 18px;
    }

    /* Submenu dạng accordion */
    .submenu {
        position: static;
        min-width: 100%;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-radius: 14px;
        box-shadow: none;
        margin: 0 14px 10px;
    }

    .menu > li:hover .submenu {
        display: none;
    }

    .menu > li.open .submenu {
        display: block;
    }

    /* Ẩn icon search trên tablet */
    .header-actions .search {
        display: none;
    }
}


/* ============================================================
   12. RESPONSIVE — MOBILE LARGE (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
    /* Topbar: stack thành 2 hàng, giữ lang switch */
    .topbar {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 6px;
    }

    .topbar-left {
        flex-wrap: wrap;
        gap: 6px 14px;
        flex: 1 1 auto;
    }

    /* Giữ topbar-right nhưng chỉ hiện lang switch, ẩn đồng hồ & link tư vấn */
    .topbar-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .topbar-right > span,   /* Giờ hoạt động */
    .topbar-right > a {     /* Link đăng ký tư vấn */
        display: none;
    }

    .menu.navbar-collapse.show,
    .menu.navbar-collapse.collapsing {
        left: 4%;
        right: 4%;
    }

    /* Ẩn tagline brand */
    .brand-text span, .brand-text strong  {
        display: none;
    }

    /* Thu nhỏ hotline */
    .hotline-btn {
        padding: 9px 14px;
        font-size: 13px;
    }

    /* Footer: 2 cột */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* ============================================================
   13. RESPONSIVE — MOBILE SMALL (≤ 560px)
   ============================================================ */
@media (max-width: 560px) {

    .topbar-left > span:last-child { /* Ẩn email, giữ hotline */
        display: none;
    }

    /* Header */

    /* Brand nhỏ hơn */
    .seal {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .brand-text strong {
        font-size: 22px;
    }

    /* Ẩn hotline (đã có trong topbar) */
    .hotline-btn {
        display: none;
    }

    /* Ẩn icon search */
    .header-actions .search {
        display: none;
    }

    /* Lang switch compact */
    .lang-switch button {
        padding: 7px 8px;
    }

    /* Footer: 1 cột */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hnd-footer {
        padding-top: 48px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-badges {
        gap: 8px;
    }

    /* Auth modal full-screen on tiny screens */
    .auth-box {
        border-radius: 20px;
    }
}


/* ============================================================
   14. ANIMATIONS
   ============================================================ */
@keyframes authRise {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.96);
    }
    to {
        opacity: 1;
        transform: none;
    }
}