:root {
    color-scheme: dark;
    --bg: #070b18;
    --bg-2: #0e1630;
    --surface: rgba(18, 28, 52, 0.82);
    --surface-solid: #121c34;
    --surface-soft: rgba(25, 38, 68, 0.66);
    --surface-bright: rgba(44, 61, 103, 0.64);
    --glass: rgba(12, 18, 36, 0.72);
    --border: rgba(185, 203, 255, 0.16);
    --border-strong: rgba(185, 203, 255, 0.28);
    --text: #fffaf0;
    --text-soft: #d9e2f3;
    --muted: #96a6c3;
    --primary: #4f8cff;
    --primary-2: #7c5cff;
    --primary-hover: #73a6ff;
    --violet: #a78bfa;
    --amber: #f6b73c;
    --danger: #fb7185;
    --emerald: #36d399;
    --primary-soft: rgba(79, 140, 255, 0.15);
    --violet-soft: rgba(167, 139, 250, 0.14);
    --amber-soft: rgba(246, 183, 60, 0.13);
    --danger-soft: rgba(251, 113, 133, 0.12);
    --emerald-soft: rgba(54, 211, 153, 0.13);
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
    --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.28);
    --container: 1220px;
    --transition: 220ms cubic-bezier(.2,.8,.2,1);
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 8%, rgba(79, 140, 255, 0.22), transparent 28rem),
        radial-gradient(circle at 82% 14%, rgba(167, 139, 250, 0.18), transparent 26rem),
        radial-gradient(circle at 72% 88%, rgba(54, 211, 153, 0.08), transparent 26rem),
        linear-gradient(135deg, #070b18 0%, #0b1024 42%, #11152a 100%);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

body::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.82), rgba(0,0,0,.16) 78%, transparent);
}

body::after {
    z-index: -1;
    background:
        radial-gradient(900px 340px at 50% -10%, rgba(79, 140, 255, 0.14), transparent 72%),
        linear-gradient(115deg, transparent 0 32%, rgba(255,255,255,.035) 32.2% 32.4%, transparent 32.7% 100%);
}

img,
svg {
    display: block;
    max-width: 100%;
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid rgba(115, 166, 255, 0.86);
    outline-offset: 3px;
}

.header-inner,
.page-shell,
.site-footer {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(185, 203, 255, 0.12);
    background: linear-gradient(180deg, rgba(7, 11, 24, 0.88), rgba(7, 11, 24, 0.64));
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    position: relative;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(185, 203, 255, 0.18);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(79, 140, 255, 0.2), rgba(167, 139, 250, 0.12));
    box-shadow: 0 18px 36px rgba(79, 140, 255, 0.12);
}

.brand-mark::after {
    content: "";
    position: absolute;
    right: -2px;
    top: -2px;
    width: 13px;
    height: 13px;
    border: 3px solid #0b1024;
    border-radius: 50%;
    background: var(--amber);
}

.brand-mark.small {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.brand-mark.small::after {
    display: none;
}

.brand-mark img {
    width: 34px;
    height: 34px;
}

.brand-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.brand-copy strong {
    max-width: 44vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-copy small,
.status-badge,
.eyebrow,
.status-label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.status-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid rgba(79, 140, 255, 0.26);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.14), rgba(167, 139, 250, 0.1));
    color: #dbeafe;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.status-badge svg {
    width: 18px;
    height: 18px;
    color: var(--primary-hover);
}

.page-shell {
    display: grid;
    gap: 72px;
    padding: 34px 0 112px;
}

.setup-warning,
.success-message,
.error-message {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-weight: 650;
}

.setup-warning,
.error-message {
    border-color: rgba(251, 113, 133, 0.34);
    background: var(--danger-soft);
    color: #fecdd3;
}

.success-message {
    border-color: rgba(54, 211, 153, 0.34);
    background: var(--emerald-soft);
    color: #bbf7d0;
}

.hero-alert {
    position: relative;
    isolation: isolate;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(360px, 1fr);
    gap: 26px;
    align-items: stretch;
    padding: clamp(26px, 4vw, 46px);
    border: 1px solid rgba(185, 203, 255, 0.16);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
        radial-gradient(circle at 18% 0%, rgba(79, 140, 255, 0.22), transparent 30rem),
        rgba(14, 22, 48, 0.78);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-alert::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(115deg, transparent 0 58%, rgba(167, 139, 250, 0.12) 58.3% 58.6%, transparent 58.9% 100%),
        radial-gradient(circle at 75% 18%, rgba(246, 183, 60, 0.1), transparent 18rem);
}

.hero-copy {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 18px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.signal-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid rgba(246, 183, 60, 0.3);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(246, 183, 60, 0.1);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 5px rgba(246, 183, 60, 0.12);
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0;
    color: var(--text);
    font-size: 3.5rem;
    line-height: 1.04;
    letter-spacing: 0;
}

.hero-copy h1 span {
    background: linear-gradient(100deg, #fffaf0 0 68%, #9dbdff 88%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy h1::after {
    content: "";
    display: block;
    width: 88px;
    height: 5px;
    margin-top: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--violet), var(--amber));
}

.hero-lead,
.hero-guidance,
.section-heading p,
.status-module-copy p,
.insight-card p,
.warning-card p,
.chat-title p,
.site-footer p,
.rich-text {
    color: var(--text-soft);
}

.hero-lead {
    max-width: 670px;
    margin: 0;
    font-size: 1.06rem;
}

.hero-guidance {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
}

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

.contact-card {
    position: relative;
    min-width: 0;
    min-height: 118px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
        rgba(19, 30, 58, 0.72);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.contact-card::before {
    content: "";
    position: absolute;
    inset: auto 12px 0 12px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    opacity: 0.72;
}

.contact-zalo::before {
    background: #4f8cff;
}

.contact-messenger::before {
    background: #7c5cff;
}

.contact-phone::before {
    background: #36d399;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(185, 203, 255, 0.32);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.contact-icon,
.info-icon,
.join-icon,
.mini-icon,
.chat-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: #dbeafe;
    background: rgba(79, 140, 255, 0.15);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 17px;
}

.contact-icon svg {
    width: 25px;
    height: 25px;
}

.contact-zalo .contact-icon {
    color: #bfdbfe;
    background: rgba(79, 140, 255, 0.18);
}

.contact-messenger .contact-icon {
    color: #ddd6fe;
    background: rgba(124, 92, 255, 0.18);
}

.contact-phone .contact-icon {
    color: #bbf7d0;
    background: rgba(54, 211, 153, 0.16);
}

.contact-copy {
    min-width: 0;
}

.contact-card strong,
.contact-card small {
    display: block;
    min-width: 0;
}

.contact-card strong {
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.22;
    font-weight: 760;
}

.contact-card small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.contact-phone small {
    white-space: nowrap;
}

.arrow {
    color: rgba(255, 250, 240, 0.7);
    font-size: 1.25rem;
}

.status-module {
    position: relative;
    display: grid;
    align-content: center;
    gap: 18px;
    padding: 26px;
    border: 1px solid rgba(185, 203, 255, 0.18);
    border-radius: 30px;
    background:
        radial-gradient(circle at 20% 8%, rgba(79, 140, 255, 0.25), transparent 16rem),
        radial-gradient(circle at 95% 10%, rgba(167, 139, 250, 0.18), transparent 16rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255,255,255,.025)),
        rgba(9, 15, 31, 0.8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 22px 60px rgba(0,0,0,.28);
    overflow: hidden;
}

.status-module::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.06);
    pointer-events: none;
}

.status-orbit {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 190px;
    color: #c7d2fe;
}

.status-orbit::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: conic-gradient(from 30deg, rgba(79, 140, 255, .22), rgba(167,139,250,.08), rgba(246,183,60,.18), rgba(79,140,255,.22));
    filter: blur(4px);
    opacity: .8;
}

.status-orbit svg {
    position: relative;
    z-index: 1;
    width: 166px;
    height: 166px;
    stroke-width: 1.6;
}

.status-module-copy {
    display: grid;
    gap: 7px;
}

.status-module-copy strong {
    color: var(--text);
    font-size: 1.28rem;
    line-height: 1.25;
}

.status-module-copy p {
    margin: 0;
}

.status-track {
    display: grid;
    grid-template-columns: 1fr 1.5fr 0.8fr;
    gap: 8px;
}

.status-track span {
    height: 8px;
    border-radius: 999px;
    background: rgba(185, 203, 255, 0.12);
    overflow: hidden;
}

.status-track span:nth-child(1) {
    background: linear-gradient(90deg, var(--emerald), rgba(54,211,153,.2));
}

.status-track span:nth-child(2) {
    background: linear-gradient(90deg, var(--amber), rgba(246,183,60,.22));
}

.status-track span:nth-child(3) {
    background: linear-gradient(90deg, var(--primary), rgba(79,140,255,.22));
}

.status-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.status-facts div {
    padding: 12px;
    border: 1px solid rgba(185, 203, 255, 0.12);
    border-radius: 16px;
    background: rgba(255,255,255,.04);
}

.status-facts dt {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 650;
}

.status-facts dd {
    margin: 2px 0 0;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 700;
}

.security-notes {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.security-notes li {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 10px;
}

.security-notes li span {
    width: 8px;
    height: 8px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--emerald);
}

.section-heading {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}

.section-heading-wide {
    grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.6fr);
    align-items: end;
    column-gap: 32px;
}

.section-heading-wide .eyebrow {
    grid-column: 1 / -1;
}

.section-heading h2,
.admin-card h2,
.login-card h1 {
    margin: 0;
    color: var(--text);
    font-size: 2.35rem;
    line-height: 1.13;
    letter-spacing: 0;
    font-weight: 800;
}

.section-heading p {
    margin: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b7c7ef;
    letter-spacing: 0;
}

.info-panel {
    position: relative;
}

.info-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(330px, 1.1fr);
    gap: 18px;
}

.intro-statement,
.insight-card,
.warning-card,
.support-steps article,
.faq-panel,
.chat-card,
.admin-card,
.login-card {
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.intro-statement {
    position: relative;
    min-height: 320px;
    display: grid;
    align-content: end;
    gap: 18px;
    padding: 28px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 20% 12%, rgba(79, 140, 255, 0.2), transparent 18rem),
        linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
        rgba(18, 28, 52, 0.78);
    overflow: hidden;
}

.intro-statement::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -40px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(185, 203, 255, 0.1);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167,139,250,.18), transparent 62%);
}

.section-number {
    width: fit-content;
    padding: 7px 11px;
    border: 1px solid rgba(79, 140, 255, 0.28);
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(79, 140, 255, 0.12);
    font-weight: 800;
}

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

.insight-card,
.warning-card {
    min-width: 0;
    padding: 22px;
    border-radius: 24px;
    background: rgba(18, 28, 52, 0.68);
}

.insight-card:nth-child(2) {
    transform: translateY(24px);
    background: linear-gradient(145deg, rgba(167,139,250,.12), rgba(255,255,255,.035)), rgba(18, 28, 52, 0.7);
}

.warning-card {
    grid-column: 1 / -1;
    margin-top: 24px;
    border-color: rgba(246, 183, 60, 0.28);
    background: linear-gradient(145deg, rgba(246,183,60,.14), rgba(251,113,133,.06)), rgba(18, 28, 52, 0.72);
}

.info-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #bfdbfe;
    font-weight: 900;
}

.warning-card .info-icon {
    color: #fde68a;
    background: rgba(246, 183, 60, 0.16);
}

.insight-card h3,
.warning-card h3 {
    margin: 14px 0 8px;
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.25;
}

.insight-card p,
.warning-card p,
.rich-text {
    margin: 0;
}

.support-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.support-steps article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.045);
}

.support-steps span {
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #dbeafe;
    background: linear-gradient(135deg, rgba(79,140,255,.25), rgba(167,139,250,.18));
    font-weight: 850;
}

.support-steps strong {
    color: var(--text);
    font-weight: 760;
}

.support-steps small {
    color: var(--muted);
}

.faq-panel {
    padding: clamp(20px, 3vw, 30px);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
        rgba(11, 17, 35, 0.72);
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-item {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
    overflow: hidden;
    transition: background var(--transition), transform var(--transition);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.055);
}

.faq-question {
    width: 100%;
    min-height: 66px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
}

.faq-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #bfdbfe;
    background: rgba(79, 140, 255, 0.12);
    font-weight: 800;
    font-size: 0.86rem;
}

.faq-title-text {
    font-weight: 730;
}

.faq-icon {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(185, 203, 255, 0.08);
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    top: 14px;
    height: 2px;
    border-radius: 2px;
    background: #bfdbfe;
    transition: transform var(--transition);
}

.faq-icon::after {
    transform: rotate(90deg);
}

.faq-item.is-open {
    background: linear-gradient(145deg, rgba(79,140,255,.1), rgba(255,255,255,.04));
}

.faq-item.is-open .faq-icon::after {
    transform: rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 240ms ease;
}

.faq-answer p {
    margin: 0 18px 18px 78px;
    padding: 16px 18px;
    border-left: 2px solid rgba(79, 140, 255, 0.38);
    border-radius: 0 16px 16px 0;
    color: var(--text-soft);
    background: rgba(7, 11, 24, 0.28);
}

.chat-section-heading {
    max-width: 760px;
}

.group-chat-section {
    scroll-margin-top: 104px;
}

.chat-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto auto auto minmax(330px, 54vh) auto;
    min-height: 650px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 18% 0%, rgba(79,140,255,.15), transparent 20rem),
        linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.018)),
        rgba(10, 15, 32, 0.78);
}

.chat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(79,140,255,.12), transparent 20%, transparent 80%, rgba(167,139,250,.1));
}

.chat-header {
    position: relative;
    z-index: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(185, 203, 255, 0.13);
    background: rgba(11, 17, 35, 0.55);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.chat-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    color: #bfdbfe;
}

.chat-icon svg {
    width: 24px;
    height: 24px;
}

.chat-title strong {
    display: block;
    color: var(--text);
    font-size: 1.05rem;
}

.chat-title p {
    margin: 1px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.online-count,
.status-ok,
.status-bad {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 750;
}

.online-count {
    padding: 8px 11px;
    color: #bbf7d0;
    background: var(--emerald-soft);
    border: 1px solid rgba(54, 211, 153, 0.24);
}

.exit-chat-btn,
.btn-primary,
.tiny-btn,
.send-btn {
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 740;
    white-space: nowrap;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.exit-chat-btn,
.tiny-btn {
    min-height: 38px;
    padding: 7px 12px;
    color: var(--text-soft);
    background: rgba(185, 203, 255, 0.08);
    border-color: rgba(185, 203, 255, 0.13);
}

.exit-chat-btn:hover,
.tiny-btn:hover {
    color: var(--text);
    border-color: rgba(185, 203, 255, 0.28);
    background: rgba(185, 203, 255, 0.13);
}

.chat-notice,
.admin-tools {
    position: relative;
    z-index: 1;
    margin: 14px 16px 0;
    border-radius: 18px;
    padding: 12px 14px;
}

.chat-notice {
    grid-row: 2;
}

.chat-notice {
    color: #fde68a;
    background: rgba(246, 183, 60, 0.1);
    border: 1px solid rgba(246, 183, 60, 0.2);
}

.chat-pinned-message {
    position: relative;
    z-index: 1;
    grid-row: 3;
    margin: 12px 16px 0;
    padding: 12px 14px;
    border: 1px solid rgba(246, 183, 60, 0.28);
    border-radius: 18px;
    color: #fde68a;
    background:
        linear-gradient(135deg, rgba(246, 183, 60, 0.13), rgba(79, 140, 255, 0.08)),
        rgba(7, 11, 24, 0.45);
}

.chat-pinned-message strong,
.chat-pinned-message span {
    display: block;
}

.chat-pinned-message strong {
    margin-bottom: 4px;
    color: #facc15;
    font-size: 0.82rem;
}

.chat-pinned-message span {
    color: #fff7d6;
    font-size: 0.88rem;
    line-height: 1.55;
}

.admin-tools {
    grid-row: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #bfdbfe;
    background: var(--primary-soft);
    border: 1px solid rgba(79, 140, 255, 0.25);
}

.admin-tools a {
    color: var(--primary-hover);
    font-weight: 750;
}

.chat-messages {
    position: relative;
    z-index: 1;
    grid-row: 5;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 18px 16px;
    scrollbar-color: rgba(185, 203, 255, 0.32) transparent;
    scrollbar-width: thin;
}

.chat-messages::-webkit-scrollbar,
.admin-table-wrap::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.chat-messages::-webkit-scrollbar-thumb,
.admin-table-wrap::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(185, 203, 255, 0.32);
}

.message {
    max-width: min(76%, 560px);
    align-self: flex-start;
    display: grid;
    gap: 6px;
}

.message.is-me {
    align-self: flex-end;
}

.message-name {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 720;
}

.message-bubble {
    padding: 12px 14px;
    border: 1px solid rgba(185, 203, 255, 0.14);
    border-radius: 18px 18px 18px 7px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text-soft);
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.message.is-me .message-bubble {
    border-color: rgba(79, 140, 255, 0.38);
    border-radius: 18px 18px 7px 18px;
    background: linear-gradient(145deg, rgba(79,140,255,.28), rgba(124,92,255,.16));
    color: var(--text);
}

.message.is-admin .message-bubble {
    border-color: rgba(54, 211, 153, 0.32);
    background: rgba(54, 211, 153, 0.12);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    color: #bbf7d0;
    background: var(--emerald-soft);
    font-size: 0.68rem;
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.74rem;
}

.message-action {
    border: 0;
    border-radius: 999px;
    padding: 3px 8px;
    color: var(--text-soft);
    background: rgba(185, 203, 255, 0.12);
}

.message-action:hover {
    color: var(--text);
    background: rgba(185, 203, 255, 0.2);
}

.empty-chat {
    margin: auto;
    max-width: 360px;
    color: var(--muted);
    text-align: center;
}

.chat-input-area {
    position: relative;
    z-index: 1;
    grid-row: 6;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 14px 16px;
    border-top: 1px solid rgba(185, 203, 255, 0.13);
    background: rgba(7, 11, 24, 0.42);
}

.chat-input-area textarea,
.join-form input,
.admin-login-modal input,
.admin-field,
.admin-textarea {
    width: 100%;
    border: 1px solid rgba(185, 203, 255, 0.16);
    border-radius: 14px;
    background: rgba(7, 11, 24, 0.55);
    color: var(--text);
    outline: 0;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.chat-input-area textarea {
    min-height: 48px;
    max-height: 116px;
    resize: none;
    padding: 12px 13px;
}

.chat-input-area textarea:focus,
.join-form input:focus,
.admin-login-modal input:focus,
.admin-field:focus,
.admin-textarea:focus {
    border-color: rgba(115, 166, 255, 0.82);
    box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.16);
}

.send-btn,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-color: rgba(185, 203, 255, 0.18);
    box-shadow: 0 16px 30px rgba(79, 140, 255, 0.22);
}

.send-btn {
    align-self: start;
    min-width: 88px;
}

.send-btn svg {
    width: 18px;
    height: 18px;
}

.send-btn:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(79, 140, 255, 0.28);
}

.send-btn:disabled,
.btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

.btn-red,
.tiny-btn.danger {
    color: #fecdd3;
    background: rgba(251, 113, 133, 0.12);
    border-color: rgba(251, 113, 133, 0.28);
    box-shadow: none;
}

.btn-red:hover,
.tiny-btn.danger:hover {
    color: #fff;
    background: rgba(251, 113, 133, 0.22);
}

.name-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(7, 11, 24, 0.78);
    backdrop-filter: blur(12px);
}

.name-overlay.hidden {
    display: none;
}

.join-form {
    width: min(100%, 470px);
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 26px;
    border: 1px solid rgba(185, 203, 255, 0.18);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
        rgba(18, 28, 52, 0.94);
    text-align: center;
    box-shadow: var(--shadow);
}

.join-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    color: #bfdbfe;
}

.join-icon svg {
    width: 28px;
    height: 28px;
}

.join-form h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1.2;
}

.join-form p {
    margin: 0;
    color: var(--muted);
}

.join-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.join-form input,
.admin-field {
    min-height: 46px;
    padding: 10px 12px;
}

.floating-contact-wrap {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
}

.contact-toggle-btn {
    min-width: 132px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(185, 203, 255, 0.2);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 20px 48px rgba(79, 140, 255, 0.32);
    transition: transform var(--transition), box-shadow var(--transition);
}

.contact-toggle-btn svg {
    width: 23px;
    height: 23px;
}

.contact-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 54px rgba(79, 140, 255, 0.38);
}

.contact-menu {
    position: absolute;
    right: 0;
    bottom: 68px;
    min-width: 230px;
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(185, 203, 255, 0.18);
    border-radius: 22px;
    background: rgba(13, 20, 41, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    transform-origin: bottom right;
}

.contact-menu:not(.show) {
    display: none;
}

.contact-item {
    width: 100%;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 0;
    border-radius: 15px;
    color: var(--text-soft);
    background: transparent;
    text-align: left;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
}

.mini-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    color: #dbeafe;
    font-weight: 850;
}

.mini-icon svg {
    width: 20px;
    height: 20px;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0 54px;
    border-top: 1px solid rgba(185, 203, 255, 0.12);
    color: var(--muted);
}

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

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

.site-footer p {
    margin: 3px 0 0;
    max-width: 640px;
}

.popup,
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    place-items: center;
    padding: 18px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(10px);
}

.popup.show,
.modal-backdrop.show {
    display: grid;
}

.popup-box,
.admin-login-modal {
    width: min(100%, 390px);
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid rgba(185, 203, 255, 0.18);
    border-radius: 26px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
}

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

.popup-box.error {
    border-color: rgba(251, 113, 133, 0.38);
}

.popup-box p {
    margin: 0;
    color: var(--text-soft);
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-shell {
    width: min(100%, 1060px);
    min-height: min(720px, calc(100vh - 48px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    border: 1px solid rgba(185, 203, 255, 0.16);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.018)),
        rgba(11, 17, 35, 0.76);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.login-brand-panel {
    position: relative;
    min-width: 0;
    display: grid;
    align-content: end;
    gap: 20px;
    padding: clamp(28px, 5vw, 54px);
    background:
        radial-gradient(circle at 25% 20%, rgba(79,140,255,.28), transparent 20rem),
        radial-gradient(circle at 80% 12%, rgba(167,139,250,.22), transparent 18rem),
        linear-gradient(145deg, rgba(79,140,255,.08), rgba(255,255,255,.02));
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(185, 203, 255, 0.1);
    background: radial-gradient(circle, rgba(167,139,250,.16), transparent 62%);
}

.login-brand-panel h1 {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0;
    font-size: 3.15rem;
    line-height: 1.04;
    letter-spacing: 0;
}

.login-brand-panel p {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0;
    color: var(--text-soft);
}

.login-panel {
    display: grid;
    align-content: center;
    padding: clamp(24px, 4vw, 40px);
    background: rgba(7, 11, 24, 0.42);
}

.login-card {
    width: 100%;
    display: grid;
    gap: 18px;
    padding: 28px;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
        rgba(18, 28, 52, 0.9);
}

.login-card-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 6px;
}

.login-card-brand strong,
.login-card-brand small {
    display: block;
}

.login-card-brand strong {
    color: var(--text);
    font-size: 0.98rem;
}

.login-card-brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.8rem;
}

.login-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: #bfdbfe;
    background: rgba(79, 140, 255, 0.16);
}

.login-icon svg {
    width: 30px;
    height: 30px;
}

.login-card h1,
.login-card h2 {
    margin: 0;
    font-size: 1.6rem;
}

.login-card p {
    margin: 4px 0 0;
    color: var(--muted);
}

.login-secondary-link {
    justify-self: center;
    color: var(--muted);
    font-weight: 650;
}

.login-secondary-link:hover {
    color: var(--text);
}

.admin-page {
    min-height: 100vh;
}

.admin-shell {
    width: min(calc(100% - 32px), 1180px);
    margin: 28px auto 70px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: rgba(18, 28, 52, 0.82);
    box-shadow: var(--shadow-soft);
}

.admin-topbar h1 {
    margin: 0;
    font-size: 2rem;
}

.admin-actions,
.faq-admin-toolbar,
.admin-card-title-row,
.faq-admin-item-head,
.section-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-tab-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(7, 11, 24, 0.76);
    overflow-x: auto;
    backdrop-filter: blur(14px);
}

.admin-tab-button {
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: var(--muted);
    font-weight: 750;
    white-space: nowrap;
}

.admin-tab-button:hover,
.admin-tab-button.is-active {
    color: var(--text);
    background: var(--primary-soft);
    border-color: rgba(79, 140, 255, 0.28);
}

.admin-grid.is-tabbed {
    display: block;
}

.admin-grid.is-tabbed > section,
.admin-grid.is-tabbed > aside {
    display: contents;
}

.admin-card {
    padding: 22px;
    margin-bottom: 18px;
    border-radius: 26px;
    background: rgba(18, 28, 52, 0.78);
    scroll-margin-top: 118px;
}

.admin-card-title-row {
    margin-bottom: 16px;
}

.admin-card-title-row h2,
.admin-card-title-row p {
    margin: 0;
}

.admin-card-title-row p {
    margin-top: 5px;
    color: var(--muted);
}

.admin-form-grid {
    display: grid;
    gap: 14px;
}

.settings-section,
.admin-compact-section,
.admin-management-section,
.faq-admin-item {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.settings-section {
    padding: 16px;
}

.settings-section-title,
.admin-compact-section > summary {
    cursor: pointer;
    list-style: none;
}

.settings-section-title {
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text);
    font-weight: 800;
}

.settings-section-title::-webkit-details-marker,
.admin-compact-section > summary::-webkit-details-marker {
    display: none;
}

.settings-section-title::after,
.admin-compact-section > summary::after {
    content: "+";
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-hover);
    background: var(--primary-soft);
}

.settings-section[open] .settings-section-title::after,
.admin-compact-section[open] > summary::after {
    content: "-";
}

.settings-section:not([open]) .settings-section-title {
    margin-bottom: 0;
}

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

.span-full {
    grid-column: 1 / -1;
}

.admin-label {
    min-width: 0;
    display: grid;
    gap: 7px;
    color: var(--text-soft);
    font-weight: 700;
}

.admin-label span {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.admin-textarea {
    min-height: 116px;
    padding: 11px 12px;
    resize: vertical;
}

.admin-sticky-actions {
    margin: 4px -22px -22px;
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    background: rgba(18, 28, 52, 0.94);
    backdrop-filter: blur(12px);
}

.faq-manager-list {
    display: grid;
    gap: 14px;
}

.faq-admin-item {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.faq-admin-item.is-deleted {
    opacity: 0.55;
    border-color: rgba(251, 113, 133, 0.45);
    background: var(--danger-soft);
}

.faq-admin-item.is-deleted::after {
    content: "Sẽ xóa khi bấm Lưu FAQ";
    color: #fecdd3;
    font-weight: 750;
}

.admin-chat-manager {
    display: grid;
    gap: 16px;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.admin-metrics div {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.admin-metrics strong {
    display: block;
    color: var(--text);
    font-size: 1.55rem;
    line-height: 1;
}

.admin-metrics span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
}

.admin-compact-section {
    overflow: hidden;
}

.admin-management-section {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.admin-management-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.admin-management-head h3,
.admin-management-head p {
    margin: 0;
}

.admin-management-head h3 {
    color: var(--text);
    font-size: 1.05rem;
}

.admin-management-head p {
    margin-top: 5px;
    color: var(--muted);
}

.admin-compact-section > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    grid-template-rows: auto auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
}

.admin-compact-section > summary span {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    display: block;
    color: var(--text);
    font-weight: 800;
}

.admin-compact-section > summary small {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    display: block;
    color: var(--muted);
    line-height: 1.45;
}

.admin-compact-section > summary::after {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
}

.admin-compact-body {
    display: grid;
    gap: 14px;
    padding: 0 16px 16px;
}

.admin-management-section .admin-compact-body {
    padding: 0;
}

.seo-preview-box {
    display: grid;
    gap: 5px;
    padding: 18px;
    border: 1px solid rgba(79, 140, 255, 0.22);
    border-radius: 18px;
    background: rgba(79, 140, 255, 0.08);
}

.seo-preview-box span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.seo-preview-box strong {
    color: #bfdbfe;
    font-size: 1.08rem;
}

.seo-preview-box small {
    color: #bbf7d0;
}

.seo-preview-box p {
    margin: 4px 0 0;
    color: var(--text-soft);
}

.media-upload-grid {
    display: grid;
    gap: 14px;
}

.media-upload-card {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(132px, 190px) minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
}

.media-preview-box {
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px solid rgba(115, 166, 255, 0.2);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(79, 140, 255, 0.12), rgba(31, 224, 255, 0.06)),
        rgba(7, 11, 24, 0.45);
}

.media-preview-box img {
    max-width: 100%;
    max-height: 112px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.24));
}

.media-upload-body {
    min-width: 0;
    display: grid;
    gap: 12px;
}

.media-file-input {
    min-height: 48px;
    padding: 8px;
}

.media-file-input::file-selector-button {
    margin-right: 12px;
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    color: white;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.section-toolbar .admin-filter-field {
    margin: 0;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    color: var(--text-soft);
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--border);
    padding: 11px 10px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 0.78rem;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.admin-message-cell {
    min-width: 280px;
    max-width: 560px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.inline-form {
    display: inline;
}

.status-ok,
.status-bad {
    padding: 4px 8px;
}

.status-ok {
    color: #bbf7d0;
    background: var(--emerald-soft);
}

.status-bad {
    color: #fecdd3;
    background: var(--danger-soft);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

code {
    padding: 0.1em 0.35em;
    border-radius: 7px;
    color: #bfdbfe;
    background: rgba(79, 140, 255, 0.12);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .hero-alert,
    .info-layout,
    .section-heading-wide {
        grid-template-columns: 1fr;
    }

    .contact-actions {
        grid-template-columns: 1fr;
    }

    .status-module {
        grid-template-columns: minmax(170px, 0.48fr) minmax(0, 1fr);
        align-items: center;
    }

    .status-track,
    .status-facts,
    .security-notes {
        grid-column: 1 / -1;
    }

    .insight-card:nth-child(2) {
        transform: none;
    }
}

@media (max-width: 820px) {
    body {
        font-size: 15px;
    }

    .header-inner,
    .page-shell,
    .site-footer {
        width: min(calc(100% - 32px), var(--container));
    }

    .header-inner {
        min-height: 66px;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
        border-radius: 16px;
    }

    .brand-mark img {
        width: 30px;
        height: 30px;
    }

    .brand-copy strong {
        max-width: 62vw;
        font-size: 0.98rem;
    }

    .brand-copy small,
    .status-badge {
        display: none;
    }

    .page-shell {
        gap: 62px;
        padding-top: 20px;
    }

    .hero-alert {
        padding: 20px;
        border-radius: 28px;
    }

    .hero-copy h1 {
        max-width: 100%;
        font-size: 2.25rem;
        line-height: 1.08;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .section-heading h2,
    .admin-card h2 {
        font-size: 1.85rem;
    }

    .admin-topbar h1 {
        font-size: 1.7rem;
    }

    .contact-card {
        min-height: 78px;
        grid-template-columns: 46px minmax(0, 1fr) 24px;
        padding: 13px;
        border-radius: 18px;
    }

    .status-module {
        grid-template-columns: 1fr;
        padding: 20px;
        border-radius: 26px;
    }

    .status-orbit {
        min-height: 142px;
    }

    .status-orbit::before {
        width: 140px;
        height: 140px;
    }

    .status-orbit svg {
        width: 138px;
        height: 138px;
    }

    .insight-grid,
    .support-steps,
    .settings-grid,
    .media-upload-card,
    .admin-metrics {
        grid-template-columns: 1fr;
    }

    .media-preview-box {
        min-height: 118px;
    }

    .intro-statement {
        min-height: auto;
        padding: 22px;
        border-radius: 26px;
    }

    .warning-card {
        margin-top: 0;
    }

    .faq-question {
        grid-template-columns: 40px minmax(0, 1fr) 28px;
        padding: 12px 14px;
    }

    .faq-number {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .faq-answer p {
        margin: 0 14px 16px 62px;
    }

    .chat-card {
        grid-template-rows: auto auto auto auto minmax(310px, 52vh) auto;
        min-height: min(650px, calc(100vh - 96px));
        border-radius: 26px;
    }

    .chat-header,
    .admin-topbar,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .message {
        max-width: 88%;
    }

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

    .floating-contact-wrap {
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
    }

    .contact-toggle-btn {
        min-width: 56px;
        width: 56px;
        padding: 0;
        border-radius: 19px;
    }

    .contact-toggle-btn span {
        display: none;
    }

    .contact-menu {
        right: 0;
        min-width: 218px;
    }

    .login-page {
        padding: 16px;
    }

    .login-shell {
        min-height: auto;
        grid-template-columns: 1fr;
        border-radius: 28px;
    }

    .login-brand-panel {
        display: none;
    }

    .login-panel {
        padding: 18px;
    }

    .login-card {
        padding: 22px;
        border-radius: 24px;
    }

    .admin-shell {
        width: min(calc(100% - 24px), 1180px);
        margin-top: 18px;
    }

    .admin-tab-bar {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .admin-tab-bar::-webkit-scrollbar {
        display: none;
    }

    .admin-card {
        scroll-margin-top: 18px;
    }

    .section-toolbar,
    .faq-admin-toolbar,
    .admin-card-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .section-toolbar .admin-field {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .header-inner,
    .page-shell,
    .site-footer {
        width: min(calc(100% - 28px), var(--container));
    }

    .page-shell {
        gap: 56px;
    }

    .hero-alert {
        padding: 18px;
    }

    .hero-meta {
        font-size: 0.78rem;
    }

    .hero-copy h1 {
        font-size: 2rem;
        letter-spacing: 0;
    }

    .contact-card {
        grid-template-columns: 42px minmax(0, 1fr) 20px;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
        border-radius: 15px;
    }

    .contact-card strong {
        font-size: 0.94rem;
    }

    .contact-card small {
        font-size: 0.8rem;
    }

    .status-facts {
        grid-template-columns: 1fr;
    }

    .faq-answer p {
        margin-left: 14px;
    }

    .support-steps article {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .support-steps span {
        width: 38px;
        height: 38px;
    }
}

/* Shop TFT public refresh */
:root {
    --accent: #14b8a6;
}

body.public-page {
    --bg: #f5f7fb;
    --bg-2: #eef3f8;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-solid: #ffffff;
    --surface-soft: #f8fafc;
    --surface-bright: #eef6ff;
    --glass: rgba(255, 255, 255, 0.86);
    --border: rgba(15, 23, 42, 0.12);
    --border-strong: rgba(15, 23, 42, 0.2);
    --text: #101828;
    --text-soft: #334155;
    --muted: #667085;
    --primary: #2563eb;
    --primary-2: #0f766e;
    --primary-hover: #1d4ed8;
    --violet: #7c3aed;
    --amber: #f59e0b;
    --danger: #dc2626;
    --emerald: #059669;
    --primary-soft: rgba(37, 99, 235, 0.1);
    --violet-soft: rgba(124, 58, 237, 0.1);
    --amber-soft: rgba(245, 158, 11, 0.13);
    --danger-soft: rgba(220, 38, 38, 0.1);
    --emerald-soft: rgba(5, 150, 105, 0.11);
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 8px;
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 14px 36px rgba(15, 23, 42, 0.09);
    color-scheme: light;
    color: var(--text);
    background: #f5f7fb;
}

body.public-page::before {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: none;
    opacity: 0.55;
}

body.public-page::after {
    display: none;
}

body.public-page .site-header {
    border-bottom-color: rgba(15, 23, 42, 0.09);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

body.public-page .header-inner {
    min-height: 72px;
}

body.public-page .brand-mark {
    border-radius: 8px;
    border-color: rgba(37, 99, 235, 0.22);
    background: #eff6ff;
    box-shadow: none;
}

body.public-page .brand-mark::after {
    border-color: #ffffff;
    background: var(--emerald);
}

body.public-page .brand-copy strong,
body.public-page .status-module-copy strong,
body.public-page .contact-card strong,
body.public-page .support-steps strong,
body.public-page .chat-title strong,
body.public-page .site-footer strong,
body.public-page .faq-title-text,
body.public-page .insight-card h3,
body.public-page .warning-card h3 {
    color: var(--text);
}

body.public-page .status-badge {
    color: #0f766e;
    border-color: rgba(15, 118, 110, 0.22);
    background: rgba(20, 184, 166, 0.1);
}

body.public-page .page-shell {
    gap: 56px;
    padding-top: 28px;
}

body.public-page .setup-warning,
body.public-page .success-message,
body.public-page .error-message {
    border-radius: 8px;
}

body.public-page .hero-alert {
    grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr);
    gap: 22px;
    padding: 34px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-left: 6px solid var(--amber);
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: var(--shadow);
}

body.public-page .hero-alert::before {
    background:
        linear-gradient(90deg, rgba(245, 158, 11, 0.14), transparent 36%),
        linear-gradient(120deg, transparent 0 70%, rgba(20, 184, 166, 0.1) 70% 100%);
}

body.public-page .hero-copy h1 {
    color: var(--text);
    font-size: 3.15rem;
    line-height: 1.06;
}

body.public-page .hero-copy h1 span {
    background: none;
    color: inherit;
}

body.public-page .hero-copy h1::after {
    width: 74px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--amber), var(--emerald));
}

body.public-page .signal-chip {
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.32);
    background: rgba(245, 158, 11, 0.12);
}

body.public-page .contact-actions {
    gap: 10px;
}

body.public-page .contact-card {
    min-height: 104px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

body.public-page .contact-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

body.public-page .contact-icon,
body.public-page .info-icon,
body.public-page .join-icon,
body.public-page .mini-icon,
body.public-page .chat-icon {
    border-radius: 8px;
    color: #1d4ed8;
    background: #eff6ff;
}

body.public-page .contact-messenger .contact-icon {
    color: #6d28d9;
    background: #f5f3ff;
}

body.public-page .contact-phone .contact-icon {
    color: #047857;
    background: #ecfdf5;
}

body.public-page .arrow {
    color: #94a3b8;
}

body.public-page .status-module {
    align-content: start;
    padding: 14px;
    border-radius: 8px;
    border-color: rgba(15, 23, 42, 0.1);
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

body.public-page .status-module::before,
body.public-page .intro-statement::after,
body.public-page .chat-card::before {
    display: none;
}

.service-preview {
    position: relative;
    min-height: 206px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    background: #0f172a;
}

.service-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

body.public-page .status-module-copy,
body.public-page .status-facts,
body.public-page .security-notes {
    padding-inline: 4px;
}

body.public-page .status-label,
body.public-page .eyebrow {
    color: #0f766e;
}

body.public-page .status-track span {
    height: 7px;
    background: #e2e8f0;
}

body.public-page .status-facts div {
    border-radius: 8px;
    border-color: rgba(15, 23, 42, 0.09);
    background: #f8fafc;
}

body.public-page .security-notes li span {
    border-radius: 50%;
    background: var(--emerald);
}

body.public-page .intro-statement,
body.public-page .insight-card,
body.public-page .warning-card,
body.public-page .support-steps article,
body.public-page .faq-panel,
body.public-page .chat-card {
    border-radius: 8px;
    border-color: rgba(15, 23, 42, 0.1);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

body.public-page .intro-statement {
    min-height: 300px;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent 46%),
        #ffffff;
}

body.public-page .section-number,
body.public-page .support-steps span {
    border-radius: 8px;
    color: #1e3a8a;
    background: #dbeafe;
}

body.public-page .insight-card:nth-child(2) {
    background: #f7f3ff;
}

body.public-page .warning-card {
    border-color: rgba(245, 158, 11, 0.24);
    background: #fffbeb;
}

body.public-page .warning-card .info-icon {
    color: #92400e;
    background: #fef3c7;
}

body.public-page .support-steps article {
    background: #ffffff;
}

body.public-page .faq-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: #f8fafc;
}

body.public-page .faq-item:hover,
body.public-page .faq-item.is-open {
    background: #ffffff;
}

body.public-page .faq-number {
    border-radius: 8px;
    color: #0f766e;
    background: rgba(20, 184, 166, 0.12);
}

body.public-page .faq-answer p {
    border-left-color: rgba(20, 184, 166, 0.36);
    border-radius: 0 8px 8px 0;
    background: #ffffff;
}

body.public-page .chat-card {
    min-height: 620px;
}

body.public-page .chat-header,
body.public-page .chat-input-area {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.09);
}

body.public-page .chat-notice,
body.public-page .admin-tools {
    border-radius: 8px;
}

body.public-page .chat-notice {
    color: #92400e;
    background: #fffbeb;
    border-color: rgba(245, 158, 11, 0.22);
}

body.public-page .chat-pinned-message {
    border-radius: 8px;
    color: #78350f;
    background: #fff7ed;
    border-color: rgba(217, 119, 6, 0.2);
    box-shadow: none;
}

body.public-page .chat-pinned-message strong {
    color: #b45309;
}

body.public-page .chat-pinned-message span {
    color: #78350f;
}

body.public-page .admin-tools {
    color: #1e3a8a;
    background: #eff6ff;
}

body.public-page .chat-messages {
    background: #ffffff;
}

body.public-page .message-bubble {
    color: var(--text);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
}

body.public-page .message.is-me .message-bubble {
    color: #064e3b;
    background: #dcfce7;
}

body.public-page .message.is-admin .message-bubble {
    color: #1e3a8a;
    background: #dbeafe;
}

body.public-page .chat-input-area textarea,
body.public-page .join-form input,
body.public-page .admin-login-modal input {
    border-radius: 8px;
    color: var(--text);
    background: #ffffff;
}

body.public-page .send-btn,
body.public-page .btn-primary {
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.2);
}

body.public-page .exit-chat-btn,
body.public-page .tiny-btn {
    border-radius: 8px;
    color: var(--text-soft);
    background: #ffffff;
}

body.public-page .name-overlay {
    background: rgba(248, 250, 252, 0.82);
}

body.public-page .join-form,
body.public-page .popup-box,
body.public-page .contact-menu {
    border-radius: 8px;
    color: var(--text);
    background: #ffffff;
}

body.public-page .floating-contact-wrap .contact-toggle-btn {
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #0f766e);
}

body.public-page .site-footer {
    border-color: rgba(15, 23, 42, 0.09);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

@media (max-width: 1080px) {
    body.public-page .hero-alert {
        grid-template-columns: 1fr;
    }

    body.public-page .contact-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.public-page .status-module {
        grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
        align-items: center;
    }

    body.public-page .status-track,
    body.public-page .status-facts,
    body.public-page .security-notes {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    body.public-page .page-shell {
        gap: 44px;
        padding-top: 18px;
    }

    body.public-page .hero-alert {
        padding: 20px;
    }

    body.public-page .hero-copy h1 {
        font-size: 2.18rem;
    }

    body.public-page .contact-actions,
    body.public-page .status-module {
        grid-template-columns: 1fr;
    }

    .service-preview {
        min-height: 170px;
    }

    body.public-page .chat-card {
        min-height: min(620px, calc(100vh - 96px));
    }
}

@media (max-width: 430px) {
    body.public-page .hero-copy h1 {
        font-size: 1.92rem;
    }

    body.public-page .hero-alert,
    body.public-page .contact-card,
    body.public-page .status-module,
    body.public-page .intro-statement,
    body.public-page .insight-card,
    body.public-page .warning-card,
    body.public-page .faq-panel,
    body.public-page .chat-card {
        border-radius: 8px;
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Dark maintenance page inspired by the provided TFT sample */
body.mainbg {
    min-height: 100vh;
    color: #eef5ff;
    background:
        linear-gradient(180deg, rgba(8, 14, 28, 0.82), rgba(8, 14, 28, 0.96)),
        radial-gradient(circle at 16% 12%, rgba(0, 198, 255, 0.24), transparent 32rem),
        radial-gradient(circle at 86% 18%, rgba(255, 0, 153, 0.2), transparent 34rem),
        radial-gradient(circle at 52% 92%, rgba(255, 215, 0, 0.15), transparent 30rem),
        #080e1c;
    font-family: var(--font);
}

body.mainbg::before {
    opacity: 0.3;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
}

body.mainbg::after {
    display: none;
}

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

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

.particle {
    position: absolute;
    left: var(--left);
    bottom: -20px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.78);
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.9);
    animation: lmsParticleRise var(--duration) linear infinite;
    animation-delay: var(--delay);
}

@keyframes lmsParticleRise {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.6);
    }

    14%,
    82% {
        opacity: 0.85;
    }

    100% {
        opacity: 0;
        transform: translate3d(22px, -112vh, 0) scale(1.15);
    }
}

.lms-maint-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 14, 28, 0.78);
    backdrop-filter: blur(18px);
}

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

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

.lms-brand-logo {
    width: auto;
    max-width: min(243px, 56vw);
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(0, 198, 255, 0.25));
}

.lms-brand-text {
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 950;
    white-space: nowrap;
}

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

.lms-maint-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 215, 0, 0.32);
    border-radius: 8px;
    color: #ffe680;
    background: rgba(255, 215, 0, 0.09);
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
}

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

.lms-setup-warning {
    margin-bottom: 22px;
}

.hero {
    position: relative;
}

.lms-kicker {
    width: fit-content;
    margin: 0 auto 16px;
    padding: 8px 14px;
    border: 1px solid rgba(0, 198, 255, 0.28);
    border-radius: 999px;
    color: #7dd3fc;
    background: rgba(0, 198, 255, 0.1);
    font-size: 0.86rem;
    font-weight: 850;
}

.hero h1 {
    max-width: 920px;
    margin: 0 auto 22px;
    color: #ffffff;
    font-size: 3.35rem;
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: 0;
    text-shadow: 0 0 30px rgba(0, 198, 255, 0.18);
}

.alert.alert-warning {
    width: min(100%, 880px);
    margin: 0 auto 18px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 215, 0, 0.34);
    border-radius: 8px;
    color: #fff7d6;
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.16), rgba(255, 255, 255, 0.045)),
        rgba(9, 18, 38, 0.78);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.26);
    line-height: 1.7;
}

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

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

.contact-hint {
    margin: 18px auto 18px;
    color: #e0f2fe;
    font-size: 1.02rem;
    font-weight: 850;
}

.floating-contact {
    width: min(100%, 840px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.zalo-btn,
.messenger-btn,
.phone-btn {
    min-width: 0;
    min-height: 92px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #ffffff;
    text-align: left;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.zalo-btn {
    background: linear-gradient(135deg, #0068ff, #00c2ff);
}

.messenger-btn {
    background: linear-gradient(135deg, #6f2cff, #ff2fb3);
}

.phone-btn {
    background: linear-gradient(135deg, #0f9f74, #ffd12f);
}

.zalo-btn:hover,
.messenger-btn:hover,
.phone-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.36);
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.32);
}

.btn-main-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.02rem;
    font-weight: 950;
}

.btn-sub-line {
    padding-left: 48px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.84rem;
    font-weight: 650;
}

.online-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #28f28a;
    box-shadow: 0 0 0 6px rgba(40, 242, 138, 0.16), 0 0 18px rgba(40, 242, 138, 0.9);
}

.btn-logo,
.lms-mini-logo,
.lms-ic {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 950;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.lms-zalo-mark {
    background: #0068ff;
}

.lms-mess-mark {
    background: linear-gradient(135deg, #7b2cff, #ff2fb3);
}

.lms-phone-mark {
    background: #0f9f74;
}

.lms-official {
    width: min(100%, 860px);
    margin: 22px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 13px 16px;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 8px;
    color: #dbeafe;
    background: rgba(7, 20, 42, 0.72);
}

.lms-official-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 8px;
    color: #06121f;
    background: #ffd700;
    font-weight: 950;
}

.lms-official-text {
    max-width: 660px;
    color: #dbeafe;
    font-size: 0.94rem;
}

.about-seo,
.seo-faq {
    width: min(100%, 900px);
    margin: 34px auto 0;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #e5edff;
    text-align: left;
    background: rgba(7, 15, 32, 0.78);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.26);
}

.about-seo h2,
.seo-faq h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 1.72rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.about-seo h3 {
    margin: 24px 0 9px;
    color: #ffd700;
    font-size: 1.2rem;
}

.about-seo p,
.about-seo .rich-text,
.seo-faq p {
    color: #cfddf5;
    line-height: 1.8;
}

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

.seo-faq {
    display: grid;
    gap: 14px;
}

.seo-faq .faq-item {
    padding: 18px;
    border: 1px solid rgba(125, 211, 252, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.seo-faq .faq-q {
    margin: 0 0 7px;
    color: #ffffff;
    font-size: 1.08rem;
    line-height: 1.35;
}

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

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

.lms-contact {
    position: relative;
    display: grid;
    justify-items: end;
    gap: 10px;
}

.lms-contact-options {
    display: grid;
    gap: 9px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity var(--transition), transform var(--transition);
}

.lms-contact.lms-open .lms-contact-options {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.lms-opt {
    min-width: 178px;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(7, 15, 32, 0.9);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
    font-weight: 850;
}

.lms-contact-toggle {
    position: relative;
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #0068ff, #ff2fb3);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38), 0 0 0 8px rgba(255, 255, 255, 0.06);
}

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

.lms-contact-toggle .lms-ic-zalo,
.lms-contact-toggle .lms-zalo-mark {
    left: 7px;
    top: 15px;
}

.lms-contact-toggle .lms-ic-mess,
.lms-contact-toggle .lms-mess-mark {
    right: 7px;
    bottom: 15px;
}

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

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

.lms-footer {
    width: min(calc(100% - 34px), 980px);
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #a8b8d8;
    font-size: 0.92rem;
    text-align: center;
}

.lms-footer strong {
    color: #ffffff;
}

@media (max-width: 860px) {
    .lms-maint-header-inner {
        min-height: 68px;
    }

    .lms-maint-nav a {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 0.78rem;
    }

    .container.main-container {
        padding-top: 38px;
    }

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

    .floating-contact {
        grid-template-columns: 1fr;
    }

    .zalo-btn,
    .messenger-btn,
    .phone-btn {
        min-height: 82px;
    }

    .about-seo,
    .seo-faq {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .lms-maint-header-inner,
    .container.main-container,
    .lms-footer {
        width: min(calc(100% - 28px), 980px);
    }

    .lms-maint-nav {
        display: none;
    }

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

    .lms-brand-text {
        max-width: 48vw;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.98rem;
    }

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

    .alert.alert-warning {
        padding: 16px;
    }

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

    .about-seo h2,
    .seo-faq h2 {
        font-size: 1.45rem;
    }

    .lms-dock {
        display: none;
    }
}
