:root {
    --bg: #eef4ff;
    --surface: #f8fbff;
    --surface-strong: #ffffff;
    --ink: #112132;
    --muted: #587086;
    --line: rgba(17, 33, 50, 0.12);
    --sidebar: #0f2740;
    --sidebar-accent: #4cb8ff;
    --accent: #0077d8;
    --accent-soft: #d8ecff;
    --danger: #c44e45;
    --warning: #d1861f;
    --success: #278a63;
    --shadow: 0 18px 45px rgba(13, 35, 65, 0.16);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --font: "Segoe UI Variable", "IBM Plex Sans", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background:
    radial-gradient(circle at 12% 10%, rgba(76, 184, 255, 0.32), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(0, 119, 216, 0.22), transparent 26%),
    linear-gradient(180deg, #f4f8ff 0%, #eaf1fb 100%);
}

body.portal-shell {
    min-height: 100vh;
}

h1,
h2,
h3,
p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.auth-grid {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}

.auth-panel {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.auth-panel--hero {
    background: linear-gradient(145deg, #0f3252 0%, #0b2036 100%);
    color: #f4f7f8;
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 640px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.auth-panel--hero::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -80px;
    top: -130px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
}

.auth-panel--hero h1 {
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 1;
    max-width: 10ch;
    margin: 14px 0 18px;
}

.auth-panel--hero p {
    max-width: 58ch;
    color: rgba(244, 247, 248, 0.78);
    line-height: 1.65;
}

.hero-badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--sidebar-accent);
}

.hero-metrics {
    display: grid;
    gap: 14px;
    margin-top: 32px;
}

.hero-metrics article {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 18px 20px;
}

.hero-metrics strong,
.timeline-list strong,
.metric-list strong,
.user-chip strong,
.stat-card strong {
    display: block;
}

.hero-metrics span,
.timeline-list span,
.metric-list span,
.user-chip small,
.stat-card small,
.brand-subtitle,
.sidebar-footnote,
.panel-header p {
    color: var(--muted);
}

.auth-panel--form {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    padding: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-header h2 {
    font-size: 2rem;
    margin: 10px 0 10px;
}

.panel-header p {
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 16px;
    margin: 28px 0 18px;
}

.field-group {
    display: grid;
    gap: 8px;
}

.field-group span {
    font-weight: 600;
    color: #35424a;
}

.field-group input {
    width: 100%;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid rgba(25, 33, 38, 0.12);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-group input:focus {
    outline: none;
    border-color: rgba(13, 107, 120, 0.45);
    box-shadow: 0 0 0 4px rgba(13, 107, 120, 0.12);
}

.primary-button,
.ghost-button,
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    padding: 14px 20px;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, #0085ef 0%, #0061b0 100%);
    box-shadow: 0 14px 26px rgba(0, 119, 216, 0.28);
}

.ghost-button {
    color: #0e3556;
    background: rgba(0, 119, 216, 0.10);
    border: 1px solid rgba(0, 119, 216, 0.18);
}

.danger-button {
    color: #fff;
    background: linear-gradient(135deg, #c6543b 0%, #973424 100%);
}

.primary-button:hover,
.ghost-button:hover,
.danger-button:hover {
    transform: translateY(-1px);
}

.alert {
    border-radius: 14px;
    padding: 14px 16px;
    font-weight: 600;
}

.alert--error {
    background: rgba(180, 71, 53, 0.12);
    color: #8f3020;
}

.alert--success {
    background: rgba(45, 123, 87, 0.14);
    color: #1f5f41;
}

.auth-footer-note {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
    color: var(--muted);
}

.admin-shell {
    min-height: 100vh;
}

.admin-app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 300px 1fr;
}

.sidebar-panel {
    background: linear-gradient(180deg, #102b45 0%, #0b1f33 100%);
    color: #f5f7f8;
    padding: 30px 22px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, #5fd1ff 0%, #2ea0ff 100%);
    color: #04213d;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.sidebar-nav {
    display: grid;
    gap: 10px;
}

.nav-link {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    gap: 14px;
    border-radius: 18px;
    padding: 14px 16px;
    color: rgba(240, 248, 255, 0.92);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-link span {
    color: rgba(95, 209, 255, 0.92);
    font-weight: 700;
}

.nav-link:hover {
    transform: translateY(-1px);
    background: rgba(95, 209, 255, 0.12);
    border-color: rgba(95, 209, 255, 0.25);
}

.nav-link.active {
    background: rgba(95, 209, 255, 0.16);
    border-color: rgba(95, 209, 255, 0.34);
}

.nav-link.disabled {
    opacity: 0.52;
    pointer-events: none;
}

.sidebar-footnote {
    margin-top: auto;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
}

.workspace-panel {
    padding: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.06) 100%);
    zoom: 0.65;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 8px 0 24px;
    position: sticky;
    top: 0;
    z-index: 8;
    backdrop-filter: blur(10px);
}

.topbar h1 {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    margin-top: 6px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px 8px 8px;
}

.user-chip__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f3252 0%, #1b4a74 100%);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.workspace-content {
    display: grid;
    gap: 24px;
}

.dashboard-grid,
.stats-grid,
.content-grid {
    display: grid;
    gap: 20px;
}

.stats-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-card,
.stat-card,
.panel-card {
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-card {
    padding: 28px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    background:
        linear-gradient(120deg, rgba(0, 119, 216, 0.15) 0%, rgba(76, 184, 255, 0.08) 36%, rgba(255, 255, 255, 0.95) 70%),
        rgba(255, 255, 255, 0.9);
}

.hero-card.compact {
    align-items: start;
}

.hero-card h2 {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    max-width: 14ch;
    margin: 10px 0 12px;
}

.hero-card p {
    max-width: 62ch;
    line-height: 1.7;
    color: #4f616c;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-card {
    padding: 22px;
}

.stat-card span {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.stat-card strong {
    margin: 12px 0 8px;
    font-size: 1.9rem;
}

.stat-card.warning {
    background: linear-gradient(180deg, rgba(209, 134, 31, 0.16) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.stat-card.accent {
    background: linear-gradient(180deg, rgba(0, 119, 216, 0.15) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.panel-card {
    padding: 24px;
}

.panel-card.emphasis {
    background: linear-gradient(145deg, rgba(28, 42, 51, 0.96) 0%, rgba(45, 67, 80, 0.96) 100%);
    color: #f7fafb;
}

.panel-card.emphasis .timeline-list span,
.panel-card.emphasis .eyebrow,
.panel-card.emphasis .metric-list span {
    color: rgba(247, 250, 251, 0.7);
}

.panel-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-card__header h3 {
    font-size: 1.28rem;
    margin-top: 6px;
}

.metric-list,
.timeline-list {
    display: grid;
    gap: 14px;
}

.metric-list div,
.timeline-list li {
    list-style: none;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    background: rgba(0, 119, 216, 0.06);
}

.table-shell {
    overflow: auto;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    background: rgba(0, 119, 216, 0.08);
}

tbody tr:hover {
    background: rgba(0, 119, 216, 0.05);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(39, 138, 99, 0.14);
    color: #245f44;
    font-weight: 700;
    text-transform: capitalize;
}

.status-chip.muted {
    background: rgba(25, 33, 38, 0.08);
    color: #41515c;
}

.status-chip.warning {
    background: rgba(209, 134, 31, 0.16);
    color: #7a4d0a;
}

.status-chip.danger {
    background: rgba(196, 78, 69, 0.14);
    color: #7a2720;
}

.status-chip.accent {
    background: rgba(0, 119, 216, 0.14);
    color: #00408a;
}

.products-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.products-main-grid {
    align-items: start;
}

.products-side-grid {
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field-span-2 {
    grid-column: span 2;
}

.select-field,
.textarea-field {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(17, 33, 50, 0.16);
    background: #fff;
}

.select-field:focus,
.textarea-field:focus {
    outline: none;
    border-color: rgba(13, 107, 120, 0.45);
    box-shadow: 0 0 0 4px rgba(13, 107, 120, 0.12);
}

.select-field.compact {
    padding: 8px 10px;
    font-size: 0.9rem;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #44545e;
}

.form-actions-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.88rem;
}

.btn-sm.disabled {
    pointer-events: none;
    opacity: 0.45;
}

.table-empty {
    text-align: center;
    color: var(--muted);
    padding: 24px;
}

.table-subtext {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.status-form-inline {
    margin: 0;
}

.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    color: #43535d;
    flex-wrap: wrap;
}

.pagination-links {
    display: flex;
    gap: 8px;
}

.panel-note {
    color: #4a5a64;
    background: rgba(13, 107, 120, 0.06);
    border: 1px solid rgba(13, 107, 120, 0.16);
    padding: 14px;
    border-radius: 12px;
}

.stacked-copy {
    display: grid;
    gap: 14px;
}

.stacked-copy p {
    line-height: 1.7;
    color: #45545d;
}

.inline-code-block {
    padding: 14px 16px;
    border-radius: 14px;
    background: #18252d;
    color: #f5f7f8;
    font-weight: 700;
    letter-spacing: 0.02em;
    overflow-x: auto;
}

.inventory-balance-filter {
    margin-bottom: 14px;
}

.pricing-grid {
    align-items: start;
}

.pricing-preview-grid {
    margin-top: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.import-export-grid {
    align-items: start;
}

.sub-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    background: rgba(13, 107, 120, 0.04);
}

.sub-card h4 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.sub-card p {
    margin: 0 0 12px;
    color: #4c5d67;
    line-height: 1.6;
}

.single-col {
    grid-template-columns: 1fr;
}

.section-divider {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 20px 0;
}

.faq-stack {
    display: grid;
    gap: 12px;
}

.faq-stack--columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.7);
    display: grid;
    gap: 8px;
}

.faq-card p,
.faq-card small {
    color: #495862;
    line-height: 1.65;
}

.support-metric-list {
    max-height: 420px;
    overflow: auto;
}

.portal-page {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 48px;
    display: grid;
    gap: 22px;
}

.portal-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(13, 107, 120, 0.92) 0%, rgba(22, 42, 51, 0.94) 100%);
    color: #f7fbfc;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.portal-hero::before,
.portal-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.portal-hero::before {
    width: 280px;
    height: 280px;
    right: -60px;
    top: -90px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
}

.portal-hero::after {
    width: 260px;
    height: 260px;
    left: -100px;
    bottom: -120px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.portal-hero h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.05;
    max-width: 16ch;
    margin: 10px 0 14px;
}

.portal-hero p {
    max-width: 64ch;
    color: rgba(247, 251, 252, 0.82);
    line-height: 1.7;
}

.portal-cta-row {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portal-hero__actions {
    display: flex;
    align-items: flex-start;
}

.portal-hero__stats {
    width: min(360px, 100%);
    display: grid;
    gap: 10px;
    align-content: start;
    position: relative;
    z-index: 1;
}

.portal-hero__stats article {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    padding: 12px 14px;
}

.portal-hero__stats strong {
    display: block;
    font-size: 1.1rem;
}

.portal-hero__stats small {
    color: rgba(247, 251, 252, 0.82);
}

.portal-trust-strip {
    border-radius: 22px;
    border: 1px solid rgba(13, 107, 120, 0.22);
    background: rgba(255, 255, 255, 0.74);
    padding: 14px 18px;
    display: grid;
    gap: 10px;
}

.portal-trust-strip > span {
    color: #294957;
    font-weight: 700;
}

.portal-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-chip {
    background: rgba(13, 107, 120, 0.08);
    border: 1px solid rgba(13, 107, 120, 0.18);
    color: #24434f;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.87rem;
}

.portal-solution-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.solution-card {
    border-radius: 20px;
    border: 1px solid rgba(13, 107, 120, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(216, 238, 241, 0.55) 100%);
    padding: 16px;
}

.solution-card h3 {
    margin-bottom: 8px;
    color: #14313b;
}

.solution-card p {
    color: #45555f;
    line-height: 1.6;
}

.public-shell {
    min-height: 100vh;
}

/* ══ TOP INFO BAR ══ */
.topinfo-bar {
    background: #071828;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topinfo-bar__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.topinfo-bar__left,
.topinfo-bar__right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.topinfo-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.topinfo-link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.15s;
}
.topinfo-link:hover { color: #fff; }
.topinfo-zalo { color: #5ebbff; }
.topinfo-zalo:hover { color: #99d5ff; }
.topinfo-sep { color: rgba(255, 255, 255, 0.24); }

/* ══ STICKY HEADER ══ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(17, 33, 50, 0.10);
    box-shadow: 0 2px 16px rgba(17, 33, 50, 0.07);
}
.site-header__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    height: 66px;
}
.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.site-brand-mark,
.public-brand-mark {
    height: 44px;
    width: auto;
    max-width: 130px;
    border-radius: 8px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}
.site-brand__text strong {
    display: block;
    color: #0f2740;
    font-size: 0.98rem;
    font-weight: 800;
    white-space: nowrap;
}
.site-brand__text small {
    display: block;
    color: #587086;
    font-size: 0.76rem;
    white-space: nowrap;
}
.site-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.site-nav a {
    padding: 8px 13px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a3048;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.site-nav a:hover {
    background: rgba(0, 119, 216, 0.09);
    color: var(--accent);
}
.site-nav a.active {
    background: rgba(0, 119, 216, 0.12);
    color: #003d78;
    font-weight: 700;
}
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.header-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.10);
    border: 1px solid rgba(22, 163, 74, 0.22);
    color: #15803d;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}
.header-call-btn:hover {
    background: rgba(22, 163, 74, 0.18);
    border-color: rgba(22, 163, 74, 0.38);
    color: #14532d;
}
.site-nav-account,
.public-nav-account {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s;
}
.site-nav-account:hover,
.public-nav-account:hover {
    opacity: 0.88;
    color: #fff !important;
}

.public-page {
    width: min(1240px, calc(100% - 32px));
    margin: 12px auto 36px;
    display: grid;
    gap: 20px;
}

.public-hero {
    align-items: start;
}

.public-hero h1,
.public-hero h2 {
    max-width: 18ch;
}

.home-hero {
    align-items: stretch;
    gap: 20px;
}

.home-hero h1 {
    margin: 8px 0 14px;
    max-width: 16ch;
}

.home-hero__content {
    display: grid;
    gap: 16px;
    flex: 1;
}

.home-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-search input {
    flex: 1 1 280px;
    min-width: 200px;
    padding: 14px 16px;
    border-radius: 999px;
    border: 1px solid rgba(17, 33, 50, 0.14);
    background: rgba(255, 255, 255, 0.94);
}

.home-search input:focus {
    outline: none;
    border-color: rgba(0, 119, 216, 0.45);
    box-shadow: 0 0 0 4px rgba(0, 119, 216, 0.12);
}

.home-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.home-metrics article {
    border: 1px solid rgba(0, 119, 216, 0.16);
    background: rgba(255, 255, 255, 0.84);
    border-radius: 16px;
    padding: 14px;
}

.home-metrics span {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #4d6372;
}

.home-metrics strong {
    margin-top: 6px;
    font-size: 1.35rem;
}

.home-hero__spotlight {
    width: min(340px, 100%);
    border-radius: 22px;
    padding: 20px;
    border: 1px solid rgba(17, 33, 50, 0.12);
    background: linear-gradient(165deg, rgba(12, 36, 58, 0.94) 0%, rgba(11, 27, 46, 0.96) 100%);
    color: #f3f7ff;
    display: grid;
    align-content: start;
    gap: 12px;
}

.home-hero__spotlight small {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(243, 247, 255, 0.72);
    font-weight: 700;
}

.home-hero__spotlight h2 {
    margin: 0;
    font-size: 1.5rem;
    max-width: 12ch;
}

.home-hero__spotlight p {
    margin: 0;
    color: rgba(243, 247, 255, 0.8);
    line-height: 1.6;
}

.home-price-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
}

.home-price-row span {
    color: rgba(243, 247, 255, 0.7);
    font-size: 0.9rem;
}

.home-section {
    display: grid;
    gap: 14px;
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.home-product-card {
    border: 1px solid rgba(17, 33, 50, 0.12);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.86);
    display: grid;
    gap: 10px;
}

.home-product-card__head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.home-product-chip {
    border-radius: 999px;
    background: rgba(0, 119, 216, 0.14);
    color: #0f4a78;
    font-weight: 700;
    padding: 6px 10px;
    font-size: 0.76rem;
}

.home-product-card h4 {
    margin: 0;
    font-size: 1.02rem;
}

.home-product-card p {
    margin: 0;
    color: #4e616f;
}

.home-product-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
}

.home-product-card__meta span {
    color: #4d6371;
    font-size: 0.88rem;
}

.home-bottom-grid {
    align-items: stretch;
}

.home-bottom-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.portal-warranty-result {
    margin-top: 16px;
}

.portal-warranty-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.portal-warranty-grid div {
    display: grid;
    gap: 4px;
}

.portal-warranty-grid span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #3a5060;
}

.portal-warranty-grid strong {
    font-size: 0.98rem;
}

.portal-form-required {
    color: var(--danger);
}

.dashboard-module-nav {
    display: grid;
    gap: 10px;
}

.dashboard-module-link {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    border: 1px solid rgba(0, 119, 216, 0.16);
    background: rgba(0, 119, 216, 0.06);
    padding: 12px 14px;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.dashboard-module-link:hover {
    background: rgba(0, 119, 216, 0.14);
    border-color: rgba(0, 119, 216, 0.3);
    transform: translateY(-1px);
}

.dashboard-module-link span {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent);
    text-align: center;
}

.dashboard-module-link strong {
    display: block;
    font-size: 0.96rem;
}

.dashboard-module-link small {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 2px;
}

.products-hero {
    align-items: stretch;
}

.products-hero__content {
    display: grid;
    gap: 12px;
    flex: 1;
}

.products-search {
    display: grid;
    gap: 10px;
}

.products-search__input {
    position: relative;
}

.products-search__input input {
    border-radius: 16px;
}

.search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    border-radius: 16px;
    border: 1px solid rgba(17, 33, 50, 0.16);
    background: #fff;
    box-shadow: 0 16px 30px rgba(14, 37, 59, 0.16);
    overflow: hidden;
    z-index: 12;
}

.search-suggest__item {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(17, 33, 50, 0.08);
}

.search-suggest__item:last-child {
    border-bottom: 0;
}

.search-suggest__item:hover {
    background: rgba(0, 119, 216, 0.08);
}

.search-suggest__item span,
.search-suggest__item small {
    color: #4b6170;
}

.products-summary-grid {
    width: min(380px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.products-summary-grid article {
    border-radius: 16px;
    border: 1px solid rgba(0, 119, 216, 0.18);
    background: rgba(255, 255, 255, 0.86);
    padding: 14px;
}

.products-summary-grid span {
    color: #4d6373;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.products-summary-grid strong {
    display: block;
    margin-top: 8px;
    font-size: 1.28rem;
}

.products-content-grid {
    align-items: stretch;
}

.products-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.products-tag-cloud span {
    border-radius: 999px;
    border: 1px solid rgba(0, 119, 216, 0.2);
    background: rgba(0, 119, 216, 0.08);
    padding: 7px 12px;
    font-weight: 700;
    color: #0e3e67;
}

.products-catalog-panel {
    display: grid;
    gap: 14px;
}

.products-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.products-card-grid--related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.products-item-card {
    border: 1px solid rgba(17, 33, 50, 0.14);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.9);
    display: grid;
    gap: 10px;
}

.products-item-card__head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.products-item-card h4 {
    margin: 0;
    font-size: 1.02rem;
}

.products-item-card__meta {
    margin: 0;
    color: #4c6270;
    line-height: 1.55;
}

.products-item-card__stats {
    margin: 0;
    display: grid;
    gap: 8px;
}

.products-item-card__stats div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.products-item-card__stats dt {
    color: #49606e;
}

.products-item-card__stats dd {
    margin: 0;
    font-weight: 700;
}

.product-detail-hero {
    align-items: stretch;
}

.product-detail-hero__chips {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-detail-hero__chips span {
    border-radius: 999px;
    border: 1px solid rgba(0, 119, 216, 0.24);
    background: rgba(0, 119, 216, 0.1);
    color: #0f436f;
    font-weight: 700;
    padding: 6px 12px;
    font-size: 0.82rem;
}

.product-detail-hero__actions {
    width: min(340px, 100%);
    align-items: stretch;
}

.product-detail-price {
    border: 1px solid rgba(17, 33, 50, 0.14);
    border-radius: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.82);
    display: grid;
    gap: 4px;
}

.product-detail-price small {
    color: #516572;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-detail-price strong {
    font-size: 1.36rem;
}

.product-detail-price span {
    color: #4d6270;
    font-size: 0.9rem;
}

.product-detail-grid {
    align-items: start;
}

.product-metric-list {
    gap: 10px;
}

#order-items-table input,
#order-items-table select {
    width: 100%;
}

#order-items-table td {
    vertical-align: top;
}

@media (max-width: 1180px) {
    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .products-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-stack--columns {
        grid-template-columns: 1fr;
    }

    .portal-solution-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products-card-grid,
    .products-card-grid--related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .auth-grid,
    .admin-app,
    .two-columns,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-panel {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(320px, 88vw);
        z-index: 20;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
    }

    .admin-app.sidebar-open .sidebar-panel {
        transform: translateX(0);
    }

    .workspace-panel {
        padding: 20px;
    }

    .hero-card {
        flex-direction: column;
        align-items: start;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-span-2 {
        grid-column: span 1;
    }

    .pricing-preview-grid {
        grid-template-columns: 1fr;
    }

    .portal-hero {
        flex-direction: column;
    }

    .portal-solution-grid {
        grid-template-columns: 1fr;
    }

    .site-header__inner {
        height: auto;
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }
    .site-header__actions {
        display: none;
    }

    .home-hero {
        flex-direction: column;
    }

    .home-hero__spotlight {
        width: 100%;
    }

    .home-metrics {
        grid-template-columns: 1fr;
    }

    .home-product-grid {
        grid-template-columns: 1fr;
    }

    .products-hero {
        flex-direction: column;
    }

    .products-summary-grid {
        width: 100%;
    }

    .products-card-grid,
    .products-card-grid--related {
        grid-template-columns: 1fr;
    }

    .product-detail-hero__actions {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .auth-shell,
    .workspace-panel {
        padding: 16px;
    }

    .auth-panel--hero,
    .auth-panel--form,
    .panel-card,
    .hero-card,
    .stat-card {
        padding: 20px;
    }

    .topbar {
        align-items: start;
        flex-direction: column;
    }
}

/* ============================================================
   PUBLIC LAYOUT â€” nav account button, footer, back-to-top,
   float contact buttons, mobile hamburger
   ============================================================ */

/* Nav account button — defined above as .site-nav-account / .public-nav-account */

/* Mobile hamburger toggle */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    flex-shrink: 0;
}
.nav-mobile-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ══ SITE FOOTER ══ */
.site-footer {
    margin-top: 64px;
    background:
        radial-gradient(circle at top left, rgba(20, 120, 200, 0.16), transparent 34%),
        linear-gradient(180deg, #071522 0%, #0b1b2a 100%);
    color: #d7e6f5;
    border-top: 3px solid rgba(0, 119, 216, 0.28);
}
.site-footer__cta-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 20px 0;
}
.site-footer__cta {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    padding: 32px 36px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f5fa8 0%, #0b8a8f 100%);
    box-shadow: 0 12px 36px rgba(4, 16, 30, 0.30);
}
.site-footer__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.76);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    font-weight: 700;
}
.site-footer__cta h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(1.3rem, 2vw, 1.9rem);
    line-height: 1.25;
}
.site-footer__cta p {
    margin: 0;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
    font-size: 0.95rem;
}
.site-footer__cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}
.site-footer__ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.20);
}
.site-footer__ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.20);
}
.site-footer__body {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 20px 0;
}
.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(0, 1.5fr);
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.footer-brand .site-brand-mark,
.footer-brand .public-brand-mark {
    height: 48px;
    width: auto;
    max-width: 140px;
    flex-shrink: 0;
    opacity: 0.92;
}
.footer-brand strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 8px;
}
.footer-brand p {
    margin: 0;
    color: #9eb6cb;
    line-height: 1.7;
    font-size: 0.92rem;
}
.site-footer__meta {
    display: grid;
    gap: 12px;
}
.site-footer__meta p {
    margin: 0;
    color: #9eb6cb;
    line-height: 1.65;
}
.site-footer__meta strong,
.site-footer__meta a {
    color: #fff;
    text-decoration: none;
}
.site-footer__meta a:hover { color: #7dd3fc; }
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.footer-col h4 {
    color: #fff;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 14px;
}
.footer-col a {
    display: block;
    color: #9eb6cb;
    text-decoration: none;
    margin-bottom: 10px;
    line-height: 1.55;
    transition: color 0.15s;
}
.footer-col a:hover,
.site-footer__meta a:hover,
.site-footer__bottom a:hover {
    color: #fff;
}
.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0 24px;
    color: #7f97ad;
    font-size: 0.86rem;
    flex-wrap: wrap;
}
.site-footer__legal {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.site-footer__bottom a {
    color: #9eb6cb;
    text-decoration: none;
}

/* Contact page */
.contact-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}
.contact-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
}
.contact-hero p {
    margin: 0;
    max-width: 760px;
    color: #4c6270;
    line-height: 1.7;
}
.contact-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.contact-layout {
    align-items: start;
}
.contact-form {
    display: grid;
    gap: 18px;
}
.contact-form__textarea {
    min-height: 148px;
    resize: vertical;
}
.contact-form__note {
    color: #5f7381;
    font-size: 0.92rem;
}
.contact-side-stack {
    display: grid;
    gap: 18px;
}
.contact-card {
    display: grid;
    gap: 16px;
}
.contact-info-list {
    display: grid;
    gap: 14px;
}
.contact-info-list div {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(7, 21, 34, 0.03);
    border: 1px solid rgba(17, 33, 50, 0.08);
}
.contact-info-list span {
    display: block;
    margin-bottom: 6px;
    color: #677b88;
    font-size: 0.86rem;
}
.contact-info-list strong,
.contact-info-list a {
    color: #112132;
    text-decoration: none;
}
.contact-map-search {
    display: grid;
    gap: 14px;
}
.contact-map-frame {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(17, 33, 50, 0.08);
    min-height: 340px;
}
.contact-map-frame iframe {
    display: block;
    width: 100%;
    height: 340px;
    border: 0;
}
.contact-map-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--accent-dark, #0f5fa8);
    color: #fff;
}

/* Float contact buttons */
.float-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}
.float-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 11px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: opacity 0.15s, transform 0.15s;
    white-space: nowrap;
}
.float-btn:hover {
    opacity: 0.90;
    transform: translateY(-2px);
}
.float-call {
    background: #16a34a;
    color: #fff;
}
.float-call:hover {
    color: #fff;
}
.float-zalo {
    background: #0068FF;
    color: #fff;
}
.float-zalo:hover {
    color: #fff;
}

/* Mobile responsive â€” public layout */
/* Mobile responsive - public layout */
@media (max-width: 768px) {
    .nav-mobile-toggle {
        display: flex;
    }
    .site-header__inner {
        height: auto;
        padding: 10px 16px;
        flex-wrap: nowrap;
        gap: 8px;
    }
    .site-brand__text small {
        display: none;
    }
    .site-header__actions {
        display: none;
    }
    .site-nav {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(7, 24, 40, 0.97);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        z-index: 200;
        padding: 40px 24px;
    }
    .site-nav.open {
        display: flex;
    }
    .site-nav a {
        color: #f0f8ff;
        font-size: 1.05rem;
        font-weight: 600;
        padding: 12px 20px;
        width: 100%;
        max-width: 320px;
        text-align: center;
        border-radius: 12px;
        border: none;
    }
    .site-nav a:hover, .site-nav a.active {
        background: rgba(0, 119, 216, 0.22);
        color: #fff;
    }
    .topinfo-bar__inner {
        padding: 7px 14px;
        gap: 8px;
    }
    .topinfo-item:not(.topinfo-link) {
        display: none;
    }
    .site-footer__inner {
        grid-template-columns: 1fr;
    }
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    .float-btn span {
        display: none;
    }
    .float-btn {
        padding: 12px;
        border-radius: 50%;
    }
}

@media (max-width: 980px) {
    .contact-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__cta-actions {
        justify-content: flex-start;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-footer__cta-wrap {
        padding: 24px 14px 0;
    }

    .site-footer__cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
        border-radius: 16px;
    }

    .site-footer__cta-actions {
        justify-content: flex-start;
    }

    .site-footer__body {
        padding: 28px 14px 0;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .site-footer__bottom,
    .site-footer__legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .contact-map-actions,
    .contact-hero__actions {
        width: 100%;
    }

    .contact-map-actions a,
    .contact-hero__actions a {
        width: 100%;
    }
}
