/* =========================================================
   Đăng ký thông tin — giao diện tối giản, hiện đại
   Font hệ thống, không phụ thuộc thư viện ngoài.
   ========================================================= */

:root {
    --bg: #f4f6fb;
    --ink: #1a2233;
    --ink-soft: #3d475c;
    --muted: #667085;
    --line: #e4e7ef;
    --line-strong: #d1d7e4;

    --brand: #2f4a80;
    --brand-dark: #243a66;
    --brand-soft: #eef2fa;

    --gold: #96702a;
    --gold-soft: #f8f2e5;

    --danger: #b42318;
    --danger-bg: #fef3f2;
    --danger-line: #fbd5d1;

    --ok: #067647;
    --ok-bg: #ecfdf3;
    --ok-line: #d1fadf;

    --warn: #8a5a00;
    --warn-bg: #fffaeb;
    --warn-line: #fedf89;

    --radius: 18px;
    --shadow: 0 24px 60px -28px rgba(23, 32, 53, .35), 0 2px 6px rgba(23, 32, 53, .04);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        radial-gradient(1000px 520px at 8% -10%, rgba(184, 147, 74, .14), transparent 60%),
        radial-gradient(900px 620px at 102% 0%, rgba(47, 74, 128, .13), transparent 58%),
        linear-gradient(180deg, #f8f9fc 0%, #f2f4fa 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(47, 74, 128, .18);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

a {
    color: var(--brand);
}

svg {
    display: block;
}

code {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: .92em;
    background: #eef1f7;
    color: #33415c;
    padding: 1px 5px;
    border-radius: 5px;
}

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

/* =========================================================
   Trang đăng ký
   ========================================================= */

.shell {
    width: min(100% - 32px, 780px);
    margin: 0 auto;
    padding: 44px 0 36px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.brand-mark {
    width: 50px;
    height: 50px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(145deg, #38578f, #233a66);
    color: #fff;
    box-shadow: 0 12px 24px -12px rgba(47, 74, 128, .75);
}

.brand-mark svg {
    width: 25px;
    height: 25px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    min-width: 0;
}

.brand-org {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
}

.brand-sub {
    font-size: 13.5px;
    color: var(--muted);
}

.card {
    padding: 36px clamp(20px, 5vw, 44px);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 26px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.card h1 {
    margin: 12px 0 8px;
    font-size: clamp(27px, 4vw, 33px);
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: -.035em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    opacity: .85;
}

.lead {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

.card-head {
    margin-bottom: 28px;
}

.card-head .lead {
    max-width: 52ch;
}

.req {
    color: var(--danger);
    font-weight: 700;
}

/* ---------- Thông báo ---------- */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 0 22px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 13.5px;
    line-height: 1.55;
}

.alert svg {
    width: 18px;
    height: 18px;
    flex: none;
    margin-top: 2px;
}

.alert strong {
    font-weight: 700;
}

.alert ul {
    margin: 5px 0 0;
    padding-left: 18px;
}

.alert li+li {
    margin-top: 2px;
}

.alert-error {
    background: var(--danger-bg);
    border-color: var(--danger-line);
    color: #7a271a;
}

.alert-success {
    background: var(--ok-bg);
    border-color: var(--ok-line);
    color: #05603a;
}

.alert-warning {
    background: var(--warn-bg);
    border-color: var(--warn-line);
    color: #7a4d00;
}

.alert code {
    background: rgba(0, 0, 0, .06);
    color: inherit;
}

/* ---------- Form ---------- */

.form-section {
    margin: 0;
}

.form-section+.form-section {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
}

.section-no {
    display: inline-grid;
    place-items: center;
    height: 23px;
    padding: 0 7px;
    border: 1px solid #dde5f5;
    border-radius: 7px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .08em;
}

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

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

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.field label,
.field-label {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 650;
    color: var(--ink-soft);
    letter-spacing: .005em;
}

.input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font: inherit;
    font-size: 14.5px;
    color: var(--ink);
    background-color: #fbfcfe;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    outline: none;
    appearance: none;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.input::placeholder {
    color: #a2a9b8;
}

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

.input:focus {
    border-color: var(--brand);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(47, 74, 128, .1);
}

.input.is-invalid {
    border-color: #e3a29b;
    background-color: #fffafa;
}

.input.is-invalid:focus {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(180, 35, 24, .09);
}

select.input {
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23727b8f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    cursor: pointer;
}

.hint {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
}

.field-error {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--danger);
}

/* ---------- Chọn giới tính ---------- */

.segmented {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 5px;
    background: #f3f5fa;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.field .seg {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

.seg input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.seg span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 39px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    color: #5c6578;
    transition: background .16s, color .16s, box-shadow .16s;
}

.seg:hover span {
    color: var(--ink);
}

.seg input:checked+span {
    background: #fff;
    color: var(--brand);
    box-shadow: 0 2px 8px rgba(23, 32, 53, .1);
}

.seg input:focus-visible+span {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* ---------- Nút ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .16s, box-shadow .16s, background .16s, border-color .16s, color .16s, filter .16s;
}

.btn svg {
    width: 17px;
    height: 17px;
    flex: none;
}

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

.btn-primary {
    background: linear-gradient(135deg, #2f4a80 0%, #3d5f9e 100%);
    color: #fff;
    box-shadow: 0 14px 26px -14px rgba(47, 74, 128, .75);
}

.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 18px 30px -14px rgba(47, 74, 128, .8);
}

.btn-secondary {
    background: var(--brand-soft);
    border-color: #dde5f5;
    color: var(--brand);
}

.btn-secondary:hover {
    background: #e5ebf8;
}

.btn-outline {
    background: #fff;
    border-color: var(--line-strong);
    color: var(--ink-soft);
}

.btn-outline:hover {
    background: #fafbfe;
    border-color: #bfc7d8;
}

.btn-ghost {
    background: #fff;
    border-color: var(--line);
    color: var(--ink-soft);
}

.btn-ghost:hover {
    background: #f8f9fd;
    border-color: var(--line-strong);
}

.btn-sm {
    height: 42px;
    padding: 0 14px;
    border-radius: 11px;
    font-size: 13.5px;
}

.btn-block {
    width: 100%;
    height: 54px;
    border-radius: 13px;
    font-size: 15.5px;
    margin-top: 30px;
}

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

.btn:disabled {
    cursor: wait;
    opacity: .75;
    transform: none;
    filter: none;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.privacy {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
    text-align: center;
}

.privacy svg {
    width: 14px;
    height: 14px;
    flex: none;
    margin-top: 1px;
}

.page-foot {
    margin: 18px 0 0;
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
}

.page-foot strong {
    color: var(--ink-soft);
    font-weight: 700;
}

/* ---------- Trang thành công ---------- */

.success-card {
    padding-top: 48px;
    padding-bottom: 44px;
    text-align: center;
}

.success-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ok-line);
    border-radius: 50%;
    background: var(--ok-bg);
    color: var(--ok);
    animation: pop .5s cubic-bezier(.2, .9, .3, 1.35) both;
}

.success-icon svg {
    width: 34px;
    height: 34px;
}

@keyframes pop {
    from {
        opacity: 0;
        transform: scale(.55);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-card .eyebrow {
    justify-content: center;
}

.success-card h1 {
    margin-top: 10px;
}

.success-card .lead {
    max-width: 44ch;
    margin: 0 auto;
}

.receipt {
    width: min(100%, 360px);
    margin: 26px auto 28px;
    padding: 16px 18px;
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    background: #fbfcfe;
    text-align: left;
}

.receipt>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13.5px;
}

.receipt>div+div {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}

.receipt dt {
    color: var(--muted);
}

.receipt dd {
    margin: 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* =========================================================
   Trang đăng nhập quản trị
   ========================================================= */

.login-shell {
    width: min(100% - 32px, 420px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

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

.login-card {
    padding: 30px 30px 26px;
}

.login-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    display: grid;
    place-items: center;
    border: 1px solid #e0e7f5;
    border-radius: 15px;
    background: var(--brand-soft);
    color: var(--brand);
}

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

.login-card h1 {
    margin: 0 0 5px;
    font-size: 23px;
    letter-spacing: -.03em;
}

.login-card .lead {
    margin-bottom: 22px;
    font-size: 14px;
}

.login-card .field {
    margin-bottom: 16px;
}

.back-link {
    display: block;
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}

.back-link:hover {
    color: var(--brand);
}

.login-note {
    margin: 18px 0 0;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--muted);
    text-align: center;
}

/* =========================================================
   Trang quản trị
   ========================================================= */

.wrap {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.brand-sm {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
}

.brand-sm .brand-mark {
    width: 39px;
    height: 39px;
    border-radius: 11px;
    box-shadow: 0 8px 18px -10px rgba(47, 74, 128, .7);
}

.brand-sm .brand-mark svg {
    width: 20px;
    height: 20px;
}

.brand-sm-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.brand-sm-text strong {
    overflow: hidden;
    font-size: 14px;
    letter-spacing: -.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-sm-text small {
    overflow: hidden;
    font-size: 11.5px;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.topbar-actions form {
    margin: 0;
}

.admin-main {
    padding: 30px 0 56px;
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.page-head h1 {
    margin: 0 0 4px;
    font-size: clamp(24px, 3vw, 29px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.03em;
}

.page-head p {
    margin: 0;
    font-size: 13.5px;
    color: var(--muted);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 20px;
}

.stat {
    padding: 15px 17px 17px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(23, 32, 53, .03);
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
}

.stat-label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}

.stat-icon {
    width: 32px;
    height: 32px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 10px;
}

.stat-icon svg {
    width: 17px;
    height: 17px;
}

.stat-icon--blue {
    background: #eef2fa;
    color: #2f4a80;
}

.stat-icon--green {
    background: #ecfdf3;
    color: #067647;
}

.stat-icon--gold {
    background: #f8f2e5;
    color: #96702a;
}

.stat-icon--violet {
    background: #f4f0ff;
    color: #6941c6;
}

.stat-value {
    font-size: 27px;
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.stat-sub {
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--muted);
}

.panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 40px -34px rgba(23, 32, 53, .45);
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
    min-width: 0;
}

.search-form .input {
    height: 42px;
    font-size: 13.5px;
}

.search-form select.input {
    max-width: 230px;
    min-width: 180px;
}

.search-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 340px;
}

.search-wrap svg {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 17px;
    height: 17px;
    color: var(--muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.search-wrap .input {
    width: 100%;
    padding-left: 39px;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 13.5px;
}

thead th {
    padding: 11px 15px;
    border-bottom: 1px solid var(--line);
    background: #f8f9fc;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f2f7;
    color: var(--ink-soft);
    vertical-align: middle;
}

tbody tr:hover {
    background: #fafbfe;
}

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

.mono {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cell-name {
    font-weight: 650;
    line-height: 1.35;
    color: var(--ink);
}

.cell-sub {
    margin-top: 1px;
    font-size: 11.5px;
    color: var(--muted);
}

.phone-link {
    color: var(--ink-soft);
    text-decoration: none;
    white-space: nowrap;
}

.phone-link:hover {
    color: var(--brand);
    text-decoration: underline;
}

.cell-time {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.cell-actions {
    width: 52px;
    text-align: right;
}

.cell-actions form {
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.4;
    white-space: nowrap;
}

.badge-gold {
    background: #fbf3e2;
    border-color: #efe0c2;
    color: #7d5a19;
}

.badge-blue {
    background: #eef2fb;
    border-color: #dbe4f6;
    color: #2c487c;
}

.badge-neutral {
    background: #f4f5f8;
    border-color: #e5e8ef;
    color: #596174;
}

.icon-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #98a0b0;
    cursor: pointer;
    transition: background .16s, border-color .16s, color .16s;
}

.icon-btn svg {
    width: 16px;
    height: 16px;
}

.icon-btn:hover {
    background: var(--danger-bg);
    border-color: var(--danger-line);
    color: var(--danger);
}

.table-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 16px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--muted);
    flex-wrap: wrap;
}

.table-foot strong {
    color: var(--ink-soft);
    font-weight: 700;
}

.pager {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}

.pager a,
.pager span {
    min-width: 33px;
    height: 33px;
    padding: 0 8px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--ink-soft);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}

.pager a:hover {
    background: #f3f5fa;
    border-color: var(--line);
}

.pager .current {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 700;
}

.pager .disabled {
    opacity: .35;
}

.pager .dots {
    border: 0;
    color: var(--muted);
}

.empty {
    padding: 56px 24px 60px;
    text-align: center;
}

.empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border: 1px solid #e0e7f5;
    border-radius: 16px;
    background: var(--brand-soft);
    color: var(--brand);
}

.empty-icon svg {
    width: 26px;
    height: 26px;
}

.empty h2 {
    margin: 0 0 5px;
    font-size: 16px;
}

.empty p {
    margin: 0 0 16px;
    font-size: 13.5px;
    color: var(--muted);
}

/* =========================================================
   Trang lỗi kết nối
   ========================================================= */

.setup-card {
    max-width: 680px;
    margin: 24px auto;
}

.setup-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    display: grid;
    place-items: center;
    border: 1px solid var(--warn-line);
    border-radius: 16px;
    background: var(--warn-bg);
    color: #b54708;
}

.setup-icon svg {
    width: 27px;
    height: 27px;
}

.setup-list {
    margin: 18px 0 20px;
    padding-left: 22px;
    font-size: 14px;
    color: var(--ink-soft);
}

.setup-list li {
    padding-left: 2px;
}

.setup-list li+li {
    margin-top: 9px;
}

.setup-meta {
    margin: 0 0 18px;
    font-size: 12.5px;
    color: var(--muted);
    word-break: break-word;
}

.setup-details {
    margin: 0 0 22px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fafbfe;
    font-size: 13px;
}

.setup-details summary {
    color: var(--ink-soft);
    font-weight: 600;
    cursor: pointer;
}

.setup-details pre {
    margin: 10px 0 0;
    padding: 12px;
    overflow: auto;
    border-radius: 9px;
    background: #1c2433;
    color: #e8edf7;
    font-size: 11.5px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .shell {
        padding-top: 28px;
    }

    .card {
        padding: 26px 20px;
        border-radius: 20px;
    }

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

    .topbar-inner {
        min-height: 62px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .brand-sm-text small {
        display: none;
    }

    .admin-main {
        padding-top: 22px;
    }

    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form .input,
    .search-wrap,
    .search-form select.input {
        width: 100%;
        max-width: none;
    }

    .search-form .btn {
        width: 100%;
    }

    .toolbar>.btn {
        width: 100%;
    }

    .table-foot {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .stats {
        gap: 10px;
    }

    .stat {
        padding: 13px 14px 15px;
    }

    .stat-value {
        font-size: 23px;
    }

    .stat-label {
        font-size: 10.5px;
    }

    .seg span {
        height: 38px;
        font-size: 13.5px;
    }

    .site-brand .brand-mark {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .site-brand .brand-mark svg {
        width: 22px;
        height: 22px;
    }

    .topbar-actions {
        gap: 6px;
    }

    .topbar-actions .btn {
        padding: 0 10px;
        font-size: 12.5px;
    }

    .page-head h1 {
        font-size: 24px;
    }

    .login-card {
        padding: 26px 22px 22px;
    }
}

/* =========================================================
   Tiện ích
   ========================================================= */

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

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

@media print {
    body {
        background: #fff;
    }

    .admin-topbar,
    .toolbar,
    .table-foot,
    .cell-actions,
    .page-head .btn {
        display: none !important;
    }

    .admin-main {
        padding: 0;
    }

    .panel {
        border: 0;
        box-shadow: none;
    }

    table {
        min-width: 0;
        font-size: 11px;
    }
}