@charset "UTF-8";
/* ===========================================================================
   Rút gọn link — Phòng GDPT-GDTX Sở GDĐT Đồng Nai
   Thiết kế bởi Trương Anh Tuấn

   Mục lục
   01. Biến giao diện (sáng / tối)
   02. Nền tảng & tiện ích
   03. Nền động
   04. Đầu trang & điều hướng
   05. Nút bấm
   06. Biểu mẫu
   07. Thẻ, ô số liệu, lưới
   08. Trang chủ (hero, tính năng, các bước)
   09. Thẻ liên kết
   10. Biểu đồ
   11. Bảng dữ liệu
   12. Thông báo & khay thông báo
   13. Trang mã QR
   14. Các trang phụ (trạng thái, tài liệu, quản trị)
   15. Phân trang
   16. Chuyển động
   17. Màn hình nhỏ
   18. Bản in
   ======================================================================== */

/* ---------------------------------------------------------------------------
   01. Biến giao diện
   ------------------------------------------------------------------------ */
:root {
    color-scheme: light;

    --bg: #f4f6fc;
    --bg-deep: #eaeef9;
    --surface: #ffffff;
    --surface-2: #f5f7fd;
    --surface-3: #eef1fa;
    --surface-glass: rgba(255, 255, 255, 0.82);
    --border: #e2e7f5;
    --border-strong: #ccd4ea;

    --text: #141b2d;
    --text-soft: #47536e;
    --muted: #78849f;

    --primary: #4f46e5;
    --primary-strong: #4338ca;
    --primary-soft: #eef0ff;
    --accent: #a855f7;
    --accent-soft: #f7edff;
    --teal: #0d9488;

    --success: #15803d;
    --success-soft: #e7f8ed;
    --warning: #b45309;
    --warning-soft: #fef4e3;
    --danger: #dc2626;
    --danger-soft: #fdeceb;
    --info: #0369a1;
    --info-soft: #e6f4fd;

    --chart-line: #4f46e5;
    --chart-line-2: #14b8a6;
    --chart-grid: rgba(20, 27, 45, 0.08);
    --chart-bar: #6366f1;
    --chart-bar-peak: #a855f7;

    --donut-1: #4f46e5;
    --donut-2: #14b8a6;
    --donut-3: #f59e0b;
    --donut-4: #ec4899;
    --donut-5: #0ea5e9;
    --donut-6: #84cc16;

    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 9px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(20, 27, 45, 0.05), 0 2px 8px rgba(20, 27, 45, 0.04);
    --shadow: 0 4px 12px rgba(20, 27, 45, 0.06), 0 16px 40px rgba(20, 27, 45, 0.07);
    --shadow-lift: 0 10px 24px rgba(20, 27, 45, 0.1), 0 24px 60px rgba(20, 27, 45, 0.1);
    --ring: 0 0 0 3px rgba(79, 70, 229, 0.28);

    --blob-1: #a5b4fc;
    --blob-2: #f0abfc;
    --blob-3: #99f6e4;
    --blob-opacity: 0.55;

    --font: "Segoe UI", system-ui, -apple-system, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "JetBrains Mono", "Cascadia Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --wrap: 1180px;
    --wrap-narrow: 800px;
}

/* Chế độ tối: áp dụng khi người dùng chọn "tối", hoặc khi để "theo hệ thống"
   mà hệ điều hành đang dùng nền tối. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;

        --bg: #070b16;
        --bg-deep: #04070f;
        --surface: #121a2c;
        --surface-2: #172033;
        --surface-3: #1e2942;
        --surface-glass: rgba(18, 26, 44, 0.78);
        --border: rgba(255, 255, 255, 0.09);
        --border-strong: rgba(255, 255, 255, 0.18);

        --text: #e9ecf8;
        --text-soft: #aab4d0;
        --muted: #7d88a6;

        --primary: #818cf8;
        --primary-strong: #a5b4fc;
        --primary-soft: rgba(129, 140, 248, 0.14);
        --accent: #c084fc;
        --accent-soft: rgba(192, 132, 252, 0.14);
        --teal: #2dd4bf;

        --success: #4ade80;
        --success-soft: rgba(74, 222, 128, 0.13);
        --warning: #fbbf24;
        --warning-soft: rgba(251, 191, 36, 0.13);
        --danger: #f87171;
        --danger-soft: rgba(248, 113, 113, 0.13);
        --info: #38bdf8;
        --info-soft: rgba(56, 189, 248, 0.13);

        --chart-line: #818cf8;
        --chart-line-2: #2dd4bf;
        --chart-grid: rgba(255, 255, 255, 0.08);
        --chart-bar: #6366f1;
        --chart-bar-peak: #c084fc;

        --donut-1: #818cf8;
        --donut-2: #2dd4bf;
        --donut-3: #fbbf24;
        --donut-4: #f472b6;
        --donut-5: #38bdf8;
        --donut-6: #a3e635;

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
        --shadow-lift: 0 16px 46px rgba(0, 0, 0, 0.55);
        --ring: 0 0 0 3px rgba(129, 140, 248, 0.35);

        --blob-1: #4338ca;
        --blob-2: #7e22ce;
        --blob-3: #0f766e;
        --blob-opacity: 0.42;
    }
}

/* Người dùng chọn "luôn tối" thì thắng cả lựa chọn của hệ điều hành. */
:root[data-theme="dark"] {
    color-scheme: dark;

    --bg: #070b16;
    --bg-deep: #04070f;
    --surface: #121a2c;
    --surface-2: #172033;
    --surface-3: #1e2942;
    --surface-glass: rgba(18, 26, 44, 0.78);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);

    --text: #e9ecf8;
    --text-soft: #aab4d0;
    --muted: #7d88a6;

    --primary: #818cf8;
    --primary-strong: #a5b4fc;
    --primary-soft: rgba(129, 140, 248, 0.14);
    --accent: #c084fc;
    --accent-soft: rgba(192, 132, 252, 0.14);
    --teal: #2dd4bf;

    --success: #4ade80;
    --success-soft: rgba(74, 222, 128, 0.13);
    --warning: #fbbf24;
    --warning-soft: rgba(251, 191, 36, 0.13);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, 0.13);
    --info: #38bdf8;
    --info-soft: rgba(56, 189, 248, 0.13);

    --chart-line: #818cf8;
    --chart-line-2: #2dd4bf;
    --chart-grid: rgba(255, 255, 255, 0.08);
    --chart-bar: #6366f1;
    --chart-bar-peak: #c084fc;

    --donut-1: #818cf8;
    --donut-2: #2dd4bf;
    --donut-3: #fbbf24;
    --donut-4: #f472b6;
    --donut-5: #38bdf8;
    --donut-6: #a3e635;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lift: 0 16px 46px rgba(0, 0, 0, 0.55);
    --ring: 0 0 0 3px rgba(129, 140, 248, 0.35);

    --blob-1: #4338ca;
    --blob-2: #7e22ce;
    --blob-3: #0f766e;
    --blob-opacity: 0.42;
}

/* ---------------------------------------------------------------------------
   02. Nền tảng & tiện ích
   ------------------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0 0 0.4em;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--primary);
    text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent);
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--primary-strong);
}

code, pre, .mono {
    font-family: var(--font-mono);
    font-size: 0.92em;
}

code {
    padding: 0.12em 0.4em;
    border-radius: 6px;
    background: var(--surface-3);
    word-break: break-word;
}

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

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: var(--radius-xs);
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}

.wrap--narrow {
    max-width: var(--wrap-narrow);
}

.site-main {
    flex: 1 0 auto;
    padding-bottom: 3rem;
}

.section {
    padding: 2.75rem 0;
}

.section--tight {
    padding: 1.5rem 0;
}

.section__head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
}

.section__head--center {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
}

.section__title {
    margin: 0;
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}

.section__sub,
.section__note {
    margin: 0;
    color: var(--text-soft);
}

.text-muted {
    color: var(--muted);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    background: var(--primary);
    color: #fff;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
    color: #fff;
}

/* ---------------------------------------------------------------------------
   03. Nền động
   ------------------------------------------------------------------------ */
.backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(1100px 600px at 12% -8%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%),
        radial-gradient(900px 520px at 92% 4%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 70%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: var(--blob-opacity);
    will-change: transform;
}

.blob--1 {
    width: 46vmax;
    height: 46vmax;
    top: -14vmax;
    left: -10vmax;
    background: var(--blob-1);
    animation: drift-1 26s ease-in-out infinite;
}

.blob--2 {
    width: 38vmax;
    height: 38vmax;
    top: 18vmax;
    right: -12vmax;
    background: var(--blob-2);
    animation: drift-2 32s ease-in-out infinite;
}

.blob--3 {
    width: 32vmax;
    height: 32vmax;
    bottom: -14vmax;
    left: 28vw;
    background: var(--blob-3);
    animation: drift-3 29s ease-in-out infinite;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.55), transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.55), transparent 72%);
}

@keyframes drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(6vmax, 4vmax) scale(1.12); }
}

@keyframes drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-5vmax, 6vmax) scale(0.9); }
}

@keyframes drift-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(4vmax, -5vmax) scale(1.15); }
}

/* ---------------------------------------------------------------------------
   04. Đầu trang & điều hướng
   ------------------------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: inherit;
    flex: 0 0 auto;
}

.brand__mark {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--primary) 35%, transparent));
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand__mark {
    transform: rotate(-8deg) scale(1.06);
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand__text strong {
    font-size: 1.02rem;
    letter-spacing: -0.015em;
}

.brand__text small {
    font-size: 0.71rem;
    color: var(--muted);
    max-width: 26ch;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.site-nav__link {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-soft);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.16s ease, color 0.16s ease;
}

.site-nav__link:hover {
    background: var(--surface-3);
    color: var(--text);
}

.site-nav__link.is-active {
    background: var(--primary-soft);
    color: var(--primary-strong);
}

.site-nav__link--admin {
    color: var(--accent);
}

.site-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    padding-left: 0.6rem;
    border-left: 1px solid var(--border);
}

.theme-toggle {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text-soft);
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
    transform: rotate(18deg);
    color: var(--primary);
    border-color: var(--primary);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    grid-area: 1 / 1;
}

.theme-toggle__moon { display: none; }

:root[data-theme="dark"] .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: block; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle__sun { display: none; }
    :root:not([data-theme="light"]) .theme-toggle__moon { display: block; }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 38px;
    margin-left: auto;
    padding: 0 9px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: var(--surface-2);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu người dùng */
.user-menu {
    position: relative;
}

.user-menu__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.7rem 0.3rem 0.3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    color: var(--text);
    font-family: inherit;
    font-size: 0.87rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.user-menu__button:hover {
    border-color: var(--primary);
}

.avatar {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.avatar--lg {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
}

.user-menu__caret {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.user-menu__button[aria-expanded="true"] .user-menu__caret {
    transform: rotate(180deg);
}

.user-menu__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 70;
    min-width: 232px;
    padding: 0.45rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-lift);
    animation: pop-in 0.16s ease;
}

.user-menu__head {
    display: flex;
    flex-direction: column;
    padding: 0.55rem 0.7rem 0.7rem;
    margin-bottom: 0.3rem;
    border-bottom: 1px solid var(--border);
}

.user-menu__head strong {
    font-size: 0.93rem;
}

.user-menu__head span {
    font-size: 0.78rem;
    color: var(--muted);
}

.user-menu__panel a,
.user-menu__logout {
    display: block;
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 0;
    border-radius: var(--radius-xs);
    background: none;
    color: var(--text-soft);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease;
}

.user-menu__panel a:hover,
.user-menu__logout:hover {
    background: var(--surface-3);
    color: var(--text);
}

.user-menu__logout {
    margin-top: 0.3rem;
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius-xs) var(--radius-xs);
    color: var(--danger);
}

.user-menu__logout:hover {
    background: var(--danger-soft);
    color: var(--danger);
}

/* Dải thông báo của quản trị viên */
.announcement {
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--warning) 16%, transparent),
        color-mix(in srgb, var(--accent) 12%, transparent));
    border-bottom: 1px solid var(--border);
}

.announcement__inner {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.announcement p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ---------------------------------------------------------------------------
   05. Nút bấm
   ------------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.62rem 1.15rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.18s ease, background 0.18s ease,
                border-color 0.18s ease, color 0.18s ease;
}

.btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    flex: 0 0 auto;
}

.btn:active {
    transform: translateY(1px) scale(0.99);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 32%, transparent);
}

.btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--primary) 40%, transparent);
}

.btn--ghost {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text-soft);
}

.btn--ghost:hover {
    background: var(--surface-3);
    border-color: var(--border-strong);
    color: var(--text);
    transform: translateY(-1px);
}

.btn--danger {
    background: var(--danger-soft);
    border-color: color-mix(in srgb, var(--danger) 32%, transparent);
    color: var(--danger);
}

.btn--danger:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.btn--lg {
    padding: 0.85rem 1.7rem;
    font-size: 1.02rem;
}

.btn--sm {
    padding: 0.44rem 0.85rem;
    font-size: 0.85rem;
}

.btn--xs {
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
    border-radius: var(--radius-xs);
}

.btn--block {
    width: 100%;
}

/* Vệt sáng chạy qua nút chính — tạo cảm giác sinh động */
.btn--shine {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn--shine::after {
    content: "";
    position: absolute;
    top: -60%;
    left: -30%;
    width: 40%;
    height: 220%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transform: skewX(-18deg);
    animation: shine 3.4s ease-in-out infinite;
    z-index: -1;
}

@keyframes shine {
    0%, 62% { left: -40%; }
    100% { left: 130%; }
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: var(--surface-2);
    color: var(--muted);
    cursor: pointer;
    transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.icon-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--primary);
    font: inherit;
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.chip {
    padding: 0.24rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    color: var(--text-soft);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.chip:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-strong);
}

.chip--clear:hover {
    border-color: var(--danger);
    background: var(--danger-soft);
    color: var(--danger);
}

.share-btn {
    padding: 0.42rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    color: var(--text-soft);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.16s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.share-btn--zalo:hover { background: #0068ff; border-color: #0068ff; }
.share-btn--fb:hover { background: #1877f2; border-color: #1877f2; }
.share-btn--mail:hover { background: var(--teal); border-color: var(--teal); }
.share-btn--native:hover { background: var(--primary); border-color: var(--primary); }

/* ---------------------------------------------------------------------------
   06. Biểu mẫu
   ------------------------------------------------------------------------ */
.field {
    margin-bottom: 1.15rem;
}

.field:last-child {
    margin-bottom: 0;
}

.field__label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.field__label small,
.field__optional {
    font-weight: 500;
    color: var(--muted);
}

.field__req {
    color: var(--danger);
}

.field__hint {
    margin: 0.4rem 0 0;
    font-size: 0.81rem;
    line-height: 1.5;
    color: var(--muted);
}

.field__hint--muted {
    font-style: italic;
    opacity: 0.85;
}

.field__error {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0.4rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--danger);
}

.field__error::before {
    content: "⚠";
}

.field__output {
    display: inline-block;
    min-width: 2ch;
    padding: 0 0.3rem;
    border-radius: 5px;
    background: var(--primary-soft);
    color: var(--primary-strong);
    font-family: var(--font-mono);
    font-weight: 700;
}

.field--row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0 1.1rem;
}

.input {
    width: 100%;
    padding: 0.68rem 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.input::placeholder {
    color: var(--muted);
    opacity: 0.75;
}

.input:hover {
    border-color: var(--primary);
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring);
}

.input:read-only {
    background: var(--surface-2);
}

.input--lg {
    padding: 0.9rem 1.05rem;
    font-size: 1.02rem;
}

.input--mono {
    font-family: var(--font-mono);
    font-size: 0.88rem;
}

.input--xs {
    width: 5.5rem;
    padding: 0.32rem 0.5rem;
    font-size: 0.83rem;
    border-radius: var(--radius-xs);
}

.input.has-error {
    border-color: var(--danger);
    background: color-mix(in srgb, var(--danger) 5%, var(--surface));
}

textarea.input {
    resize: vertical;
    min-height: 4.5rem;
}

select.input,
.filters select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                      linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 17px) calc(50% + 1px), calc(100% - 12px) calc(50% + 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2.1rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon__icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.9;
    stroke-linecap: round;
    pointer-events: none;
}

.input-with-icon .input {
    padding-left: 2.9rem;
}

/* Ô nhập tên tuỳ chọn: có tiền tố tên miền dán liền */
.alias-input {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    overflow: hidden;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.alias-input:focus-within {
    border-color: var(--primary);
    box-shadow: var(--ring);
}

.alias-input__prefix {
    display: flex;
    align-items: center;
    padding: 0 0.15rem 0 0.85rem;
    background: var(--surface-2);
    border-right: 1px solid var(--border);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.84rem;
    white-space: nowrap;
    user-select: all;
}

.alias-input__field {
    flex: 1 1 auto;
    min-width: 6rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.alias-input__field:focus {
    box-shadow: none;
}

.alias-input__field:hover {
    border-color: transparent;
}

.alias-input__state {
    display: flex;
    align-items: center;
    padding-right: 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.alias-input__state.is-free { color: var(--success); }
.alias-input__state.is-taken { color: var(--danger); }
.alias-input__state.is-checking { color: var(--muted); }

.password-field {
    position: relative;
}

.password-field .input {
    padding-right: 3rem;
}

.password-field__toggle {
    position: absolute;
    top: 50%;
    right: 0.4rem;
    transform: translateY(-50%);
    width: 36px;
    height: 34px;
    border: 0;
    border-radius: var(--radius-xs);
    background: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.7;
}

.password-field__toggle:hover {
    opacity: 1;
    background: var(--surface-3);
}

.checkbox,
.switch {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0.5rem 0;
    font-size: 0.89rem;
    color: var(--text-soft);
    cursor: pointer;
}

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0.15rem 0 0;
    accent-color: var(--primary);
    flex: 0 0 auto;
    cursor: pointer;
}

.checkbox--inline {
    margin: 0;
    align-items: center;
    white-space: nowrap;
}

.switch {
    align-items: center;
    gap: 0.75rem;
    margin: 0.9rem 0;
}

.switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.switch__track {
    position: relative;
    display: block;
    width: 46px;
    height: 26px;
    flex: 0 0 auto;
    border-radius: var(--radius-pill);
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.switch__dot {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--muted);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

.switch input:checked + .switch__track {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
}

.switch input:checked + .switch__track .switch__dot {
    transform: translateX(20px);
    background: #fff;
}

.switch input:focus-visible + .switch__track {
    box-shadow: var(--ring);
}

.switch__label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: var(--text);
}

.switch__label small {
    font-weight: 400;
    font-size: 0.81rem;
    line-height: 1.5;
    color: var(--muted);
}

.radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}

.radio-card {
    position: relative;
    padding: 0.6rem 1.05rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-soft);
    cursor: pointer;
    transition: all 0.16s ease;
}

.radio-card input {
    position: absolute;
    opacity: 0;
}

.radio-card:hover {
    border-color: var(--primary);
}

.radio-card:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-strong);
}

.color-field {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-soft);
    cursor: pointer;
}

.color-field input[type="color"] {
    width: 40px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: none;
    cursor: pointer;
}

.range {
    width: 100%;
    height: 6px;
    margin: 0.6rem 0 0.2rem;
    appearance: none;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--primary), var(--accent));
    cursor: pointer;
}

.range::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--primary);
    box-shadow: var(--shadow-sm);
    cursor: grab;
}

.range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--primary);
    cursor: grab;
}

.fieldset {
    margin: 0 0 1.75rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.fieldset:last-of-type {
    margin-bottom: 1.25rem;
}

.fieldset__legend {
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-pill);
    background: var(--primary-soft);
    color: var(--primary-strong);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fieldset__hint {
    margin: 0 0 1rem;
    font-size: 0.83rem;
    color: var(--muted);
}

.form-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    padding-top: 0.5rem;
}

.form-card__danger {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: auto;
    padding-left: 1rem;
}

.advanced {
    margin: 0 0 1.2rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    overflow: hidden;
}

.advanced__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    transition: background 0.15s ease;
}

.advanced__summary::-webkit-details-marker {
    display: none;
}

.advanced__summary::before {
    content: "▸";
    color: var(--primary);
    transition: transform 0.2s ease;
    display: inline-block;
}

.advanced[open] .advanced__summary::before {
    transform: rotate(90deg);
}

.advanced__summary:hover {
    background: var(--surface-3);
}

.advanced__summary small {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--muted);
}

.advanced__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
    gap: 0 1.1rem;
    padding: 0.3rem 1rem 1.1rem;
    border-top: 1px solid var(--border);
}

.advanced__grid .field--wide {
    grid-column: 1 / -1;
}

.quick-dates,
.tag-suggest {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

/* Đo độ mạnh mật khẩu */
.meter {
    margin-top: 0.5rem;
}

.meter__bar {
    display: block;
    height: 5px;
    border-radius: var(--radius-pill);
    background: var(--surface-3);
    overflow: hidden;
    position: relative;
}

.meter__bar::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--meter, 0%);
    border-radius: var(--radius-pill);
    background: var(--meter-color, var(--danger));
    transition: width 0.25s ease, background 0.25s ease;
}

.meter__label {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.79rem;
    font-weight: 600;
    color: var(--meter-color, var(--muted));
}

/* Thanh tìm kiếm và lọc */
.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.filters__search {
    position: relative;
    flex: 1 1 260px;
}

.filters__icon {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--muted);
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
}

.filters__search input {
    width: 100%;
    padding: 0.6rem 0.9rem 0.6rem 2.6rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
}

.filters__search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring);
}

.filters__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
}

.filters__field select {
    padding: 0.48rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xs);
    background-color: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 500;
}

.filters__field--narrow select {
    width: 5rem;
}

.filters__buttons {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

/* ---------------------------------------------------------------------------
   07. Thẻ, ô số liệu, lưới
   ------------------------------------------------------------------------ */
.card {
    padding: 1.4rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.card:last-child {
    margin-bottom: 0;
}

.card--glass {
    background: var(--surface-glass);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: var(--shadow);
}

.card--warning {
    border-color: color-mix(in srgb, var(--warning) 35%, transparent);
    background: color-mix(in srgb, var(--warning) 6%, var(--surface));
}

.card--chart {
    padding-bottom: 1rem;
}

.card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem 1rem;
    margin-bottom: 1.1rem;
}

.card__head .card__title {
    margin: 0;
}

.card__title {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
}

.card__sub {
    margin: 0 0 0.9rem;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--muted);
}

.card__head .card__sub {
    margin-bottom: 0;
}

.card__foot-note {
    margin: 0.9rem 0 0;
    padding-top: 0.8rem;
    border-top: 1px dashed var(--border);
    font-size: 0.81rem;
    line-height: 1.55;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.grid .card {
    margin-bottom: 0;
}

/* Ô số liệu */
.tiles {
    display: grid;
    /* 165px để sáu ô số liệu xếp gọn trên một hàng ở màn hình máy tính */
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tiles--compact {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.tile {
    position: relative;
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--tile-color, var(--primary));
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.tile--primary { --tile-color: var(--primary); }
.tile--accent { --tile-color: var(--accent); }
.tile--success { --tile-color: var(--success); }
.tile--warning { --tile-color: var(--warning); }
.tile--danger { --tile-color: var(--danger); }
.tile--info { --tile-color: var(--info); }
.tile--muted { --tile-color: var(--muted); }

.tile__icon {
    display: block;
    font-size: 1.35rem;
    line-height: 1;
    margin-bottom: 0.45rem;
}

.tile__label {
    margin: 0 0 0.15rem;
    font-size: 0.79rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    color: var(--muted);
}

.tile__value {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--tile-color, var(--text));
    font-variant-numeric: tabular-nums;
}

.tile__value--sm {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
}

.tile__note {
    margin: 0.25rem 0 0;
    font-size: 0.79rem;
    color: var(--muted);
}

/* Nhãn trạng thái */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-pill);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    vertical-align: middle;
}

.badge--success { background: var(--success-soft); color: var(--success); }
.badge--warning { background: var(--warning-soft); color: var(--warning); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--info { background: var(--info-soft); color: var(--info); }
.badge--muted { background: var(--surface-3); color: var(--muted); }
.badge--admin { background: var(--accent-soft); color: var(--accent); }

.pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    line-height: 1;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.16rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    color: var(--text-soft);
    font-size: 0.77rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.tag:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-strong);
}

.tag--button {
    font-family: inherit;
    cursor: pointer;
}

.tag--lg {
    padding: 0.32rem 0.8rem;
    font-size: 0.85rem;
}

.tag--lg span {
    padding: 0 0.35rem;
    border-radius: var(--radius-pill);
    background: var(--surface-3);
    font-size: 0.72rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.host-chip {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border-radius: 5px;
    background: hsl(var(--host-hue, 220) 62% 52%);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
}

.host-chip--lg {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.3rem;
}

.code-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    margin: 0.8rem 0;
    padding: 0.75rem 1rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.code-box code {
    background: none;
    padding: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    word-break: break-all;
}

.code-box--big code {
    font-size: 1.35rem;
    letter-spacing: 0.13em;
}

.code-box__note {
    font-size: 0.78rem;
    color: var(--muted);
}

.code-block {
    margin: 0.9rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    font-family: var(--font-mono);
    font-size: 0.84rem;
    line-height: 1.65;
    overflow-x: auto;
    white-space: pre;
}

/* Đầu trang nội bộ */
.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.75rem;
}

.page-head--stack {
    flex-direction: column;
    align-items: flex-start;
}

.page-head__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.3rem;
    font-size: 0.79rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--muted);
}

.page-head__title {
    margin: 0;
    font-size: clamp(1.5rem, 3.4vw, 2.15rem);
}

.page-head__link {
    font-family: var(--font-mono);
    text-decoration: none;
}

.page-head__sub {
    margin: 0.4rem 0 0;
    font-size: 0.92rem;
    color: var(--text-soft);
}

.page-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-head__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.6rem;
}

.segmented {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    gap: 2px;
}

.segmented__item {
    padding: 0.32rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.81rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.segmented__item:hover {
    color: var(--text);
    background: var(--surface-3);
}

.segmented__item.is-active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------------------------
   08. Trang chủ
   ------------------------------------------------------------------------ */
.hero {
    padding: clamp(2rem, 5vw, 3.6rem) 0 1rem;
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 2.5rem;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.32rem 0.85rem 0.32rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface-glass);
    font-size: 0.79rem;
    font-weight: 600;
    color: var(--text-soft);
}

.hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent); }
    50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--success) 4%, transparent); }
}

.hero__title {
    margin: 0 0 1rem;
    text-wrap: balance;
    font-size: clamp(2rem, 5.4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero__title-accent {
    background: linear-gradient(100deg, var(--primary), var(--accent) 45%, var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradient-slide 7s linear infinite;
}

@keyframes gradient-slide {
    to { background-position: 200% center; }
}

.hero__lead {
    max-width: 56ch;
    margin: 0 0 1.6rem;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.7;
    color: var(--text-soft);
}

.hero__counters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    margin: 0;
}

.hero__counter dt {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.hero__counter dd {
    margin: 0.1rem 0 0;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hình minh hoạ "trước / sau" */
.hero__art {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: stretch;
}

.float-card {
    padding: 0.95rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.float-card__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.float-card code {
    display: block;
    padding: 0;
    background: none;
    font-size: 0.78rem;
    line-height: 1.6;
    word-break: break-all;
    color: var(--text-soft);
}

.float-card--1 {
    transform: rotate(-1.4deg);
    animation: float-a 7s ease-in-out infinite;
}

.float-card--2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    transform: rotate(1.2deg);
    border-color: color-mix(in srgb, var(--primary) 35%, transparent);
    animation: float-b 8s ease-in-out infinite;
}

.float-card--2 code {
    flex: 1 1 auto;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-strong);
    word-break: break-all;
}

.float-card--2 .float-card__label {
    flex: 1 0 100%;
    margin-bottom: 0;
}

.float-card__qr {
    width: 74px;
    height: 74px;
    flex: 0 0 auto;
    color: var(--text);
    line-height: 0;
}

.float-card--arrow {
    align-self: center;
    width: 46px;
    height: 46px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: 0;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 40%, transparent);
}

.float-card--arrow svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.4;
    transform: rotate(90deg);
}

@keyframes float-a {
    0%, 100% { transform: translateY(0) rotate(-1.4deg); }
    50% { transform: translateY(-9px) rotate(-2.2deg); }
}

@keyframes float-b {
    0%, 100% { transform: translateY(0) rotate(1.2deg); }
    50% { transform: translateY(9px) rotate(2deg); }
}

/* Khối rút gọn */
.shortener {
    padding-bottom: 1rem;
    scroll-margin-top: 90px;
}

.shortener__card {
    padding: clamp(1.25rem, 3vw, 2.1rem);
    margin-bottom: 0;
}

.field--hero {
    margin-bottom: 1.3rem;
}

.shortener__submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 0.5rem;
}

.shortener__note {
    flex: 1 1 260px;
    margin: 0;
    font-size: 0.83rem;
    line-height: 1.55;
    color: var(--muted);
}

.shortener__locked {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.shortener__locked-icon {
    font-size: 2.4rem;
    line-height: 1;
}

.shortener__locked h2 {
    margin: 0 0 0.3rem;
    font-size: 1.15rem;
}

.shortener__locked p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.shortener__locked-actions {
    display: flex;
    gap: 0.6rem;
    margin-left: auto;
}

/* Tính năng */
.section--features,
.section--steps {
    padding-top: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
    gap: 1.1rem;
}

.feature {
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--primary) 40%, transparent);
    box-shadow: var(--shadow-lift);
}

.feature__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 0.85rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
    font-size: 1.35rem;
}

.feature__title {
    margin: 0 0 0.4rem;
    font-size: 1.02rem;
}

.feature__desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-soft);
}

.feature__desc code {
    font-size: 0.85em;
}

/* Ba bước */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 1.5rem 1.35rem 1.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.step__num {
    position: absolute;
    top: -16px;
    left: 1.35rem;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 35%, transparent);
}

.step h3 {
    margin: 0.5rem 0 0.4rem;
    font-size: 1.02rem;
}

.step p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-soft);
}

/* ---------------------------------------------------------------------------
   09. Thẻ liên kết
   ------------------------------------------------------------------------ */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(325px, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.5rem;
}

.link-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: color-mix(in srgb, var(--primary) 30%, transparent);
}

.link-card--muted { opacity: 0.82; }
.link-card--danger { border-left: 3px solid var(--danger); }
.link-card--warning { border-left: 3px solid var(--warning); }
.link-card--info { border-left: 3px solid var(--info); }
.link-card--success { border-left: 3px solid var(--success); }

.link-card__top {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.link-card__identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    flex: 1 1 auto;
    min-width: 0;
}

.link-card__code {
    font-family: var(--font-mono);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    word-break: break-all;
}

.link-card__code:hover {
    color: var(--primary);
}

.link-card__slash {
    color: var(--muted);
}

.link-card__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
}

.link-card__target {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.83rem;
    color: var(--muted);
    text-decoration: none;
    min-width: 0;
}

.link-card__target span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-card__target:hover {
    color: var(--primary);
}

.link-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.link-card__stats {
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
    padding-top: 0.6rem;
    margin-top: auto;
    border-top: 1px dashed var(--border);
}

.link-card__metric strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.link-card__metric span {
    font-size: 0.74rem;
    color: var(--muted);
}

.link-card__spark {
    flex: 1 1 auto;
    min-width: 60px;
    max-width: 130px;
    margin-left: auto;
    line-height: 0;
}

.link-card__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    font-size: 0.76rem;
    color: var(--muted);
}

.link-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--border);
}

.link-card__actions form {
    display: inline;
}

/* ---------------------------------------------------------------------------
   10. Biểu đồ
   ------------------------------------------------------------------------ */
.chart-wrap {
    width: 100%;
    overflow-x: auto;
}

.chart {
    display: block;
    width: 100%;
    height: auto;
    min-width: 480px;
}

.chart--area { height: 280px; }
.chart--bars { height: 210px; }

.chart__grid {
    stroke: var(--chart-grid);
    stroke-width: 1;
    stroke-dasharray: 3 5;
}

.chart__axis {
    fill: var(--muted);
    font-size: 11px;
    font-family: var(--font);
}

.chart__line {
    fill: none;
    stroke: var(--chart-line);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 3px 8px color-mix(in srgb, var(--chart-line) 35%, transparent));
}

.chart__line--unique {
    stroke: var(--chart-line-2);
    stroke-width: 1.7;
    stroke-dasharray: 5 4;
    filter: none;
}

.chart__point circle:first-child {
    fill: var(--surface);
    stroke: var(--chart-line);
    stroke-width: 2.2;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.chart__hit {
    fill: transparent;
    cursor: pointer;
}

.chart__point:hover circle:first-child {
    opacity: 1;
}

.chart__bar {
    fill: var(--chart-bar);
    opacity: 0.82;
    transition: opacity 0.15s ease, fill 0.15s ease;
}

.chart__bar:hover {
    opacity: 1;
}

.chart__bar--peak {
    fill: var(--chart-bar-peak);
    opacity: 1;
}

.chart-empty {
    margin: 0;
    padding: 2.2rem 1rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--muted);
    text-align: center;
    font-size: 0.89rem;
}

/* Đường biểu diễn nhỏ */
.sparkline {
    display: block;
    width: 100%;
    height: 28px;
}

.sparkline__line {
    fill: none;
    stroke: var(--chart-line);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sparkline__area {
    fill: color-mix(in srgb, var(--chart-line) 18%, transparent);
    stroke: none;
}

.sparkline__flat {
    stroke: var(--border-strong);
    stroke-width: 1.6;
    stroke-dasharray: 3 4;
}

/* Biểu đồ vành khuyên */
.donut {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.donut__svg {
    width: 148px;
    height: 148px;
    flex: 0 0 auto;
}

.donut__track {
    stroke: var(--surface-3);
}

.donut__slice {
    transition: opacity 0.15s ease, stroke-width 0.15s ease;
    cursor: pointer;
}

.donut__slice:hover {
    opacity: 0.82;
}

.donut__slice--1 { stroke: var(--donut-1); }
.donut__slice--2 { stroke: var(--donut-2); }
.donut__slice--3 { stroke: var(--donut-3); }
.donut__slice--4 { stroke: var(--donut-4); }
.donut__slice--5 { stroke: var(--donut-5); }
.donut__slice--6 { stroke: var(--donut-6); }

.donut__total {
    fill: var(--text);
    font-size: 20px;
    font-weight: 800;
    font-family: var(--font);
}

.donut__caption {
    fill: var(--muted);
    font-size: 9.5px;
    font-family: var(--font);
}

.donut__legend {
    flex: 1 1 130px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
}

.donut__legend li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.22rem 0;
}

.donut__dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 3px;
}

.donut__dot--1 { background: var(--donut-1); }
.donut__dot--2 { background: var(--donut-2); }
.donut__dot--3 { background: var(--donut-3); }
.donut__dot--4 { background: var(--donut-4); }
.donut__dot--5 { background: var(--donut-5); }
.donut__dot--6 { background: var(--donut-6); }

.donut__name {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-soft);
}

.donut__value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Xếp hạng dạng thanh ngang */
.ranking {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking__item {
    margin-bottom: 0.7rem;
}

.ranking__item:last-child {
    margin-bottom: 0;
}

.ranking__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.28rem;
    font-size: 0.85rem;
}

.ranking__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-soft);
}

.ranking__value {
    flex: 0 0 auto;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ranking__value small {
    font-weight: 500;
    color: var(--muted);
}

.ranking__track {
    display: block;
    height: 7px;
    border-radius: var(--radius-pill);
    background: var(--surface-3);
    overflow: hidden;
}

.ranking__fill {
    display: block;
    height: 100%;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--primary), var(--accent));
    animation: grow-bar 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes grow-bar {
    from { transform: scaleX(0); transform-origin: left; }
}

/* Vòng tỉ lệ */
.gauges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem 2rem;
}

.gauge {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.gauge svg {
    width: 74px;
    height: 74px;
    flex: 0 0 auto;
}

.gauge__track {
    stroke: var(--surface-3);
}

.gauge__value {
    stroke: var(--success);
    transition: stroke-dasharray 0.5s ease;
}

.gauge--warning .gauge__value { stroke: var(--warning); }
.gauge--danger .gauge__value { stroke: var(--danger); }

.gauge__text {
    fill: var(--text);
    font-size: 14px;
    font-weight: 800;
    font-family: var(--font);
}

.gauge__label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-soft);
    max-width: 20ch;
}

.gauges__note {
    flex: 1 1 220px;
    font-size: 0.84rem;
    color: var(--muted);
}

/* ---------------------------------------------------------------------------
   11. Bảng dữ liệu
   ------------------------------------------------------------------------ */
.table-scroll {
    overflow-x: auto;
    margin: 0 -0.35rem;
    padding: 0 0.35rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

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

.table thead th {
    position: sticky;
    top: 0;
    background: var(--surface);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    white-space: nowrap;
}

.table tbody tr {
    transition: background 0.14s ease;
}

.table tbody tr:hover {
    background: var(--surface-2);
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table--compact th,
.table--compact td {
    padding: 0.5rem 0.6rem;
    font-size: 0.84rem;
}

.table__num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.table__sub {
    display: block;
    font-size: 0.76rem;
    color: var(--muted);
}

.table__url {
    display: inline-block;
    max-width: 32ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    color: var(--text-soft);
}

.table__actions {
    white-space: nowrap;
    text-align: right;
}

.table__empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--muted);
}

.mono-link {
    font-family: var(--font-mono);
    font-weight: 700;
    text-decoration: none;
    word-break: break-all;
}

.ip {
    font-size: 0.78rem;
    color: var(--muted);
}

/* ---------------------------------------------------------------------------
   12. Thông báo & khay thông báo
   ------------------------------------------------------------------------ */
.flash-stack {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 1.25rem;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    animation: slide-down 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.alert--success { border-color: color-mix(in srgb, var(--success) 40%, transparent); background: var(--success-soft); }
.alert--error { border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: var(--danger-soft); }
.alert--warning { border-color: color-mix(in srgb, var(--warning) 40%, transparent); background: var(--warning-soft); }
.alert--info { border-color: color-mix(in srgb, var(--info) 40%, transparent); background: var(--info-soft); }

.alert__icon {
    font-size: 1.05rem;
    line-height: 1.4;
}

.alert__text {
    flex: 1 1 auto;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert__close {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.alert__close:hover {
    background: color-mix(in srgb, var(--text) 8%, transparent);
    color: var(--text);
}

.toast-stack {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    transform: translateX(-50%);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.1rem;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--text) 92%, transparent);
    color: var(--bg);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: var(--shadow-lift);
    animation: toast-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast--out {
    animation: toast-out 0.22s ease forwards;
}

.toast--success { background: var(--success); color: #fff; }
.toast--error { background: var(--danger); color: #fff; }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(14px) scale(0.94); }
}

@keyframes toast-out {
    to { opacity: 0; transform: translateY(10px) scale(0.96); }
}

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-10px); }
}

@keyframes pop-in {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
}

.callout {
    padding: 1.15rem 1.3rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.callout h2 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.callout p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-soft);
}

.callout--warning {
    border-left-color: var(--warning);
    background: var(--warning-soft);
}

.callout--info {
    border-left-color: var(--info);
    background: var(--info-soft);
}

.callout--muted {
    border-left-color: var(--muted);
    background: var(--surface-2);
}

.callout__foot {
    margin-bottom: 0;
    font-size: 0.83rem;
    color: var(--muted);
}

/* ---------------------------------------------------------------------------
   13. Trang kết quả & mã QR
   ------------------------------------------------------------------------ */
.result {
    padding: clamp(1.3rem, 3vw, 2.1rem);
}

.result__congrats {
    margin: 0 0 1.1rem;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
}

.result__congrats--calm {
    font-size: 1rem;
    color: var(--text-soft);
}

.result__link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid color-mix(in srgb, var(--primary) 32%, transparent);
    border-radius: var(--radius-sm);
    background: linear-gradient(120deg, var(--primary-soft), var(--accent-soft));
}

.result__url {
    flex: 1 1 240px;
    font-family: var(--font-mono);
    font-size: clamp(1.05rem, 2.6vw, 1.4rem);
    font-weight: 700;
    color: var(--primary-strong);
    text-decoration: none;
    word-break: break-all;
}

.result__buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.result__body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.75rem;
    margin: 1.5rem 0;
    align-items: start;
}

.qr-frame {
    display: grid;
    place-items: center;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.qr-frame img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 220px;
}

.qr-frame--lg img {
    max-width: 320px;
}

.result__qr {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: center;
}

.result__qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.result__details {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.result__details dt {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.result__details dd {
    margin: 0.15rem 0 0;
    font-size: 0.92rem;
    word-break: break-word;
}

.result__details dd small {
    color: var(--muted);
}

.result__share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.result__share-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    margin-right: 0.25rem;
}

.result__next {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1.1rem;
}

/* Xưởng mã QR */
.qr-studio {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 1.5rem;
    align-items: start;
}

.qr-studio__preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

.qr-studio__caption {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
}

.qr-studio__downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.qr-studio__tip {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    font-size: 0.83rem;
    line-height: 1.6;
    color: var(--text-soft);
}

.qr-studio__controls {
    margin-bottom: 0;
}

.qr-studio__submit {
    display: flex;
    gap: 0.5rem;
    margin: 1.1rem 0 0.6rem;
}

.swatches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 0.5rem;
}

.swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: var(--surface-2);
    cursor: pointer;
    transition: all 0.15s ease;
}

.swatch:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.swatch span {
    display: block;
    width: 100%;
    height: 26px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background:
        linear-gradient(135deg, var(--sw-fg) 0 50%, var(--sw-bg) 50% 100%);
}

.swatch em {
    font-size: 0.71rem;
    font-style: normal;
    font-weight: 600;
    color: var(--text-soft);
    text-align: center;
    line-height: 1.3;
}

/* ---------------------------------------------------------------------------
   14. Các trang phụ
   ------------------------------------------------------------------------ */
.state-page {
    padding: clamp(1.8rem, 5vw, 3rem);
    text-align: center;
}

.state-page__emoji {
    display: block;
    font-size: 3.2rem;
    line-height: 1;
    margin-bottom: 0.75rem;
    animation: bob 3s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.state-page__code {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.state-page__title {
    margin: 0 0 0.7rem;
    font-size: clamp(1.35rem, 3.4vw, 1.9rem);
}

.state-page__message {
    max-width: 56ch;
    margin: 0 auto 1.25rem;
    color: var(--text-soft);
    line-height: 1.7;
}

.state-page__slug {
    font-weight: 700;
}

.state-page__hint {
    max-width: 52ch;
    margin: 1.1rem auto 0;
    font-size: 0.84rem;
    color: var(--muted);
}

.state-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.state-page--form {
    text-align: left;
}

.state-page--form .state-page__emoji,
.state-page--form .state-page__title,
.state-page--form .state-page__message {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.unlock-form {
    max-width: 340px;
    margin: 0 auto;
}

/* Xem trước */
.preview {
    padding: clamp(1.4rem, 3vw, 2.1rem);
}

.preview__eyebrow {
    margin: 0 0 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--muted);
}

.preview__code {
    margin: 0 0 1.1rem;
    font-family: var(--font-mono);
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    word-break: break-all;
}

.preview__target {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.preview__host {
    margin: 0;
    font-weight: 700;
}

.preview__url {
    margin: 0.1rem 0 0;
    font-size: 0.84rem;
    color: var(--muted);
    word-break: break-all;
}

.preview__title {
    margin: 1rem 0 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.preview__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.preview__meta dt {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.preview__meta dd {
    margin: 0.2rem 0 0;
    font-weight: 600;
}

.preview__notice {
    margin: 0.9rem 0 0;
    padding: 0.7rem 0.95rem;
    border-radius: var(--radius-xs);
    background: var(--surface-2);
    font-size: 0.87rem;
}

.preview__notice--warn {
    background: var(--warning-soft);
    color: var(--warning);
    font-weight: 600;
}

.preview__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.preview__hint {
    margin: 1.25rem 0 0;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
    font-size: 0.82rem;
    color: var(--muted);
}

/* Xác thực */
.auth-card {
    padding: clamp(1.5rem, 4vw, 2.4rem);
}

.auth-card__head {
    text-align: center;
    margin-bottom: 1.6rem;
}

.auth-card__emoji {
    display: block;
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.auth-card__title {
    margin: 0 0 0.4rem;
    font-size: 1.6rem;
}

.auth-card__sub {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-soft);
}

.auth-form__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.auth-form__forgot {
    font-size: 0.85rem;
    font-weight: 600;
}

.auth-card__foot {
    margin: 1.4rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
    font-size: 0.89rem;
    text-align: center;
    color: var(--text-soft);
}

/* Trạng thái rỗng */
.empty-state {
    padding: clamp(2rem, 5vw, 3rem);
    text-align: center;
}

.empty-state__emoji {
    display: block;
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 0.7rem;
}

.empty-state h2 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.empty-state p {
    max-width: 46ch;
    margin: 0 auto 1.25rem;
    color: var(--text-soft);
}

.empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

/* Nội dung dạng bài viết */
.prose {
    line-height: 1.75;
}

.prose h2 {
    margin: 1.8rem 0 0.7rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
    font-size: 1.22rem;
}

.prose > h2:first-child,
.prose h2:first-of-type {
    margin-top: 0;
}

.prose h3 {
    margin: 1.3rem 0 0.5rem;
    font-size: 1.02rem;
}

.prose p,
.prose li {
    color: var(--text-soft);
}

.prose__lead {
    font-size: 1.05rem;
    color: var(--text);
}

.prose ul,
.prose ol {
    margin: 0 0 1.1rem;
    padding-left: 1.4rem;
}

.prose li {
    margin-bottom: 0.45rem;
}

.prose__note {
    margin: 1.1rem 0;
    padding: 0.85rem 1.1rem;
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    background: var(--primary-soft);
    font-size: 0.89rem;
}

.prose__table {
    width: 100%;
    margin: 1rem 0 1.4rem;
    border-collapse: collapse;
    font-size: 0.87rem;
}

.prose__table th,
.prose__table td {
    padding: 0.55rem 0.7rem;
    text-align: left;
    border: 1px solid var(--border);
}

.prose__table th {
    background: var(--surface-2);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.prose__dl {
    margin: 0 0 1.2rem;
}

.prose__dl dt {
    margin-top: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.prose__dl dd {
    margin: 0.2rem 0 0;
    color: var(--text-soft);
}

.faq {
    margin-bottom: 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    overflow: hidden;
}

.faq summary {
    padding: 0.8rem 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::before {
    content: "+ ";
    color: var(--primary);
    font-weight: 800;
}

.faq[open] summary::before {
    content: "− ";
}

.faq summary:hover {
    background: var(--surface-3);
}

.faq p {
    margin: 0;
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.toc {
    padding: 1.2rem 1.4rem;
}

.toc__title {
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
}

.toc ol {
    margin: 0;
    padding-left: 1.3rem;
    columns: 2;
    column-gap: 1.5rem;
}

.toc li {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.endpoint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 0.9rem 0;
}

.endpoint code {
    font-size: 0.88rem;
    font-weight: 600;
}

.method {
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.method--get { background: var(--info-soft); color: var(--info); }
.method--post { background: var(--success-soft); color: var(--success); }

.cta-card {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
    border-color: color-mix(in srgb, var(--primary) 25%, transparent);
}

.cta-card h2 {
    margin: 0 0 0.4rem;
}

.cta-card p {
    color: var(--text-soft);
    margin-bottom: 1.2rem;
}

.cta-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.credit-card {
    text-align: center;
    background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
}

.credit-card__label {
    margin: 0 0 0.25rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.credit-card__name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Quản trị */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 0;
    padding: 1.15rem 1.25rem;
}

.user-row--suspended {
    opacity: 0.72;
    border-left: 3px solid var(--danger);
}

.user-row__main {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex: 1 1 300px;
    min-width: 0;
}

.user-row__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.15rem;
    font-size: 1.02rem;
}

.user-row__meta {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-soft);
    word-break: break-word;
}

.user-row__meta--dim {
    margin-top: 0.15rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.user-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.quota-form {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline__item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.85rem;
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.87rem;
}

.timeline__item:last-child {
    border-bottom: 0;
}

.timeline__item--empty {
    color: var(--muted);
    justify-content: center;
    padding: 1.2rem 0;
}

.timeline__time {
    flex: 0 0 auto;
    min-width: 8.5rem;
    font-size: 0.79rem;
    color: var(--muted);
}

.timeline__actor {
    font-weight: 700;
}

.timeline__action {
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-pill);
    background: var(--surface-3);
    font-size: 0.76rem;
    font-family: var(--font-mono);
    color: var(--text-soft);
}

.timeline__detail {
    color: var(--muted);
    word-break: break-word;
}

.spec-list {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.9rem;
}

.spec-list dt {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.spec-list dd {
    margin: 0.15rem 0 0;
    font-size: 0.88rem;
    word-break: break-all;
}

.maintenance {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.maintenance__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    padding: 0.95rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.maintenance__item h3 {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
}

.maintenance__item p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    max-width: 52ch;
}

.maintenance__control {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.83rem;
    color: var(--muted);
}

.issue-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.issue-list li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--border);
}

.issue-list li:last-child {
    border-bottom: 0;
}

.issue-list code {
    font-size: 0.8rem;
    word-break: break-all;
}

.issue-list span {
    font-size: 0.83rem;
    color: var(--danger);
    font-weight: 600;
}

/* ---------------------------------------------------------------------------
   15. Phân trang
   ------------------------------------------------------------------------ */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 0.6rem;
    margin-top: 1.75rem;
}

.pagination__list {
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination__page,
.pagination__nav {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: var(--surface);
    color: var(--text-soft);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.pagination__page:hover,
.pagination__nav:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-strong);
}

.pagination__page.is-current {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: #fff;
}

.pagination__nav.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.pagination__gap {
    display: grid;
    place-items: center;
    min-width: 24px;
    color: var(--muted);
}

.pagination__info {
    flex: 1 0 100%;
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
}

/* ---------------------------------------------------------------------------
   Chân trang
   ------------------------------------------------------------------------ */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 1.5rem 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.site-footer__brand strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.site-footer__brand p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--muted);
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.site-footer__links a {
    font-size: 0.86rem;
    color: var(--text-soft);
    text-decoration: none;
}

.site-footer__links a:hover {
    color: var(--primary);
}

.site-footer__meta {
    text-align: right;
}

.site-footer__credit {
    margin: 0 0 0.3rem;
    font-size: 0.88rem;
    font-weight: 700;
}

.site-footer__clock {
    margin: 0;
    font-size: 0.79rem;
    color: var(--muted);
}

/* ---------------------------------------------------------------------------
   16. Chuyển động
   ------------------------------------------------------------------------ */
.confetti-piece {
    position: fixed;
    top: -12px;
    z-index: 130;
    width: 9px;
    height: 14px;
    border-radius: 2px;
    pointer-events: none;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    to {
        transform: translateY(105vh) rotate(720deg);
        opacity: 0;
    }
}

.is-copied {
    animation: pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop {
    50% { transform: scale(1.12); }
}

/* Người dùng chọn giảm hiệu ứng thì tắt hết chuyển động trang trí. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .blob {
        animation: none;
    }
}

/* ---------------------------------------------------------------------------
   17. Màn hình nhỏ
   ------------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__art {
        order: -1;
        max-width: 480px;
    }

    .qr-studio {
        grid-template-columns: 1fr;
    }

    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__meta {
        grid-column: 1 / -1;
        text-align: left;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        padding: 0.85rem 20px 1.1rem;
        border-bottom: 1px solid var(--border);
        background: var(--surface);
        box-shadow: var(--shadow-lift);
    }

    .site-nav.is-open {
        display: flex;
        animation: slide-down 0.22s ease;
    }

    .site-nav__link {
        padding: 0.7rem 0.85rem;
        border-radius: var(--radius-xs);
    }

    .site-nav__actions {
        margin: 0.6rem 0 0;
        padding: 0.75rem 0 0;
        border-left: 0;
        border-top: 1px solid var(--border);
        flex-wrap: wrap;
    }

    .user-menu {
        flex: 1 1 100%;
    }

    .user-menu__button {
        width: 100%;
        justify-content: flex-start;
    }

    .user-menu__panel {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
    }

    .result__body {
        grid-template-columns: 1fr;
    }

    .form-card__danger {
        margin-left: 0;
        padding-left: 0;
        width: 100%;
        padding-top: 0.8rem;
        border-top: 1px dashed var(--border);
    }

    .toc ol {
        columns: 1;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 15.5px;
    }

    .wrap {
        padding: 0 16px;
    }

    .section {
        padding: 1.9rem 0;
    }

    .link-grid {
        grid-template-columns: 1fr;
    }

    .tiles {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.7rem;
    }

    .tile {
        padding: 0.9rem;
    }

    .hero__counters {
        gap: 1.1rem;
    }

    .page-head,
    .card__head,
    .section__head {
        align-items: flex-start;
    }

    .filters {
        padding: 0.85rem;
    }

    .filters__buttons {
        margin-left: 0;
        width: 100%;
    }

    .filters__buttons .btn {
        flex: 1 1 auto;
    }

    .alias-input {
        flex-wrap: wrap;
    }

    .alias-input__prefix {
        flex: 1 0 100%;
        padding: 0.35rem 0.7rem;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        font-size: 0.78rem;
    }

    .alias-input__field {
        flex: 1 1 auto;
    }

    .segmented {
        width: 100%;
        overflow-x: auto;
    }

    .user-row__actions {
        width: 100%;
    }

    .maintenance__control {
        width: 100%;
        justify-content: flex-end;
    }

    .chart {
        min-width: 380px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------------------
   18. Bản in
   ------------------------------------------------------------------------ */
@media print {
    .backdrop,
    .site-header,
    .site-footer__links,
    .toast-stack,
    .link-card__actions,
    .page-head__actions,
    .filters,
    .pagination,
    .announcement,
    .btn,
    .icon-btn {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 11pt;
    }

    .card,
    .tile,
    .link-card {
        border: 1px solid #ccc;
        box-shadow: none;
        break-inside: avoid;
    }

    .chart {
        min-width: 0;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
