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

:root {
    --portal-font: "Be Vietnam Pro", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --portal-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    font-family: var(--portal-font) !important;
    background: var(--background);
    color: var(--foreground);
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--portal-font) !important;
}

button,
input,
select,
textarea {
    font: inherit;
}

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

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

.container {
    width: min(1280px, calc(100vw - 48px));
    margin-inline: auto;
}

.portal-main {
    min-height: 70vh;
    padding: 0 !important;
}

.home-hero-title__nowrap {
    white-space: nowrap;
}

.site-navbar {
    position: fixed !important;
    inset: 0 0 auto;
    z-index: 80;
    border-bottom: 1px solid var(--border);
    background: color-mix(in oklab, var(--background) 84%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-navbar__inner {
    width: min(1280px, calc(100vw - 48px));
    min-height: 64px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
}

.site-brand__logo {
    display: block;
    width: auto;
    height: 36px;
    object-fit: contain;
}

.site-brand__mark {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.site-brand__text {
    color: var(--foreground);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.site-brand__text span {
    color: var(--primary);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 4px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color .18s ease, color .18s ease;
}

.site-nav a.active,
.site-nav a:hover {
    color: var(--primary);
    background: color-mix(in oklab, var(--primary) 10%, transparent);
}

.site-navbar__actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 12px;
}

.site-login {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 600;
    transition: color .18s ease;
}

.site-login:hover {
    color: var(--foreground);
}

.site-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 8px;
    padding: 0 14px;
    color: var(--primary-foreground);
    background: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color .18s ease, transform .18s ease;
}

.site-cta:hover {
    background: color-mix(in oklab, var(--primary) 90%, black);
    transform: translateY(-1px);
}

.crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.crumbs__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted-foreground);
}

.crumbs__link:hover {
    color: var(--foreground);
}

.crumbs__sep {
    color: color-mix(in oklab, var(--muted-foreground) 50%, transparent);
    font-size: 0.7rem;
}

.crumbs__current {
    color: var(--foreground);
    font-weight: 600;
}

.article-prose p {
    margin: 0 0 1.1rem;
    color: var(--muted-foreground);
    font-size: 1.04rem;
    line-height: 1.9;
}

.article-prose h2 {
    margin: 2.2rem 0 0.9rem;
    color: var(--foreground);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.article-prose h2:first-child {
    margin-top: 0;
}

.article-prose strong {
    color: var(--foreground);
    font-weight: 800;
}

.article-prose a {
    color: var(--primary);
    font-weight: 700;
}

.article-prose,
.article-prose > .rounded-2xl {
    min-width: 0;
}

.article-prose pre {
    max-width: 100%;
    margin: 1.6rem 0;
    overflow-x: auto;
    border: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
    border-radius: 1rem;
    padding: 1.1rem 1.25rem;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .98), rgba(30, 41, 59, .96)),
        var(--foreground);
    color: #e2e8f0;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
    -webkit-overflow-scrolling: touch;
}

.article-prose code {
    font-family: var(--portal-mono);
    font-size: .92em;
}

.article-prose :not(pre) > code {
    border: 1px solid color-mix(in oklab, var(--primary) 12%, transparent);
    border-radius: .45rem;
    padding: .12rem .38rem;
    background: color-mix(in oklab, var(--primary) 8%, transparent);
    color: var(--foreground);
    white-space: normal;
    overflow-wrap: anywhere;
}

.article-prose pre code {
    display: block;
    min-width: max-content;
    padding: 0;
    background: transparent;
    color: inherit;
    line-height: 1.7;
    white-space: pre;
    tab-size: 2;
}

.sub,
.muted {
    color: var(--muted-foreground);
    line-height: 1.7;
}

.article-prose ul,
.article-prose ol {
    margin: 1rem 0 1.2rem;
    padding-left: 1.25rem;
    color: var(--muted-foreground);
    line-height: 1.85;
}

/* Compatibility utilities for Tailwind classes used by the PHP templates but absent from the ripped bundle. */
.-top-3 { top: -0.75rem; }
.left-6 { left: 1.5rem; }
.mt-5 { margin-top: 1.25rem; }
.pb-12 { padding-bottom: 3rem; }
.sticky { position: sticky; }
.rounded-3xl { border-radius: 1.5rem; }
.min-w-\[860px\] { min-width: 860px; }
.text-\[1\.02rem\] { font-size: 1.02rem; }
.bg-muted\/30 { background-color: color-mix(in oklab, var(--muted) 30%, transparent); }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, .10); }
.bg-slate-500\/10 { background-color: rgba(100, 116, 139, .10); }
.border-primary\/15 { border-color: color-mix(in oklab, var(--primary) 15%, transparent); }
.text-emerald-600 { color: #059669; }
.text-slate-500 { color: #64748b; }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:bg-primary\/10:hover { background-color: color-mix(in oklab, var(--primary) 10%, transparent); }
.group[open] .group-open\:rotate-180 { transform: rotate(180deg); }

.bg-gradient-to-br.from-primary.to-accent a.bg-white,
.bg-gradient-to-br.from-primary.to-accent .bg-white.text-primary,
a.bg-white.text-primary {
    color: var(--primary) !important;
    background: #fff !important;
}

.bg-gradient-to-br.from-primary.to-accent a.bg-white:hover,
a.bg-white.text-primary:hover {
    color: var(--primary) !important;
    background: rgba(255, 255, 255, .92) !important;
}

.portal-main a.bg-primary,
.portal-main button.bg-primary,
.btn-primary,
.site-cta,
.footer-actions a.footer-primary {
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    background:
        linear-gradient(135deg, #1d4ed8 0%, #2563eb 46%, #06b6d4 100%) !important;
    box-shadow: 0 16px 34px rgba(37, 99, 235, .22) !important;
}

.portal-main a.bg-primary:hover,
.portal-main button.bg-primary:hover,
.btn-primary:hover,
.site-cta:hover,
.footer-actions a.footer-primary:hover {
    color: #fff !important;
    background:
        linear-gradient(135deg, #1e40af 0%, #1d4ed8 48%, #0891b2 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(37, 99, 235, .28) !important;
}

.portal-main a.bg-secondary,
.portal-main button.bg-secondary,
.btn-secondary {
    color: #0f2f63 !important;
    border: 1px solid rgba(37, 99, 235, .20) !important;
    background:
        linear-gradient(180deg, rgba(239, 246, 255, .98), rgba(224, 242, 254, .92)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .72),
        0 10px 24px rgba(15, 23, 42, .07) !important;
}

.portal-main a.bg-secondary:hover,
.portal-main button.bg-secondary:hover,
.btn-secondary:hover {
    color: #123a78 !important;
    border-color: rgba(37, 99, 235, .34) !important;
    background:
        linear-gradient(180deg, rgba(219, 234, 254, 1), rgba(186, 230, 253, .90)) !important;
    transform: translateY(-1px);
}

.portal-main a.bg-primary i,
.portal-main a.bg-secondary i,
.portal-main a.bg-white i,
.btn i,
.site-cta i {
    color: currentColor !important;
}

.portal-motion-ready .reveal-on-scroll {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    filter: blur(8px);
    transition:
        opacity .62s cubic-bezier(.16, 1, .3, 1),
        transform .62s cubic-bezier(.16, 1, .3, 1),
        filter .62s cubic-bezier(.16, 1, .3, 1);
    transition-delay: calc(var(--reveal-index, 0) * 72ms);
    will-change: opacity, transform, filter;
}

.portal-motion-ready .reveal-on-scroll.reveal-left {
    transform: translate3d(-30px, 0, 0);
}

.portal-motion-ready .reveal-on-scroll.reveal-right {
    transform: translate3d(30px, 0, 0);
}

.portal-motion-ready .reveal-on-scroll.reveal-scale {
    transform: translate3d(0, 16px, 0) scale(.96);
}

.portal-motion-ready .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

.portal-motion-ready .reveal-on-scroll.reveal-fast {
    transition-duration: .44s;
}

.portal-main > section:first-child [class*="blur-3xl"] {
    animation: portal-orb-drift 12s ease-in-out infinite alternate;
}

.portal-main > section:first-child [class*="blur-3xl"]:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 14s;
}

.site-brand__mark {
    animation: portal-mark-glow 3.8s ease-in-out infinite;
}

@keyframes portal-orb-drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(18px, 14px, 0) scale(1.05);
    }
}

@keyframes portal-mark-glow {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(37, 99, 235, 0);
    }
    50% {
        box-shadow: 0 0 28px rgba(37, 99, 235, .28);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 9px 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.btn-primary {
    color: var(--primary-foreground);
    background: var(--primary);
}

.btn-secondary {
    color: var(--secondary-foreground);
    background: var(--secondary);
}

.notice {
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 600;
}

.notice.ok {
    border: 1px solid rgba(16, 185, 129, .24);
    color: #047857;
    background: rgba(16, 185, 129, .09);
}

.notice.err {
    border: 1px solid rgba(239, 68, 68, .24);
    color: #b91c1c;
    background: rgba(239, 68, 68, .09);
}

footer {
    padding: 0;
    color: rgba(255,255,255,.78);
    background: var(--foreground);
}

.footer-shell {
    padding: 56px 0 34px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(160px, 1fr));
    gap: 28px;
}

.footer-card {
    min-width: 0;
}

.footer-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    border-radius: 999px;
    padding: 6px 10px;
    color: color-mix(in oklab, var(--primary) 76%, white);
    background: rgba(255,255,255,.08);
    font-size: 0.78rem;
    font-weight: 800;
}

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

.footer-brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
}

.footer-brand strong,
.footer-card h3 {
    color: #fff;
}

.footer-summary {
    max-width: 38ch;
    color: rgba(255,255,255,.64);
    line-height: 1.7;
}

.footer-actions,
.footer-list,
.footer-contact {
    display: grid;
    gap: 10px;
}

.footer-actions {
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(0, max-content));
}

.footer-actions a,
.footer-list a,
.footer-contact a,
.footer-contact div {
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 10px;
    color: rgba(255,255,255,.72);
    transition: color .18s ease, background-color .18s ease;
}

.footer-actions a {
    padding: 10px 12px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-weight: 700;
}

.footer-actions a.footer-primary {
    background: var(--primary);
}

.footer-list a,
.footer-contact a,
.footer-contact div {
    padding: 7px 0;
}

.footer-list a:hover,
.footer-contact a:hover {
    color: #fff;
}

.footer-contact__logo {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 36px;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 22px;
    color: rgba(255,255,255,.56);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.floating-contact {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 70;
    display: grid;
    justify-items: end;
    gap: 10px;
}

.floating-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    border-radius: 999px;
    padding: 7px 14px 7px 7px;
    color: #fff;
    box-shadow: 0 16px 34px rgba(15,23,42,.22);
    transition: transform .18s ease, box-shadow .18s ease;
}

.floating-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(15,23,42,.28);
}

.floating-contact-btn.phone {
    background: linear-gradient(135deg, #f97316, #fb923c);
}

.floating-contact-btn.zalo {
    background: linear-gradient(135deg, #0068ff, #2b8cff);
}

.floating-contact-btn.facebook {
    background: linear-gradient(135deg, #0866ff, #1b74e4);
}

.floating-contact-btn__icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
}

.floating-contact-btn__icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.floating-contact-btn__text {
    display: grid;
    gap: 1px;
    line-height: 1.05;
}

.floating-contact-btn__label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    opacity: .82;
}

.floating-contact-btn__value {
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 23, .82);
}

.image-lightbox.is-open {
    display: flex;
}

.image-lightbox__dialog {
    position: relative;
    max-width: min(1120px, 96vw);
    max-height: 92vh;
}

.image-lightbox__img {
    display: block;
    max-height: 82vh;
    border-radius: 18px;
    background: #fff;
}

.image-lightbox__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    color: var(--foreground);
    background: #fff;
    cursor: pointer;
}

.image-lightbox__caption {
    margin-top: 10px;
    color: rgba(255,255,255,.82);
    text-align: center;
}

.cms-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    width: min(1100px, calc(100vw - 48px));
    margin-inline: auto;
    padding: 120px 0 64px;
}

.cms-login-card,
.cms-login-side,
.cms-panel,
.cms-hero {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .08);
}

.cms-login-card,
.cms-login-side {
    padding: 28px;
}

.cms-login-side {
    display: grid;
    align-content: center;
    gap: 14px;
}

.cms-mini-note {
    display: grid;
    gap: 4px;
    border-radius: 16px;
    background: var(--muted);
    padding: 14px;
}

.cms-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--primary);
    background: color-mix(in oklab, var(--primary) 10%, transparent);
    font-size: 0.78rem;
    font-weight: 800;
}

.cms-shell {
    width: min(1320px, calc(100vw - 48px));
    margin-inline: auto;
    padding: 108px 0 64px;
}

.cms-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 24px;
}

.cms-hero h1,
.cms-panel h2 {
    margin: 0 0 8px;
}

.cms-hero .sub {
    max-width: 78ch;
    margin: 0;
    color: var(--muted-foreground);
}

.cms-hero-actions,
.actions,
.cms-media-actions,
.cms-editor-head-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cms-tabbar {
    display: flex;
    gap: 8px;
    margin: 18px 0;
    overflow-x: auto;
}

.cms-tab {
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--muted-foreground);
    background: var(--card);
    font-weight: 700;
}

.cms-tab.is-active {
    color: var(--primary-foreground);
    border-color: var(--primary);
    background: var(--primary);
}

.cms-dashboard {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.cms-sidebar,
.cms-editor-pane {
    display: grid;
    gap: 18px;
}

.cms-panel {
    padding: 20px;
}

.cms-form {
    display: grid;
    gap: 10px;
}

.cms-form label {
    color: var(--foreground);
    font-size: 0.9rem;
    font-weight: 700;
}

.cms-form input,
.cms-form select,
.cms-form textarea {
    width: 100%;
    border: 1px solid var(--input);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--foreground);
    background: var(--background);
    outline: none;
}

.cms-form textarea {
    min-height: 100px;
    resize: vertical;
}

.cms-codearea {
    min-height: 560px !important;
    color: #dbeafe !important;
    background: #071923 !important;
    font-family: var(--portal-mono) !important;
    font-size: 0.88rem;
    line-height: 1.65;
}

.cms-meta-panel,
.cms-checklist {
    display: grid;
    gap: 10px;
}

.cms-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 12px;
    background: var(--muted);
    padding: 10px 12px;
}

.cms-meta-row span,
.cms-checklist,
.cms-upload-note,
.cms-editor-head-meta,
.cms-empty-state p,
.cms-media-body p,
.cms-media-url {
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.cms-checklist {
    margin: 0;
    padding-left: 18px;
    line-height: 1.7;
}

.cms-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.cms-dropzone {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 140px;
    border: 1.5px dashed color-mix(in oklab, var(--primary) 46%, var(--border));
    border-radius: 18px;
    background: color-mix(in oklab, var(--primary) 7%, transparent);
    cursor: pointer;
}

.cms-dropzone.is-dragover {
    border-color: var(--primary);
    background: color-mix(in oklab, var(--primary) 13%, transparent);
}

.cms-dropzone__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.cms-dropzone__copy {
    display: grid;
    gap: 6px;
    padding: 18px;
    text-align: center;
    pointer-events: none;
}

.cms-dropzone__copy strong {
    color: var(--foreground);
}

.cms-dropzone__copy span,
.cms-dropzone__copy small {
    color: var(--muted-foreground);
}

.cms-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.cms-media-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--background);
}

.cms-media-thumb {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    background: var(--muted);
}

.cms-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cms-media-thumb__placeholder {
    color: var(--primary);
    font-size: 2rem;
}

.cms-media-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 999px;
    padding: 5px 8px;
    color: var(--primary-foreground);
    background: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
}

.cms-media-body {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.cms-media-body h3 {
    margin: 0;
    font-size: 1rem;
}

.cms-media-url {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-media-actions {
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding: 12px 14px;
}

.cms-danger-btn {
    background: #ef4444;
}

.cms-empty-state {
    border: 1px dashed var(--border);
    border-radius: 18px;
    padding: 28px;
    text-align: center;
}

.cms-json-tools {
    margin-top: 18px;
}

.cms-json-tools summary {
    cursor: pointer;
    color: var(--primary);
    font-weight: 800;
}

@media (max-width: 1180px) {
    .site-navbar__inner {
        width: min(1280px, calc(100vw - 32px));
        gap: 10px;
    }

    .site-nav a {
        padding-inline: 9px;
        font-size: 0.82rem;
    }
}

@media (min-width: 640px) {
    .sm\:p-8 { padding: 2rem; }
    .sm\:p-10 { padding: 2.5rem; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:items-start { align-items: flex-start; }
    .lg\:p-10 { padding: 2.5rem; }
    .lg\:w-96 { width: 24rem; }
}

@media (max-width: 900px) {
    .container,
    .site-navbar__inner,
    .cms-shell,
    .cms-login-shell {
        width: min(100% - 28px, 1280px);
    }

    .site-navbar__inner {
        flex-wrap: wrap;
        min-height: 0;
        padding: 10px 0 8px;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .site-login {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 0 10px;
        background: color-mix(in oklab, var(--background) 72%, transparent);
        color: var(--foreground);
        white-space: nowrap;
    }

    .cms-login-shell,
    .cms-dashboard {
        grid-template-columns: 1fr;
    }

    .cms-hero,
    .cms-editor-head,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

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

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    .site-navbar__actions {
        gap: 6px;
    }

    .site-brand__logo {
        height: 30px;
    }

    .site-login {
        min-height: 32px;
        padding-inline: 8px;
        font-size: 0.78rem;
    }

    .site-cta {
        min-height: 32px;
        padding-inline: 8px;
        font-size: 0.78rem;
    }

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

    .floating-contact {
        right: 10px;
        bottom: 10px;
    }

    .floating-contact-btn {
        min-height: 44px;
        padding-right: 8px;
    }

    .floating-contact-btn__text {
        display: none;
    }

    .cms-shell {
        padding-top: 130px;
    }

    .cms-codearea {
        min-height: 420px !important;
    }
}

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