/* Romoid site header: command-bar chrome. */

:root {
    --romoid-header-ink: #0b1f3a;
    --romoid-header-copy: #3d5573;
    --romoid-header-muted: #7a90a8;
    --romoid-header-line: #d7e3f2;
    --romoid-header-line-strong: #c4d6ea;
    --romoid-header-surface: #ffffff;
    --romoid-header-page: #f4f8fd;
    --romoid-header-soft: #eef4fb;
    --romoid-header-blue: #1d6fd8;
    --romoid-header-blue-dark: #1557b0;
    --romoid-header-blue-soft: #e8f2ff;
    --romoid-header-highlight: #4fc3f7;
    --romoid-header-shadow: 0 14px 32px rgba(11, 31, 58, 0.08);
}

.vz-site-header {
    --ink: var(--romoid-header-ink);
    --ink-soft: var(--romoid-header-copy);
    --ink-mute: var(--romoid-header-muted);
    --line: var(--romoid-header-line);
    --line-soft: var(--romoid-header-soft);
    --surface: var(--romoid-header-surface);
    --surface-soft: var(--romoid-header-page);
    --surface-mute: var(--romoid-header-page);
    --accent: var(--romoid-header-blue);
    --accent-soft: var(--romoid-header-blue-dark);
    --accent-50: var(--romoid-header-blue-soft);
    --highlight: var(--romoid-header-highlight);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 0.75rem !important;
    border-bottom: 1px solid var(--romoid-header-line) !important;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 3px rgba(11, 31, 58, 0.04), 0 4px 12px rgba(11, 31, 58, 0.02) !important;
}

.vz-site-header::after {
    content: none;
}

.vz-site-header,
.vz-site-header > .bg-surface,
.vz-site-header .container {
    overflow: visible;
}

.vz-site-header > .bg-surface {
    background: transparent;
}

.vz-site-header .vz-header-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 46px;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
}

.vz-site-header .vz-header-brand {
    display: inline-flex;
    min-width: 0;
    min-height: 32px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.vz-site-header .vz-header-brand img {
    display: block;
    width: auto;
    height: 28px;
    max-width: 88px;
    object-fit: contain;
}

@media (min-width: 640px) {
    .vz-site-header .vz-header-brand img {
        height: 32px;
        max-width: 115px;
    }
}

.vz-site-header .logo-sun-glow {
    filter: drop-shadow(0 1px 3px rgba(29, 111, 216, 0.25));
    transition: filter 0.15s ease, transform 0.15s ease;
}

.vz-site-header .logo-sun-glow:hover {
    filter: drop-shadow(0 2px 6px rgba(79, 195, 247, 0.42));
    transform: scale(1.02);
}

.vz-site-header .vz-header-search {
    display: flex;
    min-width: 0;
    height: 34px;
    min-height: 34px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--romoid-header-line);
    border-radius: 999px;
    background: var(--romoid-header-page);
    box-shadow: none;
    padding: 2px 3px 2px 0;
    transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.vz-site-header .vz-header-search-icon {
    display: inline-flex;
    width: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    color: var(--romoid-header-muted);
}

.vz-site-header .vz-header-search-icon svg {
    display: block;
    width: 14px;
    height: 14px;
}

.vz-site-header .vz-header-search input,
.vz-site-header .vz-header-search button {
    min-height: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none;
}

.vz-site-header .vz-header-search input {
    min-width: 0;
    flex: 1 1 auto;
    height: 100%;
    padding: 0 8px 0 0;
    background: transparent;
    color: var(--romoid-header-ink);
    font-size: 12.5px;
}

.vz-site-header .vz-header-search input::placeholder {
    color: var(--romoid-header-muted);
    font-size: 12px;
}

.vz-site-header .vz-header-search button {
    display: none;
    min-width: 60px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--romoid-header-blue);
    color: #fff;
    font-size: 11.5px;
    font-weight: 750;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 140ms ease, box-shadow 140ms ease, transform 100ms ease;
}

.vz-site-header .vz-header-search button:hover {
    background: var(--romoid-header-blue-dark);
    box-shadow: 0 2px 6px rgba(29, 111, 216, 0.28);
}

.vz-site-header .vz-header-search button:active {
    transform: scale(0.97);
}

.vz-site-header .vz-header-search:focus-within {
    border-color: color-mix(in srgb, var(--romoid-header-blue) 65%, #fff);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29, 111, 216, 0.12);
}

.vz-site-header .vz-header-tools {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.vz-site-header :is(a, button, input):focus-visible {
    outline: 2px solid rgba(29, 111, 216, 0.35);
    outline-offset: 1px;
}

.vz-site-header .vz-header-translate,
.vz-site-header .vz-header-ranking,
.vz-site-header .vz-mobile-linh-thach,
.vz-site-header a[title="Linh Thạch"],
.vz-site-header a[title="Crystals"] {
    display: none !important;
}

.vz-site-header .vz-header-nav {
    display: none;
    align-items: center;
}

.vz-site-header .vz-header-nav a {
    display: inline-flex;
    min-height: 30px;
    height: 30px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--romoid-header-copy);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color 140ms ease, color 140ms ease;
}

.vz-site-header .vz-header-nav a:hover,
.vz-site-header .vz-header-nav a:focus-visible {
    background: var(--romoid-header-blue-soft);
    color: var(--romoid-header-blue-dark);
}

.vz-site-header .vz-header-actions {
    display: none;
    align-items: center;
    gap: 4px;
}

.vz-site-header .vz-desktop-control,
.vz-site-header .vz-header-icon,
.vz-site-header .vz-header-chip {
    min-height: 30px;
    height: 30px;
}

.vz-site-header .vz-header-icon {
    width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    border: 1px solid transparent !important;
    border-radius: 999px;
    background: transparent !important;
    color: var(--romoid-header-copy);
    box-shadow: none !important;
    transition: background-color 140ms ease, color 140ms ease;
}

.vz-site-header .vz-header-icon:hover,
.vz-site-header .vz-header-chip:hover {
    background: var(--romoid-header-blue-soft) !important;
    color: var(--romoid-header-blue-dark);
}

.vz-site-header form[action*="logout"] button:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

.vz-site-header .vz-header-chip {
    min-height: 30px;
    height: 30px;
    padding: 0 9px;
    border: 1px solid transparent !important;
    border-radius: 999px;
    background: transparent !important;
    color: var(--romoid-header-copy);
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    box-shadow: none !important;
    transition: background-color 140ms ease, color 140ms ease;
}

.vz-site-header .vz-header-cta {
    border-color: var(--romoid-header-blue) !important;
    background: var(--romoid-header-blue) !important;
    color: #fff !important;
    font-weight: 800;
}

.vz-site-header .vz-header-cta:hover {
    border-color: var(--romoid-header-blue-dark) !important;
    background: var(--romoid-header-blue-dark) !important;
    color: #fff !important;
}

.vz-site-header .vz-header-notification {
    position: relative;
    z-index: 70;
}

.vz-site-header .vz-mobile-global-chat,
.vz-site-header .vz-mobile-header-notif button {
    min-height: 32px !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--romoid-header-copy);
    box-shadow: none;
    transition: background-color 140ms ease, color 140ms ease;
}

.vz-site-header .vz-mobile-menu-toggle {
    min-height: 32px !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0;
    border: 1px solid var(--romoid-header-line) !important;
    border-radius: 8px;
    background: var(--romoid-header-page) !important;
    color: var(--romoid-header-copy);
    box-shadow: 0 1px 2px rgba(11, 31, 58, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.vz-site-header .vz-mobile-menu-toggle:hover {
    border-color: color-mix(in srgb, var(--romoid-header-blue) 45%, var(--romoid-header-line)) !important;
    background: var(--romoid-header-blue-soft) !important;
    color: var(--romoid-header-blue-dark);
}

.vz-site-header .vz-mobile-menu-toggle[aria-expanded="true"] {
    border-color: var(--romoid-header-blue) !important;
    background: var(--romoid-header-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(29, 111, 216, 0.18);
}

.vz-site-header .vz-mobile-global-chat:hover,
.vz-site-header .vz-mobile-header-notif button:hover {
    background: var(--romoid-header-blue-soft);
    color: var(--romoid-header-blue-dark);
}

.vz-site-header .vz-mobile-menu-toggle svg,
.vz-site-header .vz-mobile-global-chat svg,
.vz-site-header .vz-mobile-header-notif button svg {
    width: 16px;
    height: 16px;
    display: block;
}

.vz-site-header .vz-mobile-menu-toggle .vz-menu-bars {
    display: flex;
    width: 14px;
    height: 9px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.vz-site-header .vz-mobile-menu-toggle .vz-menu-bars span {
    display: block;
    width: 14px;
    height: 1.75px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 160ms ease, opacity 140ms ease;
}

.vz-site-header .vz-mobile-menu-toggle .vz-menu-bars span:nth-child(2) {
    display: none;
}

.vz-site-header .vz-mobile-menu-toggle[aria-expanded="true"] .vz-menu-bars span:nth-child(1) {
    transform: translateY(3.6px) rotate(45deg);
}

.vz-site-header .vz-mobile-menu-toggle[aria-expanded="true"] .vz-menu-bars span:nth-child(3) {
    transform: translateY(-3.6px) rotate(-45deg);
}

.vz-site-header .vz-mobile-drawer {
    position: absolute;
    top: calc(100% + 4px);
    right: 12px;
    z-index: 100200;
    width: max-content;
    min-width: 130px;
    max-width: 180px;
    margin: 0;
    padding: 4px;
    border: 1px solid var(--romoid-header-line);
    border-radius: 10px;
    background: var(--romoid-header-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(11, 31, 58, 0.12), 0 2px 6px rgba(11, 31, 58, 0.04);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

@media (min-width: 640px) {
    .vz-site-header .vz-mobile-drawer {
        right: 16px;
    }
}

.vz-site-header .vz-mobile-nav,
.vz-site-header .vz-mobile-account {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vz-site-header .vz-mobile-nav a,
.vz-site-header .vz-mobile-account-link,
.vz-site-header .vz-mobile-admin,
.vz-site-header .vz-header-cta-mobile,
.vz-site-header .vz-mobile-logout {
    display: flex;
    align-items: center;
    min-height: 29px !important;
    height: 29px;
    padding: 0 10px;
    border-radius: 6px;
    border: 0 !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 120ms ease, color 120ms ease;
}

.vz-site-header .vz-mobile-nav a {
    background: transparent;
    color: var(--romoid-header-ink);
}

.vz-site-header .vz-mobile-nav a:hover {
    background: var(--romoid-header-blue-soft);
    color: var(--romoid-header-blue-dark);
}

.vz-site-header .vz-mobile-admin {
    background: rgba(217, 119, 6, 0.08);
    color: #b45309;
    font-weight: 700;
}

.vz-site-header .vz-mobile-admin:hover {
    background: rgba(217, 119, 6, 0.16);
    color: #92400e;
}

.vz-site-header .vz-mobile-account {
    border-top: 1px solid var(--romoid-header-line);
    padding-top: 3px;
    margin-top: 2px;
}

.vz-site-header .vz-mobile-account-link {
    background: transparent;
    color: var(--romoid-header-ink);
}

.vz-site-header .vz-mobile-account-link:hover {
    background: var(--romoid-header-page);
}

.vz-site-header .vz-mobile-logout {
    width: 100%;
    background: transparent;
    color: #dc2626;
    cursor: pointer;
    justify-content: flex-start;
}

.vz-site-header .vz-mobile-logout:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.vz-site-header .vz-header-cta-mobile {
    background: var(--romoid-header-blue);
    color: #ffffff;
    justify-content: center;
    font-weight: 700;
}

.vz-site-header .vz-header-cta-mobile:hover {
    background: var(--romoid-header-blue-dark);
}

.vz-notification-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--romoid-header-line);
    border-radius: 16px;
    background: var(--romoid-header-surface);
    color: var(--romoid-header-ink);
    box-shadow: var(--romoid-header-shadow);
}

.vz-site-header .vz-notification-panel a.vz-notification-panel__item,
.vz-site-header .vz-notification-panel a.vz-notification-panel__footer {
    min-height: 0;
}

.vz-notification-panel__header,
.vz-notification-panel__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 14px;
}

.vz-notification-panel__header {
    border-bottom: 1px solid var(--romoid-header-line);
}

.vz-notification-panel__title {
    color: var(--romoid-header-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vz-notification-panel__count {
    display: inline-flex;
    min-height: 20px;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--romoid-header-blue-soft);
    color: var(--romoid-header-blue-dark);
    font-size: 10px;
    font-weight: 800;
}

.vz-notification-panel__list {
    max-height: min(22rem, 55vh);
    overflow: auto;
    overscroll-behavior: contain;
}

.vz-notification-panel__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 48px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--romoid-header-soft);
    color: inherit;
    text-decoration: none;
}

.vz-notification-panel__item:last-child {
    border-bottom: 0;
}

.vz-notification-panel__item:hover,
.vz-notification-panel__item:focus-visible {
    background: var(--romoid-header-page);
}

.vz-notification-panel__item.is-unread {
    background: color-mix(in srgb, var(--romoid-header-blue-soft) 58%, #fff);
}

.vz-notification-panel__dot {
    width: 7px;
    height: 7px;
    margin-top: 7px;
    flex: 0 0 auto;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px #c8c8c8;
}

.vz-notification-panel__item.is-unread .vz-notification-panel__dot {
    background: var(--romoid-header-blue);
    box-shadow: 0 0 0 3px rgba(29, 111, 216, 0.14);
}

.vz-notification-panel__text {
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    color: var(--romoid-header-copy);
    font-size: 13px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.vz-notification-panel__name {
    font-weight: 750;
}

.vz-notification-panel__time {
    display: block;
    margin-top: 3px;
    color: var(--romoid-header-muted);
    font-size: 11px;
}

.vz-notification-panel__empty {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 28px 16px;
    color: var(--romoid-header-muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.vz-notification-panel__footer {
    justify-content: center;
    border-top: 1px solid var(--romoid-header-line);
    background: var(--romoid-header-page);
    color: var(--romoid-header-copy);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.vz-notification-panel__footer:hover {
    color: var(--romoid-header-blue-dark);
}

@media (min-width: 640px) {
    .vz-site-header .vz-header-shell {
        gap: 12px;
        padding: 4px 16px;
    }

    .vz-site-header .vz-header-brand img {
        height: 32px;
        max-width: 115px;
    }

    .vz-site-header .vz-header-search-icon {
        display: inline-flex;
    }

    .vz-site-header .vz-header-search input {
        padding-left: 0;
    }
}

@media (min-width: 1024px) {
    .vz-site-header .vz-header-shell {
        min-height: 50px;
        gap: 14px;
        padding-inline: 0;
        padding-block: 4px;
    }

    .vz-site-header .vz-header-search {
        height: 36px;
        min-height: 36px;
        max-width: 480px;
        margin-inline: auto;
    }

    .vz-site-header .vz-header-search button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .vz-site-header .vz-header-nav {
        display: flex;
    }

    .vz-site-header .vz-desktop-control,
    .vz-site-header .vz-header-icon,
    .vz-site-header .vz-header-chip {
        min-height: 30px !important;
        height: 30px;
    }

    .vz-site-header .vz-header-icon {
        width: 30px !important;
        height: 30px !important;
    }

    .vz-site-header .vz-header-notification button {
        width: 30px;
        height: 30px;
        min-height: 30px !important;
        border: 1px solid transparent;
        border-radius: 999px;
        background: transparent;
    }
}

@media (min-width: 1280px) {
    .vz-site-header .vz-header-actions {
        display: inline-flex;
    }

    .vz-site-header .vz-header-notification button {
        width: 30px;
        height: 30px;
    }

    .vz-auth-drawer-toggle,
    .vz-auth-drawer {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vz-site-header .vz-mobile-menu-toggle .vz-menu-bars span,
    .vz-site-header .vz-header-search,
    .vz-site-header .vz-header-nav a,
    .vz-site-header .vz-header-chip,
    .vz-site-header .vz-header-icon,
    .vz-site-header .logo-sun-glow {
        transition: none;
    }

    .vz-site-header .logo-sun-glow:hover {
        transform: none;
    }
}

html.dark .vz-site-header,
body.dark .vz-site-header,
html[data-theme="dark"] .vz-site-header {
    --romoid-header-ink: #e8eef6;
    --romoid-header-copy: #c5d0de;
    --romoid-header-muted: #8ea0b5;
    --romoid-header-line: #2a3a4d;
    --romoid-header-line-strong: #35506a;
    --romoid-header-surface: #132033;
    --romoid-header-page: #0b1624;
    --romoid-header-soft: #173049;
    --romoid-header-blue-soft: #16385f;
    background: rgba(19, 32, 51, 0.94) !important;
    border-bottom: 1px solid rgba(42, 58, 77, 0.8) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

html.dark .vz-site-header .vz-header-search:focus-within,
body.dark .vz-site-header .vz-header-search:focus-within,
html[data-theme="dark"] .vz-site-header .vz-header-search:focus-within {
    background: #0e1a2b;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.16);
}

html.dark .vz-site-header form[action*="logout"] button:hover,
body.dark .vz-site-header form[action*="logout"] button:hover,
html[data-theme="dark"] .vz-site-header form[action*="logout"] button:hover {
    background: rgba(220, 38, 38, 0.2) !important;
    color: #fca5a5 !important;
}

html.dark .vz-notification-panel,
body.dark .vz-notification-panel,
html[data-theme="dark"] .vz-notification-panel {
    border-color: #2a3a4d;
    background: #132033;
    color: #e8eef6;
}

html.dark .vz-site-header .vz-mobile-menu-toggle,
body.dark .vz-site-header .vz-mobile-menu-toggle,
html[data-theme="dark"] .vz-site-header .vz-mobile-menu-toggle {
    border-color: #2a3a4d !important;
    background: #0e1a2b !important;
    color: #c5d0de;
}

html.dark .vz-site-header .vz-mobile-menu-toggle[aria-expanded="true"],
body.dark .vz-site-header .vz-mobile-menu-toggle[aria-expanded="true"],
html[data-theme="dark"] .vz-site-header .vz-mobile-menu-toggle[aria-expanded="true"] {
    border-color: var(--romoid-header-blue) !important;
    background: var(--romoid-header-blue) !important;
    color: #ffffff !important;
}

html.dark .vz-site-header .vz-mobile-drawer,
body.dark .vz-site-header .vz-mobile-drawer,
html[data-theme="dark"] .vz-site-header .vz-mobile-drawer {
    border-color: #2a3a4d;
    background: #132033;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

html.dark .vz-site-header .vz-mobile-admin,
body.dark .vz-site-header .vz-mobile-admin,
html[data-theme="dark"] .vz-site-header .vz-mobile-admin {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

html.dark .vz-site-header .vz-mobile-logout:hover,
body.dark .vz-site-header .vz-mobile-logout:hover,
html[data-theme="dark"] .vz-site-header .vz-mobile-logout:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
}
