:root {
    --stayora-primary: #1b4d7e;
    --stayora-primary-focus: #1b4d7e;
    --stayora-primary-on-dark: #d7bd8f;
    --stayora-secondary: #153e66;
    --stayora-tertiary: #1f1b16;
    --stayora-neutral: #ffffff;
    --stayora-surface: #fafaf9;
    --stayora-pearl: #ffffff;
    --stayora-tile-1: #25201b;
    --stayora-tile-2: #2a241e;
    --stayora-tile-3: #1e1a16;
    --stayora-black: #120f0d;
    --stayora-on-surface: #1f1b16;
    --stayora-ink-80: #3a332b;
    --stayora-ink-48: #7b7266;
    --stayora-body-muted: #c7c0b5;
    --stayora-muted: #f4f4f2;
    --stayora-divider-soft: rgba(31, 27, 22, 0.08);
    --stayora-hairline: rgba(31, 27, 22, 0.12);
    --stayora-border: rgba(31, 27, 22, 0.16);
    --stayora-error: #b91c1c;
    --stayora-font-display: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --stayora-font-text: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --stayora-font-serif: "Newsreader", Georgia, "Times New Roman", serif;
    --stayora-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --stayora-product-shadow: 3px 5px 30px 0 rgba(20, 17, 15, 0.22);
    --ease-stayora-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-stayora-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-stayora-spring: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-stayora-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
    margin: 0;
    font-family: var(--stayora-font-text);
    font-optical-sizing: auto;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    color: var(--stayora-on-surface);
    background-color: var(--stayora-surface);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(215, 189, 143, 0.32);
    color: #1f1b16;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--stayora-primary-focus);
    outline-offset: 2px;
}

/* Pure opacity reveal on first image load (zero GPU filter:blur re-rasterization) */
.is-img-loading {
    opacity: 0 !important;
}

.is-img-loaded {
    transition: opacity 0.22s ease-out;
}

.stayora-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 9999;
    pointer-events: none;
    transform-origin: left center;
    transform: scaleX(0);
    opacity: 0;
    background: linear-gradient(90deg, #bba070 0%, #ecdbb7 100%);
    transition:
        transform 0.24s var(--ease-stayora-out, cubic-bezier(0.16, 1, 0.3, 1)),
        opacity 0.22s ease;
}

.stayora-progress-bar.is-active {
    opacity: 1;
}

.has-sliding-thumb {
    position: relative;
}

.has-sliding-thumb .segmented-thumb {
    position: absolute;
    top: 5px;
    left: 0;
    border-radius: 9999px;
    background-color: #ffffff;
    border: 1px solid var(--stayora-hairline, #e0e0e0);
    pointer-events: none;
    z-index: 0;
    transition:
        transform 0.32s var(--ease-stayora-out, cubic-bezier(0.16, 1, 0.3, 1)),
        width 0.32s var(--ease-stayora-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.has-sliding-thumb > a {
    position: relative;
    z-index: 1;
}

.has-sliding-thumb > a.is-active {
    background-color: transparent !important;
    box-shadow: none !important;
}

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

    .stayora-progress-bar {
        display: none;
    }
}

.liquid-glass-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 0;
    overflow: visible;
    transition: transform 0.28s var(--ease-stayora-out);
}

body:has(.hero) .site-header {
    position: sticky;
    top: 0;
    margin-bottom: 0;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #fdfbf7;
    border-bottom: 1px solid rgba(31, 27, 22, 0.09);
    box-shadow: 0 2px 12px rgba(31, 27, 22, 0.04);
    pointer-events: none;
    z-index: 0;
    transition:
        background-color 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-scrolled::before {
    background: #ffffff;
    border-bottom-color: rgba(31, 27, 22, 0.11);
    box-shadow: 0 8px 24px rgba(31, 27, 22, 0.07);
}

.navbar {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Instrument Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.036em;
    color: #1b4d7e;
    text-decoration: none;
    white-space: nowrap;
    transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-logo:hover {
    color: #153e66;
}

.brand-mark-svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    color: #1b4d7e;
}

.brand-mark-svg path,
.brand-mark-svg circle,
.brand-mark-svg rect {
    fill: currentColor;
}

.nav-logo .brand-mark-svg {
    width: 32px;
    height: 29px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: currentColor;
}

.nav-logo .brand-mark-svg path,
.nav-logo .brand-mark-svg circle,
.nav-logo .brand-mark-svg rect {
    fill: currentColor;
}

.nav-logo span {
    color: var(--stayora-primary);
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 0 7px;
    border: 1px solid rgba(31, 27, 22, 0.15);
    border-radius: 9px;
    background-color: #f7f4ee;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: #171512;
    border-radius: 2px;
}

.nav-search {
    position: relative;
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid rgba(31, 27, 22, 0.13);
    box-shadow:
        0 2px 10px rgba(15, 23, 42, 0.06),
        0 1px 2px rgba(15, 23, 42, 0.04);
    border-radius: 9999px;
    padding: 5px 6px 5px 18px;
    transition:
        border-color 0.18s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.18s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 120;
}

.nav-search:hover {
    background: #ffffff;
    border-color: rgba(31, 27, 22, 0.24);
    box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.09),
        0 1px 3px rgba(15, 23, 42, 0.05);
}

.nav-search:focus-within,
.nav-search.is-open {
    background: #ffffff;
    border-color: #1b4d7e;
    box-shadow:
        0 0 0 3px rgba(27, 77, 126, 0.12),
        0 8px 24px rgba(15, 23, 42, 0.09);
}

.nav-search-pin {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    color: #5e554a;
    flex-shrink: 0;
}

.nav-search-input {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color-scheme: light;
    font-family: var(--stayora-font-text);
    font-size: 14.5px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.005em;
    color: #171512;
    padding-right: 4px;
}

.nav-search-input::placeholder {
    color: #7b7266;
    transition: color 0.2s var(--ease-stayora-out);
}

.nav-search:focus-within .nav-search-input::placeholder {
    color: #9e9386;
}

.nav-search-badge {
    display: none;
    position: relative;
    z-index: 1;
    font-family: var(--stayora-font-mono);
    font-size: 11px;
    font-weight: 500;
    color: #5e554a;
    background-color: #f4f4f2;
    border: 1px solid rgba(31, 27, 22, 0.08);
    padding: 4px 9px;
    border-radius: 9999px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.18s ease;
}

.nav-search:has(.nav-search-input:not(:placeholder-shown)) .nav-search-badge {
    display: none;
}

@media (min-width: 520px) {
    .nav-search-badge {
        display: inline-flex;
        align-items: center;
    }
}

.nav-search-input::-webkit-calendar-picker-indicator {
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.2s var(--ease-stayora-out);
}

.nav-search-input::-webkit-calendar-picker-indicator:hover {
    opacity: 0.95;
}

.nav-search-input::-webkit-search-cancel-button {
    cursor: pointer;
    opacity: 0.68;
    transition: opacity 0.18s ease;
}

.nav-search-input::-webkit-search-cancel-button:hover {
    opacity: 1;
}

.nav-search-btn {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    border: 1px solid #1b4d7e;
    border-radius: 9999px;
    background: #1b4d7e;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(27, 77, 126, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    transition:
        background-color 0.18s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.18s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.18s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-search-btn:hover {
    background: #153e66;
    border-color: #153e66;
    box-shadow: 0 4px 12px rgba(27, 77, 126, 0.28);
}

.nav-search-btn:active {
    transform: scale(0.95);
    transition-duration: 0.12s;
}

.nav-search-btn svg {
    position: relative;
    z-index: 1;
    width: 15px;
    height: 15px;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-search-btn:hover svg {
    transform: scale(1.06);
}

.nav-search-btn:active svg {
    transform: scale(0.92);
}

.nav-search-popover {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    min-width: 296px;
    background: #fdfbf7;
    border: 1px solid rgba(31, 27, 22, 0.1);
    border-radius: 16px;
    box-shadow:
        0 20px 48px rgba(31, 27, 22, 0.14),
        0 4px 12px rgba(31, 27, 22, 0.05);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, -8px, 0) scale(0.98);
    transform-origin: top center;
    pointer-events: none;
    transition:
        opacity 0.18s var(--ease-stayora-in),
        transform 0.2s var(--ease-stayora-in),
        visibility 0s linear 0.2s;
    z-index: 1200;
}

.nav-search-popover > * {
    position: relative;
    z-index: 1;
}

.nav-search.is-open .nav-search-popover {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1);
    pointer-events: auto;
    transition:
        opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s;
}

.nav-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px 9px;
    border-bottom: 1px solid rgba(31, 27, 22, 0.08);
}

.nav-popover-kicker {
    font-family: var(--stayora-font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.02em;
    color: #7b7266;
}

.nav-popover-count {
    font-family: var(--stayora-font-mono);
    font-size: 11px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    color: #7b7266;
}

.nav-popover-list {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    padding: 7px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(31, 27, 22, 0.18) transparent;
}

.nav-popover-list::-webkit-scrollbar {
    width: 6px;
}

.nav-popover-list::-webkit-scrollbar-track {
    background: transparent;
    margin: 6px 0;
}

.nav-popover-list::-webkit-scrollbar-thumb {
    background-color: rgba(31, 27, 22, 0.18);
    border-radius: 9999px;
}

.nav-popover-list::-webkit-scrollbar-thumb:hover {
    background-color: rgba(31, 27, 22, 0.32);
}

.nav-popover-liquid-pill {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: 10px;
    background: #f2ece2;
    border: 1px solid rgba(31, 27, 22, 0.07);
    opacity: 0;
    transform-origin: center center;
    transition:
        transform 0.26s var(--ease-stayora-out),
        width 0.24s var(--ease-stayora-out),
        height 0.24s var(--ease-stayora-out),
        opacity 0.18s ease;
}

.nav-popover-liquid-pill.is-stretching {
    border-radius: 14px;
}

.nav-popover-item {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition:
        color 0.18s var(--ease-stayora-out),
        transform 0.18s var(--ease-stayora-out);
}

.nav-popover-item[hidden] {
    display: none;
}

.nav-popover-item:hover,
.nav-popover-item.is-active {
    background-color: transparent;
}

.nav-popover-item:active {
    transform: scale(0.975);
    transition-duration: 0.12s;
}

.nav-popover-pin {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background-color: #f2ece2;
    border: 1px solid rgba(31, 27, 22, 0.08);
    color: #1b4d7e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition:
        background-color 0.24s var(--ease-stayora-out),
        border-color 0.24s var(--ease-stayora-out),
        color 0.24s var(--ease-stayora-out),
        transform 0.32s var(--ease-stayora-spring),
        box-shadow 0.24s var(--ease-stayora-out);
}

.nav-popover-pin svg {
    width: 15px;
    height: 15px;
}

.nav-popover-item:hover .nav-popover-pin,
.nav-popover-item.is-active .nav-popover-pin {
    background: #1b4d7e;
    border-color: #1b4d7e;
    color: #ffffff;
}

.nav-popover-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nav-popover-city {
    font-family: var(--stayora-font-text);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    color: #171512;
    transition: color 0.2s var(--ease-stayora-out);
}

.nav-popover-item:hover .nav-popover-city,
.nav-popover-item.is-active .nav-popover-city {
    color: #171512;
}

.nav-popover-region {
    font-family: var(--stayora-font-text);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    color: #6b6155;
    transition: color 0.2s var(--ease-stayora-out);
}

.nav-popover-item:hover .nav-popover-region,
.nav-popover-item.is-active .nav-popover-region {
    color: #4a4239;
}

.nav-popover-arrow {
    font-size: 13px;
    color: #1b4d7e;
    opacity: 0;
    transform: translate3d(-6px, 0, 0);
    transition:
        opacity 0.22s var(--ease-stayora-out),
        transform 0.28s var(--ease-stayora-out);
}

.nav-popover-item:hover .nav-popover-arrow,
.nav-popover-item.is-active .nav-popover-arrow {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.nav-popover-empty {
    padding: 18px 16px;
    text-align: center;
    font-family: var(--stayora-font-text);
    font-size: 13px;
    color: #6b6155;
}

.nav-popover-empty span {
    font-weight: 600;
    color: #171512;
}

.nav-popover-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #f7f4ee;
    border-top: 1px solid rgba(31, 27, 22, 0.08);
}

.nav-popover-foot-link {
    font-family: var(--stayora-font-text);
    font-size: 12px;
    font-weight: 500;
    color: #5e554a;
    text-decoration: none;
    transition: color 0.2s var(--ease-stayora-out), transform 0.22s var(--ease-stayora-out);
}

.nav-popover-foot-link:hover {
    color: #171512;
}

.nav-popover-foot-primary {
    color: #1b4d7e;
    font-weight: 600;
}

.nav-popover-foot-primary:hover {
    color: #153e66;
    transform: translateX(2px);
}

.nav-menu {
    position: relative;
    order: 4;
    flex: 1 1 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(31, 27, 22, 0.09);
}

.nav-menu.is-open {
    display: flex;
}

.nav-liquid-pill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 9999px;
    background: #efe9df;
    border: 1px solid rgba(31, 27, 22, 0.07);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition:
        transform 0.26s var(--ease-stayora-out),
        width 0.24s var(--ease-stayora-out),
        height 0.24s var(--ease-stayora-out),
        opacity 0.18s ease;
}

.nav-liquid-pill.is-dragging {
    background: #e6dfd2;
    border-color: rgba(31, 27, 22, 0.14);
}

.nav-menu > *:not(.nav-liquid-pill) {
    position: relative;
    z-index: 1;
}

.nav-link {
    font-family: var(--stayora-font-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: -0.008em;
    color: #2d2823;
    text-decoration: none;
    text-align: center;
    padding: 10px 15px;
    border-radius: 9999px;
    white-space: nowrap;
    transition: color 0.18s ease;
}

.nav-link:hover {
    color: #171512;
}

.nav-host-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    font-family: var(--stayora-font-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.008em;
    color: #171512;
    text-decoration: none;
    text-align: center;
    padding: 0 18px;
    border-radius: 9999px;
    border: 1px solid rgba(31, 27, 22, 0.13);
    background-color: #f4f4f2;
    white-space: nowrap;
    transition:
        background-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
        color 180ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-host-btn:hover {
    background-color: #eaeae6;
    border-color: rgba(31, 27, 22, 0.24);
    color: #171512;
    transform: translateY(-1px);
}

.nav-host-btn:active {
    transform: scale(0.97);
}

.nav-dashboard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    font-family: var(--stayora-font-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.008em;
    color: #1b4d7e;
    text-decoration: none;
    text-align: center;
    padding: 0 18px;
    border-radius: 9999px;
    border: 1px solid rgba(27, 77, 126, 0.22);
    background-color: rgba(27, 77, 126, 0.08);
    white-space: nowrap;
    transition:
        background-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
        color 180ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-dashboard-btn:hover {
    background-color: #1b4d7e;
    border-color: #1b4d7e;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(27, 77, 126, 0.22);
    transform: translateY(-1px);
}

.nav-dashboard-btn:active {
    transform: scale(0.97);
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.008em;
    text-decoration: none;
    text-align: center;
    padding: 0 20px;
    border-radius: 9999px;
    white-space: nowrap;
    transition:
        background-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
        color 180ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-btn:active {
    transform: scale(0.97);
}

.nav-btn-login {
    background-color: #ffffff;
    color: #171512;
    border: 1px solid rgba(31, 27, 22, 0.16);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.nav-btn-primary {
    background-color: #1b4d7e;
    color: #ffffff;
    border: 1px solid #1b4d7e;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(27, 77, 126, 0.22);
}

.nav-btn-outline {
    background-color: #ffffff;
    color: #171512;
    border: 1px solid rgba(31, 27, 22, 0.16);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

@media (hover: hover) and (pointer: fine) {
    .nav-btn-login:hover,
    .nav-btn-outline:hover {
        background-color: #f4f4f2;
        border-color: rgba(31, 27, 22, 0.28);
        color: #171512;
        box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
        transform: translateY(-1px);
    }

    .nav-btn-primary:hover {
        background-color: #153e66;
        border-color: #153e66;
        color: #ffffff;
        box-shadow: 0 6px 16px rgba(27, 77, 126, 0.28);
        transform: translateY(-1px);
    }
}

@media (min-width: 901px) {
    .navbar {
        flex-wrap: nowrap;
        max-width: 1380px;
        padding: 13px 32px;
        gap: 24px;
    }

    .nav-toggle {
        display: none;
    }

    .nav-search {
        order: 0;
        flex: 1 1 320px;
        max-width: 480px;
        margin: 0 auto;
    }

    .nav-menu {
        order: 0;
        flex: 0 0 auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding-top: 0;
        border-top: none;
    }
}

@media (min-width: 1280px) {
    .navbar {
        padding: 14px 36px;
    }

    .nav-search {
        max-width: 500px;
    }
}

.flash-stack {
    position: fixed;
    top: 86px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    width: max-content;
    max-width: min(460px, calc(100% - 32px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.flash-toast {
    position: relative;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    max-width: 100%;
    padding: 12px 14px 12px 14px;
    border-radius: 9999px;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.05);
    color: #222222;
    font-family: "Instrument Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    opacity: 0;
    transform: translate3d(0, -10px, 0) scale(0.97);
    transform-origin: top center;
    transition:
        opacity 240ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.flash-toast.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.flash-toast.is-visible:hover {
    box-shadow:
        0 12px 34px rgba(0, 0, 0, 0.16),
        0 3px 8px rgba(0, 0, 0, 0.06);
}

.flash-toast.is-hiding {
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0, -8px, 0) scale(0.97);
    transition:
        opacity 180ms cubic-bezier(0.4, 0, 1, 1),
        transform 200ms cubic-bezier(0.4, 0, 1, 1);
}

.flash-icon {
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flash-icon svg {
    width: 15px;
    height: 15px;
}

.flash-success .flash-icon {
    background-color: #ecfdf5;
    color: #059669;
}

.flash-error .flash-icon {
    background-color: #fef2f2;
    color: #dc2626;
}

.flash-text {
    font-family: "Instrument Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.38;
    letter-spacing: -0.012em;
    color: #222222;
}

.flash-close {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #717171;
    padding: 0;
    border-radius: 9999px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 2px;
    transition:
        background-color 150ms cubic-bezier(0.22, 1, 0.36, 1),
        color 150ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

.flash-close svg {
    width: 13px;
    height: 13px;
}

.flash-close:hover {
    background-color: #f3f3f3;
    color: #222222;
}

.flash-close:active {
    transform: scale(0.9);
}

.flash-toast.flash-jarvis {
    background-color: #222222;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.24),
        0 3px 8px rgba(0, 0, 0, 0.12);
    color: #ffffff;
}

.flash-toast.flash-jarvis:hover {
    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.28),
        0 4px 10px rgba(0, 0, 0, 0.14);
}

.flash-jarvis .flash-icon-brand {
    background-color: #1b4d7e;
    color: #ffffff;
}

.flash-jarvis .flash-icon-brand .brand-mark-svg {
    width: 17px;
    height: 15px;
    color: #ffffff;
}

.flash-jarvis .flash-text {
    color: #ffffff;
    font-weight: 500;
}

.flash-jarvis .flash-close {
    color: rgba(255, 255, 255, 0.65);
}

.flash-jarvis .flash-close:hover {
    background-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}


.nav-profile {
    position: relative;
}

.nav-profile-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 40px;
    padding: 5px 14px 5px 7px;
    border-radius: 9999px;
    border: 1px solid rgba(31, 27, 22, 0.14);
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    color: #171512;
    font-family: var(--stayora-font-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: -0.008em;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-profile-trigger:hover,
.nav-profile.is-open .nav-profile-trigger {
    background-color: #fafaf9;
    border-color: rgba(27, 77, 126, 0.3);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.nav-profile-trigger:active {
    transform: scale(0.97);
}

.nav-profile-avatar,
.nav-profile-initial {
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    flex-shrink: 0;
}

.nav-profile-avatar {
    object-fit: cover;
    object-position: center 20%;
    display: block;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.nav-profile-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1b4d7e;
    color: #ffffff;
    font-family: var(--stayora-font-display);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.nav-profile-name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-profile-chevron {
    width: 13px;
    height: 13px;
    color: #6b6155;
    transition: transform 0.24s var(--ease-stayora-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.nav-profile.is-open .nav-profile-chevron {
    transform: rotate(180deg);
}

.nav-profile-menu {
    position: relative;
    display: none;
    margin-top: 8px;
    padding: 8px;
    border-radius: 16px;
    background: #fdfbf7;
    border: 1px solid rgba(31, 27, 22, 0.1);
    box-shadow:
        0 20px 48px rgba(31, 27, 22, 0.14),
        0 4px 12px rgba(31, 27, 22, 0.05);
    color: #171512;
    text-align: left;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.nav-profile-menu > *:not(.nav-profile-liquid-pill) {
    position: relative;
    z-index: 2;
}

.nav-profile-liquid-pill {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: 10px;
    background: #f2ece2;
    border: 1px solid rgba(31, 27, 22, 0.07);
    opacity: 0;
    transform-origin: center center;
    transition:
        transform 0.26s var(--ease-stayora-out),
        width 0.24s var(--ease-stayora-out),
        height 0.24s var(--ease-stayora-out),
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.18s ease;
}

.nav-profile-liquid-pill.is-stretching {
    border-radius: 14px;
}

.nav-profile-liquid-pill.is-dragging {
    background: #e6dfd2;
    border-color: rgba(31, 27, 22, 0.16);
    box-shadow: 0 6px 16px -4px rgba(31, 27, 22, 0.12);
}

.nav-profile-liquid-pill.is-danger {
    background: rgba(217, 45, 32, 0.09);
    border-color: rgba(217, 45, 32, 0.2);
    box-shadow: none;
}

.nav-profile-liquid-pill.is-danger.is-dragging {
    background: rgba(217, 45, 32, 0.14);
}

.nav-profile.is-open .nav-profile-menu {
    display: block;
}

.nav-profile-head {
    padding: 10px 12px 12px;
    border-bottom: 1px solid rgba(31, 27, 22, 0.08);
    margin-bottom: 6px;
}

.nav-profile-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

.nav-profile-fullname {
    font-family: var(--stayora-font-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    color: #171512;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-profile-role {
    font-family: var(--stayora-font-mono);
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #1b4d7e;
    background-color: rgba(27, 77, 126, 0.09);
    border: 1px solid rgba(27, 77, 126, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}

.nav-profile-email {
    display: block;
    font-family: var(--stayora-font-mono);
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0;
    color: #6b6155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-profile-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-profile-group-label {
    display: block;
    padding: 6px 12px 4px;
    font-family: var(--stayora-font-mono);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #7b7266;
}

.nav-profile-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #2f2a24;
    font-family: var(--stayora-font-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: color 0.16s ease, transform 0.12s ease;
}

.nav-profile-item svg {
    width: 16px;
    height: 16px;
    color: #6b6155;
    flex-shrink: 0;
    transition: color 0.16s ease;
}

.nav-profile-item:hover,
.nav-profile-item.is-liquid-active {
    background-color: transparent;
    color: #171512;
}

.nav-profile-item:hover svg,
.nav-profile-item.is-liquid-active svg {
    color: #1b4d7e;
}

.nav-profile-item:active {
    transform: scale(0.97);
}

.nav-profile-divider {
    height: 1px;
    background-color: rgba(31, 27, 22, 0.08);
    margin: 6px 8px;
}

.nav-profile-logout-form {
    margin: 0;
}

.nav-profile-logout {
    color: #c53030;
}

.nav-profile-logout svg {
    color: #c53030;
}

.nav-profile-logout:hover,
.nav-profile-logout.is-liquid-active {
    background-color: transparent;
    color: #9b1c1c;
}

.nav-profile-logout:hover svg,
.nav-profile-logout.is-liquid-active svg {
    color: #9b1c1c;
}

@media (min-width: 901px) {
    .nav-profile {
        margin-left: 4px;
    }

    .nav-profile-trigger {
        width: auto;
    }

    .nav-profile-menu {
        display: block;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        width: 268px;
        margin-top: 0;
        z-index: 1200;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(0, -10px, 0) scale(0.96);
        transform-origin: top right;
        transition:
            opacity 0.24s var(--ease-stayora-out, cubic-bezier(0.16, 1, 0.3, 1)),
            transform 0.3s var(--ease-stayora-out, cubic-bezier(0.16, 1, 0.3, 1)),
            visibility 0s linear 0.24s;
    }

    .nav-profile-menu::before {
        content: "";
        position: absolute;
        top: -12px;
        left: 0;
        right: 0;
        height: 12px;
    }

    .nav-profile.is-open .nav-profile-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate3d(0, 0, 0) scale(1);
        transition:
            opacity 0.26s var(--ease-stayora-out, cubic-bezier(0.16, 1, 0.3, 1)),
            transform 0.32s var(--ease-stayora-out, cubic-bezier(0.16, 1, 0.3, 1)),
            visibility 0s linear 0s;
    }
}
