@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800;900&display=swap");

:root {
    --lms-bg: #080e1c;
    --lms-bg-2: #0b1220;
    --lms-panel: rgba(15, 23, 42, 0.82);
    --lms-line: rgba(200, 170, 110, 0.24);
    --lms-line-strong: rgba(200, 170, 110, 0.48);
    --lms-teal: #0ac8b9;
    --lms-blue: #0050d8;
    --lms-gold: #c8aa6e;
    --lms-gold-soft: #f0e6d2;
    --lms-text: #f0e6d2;
    --lms-dim: rgba(240, 230, 210, 0.68);
    --lms-faint: rgba(240, 230, 210, 0.42);
    --lms-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    --lms-font: "Be Vietnam Pro", Arial, sans-serif;
}

body.mainbg {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--lms-text);
    background: var(--lms-bg);
    font-family: var(--lms-font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.mainbg::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background:
        radial-gradient(44% 36% at 18% 12%, rgba(200, 170, 110, 0.14), transparent 62%),
        radial-gradient(46% 40% at 86% 82%, rgba(10, 200, 185, 0.12), transparent 60%),
        linear-gradient(180deg, #0f172a 0%, #080e1c 76%);
}

body.mainbg::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2748%27%20height%3D%2784%27%20viewBox%3D%270%200%2048%2084%27%3E%3Cpath%20fill%3D%27%23c8aa6e%27%20fill-opacity%3D%270.055%27%20d%3D%27M24%204l20%2011.5v23L24%2050%204%2038.5v-23L24%204zm0%204.6L8%2017.8v18.4l16%209.2%2016-9.2V17.8L24%208.6zM24%2054l20%2011.5v3.8L24%2057.8%204%2069.3v-3.8L24%2054z%27%2F%3E%3C%2Fsvg%3E");
    opacity: 0.9;
}

#particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    left: var(--left);
    bottom: -20px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff7c2;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.9);
    opacity: 0;
    animation: lmsParticle var(--duration) linear infinite;
    animation-delay: var(--delay);
}

@keyframes lmsParticle {
    0% { opacity: 0; transform: translateY(0) scale(0.65); }
    15%, 76% { opacity: 0.55; }
    100% { opacity: 0; transform: translateY(-112vh) scale(1.2); }
}

.lms-maint-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid rgba(200, 170, 110, 0.16);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(14px);
}

.lms-maint-header-inner {
    width: min(calc(100% - 36px), 1160px);
    min-height: 72px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.lms-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.lms-brand-logo {
    width: auto;
    height: 54px;
    max-width: min(320px, 60vw);
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(10, 200, 185, 0.22));
}

.lms-brand-text {
    display: none;
}

.lms-maint-nav {
    display: flex;
    align-items: center;
}

.lms-maint-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    overflow: hidden;
    border: 1px solid rgba(200, 170, 110, 0.45);
    border-radius: 999px;
    color: #2a1d04;
    background: linear-gradient(180deg, #ffd24a, #f0a800);
    box-shadow: 0 8px 22px rgba(250, 189, 3, 0.28);
    font-size: 0.9rem;
    font-weight: 900;
    white-space: nowrap;
}

.lms-maint-nav a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 48%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.58), transparent);
    transform: skewX(-22deg);
    transition: left 0.6s ease;
}

.lms-maint-nav a:hover::before {
    left: 130%;
}

.container.main-container {
    width: min(calc(100% - 34px), 980px);
    margin-inline: auto;
    padding: 44px 0 46px;
}

.hero {
    position: relative;
    width: 100%;
    isolation: isolate;
    padding: 34px 42px 40px;
    border: 1px solid rgba(26, 42, 68, 0.92);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 4%, rgba(10, 200, 185, 0.12), transparent 230px),
        radial-gradient(circle at 88% 12%, rgba(200, 170, 110, 0.12), transparent 280px),
        linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(8, 14, 28, 0.98));
    box-shadow: var(--lms-shadow);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -1px;
    border: 2px solid transparent;
    border-radius: 18px;
    pointer-events: none;
    background: linear-gradient(90deg, var(--lms-teal), var(--lms-gold-soft), var(--lms-gold), var(--lms-teal)) border-box;
    background-size: 300% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    filter: drop-shadow(0 0 7px rgba(10, 200, 185, 0.6));
    animation: lmsBorder 4.2s linear infinite;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(120deg, transparent 0 34%, rgba(255, 255, 255, 0.05) 34.2% 34.5%, transparent 35% 100%),
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: auto, 74px 74px, 74px 74px;
    opacity: 0.92;
}

@keyframes lmsBorder {
    to { background-position: 300% 0; }
}

.text-center {
    text-align: center;
}

.lms-hero-visual {
    width: fit-content;
    margin: 0 auto 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 8px 8px;
    border: 1px solid rgba(200, 170, 110, 0.26);
    border-radius: 999px;
    background: rgba(2, 8, 18, 0.58);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lms-hero-emblem {
    position: relative;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(240, 230, 210, 0.2);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.24), transparent 32%),
        linear-gradient(145deg, rgba(10, 200, 185, 0.18), rgba(200, 170, 110, 0.15));
    box-shadow: 0 0 0 7px rgba(10, 200, 185, 0.08), 0 18px 38px rgba(0, 0, 0, 0.3);
}

.lms-hero-emblem::after {
    content: "";
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(10, 200, 185, 0.28);
    border-radius: inherit;
    animation: lmsEmblemGlow 2.8s ease-in-out infinite;
}

@keyframes lmsEmblemGlow {
    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

.lms-hero-emblem img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.lms-hero-status {
    min-width: 0;
    display: grid;
    gap: 1px;
    padding-right: 4px;
    text-align: left;
}

.lms-hero-status small {
    color: #7dd3fc;
    font-size: 0.74rem;
    font-weight: 850;
}

.lms-hero-status strong {
    color: var(--lms-gold-soft);
    font-size: 0.9rem;
    font-weight: 950;
    white-space: nowrap;
}

.lms-kicker {
    width: fit-content;
    margin: 0 auto 16px;
    padding: 8px 16px;
    border: 1px solid rgba(10, 200, 185, 0.32);
    border-radius: 999px;
    color: #7dd3fc;
    background: rgba(10, 200, 185, 0.1);
    font-size: 0.84rem;
    font-weight: 900;
}

.hero h1 {
    margin: 0 0 22px;
    color: transparent;
    background: linear-gradient(100deg, #ffffff 0%, var(--lms-gold-soft) 58%, var(--lms-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 2.85rem;
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.alert.alert-warning {
    width: min(100%, 780px);
    margin: 0 auto;
    padding: 17px 20px;
    border: 1px solid rgba(255, 200, 61, 0.36);
    border-radius: 8px;
    color: #ffe9b0;
    background:
        linear-gradient(135deg, rgba(255, 200, 61, 0.16), rgba(10, 200, 185, 0.06)),
        rgba(3, 7, 16, 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 34px rgba(0, 0, 0, 0.22);
    font-size: 0.94rem;
    font-weight: 650;
}

.alert.alert-warning strong,
.alert.alert-warning span,
.alert.alert-warning .alert-body {
    display: block;
}

.alert.alert-warning strong {
    margin-bottom: 4px;
    color: #ffd700;
    font-size: 1.02rem;
    font-weight: 900;
}

.alert.alert-warning .alert-body p,
.alert.alert-warning .alert-body ul,
.alert.alert-warning .alert-body ol {
    margin: 0 0 8px;
}

.alert.alert-warning .alert-body p:last-child,
.alert.alert-warning .alert-body ul:last-child,
.alert.alert-warning .alert-body ol:last-child {
    margin-bottom: 0;
}

.about-seo .rich-text p,
.about-seo .rich-text ul,
.about-seo .rich-text ol {
    margin-top: 0;
}

.contact-hint {
    margin: 28px auto 0;
    width: fit-content;
    padding: 5px 12px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 999px;
    color: #dff7ff;
    background: rgba(10, 200, 185, 0.09);
    font-size: 0.95rem;
    font-weight: 900;
    animation: lmsHint 1.8s ease-in-out infinite;
}

@keyframes lmsHint {
    50% { transform: translateY(-5px); }
}

.floating-contact {
    width: min(100%, 840px);
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    padding: 10px;
    border: 1px solid rgba(125, 211, 252, 0.15);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
        rgba(2, 8, 18, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.zalo-btn,
.messenger-btn,
.phone-btn {
    position: relative;
    width: 100%;
    min-height: 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 16px 34px rgba(0, 0, 0, 0.38);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    animation: lmsPulse 2s infinite;
}

.zalo-btn {
    background:
        radial-gradient(circle at 26% 16%, rgba(255, 255, 255, 0.22), transparent 26%),
        linear-gradient(180deg, #38a7ff 0%, #0d6df2 58%, #0352d5 100%);
}

.messenger-btn {
    background:
        radial-gradient(circle at 26% 16%, rgba(255, 255, 255, 0.2), transparent 26%),
        linear-gradient(180deg, #39b4ff 0%, #187cf6 55%, #075bd8 100%);
}

.phone-btn {
    background:
        radial-gradient(circle at 26% 16%, rgba(255, 255, 255, 0.2), transparent 26%),
        linear-gradient(180deg, #23c991 0%, #0b9b6b 58%, #087456 100%);
}

.zalo-btn::after,
.messenger-btn::after,
.phone-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -65%;
    width: 52%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.zalo-btn:hover,
.messenger-btn:hover,
.phone-btn:hover {
    transform: translateY(-3px);
    filter: saturate(1.08);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.56);
}

.zalo-btn:hover::after,
.messenger-btn:hover::after,
.phone-btn:hover::after {
    left: 120%;
}

@keyframes lmsPulse {
    0% { box-shadow: 0 0 0 0 rgba(125, 211, 252, 0.28), 0 16px 34px rgba(0, 0, 0, 0.38); }
    70% { box-shadow: 0 0 0 14px rgba(125, 211, 252, 0), 0 16px 34px rgba(0, 0, 0, 0.38); }
    100% { box-shadow: 0 0 0 0 rgba(125, 211, 252, 0), 0 16px 34px rgba(0, 0, 0, 0.38); }
}

.btn-main-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.01rem;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.btn-sub-line {
    padding-left: 34px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.72rem;
    font-weight: 650;
    white-space: nowrap;
}

.online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 0 7px rgba(74, 222, 128, 0.9);
    animation: lmsBlink 1.8s ease-in-out infinite;
}

@keyframes lmsBlink {
    50% { opacity: 0.55; }
}

.btn-logo,
.lms-mini-logo,
.lms-ic {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.16);
}

.btn-logo-image {
    width: 30px;
    height: 30px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 8px 18px rgba(0, 0, 0, 0.16);
}

.btn-logo-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.lms-icon-image {
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.22);
}

.lms-icon-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.lms-phone-mark {
    background: rgba(15, 159, 116, 0.84);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.lms-official {
    width: min(100%, 760px);
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 16px;
    border: 1px solid rgba(16, 185, 129, 0.34);
    border-radius: 8px;
    color: var(--lms-gold-soft);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(200, 170, 110, 0.08));
}

.lms-official-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.42);
    font-size: 0.78rem;
    font-weight: 900;
}

.lms-official-text {
    max-width: 610px;
    color: var(--lms-gold-soft);
    font-size: 0.78rem;
    font-weight: 650;
}

.about-seo,
.seo-faq {
    width: 100%;
    margin: 26px auto 0;
    padding: 22px 24px;
    border: 1px solid rgba(200, 170, 110, 0.18);
    border-radius: 8px;
    color: var(--lms-dim);
    text-align: left;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: none;
}

.about-seo h2,
.seo-faq h2 {
    margin: 0 0 12px;
    color: var(--lms-gold-soft);
    font-size: 1.24rem;
    line-height: 1.28;
    font-weight: 850;
    letter-spacing: 0;
}

.about-seo h3 {
    margin: 18px 0 8px;
    color: var(--lms-gold-soft);
    font-size: 1rem;
    font-weight: 850;
}

.about-seo p,
.about-seo .rich-text,
.seo-faq p {
    margin: 0 0 12px;
    color: var(--lms-dim);
    font-size: 0.9rem;
    line-height: 1.76;
}

.gold-note {
    display: block;
    margin: 16px 0;
    padding: 14px 15px;
    border: 1px solid rgba(255, 215, 0, 0.28);
    border-radius: 12px;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.08);
    font-size: 0.9rem;
    line-height: 1.7;
}

.seo-faq {
    display: grid;
    gap: 0;
}

.seo-faq .faq-item {
    padding: 13px 0;
    border: 0;
    border-top: 1px solid rgba(200, 170, 110, 0.14);
    border-radius: 0;
    background: transparent;
}

.seo-faq .faq-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.seo-faq .faq-q {
    margin: 0 0 6px;
    color: var(--lms-text);
    font-size: 0.94rem;
    font-weight: 850;
}

.seo-faq .faq-a {
    margin: 0;
}

.about-seo .rich-text table,
.seo-faq .rich-text table {
    width: 100%;
    margin: 12px 0;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 8px;
}

.about-seo .rich-text td,
.about-seo .rich-text th,
.seo-faq .rich-text td,
.seo-faq .rich-text th {
    padding: 9px 10px;
    border: 1px solid rgba(200, 170, 110, 0.18);
}

.about-seo .rich-text blockquote,
.seo-faq .rich-text blockquote {
    margin: 12px 0;
    padding: 10px 14px;
    border-left: 3px solid rgba(10, 200, 185, 0.56);
    color: #e6f8ff;
    background: rgba(10, 200, 185, 0.08);
}

.about-seo .rich-text img,
.seo-faq .rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.about-seo .rich-text hr,
.seo-faq .rich-text hr {
    margin: 14px 0;
    border: 0;
    border-top: 1px solid rgba(200, 170, 110, 0.22);
}

.lms-chat-zone {
    width: 100%;
    margin: 28px auto 0;
    padding: 22px;
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: 8px;
    background:
        radial-gradient(circle at 12% 0%, rgba(10, 200, 185, 0.11), transparent 260px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.018));
    text-align: left;
}

.lms-chat-heading {
    width: min(100%, 720px);
    margin: 0 0 16px;
}

.lms-chat-heading .lms-kicker {
    margin: 0 0 10px;
}

.lms-chat-heading h2 {
    margin: 0 0 8px;
    color: var(--lms-gold-soft);
    font-size: 1.32rem;
    line-height: 1.25;
}

.lms-chat-heading .rich-text {
    margin: 0;
    color: var(--lms-dim);
    font-size: 0.9rem;
}

.lms-public-chat.chat-card {
    min-height: 560px;
    grid-template-rows: auto auto auto auto minmax(260px, 44vh) auto;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 0%, rgba(10, 200, 185, 0.12), transparent 18rem),
        radial-gradient(circle at 100% 0%, rgba(200, 170, 110, 0.1), transparent 20rem),
        rgba(5, 10, 23, 0.7);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

.lms-public-chat.chat-card::before {
    display: none;
}

.lms-public-chat .chat-header,
.lms-public-chat .chat-input-area {
    border-color: rgba(125, 211, 252, 0.14);
    background: rgba(2, 8, 18, 0.56);
}

.lms-public-chat .chat-title {
    min-width: 0;
}

.lms-public-chat .chat-title strong {
    color: var(--lms-gold-soft);
}

.lms-public-chat .chat-title p {
    color: var(--lms-dim);
}

.lms-chat-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid rgba(125, 211, 252, 0.32);
    border-radius: 8px;
    color: #dff7ff;
    background:
        linear-gradient(135deg, rgba(10, 200, 185, 0.28), rgba(0, 80, 216, 0.22)),
        rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    font-weight: 950;
}

.lms-public-chat .online-count {
    color: #bbf7d0;
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.26);
}

.lms-public-chat .exit-chat-btn {
    border-radius: 8px;
}

.lms-public-chat .chat-notice,
.lms-public-chat .chat-pinned-message,
.lms-public-chat .admin-tools {
    border-radius: 8px;
}

.lms-public-chat .chat-notice p {
    margin: 0;
}

.lms-public-chat .chat-messages {
    min-height: 260px;
}

.lms-public-chat .message {
    max-width: min(82%, 560px);
}

.lms-public-chat .message-bubble {
    border-radius: 8px 8px 8px 2px;
    color: var(--lms-gold-soft);
    background: rgba(255, 255, 255, 0.06);
}

.lms-public-chat .message.is-me .message-bubble {
    border-radius: 8px 8px 2px 8px;
    color: #e7fbff;
    background: linear-gradient(135deg, rgba(10, 200, 185, 0.25), rgba(0, 80, 216, 0.22));
}

.lms-public-chat .message.is-admin .message-bubble {
    color: #fff7d6;
    background: rgba(200, 170, 110, 0.14);
}

.lms-public-chat .chat-input-area textarea,
.lms-public-chat .join-form input {
    border-radius: 8px;
    color: var(--lms-text);
    background: rgba(1, 5, 14, 0.62);
}

.lms-public-chat .send-btn,
.lms-public-chat .btn-primary {
    border-radius: 8px;
    background: linear-gradient(135deg, #0ac8b9, #0050d8);
}

.lms-public-chat .name-overlay {
    background: rgba(3, 7, 16, 0.82);
}

.lms-public-chat .join-form {
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
        rgba(10, 15, 32, 0.94);
}

.lms-dock {
    position: fixed;
    right: 14px;
    bottom: 16px;
    z-index: 70;
}

.lms-contact {
    position: relative;
}

.lms-contact-options {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.lms-contact.lms-open .lms-contact-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lms-opt {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 0;
    padding: 9px 16px 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(180deg, #2b8bff, #0050d8);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    font-size: 0.84rem;
    font-weight: 850;
    white-space: nowrap;
}

.lms-opt:nth-child(2) {
    background: linear-gradient(180deg, #38a3ff, #0062d6);
}

.lms-contact-toggle {
    position: relative;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(180deg, #2b8bff, #0050d8);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.lms-contact-toggle .lms-ic {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 34px;
    height: 34px;
}

.lms-contact-toggle .lms-zalo-mark {
    animation: lmsCycleA 4.5s ease-in-out infinite;
}

.lms-contact-toggle .lms-mess-mark {
    animation: lmsCycleB 4.5s ease-in-out infinite;
}

@keyframes lmsCycleA {
    0%, 42%, 100% { opacity: 1; }
    54%, 96% { opacity: 0; }
}

@keyframes lmsCycleB {
    0%, 42%, 100% { opacity: 0; }
    54%, 96% { opacity: 1; }
}

.lms-contact-close {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(8, 14, 28, 0.66);
    font-size: 1.25rem;
    font-weight: 900;
}

.lms-contact.lms-open .lms-ic {
    opacity: 0 !important;
    animation: none;
}

.lms-contact.lms-open .lms-contact-close {
    opacity: 1;
}

.lms-footer {
    width: min(calc(100% - 34px), 980px);
    margin: 0 auto 28px;
    padding: 10px;
    border: 1px solid rgba(200, 170, 110, 0.13);
    border-radius: 8px;
    background: rgba(2, 8, 18, 0.5);
}

.lms-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    color: var(--lms-faint);
    text-align: center;
    font-size: 0.86rem;
}

.lms-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lms-footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
}

.lms-footer-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.lms-footer-text,
.lms-footer-text p {
    display: inline;
    margin: 0;
}

.lms-footer strong {
    color: var(--lms-text);
}

@media (max-width: 768px) {
    .lms-maint-header-inner {
        width: min(calc(100% - 24px), 1160px);
        min-height: 62px;
    }

    .lms-brand-logo {
        height: 40px;
        max-width: 220px;
    }

    .lms-maint-nav a {
        min-height: 36px;
        padding: 0 12px;
        font-size: 0.76rem;
    }

    .container.main-container {
        width: min(calc(100% - 28px), 900px);
        padding: 28px 0 36px;
    }

    .hero {
        padding: 30px 18px 28px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .alert.alert-warning {
        padding: 13px 14px;
        font-size: 0.88rem;
    }

    .floating-contact {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 8px;
    }

    .zalo-btn,
    .messenger-btn,
    .phone-btn {
        width: 100%;
        min-height: 70px;
    }

    .about-seo,
    .seo-faq,
    .lms-chat-zone {
        padding: 18px 16px;
    }

    .lms-public-chat.chat-card {
        min-height: 0;
        grid-template-rows: auto auto auto auto minmax(180px, 34vh) auto;
    }

    .lms-public-chat .chat-messages {
        min-height: 180px;
    }

    .lms-public-chat .chat-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .lms-public-chat .chat-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .lms-public-chat .join-row,
    .lms-public-chat .chat-input-area {
        grid-template-columns: 1fr;
    }

    .lms-footer-inner {
        justify-content: center;
    }

    .lms-dock {
        display: none;
    }
}

@media (max-width: 430px) {
    .lms-maint-nav {
        display: none;
    }

    .lms-brand-logo {
        max-width: 250px;
    }

    .hero h1 {
        font-size: 1.72rem;
    }

    .lms-official {
        justify-content: flex-start;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
